Skip to content

Commit

Permalink
refactor: renew code
Browse files Browse the repository at this point in the history
  • Loading branch information
recallwei committed Mar 17, 2024
1 parent f6ec540 commit 5beca1b
Show file tree
Hide file tree
Showing 290 changed files with 5,824 additions and 10,366 deletions.
1 change: 0 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"lottiefiles",
"reduxjs",
"signup",
"stylelint",
"tailwindcss",
"tanstack",
"Taskward",
Expand Down
2 changes: 1 addition & 1 deletion web/.env.production → .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ VITE_TASKWARD_BASE_URL=
VITE_BRUCE_WORLD_BASE_URL=
VITE_GITHUB_CLIENT_ID=
VITE_VERSION=
VITE_SHOW_REACT_QUERY_DEVTOOL=
VITE_SHOW_REACT_QUERY_DEVTOOL=
15 changes: 15 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"prettier"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react"],
"root": true,
"rules": {
"@typescript-eslint/no-explicit-any": "off"
}
}
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# Auto detect text files and perform LF normalization
* text=auto
*.js eol=lf
*.jsx eol=lf
*.ts eol=lf
*.tsx eol=lf
*.vue eol=lf
*.css eol=lf
*.scss eol=lf
*.md eol=lf
*.mdx eol=lf
*.json eol=lf
*.yml eol=lf
21 changes: 20 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
*.sw?

.env.*.local
.env.local
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
8 changes: 0 additions & 8 deletions .markdownlint.json

This file was deleted.

2 changes: 1 addition & 1 deletion web/.prettierignore → .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
build
public
node_modules
node_modules
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@bit-ocean/prettier-config"
13 changes: 13 additions & 0 deletions @types/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/// <reference types="vite/client" />

interface ImportMetaEnv {
readonly VITE_TASKWARD_BASE_URL: string
readonly VITE_BRUCE_WORLD_BASE_URL: string
readonly VITE_GITHUB_CLIENT_ID: string
readonly VITE_VERSION: string
readonly VITE_SHOW_REACT_QUERY_DEVTOOL: string
}

interface ImportMeta {
readonly env: ImportMetaEnv
}
2 changes: 2 additions & 0 deletions @types/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare module '@tailwindcss/typography'
declare module 'daisyui'
File renamed without changes.
10 changes: 5 additions & 5 deletions doc/CHANGELOG.md → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## v1.1
## v1.1.5

- Refactor code.

## v1.1.4

Expand All @@ -27,15 +29,13 @@
- Brand new feature: the note's tasks with links.
- Click outside and note content will not be cleared when creating a note.

## v1.0

### v1.0.2
## v1.0.2

- Fix the display of the whitespace error.
- Add animation feedback after archiving, unarchiving or deleting a note.
- Add notification after copy note description.

### v1.0.1
## v1.0.1

- Fix Firefox compatibility.
- Fix edit archived note error.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Bruce
Copyright (c) 2022 Taskward <https://github.com/recallwei>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
# Taskward
# Taskward v1 Website

Taskward is a Todo&Task application.
> Taskward is a Todo&Task application.
## Stack
## Tech Stack

- React
- TypeScript
- Vite

## Library

- Tailwind
- TailwindCSS
- DaisyUI
- React-Redux
- React-Redux-Toolkit
- React-Query
- React-Hook-Form & yup
- React-i18n-next
Expand All @@ -22,5 +19,3 @@ Taskward is a Todo&Task application.
- Host by Vercel
- UI Design inspired by Discord and Google Keep
- Icon by Google Material Design Icons

## Contributor
43 changes: 43 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!doctype html>
<html
lang="en"
data-theme="taskward"
>
<head>
<meta charset="UTF-8" />
<link
rel="stylesheet"
type="text/css"
href="/src/css/index.css"
/>
<link
rel="icon"
type="image/svg+xml"
href="/taskward.png"
/>
<meta
name="description"
content="Taskward means task-oriented, is a Todo&Tasks app. It can help you to record something you plan to do."
/>
<meta
name="keywords"
content="Todo, Task, Taskward"
/>
<meta
name="author"
content="Bruce Song"
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Taskward</title>
</head>
<body>
<div id="root"></div>
<script
type="module"
src="/src/index.tsx"
></script>
</body>
</html>
66 changes: 66 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"name": "taskward-v1-website",
"type": "module",
"scripts": {
"dev": "vite",
"prod": "vite --mode production",
"build": "tsc && vite build",
"preview": "vite preview",
"cspell:check": "cspell **",
"eslint:check": "eslint .",
"eslint:fix": "eslint --fix .",
"prettier:check": "prettier --check .",
"prettier:fix": "prettier --write .",
"generate:env": "bun scripts/generateEnv.ts",
"prepare": "husky install"
},
"dependencies": {
"@hookform/resolvers": "^2.9.11",
"@reduxjs/toolkit": "^1.8.3",
"@tanstack/react-query": "^4.2.3",
"axios": "^0.27.2",
"clsx": "^2.1.0",
"daisyui": "^2.31.0",
"dayjs": "^1.11.10",
"i18next": "^23.10.1",
"jwt-decode": "^3.1.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.34.2",
"react-i18next": "^11.18.3",
"react-redux": "^8.0.2",
"react-router-dom": "^6.3.0",
"uuid": "^9.0.1",
"yup": "^0.32.11"
},
"devDependencies": {
"@bit-ocean/prettier-config": "^0.0.10",
"@hookform/devtools": "^4.3.1",
"@tanstack/react-query-devtools": "^4.2.3",
"@types/node": "^20.11.28",
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@vitejs/plugin-react": "^2.2.0",
"autoprefixer": "^10.4.18",
"bun": "^1.0.31",
"cspell": "^8.6.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.34.1",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"postcss": "^8.4.35",
"prettier": "^3.2.5",
"tailwindcss": "^3.4.1",
"typescript": "~5.3.3",
"vite": "^3.0.0"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
},
"private": true,
"license": "MIT"
}

0 comments on commit 5beca1b

Please sign in to comment.