mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2026-01-29 01:07:27 +00:00
✨ feat(guoba.support.js): add support function for crystelf-plugin with plugin and config information
This commit is contained in:
parent
b0c45f413a
commit
a9843beed7
30
guoba.support.js
Normal file
30
guoba.support.js
Normal file
@ -0,0 +1,30 @@
|
||||
import path from 'path';
|
||||
import { getConfigData, setConfigData } from './guoba/configHandler.js';
|
||||
import guobaSchema from './guoba/configSchema.js';
|
||||
|
||||
export function supportGuoba() {
|
||||
return {
|
||||
pluginInfo: {
|
||||
name: 'crystelf-plugin',
|
||||
title: '晶灵插件',
|
||||
description: '多功能娱乐插件,支持AI对话、图像生成、音乐点播、60s新闻、验证管理等功能',
|
||||
author: 'Jerry',
|
||||
authorLink: 'https://github.com/jerryplusy',
|
||||
link: 'https://github.com/jerryplusy/crystelf-plugin',
|
||||
isV3: true,
|
||||
isV2: false,
|
||||
showInMenu: 'auto',
|
||||
icon: 'mdi:crystal',
|
||||
iconColor: '#7c4dff',
|
||||
iconPath: path.join(process.cwd(), '/plugins/crystelf-plugin/resources/img/logo.png'),
|
||||
},
|
||||
configInfo: {
|
||||
schemas: guobaSchema,
|
||||
// 获取配置数据方法(用于前端填充显示数据)
|
||||
getConfigData,
|
||||
|
||||
// 设置配置的方法(前端点确定后调用的方法)
|
||||
setConfigData,
|
||||
},
|
||||
};
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user