Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamerblue committed Aug 6, 2022
0 parents commit 7e47cac
Show file tree
Hide file tree
Showing 36 changed files with 133,823 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
extends: [
'alloy',
'alloy/react',
'alloy/typescript',
],
env: {
// Your environments (which contains several predefined global variables)
//
// browser: true,
// node: true,
// mocha: true,
// jest: true,
// jquery: true
},
globals: {
// Your global variables (setting to false means it's not allowed to be reassigned)
//
// myGlobal: false
},
rules: {
// Customize your rules
},
};
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/node_modules
/.env.local
/.umirc.local.ts
/config/config.local.ts
/src/.umi
/src/.umi-production
/dist
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
registry=https://registry.npmmirror.com
auto-install-peers=true
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"eslint-config-alloy/.prettierrc.js"
19 changes: 19 additions & 0 deletions .umirc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineConfig } from 'umi';

export default defineConfig({
nodeModulesTransform: {
type: 'none',
},
favicon: '/favicon.ico',
hash: true,
antd: {},
analytics: {
ga: 'G-D6CVTJBDZT',
},
ssr: {},
dynamicImport: {},
fastRefresh: {},
tailwindcss: {
tailwindCssFilePath: '@/tailwind.css',
},
});
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"files.eol": "\n",
"editor.tabSize": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"eslint.validate": ["javascript", "javascriptreact", "vue", "typescript", "typescriptreact"],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"files.associations": {
"*.css": "tailwindcss"
},
"editor.quickSuggestions": {
"strings": true
}
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# rankland-fe
1 change: 1 addition & 0 deletions config/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default {};
45 changes: 45 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"private": true,
"author": "bLue <[email protected]>",
"scripts": {
"dev": "umi dev",
"build": "umi build",
"postinstall": "umi generate tmp",
"start": "npm run dev",
"theme:antd": "lessc --js src/styles/antd.light.less src/styles/antd.light.css && lessc --js src/styles/antd.dark.less src/styles/antd.dark.css"
},
"dependencies": {
"@algoux/standard-ranklist-renderer-component": "^0.2.1",
"@ant-design/icons": "^4.7.0",
"ahooks": "^3.5.2",
"antd": "^4.21.7",
"axios": "^0.27.2",
"moment": "^2.29.4",
"rc-dialog": "^8.9.0",
"react": "^17",
"react-dom": "^17",
"react-error-boundary": "^3.1.4",
"umi": "^3.5.31"
},
"devDependencies": {
"@algoux/standard-ranklist": "^0.2.1",
"@types/react": "^17",
"@types/react-dom": "^17",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"@umijs/plugin-analytics": "^0.2.3",
"@umijs/plugin-antd": "^0.15.0",
"@umijs/plugin-helmet": "^1.1.4",
"@umijs/plugin-model": "^2.6.2",
"@umijs/plugin-request": "^2.9.0",
"@umijs/plugin-sass": "^1.1.1",
"eslint": "^8.20.0",
"eslint-config-alloy": "^4.6.2",
"eslint-plugin-react": "^7.30.1",
"less": "^4.1.3",
"prettier": "^2.7.1",
"typescript": "4.1.2",
"umi-plugin-tailwindcss": "^3.2.1",
"yorkie": "^2.0.0"
}
}
Loading

0 comments on commit 7e47cac

Please sign in to comment.