-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
6,583 additions
and
7,472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
22.12.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Ignore artifacts: | ||
dist | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"printWidth": 80, | ||
"useTabs": false, | ||
"tabWidth": 2, | ||
"trailingComma": "es5", | ||
"semi": false, | ||
"singleQuote": true | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import js from '@eslint/js' | ||
import globals from 'globals' | ||
import reactHooks from 'eslint-plugin-react-hooks' | ||
import reactRefresh from 'eslint-plugin-react-refresh' | ||
import tseslint from 'typescript-eslint' | ||
import eslintConfigPrettier from 'eslint-config-prettier' | ||
|
||
export default tseslint.config( | ||
{ ignores: ['dist'] }, | ||
{ | ||
extends: [ | ||
js.configs.recommended, | ||
...tseslint.configs.recommended, | ||
eslintConfigPrettier, | ||
], | ||
files: ['**/*.{ts,tsx}'], | ||
languageOptions: { | ||
ecmaVersion: 2020, | ||
globals: globals.browser, | ||
}, | ||
plugins: { | ||
'react-hooks': reactHooks, | ||
'react-refresh': reactRefresh, | ||
}, | ||
rules: { | ||
...reactHooks.configs.recommended.rules, | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
}, | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!doctype html> | ||
<html lang="zh-TW"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>OursWeb.Net 我們的網站</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,36 @@ | ||
{ | ||
"name": "oursweb2019", | ||
"version": "0.0.1", | ||
"description": "Oursweb 2019", | ||
"main": "dist/index.html", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"start": "webpack-dev-server --mode development --open --hot", | ||
"prebuild": "npm run clean", | ||
"build": "cross-env NODE_ENV=development webpack --mode production", | ||
"build-prod": "cross-env NODE_ENV=production webpack --mode production", | ||
"postbuild": "react-snap", | ||
"clean": "rimraf dist/*" | ||
"dev": "vite", | ||
"build": "tsc -b && vite build", | ||
"lint": "eslint .", | ||
"preview": "vite preview" | ||
}, | ||
"author": "", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@hot-loader/react-dom": "16.8.6", | ||
"@types/react": "^16.8.12", | ||
"@types/react-dom": "^16.8.3", | ||
"react": "16.8.6", | ||
"react-dom": "16.8.6", | ||
"semantic-ui-css": "^2.4.1", | ||
"semantic-ui-react": "^0.86.0" | ||
"@radix-ui/themes": "^3.1.6", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1" | ||
}, | ||
"devDependencies": { | ||
"@types/webpack": "^4.4.27", | ||
"awesome-typescript-loader": "^5.2.1", | ||
"copy-webpack-plugin": "^5.0.2", | ||
"critters-webpack-plugin": "^2.3.0", | ||
"cross-env": "^5.2.0", | ||
"css-loader": "^2.1.1", | ||
"cssnano": "^4.1.10", | ||
"file-loader": "^3.0.1", | ||
"html-webpack-plugin": "^3.2.0", | ||
"mini-css-extract-plugin": "^0.5.0", | ||
"minimalcss": "^0.8.2", | ||
"node-sass": "^4.11.0", | ||
"postcss-import": "^12.0.1", | ||
"postcss-loader": "^3.0.0", | ||
"postcss-preset-env": "^6.6.0", | ||
"react-hot-loader": "^4.8.3", | ||
"react-snap": "^1.23.0", | ||
"rimraf": "^2.6.3", | ||
"sass-loader": "^7.1.0", | ||
"script-ext-html-webpack-plugin": "^2.1.3", | ||
"source-map-loader": "^0.2.4", | ||
"style-loader": "^0.23.1", | ||
"terser-webpack-plugin": "^1.2.3", | ||
"typescript": "^3.4.2", | ||
"url-loader": "^1.1.2", | ||
"webpack": "^4.29.6", | ||
"webpack-cli": "^3.3.0", | ||
"webpack-dev-server": "^3.2.1", | ||
"workbox-webpack-plugin": "^4.2.0" | ||
}, | ||
"prettier": { | ||
"printWidth": 80, | ||
"useTabs": false, | ||
"tabWidth": 2, | ||
"trailingComma": "es5", | ||
"semi": false, | ||
"singleQuote": true | ||
}, | ||
"reactSnap": { | ||
"source": "dist", | ||
"include": [ | ||
"/index.html" | ||
] | ||
"@eslint/js": "^9.17.0", | ||
"@types/node": "^22.10.2", | ||
"@types/react": "^18.3.18", | ||
"@types/react-dom": "^18.3.5", | ||
"@vitejs/plugin-react": "^4.3.4", | ||
"eslint": "^9.17.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-react-hooks": "^5.0.0", | ||
"eslint-plugin-react-refresh": "^0.4.16", | ||
"globals": "^15.14.0", | ||
"prettier": "3.4.2", | ||
"typescript": "~5.6.2", | ||
"typescript-eslint": "^8.18.2", | ||
"vite": "^6.0.5", | ||
"vite-plugin-pwa": "^0.21.1", | ||
"vite-plugin-static-copy": "^2.2.0", | ||
"vite-tsconfig-paths": "^5.1.4" | ||
} | ||
} |
Oops, something went wrong.