🙈 不忽略public目录

This commit is contained in:
muwoo 2021-12-15 14:53:17 +08:00
parent c855fb470e
commit afca4f2b5a
11 changed files with 337 additions and 4 deletions

3
.gitignore vendored
View File

@ -24,6 +24,3 @@ pnpm-debug.log*
#Electron-builder output
/dist_electron
/public/feature
/public/runner

View File

@ -1,6 +1,6 @@
{
"name": "rubick",
"version": "2.0.0",
"version": "2.0.1-beta.1",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",

File diff suppressed because one or more lines are too long

BIN
public/feature/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -0,0 +1 @@
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>feature</title><link href="css/app.972d60c9.css" rel="preload" as="style"><link href="js/app.81d45831.js" rel="preload" as="script"><link href="js/chunk-vendors.ebb3d342.js" rel="preload" as="script"><link href="css/app.972d60c9.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but feature doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="js/chunk-vendors.ebb3d342.js"></script><script src="js/app.81d45831.js"></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,31 @@
{
"name": "rubick-system-feature",
"pluginName": "rubick 系统菜单",
"description": "rubick 系统菜单",
"main": "index.html",
"logo": "https://static.91jkys.com/upload/202112/08/8a1abbb051bf4b05bbc9bbf66ade63f2.png",
"version": "0.0.0",
"preload":"preload.js",
"pluginType": "ui",
"features": [
{
"code": "market",
"explain": "rubick 插件市场",
"cmds":[
"插件市场"
]
},{
"code": "plugins",
"explain": "rubick 已安装插件",
"cmds":[
"已安装插件"
]
},{
"code": "settings",
"explain": "rubick 偏好设置",
"cmds":[
"偏好设置"
]
}
]
}

13
public/feature/preload.js Normal file
View File

@ -0,0 +1,13 @@
const {remote} = require("electron");
window.market = {
getLocalPlugins() {
return remote.getGlobal("LOCAL_PLUGINS").getLocalPlugins();
},
downloadPlugin(plugin) {
return remote.getGlobal("LOCAL_PLUGINS").downloadPlugin(plugin);
},
deletePlugin(plugin) {
return remote.getGlobal("LOCAL_PLUGINS").deletePlugin(plugin);
},
}