Skip to content

Commit

Permalink
refactor(project): release 2.0 (#145)
Browse files Browse the repository at this point in the history
refactor(project): release 2.0
  • Loading branch information
buqiyuan authored Jan 30, 2024
1 parent e610b27 commit 5107996
Show file tree
Hide file tree
Showing 313 changed files with 13,326 additions and 11,135 deletions.
8 changes: 4 additions & 4 deletions .env
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# 供docker构建时使用
ENV = 'production'
# 项目名称
VITE_APP_TITLE = Admin

# 网站前缀
VITE_BASE_URL = /

# base api
VITE_BASE_API = '/api/admin/'
VITE_BASE_API_URL = '/api/admin/'
VITE_BASE_SOCKET_PATH = '/ws-api'
VITE_BASE_SOCKET_NSP = '/admin'

# mock api
VITE_MOCK_API = '/mock-api/'
VITE_MOCK_API = '/api/'

10 changes: 4 additions & 6 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# 只在开发模式中被载入
ENV = 'development'

# 网站前缀
VITE_BASE_URL = /

# base api
VITE_BASE_API = '/api/admin/'
# base api url
VITE_BASE_API_URL = '/api'
VITE_BASE_SOCKET_PATH = '/ws-api'
VITE_BASE_SOCKET_NSP = '/admin'

# mock api
VITE_MOCK_API = '/mock-api/'
VITE_BASE_SOCKET_NSP = '/auth'

VITE_DROP_CONSOLE = false
8 changes: 3 additions & 5 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# 只在生产模式中被载入
ENV = 'production'

# base api
VITE_BASE_API = 'https://nest-api.buqiyuan.site/api/admin/'
# base api url
VITE_BASE_API_URL = 'http://127.0.0.1:7001'
VITE_BASE_SOCKET_PATH = '/ws-api'
VITE_BASE_SOCKET_NSP = 'wss://nest-api.buqiyuan.site/admin'

# 网站前缀
VITE_BASE_URL = /vue3-antdv-admin/

# mock api
VITE_MOCK_API = '/mock-api/'

VITE_DROP_CONSOLE = true
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
],
overrides: [
{
files: ['*.ts', '*.tsx', '*.vue'],
files: ['*.ts', '*.js', '*.tsx', '*.vue'],
rules: {
'no-undef': 'off',
},
Expand Down
15 changes: 10 additions & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# https://docs.github.com/cn/get-started/getting-started-with-git/configuring-git-to-handle-line-endings

# Automatically normalize line endings (to LF) for all text-based files.
* text=auto eol=lf
*.ts linguist-detectable=false
*.css linguist-detectable=false
*.scss linguist-detectable=false
*.js linguist-detectable=true
*.vue linguist-detectable=true

# Declare files that will always have CRLF line endings on checkout.
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf

# Denote all files that are truly binary and should not be modified.
*.{ico,png,jpg,jpeg,gif,webp,svg,woff,woff2} binary
53 changes: 13 additions & 40 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,11 @@
{
"typescript.tsdk": "./node_modules/typescript/lib",
"typescript.preferences.importModuleSpecifier": "non-relative",
"volar.tsPlugin": true,
"volar.tsPluginStatus": false,
"npm.packageManager": "pnpm",
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"files.eol": "\n",
"eslint.probe": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"html",
"vue",
"markdown",
"json",
"jsonc"
],
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"html",
"vue",
"markdown",
"json",
"jsonc"
],
"search.exclude": {
"**/node_modules": true,
"**/*.log": true,
Expand Down Expand Up @@ -78,24 +56,17 @@
},
"stylelint.enable": true,
"stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass"],
"stylelint.packageManager": "pnpm",
"path-intellisense.mappings": {
"@/": "${workspaceRoot}/src"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
Expand All @@ -112,21 +83,23 @@
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit"
},
"[vue]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.stylelint": true
}
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"i18n-ally.localesPaths": ["src/locales/lang"],
"i18n-ally.keystyle": "nested",
"i18n-ally.sortKeys": true,
"i18n-ally.namespace": true,
"i18n-ally.pathMatcher": "{locale}/{namespace}.{ext}",
"i18n-ally.enabledParsers": ["ts"],
"i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
"i18n-ally.enabledParsers": ["json"],
"i18n-ally.sourceLanguage": "en",
"i18n-ally.displayLanguage": "zh-CN",
"i18n-ally.enabledFrameworks": ["vue", "react"]
Expand Down
2 changes: 1 addition & 1 deletion .vscode/vue3.3.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"body": [
"<script setup lang='ts'>",
"defineOptions({",
"\tname: ''",
"\tname: '${TM_FILENAME_BASE}'",
"})",
"</script>\n",
"<template>",
Expand Down
20 changes: 0 additions & 20 deletions mock/_createProductionServer.ts

This file was deleted.

64 changes: 0 additions & 64 deletions mock/_util.ts

This file was deleted.

37 changes: 0 additions & 37 deletions mock/demo/hero/index.ts

This file was deleted.

28 changes: 0 additions & 28 deletions mock/demo/select-demo.ts

This file was deleted.

Loading

0 comments on commit 5107996

Please sign in to comment.