tmui-cli 1.2.8 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/createTmui.js +3 -3
- package/bin/hooks.js +21 -3
- package/package.json +1 -1
- package/website/css/app.fa961c8f.css +1 -0
- package/website/css/chunk-vendors.4ad1cdb5.css +2 -0
- package/website/index.html +1 -20
- package/website/js/app.b68ad484.js +2 -0
- package/website/js/app.b68ad484.js.map +1 -0
- package/website/js/chunk-vendors.d9ea5cfa.js +15 -0
- package/website/js/chunk-vendors.d9ea5cfa.js.map +1 -0
- package/website/js/app.js +0 -997
- package/website/js/chunk-vendors.js +0 -13592
package/bin/createTmui.js
CHANGED
|
@@ -353,10 +353,10 @@ async function createTmui(arg, call, end) {
|
|
|
353
353
|
})
|
|
354
354
|
call(`更新版本号完成,正在重新安装依赖,这个过程可能比较缓慢,如果失败,请手动在项目目录执行npm install或者重试`)
|
|
355
355
|
|
|
356
|
-
// 检查是不是mac m1
|
|
356
|
+
// 检查是不是mac m1芯片系列,最新的4.42+不需要了
|
|
357
357
|
if (arg.machine == 'arm') {
|
|
358
|
-
initjson['dependencies']["@esbuild/darwin-x64"] = "^0.21.5"
|
|
359
|
-
initjson['dependencies']["@rollup/rollup-darwin-x64"] = "^4.24.0"
|
|
358
|
+
// initjson['dependencies']["@esbuild/darwin-x64"] = "^0.21.5"
|
|
359
|
+
// initjson['dependencies']["@rollup/rollup-darwin-x64"] = "^4.24.0"
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
writePackageJson(packjsonDir, JSON.stringify(initjson, null, 4))
|
package/bin/hooks.js
CHANGED
|
@@ -6,9 +6,8 @@ const {selectedDir} = require("./selectedDir.js")
|
|
|
6
6
|
const osUtils = require("node-os-utils")
|
|
7
7
|
const {WebSocketServer} = require("ws")
|
|
8
8
|
const {execCmd, devRunApp, killChildAndGrandChildren, buildApp} = require("./cmdTool.js")
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const os = require('os');
|
|
10
|
+
const path = require('path');
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
|
|
@@ -200,6 +199,25 @@ wss.on('connection', async function connection(ws) {
|
|
|
200
199
|
}))
|
|
201
200
|
})
|
|
202
201
|
}
|
|
202
|
+
// 获取用户电脑的根目录
|
|
203
|
+
else if(obj.event=='23'){
|
|
204
|
+
const userHomeDirectory = os.homedir();
|
|
205
|
+
let drawerRoot = ''
|
|
206
|
+
const platform = os.platform();
|
|
207
|
+
if (platform === 'win32') {
|
|
208
|
+
drawerRoot = path.parse(process.cwd()).root;
|
|
209
|
+
} else if (platform === 'darwin') {
|
|
210
|
+
drawerRoot = "/usr"
|
|
211
|
+
}
|
|
212
|
+
send(JSON.stringify({
|
|
213
|
+
event: '23',
|
|
214
|
+
flag:'end',
|
|
215
|
+
data: JSON.stringify({
|
|
216
|
+
user:userHomeDirectory,
|
|
217
|
+
root:drawerRoot
|
|
218
|
+
})
|
|
219
|
+
}))
|
|
220
|
+
}
|
|
203
221
|
|
|
204
222
|
|
|
205
223
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,body,html{margin:0;padding:0}.appbody{min-height:100vh}.arco-layout-content{display:flex;flex-direction:column}.arco-layout-sider{background:#000724!important}.arco-menu-dark,.arco-menu-dark .arco-menu-group-title,.arco-menu-dark .arco-menu-inline-header,.arco-menu-dark .arco-menu-item,.arco-menu-dark .arco-menu-pop-header{background:transparent!important}.removeClse[data-v-e821f0f4]{position:absolute;z-index:4;right:10px;top:10px}.header[data-v-e821f0f4]{height:60px;display:flex;flex-flow:column;justify-content:center;align-items:center;background:#fff;color:#000;width:100%;height:100%;border-radius:10px;overflow:hidden;box-shadow:0 0 24px rgba(36,76,255,.1);transition:all .3s;position:relative}.header[data-v-e821f0f4]:hover{color:#fff;cursor:pointer;background:#244cff;box-shadow:0 0 24px rgba(36,76,255,.4)}.header.on[data-v-e821f0f4]{background:linear-gradient(45deg,#021406,#256133)}.header.on[data-v-e821f0f4]:hover{cursor:default}.header.onux[data-v-e821f0f4]{background:linear-gradient(45deg,#1c0303,#6c2525)}.header .etitle[data-v-e821f0f4]{margin-top:12px}.headerRunMasker[data-v-e821f0f4]{font-size:12px;color:#fff;padding:0;margin:0;background:rgba(0,12,38,.1);width:100%;height:100%;display:flex;flex-flow:column;justify-content:center;align-items:center;position:absolute;left:0;top:0;z-index:5;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.headerRunMasker a[data-v-e821f0f4]{padding:10px 0}.itemcell.dir[data-v-0c5d396a]:hover{background-color:rgba(36,76,255,.1);color:#244cff;cursor:pointer}.body[data-v-2674685f]{display:grid;grid-template-columns:repeat(1,1fr);gap:20px;padding:10px}.body .item[data-v-2674685f]{background-color:grey;height:450px;border-radius:10px}@media screen and (min-width:900px){.body[data-v-2674685f]{display:grid;grid-template-columns:repeat(2,1fr)}}@media screen and (min-width:1200px){.body[data-v-2674685f]{display:grid;grid-template-columns:repeat(3,1fr)}}@media screen and (min-width:1500px){.body[data-v-2674685f]{display:grid;grid-template-columns:repeat(4,1fr)}}@media screen and (min-width:1800px){.body[data-v-2674685f]{display:grid;grid-template-columns:repeat(4,1fr)}}@media screen and (min-width:2100px){.body[data-v-2674685f]{display:grid;grid-template-columns:repeat(5,1fr)}}.box[data-v-5efaaea3]{margin:24px;margin-top:0;display:flex;flex-direction:row;flex-wrap:wrap}.title[data-v-5efaaea3]{font-size:24px;margin-bottom:16px}.card[data-v-5efaaea3]{margin:24px 0;padding:24px;box-shadow:0 0 20px rgba(0,0,0,.05);border-radius:5px;box-sizing:border-box;max-width:450px}ul li[data-v-5efaaea3]{padding:6px 0;list-style:none}p[data-v-5efaaea3]{margin-bottom:16px;line-height:28px;font-size:14px}.header[data-v-6469922e]{height:60px;display:flex;flex-flow:row;justify-content:space-between;align-items:center;background:#000724;padding:0 24px;color:#fff}.header .logo[data-v-6469922e]{font-size:21px}
|