diff --git a/m78-all/m78-fe/README.md b/m78-all/m78-fe/README.md index a33d3dee7..b5cd4532f 100644 --- a/m78-all/m78-fe/README.md +++ b/m78-all/m78-fe/README.md @@ -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 diff --git a/m78-all/m78-fe/index.html b/m78-all/m78-fe/index.html index 79d791e2e..2fb6daa09 100644 --- a/m78-all/m78-fe/index.html +++ b/m78-all/m78-fe/index.html @@ -1,10 +1,15 @@ - + - - AI + + + oz78 +
diff --git a/m78-all/m78-fe/outer.bash b/m78-all/m78-fe/outer.bash new file mode 100644 index 000000000..32ea38421 --- /dev/null +++ b/m78-all/m78-fe/outer.bash @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +pnpm install + +pnpm run build:open + +cd dist + +tar -zcvf fe.tar.gz ./* diff --git a/m78-all/m78-fe/package.json b/m78-all/m78-fe/package.json index dc8110064..1312452b0 100644 --- a/m78-all/m78-fe/package.json +++ b/m78-all/m78-fe/package.json @@ -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", @@ -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" }, @@ -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", @@ -78,4 +94,4 @@ "vite-svg-loader": "^5.1.0", "vue-tsc": "^1.8.19" } -} +} \ No newline at end of file diff --git a/m78-all/m78-fe/public/favicon.ico b/m78-all/m78-fe/public/favicon.ico new file mode 100644 index 000000000..9a4315bcc Binary files /dev/null and b/m78-all/m78-fe/public/favicon.ico differ diff --git a/m78-all/m78-fe/public/images/chat.png b/m78-all/m78-fe/public/images/chat.png deleted file mode 100644 index 4ce9ec3aa..000000000 Binary files a/m78-all/m78-fe/public/images/chat.png and /dev/null differ diff --git a/m78-all/m78-fe/public/images/code.png b/m78-all/m78-fe/public/images/code.png deleted file mode 100644 index 8eb0c16d7..000000000 Binary files a/m78-all/m78-fe/public/images/code.png and /dev/null differ diff --git a/m78-all/m78-fe/public/images/document.png b/m78-all/m78-fe/public/images/document.png deleted file mode 100644 index e79060925..000000000 Binary files a/m78-all/m78-fe/public/images/document.png and /dev/null differ diff --git a/m78-all/m78-fe/public/images/logo/claude3.png b/m78-all/m78-fe/public/images/logo/claude3.png new file mode 100644 index 000000000..9ce578dbe Binary files /dev/null and b/m78-all/m78-fe/public/images/logo/claude3.png differ diff --git a/m78-all/m78-fe/public/images/nodata.svg b/m78-all/m78-fe/public/images/nodata.svg new file mode 100644 index 000000000..924790d42 --- /dev/null +++ b/m78-all/m78-fe/public/images/nodata.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/m78-all/m78-fe/public/images/pdf.svg b/m78-all/m78-fe/public/images/pdf.svg new file mode 100644 index 000000000..6736a8647 --- /dev/null +++ b/m78-all/m78-fe/public/images/pdf.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/m78-all/m78-fe/public/images/tip.svg b/m78-all/m78-fe/public/images/tip.svg new file mode 100644 index 000000000..606ed706e --- /dev/null +++ b/m78-all/m78-fe/public/images/tip.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/m78-all/m78-fe/public/images/translate.png b/m78-all/m78-fe/public/images/translate.png deleted file mode 100644 index 779fd1fbb..000000000 Binary files a/m78-all/m78-fe/public/images/translate.png and /dev/null differ diff --git a/m78-all/m78-fe/public/mermaid/LICENSE b/m78-all/m78-fe/public/mermaid/LICENSE new file mode 100644 index 000000000..2e5daebd2 --- /dev/null +++ b/m78-all/m78-fe/public/mermaid/LICENSE @@ -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. diff --git a/m78-all/m78-fe/public/mermaid/README.md b/m78-all/m78-fe/public/mermaid/README.md new file mode 100644 index 000000000..d368a4349 --- /dev/null +++ b/m78-all/m78-fe/public/mermaid/README.md @@ -0,0 +1,436 @@ +

+ +

+

+Mermaid +

+

+Generate diagrams from markdown-like text. +

+

+ +

+ +

+Live Editor! +

+

+ 📖 Documentation | 🚀 Getting Started | 🌐 CDN | 🙌 Join Us +

+

+简体中文 +

+

+Try Live Editor previews of future releases: Develop | Next +

+ +
+
+ +[![NPM](https://img.shields.io/npm/v/mermaid)](https://www.npmjs.com/package/mermaid) +[![Build CI Status](https://github.com/mermaid-js/mermaid/actions/workflows/build.yml/badge.svg)](https://github.com/mermaid-js/mermaid/actions/workflows/build.yml) +[![npm minified gzipped bundle size](https://img.shields.io/bundlephobia/minzip/mermaid)](https://bundlephobia.com/package/mermaid) +[![Coverage Status](https://codecov.io/github/mermaid-js/mermaid/branch/develop/graph/badge.svg)](https://app.codecov.io/github/mermaid-js/mermaid/tree/develop) +[![CDN Status](https://img.shields.io/jsdelivr/npm/hm/mermaid)](https://www.jsdelivr.com/package/npm/mermaid) +[![NPM Downloads](https://img.shields.io/npm/dm/mermaid)](https://www.npmjs.com/package/mermaid) +[![Join our Discord!](https://img.shields.io/static/v1?message=join%20chat&color=9cf&logo=discord&label=discord)](https://discord.gg/AgrbSrBer3) +[![Twitter Follow](https://img.shields.io/badge/Social-mermaidjs__-blue?style=social&logo=X)](https://twitter.com/mermaidjs_) + + + +:trophy: **Mermaid was nominated and won the [JS Open Source Awards (2019)](https://osawards.com/javascript/2019) in the category "The most exciting use of technology"!!!** + +**Thanks to all involved, people committing pull requests, people answering questions! 🙏** + +Explore Mermaid.js in depth, with real-world examples, tips & tricks from the creator... The first official book on Mermaid is available for purchase. Check it out! + +## Table of content + +
+Expand contents + +- [About](#about) +- [Examples](#examples) +- [Release](#release) +- [Related projects](#related-projects) +- [Contributors](#contributors---) +- [Security and safe diagrams](#security-and-safe-diagrams) +- [Reporting vulnerabilities](#reporting-vulnerabilities) +- [Appreciation](#appreciation) + +
+ +## About + + + +Mermaid is a JavaScript-based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. The main purpose of Mermaid is to help documentation catch up with development. + +> Doc-Rot is a Catch-22 that Mermaid helps to solve. + +Diagramming and documentation costs precious developer time and gets outdated quickly. +But not having diagrams or docs ruins productivity and hurts organizational learning.
+Mermaid addresses this problem by enabling users to create easily modifiable diagrams. It can also be made part of production scripts (and other pieces of code).
+
+ +Mermaid allows even non-programmers to easily create detailed diagrams through the [Mermaid Live Editor](https://mermaid.live/).
+For video tutorials, visit our [Tutorials](https://mermaid.js.org/ecosystem/tutorials.html) page. +Use Mermaid with your favorite applications, check out the list of [Integrations and Usages of Mermaid](https://mermaid.js.org/ecosystem/integrations-community.html). + +You can also use Mermaid within [GitHub](https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/) as well many of your other favorite applications—check out the list of [Integrations and Usages of Mermaid](https://mermaid.js.org/ecosystem/integrations-community.html). + +For a more detailed introduction to Mermaid and some of its more basic uses, look to the [Beginner's Guide](https://mermaid.js.org/intro/getting-started.html), [Usage](https://mermaid.js.org/config/usage.html) and [Tutorials](https://mermaid.js.org/ecosystem/tutorials.html). + +In our release process we rely heavily on visual regression tests using [applitools](https://applitools.com/). Applitools is a great service which has been easy to use and integrate with our tests. + + + + + + + +## Examples + +**The following are some examples of the diagrams, charts and graphs that can be made using Mermaid. Click here to jump into the [text syntax](https://mermaid.js.org/intro/syntax-reference.html).** + + + +### Flowchart [docs - live editor] + +``` +flowchart LR + +A[Hard] -->|Text| B(Round) +B --> C{Decision} +C -->|One| D[Result 1] +C -->|Two| E[Result 2] +``` + +```mermaid +flowchart LR + +A[Hard] -->|Text| B(Round) +B --> C{Decision} +C -->|One| D[Result 1] +C -->|Two| E[Result 2] +``` + +### Sequence diagram [docs - live editor] + +``` +sequenceDiagram +Alice->>John: Hello John, how are you? +loop HealthCheck + John->>John: Fight against hypochondria +end +Note right of John: Rational thoughts! +John-->>Alice: Great! +John->>Bob: How about you? +Bob-->>John: Jolly good! +``` + +```mermaid +sequenceDiagram +Alice->>John: Hello John, how are you? +loop HealthCheck + John->>John: Fight against hypochondria +end +Note right of John: Rational thoughts! +John-->>Alice: Great! +John->>Bob: How about you? +Bob-->>John: Jolly good! +``` + +### Gantt chart [docs - live editor] + +``` +gantt + section Section + Completed :done, des1, 2014-01-06,2014-01-08 + Active :active, des2, 2014-01-07, 3d + Parallel 1 : des3, after des1, 1d + Parallel 2 : des4, after des1, 1d + Parallel 3 : des5, after des3, 1d + Parallel 4 : des6, after des4, 1d +``` + +```mermaid +gantt + section Section + Completed :done, des1, 2014-01-06,2014-01-08 + Active :active, des2, 2014-01-07, 3d + Parallel 1 : des3, after des1, 1d + Parallel 2 : des4, after des1, 1d + Parallel 3 : des5, after des3, 1d + Parallel 4 : des6, after des4, 1d +``` + +### Class diagram [docs - live editor] + +``` +classDiagram +Class01 <|-- AveryLongClass : Cool +<> Class01 +Class09 --> C2 : Where am I? +Class09 --* C3 +Class09 --|> Class07 +Class07 : equals() +Class07 : Object[] elementData +Class01 : size() +Class01 : int chimp +Class01 : int gorilla +class Class10 { + <> + int id + size() +} + +``` + +```mermaid +classDiagram +Class01 <|-- AveryLongClass : Cool +<> Class01 +Class09 --> C2 : Where am I? +Class09 --* C3 +Class09 --|> Class07 +Class07 : equals() +Class07 : Object[] elementData +Class01 : size() +Class01 : int chimp +Class01 : int gorilla +class Class10 { + <> + int id + size() +} + +``` + +### State diagram [docs - live editor] + +``` +stateDiagram-v2 +[*] --> Still +Still --> [*] +Still --> Moving +Moving --> Still +Moving --> Crash +Crash --> [*] +``` + +```mermaid +stateDiagram-v2 +[*] --> Still +Still --> [*] +Still --> Moving +Moving --> Still +Moving --> Crash +Crash --> [*] +``` + +### Pie chart [docs - live editor] + +``` +pie +"Dogs" : 386 +"Cats" : 85.9 +"Rats" : 15 +``` + +```mermaid +pie +"Dogs" : 386 +"Cats" : 85.9 +"Rats" : 15 +``` + +### Git graph [experimental - live editor] + +### Bar chart (using gantt chart) [docs - live editor] + +``` +gantt + title Git Issues - days since last update + dateFormat X + axisFormat %s + + section Issue19062 + 71 : 0, 71 + section Issue19401 + 36 : 0, 36 + section Issue193 + 34 : 0, 34 + section Issue7441 + 9 : 0, 9 + section Issue1300 + 5 : 0, 5 +``` + +```mermaid +gantt + title Git Issues - days since last update + dateFormat X + axisFormat %s + + section Issue19062 + 71 : 0, 71 + section Issue19401 + 36 : 0, 36 + section Issue193 + 34 : 0, 34 + section Issue7441 + 9 : 0, 9 + section Issue1300 + 5 : 0, 5 +``` + +### User Journey diagram [docs - live editor] + +``` + journey + title My working day + section Go to work + Make tea: 5: Me + Go upstairs: 3: Me + Do work: 1: Me, Cat + section Go home + Go downstairs: 5: Me + Sit down: 3: Me +``` + +```mermaid + journey + title My working day + section Go to work + Make tea: 5: Me + Go upstairs: 3: Me + Do work: 1: Me, Cat + section Go home + Go downstairs: 5: Me + Sit down: 3: Me +``` + +### C4 diagram [docs] + +``` +C4Context +title System Context diagram for Internet Banking System + +Person(customerA, "Banking Customer A", "A customer of the bank, with personal bank accounts.") +Person(customerB, "Banking Customer B") +Person_Ext(customerC, "Banking Customer C") +System(SystemAA, "Internet Banking System", "Allows customers to view information about their bank accounts, and make payments.") + +Person(customerD, "Banking Customer D", "A customer of the bank,
with personal bank accounts.") + +Enterprise_Boundary(b1, "BankBoundary") { + + SystemDb_Ext(SystemE, "Mainframe Banking System", "Stores all of the core banking information about customers, accounts, transactions, etc.") + + System_Boundary(b2, "BankBoundary2") { + System(SystemA, "Banking System A") + System(SystemB, "Banking System B", "A system of the bank, with personal bank accounts.") + } + + System_Ext(SystemC, "E-mail system", "The internal Microsoft Exchange e-mail system.") + SystemDb(SystemD, "Banking System D Database", "A system of the bank, with personal bank accounts.") + + Boundary(b3, "BankBoundary3", "boundary") { + SystemQueue(SystemF, "Banking System F Queue", "A system of the bank, with personal bank accounts.") + SystemQueue_Ext(SystemG, "Banking System G Queue", "A system of the bank, with personal bank accounts.") + } +} + +BiRel(customerA, SystemAA, "Uses") +BiRel(SystemAA, SystemE, "Uses") +Rel(SystemAA, SystemC, "Sends e-mails", "SMTP") +Rel(SystemC, customerA, "Sends e-mails to") +``` + +```mermaid +C4Context +title System Context diagram for Internet Banking System + +Person(customerA, "Banking Customer A", "A customer of the bank, with personal bank accounts.") +Person(customerB, "Banking Customer B") +Person_Ext(customerC, "Banking Customer C") +System(SystemAA, "Internet Banking System", "Allows customers to view information about their bank accounts, and make payments.") + +Person(customerD, "Banking Customer D", "A customer of the bank,
with personal bank accounts.") + +Enterprise_Boundary(b1, "BankBoundary") { + + SystemDb_Ext(SystemE, "Mainframe Banking System", "Stores all of the core banking information about customers, accounts, transactions, etc.") + + System_Boundary(b2, "BankBoundary2") { + System(SystemA, "Banking System A") + System(SystemB, "Banking System B", "A system of the bank, with personal bank accounts.") + } + + System_Ext(SystemC, "E-mail system", "The internal Microsoft Exchange e-mail system.") + SystemDb(SystemD, "Banking System D Database", "A system of the bank, with personal bank accounts.") + + Boundary(b3, "BankBoundary3", "boundary") { + SystemQueue(SystemF, "Banking System F Queue", "A system of the bank, with personal bank accounts.") + SystemQueue_Ext(SystemG, "Banking System G Queue", "A system of the bank, with personal bank accounts.") + } +} + +BiRel(customerA, SystemAA, "Uses") +BiRel(SystemAA, SystemE, "Uses") +Rel(SystemAA, SystemC, "Sends e-mails", "SMTP") +Rel(SystemC, customerA, "Sends e-mails to") +``` + +## Release + +For those who have the permission to do so: + +Update version number in `package.json`. + +```sh +npm publish +``` + +The above command generates files into the `dist` folder and publishes them to . + +## Related projects + +- [Command Line Interface](https://github.com/mermaid-js/mermaid-cli) +- [Live Editor](https://github.com/mermaid-js/mermaid-live-editor) +- [HTTP Server](https://github.com/TomWright/mermaid-server) + +## Contributors [![Good first issue](https://img.shields.io/github/labels/mermaid-js/mermaid/Good%20first%20issue%21)](https://github.com/mermaid-js/mermaid/issues?q=is%3Aissue+is%3Aopen+label%3A%22Good+first+issue%21%22) [![Contributors](https://img.shields.io/github/contributors/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors) [![Commits](https://img.shields.io/github/commit-activity/m/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors) + +Mermaid is a growing community and is always accepting new contributors. There's a lot of different ways to help out and we're always looking for extra hands! Look at [this issue](https://github.com/mermaid-js/mermaid/issues/866) if you want to know where to start helping out. + +Detailed information about how to contribute can be found in the [contribution guide](https://mermaid.js.org/community/contributing.html) + +## Security and safe diagrams + +For public sites, it can be precarious to retrieve text from users on the internet, storing that content for presentation in a browser at a later stage. The reason is that the user content can contain embedded malicious scripts that will run when the data is presented. For Mermaid this is a risk, specially as mermaid diagrams contain many characters that are used in html which makes the standard sanitation unusable as it also breaks the diagrams. We still make an effort to sanitize the incoming code and keep refining the process but it is hard to guarantee that there are no loop holes. + +As an extra level of security for sites with external users we are happy to introduce a new security level in which the diagram is rendered in a sandboxed iframe preventing javascript in the code from being executed. This is a great step forward for better security. + +_Unfortunately you can not have a cake and eat it at the same time which in this case means that some of the interactive functionality gets blocked along with the possible malicious code._ + +## Reporting vulnerabilities + +To report a vulnerability, please e-mail with a description of the issue, the steps you took to create the issue, affected versions, and if known, mitigations for the issue. + +## Appreciation + +A quick note from Knut Sveidqvist: + +> _Many thanks to the [d3](https://d3js.org/) and [dagre-d3](https://github.com/cpettitt/dagre-d3) projects for providing the graphical layout and drawing libraries!_ +> +> _Thanks also to the [js-sequence-diagram](https://bramp.github.io/js-sequence-diagrams) project for usage of the grammar for the sequence diagrams. Thanks to Jessica Peter for inspiration and starting point for gantt rendering._ +> +> _Thank you to [Tyler Long](https://github.com/tylerlong) who has been a collaborator since April 2017._ +> +> _Thank you to the ever-growing list of [contributors](https://github.com/knsv/mermaid/graphs/contributors) that brought the project this far!_ + +--- + +_Mermaid was created by Knut Sveidqvist for easier documentation._ diff --git a/m78-all/m78-fe/public/mermaid/README.zh-CN.md b/m78-all/m78-fe/public/mermaid/README.zh-CN.md new file mode 100644 index 000000000..942f54bff --- /dev/null +++ b/m78-all/m78-fe/public/mermaid/README.zh-CN.md @@ -0,0 +1,365 @@ +

+ +

+

+Mermaid +

+

+通过解析类 Markdown 的文本语法来实现图表的创建和动态修改。 +

+

+ +

+ +

+实时编辑器! +

+

+ 📖 文档 | 🚀 入门 | 🌐 CDN | 🙌 加入我们 +

+

+English +

+ +

+尝试未来版本的实时编辑器预览: Develop | Next +

+ +
+
+ +[![NPM](https://img.shields.io/npm/v/mermaid)](https://www.npmjs.com/package/mermaid) +[![Build CI Status](https://github.com/mermaid-js/mermaid/actions/workflows/build.yml/badge.svg)](https://github.com/mermaid-js/mermaid/actions/workflows/build.yml) +[![npm minified gzipped bundle size](https://img.shields.io/bundlephobia/minzip/mermaid)](https://bundlephobia.com/package/mermaid) +[![Coverage Status](https://codecov.io/github/mermaid-js/mermaid/branch/develop/graph/badge.svg)](https://app.codecov.io/github/mermaid-js/mermaid/tree/develop) +[![CDN Status](https://img.shields.io/jsdelivr/npm/hm/mermaid)](https://www.jsdelivr.com/package/npm/mermaid) +[![NPM Downloads](https://img.shields.io/npm/dm/mermaid)](https://www.npmjs.com/package/mermaid) +[![Join our Discord!](https://img.shields.io/static/v1?message=join%20chat&color=9cf&logo=discord&label=discord)](https://discord.gg/AgrbSrBer3) +[![Twitter Follow](https://img.shields.io/badge/Social-mermaidjs__-blue?style=social&logo=X)](https://twitter.com/mermaidjs_) + + + +:trophy: **Mermaid 被提名并获得了 [JS Open Source Awards (2019)](https://osawards.com/javascript/2019) 的 "The most exciting use of technology" 奖项!!!** + +**感谢所有参与进来提交 PR,解答疑问的人们! 🙏** + +Explore Mermaid.js in depth, with real-world examples, tips & tricks from the creator... The first official book on Mermaid is available for purchase. Check it out! + +## 关于 Mermaid + + + +Mermaid 是一个基于 Javascript 的图表绘制工具,通过解析类 Markdown 的文本语法来实现图表的创建和动态修改。Mermaid 诞生的主要目的是让文档的更新能够及时跟上开发进度。 + +> Doc-Rot 是 Mermaid 致力于解决的一个难题。 + +绘图和编写文档花费了开发者宝贵的开发时间,而且随着业务的变更,它很快就会过期。 但是如果缺少了图表或文档,对于生产力和团队新人的业务学习都会产生巨大的阻碍。
+Mermaid 通过允许用户创建便于修改的图表来解决这一难题,它也可以作为生产脚本(或其他代码)的一部分。
+
+Mermaid 甚至能让非程序员也能通过 [Mermaid Live Editor](https://mermaid.live/) 轻松创建详细的图表。
+你可以访问 [教程](https://mermaid.js.org/ecosystem/tutorials.html) 来查看 Live Editor 的视频教程,也可以查看 [Mermaid 的集成和使用](https://mermaid.js.org/ecosystem/integrations-community.html) 这个清单来检查你的文档工具是否已经集成了 Mermaid 支持。 + +如果想要查看关于 Mermaid 更详细的介绍及基础使用方式,可以查看 [入门指引](https://mermaid.js.org/intro/getting-started.html), [用法](https://mermaid.js.org/config/usage.html) 和 [教程](https://mermaid.js.org/ecosystem/tutorials.html). + + + +## 示例 + +**下面是一些可以使用 Mermaid 创建的图表示例。点击 [语法](https://mermaid.js.org/intro/syntax-reference.html) 查看详情。** + + + + +### 流程图 [文档 - live editor] + +``` +flowchart LR +A[Hard] -->|Text| B(Round) +B --> C{Decision} +C -->|One| D[Result 1] +C -->|Two| E[Result 2] +``` + +```mermaid +flowchart LR +A[Hard] -->|Text| B(Round) +B --> C{Decision} +C -->|One| D[Result 1] +C -->|Two| E[Result 2] +``` + +### 时序图 [文档 - live editor] + +``` +sequenceDiagram +Alice->>John: Hello John, how are you? +loop HealthCheck + John->>John: Fight against hypochondria +end +Note right of John: Rational thoughts! +John-->>Alice: Great! +John->>Bob: How about you? +Bob-->>John: Jolly good! +``` + +```mermaid +sequenceDiagram +Alice->>John: Hello John, how are you? +loop HealthCheck + John->>John: Fight against hypochondria +end +Note right of John: Rational thoughts! +John-->>Alice: Great! +John->>Bob: How about you? +Bob-->>John: Jolly good! +``` + +### 甘特图 [文档 - live editor] + +``` +gantt + section Section + Completed :done, des1, 2014-01-06,2014-01-08 + Active :active, des2, 2014-01-07, 3d + Parallel 1 : des3, after des1, 1d + Parallel 2 : des4, after des1, 1d + Parallel 3 : des5, after des3, 1d + Parallel 4 : des6, after des4, 1d +``` + +```mermaid +gantt + section Section + Completed :done, des1, 2014-01-06,2014-01-08 + Active :active, des2, 2014-01-07, 3d + Parallel 1 : des3, after des1, 1d + Parallel 2 : des4, after des1, 1d + Parallel 3 : des5, after des3, 1d + Parallel 4 : des6, after des4, 1d +``` + +### 类图 [文档 - live editor] + +``` +classDiagram +Class01 <|-- AveryLongClass : Cool +<> Class01 +Class09 --> C2 : Where am I? +Class09 --* C3 +Class09 --|> Class07 +Class07 : equals() +Class07 : Object[] elementData +Class01 : size() +Class01 : int chimp +Class01 : int gorilla +class Class10 { + <> + int id + size() +} +``` + +```mermaid +classDiagram +Class01 <|-- AveryLongClass : Cool +<> Class01 +Class09 --> C2 : Where am I? +Class09 --* C3 +Class09 --|> Class07 +Class07 : equals() +Class07 : Object[] elementData +Class01 : size() +Class01 : int chimp +Class01 : int gorilla +class Class10 { + <> + int id + size() +} +``` + +### 状态图 [docs - live editor] + +``` +stateDiagram-v2 +[*] --> Still +Still --> [*] +Still --> Moving +Moving --> Still +Moving --> Crash +Crash --> [*] +``` + +```mermaid +stateDiagram-v2 +[*] --> Still +Still --> [*] +Still --> Moving +Moving --> Still +Moving --> Crash +Crash --> [*] +``` + +### 饼图 [文档 - live editor] + +``` +pie +"Dogs" : 386 +"Cats" : 85 +"Rats" : 15 +``` + +```mermaid +pie +"Dogs" : 386 +"Cats" : 85 +"Rats" : 15 +``` + +### Git 图 [实验特性 - live editor] + +### 用户体验旅程图 [文档 - live editor] + +``` + journey + title My working day + section Go to work + Make tea: 5: Me + Go upstairs: 3: Me + Do work: 1: Me, Cat + section Go home + Go downstairs: 5: Me + Sit down: 3: Me +``` + +```mermaid + journey + title My working day + section Go to work + Make tea: 5: Me + Go upstairs: 3: Me + Do work: 1: Me, Cat + section Go home + Go downstairs: 5: Me + Sit down: 3: Me +``` + +### C4 图 [文档] + +``` +C4Context +title System Context diagram for Internet Banking System + +Person(customerA, "Banking Customer A", "A customer of the bank, with personal bank accounts.") +Person(customerB, "Banking Customer B") +Person_Ext(customerC, "Banking Customer C") +System(SystemAA, "Internet Banking System", "Allows customers to view information about their bank accounts, and make payments.") + +Person(customerD, "Banking Customer D", "A customer of the bank,
with personal bank accounts.") + +Enterprise_Boundary(b1, "BankBoundary") { + + SystemDb_Ext(SystemE, "Mainframe Banking System", "Stores all of the core banking information about customers, accounts, transactions, etc.") + + System_Boundary(b2, "BankBoundary2") { + System(SystemA, "Banking System A") + System(SystemB, "Banking System B", "A system of the bank, with personal bank accounts.") + } + + System_Ext(SystemC, "E-mail system", "The internal Microsoft Exchange e-mail system.") + SystemDb(SystemD, "Banking System D Database", "A system of the bank, with personal bank accounts.") + + Boundary(b3, "BankBoundary3", "boundary") { + SystemQueue(SystemF, "Banking System F Queue", "A system of the bank, with personal bank accounts.") + SystemQueue_Ext(SystemG, "Banking System G Queue", "A system of the bank, with personal bank accounts.") + } +} + +BiRel(customerA, SystemAA, "Uses") +BiRel(SystemAA, SystemE, "Uses") +Rel(SystemAA, SystemC, "Sends e-mails", "SMTP") +Rel(SystemC, customerA, "Sends e-mails to") +``` + +```mermaid +C4Context +title System Context diagram for Internet Banking System + +Person(customerA, "Banking Customer A", "A customer of the bank, with personal bank accounts.") +Person(customerB, "Banking Customer B") +Person_Ext(customerC, "Banking Customer C") +System(SystemAA, "Internet Banking System", "Allows customers to view information about their bank accounts, and make payments.") + +Person(customerD, "Banking Customer D", "A customer of the bank,
with personal bank accounts.") + +Enterprise_Boundary(b1, "BankBoundary") { + + SystemDb_Ext(SystemE, "Mainframe Banking System", "Stores all of the core banking information about customers, accounts, transactions, etc.") + + System_Boundary(b2, "BankBoundary2") { + System(SystemA, "Banking System A") + System(SystemB, "Banking System B", "A system of the bank, with personal bank accounts.") + } + + System_Ext(SystemC, "E-mail system", "The internal Microsoft Exchange e-mail system.") + SystemDb(SystemD, "Banking System D Database", "A system of the bank, with personal bank accounts.") + + Boundary(b3, "BankBoundary3", "boundary") { + SystemQueue(SystemF, "Banking System F Queue", "A system of the bank, with personal bank accounts.") + SystemQueue_Ext(SystemG, "Banking System G Queue", "A system of the bank, with personal bank accounts.") + } +} + +BiRel(customerA, SystemAA, "Uses") +BiRel(SystemAA, SystemE, "Uses") +Rel(SystemAA, SystemC, "Sends e-mails", "SMTP") +Rel(SystemC, customerA, "Sends e-mails to") +``` + +## 发布 + +对于有权限的同学来说,你可以通过以下步骤来完成发布操作: + +更新 `package.json` 中的版本号,然后执行如下命令: + +```sh +npm publish +``` + +以上的命令会将文件打包到 `dist` 目录并发布至 . + +## 相关项目 + +- [Command Line Interface](https://github.com/mermaid-js/mermaid-cli) +- [Live Editor](https://github.com/mermaid-js/mermaid-live-editor) +- [HTTP Server](https://github.com/TomWright/mermaid-server) + +## 贡献者 [![Good first issue](https://img.shields.io/github/labels/mermaid-js/mermaid/Good%20first%20issue%21)](https://github.com/mermaid-js/mermaid/issues?q=is%3Aissue+is%3Aopen+label%3A%22Good+first+issue%21%22) [![Contributors](https://img.shields.io/github/contributors/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors) [![Commits](https://img.shields.io/github/commit-activity/m/mermaid-js/mermaid)](https://github.com/mermaid-js/mermaid/graphs/contributors) + +Mermaid 是一个不断发展中的社区,并且还在接收新的贡献者。有很多不同的方式可以参与进来,而且我们还在寻找额外的帮助。如果你想知道如何开始贡献,请查看 [这个 issue](https://github.com/mermaid-js/mermaid/issues/866)。 + +关于如何贡献的详细信息可以在 [贡献指南](https://mermaid.js.org/community/contributing.html) 中找到。 + +## 安全 + +对于公开网站来说,从互联网上的用户处检索文本、存储供后续在浏览器中展示的内容可能是不安全的,理由是用户的内容可能嵌入一些数据加载完成之后就会运行的恶意脚本,这些对于 Mermaid 来说毫无疑问是一个风险,尤其是 mermaid 图表还包含了许多在 html 中使用的字符,这意味着我们难以使用常规的手段来过滤不安全代码,因为这些常规手段会造成图表损坏。我们仍然在努力对获取到的代码进行安全过滤并不断完善我们的程序,但很难保证没有漏洞。 + +作为拥有外部用户的网站的额外安全级别,我们很高兴推出一个新的安全级别,其中的图表在沙盒 iframe 中渲染,防止代码中的 javascript 被执行,这是在安全性方面迈出的一大步。 + +_很不幸的是,鱼与熊掌不可兼得,在这个场景下它意味着在可能的恶意代码被阻止时,也会损失部分交互能力_。 + +## 报告漏洞 + +如果想要报告漏洞,请发送邮件到 security@mermaid.live, 并附上问题的描述、复现问题的步骤、受影响的版本,以及解决问题的方案(如果有的话)。 + +## 鸣谢 + +来自 Knut Sveidqvist: + +> _特别感谢 [d3](https://d3js.org/) 和 [dagre-d3](https://github.com/cpettitt/dagre-d3) 这两个优秀的项目,它们提供了图形布局和绘图工具库!_ > _同样感谢 [js-sequence-diagram](https://bramp.github.io/js-sequence-diagrams) 提供了时序图语法的使用。 感谢 Jessica Peter 提供了甘特图渲染的灵感。_ > _感谢 [Tyler Long](https://github.com/tylerlong) 从 2017 年四月开始成为了项目的合作者。_ +> +> _感谢越来越多的 [贡献者们](https://github.com/knsv/mermaid/graphs/contributors),没有你们,就没有这个项目的今天!_ + +--- + +_Mermaid 是由 Knut Sveidqvist 创建,它为了更简单的文档编写而生。_ diff --git a/m78-all/m78-fe/public/mermaid/package.json b/m78-all/m78-fe/public/mermaid/package.json new file mode 100644 index 000000000..83ba94892 --- /dev/null +++ b/m78-all/m78-fe/public/mermaid/package.json @@ -0,0 +1,197 @@ +{ + "_from": "mermaid", + "_id": "mermaid@10.9.1", + "_inBundle": false, + "_integrity": "sha512-Mx45Obds5W1UkW1nv/7dHRsbfMM1aOKA2+Pxs/IGHNonygDHwmng8xTHyS9z4KWVi0rbko8gjiBmuwwXQ7tiNA==", + "_location": "/mermaid", + "_phantomChildren": { + "d3-array": "3.2.4", + "d3-axis": "3.0.0", + "d3-brush": "3.0.0", + "d3-chord": "3.0.1", + "d3-color": "3.1.0", + "d3-contour": "4.0.2", + "d3-delaunay": "6.0.4", + "d3-dispatch": "3.0.1", + "d3-drag": "3.0.0", + "d3-dsv": "3.0.1", + "d3-ease": "3.0.1", + "d3-fetch": "3.0.1", + "d3-force": "3.0.0", + "d3-format": "3.1.0", + "d3-geo": "3.1.1", + "d3-hierarchy": "3.1.2", + "d3-interpolate": "3.0.1", + "d3-path": "3.1.0", + "d3-polygon": "3.0.1", + "d3-quadtree": "3.0.1", + "d3-random": "3.0.1", + "d3-scale": "4.0.2", + "d3-scale-chromatic": "3.1.0", + "d3-selection": "3.0.0", + "d3-shape": "3.2.0", + "d3-time": "3.1.0", + "d3-time-format": "4.1.0", + "d3-timer": "3.0.1", + "d3-transition": "3.0.1", + "d3-zoom": "3.0.0" + }, + "_requested": { + "type": "tag", + "registry": true, + "raw": "mermaid", + "name": "mermaid", + "escapedName": "mermaid", + "rawSpec": "", + "saveSpec": null, + "fetchSpec": "latest" + }, + "_requiredBy": [ + "#USER", + "/" + ], + "_shasum": "5f582c23f3186c46c6aa673e59eeb46d741b2ea6", + "_spec": "mermaid", + "_where": "/Users/gaoyulin/fe/mbench-web", + "author": { + "name": "Knut Sveidqvist" + }, + "bugs": { + "url": "https://github.com/mermaid-js/mermaid/issues" + }, + "bundleDependencies": false, + "dependencies": { + "@braintree/sanitize-url": "^6.0.1", + "@types/d3-scale": "^4.0.3", + "@types/d3-scale-chromatic": "^3.0.0", + "cytoscape": "^3.28.1", + "cytoscape-cose-bilkent": "^4.1.0", + "d3": "^7.4.0", + "d3-sankey": "^0.12.3", + "dagre-d3-es": "7.0.10", + "dayjs": "^1.11.7", + "dompurify": "^3.0.5", + "elkjs": "^0.9.0", + "katex": "^0.16.9", + "khroma": "^2.0.0", + "lodash-es": "^4.17.21", + "mdast-util-from-markdown": "^1.3.0", + "non-layered-tidy-tree-layout": "^2.0.2", + "stylis": "^4.1.3", + "ts-dedent": "^2.2.0", + "uuid": "^9.0.0", + "web-worker": "^1.2.0" + }, + "deprecated": false, + "description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", + "devDependencies": { + "@adobe/jsonschema2md": "^7.1.4", + "@types/cytoscape": "^3.19.9", + "@types/d3": "^7.4.0", + "@types/d3-sankey": "^0.12.1", + "@types/d3-scale": "^4.0.3", + "@types/d3-selection": "^3.0.5", + "@types/d3-shape": "^3.1.1", + "@types/dompurify": "^3.0.2", + "@types/jsdom": "^21.1.1", + "@types/katex": "^0.16.7", + "@types/lodash-es": "^4.17.7", + "@types/micromatch": "^4.0.2", + "@types/prettier": "^2.7.2", + "@types/stylis": "^4.0.2", + "@types/uuid": "^9.0.1", + "@typescript-eslint/eslint-plugin": "^5.59.0", + "@typescript-eslint/parser": "^5.59.0", + "ajv": "^8.11.2", + "chokidar": "^3.5.3", + "concurrently": "^8.0.1", + "cpy-cli": "^4.2.0", + "csstree-validator": "^3.0.0", + "globby": "^13.1.4", + "jison": "^0.4.18", + "js-base64": "^3.7.5", + "jsdom": "^22.0.0", + "json-schema-to-typescript": "^11.0.3", + "micromatch": "^4.0.5", + "path-browserify": "^1.0.1", + "prettier": "^2.8.8", + "remark": "^14.0.2", + "remark-frontmatter": "^4.0.1", + "remark-gfm": "^3.0.1", + "rimraf": "^5.0.0", + "start-server-and-test": "^2.0.0", + "type-fest": "^4.1.0", + "typedoc": "^0.25.0", + "typedoc-plugin-markdown": "^3.15.2", + "typescript": "^5.0.4", + "unist-util-flatmap": "^1.0.0", + "unist-util-visit": "^4.1.2", + "vitepress": "^1.0.0-rc.40", + "vitepress-plugin-search": "^1.0.4-alpha.22" + }, + "exports": { + ".": { + "types": "./dist/mermaid.d.ts", + "import": "./dist/mermaid.core.mjs", + "default": "./dist/mermaid.core.mjs" + }, + "./*": "./*" + }, + "files": [ + "dist/", + "README.md" + ], + "homepage": "https://github.com/mermaid-js/mermaid#readme", + "keywords": [ + "diagram", + "markdown", + "flowchart", + "sequence diagram", + "gantt", + "class diagram", + "git graph" + ], + "license": "MIT", + "module": "./dist/mermaid.core.mjs", + "name": "mermaid", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/mermaid-js/mermaid.git" + }, + "scripts": { + "checkCircle": "npx madge --circular ./src", + "clean": "rimraf dist", + "dev": "pnpm -w dev", + "docs:build": "rimraf ../../docs && pnpm docs:spellcheck && pnpm docs:code && tsx scripts/docs.cli.mts", + "docs:build:vitepress": "pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing", + "docs:code": "typedoc src/defaultConfig.ts src/config.ts src/mermaidAPI.ts && prettier --write ./src/docs/config/setup", + "docs:dev": "pnpm docs:pre:vitepress && concurrently \"pnpm --filter ./src/vitepress dev\" \"tsx scripts/docs.cli.mts --watch --vitepress\"", + "docs:dev:docker": "pnpm docs:pre:vitepress && concurrently \"pnpm --filter ./src/vitepress dev:docker\" \"tsx scripts/docs.cli.mts --watch --vitepress\"", + "docs:pre:vitepress": "pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts", + "docs:release-version": "tsx scripts/update-release-version.mts", + "docs:serve": "pnpm docs:build:vitepress && vitepress serve src/vitepress", + "docs:spellcheck": "cspell \"src/docs/**/*.md\"", + "docs:verify": "pnpm docs:spellcheck && pnpm docs:code && tsx scripts/docs.cli.mts --verify", + "docs:verify-version": "tsx scripts/update-release-version.mts --verify", + "release": "pnpm build", + "types:build-config": "tsx scripts/create-types-from-json-schema.mts", + "types:verify-config": "tsx scripts/create-types-from-json-schema.mts --verify" + }, + "sideEffects": false, + "standard": { + "ignore": [ + "**/parser/*.js", + "dist/**/*.js", + "cypress/**/*.js" + ], + "globals": [ + "page" + ] + }, + "type": "module", + "types": "./dist/mermaid.d.ts", + "version": "10.9.1" +} \ No newline at end of file diff --git a/m78-all/m78-fe/public/model-group/Claude.png b/m78-all/m78-fe/public/model-group/Claude.png new file mode 100644 index 000000000..a2f39aa93 Binary files /dev/null and b/m78-all/m78-fe/public/model-group/Claude.png differ diff --git a/m78-all/m78-fe/public/model-group/GPT.png b/m78-all/m78-fe/public/model-group/GPT.png new file mode 100644 index 000000000..248bb02d0 Binary files /dev/null and b/m78-all/m78-fe/public/model-group/GPT.png differ diff --git a/m78-all/m78-fe/public/model-group/doubao.png b/m78-all/m78-fe/public/model-group/doubao.png new file mode 100644 index 000000000..0606513b3 Binary files /dev/null and b/m78-all/m78-fe/public/model-group/doubao.png differ diff --git a/m78-all/m78-fe/public/model-group/gemini.png b/m78-all/m78-fe/public/model-group/gemini.png new file mode 100644 index 000000000..1d28e357a Binary files /dev/null and b/m78-all/m78-fe/public/model-group/gemini.png differ diff --git a/m78-all/m78-fe/public/model-group/moonshot.png b/m78-all/m78-fe/public/model-group/moonshot.png new file mode 100644 index 000000000..7e0384ebc Binary files /dev/null and b/m78-all/m78-fe/public/model-group/moonshot.png differ diff --git a/m78-all/m78-fe/public/model-group/tongyi.png b/m78-all/m78-fe/public/model-group/tongyi.png new file mode 100644 index 000000000..f3fc79852 Binary files /dev/null and b/m78-all/m78-fe/public/model-group/tongyi.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/1.png b/m78-all/m78-fe/public/probot-mode-images/1.png new file mode 100644 index 000000000..b3e12ec06 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/1.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/2.png b/m78-all/m78-fe/public/probot-mode-images/2.png new file mode 100644 index 000000000..03bc48a89 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/2.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/3.png b/m78-all/m78-fe/public/probot-mode-images/3.png new file mode 100644 index 000000000..6e38ef3c5 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/3.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/4.png b/m78-all/m78-fe/public/probot-mode-images/4.png new file mode 100644 index 000000000..2195f0d05 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/4.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/5.png b/m78-all/m78-fe/public/probot-mode-images/5.png new file mode 100644 index 000000000..1e311f964 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/5.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/6.png b/m78-all/m78-fe/public/probot-mode-images/6.png new file mode 100644 index 000000000..fb50dccd1 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/6.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/7.png b/m78-all/m78-fe/public/probot-mode-images/7.png new file mode 100644 index 000000000..81094d66d Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/7.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/8.png b/m78-all/m78-fe/public/probot-mode-images/8.png new file mode 100644 index 000000000..cb083d9d6 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/8.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/9.png b/m78-all/m78-fe/public/probot-mode-images/9.png new file mode 100644 index 000000000..2c66607d5 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/9.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/art1.png b/m78-all/m78-fe/public/probot-mode-images/art1.png new file mode 100644 index 000000000..e1fc3868f Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/art1.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/art2.png b/m78-all/m78-fe/public/probot-mode-images/art2.png new file mode 100644 index 000000000..c01b2ab95 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/art2.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/art3.png b/m78-all/m78-fe/public/probot-mode-images/art3.png new file mode 100644 index 000000000..17833d0b7 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/art3.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/back/common.png b/m78-all/m78-fe/public/probot-mode-images/back/common.png new file mode 100644 index 000000000..3510af3de Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/back/common.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/back/makeup.png b/m78-all/m78-fe/public/probot-mode-images/back/makeup.png new file mode 100644 index 000000000..1834539a8 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/back/makeup.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/back/room.png b/m78-all/m78-fe/public/probot-mode-images/back/room.png new file mode 100644 index 000000000..a86e9211f Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/back/room.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/redraw/10.png b/m78-all/m78-fe/public/probot-mode-images/redraw/10.png new file mode 100644 index 000000000..c0ea224b2 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/redraw/10.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/redraw/11.png b/m78-all/m78-fe/public/probot-mode-images/redraw/11.png new file mode 100644 index 000000000..a07928e3e Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/redraw/11.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/redraw/2.png b/m78-all/m78-fe/public/probot-mode-images/redraw/2.png new file mode 100644 index 000000000..6654f330d Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/redraw/2.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/redraw/3.png b/m78-all/m78-fe/public/probot-mode-images/redraw/3.png new file mode 100644 index 000000000..324d85279 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/redraw/3.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/redraw/4.png b/m78-all/m78-fe/public/probot-mode-images/redraw/4.png new file mode 100644 index 000000000..171469e53 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/redraw/4.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/redraw/5.png b/m78-all/m78-fe/public/probot-mode-images/redraw/5.png new file mode 100644 index 000000000..1ce109315 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/redraw/5.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/redraw/6.png b/m78-all/m78-fe/public/probot-mode-images/redraw/6.png new file mode 100644 index 000000000..d0ae62f08 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/redraw/6.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/redraw/7.png b/m78-all/m78-fe/public/probot-mode-images/redraw/7.png new file mode 100644 index 000000000..6c40459b6 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/redraw/7.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/redraw/8.png b/m78-all/m78-fe/public/probot-mode-images/redraw/8.png new file mode 100644 index 000000000..c39867d17 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/redraw/8.png differ diff --git a/m78-all/m78-fe/public/probot-mode-images/redraw/9.png b/m78-all/m78-fe/public/probot-mode-images/redraw/9.png new file mode 100644 index 000000000..d8b85b147 Binary files /dev/null and b/m78-all/m78-fe/public/probot-mode-images/redraw/9.png differ diff --git a/m78-all/m78-fe/public/vmsg/0.4.0/vmsg.wasm b/m78-all/m78-fe/public/vmsg/0.4.0/vmsg.wasm new file mode 100644 index 000000000..224bcc7fd Binary files /dev/null and b/m78-all/m78-fe/public/vmsg/0.4.0/vmsg.wasm differ diff --git a/m78-all/m78-fe/sensitive-data.sh b/m78-all/m78-fe/sensitive-data.sh new file mode 100644 index 000000000..a210cb1dc --- /dev/null +++ b/m78-all/m78-fe/sensitive-data.sh @@ -0,0 +1,12 @@ +#!/bin/bash +path=. +# 过滤网站 +grep --exclude-dir={.git,node_modules,build} --exclude=.gitmodules -Ri "mi\.com" $path +# 过滤ip +grep --exclude-dir={.git,node_modules,build} --exclude=.gitmodules -Ri -Rni "10\.\d\{1,3\}\.\d\{1,3\}\.\d\{1,3\}" $path +## 过滤x-proxy-userdetail等 +grep --exclude-dir={.git,node_modules,build} --exclude=.gitmodules -Rni "X-Proxy-Midun" $path +grep --exclude-dir={.git,node_modules,build} --exclude=.gitmodules -Rni "x-proxy-userdetail" $path +grep --exclude-dir={.git,node_modules,build} --exclude=.gitmodules -Rni "ProxyMidun" $path +grep --exclude-dir={.git,node_modules,build} --exclude=.gitmodules -Rni "ProxyUserDetail" $path +grep --exclude-dir={.git,node_modules,build} --exclude=.gitmodules -Rni "\w\{96\}==" $path \ No newline at end of file diff --git a/m78-all/m78-fe/src/App.vue b/m78-all/m78-fe/src/App.vue index e1eea21d7..eacf71677 100644 --- a/m78-all/m78-fe/src/App.vue +++ b/m78-all/m78-fe/src/App.vue @@ -2,6 +2,7 @@ import { computed } from 'vue' import { useAppStore, useUserStore, useSettingStore } from './stores' import { getElementPlusI18n } from './locales' +import { useProbotStore } from '@/stores/probot' const { language } = useAppStore() const userStore = useUserStore() @@ -11,6 +12,9 @@ const { fetchModels } = useSettingStore() const locale = computed(() => { return getElementPlusI18n(language) }) +// 模型下拉列表 +const probotStore = useProbotStore() +probotStore.getModelDataReq() initUserInfo() fetchModels() @@ -23,7 +27,7 @@ fetchModels() diff --git a/m78-all/m78-fe/src/components/BaseIconUpload.vue b/m78-all/m78-fe/src/components/BaseIconUpload.vue index 8eddc6ab8..924ae73c6 100644 --- a/m78-all/m78-fe/src/components/BaseIconUpload.vue +++ b/m78-all/m78-fe/src/components/BaseIconUpload.vue @@ -1,3 +1,9 @@ + diff --git a/m78-all/m78-fe/src/components/CommonDialog.vue b/m78-all/m78-fe/src/components/CommonDialog.vue index fb7ba2586..1dfcf2198 100644 --- a/m78-all/m78-fe/src/components/CommonDialog.vue +++ b/m78-all/m78-fe/src/components/CommonDialog.vue @@ -1,3 +1,8 @@ + diff --git a/m78-all/m78-fe/src/views/workflow/work-flow/components/components/CodeGenerator.vue b/m78-all/m78-fe/src/components/ProbotCodeGenerator.vue similarity index 92% rename from m78-all/m78-fe/src/views/workflow/work-flow/components/components/CodeGenerator.vue rename to m78-all/m78-fe/src/components/ProbotCodeGenerator.vue index 3d221bc0d..d88a36342 100644 --- a/m78-all/m78-fe/src/views/workflow/work-flow/components/components/CodeGenerator.vue +++ b/m78-all/m78-fe/src/components/ProbotCodeGenerator.vue @@ -27,6 +27,9 @@ const props = defineProps({ modelValue: { type: Boolean, default: false + }, + isFlow: { + default: false } }) const ruleForm = ref(null) @@ -49,7 +52,11 @@ const rules = ref({ }) const confirm = () => { loading.value = true - getCodeGen(form.value) + const params = form.value + if (props.isFlow) { + params.saveDB = false + } + getCodeGen(params) .then(({ data }) => { emits('codeGenRes', data?.code) dialogVisible.value = false diff --git a/m78-all/m78-fe/src/components/ProbotCodeHead.vue b/m78-all/m78-fe/src/components/ProbotCodeHead.vue new file mode 100644 index 000000000..dbc12b47d --- /dev/null +++ b/m78-all/m78-fe/src/components/ProbotCodeHead.vue @@ -0,0 +1,66 @@ + + + + + + diff --git a/m78-all/m78-fe/src/components/ProbotCodeHeadTitle.vue b/m78-all/m78-fe/src/components/ProbotCodeHeadTitle.vue new file mode 100644 index 000000000..3904be1ad --- /dev/null +++ b/m78-all/m78-fe/src/components/ProbotCodeHeadTitle.vue @@ -0,0 +1,19 @@ + + + + + + diff --git a/m78-all/m78-fe/src/components/ProbotCodeLanguage.vue b/m78-all/m78-fe/src/components/ProbotCodeLanguage.vue new file mode 100644 index 000000000..ccfcbc03d --- /dev/null +++ b/m78-all/m78-fe/src/components/ProbotCodeLanguage.vue @@ -0,0 +1,34 @@ + + + + + + diff --git a/m78-all/m78-fe/src/components/ProbotCodemirror.vue b/m78-all/m78-fe/src/components/ProbotCodemirror.vue new file mode 100644 index 000000000..92534c556 --- /dev/null +++ b/m78-all/m78-fe/src/components/ProbotCodemirror.vue @@ -0,0 +1,42 @@ + + + + diff --git a/m78-all/m78-fe/src/components/ResSel.vue b/m78-all/m78-fe/src/components/ResSel.vue new file mode 100644 index 000000000..a5d50cd6a --- /dev/null +++ b/m78-all/m78-fe/src/components/ResSel.vue @@ -0,0 +1,40 @@ + + + + + diff --git a/m78-all/m78-fe/src/components/codeMirror/index.ts b/m78-all/m78-fe/src/components/codeMirror/index.ts index 8deae8fda..5b20c0c90 100644 --- a/m78-all/m78-fe/src/components/codeMirror/index.ts +++ b/m78-all/m78-fe/src/components/codeMirror/index.ts @@ -1,6 +1,10 @@ import { ref } from 'vue' import 'codemirror/mode/javascript/javascript.js' import 'codemirror/theme/idea.css' +// import 'codemirror/addon/lint/lint.css' +// require('script-loader!jsonlint') +// import 'codemirror/addon/lint/lint' +// import 'codemirror/addon/lint/json-lint' import 'codemirror/addon/display/autorefresh' import 'codemirror/addon/display/placeholder.js' diff --git a/m78-all/m78-fe/src/components/common-bg/index.vue b/m78-all/m78-fe/src/components/common-bg/index.vue index 8fbf62004..246cd663a 100644 --- a/m78-all/m78-fe/src/components/common-bg/index.vue +++ b/m78-all/m78-fe/src/components/common-bg/index.vue @@ -1,10 +1,15 @@ + @@ -12,11 +17,10 @@ diff --git a/m78-all/m78-fe/src/components/common-message/Message/ButtonData.vue b/m78-all/m78-fe/src/components/common-message/Message/ButtonData.vue new file mode 100644 index 000000000..2fccb6515 --- /dev/null +++ b/m78-all/m78-fe/src/components/common-message/Message/ButtonData.vue @@ -0,0 +1,67 @@ + + + + + + diff --git a/m78-all/m78-fe/src/components/common-message/Message/Chart.vue b/m78-all/m78-fe/src/components/common-message/Message/Chart.vue new file mode 100644 index 000000000..0bbb37f91 --- /dev/null +++ b/m78-all/m78-fe/src/components/common-message/Message/Chart.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/m78-all/m78-fe/src/components/common-message/Message/FlowData.vue b/m78-all/m78-fe/src/components/common-message/Message/FlowData.vue new file mode 100644 index 000000000..6a69990c4 --- /dev/null +++ b/m78-all/m78-fe/src/components/common-message/Message/FlowData.vue @@ -0,0 +1,293 @@ + + + + + diff --git a/m78-all/m78-fe/src/components/common-message/Message/TableData.vue b/m78-all/m78-fe/src/components/common-message/Message/TableData.vue new file mode 100644 index 000000000..dc437ccb5 --- /dev/null +++ b/m78-all/m78-fe/src/components/common-message/Message/TableData.vue @@ -0,0 +1,75 @@ + + + + + + diff --git a/m78-all/m78-fe/src/components/common-message/Message/Text.vue b/m78-all/m78-fe/src/components/common-message/Message/Text.vue index 97e05a5b5..dca4c2609 100644 --- a/m78-all/m78-fe/src/components/common-message/Message/Text.vue +++ b/m78-all/m78-fe/src/components/common-message/Message/Text.vue @@ -1,5 +1,5 @@ - - diff --git a/m78-all/m78-fe/src/components/common-message/Message/m78.png b/m78-all/m78-fe/src/components/common-message/Message/m78.png deleted file mode 100644 index 11fadfe7f..000000000 Binary files a/m78-all/m78-fe/src/components/common-message/Message/m78.png and /dev/null differ diff --git a/m78-all/m78-fe/src/components/common-message/Message/robot.png b/m78-all/m78-fe/src/components/common-message/Message/robot.png new file mode 100644 index 000000000..fcc0fc5ed Binary files /dev/null and b/m78-all/m78-fe/src/components/common-message/Message/robot.png differ diff --git a/m78-all/m78-fe/src/components/common/Dynamic.vue b/m78-all/m78-fe/src/components/common/Dynamic.vue index 83840c18e..04e368d93 100644 --- a/m78-all/m78-fe/src/components/common/Dynamic.vue +++ b/m78-all/m78-fe/src/components/common/Dynamic.vue @@ -1,3 +1,8 @@ + diff --git a/m78-all/m78-fe/src/components/common/HeaderAvatarModel.vue b/m78-all/m78-fe/src/components/common/HeaderAvatarModel.vue index b6a587d1c..45a5dea71 100644 --- a/m78-all/m78-fe/src/components/common/HeaderAvatarModel.vue +++ b/m78-all/m78-fe/src/components/common/HeaderAvatarModel.vue @@ -1,3 +1,8 @@ +