From 66cac2e7246fd0be572cf8a04ce2a585e84b9a02 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sat, 21 Aug 2021 17:22:57 +0800 Subject: [PATCH] chore: rename webpanel -> webview --- .../package.json | 2 +- .../src/index.tsx | 2 +- .../tsconfig.json | 0 web/src/plugin/common/reg.ts | 2 +- web/src/plugin/loader.ts | 4 ++-- 5 files changed, 5 insertions(+), 5 deletions(-) rename web/plugins/{com.msgbyte.webpanel => com.msgbyte.webview}/package.json (68%) rename web/plugins/{com.msgbyte.webpanel => com.msgbyte.webview}/src/index.tsx (93%) rename web/plugins/{com.msgbyte.webpanel => com.msgbyte.webview}/tsconfig.json (100%) diff --git a/web/plugins/com.msgbyte.webpanel/package.json b/web/plugins/com.msgbyte.webview/package.json similarity index 68% rename from web/plugins/com.msgbyte.webpanel/package.json rename to web/plugins/com.msgbyte.webview/package.json index 57c6f413..f8e54e87 100644 --- a/web/plugins/com.msgbyte.webpanel/package.json +++ b/web/plugins/com.msgbyte.webview/package.json @@ -1,5 +1,5 @@ { - "name": "@plugins/com.msgbyte.webpanel", + "name": "@plugins/com.msgbyte.webview", "main": "src/index.tsx", "version": "0.0.0", "private": true, diff --git a/web/plugins/com.msgbyte.webpanel/src/index.tsx b/web/plugins/com.msgbyte.webview/src/index.tsx similarity index 93% rename from web/plugins/com.msgbyte.webpanel/src/index.tsx rename to web/plugins/com.msgbyte.webview/src/index.tsx index cecfab2f..b7154c73 100644 --- a/web/plugins/com.msgbyte.webpanel/src/index.tsx +++ b/web/plugins/com.msgbyte.webview/src/index.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { regGroupPanel, useCurrentGroupPanelInfo } from '@capital/common'; -const PLUGIN_NAME = 'com.msgbyte.webpanel'; +const PLUGIN_NAME = 'com.msgbyte.webview'; const GroupWebPanelRender = () => { const groupPanelInfo = useCurrentGroupPanelInfo(); diff --git a/web/plugins/com.msgbyte.webpanel/tsconfig.json b/web/plugins/com.msgbyte.webview/tsconfig.json similarity index 100% rename from web/plugins/com.msgbyte.webpanel/tsconfig.json rename to web/plugins/com.msgbyte.webview/tsconfig.json diff --git a/web/src/plugin/common/reg.ts b/web/src/plugin/common/reg.ts index e61e2b55..b751a381 100644 --- a/web/src/plugin/common/reg.ts +++ b/web/src/plugin/common/reg.ts @@ -6,7 +6,7 @@ import { buildRegList, FastFormFieldMeta } from 'tailchat-shared'; export interface PluginGroupPanel { /** * 面板唯一标识 - * @example com.msgbyte.webpanel/grouppanel + * @example com.msgbyte.webview/grouppanel */ name: string; diff --git a/web/src/plugin/loader.ts b/web/src/plugin/loader.ts index 530ca2db..cfd0f7d4 100644 --- a/web/src/plugin/loader.ts +++ b/web/src/plugin/loader.ts @@ -10,8 +10,8 @@ export function initPlugins(): Promise { return initMiniStar({ plugins: [ { - name: 'com.msgbyte.webpanel', - url: '/plugins/com.msgbyte.webpanel/index.js', + name: 'com.msgbyte.webview', + url: '/plugins/com.msgbyte.webview/index.js', }, ], });