ai-chat-bot-interface 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +28 -28
- package/src/App.vue +6 -3
- package/src/components/DishesList.vue +3 -3
- package/vite.config.js +7 -7
- package/src/components/HelloWorld.vue +0 -43
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ai-chat-bot-interface",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "index.js",
|
|
7
|
-
"description": "A AI chat bot interface. (private)",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"dev": "vite",
|
|
10
|
-
"build": "vite build",
|
|
11
|
-
"preview": "vite preview"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"vue3",
|
|
15
|
-
"ai",
|
|
16
|
-
"bot"
|
|
17
|
-
],
|
|
18
|
-
"dependencies": {
|
|
19
|
-
"vue": "^3.5.13"
|
|
20
|
-
},
|
|
21
|
-
"devDependencies": {
|
|
22
|
-
"@vitejs/plugin-vue": "^5.2.1",
|
|
23
|
-
"less": "^4.2.2",
|
|
24
|
-
"vite": "^6.1.0"
|
|
25
|
-
},
|
|
26
|
-
"author": "lin_26",
|
|
27
|
-
"license": "MIT"
|
|
28
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "ai-chat-bot-interface",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.0.4",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"description": "A AI chat bot interface. (private)",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "vite",
|
|
10
|
+
"build": "vite build",
|
|
11
|
+
"preview": "vite preview"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"vue3",
|
|
15
|
+
"ai",
|
|
16
|
+
"bot"
|
|
17
|
+
],
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"vue": "^3.5.13"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
23
|
+
"less": "^4.2.2",
|
|
24
|
+
"vite": "^6.1.0"
|
|
25
|
+
},
|
|
26
|
+
"author": "lin_26",
|
|
27
|
+
"license": "MIT"
|
|
28
|
+
}
|
package/src/App.vue
CHANGED
|
@@ -4,9 +4,12 @@ import ChatUi from './ChatUi.vue'
|
|
|
4
4
|
|
|
5
5
|
<template>
|
|
6
6
|
<div style="width: 100vw; height: 100vh;">
|
|
7
|
-
<chat-ui
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
<chat-ui
|
|
8
|
+
name="Nutribite智能營養師"
|
|
9
|
+
bot-id="7471093458661720104"
|
|
10
|
+
token="pat_2yVcSFJUZB6c9Kdcv9iktIVFeGRuzyK3bAJY6GcqKrdGxTdjKMd1iDB09ipJ6YX8"
|
|
11
|
+
logo="https://prodstatic.weis1606.cn/api/smartFood/Nutribite/icons/nutribite_logo.png"
|
|
12
|
+
uid="9396"
|
|
10
13
|
/>
|
|
11
14
|
</div>
|
|
12
15
|
</template>
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
</div>
|
|
12
12
|
</template>
|
|
13
13
|
<div class="btn_group">
|
|
14
|
-
|
|
15
|
-
<div class="btn btn_2" @click.stop="handleBtn('
|
|
14
|
+
<div class="btn btn_1" @click.stop="handleBtn('ship_order')">配送下单</div>
|
|
15
|
+
<div class="btn btn_2" @click.stop="handleBtn('pick_order')">自取下单</div>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
18
|
|
|
@@ -69,7 +69,7 @@ const handleBtn = (type) => {
|
|
|
69
69
|
|
|
70
70
|
&_group {
|
|
71
71
|
display: grid;
|
|
72
|
-
grid-template-columns: 1fr;
|
|
72
|
+
grid-template-columns: 1fr 1fr;
|
|
73
73
|
grid-column-gap: 10px;
|
|
74
74
|
margin-top: 20px;
|
|
75
75
|
}
|
package/vite.config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import vue from '@vitejs/plugin-vue'
|
|
3
|
-
|
|
4
|
-
// https://vite.dev/config/
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
plugins: [vue()],
|
|
7
|
-
})
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
|
|
4
|
+
// https://vite.dev/config/
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
plugins: [vue()],
|
|
7
|
+
})
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { ref } from 'vue'
|
|
3
|
-
|
|
4
|
-
defineProps({
|
|
5
|
-
msg: String,
|
|
6
|
-
})
|
|
7
|
-
|
|
8
|
-
const count = ref(0)
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<template>
|
|
12
|
-
<h1>{{ msg }}</h1>
|
|
13
|
-
|
|
14
|
-
<div class="card">
|
|
15
|
-
<button type="button" @click="count++">count is {{ count }}</button>
|
|
16
|
-
<p>
|
|
17
|
-
Edit
|
|
18
|
-
<code>components/HelloWorld.vue</code> to test HMR
|
|
19
|
-
</p>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<p>
|
|
23
|
-
Check out
|
|
24
|
-
<a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
|
|
25
|
-
>create-vue</a
|
|
26
|
-
>, the official Vue + Vite starter
|
|
27
|
-
</p>
|
|
28
|
-
<p>
|
|
29
|
-
Learn more about IDE Support for Vue in the
|
|
30
|
-
<a
|
|
31
|
-
href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support"
|
|
32
|
-
target="_blank"
|
|
33
|
-
>Vue Docs Scaling up Guide</a
|
|
34
|
-
>.
|
|
35
|
-
</p>
|
|
36
|
-
<p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
|
|
37
|
-
</template>
|
|
38
|
-
|
|
39
|
-
<style scoped>
|
|
40
|
-
.read-the-docs {
|
|
41
|
-
color: #888;
|
|
42
|
-
}
|
|
43
|
-
</style>
|