koishi-plugin-chat-patch 1.2.0 → 1.3.0
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/client/icons/activity.vue +9 -9
- package/client/icons/index.ts +4 -4
- package/client/index.scss +4 -4
- package/client/index.ts +22 -22
- package/client/vue/chat-logic.ts +3784 -3784
- package/client/vue/index.vue +361 -361
- package/client/vue/style.css +1997 -1973
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/lib/index.js +20 -3
- package/package.json +40 -40
- package/readme.md +25 -25
- package/src/api-handlers.ts +657 -657
- package/src/config.ts +49 -49
- package/src/file-manager.ts +168 -168
- package/src/index.ts +125 -125
- package/src/message-handler.ts +304 -282
- package/src/types.ts +59 -59
- package/src/utils.ts +99 -99
- package/lib/config.d.ts +0 -14
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg class="k-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
3
|
-
<path d="M8 10.5H16" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
|
|
4
|
-
<path d="M8 14H13.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
|
|
5
|
-
<path
|
|
6
|
-
d="M17 3.33782C15.5291 2.48697 13.8214 2 12 2C6.47715 2 2 6.47715 2 12C2 13.5997 2.37562 15.1116 3.04346 16.4525C3.22094 16.8088 3.28001 17.2161 3.17712 17.6006L2.58151 19.8267C2.32295 20.793 3.20701 21.677 4.17335 21.4185L6.39939 20.8229C6.78393 20.72 7.19121 20.7791 7.54753 20.9565C8.88837 21.6244 10.4003 22 12 22C17.5228 22 22 17.5228 22 12C22 10.1786 21.513 8.47087 20.6622 7"
|
|
7
|
-
stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
|
|
8
|
-
</svg>
|
|
9
|
-
</template>
|
|
1
|
+
<template>
|
|
2
|
+
<svg class="k-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
3
|
+
<path d="M8 10.5H16" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
|
|
4
|
+
<path d="M8 14H13.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
|
|
5
|
+
<path
|
|
6
|
+
d="M17 3.33782C15.5291 2.48697 13.8214 2 12 2C6.47715 2 2 6.47715 2 12C2 13.5997 2.37562 15.1116 3.04346 16.4525C3.22094 16.8088 3.28001 17.2161 3.17712 17.6006L2.58151 19.8267C2.32295 20.793 3.20701 21.677 4.17335 21.4185L6.39939 20.8229C6.78393 20.72 7.19121 20.7791 7.54753 20.9565C8.88837 21.6244 10.4003 22 12 22C17.5228 22 22 17.5228 22 12C22 10.1786 21.513 8.47087 20.6622 7"
|
|
7
|
+
stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
|
|
8
|
+
</svg>
|
|
9
|
+
</template>
|
package/client/icons/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { icons } from '@koishijs/client'
|
|
2
|
-
import Activity from './activity.vue'
|
|
3
|
-
|
|
4
|
-
icons.register('activity:chat', Activity)
|
|
1
|
+
import { icons } from '@koishijs/client'
|
|
2
|
+
import Activity from './activity.vue'
|
|
3
|
+
|
|
4
|
+
icons.register('activity:chat', Activity)
|
package/client/index.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.layout-iframe {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 100%;
|
|
4
|
-
border: none;
|
|
1
|
+
.layout-iframe {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
border: none;
|
|
5
5
|
}
|
package/client/index.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import { defineComponent, h, resolveComponent } from 'vue'
|
|
3
|
-
import { Context } from '@koishijs/client'
|
|
4
|
-
import Chat from './vue/index.vue'
|
|
5
|
-
import './index.scss'
|
|
6
|
-
import './icons'
|
|
7
|
-
|
|
8
|
-
export default (ctx: Context) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
|
|
2
|
+
import { defineComponent, h, resolveComponent } from 'vue'
|
|
3
|
+
import { Context } from '@koishijs/client'
|
|
4
|
+
import Chat from './vue/index.vue'
|
|
5
|
+
import './index.scss'
|
|
6
|
+
import './icons'
|
|
7
|
+
|
|
8
|
+
export default (ctx: Context) => {
|
|
9
|
+
ctx.page({
|
|
10
|
+
name: '聊天室',
|
|
11
|
+
path: '/chat-patch',
|
|
12
|
+
desc: "",
|
|
13
|
+
authority: 4,
|
|
14
|
+
icon: 'activity:chat',
|
|
15
|
+
component: defineComponent({
|
|
16
|
+
setup() {
|
|
17
|
+
return () => h(resolveComponent('k-layout'), {}, {
|
|
18
|
+
default: () => h(Chat)
|
|
19
|
+
})
|
|
20
|
+
},
|
|
21
|
+
}),
|
|
22
|
+
})
|
|
23
23
|
}
|