Skip to content

Commit 366e983

Browse files
author
Irae Hueck Costa
committed
Reformat frontend files
1 parent 026cd03 commit 366e983

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+745
-2374
lines changed

.github/workflows/deploy.yml

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
1514
- name: Set up WARP
1615
uses: fscarmen/warp-on-actions@v1.1
1716

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ You will need a redis server at localhost and default port.
5252

5353
If you want to self-host consult here: https://github.com/ihucos/counter.dev-selfhost
5454

55-
5655
## Developing the blog
5756

5857
The blog is based on [pelican](https://blog.getpelican.com/). The templates are in the `templates/blog` directory. Articles in the `posts` directory. To autogenerate the blog to the folder `static/blog` run `make blog`. The blog is autogenerated at every deploy.
@@ -63,7 +62,7 @@ The blog is based on [pelican](https://blog.getpelican.com/). The templates are
6362

6463
I don't know. See https://github.com/ihucos/counter.dev/issues/71
6564

66-
With the information that is possible for me to gather, it seems that due to the *ePrivacy Directive* all SaaS Web Analytics - including counter.dev - needs consent. Even though most providers might claim the contrary. There is a proposal for a [new ePrivacy Regulation](https://digital-strategy.ec.europa.eu/en/policies/eprivacy-regulation) that could fix that.
65+
With the information that is possible for me to gather, it seems that due to the _ePrivacy Directive_ all SaaS Web Analytics - including counter.dev - needs consent. Even though most providers might claim the contrary. There is a proposal for a [new ePrivacy Regulation](https://digital-strategy.ec.europa.eu/en/policies/eprivacy-regulation) that could fix that.
6766

6867
## Contributors
6968

content/help/index.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
- Integration
44

5-
- General integration guide
5+
- General integration guide
66

7-
- {% filter helplink %}integration.md{% endfilter %}
7+
- {% filter helplink %}integration.md{% endfilter %}
88

9-
- Integrating counter.dev in different platforms
9+
- Integrating counter.dev in different platforms
1010

11-
- {% filter helplink %}wordpress.md{% endfilter %}
11+
- {% filter helplink %}wordpress.md{% endfilter %}
1212

13-
- {% filter helplink %}shopify.md{% endfilter %}
13+
- {% filter helplink %}shopify.md{% endfilter %}
1414

15-
- {% filter helplink %}squarespace.md{% endfilter %}
15+
- {% filter helplink %}squarespace.md{% endfilter %}
1616

17-
- {% filter helplink %}wix.md{% endfilter %}
17+
- {% filter helplink %}wix.md{% endfilter %}
1818

19-
- {% filter helplink %}weebly.md{% endfilter %}
19+
- {% filter helplink %}weebly.md{% endfilter %}

content/help/integration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To integrate the tracking script into your website, follow these steps:
2121

2222
1. Log in to your account and copy the tracking code.
2323
2. Paste the tracking code just before the closing `</head>` tag in the HTML
24-
code of your website.
24+
code of your website.
2525
3. Save the changes to your website.
2626

2727
Once you have completed the above steps, the tracking script will start

content/help/shopify.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,30 @@ track visitors and gain valuable insights into your store's performance. Follow
55
the steps below to integrate Counter.dev into your Shopify store:
66

77
1. Log in to your Shopify store and navigate to the Online Store > Themes
8-
section.
8+
section.
99

1010
2. Click on the Actions button for the theme you want to edit and select Edit
11-
code.
11+
code.
1212

1313
3. In the theme editor, click on the theme.liquid file from the left-hand side
14-
navigation menu to open it.
14+
navigation menu to open it.
1515

1616
4. Find the closing `</head>` tag in the theme.liquid file.
1717

1818
5. Copy the Counter.dev tracking script provided in your Counter.dev account
19-
and paste it just before the closing `</head>` tag.
19+
and paste it just before the closing `</head>` tag.
2020

2121
6. Save the changes to the theme.liquid file.
2222

2323
7. Clear any caching plugins you may have installed on your Shopify store.
2424

2525
8. Verify that the tracking code has been properly installed by visiting your
26-
store and opening the developer console (usually done by pressing F12). The
27-
console should not display any errors and the network tab should show that the
28-
Counter.dev script has been loaded.
26+
store and opening the developer console (usually done by pressing F12). The
27+
console should not display any errors and the network tab should show that the
28+
Counter.dev script has been loaded.
2929

3030
9. Log in to your Counter.dev account and check the analytics dashboard to see
31-
if your Shopify store is being tracked.
31+
if your Shopify store is being tracked.
3232

3333
Congratulations! You have successfully integrated the Counter.dev tracking
3434
script into your Shopify store and can now start tracking visitors and

content/help/squarespace.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ started:
1717
6. Save the changes to the Header section.
1818

1919
7. Verify that the tracking code has been properly installed by visiting your
20-
website and opening the developer console (usually done by pressing F12). The
21-
console should not display any errors and the network tab should show that the
22-
Counter.dev script has been loaded.
20+
website and opening the developer console (usually done by pressing F12). The
21+
console should not display any errors and the network tab should show that the
22+
Counter.dev script has been loaded.
2323

2424
8. Log in to your Counter.dev account and check the analytics dashboard to see
25-
if your Squarespace website is being tracked.
25+
if your Squarespace website is being tracked.
2626

2727
Congratulations! You have successfully integrated the Counter.dev tracking
2828
script into your Squarespace website and can now start tracking visitors and

content/help/wordpress.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ WordPress site:
1010
2. Open the header.php file and find the closing `</head>` tag.
1111

1212
3. Copy the Counter.dev tracking script provided in your Counter.dev account
13-
and paste it just before the closing `</head>` tag.
13+
and paste it just before the closing `</head>` tag.
1414

1515
4. Save the changes to the header.php file.
1616

1717
5. Clear any caching plugins you may have installed on your WordPress site.
1818

1919
6. Verify that the tracking code has been properly installed by visiting your
20-
website and opening the developer console (usually done by pressing F12). The
21-
console should not display any errors and the network tab should show that the
22-
Counter.dev script has been loaded.
20+
website and opening the developer console (usually done by pressing F12). The
21+
console should not display any errors and the network tab should show that the
22+
Counter.dev script has been loaded.
2323

2424
7. Log in to your Counter.dev account and check the analytics dashboard to see
25-
if your WordPress website is being tracked.
25+
if your WordPress website is being tracked.
2626

2727
Congratulations! You have successfully integrated the Counter.dev tracking
2828
script into your WordPress website and can now start tracking visitors and

content/pages/imprint.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,15 @@
77

88
# Imprint
99

10-
*Information in accordance with section 5 TMG:*
10+
_Information in accordance with section 5 TMG:_
1111

1212
Irae Hueck Costa<br/>
1313
10829 Berlin<br/>
1414
E-Mail: hey@counter.dev
1515

16-
17-
1816
Person responsible for content in accordance with 55 Abs. 2 RStV<br/>
1917
Irae Hueck Costa
2018

21-
2219
## Accountability for content
2320

2421
The contents of our pages have been created with the utmost care. However, we
@@ -31,8 +28,6 @@ obligations to remove or block the use of information under generally
3128
applicable laws remain unaffected by this as per §§ 8 to 10 of the Telemedia
3229
Act (TMG).
3330

34-
35-
3631
## Accountability for links
3732

3833
Responsibility for the content of external links (to web pages of third

content/pages/privacy.md

+32-27
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,26 @@ you when you use our website.
1414

1515
Counter collects the following data
1616

17-
- Your username
18-
- An encrypted password
19-
- Domains which where used to access web pages containing your personalized
20-
tracking script.
21-
- Your browser's time zone, a preference that can be changed in the account
22-
settings.
17+
- Your username
18+
- An encrypted password
19+
- Domains which where used to access web pages containing your personalized
20+
tracking script.
21+
- Your browser's time zone, a preference that can be changed in the account
22+
settings.
2323

2424
Your personalized tracking script aggregates the following statistical information of your users.
2525

26-
- The day of the week (As in: *Monday*, *Tuesday*, ...)
27-
- Your users device (As in *Phone*, *Tablet* or *Computer*)
28-
- The date of the visit
29-
- From which other website a visit originated.
30-
- The users browser (As in: *Firefox*, *Chrome*, *Microsoft Edge*, ...)
31-
- The hour compontent of the current time in a day
32-
- A country mapped to the users IP address.
33-
- The users operating system (As in: *Windows* or *Mac*)
34-
- Information on the users screen size
35-
- The users preferred language
36-
- Pages visited
26+
- The day of the week (As in: _Monday_, _Tuesday_, ...)
27+
- Your users device (As in _Phone_, _Tablet_ or _Computer_)
28+
- The date of the visit
29+
- From which other website a visit originated.
30+
- The users browser (As in: _Firefox_, _Chrome_, _Microsoft Edge_, ...)
31+
- The hour compontent of the current time in a day
32+
- A country mapped to the users IP address.
33+
- The users operating system (As in: _Windows_ or _Mac_)
34+
- Information on the users screen size
35+
- The users preferred language
36+
- Pages visited
3737

3838
These data points are saved anonymously in our primary database aggregated on a hourly, daily,
3939
weekly, monthly, yearly and overall basis. Counter deletes hourly, daily,
@@ -49,11 +49,11 @@ As of the 19. Sept 2022 we introduced historical archives persisting daily data
4949
You directly provide Counter with most of the data we collect. We collect data
5050
and process data when you
5151

52-
- Register online.
53-
- Write us an email.
54-
- Change the account settings.
55-
- Include your personalized tracking script in a web page which is visited by
56-
other users.
52+
- Register online.
53+
- Write us an email.
54+
- Change the account settings.
55+
- Include your personalized tracking script in a web page which is visited by
56+
other users.
5757

5858
## How do we store your data?
5959

@@ -65,6 +65,7 @@ anymore, we recommend permanently deleting it in the account settings. We may
6565
delete your data automatically if you stop using the service for longer than one year.
6666

6767
## What are your data protection rights?
68+
6869
Counter would like to make sure you are fully aware of all of your data protection rights.
6970
Every user is entitled to the following:
7071

@@ -75,7 +76,6 @@ The right to rectification - You have the right to request that Counter correct
7576
you believe is inaccurate. You also have the right to request Counter to complete information
7677
you believe is incomplete.
7778

78-
7979
**The right to erasure** - You have the right to request that Counter erase your personal data,
8080
under certain conditions.
8181

@@ -92,38 +92,43 @@ If you make a request, we have one month to respond to you. If you would like to
9292
these rights, please contact us at our email: hey@counter.dev
9393

9494
## What are cookies?
95+
9596
Cookies are text files placed on your computer to collect standard Internet log information and
9697
visitor behavior information. When you visit our websites, we may collect information from you
9798
automatically through cookies or similar technology.
9899

99-
100100
## How do we use cookies?
101+
101102
Counter uses cookies for the following purpose:
102-
- Keeping you signed in.
103-
- Our content delivery network, Cloudflare, Inc. may set cookies for reasons unknown to Counter.
104103

104+
- Keeping you signed in.
105+
- Our content delivery network, Cloudflare, Inc. may set cookies for reasons unknown to Counter.
105106

106107
## How to manage cookies
108+
107109
You can set your browser not to accept cookies, and the above website tells you how to remove
108110
cookies from your browser. However some of our website features may not function
109111
as a result.
110112

111-
112113
## Privacy policies of other websites
114+
113115
The Counter website contains links to other websites. Our privacy policy applies only to our
114116
website, so if you click on a link to another website, you should read their privacy policy.
115117

116118
## Changes to our privacy policy
119+
117120
Counter keeps its privacy policy under regular review and places any updates on this web page.
118121
This privacy policy was last updated on 18 May 2023.
119122

120123
## How to contact us
124+
121125
If you have any questions about Counter's privacy policy, the data we hold on you, or you would
122126
like to exercise one of your data protection rights, please do not hesitate to contact us.
123127

124128
Email us at: hey@counter.dev
125129

126130
## How to contact the appropriate authority
131+
127132
Should you wish to report a complaint or if you feel that Counter has not addressed your
128133
concern in a satisfactory manner, you may contact the Information Commissioner's Office.
129134

docs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en-US">
33
<head>
44
<meta charset="UTF-8" />

docs/script-testing.js

+6-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
(function () {
2-
if (sessionStorage.getItem('doNotTrack') || localStorage.getItem('doNotTrack')){
3-
return
2+
if (sessionStorage.getItem("doNotTrack") || localStorage.getItem("doNotTrack")) {
3+
return;
44
}
55
var id = document.currentScript.getAttribute("data-id");
66
var utcoffset = document.currentScript.getAttribute("data-utcoffset");
7-
var server =
8-
document.currentScript.getAttribute("data-server") ||
9-
"https://t.counter.dev";
7+
var server = document.currentScript.getAttribute("data-server") || "https://t.counter.dev";
108

11-
if (
12-
!sessionStorage.getItem("_swa") &&
13-
!document.referrer.startsWith(location.protocol + "//" + location.host)
14-
) {
9+
if (!sessionStorage.getItem("_swa") && !document.referrer.startsWith(location.protocol + "//" + location.host)) {
1510
setTimeout(function () {
1611
sessionStorage.setItem("_swa", "1");
1712
fetch(
@@ -22,7 +17,7 @@
2217
screen: screen.width + "x" + screen.height,
2318
id: id,
2419
utcoffset: utcoffset,
25-
})
20+
}),
2621
);
2722
}, 4500);
2823
}
@@ -31,6 +26,6 @@
3126
new URLSearchParams({
3227
id: id,
3328
page: window.location.pathname,
34-
})
29+
}),
3530
);
3631
})();

docs/script.js

+6-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
(function () {
2-
if (sessionStorage.getItem('doNotTrack') || localStorage.getItem('doNotTrack')){
3-
return
2+
if (sessionStorage.getItem("doNotTrack") || localStorage.getItem("doNotTrack")) {
3+
return;
44
}
55
var id = document.currentScript.getAttribute("data-id");
66
var utcoffset = document.currentScript.getAttribute("data-utcoffset");
7-
var server =
8-
document.currentScript.getAttribute("data-server") ||
9-
"https://t.counter.dev";
7+
var server = document.currentScript.getAttribute("data-server") || "https://t.counter.dev";
108

11-
if (
12-
!sessionStorage.getItem("_swa") &&
13-
!document.referrer.startsWith(location.protocol + "//" + location.host)
14-
) {
9+
if (!sessionStorage.getItem("_swa") && !document.referrer.startsWith(location.protocol + "//" + location.host)) {
1510
setTimeout(function () {
1611
sessionStorage.setItem("_swa", "1");
1712
fetch(
@@ -22,7 +17,7 @@
2217
screen: screen.width + "x" + screen.height,
2318
id: id,
2419
utcoffset: utcoffset,
25-
})
20+
}),
2621
);
2722
}, 4500);
2823
}
@@ -31,6 +26,6 @@
3126
new URLSearchParams({
3227
id: id,
3328
page: window.location.pathname,
34-
})
29+
}),
3530
);
3631
})();

static/components/_base.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
function tagName() {
2-
var tagName = new URL(document.currentScript.src).pathname
3-
.slice(1, -3)
4-
.replace(/\//g, "-");
2+
var tagName = new URL(document.currentScript.src).pathname.slice(1, -3).replace(/\//g, "-");
53
return tagName.slice(11);
64
}
75

0 commit comments

Comments
 (0)