diff --git a/dist/asset-directory.js b/dist/asset-directory.js index 24d6088..05bba40 100644 --- a/dist/asset-directory.js +++ b/dist/asset-directory.js @@ -1,9 +1,6 @@ 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); -exports.template = exports.$ = void 0; -exports.update = update; -exports.ready = ready; -exports.close = close; +exports.close = exports.ready = exports.update = exports.template = exports.$ = void 0; const fs_1 = require("fs"); const path_1 = require("path"); exports.$ = { @@ -41,5 +38,8 @@ function update(assetList, metaList) { this.$.section.hidden = false; } } +exports.update = update; function ready() { } +exports.ready = ready; function close() { } +exports.close = close; diff --git a/dist/assets-menu.js b/dist/assets-menu.js index cc7d2dc..a8c969c 100644 --- a/dist/assets-menu.js +++ b/dist/assets-menu.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.onAssetMenu = onAssetMenu; +exports.onAssetMenu = void 0; const tinypng_1 = require("./tinypng"); /** 资源栏右键菜单 */ function onAssetMenu(assetInfo) { @@ -23,4 +23,5 @@ function onAssetMenu(assetInfo) { }, ]; } +exports.onAssetMenu = onAssetMenu; ; diff --git a/dist/common/version.js b/dist/common/version.js index 1b1b2a7..53ca430 100644 --- a/dist/common/version.js +++ b/dist/common/version.js @@ -15,27 +15,15 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : function(o, v) { o["default"] = v; }); -var __importStar = (this && this.__importStar) || (function () { - var ownKeys = function(o) { - ownKeys = Object.getOwnPropertyNames || function (o) { - var ar = []; - for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; - return ar; - }; - return ownKeys(o); - }; - return function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); - __setModuleDefault(result, mod); - return result; - }; -})(); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkUpdate = checkUpdate; -exports.statistics = statistics; -exports.reload = reload; +exports.reload = exports.statistics = exports.checkUpdate = void 0; const package_util_1 = require("./package-util"); const https = __importStar(require("https")); /** @@ -80,6 +68,7 @@ function checkUpdate() { console.error("【Oops Framework】请检查你的网络是否正常,框架版本验证失败"); }); } +exports.checkUpdate = checkUpdate; async function statistics() { // 获取本地 IP 地址 const os = require('os'); @@ -123,12 +112,14 @@ async function statistics() { req.write(postData); req.end(); } +exports.statistics = statistics; async function reload() { const path = await Editor.Package.getPath(package_util_1.PackageUtil.name); await Editor.Package.unregister(path); await Editor.Package.register(path); await Editor.Package.enable(path); } +exports.reload = reload; /** * 获取本地版本号 * @returns {string} diff --git a/dist/main.js b/dist/main.js index 2e9c340..4e4a575 100644 --- a/dist/main.js +++ b/dist/main.js @@ -1,8 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.methods = exports.config = void 0; -exports.load = load; -exports.unload = unload; +exports.methods = exports.config = exports.unload = exports.load = void 0; const electron_1 = require("electron"); const version_1 = require("./common/version"); /** @@ -13,11 +11,13 @@ function load() { (0, version_1.checkUpdate)(); (0, version_1.statistics)(); } +exports.load = load; /** * @en Hooks triggered after extension uninstallation is complete * @zh 扩展卸载完成后触发的钩子 */ function unload() { } +exports.unload = unload; /** * @en * @zh 为扩展的主进程的注册方法 diff --git a/dist/tinypng.js b/dist/tinypng.js index f86e916..79391e2 100644 --- a/dist/tinypng.js +++ b/dist/tinypng.js @@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.compress = compress; +exports.compress = void 0; const fs_1 = __importDefault(require("fs")); const https_1 = __importDefault(require("https")); const path_1 = __importDefault(require("path")); @@ -59,6 +59,7 @@ function compress(filePath) { }); } } +exports.compress = compress; function getRandomIP() { return Array.from(Array(4)).map(() => Math.floor(255 * Math.random())).join('.'); } diff --git a/static/style/default/index.css b/static/style/default/index.css deleted file mode 100644 index a856db3..0000000 --- a/static/style/default/index.css +++ /dev/null @@ -1,37 +0,0 @@ -ui-input { - width: 100%; - min-width: 100px; - min-height: 30px; - line-height: 30px; -} - -ui-button { - height: 30px; -} - -ui-label { - margin-top: 5px; - margin-bottom: 5px; -} - -.f { - flex: 1; - overflow: auto; - padding: 10px; -} - -.c { - display: inline-flex; - width: 100%; - flex-wrap: nowrap; -} - -.c ui-button { - width: 40%; -} - -.b { - text-align: center; - padding: 10px 0; - margin-top: 5px; -} \ No newline at end of file