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

feat: 更新了一些功能 #924

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
  •  
  •  
  •  
31 changes: 26 additions & 5 deletions m78-all/m78-fe/README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,45 @@
# m78
# vue3.0-template

## 项目设置
This template should help get you started developing with Vue 3 in Vite.

## Recommended IDE Setup

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).

## Type Support for `.vue` Imports in TS

TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:

1. Disable the built-in TypeScript Extension
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.

## Customize configuration

See [Vite Configuration Reference](https://vitejs.dev/config/).

## Project Setup

```sh
npm install
```

### 本地启动
### Compile and Hot-Reload for Development

```sh
npm run dev
```

### 构建
### Type-Check, Compile and Minify for Production

```sh
npm run build
```

### lint
### Lint with [ESLint](https://eslint.org/)

```sh
npm run lint
Expand Down
11 changes: 8 additions & 3 deletions m78-all/m78-fe/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<!doctype html>
<html lang="en">
<html lang="en" style="touch-action: none">
<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>
<meta
name="viewport"
content="width=device-width,initial-scale=1,shrink-to-fit=no,viewport-fit=cover,minimum-scale=1,maximum-scale=1,user-scalable=no"
/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>oz78</title>
<script defer src="/mermaid/dist/mermaid.min.js"></script>
</head>
<body>
<div id="app"></div>
Expand Down
11 changes: 11 additions & 0 deletions m78-all/m78-fe/outer.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -e

pnpm install

pnpm run build:open

cd dist

tar -zcvf fe.tar.gz ./*
24 changes: 20 additions & 4 deletions m78-all/m78-fe/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"name": "m78",
"name": "ai-plug",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite",
"serve": "vite",
"build:open": "vite build --mode open",
"build:staging": "vite build --mode staging",
"build": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview",
"build-only": "vite build",
Expand All @@ -13,43 +15,56 @@
"format": "prettier --write src/"
},
"dependencies": {
"@dagrejs/dagre": "^1.1.3",
"@element-plus/icons-vue": "^2.3.1",
"@microsoft/fetch-event-source": "^2.0.1",
"@panzoom/panzoom": "^4.5.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",
"@vue/reactivity": "^3.4.31",
"aieditor": "1.0.0-rc.7",
"ajv": "^8.17.1",
"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",
"echarts": "^5.5.0",
"element-plus": "2.4.4",
"eslint": "^8.56.0",
"highlight.js": "^11.9.0",
"html2canvas": "^1.4.1",
"json-editor-vue": "^0.15.1",
"lodash": "^4.17.21",
"markdown-it": "^14.0.0",
"markdown-it": "^14.1.0",
"markdown-it-link-attributes": "^4.0.1",
"mitt": "^3.0.1",
"moment-timezone": "^0.5.44",
"monaco-editor": "^0.34.0",
"mp3-mediarecorder": "^4.0.5",
"pinia": "^2.1.7",
"pinia-plugin-persistedstate": "^4.1.3",
"pixi-spine": "^4.0.4",
"pixi.js": "^7.4.0",
"plupload": "^2.3.9",
"qs": "^6.11.2",
"sockjs-client": "^1.6.1",
"uuid": "^9.0.1",
"v-contextmenu": "^3.2.0",
"vue": "^3.3.4",
"vue-clipboard3": "^2.0.0",
"vue-draggable-plus": "^0.5.3",
"vue-i18n": "^9.9.0",
"vue-router": "^4.2.5",
"vue3-calendar-heatmap": "^2.0.5",
"vue3-json-editor": "^1.1.5",
"vue3-json-viewer": "^2.2.2",
"vue3-smooth-dnd": "^0.0.6",
"x-data-spreadsheet": "^1.1.9",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz"
},
Expand All @@ -59,6 +74,7 @@
"@tsconfig/node18": "^18.2.2",
"@types/codemirror": "^5.60.15",
"@types/node": "^18.18.5",
"@types/sockjs-client": "^1.5.4",
"@vitejs/plugin-vue": "^4.4.0",
"@vitejs/plugin-vue-jsx": "^3.0.2",
"@vue/eslint-config-prettier": "^8.0.0",
Expand All @@ -78,4 +94,4 @@
"vite-svg-loader": "^5.1.0",
"vue-tsc": "^1.8.19"
}
}
}
Binary file added m78-all/m78-fe/public/favicon.ico
Binary file not shown.
Binary file removed m78-all/m78-fe/public/images/chat.png
Binary file not shown.
Binary file removed m78-all/m78-fe/public/images/code.png
Binary file not shown.
Binary file removed m78-all/m78-fe/public/images/document.png
Binary file not shown.
Binary file added m78-all/m78-fe/public/images/logo/claude3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions m78-all/m78-fe/public/images/nodata.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions m78-all/m78-fe/public/images/pdf.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions m78-all/m78-fe/public/images/tip.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed m78-all/m78-fe/public/images/translate.png
Binary file not shown.
21 changes: 21 additions & 0 deletions m78-all/m78-fe/public/mermaid/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014 - 2022 Knut Sveidqvist

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading