Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD m78-fe #819

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions m78-all/m78-fe/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
6 changes: 6 additions & 0 deletions m78-all/m78-fe/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
VITE_GLOB_API_URL=/api/
VITE_GLOB_API_NEW_URL=/api/
VITE_GLOB_Z_API_URL=/api/z/
VITE_APP_STATIC_PATH=/
VITE_APP_ROUTER_PATH=/
VITE_GLOB_API_NEW_URL1=/open-apis/ai-plugin-new/
16 changes: 16 additions & 0 deletions m78-all/m78-fe/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
###
# @Description:
# @Date: 2023-10-25 19:51:39
# @LastEditTime: 2024-01-08 10:24:01
###

# 应用环境
VUE_APP_ENV=development

# 指定构建模式
NODE_ENV=development

# 部署路径
VITE_APP_PUBLIC_PATH=/

VITE_APP_STATIC_PATH=/
16 changes: 16 additions & 0 deletions m78-all/m78-fe/.env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
###
# @Description:
# @Date: 2023-10-25 19:51:54
# @LastEditTime: 2024-01-08 10:24:09
###

# 应用环境
VUE_APP_ENV=production

# 指定构建模式
NODE_ENV=production

# 部署路径
VITE_APP_PUBLIC_PATH=/

VITE_APP_STATIC_PATH=/
4 changes: 4 additions & 0 deletions m78-all/m78-fe/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/build/
/config/
/dist/
/*.js
22 changes: 22 additions & 0 deletions m78-all/m78-fe/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier'
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
//在rules中添加自定义规则
//关闭组件命名规则
'vue/multi-word-component-names': 'off'
}
}
37 changes: 37 additions & 0 deletions m78-all/m78-fe/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.vscode
.history

.vite-ssg-temp
# lock
yarn.lock
package-lock.json
pnpm-lock.yaml

2 changes: 2 additions & 0 deletions m78-all/m78-fe/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
8 changes: 8 additions & 0 deletions m78-all/m78-fe/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "none"
}
25 changes: 25 additions & 0 deletions m78-all/m78-fe/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# m78

## 项目设置

```sh
npm install
```

### 本地启动

```sh
npm run dev
```

### 构建

```sh
npm run build
```

### lint

```sh
npm run lint
```
1 change: 1 addition & 0 deletions m78-all/m78-fe/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
13 changes: 13 additions & 0 deletions m78-all/m78-fe/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AI</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
81 changes: 81 additions & 0 deletions m78-all/m78-fe/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"name": "m78",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite",
"serve": "vite",
"build": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"format": "prettier --write src/"
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
"@microsoft/fetch-event-source": "^2.0.1",
"@pixi/animate": "^3.0.1",
"@traptitech/markdown-it-katex": "^3.6.0",
"@vue-flow/background": "^1.3.0",
"@vue-flow/controls": "^1.1.1",
"@vue-flow/core": "^1.33.4",
"@vue-flow/minimap": "^1.4.0",
"aieditor": "1.0.0-rc.7",
"axios": "^1.6.5",
"clipboard": "^2.0.11",
"codemirror": "^5.65.16",
"codemirror-editor-vue3": "^2.4.1",
"crypto-js": "^4.2.0",
"dateformat": "^5.0.3",
"element-plus": "^2.4.4",
"eslint": "^8.56.0",
"highlight.js": "^11.9.0",
"html2canvas": "^1.4.1",
"lodash": "^4.17.21",
"markdown-it": "^14.0.0",
"markdown-it-link-attributes": "^4.0.1",
"mitt": "^3.0.1",
"moment-timezone": "^0.5.44",
"pinia": "^2.1.7",
"pixi-spine": "^4.0.4",
"pixi.js": "^7.4.0",
"plupload": "^2.3.9",
"qs": "^6.11.2",
"uuid": "^9.0.1",
"v-contextmenu": "^3.2.0",
"vue": "^3.3.4",
"vue-clipboard3": "^2.0.0",
"vue-i18n": "^9.9.0",
"vue-router": "^4.2.5",
"vue3-calendar-heatmap": "^2.0.5",
"vue3-json-viewer": "^2.2.2",
"x-data-spreadsheet": "^1.1.9",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz"
},
"devDependencies": {
"@iconify-json/ep": "^1.1.12",
"@rushstack/eslint-patch": "^1.3.3",
"@tsconfig/node18": "^18.2.2",
"@types/codemirror": "^5.60.15",
"@types/node": "^18.18.5",
"@vitejs/plugin-vue": "^4.4.0",
"@vitejs/plugin-vue-jsx": "^3.0.2",
"@vue/eslint-config-prettier": "^8.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/tsconfig": "^0.4.0",
"eslint-plugin-vue": "^9.17.0",
"less": "^4.2.0",
"npm-run-all2": "^6.1.1",
"prettier": "^3.0.3",
"sass": "^1.69.7",
"typescript": "~5.2.0",
"unocss": "^0.58.3",
"unplugin-element-plus": "^0.8.0",
"unplugin-vue-components": "^0.26.0",
"vite": "^4.4.11",
"vite-ssg": "^0.23.1",
"vite-svg-loader": "^5.1.0",
"vue-tsc": "^1.8.19"
}
}
Loading