Refactor plugin store types and update category logic

Simplified PluginStoreItem types by removing unused fields and standardizing the minimum version property. Updated frontend plugin store page to use new categories ('官方', '工具', '娱乐', '其它') instead of download-based sorting, aligning with the revised type definitions.
This commit is contained in:
手瓜一十雪 committed 2026-01-27 21:47:44 +08:00
1 parent ab2dfcfd8f
commit 8b676ed693
4 files changed
+16 -31

No files matched your search

@@ -5,7 +5,8 @@ import { builtinModules } from 'module';
import fs from 'fs';
const nodeModules = [...builtinModules, builtinModules.map((m) => `node:${m}`)].flat();
// 依赖排除
const external = [];
// 构建后拷贝插件
function copyToShellPlugin () {
return {
@@ -68,7 +69,10 @@ export default defineConfig({
entry: 'index.ts',
formats: ['es'],
fileName: () => 'index.mjs',
}
},
rollupOptions: {
external: [...nodeModules, ...external],
},
},
plugins: [nodeResolve(), copyToShellPlugin()],
});