Skip to content

Commit dc2e8a2

Browse files
committed
😎增加vue3版本示例工程
1 parent 5e16d4a commit dc2e8a2

File tree

807 files changed

+73491
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

807 files changed

+73491
-7
lines changed

backend/Admin.NET.Core/Admin.NET.Core.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
</ItemGroup>
3737

3838
<ItemGroup>
39-
<PackageReference Include="Furion" Version="2.6.0" />
40-
<PackageReference Include="Furion.Extras.Authentication.JwtBearer" Version="2.6.0" />
41-
<PackageReference Include="Furion.Extras.Logging.Serilog" Version="2.6.0" />
42-
<PackageReference Include="Furion.Extras.ObjectMapper.Mapster" Version="2.6.0" />
39+
<PackageReference Include="Furion" Version="2.6.1" />
40+
<PackageReference Include="Furion.Extras.Authentication.JwtBearer" Version="2.6.1" />
41+
<PackageReference Include="Furion.Extras.Logging.Serilog" Version="2.6.1" />
42+
<PackageReference Include="Furion.Extras.ObjectMapper.Mapster" Version="2.6.1" />
4343
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="5.0.6" />
4444
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="5.0.1" />
45-
<PackageReference Include="MiniExcel" Version="0.14.8" />
45+
<PackageReference Include="MiniExcel" Version="0.15.2" />
4646
<PackageReference Include="OnceMi.AspNetCore.OSS" Version="1.0.3" />
4747
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
4848
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.2.9" />

backend/Admin.NET.Core/Service/Menu/SysMenuService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ public async Task<List<AntDesignTreeNode>> GetLoginMenusAntDesign(long userId, s
111111
{
112112
Id = u.Id,
113113
Pid = u.Pid,
114+
Path = u.OpenType == MenuOpenType.OUTER ? u.Link : u.Router,
114115
Name = u.Code,
115116
Component = u.Component,
116-
Redirect = u.OpenType == MenuOpenType.OUTER ? u.Link : u.Redirect,
117-
Path = u.OpenType == MenuOpenType.OUTER ? u.Link : u.Router,
117+
Redirect = u.OpenType == MenuOpenType.OUTER ? u.Link : u.Redirect,
118118
Meta = new Meta
119119
{
120120
Title = u.Name,

doc/img/bf-01.png

557 KB
Loading

doc/img/bf-02.png

235 KB
Loading

frontend-vue3/.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
root = true
2+
3+
[*]
4+
charset=utf-8
5+
end_of_line=lf
6+
insert_final_newline=true
7+
indent_style=space
8+
indent_size=2
9+
max_line_length = 100
10+
11+
[*.{yml,yaml,json}]
12+
indent_style = space
13+
indent_size = 2
14+
15+
[*.md]
16+
trim_trailing_whitespace = false
17+
18+
[Makefile]
19+
indent_style = tab

frontend-vue3/.env

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# port
2+
VITE_PORT = 3100
3+
4+
# spa-title
5+
VITE_GLOB_APP_TITLE = Admin.NET
6+
7+
# spa shortname
8+
VITE_GLOB_APP_SHORT_NAME = Admin.NET

frontend-vue3/.env.development

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
VITE_PORT = 3100
2+
3+
# Whether to open mock
4+
VITE_USE_MOCK = true
5+
6+
# public path
7+
VITE_PUBLIC_PATH = /
8+
9+
# Cross-domain proxy, you can configure multiple
10+
# Please note that no line breaks
11+
VITE_PROXY = [["/api","http://localhost:5566"],["/upload","http://localhost:3001/upload"]]
12+
# VITE_PROXY=[["/api","https://vvbin.cn/test"]]
13+
14+
# Delete console
15+
VITE_DROP_CONSOLE = false
16+
17+
# Basic interface address SPA
18+
VITE_GLOB_API_URL=/api
19+
20+
# File upload address, optional
21+
VITE_GLOB_UPLOAD_URL=/upload
22+
23+
# Interface prefix
24+
VITE_GLOB_API_URL_PREFIX=

frontend-vue3/.env.production

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Whether to open mock
2+
VITE_USE_MOCK = true
3+
4+
# public path
5+
VITE_PUBLIC_PATH = /
6+
7+
# Delete console
8+
VITE_DROP_CONSOLE = true
9+
10+
# Whether to enable gzip or brotli compression
11+
# Optional: gzip | brotli | none
12+
# If you need multiple forms, you can use `,` to separate
13+
VITE_BUILD_COMPRESS = 'none'
14+
15+
# Whether to delete origin files when using compress, default false
16+
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
17+
18+
# Basic interface address SPA
19+
VITE_GLOB_API_URL=/basic-api
20+
21+
# File upload address, optional
22+
# It can be forwarded by nginx or write the actual address directly
23+
VITE_GLOB_UPLOAD_URL=/upload
24+
25+
# Interface prefix
26+
VITE_GLOB_API_URL_PREFIX=
27+
28+
# Whether to enable image compression
29+
VITE_USE_IMAGEMIN= true
30+
31+
# use pwa
32+
VITE_USE_PWA = false
33+
34+
# Is it compatible with older browsers
35+
VITE_LEGACY = false

frontend-vue3/.eslintignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
*.sh
3+
node_modules
4+
*.md
5+
*.woff
6+
*.ttf
7+
.vscode
8+
.idea
9+
dist
10+
/public
11+
/docs
12+
.husky
13+
.local
14+
/bin
15+
Dockerfile

frontend-vue3/.eslintrc.js

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// @ts-check
2+
const { defineConfig } = require('eslint-define-config');
3+
module.exports = defineConfig({
4+
root: true,
5+
env: {
6+
browser: true,
7+
node: true,
8+
es6: true,
9+
},
10+
parser: 'vue-eslint-parser',
11+
parserOptions: {
12+
parser: '@typescript-eslint/parser',
13+
ecmaVersion: 2020,
14+
sourceType: 'module',
15+
jsxPragma: 'React',
16+
ecmaFeatures: {
17+
jsx: true,
18+
},
19+
},
20+
extends: [
21+
'plugin:vue/vue3-recommended',
22+
'plugin:@typescript-eslint/recommended',
23+
'prettier',
24+
'plugin:prettier/recommended',
25+
],
26+
rules: {
27+
'@typescript-eslint/ban-ts-ignore': 'off',
28+
'@typescript-eslint/explicit-function-return-type': 'off',
29+
'@typescript-eslint/no-explicit-any': 'off',
30+
'@typescript-eslint/no-var-requires': 'off',
31+
'@typescript-eslint/no-empty-function': 'off',
32+
'vue/custom-event-name-casing': 'off',
33+
'no-use-before-define': 'off',
34+
'@typescript-eslint/no-use-before-define': 'off',
35+
'@typescript-eslint/ban-ts-comment': 'off',
36+
'@typescript-eslint/ban-types': 'off',
37+
'@typescript-eslint/no-non-null-assertion': 'off',
38+
'@typescript-eslint/explicit-module-boundary-types': 'off',
39+
'@typescript-eslint/no-unused-vars': [
40+
'error',
41+
{
42+
argsIgnorePattern: '^_',
43+
varsIgnorePattern: '^_',
44+
},
45+
],
46+
'no-unused-vars': [
47+
'error',
48+
{
49+
argsIgnorePattern: '^_',
50+
varsIgnorePattern: '^_',
51+
},
52+
],
53+
'space-before-function-paren': 'off',
54+
55+
'vue/attributes-order': 'off',
56+
'vue/one-component-per-file': 'off',
57+
'vue/html-closing-bracket-newline': 'off',
58+
'vue/max-attributes-per-line': 'off',
59+
'vue/multiline-html-element-content-newline': 'off',
60+
'vue/singleline-html-element-content-newline': 'off',
61+
'vue/attribute-hyphenation': 'off',
62+
'vue/require-default-prop': 'off',
63+
'vue/html-self-closing': [
64+
'error',
65+
{
66+
html: {
67+
void: 'always',
68+
normal: 'never',
69+
component: 'always',
70+
},
71+
svg: 'always',
72+
math: 'always',
73+
},
74+
],
75+
},
76+
});

0 commit comments

Comments
 (0)