Skip to content

Commit

Permalink
chore: clean old workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
lvisei committed Nov 11, 2024
1 parent 48516fd commit fc415d1
Show file tree
Hide file tree
Showing 24 changed files with 18 additions and 375 deletions.
13 changes: 0 additions & 13 deletions .editorconfig

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintrc.js

This file was deleted.

30 changes: 0 additions & 30 deletions .gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

19 changes: 0 additions & 19 deletions .prettierrc.js

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ $npm i --save gpt-vis

## 快速使用

快速使用 gpt-vis渲染出对话卡片的 UI。
快速使用 gpt-vis 渲染出对话卡片的 UI。

```tsx
import { Conversation, Components } from 'gpt-vis';
import { Conversation, Components } from "gpt-vis";

function Demo() {
// 服务端返回的协议内容
const content =
'# GPT-VIS \n\nComponents for GPTs, generative AI, and LLM projects. Not only UI Components.';
"# GPT-VIS \n\nComponents for GPTs, generative AI, and LLM projects. Not only UI Components.";

return <Conversation components={Components}>{content}</Conversation>;
}
Expand All @@ -42,10 +42,10 @@ function Demo() {
使用自定义的 UI 组件。UI 渲染最终使用 markdown 格式,所以自定义的方式有两种,一种是基于 markdown code 标签去扩展语言,一种是扩展标签。

````tsx
import { Conversation, Components } from 'gpt-vis';
import { Conversation, Components } from "gpt-vis";

const custom = {
'my-ui': () => {},
"my-ui": () => {},
};

function Demo() {
Expand Down
21 changes: 0 additions & 21 deletions dev/demo/basic.ts

This file was deleted.

1 change: 0 additions & 1 deletion dev/demo/index.ts

This file was deleted.

7 changes: 0 additions & 7 deletions dev/index.html

This file was deleted.

45 changes: 0 additions & 45 deletions dev/main.tsx

This file was deleted.

83 changes: 13 additions & 70 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,79 +1,22 @@
{
"name": "GPT-Vis",
"name": "@antv/gpt-vis",
"version": "0.0.1",
"description": "GPT-Vis",
"repository": "[email protected]:eosphoros-ai/GPT-Vis.git",
"repository": "[email protected]:antvis/GPT-Vis.git",
"license": "MIT",
"author": "antvis",
"sideEffects": false,
"module": "es/index.js",
"types": "es/index.d.ts",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"typings": "dist/esm/index.d.ts",
"files": [
"src",
"lib",
"es"
"dist",
"README.md"
],
"scripts": {
"build": "npm run build:lib && npm run build:es",
"build:es": "rm -rf es && tsc --module esnext --outDir es",
"build:lib": "rm -rf lib && tsc --module commonjs --outDir lib",
"dev": "vite dev",
"prepublishOnly": "npm run build"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{md,json}": [
"prettier --write --no-error-on-unmatched-pattern"
],
"*.{css,less}": [
"prettier --write"
],
"*.{js,jsx}": [
"eslint --fix",
"prettier --write"
],
"*.{ts,tsx}": [
"eslint --fix",
"prettier --parser=typescript --write"
]
},
"dependencies": {
"@ant-design/icons": "^5.2.6",
"@antv/ava": "^3.3.1",
"@berryv/g2-react": "^0.1.0",
"antd": "^5.12.2",
"copy-to-clipboard": "^3.3.3",
"lodash": "^4.17.21",
"react-markdown": "^8.0.7",
"react-syntax-highlighter": "^15.5.0",
"rehype-raw": "6.1.1",
"sql-formatter": "^14.0.0"
},
"devDependencies": {
"@types/lodash": "^4.14.202",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
"@types/react-syntax-highlighter": "^15.5.11",
"@umijs/lint": "^4.0.89",
"@umijs/plugins": "^4.0.89",
"eslint": "^8.56.0",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"prettier": "^3.1.1",
"prettier-plugin-organize-imports": "^3.2.4",
"prettier-plugin-packagejson": "^2.4.7",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwindcss": "^3.3.6",
"typescript": "^5.4.5",
"vite": "^5.2.13"
},
"scripts": {},
"dependencies": {},
"devDependencies": {},
"peerDependencies": {
"react": ">=16.9.0",
"react-dom": ">=16.9.0"
},
"authors": []
"react": ">=16.9.0"
}
}
25 changes: 0 additions & 25 deletions src/components/A/index.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions src/components/Code/index.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions src/components/index.ts

This file was deleted.

30 changes: 0 additions & 30 deletions src/core/Conversation/index.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/core/index.ts

This file was deleted.

22 changes: 0 additions & 22 deletions src/global.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/index.css

This file was deleted.

4 changes: 0 additions & 4 deletions src/index.ts

This file was deleted.

Loading

0 comments on commit fc415d1

Please sign in to comment.