Skip to content

Commit

Permalink
chore: rename status to webui
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Mar 30, 2021
1 parent d626a14 commit 904e589
Show file tree
Hide file tree
Showing 49 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Koishi 原生地支持了多账户与跨平台,同时为这些机器人之间
- [koishi-plugin-puppeteer](https://koishi.js.org/plugins/other/puppeteer.md) / 网页截图
- [koishi-plugin-rss](https://koishi.js.org/plugins/other/rss.md) / 订阅 RSS
- [koishi-plugin-schedule](https://koishi.js.org/plugins/other/schedule.md) / 设置计划任务
- [koishi-plugin-status](https://koishi.js.org/plugins/other/status.md) / 状态监控
- [koishi-plugin-webui](https://koishi.js.org/plugins/other/webui.md) / 状态监控
- [koishi-plugin-tools](https://koishi.js.org/plugins/other/tools.md) / 实用工具

## 使用协议
Expand Down
2 changes: 1 addition & 1 deletion build/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const KOISHI_VERSION = JSON.stringify(version)
entryPoints.push(base + '/src/worker.ts')
} else if (name === 'koishi-test-utils') {
await tasks[chai]
} else if (name === 'plugin-status') {
} else if (name === 'plugin-webui') {
entryPoints.splice(0, 1, base + '/server/index.ts')
}

Expand Down
2 changes: 1 addition & 1 deletion build/dtsc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async function bundleAll(names: readonly string[]) {
}
}

const targets = ['koishi-utils', 'koishi-core', 'plugin-mysql', 'plugin-mongo', 'plugin-status']
const targets = ['koishi-utils', 'koishi-core', 'plugin-mysql', 'plugin-mongo', 'plugin-webui']
const corePlugins = ['common', 'eval', 'puppeteer', 'teach']

function precedence(name: string) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build": "yarn compile && yarn dtsc",
"build:ci": "yarn build:reg && yarn build --listEmittedFiles && yarn build:web",
"build:reg": "esbuild build/register.ts --outdir=build --format=cjs --log-level=error",
"build:web": "node -r ./build/register packages/plugin-status/build",
"build:web": "node -r ./build/register packages/plugin-webui/build",
"dtsc": "node -r ./build/register build/dtsc",
"bump": "node -r ./build/register build/bump",
"compile": "node -r ./build/register build/compile",
Expand Down
3 changes: 0 additions & 3 deletions packages/plugin-status/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/plugin-teach/client/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { router } from 'koishi-plugin-status/client'
import { router } from 'koishi-plugin-webui/client'
import Teach from './teach.vue'
import 'vite/dynamic-import-polyfill'

Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-teach/client/teach.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<script lang="ts" setup>
import { meta } from 'koishi-plugin-status/client'
import { meta } from 'koishi-plugin-webui/client'
import WordCloud from './word-cloud.vue'
</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-teach/client/word-cloud.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<script lang="ts" setup>
import { stats } from 'koishi-plugin-status/client'
import { stats } from 'koishi-plugin-webui/client'
import { computed, ref } from 'vue'
const questions = ref(stats.value.questions)
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-teach/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"devDependencies": {
"koishi-plugin-mongo": "^2.2.0",
"koishi-plugin-mysql": "^3.3.0",
"koishi-plugin-status": "^4.0.0",
"koishi-plugin-webui": "^4.0.0",
"koishi-test-utils": "^6.0.0-beta.11"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin-teach/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import probability from './plugins/probability'
import successor from './plugins/successor'
import time from './plugins/time'
import writer from './plugins/writer'
import {} from 'koishi-plugin-status'
import {} from 'koishi-plugin-webui'
import { resolve } from 'path'

export * from './utils'
Expand All @@ -38,7 +38,7 @@ declare module 'koishi-core' {
}
}

declare module 'koishi-plugin-status' {
declare module 'koishi-plugin-webui' {
namespace Meta {
interface Payload extends Dialogue.Stats {}
}
Expand Down Expand Up @@ -208,7 +208,7 @@ export function apply(ctx: Context, config: Config = {}) {
const webui = ctx.app.webui
if (webui) {
const { stats, meta } = webui.sources
ctx.addDependency('koishi-plugin-status')
ctx.addDependency('koishi-plugin-webui')

ctx.on('dialogue/before-send', ({ session, dialogue }) => {
session._sendType = 'dialogue'
Expand Down
3 changes: 3 additions & 0 deletions packages/plugin-webui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# [koishi-plugin-webui](https://koishi.js.org/plugins/other/status)

[![npm](https://img.shields.io/npm/v/koishi-plugin-webui?style=flat-square)](https://www.npmjs.com/package/koishi-plugin-webui)
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ declare module '*.vue' {
}

declare module '~/server' {
export * from 'koishi-plugin-status/server'
export * from 'koishi-plugin-webui/server'
}

declare module '~/client' {
export * from 'koishi-plugin-status/client'
export * from 'koishi-plugin-webui/client'
}

declare const KOISHI_ENDPOINT: string
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "koishi-plugin-status",
"description": "Show Status of Koishi",
"name": "koishi-plugin-webui",
"description": "Show Web UI of Koishi",
"version": "4.0.0",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand All @@ -19,7 +19,7 @@
"bugs": {
"url": "https://github.com/koishijs/koishi/issues"
},
"homepage": "https://github.com/koishijs/plugins/plugin-status#readme",
"homepage": "https://github.com/koishijs/plugins/plugin-webui#readme",
"keywords": [
"bot",
"qqbot",
Expand All @@ -28,7 +28,7 @@
"chatbot",
"koishi",
"plugin",
"status"
"webui"
],
"peerDependencies": {
"koishi-core": "^3.5.1"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 904e589

Please sign in to comment.