Skip to content

Commit

Permalink
🙈 不忽略public目录
Browse files Browse the repository at this point in the history
  • Loading branch information
muwoo committed Dec 15, 2021
1 parent c855fb4 commit afca4f2
Show file tree
Hide file tree
Showing 11 changed files with 337 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,3 @@ pnpm-debug.log*

#Electron-builder output
/dist_electron

/public/feature
/public/runner
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rubick",
"version": "2.0.0",
"version": "2.0.1-beta.1",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
2 changes: 2 additions & 0 deletions public/feature/css/app.972d60c9.css

Large diffs are not rendered by default.

Binary file added public/feature/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions public/feature/index.html
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 2 additions & 0 deletions public/feature/js/app.81d45831.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/feature/js/app.81d45831.js.map

Large diffs are not rendered by default.

285 changes: 285 additions & 0 deletions public/feature/js/chunk-vendors.ebb3d342.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/feature/js/chunk-vendors.ebb3d342.js.map

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions public/feature/package.json
Original file line number Diff line number Diff line change
@@ -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 changes: 13 additions & 0 deletions public/feature/preload.js
Original file line number Diff line number Diff line change
@@ -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);
},
}

0 comments on commit afca4f2

Please sign in to comment.