Skip to content

Commit 1484759

Browse files
committed
first commit
0 parents  commit 1484759

File tree

240 files changed

+34474
-0
lines changed

Some content is hidden

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

240 files changed

+34474
-0
lines changed

.editorconfig

+19
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

.env

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Environment variables declared in this file are automatically made available to Prisma.
2+
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema
3+
4+
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB (Preview) and CockroachDB (Preview).
5+
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
6+
7+
DATABASE_URL="mysql://lessjs:ikYXTteAJKdepi2W@192.168.31.199:3306/lessjs"

.eslintignore

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

.eslintrc.js

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

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.gitignore copy

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.prettierignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node_modules
2+
dist
3+
build
4+
5+
.local
6+
.output.js
7+
8+
**/*.svg
9+
**/*.sh
10+
11+
/public/*

.prettierrc.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
tabWidth: 2,
3+
printWidth: 100,
4+
jsxSingleQuote: true,
5+
jsxBracketSameLine: true,
6+
singleQuote: true,
7+
semi: false,
8+
// trailingComma: 'none', // 最后一个对象元素加逗号
9+
// vueIndentScriptAndStyle: true,
10+
arrowParens: 'always', // (x) => {} 是否要有小括号
11+
// proseWrap: 'never',
12+
}

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## hooks-vue-starter
2+
3+
Use this template:
4+
5+
```bash
6+
npx degit https://github.com/midwayjs/hooks/examples/vue ./hooks-app
7+
```
8+
9+
Use `npm install` to install the dependencies
10+
11+
## Commands
12+
13+
- `npm run dev`: Starts the development server
14+
- `npm run build`: Builds the application for production
15+
- `npm run start`: Runs the application in production mode
16+
17+
## File Structure
18+
19+
- `src`: source code, include backend and frontend
20+
- `api`: backend code
21+
- `others`: frontend code
22+
- `public`: static files
23+
- `midway.config.ts`: project config
24+
- `index.html`: entry file

auto-imports.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Generated by 'unplugin-auto-import'
2+
// We suggest you to commit this file into source control
3+
declare global {
4+
5+
}
6+
export {}

components.d.ts

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
// generated by unplugin-vue-components
2+
// We suggest you to commit this file into source control
3+
// Read more: https://github.com/vuejs/vue-next/pull/3399
4+
import '@vue/runtime-core'
5+
6+
declare module '@vue/runtime-core' {
7+
export interface GlobalComponents {
8+
Column: typeof import('./src/components/table/Column.vue')['default']
9+
ElAlert: typeof import('element-plus/es')['ElAlert']
10+
ElAside: typeof import('element-plus/es')['ElAside']
11+
ElAvatar: typeof import('element-plus/es')['ElAvatar']
12+
ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
13+
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
14+
ElButton: typeof import('element-plus/es')['ElButton']
15+
ElButtonGroup: typeof import('element-plus/es')['ElButtonGroup']
16+
ElCard: typeof import('element-plus/es')['ElCard']
17+
ElCascader: typeof import('element-plus/es')['ElCascader']
18+
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
19+
ElCheckboxButton: typeof import('element-plus/es')['ElCheckboxButton']
20+
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
21+
ElCol: typeof import('element-plus/es')['ElCol']
22+
ElColorPicker: typeof import('element-plus/es')['ElColorPicker']
23+
ElContainer: typeof import('element-plus/es')['ElContainer']
24+
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
25+
ElDescriptions: typeof import('element-plus/es')['ElDescriptions']
26+
ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem']
27+
ElDialog: typeof import('element-plus/es')['ElDialog']
28+
ElDivider: typeof import('element-plus/es')['ElDivider']
29+
ElDropdown: typeof import('element-plus/es')['ElDropdown']
30+
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
31+
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
32+
ElEmpty: typeof import('element-plus/es')['ElEmpty']
33+
ElFooter: typeof import('element-plus/es')['ElFooter']
34+
ElForm: typeof import('element-plus/es')['ElForm']
35+
ElFormItem: typeof import('element-plus/es')['ElFormItem']
36+
ElHeader: typeof import('element-plus/es')['ElHeader']
37+
ElIcon: typeof import('element-plus/es')['ElIcon']
38+
ElImage: typeof import('element-plus/es')['ElImage']
39+
ElInput: typeof import('element-plus/es')['ElInput']
40+
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
41+
ElMain: typeof import('element-plus/es')['ElMain']
42+
ElMenu: typeof import('element-plus/es')['ElMenu']
43+
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
44+
ElMenuItemGroup: typeof import('element-plus/es')['ElMenuItemGroup']
45+
ElOption: typeof import('element-plus/es')['ElOption']
46+
ElPagination: typeof import('element-plus/es')['ElPagination']
47+
ElPopover: typeof import('element-plus/es')['ElPopover']
48+
ElRadio: typeof import('element-plus/es')['ElRadio']
49+
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
50+
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
51+
ElRate: typeof import('element-plus/es')['ElRate']
52+
ElRow: typeof import('element-plus/es')['ElRow']
53+
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
54+
ElSelect: typeof import('element-plus/es')['ElSelect']
55+
ElSelectV2: typeof import('element-plus/es')['ElSelectV2']
56+
ElSlider: typeof import('element-plus/es')['ElSlider']
57+
ElStep: typeof import('element-plus/es')['ElStep']
58+
ElSteps: typeof import('element-plus/es')['ElSteps']
59+
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
60+
ElSwitch: typeof import('element-plus/es')['ElSwitch']
61+
ElTable: typeof import('element-plus/es')['ElTable']
62+
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
63+
ElTabPane: typeof import('element-plus/es')['ElTabPane']
64+
ElTabs: typeof import('element-plus/es')['ElTabs']
65+
ElTag: typeof import('element-plus/es')['ElTag']
66+
ElTimePicker: typeof import('element-plus/es')['ElTimePicker']
67+
ElTimeSelect: typeof import('element-plus/es')['ElTimeSelect']
68+
ElTooltip: typeof import('element-plus/es')['ElTooltip']
69+
ElTransfer: typeof import('element-plus/es')['ElTransfer']
70+
ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect']
71+
ElUpload: typeof import('element-plus/es')['ElUpload']
72+
Item: typeof import('./src/components/table/Item.vue')['default']
73+
LaButton: typeof import('./src/components/form/components/LaButton.vue')['default']
74+
LaCascader: typeof import('./src/components/form/components/LaCascader.vue')['default']
75+
LaCheckBox: typeof import('./src/components/form/components/LaCheckBox.vue')['default']
76+
LaColorPicker: typeof import('./src/components/form/components/LaColorPicker.vue')['default']
77+
LaDatePicker: typeof import('./src/components/form/components/LaDatePicker.vue')['default']
78+
LaDialog: typeof import('./src/components/dialog/LaDialog.vue')['default']
79+
'LaDialog copy': typeof import('./src/components/dialog/LaDialog copy.vue')['default']
80+
LaDialogForm: typeof import('./src/components/dialog-form/LaDialogForm.vue')['default']
81+
LaDrawer: typeof import('./src/components/drawer/LaDrawer.vue')['default']
82+
LaForm: typeof import('./src/components/form/LaForm.vue')['default']
83+
LaIconPicker: typeof import('./src/components/icon-picker/LaIconPicker.vue')['default']
84+
'LaIconPicker copy': typeof import('./src/components/icon-picker/LaIconPicker copy.vue')['default']
85+
LaIconPicker1: typeof import('./src/components/icon-picker/LaIconPicker1.vue')['default']
86+
LaInput: typeof import('./src/components/form/components/LaInput.vue')['default']
87+
LaInputNumber: typeof import('./src/components/form/components/LaInputNumber.vue')['default']
88+
LaLink: typeof import('./src/components/link/LaLink.vue')['default']
89+
LaRadio: typeof import('./src/components/form/components/LaRadio.vue')['default']
90+
LaRate: typeof import('./src/components/form/components/LaRate.vue')['default']
91+
LaSelect: typeof import('./src/components/form/components/LaSelect.vue')['default']
92+
LaSlider: typeof import('./src/components/form/components/LaSlider.vue')['default']
93+
LaSwitch: typeof import('./src/components/form/components/LaSwitch.vue')['default']
94+
LaTable: typeof import('./src/components/table/LaTable.vue')['default']
95+
LaTimePicker: typeof import('./src/components/form/components/LaTimePicker.vue')['default']
96+
LaTimeSelect: typeof import('./src/components/form/components/LaTimeSelect.vue')['default']
97+
LaTransfer: typeof import('./src/components/form/components/LaTransfer.vue')['default']
98+
LaTreeSelect: typeof import('./src/components/form/components/LaTreeSelect.vue')['default']
99+
LaUpload: typeof import('./src/components/form/components/LaUpload.vue')['default']
100+
Loading: typeof import('element-plus/es')['ElLoadingDirective']
101+
RouterLink: typeof import('vue-router')['RouterLink']
102+
RouterView: typeof import('vue-router')['RouterView']
103+
TableItem: typeof import('./src/components/table/TableItem.vue')['default']
104+
}
105+
}
106+
107+
export {}

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Less Admin</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)