优化
This commit is contained in:
BIN
client/web/plugins/com.msgbyte.toolwa/assets/icon.png
Normal file
BIN
client/web/plugins/com.msgbyte.toolwa/assets/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
12
client/web/plugins/com.msgbyte.toolwa/manifest.json
Normal file
12
client/web/plugins/com.msgbyte.toolwa/manifest.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"label": "Tool frog!",
|
||||
"label.zh-CN": "工具哇!",
|
||||
"name": "com.msgbyte.toolwa",
|
||||
"url": "/plugins/com.msgbyte.toolwa/index.js",
|
||||
"icon": "/plugins/com.msgbyte.toolwa/assets/icon.png",
|
||||
"version": "0.0.0",
|
||||
"author": "msgbyte",
|
||||
"description": "Tool frog —— online tools",
|
||||
"description.zh-CN": "工具哇 —— 在线小工具",
|
||||
"requireRestart": false
|
||||
}
|
||||
8
client/web/plugins/com.msgbyte.toolwa/package.json
Normal file
8
client/web/plugins/com.msgbyte.toolwa/package.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "@plugins/com.msgbyte.toolwa",
|
||||
"main": "src/index.tsx",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
}
|
||||
}
|
||||
16
client/web/plugins/com.msgbyte.toolwa/src/index.tsx
Normal file
16
client/web/plugins/com.msgbyte.toolwa/src/index.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { regCustomPanel } from '@capital/common';
|
||||
import { Webview } from '@capital/component';
|
||||
import React from 'react';
|
||||
import { Translate } from './translate';
|
||||
|
||||
const PLUGIN_NAME = 'com.msgbyte.toolwa';
|
||||
|
||||
regCustomPanel({
|
||||
name: `${PLUGIN_NAME}/personPanel`,
|
||||
position: 'personal',
|
||||
label: Translate.panelName,
|
||||
icon: 'openmoji:frog',
|
||||
render: () => (
|
||||
<Webview className="w-full h-full bg-white" url="https://toolwa.com/" />
|
||||
),
|
||||
});
|
||||
5
client/web/plugins/com.msgbyte.toolwa/src/translate.ts
Normal file
5
client/web/plugins/com.msgbyte.toolwa/src/translate.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { localTrans } from '@capital/common';
|
||||
|
||||
export const Translate = {
|
||||
panelName: localTrans({ 'zh-CN': '工具哇!', 'en-US': 'Toolwa!' }),
|
||||
};
|
||||
9
client/web/plugins/com.msgbyte.toolwa/tsconfig.json
Normal file
9
client/web/plugins/com.msgbyte.toolwa/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"esModuleInterop": true,
|
||||
"jsx": "react",
|
||||
"paths": {
|
||||
"@capital/*": ["../../src/plugin/*"],
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user