Skip to content

Commit 55707a8

Browse files
committed
Merge branch 'main' into qr
2 parents 28c6fd3 + f7954b2 commit 55707a8

Some content is hidden

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

70 files changed

+1191
-1309
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"files.eol": "\n",
1414
"cSpell.words": [
1515
"Auths",
16+
"Cascader",
1617
"countup",
1718
"daterange",
1819
"dont",

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ All notable changes to Time Tracker will be documented in this file.
44

55
It is worth mentioning that the release time of each change refers to the time when the installation package is submitted to the webstore. It is about one week for Edge to moderate packages, while only 1-2 days for Chrome and Firefox.
66

7+
## [2.5.6] - 2024-12-02
8+
9+
- Fixed bugs of badge
10+
11+
## [2.5.5] - 2024-11-29
12+
13+
- Supported option to stop tracking if no activity detected
14+
15+
## [2.5.4] - 2024-11-25
16+
17+
- Optimized the performance of popup page
18+
19+
## [2.5.3] - 2024-11-23
20+
21+
- Refactored the popup page
22+
723
## [2.5.2] - 2024-11-03
824

925
- Fixed a bug of Firefox v132

README.md

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,6 @@
1010

1111
Time Tracker is a browser extension to track the time you spent on all websites. It's built by webpack, TypeScript and Element-plus. And you can install it for Firefox, Chrome and Edge.
1212

13-
Time Tracker can
14-
15-
- help you count the time you browsing and the visit count on each website.
16-
- help you count the time you read local files with browsers.
17-
- help you analyze your browsing habit by time period and display it as a histogram.
18-
- support whitelist to filter out websites that need not stat.
19-
- combine statistics result of multiple sites, and supports to customize the rules of combination.
20-
- support to set the maximum time for browsing a specific website each day to help you key away from time wasting.
21-
- support to export files formatted _.csv_ and _.json_.
22-
- support dark mode.
23-
- support to sync data with GitHub Gist across several browser clients.
24-
- support to count the time of any URLs described by Ant Expressions, e.g. github.com/sheepzh/timer/\*\*
25-
2613
## Install
2714

2815
[![Chrome](https://img.shields.io/chrome-web-store/v/dkdhhcbjijekmneelocdllcldcpmekmm?color=orange&label=Google%20Chrome)](https://chrome.google.com/webstore/detail/%E7%BD%91%E8%B4%B9%E5%BE%88%E8%B4%B5-%E4%B8%8A%E7%BD%91%E6%97%B6%E9%97%B4%E7%BB%9F%E8%AE%A1/dkdhhcbjijekmneelocdllcldcpmekmm?hl=zh-CN)
@@ -41,6 +28,29 @@ Time Tracker can
4128

4229
![User Count](https://gist.githubusercontent.com/sheepzh/6aaf4c22f909db73b533491167da129b/raw/user_count.svg)
4330

31+
32+
## Screenshots
33+
34+
<div align="center">
35+
<img src="./doc/screenshot/popup.png" width="100%">
36+
<p>Pie Chart on the Popup Page</p>
37+
</div>
38+
39+
<div align="center">
40+
<img src="./doc/screenshot/app.png" width="100%">
41+
<p>Dashboard</p>
42+
</div>
43+
44+
<div align="center">
45+
<img src="./doc/screenshot/analyze.png" width="100%">
46+
<p>Analytical Report</p>
47+
</div>
48+
49+
<div align="center">
50+
<img src="./doc/screenshot/habit.png" width="100%">
51+
<p>Habit Report</p>
52+
</div>
53+
4454
## Contribution
4555

4656
There are some things you can do to contribute to this software.

doc/screenshot/analyze.png

232 KB
Loading

doc/screenshot/app.png

-6.34 KB
Loading

doc/screenshot/habit.png

160 KB
Loading

doc/screenshot/popup.png

-36.7 KB
Loading

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "timer",
3-
"version": "2.5.2",
3+
"version": "2.5.6",
44
"description": "Time tracker",
55
"homepage": "https://www.wfhg.cc",
66
"scripts": {
@@ -26,14 +26,14 @@
2626
"devDependencies": {
2727
"@babel/plugin-transform-modules-commonjs": "^7.25.9",
2828
"@babel/preset-env": "^7.26.0",
29-
"@crowdin/crowdin-api-client": "^1.39.0",
30-
"@types/chrome": "0.0.280",
29+
"@crowdin/crowdin-api-client": "^1.39.1",
30+
"@types/chrome": "0.0.287",
3131
"@types/copy-webpack-plugin": "^10.1.3",
3232
"@types/decompress": "^4.2.7",
3333
"@types/echarts": "^4.9.22",
3434
"@types/generate-json-webpack-plugin": "^0.3.7",
3535
"@types/jest": "^29.5.14",
36-
"@types/node": "^22.8.7",
36+
"@types/node": "^22.10.1",
3737
"@types/psl": "^1.1.3",
3838
"@types/punycode": "^2.1.4",
3939
"@types/webpack": "^5.28.5",
@@ -43,43 +43,43 @@
4343
"copy-webpack-plugin": "^12.0.2",
4444
"css-loader": "^7.1.2",
4545
"decompress": "^4.2.1",
46-
"eslint": "^9.14.0",
46+
"eslint": "^9.16.0",
4747
"filemanager-webpack-plugin": "^8.0.0",
4848
"generate-json-webpack-plugin": "^2.0.0",
4949
"html-webpack-plugin": "^5.6.3",
5050
"jest": "^29.7.0",
5151
"jest-environment-jsdom": "^29.7.0",
5252
"mini-css-extract-plugin": "^2.9.2",
53-
"postcss": "^8.4.47",
53+
"postcss": "^8.4.49",
5454
"postcss-loader": "^8.1.1",
55-
"postcss-rtlcss": "^5.5.0",
56-
"sass": "^1.80.6",
55+
"postcss-rtlcss": "^5.5.1",
56+
"sass": "^1.81.0",
5757
"sass-loader": "^16.0.3",
5858
"style-loader": "^4.0.0",
5959
"ts-jest": "^29.2.5",
6060
"ts-loader": "^9.5.1",
6161
"ts-node": "^10.9.2",
6262
"tsconfig-paths": "^4.2.0",
6363
"tslib": "^2.8.1",
64-
"typescript": "5.6.3",
64+
"typescript": "5.7.2",
6565
"url-loader": "^4.1.1",
6666
"webpack": "^5.96.1",
6767
"webpack-bundle-analyzer": "^4.10.2",
6868
"webpack-cli": "^5.1.4"
6969
},
7070
"dependencies": {
7171
"@element-plus/icons-vue": "^2.3.1",
72-
"@vueuse/core": "^11.2.0",
72+
"@vueuse/core": "^12.0.0",
7373
"countup.js": "^2.8.0",
7474
"echarts": "^5.5.1",
75-
"element-plus": "2.8.7",
75+
"element-plus": "2.9.0",
7676
"js-base64": "^3.7.7",
7777
"punycode": "^2.3.1",
7878
"stream-browserify": "^3.0.0",
79-
"vue": "^3.5.12",
80-
"vue-router": "^4.4.5"
79+
"vue": "^3.5.13",
80+
"vue-router": "^4.5.0"
8181
},
8282
"engines": {
8383
"node": ">=20"
8484
}
85-
}
85+
}

public/popup.html

Lines changed: 0 additions & 167 deletions
This file was deleted.

src/api/chrome/action.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { handleError } from "./common"
33

44
const action = IS_MV3 ? chrome.action : chrome.browserAction
55

6-
export function setBadgeText(text: string, tabId: number): Promise<void> {
7-
return new Promise(resolve => action?.setBadgeText({ tabId, text }, () => {
6+
export function setBadgeText(text: string): Promise<void> {
7+
return new Promise(resolve => action?.setBadgeText({ text }, () => {
88
handleError('setBadgeText')
99
resolve()
1010
}))

0 commit comments

Comments
 (0)