Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
ihucos committed Mar 5, 2021
1 parent e915973 commit 0f2343b
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 23 deletions.
5 changes: 4 additions & 1 deletion static/components/dashboard/download.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
customElements.define(
tagName(),
class extends HTMLElement {
draw(siteData, siteName, timeRange) {
draw(siteData, siteName, timeRange, sessionless) {
if (sessionless) {
$(this).css('margin', '0')
}
this.innerHTML = `
<a class="btn-secondary btn-icon" href="#">
<img src="img/download.svg" width="24" height="24" alt="Download"/>
Expand Down
3 changes: 2 additions & 1 deletion static/components/dashboard/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ customElements.define(
tagName(),
class extends HTMLElement {
draw(opts) {
if (opts.meta.sessionless || !opts.userId) {
if (opts.meta.sessionless) {
$(this).css('margin', '0')
return;
}

Expand Down
4 changes: 1 addition & 3 deletions static/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ <h2>Analytics</h2>
<div class="settings-right">
<dashboard-download class="mr16"></dashboard-download>
<dashboard-settings class="mr16"></dashboard-settings>
<a href="#modal-add" class="btn-primary" rel="modal:open"
>Add a website</a
>
<dashboard-addbtn></dashboard-addbtn>
</div>
</div>
</section>
Expand Down
4 changes: 2 additions & 2 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h1>Simple Web Analytics</h1>
<div class="title gray mt24 mb48">
Web Analytics made simple and therefore privacy friendly.
</div>
<a href="welcome.html" class="btn-primary mr16">Get started</a>
<a href="welcome.html?sign-up" class="btn-primary mr16">Get started</a>
<a href="dashboard.html?demo=1" class="btn-secondary">Live demo</a>
</div>
</div>
Expand Down Expand Up @@ -197,7 +197,7 @@ <h2>Open Source</h2>
<div class="caption gray mt16 mb24">
Counter is fully open-source and available on Github.
</div>
<a href="#" class="btn-secondary" target="_blank" rel="nofollow"
<a href="https://github.com/ihucos/counter.dev" class="btn-secondary" target="_blank" rel="nofollow"
>View project</a
>
</div>
Expand Down
3 changes: 3 additions & 0 deletions static/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,13 @@ connectData("dashboard-selector", (dump) => [dump]);

connectData("dashboard-demo-flash", (dump) => [dump.meta.demo]);

connectData("dashboard-addbtn", (dump) => [dump.meta.sessionless]);

connectData("dashboard-download", (dump) => [
dump.sites[selector.site].visits[selector.range],
selector.site,
selector.range,
dump.meta.sessionless,
]);

connectData("counter-trackingcode", (dump) => [
Expand Down
31 changes: 17 additions & 14 deletions static/privacy.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,30 @@
<div class="content">
<div class="privacy-wrap bg-white shadow-lg radius-lg">
<div class="h2 mb32">Privacy policy</div>
<span class="gray"
>
We do not use cookies and we do not
collect any personal data. If you decide to create an account, we
ask for the bare minimum and only share it with services that are
absolutely necessary for the app to function.</span
>
<span class="gray" >
We do not collect any personal data. If you decide to create an
account, we ask for the bare minimum and only share it with
services that are absolutely necessary for the app to function.
</span >
<div class="title mt24 mb16">Privacy regulations</div>
<span class="gray"
>We are committed to complying with GDPR,
CCPA, PECR and other privacy regulations on our website and on our
web analytics product.
>We are committed to complying with GDPR, CCPA, PECR and other
privacy regulations on our website and on our web analytics
product. Due the complexity and changing nature of this topic, we
are at all times open for input and eager to improve the product.
</span>
<div class="title mt24 mb16">Own your data</div>
<span class="gray"
>You can download your data or delete it comfortable via the user interface.
</span
>
>You can download your data or delete it permanently easily via the user interface.
</span>
<div class="title mt24 mb16">Data expirery</div>
<span class="gray">
By design the tracking data get diffused as it get's older. A
historic overview is available at all times.
</span>
<div class="title mt24 mb16">Contact us</div>
<span class="gray">
<a href="mailto:[email protected]" target="_blank" rel="nofollow">Contact us</a> if you have any questions.
<a href="mailto:[email protected]" target="_blank" rel="nofollow">Contact us</a> if you have any questions or special inquiries.
</span>
<div class="caption gray mt24">Effective Date: 15th April 2020</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion static/setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</div>
<span class="caption gray">
Got stuck?
<a href="/dashboard" class="caption gray underline">Retry</a>
<a href="/dashboard" class="caption gray underline">Reload</a>
or
<a href="mailto:[email protected]" class="caption gray underline">ask for support.</a>
</span>
Expand Down
2 changes: 1 addition & 1 deletion static/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<div class="welcome-text">
<h1>Welcome</h1>
<div class="title gray mt16 mb32">
Web Analytics made simple and therefore privacy friendly.
Sign up in no time.
</div>
<!-- Features -->
<!-- Item -->
Expand Down

0 comments on commit 0f2343b

Please sign in to comment.