Skip to content

Commit c1ef3bb

Browse files
committed
feat: First Implementation
0 parents  commit c1ef3bb

31 files changed

+3110
-0
lines changed

.eslintrc.cjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
env: { browser: true, es2020: true },
3+
extends: [
4+
'eslint:recommended',
5+
'plugin:@typescript-eslint/recommended',
6+
'plugin:react-hooks/recommended',
7+
],
8+
parser: '@typescript-eslint/parser',
9+
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
10+
plugins: ['react-refresh'],
11+
rules: {
12+
'react-refresh/only-export-components': 'warn',
13+
},
14+
}

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2023 CrawlerCode
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Redmine Time Tracking (Chrome Extensions)
2+
3+
Start-stop timer for Redmine

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/logo32.png" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Redmine Time Tracking</title>
8+
</head>
9+
<body class="w-[300px] h-[500px] mx-auto bg-white dark:bg-gray-800 dark:text-white">
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

package.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "redmine-time-tracking",
3+
"description": "Redmine Time Tracking",
4+
"version": "0.0.1",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "tsc && vite build --watch",
8+
"build": "tsc && vite build",
9+
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
10+
},
11+
"dependencies": {
12+
"@fortawesome/fontawesome-svg-core": "^6.4.0",
13+
"@fortawesome/free-solid-svg-icons": "^6.4.0",
14+
"@fortawesome/react-fontawesome": "^0.2.0",
15+
"@tanstack/react-query": "^4.29.5",
16+
"axios": "^1.4.0",
17+
"clsx": "^1.2.1",
18+
"formik": "^2.2.9",
19+
"react": "^18.2.0",
20+
"react-dom": "^18.2.0",
21+
"react-router-dom": "^6.11.0",
22+
"yup": "^1.1.1"
23+
},
24+
"devDependencies": {
25+
"@types/chrome": "^0.0.233",
26+
"@types/react": "^18.0.28",
27+
"@types/react-dom": "^18.0.11",
28+
"@typescript-eslint/eslint-plugin": "^5.57.1",
29+
"@typescript-eslint/parser": "^5.57.1",
30+
"@vitejs/plugin-react": "^4.0.0",
31+
"autoprefixer": "^10.4.14",
32+
"eslint": "^8.38.0",
33+
"eslint-plugin-react-hooks": "^4.6.0",
34+
"eslint-plugin-react-refresh": "^0.3.4",
35+
"postcss": "^8.4.23",
36+
"tailwindcss": "^3.3.2",
37+
"typescript": "^5.0.2",
38+
"vite": "^4.3.2"
39+
}
40+
}

0 commit comments

Comments
 (0)