Skip to content

Commit

Permalink
feat: add two page
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-sett committed Oct 11, 2023
1 parent 412f3db commit 007c606
Show file tree
Hide file tree
Showing 20 changed files with 1,654 additions and 66 deletions.
10 changes: 10 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Glob API URL
VITE_GLOB_API_URL=/api

VITE_APP_API_BASE_URL=http://139.9.245.142:7870/

# # Whether long replies are supported, which may result in higher API fees
# VITE_GLOB_OPEN_LONG_REPLY=false

# # When you want to use PWA
# VITE_GLOB_APP_PWA=false
10 changes: 10 additions & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,18 @@ export {}

declare module 'vue' {
export interface GlobalComponents {
Avatar: typeof import('./src/components/Message/Avatar.vue')['default']
ElButton: typeof import('element-plus/es')['ElButton']
ElIcon: typeof import('element-plus/es')['ElIcon']
ElInput: typeof import('element-plus/es')['ElInput']
ElOption: typeof import('element-plus/es')['ElOption']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElTabPane: typeof import('element-plus/es')['ElTabPane']
ElTabs: typeof import('element-plus/es')['ElTabs']
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
Message: typeof import('./src/components/Message/index.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Text: typeof import('./src/components/Message/Text.vue')['default']
}
}
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@
"name": "chatbot-test",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"build": "vue-tsc --noEmit --skipLibCheck && vite build",
"preview": "vite preview"
},
"dependencies": {
"@traptitech/markdown-it-katex": "^3.6.0",
"@element-plus/icons-vue": "^2.1.0",
"@vueuse/core": "^9.13.0",
"element-plus": "^2.3.14",
"highlight.js": "^11.7.0",
"katex": "^0.16.4",
"markdown-it": "^13.0.1",
"pinia": "^2.0.33",
"vue": "^3.3.4",
"vue-router": "^4.1.6"
Expand All @@ -20,8 +23,14 @@
"@antfu/eslint-config": "^0.35.3",
"@types/node": "^18.14.6",
"@vitejs/plugin-vue": "^4.2.3",
"@types/katex": "^0.16.0",
"@types/markdown-it": "^12.2.3",
"@types/markdown-it-link-attributes": "^3.0.1",
"autoprefixer": "^10.4.16",
"axios": "^1.3.4",
"eslint": "^8.35.0",
"markdown-it-link-attributes": "^4.0.1",
"postcss": "^8.4.31",
"tailwindcss": "^3.2.7",
"typescript": "^5.0.2",
"unplugin-auto-import": "^0.16.6",
Expand Down
Loading

0 comments on commit 007c606

Please sign in to comment.