Skip to content

Commit 9785eb5

Browse files
committed
Format
1 parent 06888b9 commit 9785eb5

27 files changed

+4898
-2679
lines changed

pnpm-lock.yaml

Lines changed: 2790 additions & 961 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/_locales/en/messages.json

Lines changed: 210 additions & 210 deletions
Large diffs are not rendered by default.

src/_locales/ru/messages.json

Lines changed: 210 additions & 210 deletions
Large diffs are not rendered by default.

src/assets/css/dashboard.css

Lines changed: 258 additions & 256 deletions
Large diffs are not rendered by default.

src/assets/css/general.css

Lines changed: 50 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
.float-right {
2-
float: right;
3-
}
4-
.d-inline-block {
5-
display: inline-block;
6-
}
7-
.mt-0{
8-
margin-top: 0;
9-
}
10-
.mt-20{
11-
margin-top: 20px;
12-
}
13-
.ml-10 {
14-
margin-left: 10px;
15-
}
16-
.mr-10 {
17-
margin-right: 10px;
18-
}
19-
.mr-5 {
20-
margin-right: 5px;
21-
}
22-
.pr-5{
23-
padding-right: 5px;
24-
}
25-
.p-5{
26-
padding: 5px;
27-
}
28-
.text-right {
29-
text-align: right;
30-
}
31-
.text-center {
32-
text-align: center;
33-
}
34-
35-
.mt-15{
36-
margin-top: 15px;
37-
}
38-
select{
39-
border-color: #ccc;
40-
border-radius: 5px;
41-
}
42-
.w-100{
43-
width: 100%;
44-
}
45-
.w-80{
46-
width: 80%;
47-
}
48-
input[type="button"]{
2+
float: right;
3+
}
4+
.d-inline-block {
5+
display: inline-block;
6+
}
7+
.mt-0 {
8+
margin-top: 0;
9+
}
10+
.mt-20 {
11+
margin-top: 20px;
12+
}
13+
.ml-10 {
14+
margin-left: 10px;
15+
}
16+
.mr-10 {
17+
margin-right: 10px;
18+
}
19+
.mr-5 {
20+
margin-right: 5px;
21+
}
22+
.pr-5 {
23+
padding-right: 5px;
24+
}
25+
.p-5 {
26+
padding: 5px;
27+
}
28+
.text-right {
29+
text-align: right;
30+
}
31+
.text-center {
32+
text-align: center;
33+
}
34+
35+
.mt-15 {
36+
margin-top: 15px;
37+
}
38+
select {
39+
border-color: #ccc;
40+
border-radius: 5px;
41+
}
42+
.w-100 {
43+
width: 100%;
44+
}
45+
.w-80 {
46+
width: 80%;
47+
}
48+
input[type='button'] {
4949
background: #428bff;
5050
color: #fff;
5151
border-radius: 3px;
@@ -61,14 +61,13 @@ input[type="button"]{
6161
width: 200px;
6262
}
6363

64-
input[type="button"]:hover {
64+
input[type='button']:hover {
6565
background: #5c9dfe;
6666
text-decoration: none;
6767
}
6868

69-
70-
input[type="button"][disabled]{
69+
input[type='button'][disabled] {
7170
border: 1px solid #999999;
7271
background-color: #cccccc;
7372
color: #666666;
74-
}
73+
}

src/assets/css/main.css

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ body {
2424
padding: 0;
2525
margin: 0;
2626
}
27-
.no-data{
28-
text-align: center;
29-
font-size: 16px;
30-
font-weight: 600;
31-
margin-top: 30%;
27+
.no-data {
28+
text-align: center;
29+
font-size: 16px;
30+
font-weight: 600;
31+
margin-top: 30%;
3232
}
3333
.tabs {
3434
}
@@ -143,7 +143,8 @@ body {
143143
color: #428bff;
144144
}
145145
.tabs input[name='tab-control']:nth-of-type(1):checked ~ ul > li:nth-child(1) > label img {
146-
filter: brightness(0) saturate(100%) invert(59%) sepia(82%) saturate(4677%) hue-rotate(202deg) brightness(103%) contrast(101%);
146+
filter: brightness(0) saturate(100%) invert(59%) sepia(82%) saturate(4677%) hue-rotate(202deg)
147+
brightness(103%) contrast(101%);
147148
}
148149
.tabs input[name='tab-control']:nth-of-type(1):checked ~ .slider {
149150
transform: translateX(17%);
@@ -156,7 +157,8 @@ body {
156157
color: #428bff;
157158
}
158159
.tabs input[name='tab-control']:nth-of-type(2):checked ~ ul > li:nth-child(2) > label img {
159-
filter: brightness(0) saturate(100%) invert(59%) sepia(82%) saturate(4677%) hue-rotate(202deg) brightness(103%) contrast(101%);
160+
filter: brightness(0) saturate(100%) invert(59%) sepia(82%) saturate(4677%) hue-rotate(202deg)
161+
brightness(103%) contrast(101%);
160162
}
161163
.tabs input[name='tab-control']:nth-of-type(2):checked ~ .slider {
162164
transform: translateX(150%);
@@ -169,7 +171,8 @@ body {
169171
color: #428bff;
170172
}
171173
.tabs input[name='tab-control']:nth-of-type(3):checked ~ ul > li:nth-child(3) > label img {
172-
filter: brightness(0) saturate(100%) invert(59%) sepia(82%) saturate(4677%) hue-rotate(202deg) brightness(103%) contrast(101%);
174+
filter: brightness(0) saturate(100%) invert(59%) sepia(82%) saturate(4677%) hue-rotate(202deg)
175+
brightness(103%) contrast(101%);
173176
}
174177
.tabs input[name='tab-control']:nth-of-type(3):checked ~ .slider {
175178
transform: translateX(290%);
@@ -227,4 +230,4 @@ body {
227230
.tooltip:hover .tooltiptext {
228231
visibility: visible;
229232
opacity: 1;
230-
}
233+
}

src/background.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ Browser.storage.onChanged.addListener((changes, namespace) => {
1818
}
1919
});
2020

21+
Browser.runtime.onInstalled.addListener(details => {
22+
if (
23+
details.reason == 'update' &&
24+
details.previousVersion != undefined &&
25+
details.previousVersion < '2.0.0'
26+
) {
27+
}
28+
});
29+
2130
Browser.runtime.setUninstallURL('https://webtracker.online/goodbye.html');
31+
2232
scheduleJobs();
2333
initTracker();

src/block.html

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

src/compositions/active-tab.ts

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,33 @@
1-
import { extractHostname } from "./extract-hostname";
1+
import { extractHostname } from './extract-hostname';
22

33
export class ActiveTab {
44
private static instance: ActiveTab;
55
private _activeTabUrl: string | null;
66
private _activeTabDomain: string | null;
77

88
constructor() {
9-
if (ActiveTab.instance) {
10-
throw new Error("Error - use ActiveTab.getInstance()");
11-
}
12-
this._activeTabUrl = null;
13-
this._activeTabDomain = null;
9+
if (ActiveTab.instance) {
10+
throw new Error('Error - use ActiveTab.getInstance()');
11+
}
12+
this._activeTabUrl = null;
13+
this._activeTabDomain = null;
1414
}
1515

1616
static getInstance(): ActiveTab {
1717
ActiveTab.instance = ActiveTab.instance || new ActiveTab();
1818
return ActiveTab.instance;
1919
}
2020

21-
public setActiveTab(value:string | null): void
22-
{
21+
public setActiveTab(value: string | null): void {
2322
this._activeTabUrl = value;
2423
this._activeTabDomain = value != null ? extractHostname(value) : null;
2524
}
2625

27-
public getActiveTabUrl(): string | null
28-
{
26+
public getActiveTabUrl(): string | null {
2927
return this._activeTabUrl;
3028
}
3129

32-
public getActiveTabDomain(): string | null
33-
{
30+
public getActiveTabDomain(): string | null {
3431
return this._activeTabDomain;
3532
}
36-
}
33+
}

src/compositions/current-tab.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import Browser from 'webextension-polyfill';
22

3-
export async function getCurrentTab(){
4-
const tabs = await Browser.tabs.query({ active: true, currentWindow: true });
5-
// since only one tab should be active and in the current window at once
6-
// the return variable should only have one entry
7-
return tabs[0];
8-
}
3+
export async function getCurrentTab() {
4+
const tabs = await Browser.tabs.query({ active: true, currentWindow: true });
5+
// since only one tab should be active and in the current window at once
6+
// the return variable should only have one entry
7+
return tabs[0];
8+
}

0 commit comments

Comments
 (0)