diff --git a/assets/akko-cloud.png b/assets/akko-cloud.png index 0fdd1d5..5263ac1 100644 Binary files a/assets/akko-cloud.png and b/assets/akko-cloud.png differ diff --git a/assets/bg-snow.png b/assets/bg-snow.png index 391589d..b84a347 100644 Binary files a/assets/bg-snow.png and b/assets/bg-snow.png differ diff --git a/assets/logo.png b/assets/logo.png index 5e1ea0d..d3485a2 100644 Binary files a/assets/logo.png and b/assets/logo.png differ diff --git a/assets/screenshots/accounts-cn.png b/assets/screenshots/accounts-cn.png new file mode 100644 index 0000000..a6565fa Binary files /dev/null and b/assets/screenshots/accounts-cn.png differ diff --git a/assets/screenshots/curseforge.png b/assets/screenshots/curseforge.png new file mode 100644 index 0000000..d086bdc Binary files /dev/null and b/assets/screenshots/curseforge.png differ diff --git a/assets/screenshots/home-cn.png b/assets/screenshots/home-cn.png new file mode 100644 index 0000000..2d67c8a Binary files /dev/null and b/assets/screenshots/home-cn.png differ diff --git a/assets/screenshots/home.png b/assets/screenshots/home.png index fff52c4..67e94ee 100644 Binary files a/assets/screenshots/home.png and b/assets/screenshots/home.png differ diff --git a/assets/screenshots/resources-cn.png b/assets/screenshots/resources-cn.png new file mode 100644 index 0000000..2c82b80 Binary files /dev/null and b/assets/screenshots/resources-cn.png differ diff --git a/assets/screenshots/skins.png b/assets/screenshots/skins.png new file mode 100644 index 0000000..f525431 Binary files /dev/null and b/assets/screenshots/skins.png differ diff --git a/index.html b/index.html index 37aa361..9b143cf 100644 --- a/index.html +++ b/index.html @@ -38,11 +38,15 @@

-
+
+ +
-
+
+ +

    @@ -56,7 +60,9 @@

-
+
+ +

    @@ -98,10 +104,11 @@

    - Version - License - CodeBeat - JavaScript Style Guide + Version + Release + License + CodeBeat + JavaScript Style Guide

    Github

    diff --git a/install-local.html b/install-local.html new file mode 100644 index 0000000..80ce8d7 --- /dev/null +++ b/install-local.html @@ -0,0 +1,39 @@ + + + + + + + + + + + + PureLauncher | Resources Install + + + + + + + + + + + + + + +
    +
    +
    +

    +
    +
    + + + + + + + diff --git a/langs/en-us.json b/langs/en-us.json index a67bcc0..d729134 100644 --- a/langs/en-us.json +++ b/langs/en-us.json @@ -75,5 +75,8 @@ "install": "INSTALL", "multiInstancesDesc": "This plugin allows you to run multiple game instances.", "authlibInjectorDesc": "This plugin allows you to use Authlib-Injector to login.", - "mcBotDesc": "This plugin allows you to create a bot that can chat and record in game." + "mcBotDesc": "This plugin allows you to create a bot that can chat and record in game.", + "curseForgeDesc": "This plugin allows you to install resources from CurseForge.", + "skins": "Skins", + "skinsDesc": "This plugin allows you to change PureLauncher's skin." } diff --git a/langs/zh-cn.json b/langs/zh-cn.json index 1c30d40..6b784a8 100644 --- a/langs/zh-cn.json +++ b/langs/zh-cn.json @@ -74,5 +74,8 @@ "multiInstances": "游戏多开", "multiInstancesDesc": "这个插件可以让你同时开启多个游戏实例", "authlibInjectorDesc": "这个插件可以让你使用Authlib-Injector来登陆游戏", - "mcBotDesc": "这个插件可以让你创建一个可以聊天、挂机和录制的机器人" + "mcBotDesc": "这个插件可以让你创建一个可以聊天、挂机和录制的机器人", + "curseForgeDesc": "这个插件可以让你一键安装 CurseForge 上的资源", + "skins": "皮肤插件", + "skinsDesc": "这个插件可以更换启动器的皮肤甚至是添加新的元素" } diff --git a/package-lock.json b/package-lock.json index ba014a1..07b7d02 100644 --- a/package-lock.json +++ b/package-lock.json @@ -131,16 +131,89 @@ } }, "@babel/helper-create-class-features-plugin": { - "version": "7.8.3", - "resolved": "https://registry.npm.taobao.org/@babel/helper-create-class-features-plugin/download/@babel/helper-create-class-features-plugin-7.8.3.tgz?cache=0&sync_timestamp=1578951929456&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fhelper-create-class-features-plugin%2Fdownload%2F%40babel%2Fhelper-create-class-features-plugin-7.8.3.tgz", - "integrity": "sha1-W5S+iMJV8UD9LBDdFR5/mPS/85c=", + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.8.6.tgz", + "integrity": "sha512-klTBDdsr+VFFqaDHm5rR69OpEQtO2Qv8ECxHS1mNhJJvaHArR6a1xTf5K/eZW7eZpJbhCx3NW1Yt/sKsLXLblg==", "requires": { "@babel/helper-function-name": "^7.8.3", "@babel/helper-member-expression-to-functions": "^7.8.3", "@babel/helper-optimise-call-expression": "^7.8.3", "@babel/helper-plugin-utils": "^7.8.3", - "@babel/helper-replace-supers": "^7.8.3", + "@babel/helper-replace-supers": "^7.8.6", "@babel/helper-split-export-declaration": "^7.8.3" + }, + "dependencies": { + "@babel/generator": { + "version": "7.8.8", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.8.8.tgz", + "integrity": "sha512-HKyUVu69cZoclptr8t8U5b6sx6zoWjh8jiUhnuj3MpZuKT2dJ8zPTuiy31luq32swhI0SpwItCIlU8XW7BZeJg==", + "requires": { + "@babel/types": "^7.8.7", + "jsesc": "^2.5.1", + "lodash": "^4.17.13", + "source-map": "^0.5.0" + } + }, + "@babel/helper-replace-supers": { + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.8.6.tgz", + "integrity": "sha512-PeMArdA4Sv/Wf4zXwBKPqVj7n9UF/xg6slNRtZW84FM7JpE1CbG8B612FyM4cxrf4fMAMGO0kR7voy1ForHHFA==", + "requires": { + "@babel/helper-member-expression-to-functions": "^7.8.3", + "@babel/helper-optimise-call-expression": "^7.8.3", + "@babel/traverse": "^7.8.6", + "@babel/types": "^7.8.6" + } + }, + "@babel/parser": { + "version": "7.8.8", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.8.tgz", + "integrity": "sha512-mO5GWzBPsPf6865iIbzNE0AvkKF3NE+2S3eRUpE+FE07BOAkXh6G+GW/Pj01hhXjve1WScbaIO4UlY1JKeqCcA==" + }, + "@babel/traverse": { + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.8.6.tgz", + "integrity": "sha512-2B8l0db/DPi8iinITKuo7cbPznLCEk0kCxDoB9/N6gGNg/gxOXiR/IcymAFPiBwk5w6TtQ27w4wpElgp9btR9A==", + "requires": { + "@babel/code-frame": "^7.8.3", + "@babel/generator": "^7.8.6", + "@babel/helper-function-name": "^7.8.3", + "@babel/helper-split-export-declaration": "^7.8.3", + "@babel/parser": "^7.8.6", + "@babel/types": "^7.8.6", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.13" + } + }, + "@babel/types": { + "version": "7.8.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.7.tgz", + "integrity": "sha512-k2TreEHxFA4CjGkL+GYjRyx35W0Mr7DP5+9q6WMkyKXB+904bYmG40syjMFV0oLlhhFCwWl0vA0DyzTDkwAiJw==", + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + }, + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "requires": { + "ms": "^2.1.1" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" + } } }, "@babel/helper-create-regexp-features-plugin": { @@ -478,8 +551,8 @@ }, "@babel/plugin-syntax-typescript": { "version": "7.8.3", - "resolved": "https://registry.npm.taobao.org/@babel/plugin-syntax-typescript/download/@babel/plugin-syntax-typescript-7.8.3.tgz", - "integrity": "sha1-wfZZ3al3EaVpzvdSdffhXcqmyrw=", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.8.3.tgz", + "integrity": "sha512-GO1MQ/SGGGoiEXY0e0bSpHimJvxqB7lktLLIq2pv8xG7WZ8IMEle74jIe1FhprHBWjwjZtXHkycDLZXIWM5Wfg==", "requires": { "@babel/helper-plugin-utils": "^7.8.3" } @@ -771,9 +844,9 @@ } }, "@babel/plugin-transform-typescript": { - "version": "7.8.3", - "resolved": "https://registry.npm.taobao.org/@babel/plugin-transform-typescript/download/@babel/plugin-transform-typescript-7.8.3.tgz", - "integrity": "sha1-vm8Bp+9CO+aOZazh8E/EB+bYiRc=", + "version": "7.8.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.8.7.tgz", + "integrity": "sha512-7O0UsPQVNKqpHeHLpfvOG4uXmlw+MOxYvUv6Otc9uH5SYMIxvF6eBdjkWvC3f9G+VXe0RsNExyAQBeTRug/wqQ==", "requires": { "@babel/helper-create-class-features-plugin": "^7.8.3", "@babel/helper-plugin-utils": "^7.8.3", @@ -855,8 +928,8 @@ }, "@babel/preset-typescript": { "version": "7.8.3", - "resolved": "https://registry.npm.taobao.org/@babel/preset-typescript/download/@babel/preset-typescript-7.8.3.tgz", - "integrity": "sha1-kK+GkBIb7s2addDMJsa+OdFZXRM=", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.8.3.tgz", + "integrity": "sha512-qee5LgPGui9zQ0jR1TeU5/fP9L+ovoArklEqY12ek8P/wV5ZeM/VYSQYwICeoT6FfpJTekG9Ilay5PhwsOpMHA==", "requires": { "@babel/helper-plugin-utils": "^7.8.3", "@babel/plugin-transform-typescript": "^7.8.3" @@ -1049,8 +1122,8 @@ }, "@types/estree": { "version": "0.0.42", - "resolved": "https://registry.npm.taobao.org/@types/estree/download/@types/estree-0.0.42.tgz", - "integrity": "sha1-jQwfSAM57+2z5GBw4i3WPgQw3RE=" + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.42.tgz", + "integrity": "sha512-K1DPVvnBCPxzD+G51/cxVIoc2X8uUVl1zpJeE6iKcgHMj4+tbat5Xu4TjV7v2QSDbIeAfLi2hIk+u2+s0MlpUQ==" }, "@types/events": { "version": "3.0.0", @@ -1111,17 +1184,10 @@ }, "@types/resolve": { "version": "0.0.8", - "resolved": "https://registry.npm.taobao.org/@types/resolve/download/@types/resolve-0.0.8.tgz", - "integrity": "sha1-8mB00jjgJlnjI84aE9BB7uKA4ZQ=", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-0.0.8.tgz", + "integrity": "sha512-auApPaJf3NPfe18hSoJkp8EbZzer2ISk7o8mCC3M9he/a04+gbMF97NkpD2S8riMGvm4BMRI59/SZQSaLTKpsQ==", "requires": { "@types/node": "*" - }, - "dependencies": { - "@types/node": { - "version": "13.7.5", - "resolved": "https://registry.npm.taobao.org/@types/node/download/@types/node-13.7.5.tgz?cache=0&sync_timestamp=1582658035341&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-13.7.5.tgz", - "integrity": "sha1-LaJE12Rmb4UVQnTKyUoctbiNy40=" - } } }, "@types/sizzle": { @@ -1209,14 +1275,14 @@ "integrity": "sha1-Yj4gdeAustPyR15J+ZyRhGRnkHo=" }, "acorn": { - "version": "7.1.0", - "resolved": "https://registry.npm.taobao.org/acorn/download/acorn-7.1.0.tgz?cache=0&sync_timestamp=1574807785634&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Facorn%2Fdownload%2Facorn-7.1.0.tgz", - "integrity": "sha1-lJ028sKSU12mAig1hsJHfFfrLWw=" + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz", + "integrity": "sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg==" }, "acorn-dynamic-import": { "version": "4.0.0", - "resolved": "https://registry.npm.taobao.org/acorn-dynamic-import/download/acorn-dynamic-import-4.0.0.tgz", - "integrity": "sha1-SCIQFAWCo2uDw+NC4c/ryqkkCUg=" + "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-4.0.0.tgz", + "integrity": "sha512-d3OEjQV4ROpoflsnUA8HozoIR504TFxNivYEUi6uwz0IYhBkTDXGuWlNdMtybRt3nqVx/L6XqMt0FxkXuWKZhw==" }, "acorn-globals": { "version": "4.3.4", @@ -1433,18 +1499,22 @@ "optional": true }, "asar": { - "version": "2.1.0", - "resolved": "https://registry.npm.taobao.org/asar/download/asar-2.1.0.tgz", - "integrity": "sha1-l8alcECMTjihjUo/t0imIbWnhE4=", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/asar/-/asar-3.0.1.tgz", + "integrity": "sha512-43sVUKSX0VLNfavair0OLzPoVX5rRdqAxcUUhtwKLGkKQPs2ePreOG7zpp3gZOLvZGhZxixD9JZBxWKgqH8r1g==", "requires": { "@types/glob": "^7.1.1", "chromium-pickle-js": "^0.2.0", - "commander": "^2.20.0", - "cuint": "^0.2.2", - "glob": "^7.1.3", - "minimatch": "^3.0.4", - "mkdirp": "^0.5.1", - "tmp-promise": "^1.0.5" + "commander": "^4.1.1", + "glob": "^7.1.6", + "minimatch": "^3.0.4" + }, + "dependencies": { + "commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==" + } } }, "asn1": { @@ -1545,8 +1615,8 @@ }, "babel-plugin-transform-async-to-promises": { "version": "0.8.15", - "resolved": "https://registry.npm.taobao.org/babel-plugin-transform-async-to-promises/download/babel-plugin-transform-async-to-promises-0.8.15.tgz", - "integrity": "sha1-E7bY7xNna048V202ALhTRLsbo0Y=" + "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-promises/-/babel-plugin-transform-async-to-promises-0.8.15.tgz", + "integrity": "sha512-fDXP68ZqcinZO2WCiimCL9zhGjGXOnn3D33zvbh+yheZ/qOrNVVDDIBtAaM3Faz8TRvQzHiRKsu3hfrBAhEncQ==" }, "babel-runtime": { "version": "6.26.0", @@ -1662,13 +1732,13 @@ }, "big.js": { "version": "5.2.2", - "resolved": "https://registry.npm.taobao.org/big.js/download/big.js-5.2.2.tgz", - "integrity": "sha1-ZfCvOC9Xi83HQr2cKB6cstd2gyg=" + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==" }, "bili": { "version": "4.8.1", - "resolved": "https://registry.npm.taobao.org/bili/download/bili-4.8.1.tgz", - "integrity": "sha1-yZlGfB4xbYl/gJHfgnRAhB2VS5U=", + "resolved": "https://registry.npmjs.org/bili/-/bili-4.8.1.tgz", + "integrity": "sha512-SEfQYwmsO/FsZA+Mbpy+Yb0pxu+KiKEQRzKP/zktxOH/hE4y+26hBRA69OU3rQSKtyNyUFHZwavdlW/wJsf2nw==", "requires": { "@babel/core": "^7.2.2", "@babel/plugin-proposal-object-rest-spread": "^7.3.1", @@ -1704,11 +1774,6 @@ "file-uri-to-path": "1.0.0" } }, - "bluebird": { - "version": "3.7.2", - "resolved": "https://registry.npm.taobao.org/bluebird/download/bluebird-3.7.2.tgz", - "integrity": "sha1-nyKcFb4nJFT/qXOs4NvueaGww28=" - }, "bn.js": { "version": "4.11.8", "resolved": "https://registry.npm.taobao.org/bn.js/download/bn.js-4.11.8.tgz", @@ -1898,8 +1963,8 @@ }, "buble": { "version": "0.19.8", - "resolved": "https://registry.npm.taobao.org/buble/download/buble-0.19.8.tgz", - "integrity": "sha1-1kLwCBr6tm3M2JfXtjYNlAMLnT0=", + "resolved": "https://registry.npmjs.org/buble/-/buble-0.19.8.tgz", + "integrity": "sha512-IoGZzrUTY5fKXVkgGHw3QeXFMUNBFv+9l8a4QJKG1JhG3nCMHTdEX1DCOg8568E2Q9qvAQIiSokv6Jsgx8p2cA==", "requires": { "acorn": "^6.1.1", "acorn-dynamic-import": "^4.0.0", @@ -1912,9 +1977,9 @@ }, "dependencies": { "acorn": { - "version": "6.4.0", - "resolved": "https://registry.npm.taobao.org/acorn/download/acorn-6.4.0.tgz?cache=0&sync_timestamp=1574807785634&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Facorn%2Fdownload%2Facorn-6.4.0.tgz", - "integrity": "sha1-tlnS/7r6JLr12xzbsslKmD7NJ4Q=" + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.1.tgz", + "integrity": "sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA==" } } }, @@ -1945,8 +2010,8 @@ }, "builtin-modules": { "version": "3.1.0", - "resolved": "https://registry.npm.taobao.org/builtin-modules/download/builtin-modules-3.1.0.tgz", - "integrity": "sha1-qtl8FRMet2tltQ7yCOdYTNdqdIQ=" + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.1.0.tgz", + "integrity": "sha512-k0KL0aWZuBt2lrxrcASWDfwOLMnodeQjodT/1SxEQAXsHANgo6ZC/VEaSEHCXt7aSTZ4/4H5LKa+tBXmW7Vtvw==" }, "builtin-status-codes": { "version": "3.0.0", @@ -2140,8 +2205,8 @@ }, "cli-spinners": { "version": "2.2.0", - "resolved": "https://registry.npm.taobao.org/cli-spinners/download/cli-spinners-2.2.0.tgz", - "integrity": "sha1-6LmI2SBsaSMC2O6DTnqFwBRNj3c=" + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.2.0.tgz", + "integrity": "sha512-tgU3fKwzYjiLEQgPMD9Jt+JjHVL9kW93FiIMX/l7rivvOD4/LL0Mf7gda3+4U2KJBloybwgj5KEoQgGRioMiKQ==" }, "cli-width": { "version": "2.2.0", @@ -2268,8 +2333,8 @@ }, "concat-with-sourcemaps": { "version": "1.1.0", - "resolved": "https://registry.npm.taobao.org/concat-with-sourcemaps/download/concat-with-sourcemaps-1.1.0.tgz", - "integrity": "sha1-1OqT8FriV5CVG5nns7CeOQikCC4=", + "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", + "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", "requires": { "source-map": "^0.6.1" } @@ -2731,11 +2796,6 @@ "cssom": "0.3.x" } }, - "cuint": { - "version": "0.2.2", - "resolved": "https://registry.npm.taobao.org/cuint/download/cuint-0.2.2.tgz", - "integrity": "sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs=" - }, "currently-unhandled": { "version": "0.4.1", "resolved": "https://registry.npm.taobao.org/currently-unhandled/download/currently-unhandled-0.4.1.tgz", @@ -3091,8 +3151,8 @@ }, "emojis-list": { "version": "3.0.0", - "resolved": "https://registry.npm.taobao.org/emojis-list/download/emojis-list-3.0.0.tgz", - "integrity": "sha1-VXBmIEatKeLpFucariYKvf9Pang=" + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==" }, "encodeurl": { "version": "1.0.2", @@ -3490,8 +3550,8 @@ }, "estree-walker": { "version": "0.6.1", - "resolved": "https://registry.npm.taobao.org/estree-walker/download/estree-walker-0.6.1.tgz", - "integrity": "sha1-UwSRQ/QMbrkYsjZx0f4yGfOhs2I=" + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz", + "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==" }, "esutils": { "version": "2.0.3", @@ -3686,25 +3746,20 @@ "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" }, "falafel": { - "version": "2.1.0", - "resolved": "https://registry.npm.taobao.org/falafel/download/falafel-2.1.0.tgz", - "integrity": "sha1-lrsXdh2rqU9G0AFzizzt86Z/4Gw=", + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/falafel/-/falafel-2.2.4.tgz", + "integrity": "sha512-0HXjo8XASWRmsS0X1EkhwEMZaD3Qvp7FfURwjLKjG1ghfRm/MGZl2r4cWUTv41KdNghTw4OUMmVtdGQp3+H+uQ==", "requires": { - "acorn": "^5.0.0", + "acorn": "^7.1.1", "foreach": "^2.0.5", - "isarray": "0.0.1", + "isarray": "^2.0.1", "object-keys": "^1.0.6" }, "dependencies": { - "acorn": { - "version": "5.7.3", - "resolved": "https://registry.npm.taobao.org/acorn/download/acorn-5.7.3.tgz?cache=0&sync_timestamp=1574807785634&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Facorn%2Fdownload%2Facorn-5.7.3.tgz", - "integrity": "sha1-Z6ojG/iBKXS4UjWpZ3Hra9B+onk=" - }, "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npm.taobao.org/isarray/download/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" } } }, @@ -3857,7 +3912,7 @@ }, "foreach": { "version": "2.0.5", - "resolved": "https://registry.npm.taobao.org/foreach/download/foreach-2.0.5.tgz", + "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=" }, "forever-agent": { @@ -3890,8 +3945,8 @@ }, "fs-extra": { "version": "8.1.0", - "resolved": "https://registry.npm.taobao.org/fs-extra/download/fs-extra-8.1.0.tgz", - "integrity": "sha1-SdQ8RaiM2Wd2aMt74bRu/bjS4cA=", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", "requires": { "graceful-fs": "^4.2.0", "jsonfile": "^4.0.0", @@ -4406,8 +4461,8 @@ }, "generic-names": { "version": "2.0.1", - "resolved": "https://registry.npm.taobao.org/generic-names/download/generic-names-2.0.1.tgz", - "integrity": "sha1-+KN46tLMqno08DF7BVVIMq5BuHI=", + "resolved": "https://registry.npmjs.org/generic-names/-/generic-names-2.0.1.tgz", + "integrity": "sha512-kPCHWa1m9wGG/OwQpeweTwM/PYiQLrUIxXbt/P4Nic3LbGjCP0YwrALHW1uNLKZ0LIMg+RF+XRlj2ekT9ZlZAQ==", "requires": { "loader-utils": "^1.1.0" } @@ -5472,8 +5527,8 @@ }, "jest-worker": { "version": "24.9.0", - "resolved": "https://registry.npm.taobao.org/jest-worker/download/jest-worker-24.9.0.tgz?cache=0&sync_timestamp=1579655057394&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-worker%2Fdownload%2Fjest-worker-24.9.0.tgz", - "integrity": "sha1-Xb/bWy0yLphWeJgjipaXvM5ns+U=", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-24.9.0.tgz", + "integrity": "sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw==", "requires": { "merge-stream": "^2.0.0", "supports-color": "^6.1.0" @@ -5481,8 +5536,8 @@ "dependencies": { "supports-color": { "version": "6.1.0", - "resolved": "https://registry.npm.taobao.org/supports-color/download/supports-color-6.1.0.tgz?cache=0&sync_timestamp=1573220230429&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-6.1.0.tgz", - "integrity": "sha1-B2Srxpxj1ayELdSGfo0CXogN+PM=", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", "requires": { "has-flag": "^3.0.0" } @@ -5698,8 +5753,8 @@ }, "loader-utils": { "version": "1.4.0", - "resolved": "https://registry.npm.taobao.org/loader-utils/download/loader-utils-1.4.0.tgz", - "integrity": "sha1-xXm140yzSxp07cbB+za/o3HVphM=", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz", + "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==", "requires": { "big.js": "^5.2.2", "emojis-list": "^3.0.0", @@ -5708,8 +5763,8 @@ "dependencies": { "json5": { "version": "1.0.1", - "resolved": "https://registry.npm.taobao.org/json5/download/json5-1.0.1.tgz", - "integrity": "sha1-d5+wAYYE+oVOrL9iUhgNg1Q+Pb4=", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", + "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", "requires": { "minimist": "^1.2.0" } @@ -5822,9 +5877,9 @@ } }, "magic-string": { - "version": "0.25.6", - "resolved": "https://registry.npm.taobao.org/magic-string/download/magic-string-0.25.6.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmagic-string%2Fdownload%2Fmagic-string-0.25.6.tgz", - "integrity": "sha1-VYY4fRJC+RnG0iNXnMk4vxQgeV4=", + "version": "0.25.7", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz", + "integrity": "sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==", "requires": { "sourcemap-codec": "^1.4.4" } @@ -5964,8 +6019,8 @@ }, "merge-stream": { "version": "2.0.0", - "resolved": "https://registry.npm.taobao.org/merge-stream/download/merge-stream-2.0.0.tgz", - "integrity": "sha1-UoI2KaFN0AyXcPtq1H3GMQ8sH2A=" + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" }, "merge2": { "version": "1.3.0", @@ -6143,8 +6198,8 @@ }, "node-fetch": { "version": "2.6.0", - "resolved": "https://registry.npm.taobao.org/node-fetch/download/node-fetch-2.6.0.tgz", - "integrity": "sha1-5jNFY4bUqlWGP2dqerDaqP3ssP0=" + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz", + "integrity": "sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==" }, "node-forge": { "version": "0.7.6", @@ -6398,8 +6453,8 @@ }, "ora": { "version": "3.4.0", - "resolved": "https://registry.npm.taobao.org/ora/download/ora-3.4.0.tgz", - "integrity": "sha1-vwdSSRBZo+8+1MhQl1Md6f280xg=", + "resolved": "https://registry.npmjs.org/ora/-/ora-3.4.0.tgz", + "integrity": "sha512-eNwHudNbO1folBP3JsZ19v9azXWtQZjICdr3Q0TDPIaeBQ3mXLrh54wM+er0+hSp+dWKf+Z8KM58CYzEyIYxYg==", "requires": { "chalk": "^2.4.2", "cli-cursor": "^2.1.0", @@ -6416,8 +6471,8 @@ }, "os-homedir": { "version": "2.0.0", - "resolved": "https://registry.npm.taobao.org/os-homedir/download/os-homedir-2.0.0.tgz", - "integrity": "sha1-oMdrsAGoOSpQPL1G5+ZQs0I6kjw=" + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-2.0.0.tgz", + "integrity": "sha512-saRNz0DSC5C/I++gFIaJTXoFJMRwiP5zHar5vV3xQ2TkgEw6hDCcU5F272JjUylpiVgBrZNQHnfjkLabTfb92Q==" }, "os-tmpdir": { "version": "1.0.2", @@ -6471,8 +6526,8 @@ }, "p-queue": { "version": "2.4.2", - "resolved": "https://registry.npm.taobao.org/p-queue/download/p-queue-2.4.2.tgz", - "integrity": "sha1-A2CYJmgrdDvpoi26JQUb1Gck/DQ=" + "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-2.4.2.tgz", + "integrity": "sha512-n8/y+yDJwBjoLQe1GSJbbaYQLTI7QHNZI2+rpmCDbe++WLf9HC3gf6iqj5yfPAV71W4UF3ql5W1+UBPXoXTxng==" }, "p-try": { "version": "2.2.0", @@ -6894,8 +6949,8 @@ }, "postcss-load-config": { "version": "2.1.0", - "resolved": "https://registry.npm.taobao.org/postcss-load-config/download/postcss-load-config-2.1.0.tgz", - "integrity": "sha1-yE1pK3u3tB3c7ZTuYuirMbQXsAM=", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-2.1.0.tgz", + "integrity": "sha512-4pV3JJVPLd5+RueiVVB+gFOAa7GWc25XQcMp86Zexzke69mKf6Nx9LRcQywdz7yZI9n1udOxmLuAwTBypypF8Q==", "requires": { "cosmiconfig": "^5.0.0", "import-cwd": "^2.0.0" @@ -7049,8 +7104,8 @@ }, "postcss-modules": { "version": "1.5.0", - "resolved": "https://registry.npm.taobao.org/postcss-modules/download/postcss-modules-1.5.0.tgz", - "integrity": "sha1-CNps5D/PrbxoWgIf5u0w75KfC8w=", + "resolved": "https://registry.npmjs.org/postcss-modules/-/postcss-modules-1.5.0.tgz", + "integrity": "sha512-KiAihzcV0TxTTNA5OXreyIXctuHOfR50WIhqBpc8pe0Q5dcs/Uap9EVlifOI9am7zGGdGOJQ6B1MPYKo2UxgOg==", "requires": { "css-modules-loader-core": "^1.1.0", "generic-names": "^2.0.1", @@ -7484,14 +7539,14 @@ "integrity": "sha1-tYsBCsQMIsVldhbI0sLALHv0eew=" }, "pure-launcher": { - "version": "git+https://github.com/Apisium/PureLauncher.git#e76ed85fc75b02bb0cc232a79a73caf4b50ae716", + "version": "git+https://github.com/Apisium/PureLauncher.git#4d57a29cc30507b00b9db29bf64828173eced8f9", "from": "git+https://github.com/Apisium/PureLauncher.git", "requires": { - "asar": "^2.1.0", + "asar": "^3.0.1", "bili": "^4.8.1", "chalk": "^3.0.0", "fs-extra": "^8.1.0", - "minimist": "^1.2.0", + "minimist": "^1.2.4", "node-fetch": "^2.6.0", "parcel": "^1.12.4", "v8-compile-cache": "^2.1.0" @@ -7499,8 +7554,8 @@ "dependencies": { "ansi-styles": { "version": "4.2.1", - "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-4.2.1.tgz", - "integrity": "sha1-kK51xCTQCNJiTFvynq0xd+v881k=", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", + "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", "requires": { "@types/color-name": "^1.1.1", "color-convert": "^2.0.1" @@ -7508,8 +7563,8 @@ }, "chalk": { "version": "3.0.0", - "resolved": "https://registry.npm.taobao.org/chalk/download/chalk-3.0.0.tgz", - "integrity": "sha1-P3PCv1JlkfV0zEksUeJFY0n4ROQ=", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", "requires": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -7517,146 +7572,26 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npm.taobao.org/color-convert/download/color-convert-2.0.1.tgz", - "integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "requires": { "color-name": "~1.1.4" } }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npm.taobao.org/has-flag/download/has-flag-4.0.0.tgz", - "integrity": "sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s=" - }, - "json5": { - "version": "1.0.1", - "resolved": "https://registry.npm.taobao.org/json5/download/json5-1.0.1.tgz", - "integrity": "sha1-d5+wAYYE+oVOrL9iUhgNg1Q+Pb4=", - "requires": { - "minimist": "^1.2.0" - } + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, - "parcel": { - "version": "1.12.4", - "resolved": "https://registry.npm.taobao.org/parcel/download/parcel-1.12.4.tgz", - "integrity": "sha1-yBNghRecY4LmMsqYEmCT4RC+KsU=", - "requires": { - "@babel/code-frame": "^7.0.0", - "@babel/core": "^7.4.4", - "@babel/generator": "^7.4.4", - "@babel/parser": "^7.4.4", - "@babel/plugin-transform-flow-strip-types": "^7.4.4", - "@babel/plugin-transform-modules-commonjs": "^7.4.4", - "@babel/plugin-transform-react-jsx": "^7.0.0", - "@babel/preset-env": "^7.4.4", - "@babel/runtime": "^7.4.4", - "@babel/template": "^7.4.4", - "@babel/traverse": "^7.4.4", - "@babel/types": "^7.4.4", - "@iarna/toml": "^2.2.0", - "@parcel/fs": "^1.11.0", - "@parcel/logger": "^1.11.1", - "@parcel/utils": "^1.11.0", - "@parcel/watcher": "^1.12.1", - "@parcel/workers": "^1.11.0", - "ansi-to-html": "^0.6.4", - "babylon-walk": "^1.0.2", - "browserslist": "^4.1.0", - "chalk": "^2.1.0", - "clone": "^2.1.1", - "command-exists": "^1.2.6", - "commander": "^2.11.0", - "core-js": "^2.6.5", - "cross-spawn": "^6.0.4", - "css-modules-loader-core": "^1.1.0", - "cssnano": "^4.0.0", - "deasync": "^0.1.14", - "dotenv": "^5.0.0", - "dotenv-expand": "^5.1.0", - "envinfo": "^7.3.1", - "fast-glob": "^2.2.2", - "filesize": "^3.6.0", - "get-port": "^3.2.0", - "htmlnano": "^0.2.2", - "is-glob": "^4.0.0", - "is-url": "^1.2.2", - "js-yaml": "^3.10.0", - "json5": "^1.0.1", - "micromatch": "^3.0.4", - "mkdirp": "^0.5.1", - "node-forge": "^0.7.1", - "node-libs-browser": "^2.0.0", - "opn": "^5.1.0", - "postcss": "^7.0.11", - "postcss-value-parser": "^3.3.1", - "posthtml": "^0.11.2", - "posthtml-parser": "^0.4.0", - "posthtml-render": "^1.1.3", - "resolve": "^1.4.0", - "semver": "^5.4.1", - "serialize-to-js": "^3.0.0", - "serve-static": "^1.12.4", - "source-map": "0.6.1", - "terser": "^3.7.3", - "v8-compile-cache": "^2.0.0", - "ws": "^5.1.1" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-3.2.1.tgz", - "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npm.taobao.org/chalk/download/chalk-2.4.2.tgz", - "integrity": "sha1-zUJUFnelQzPPVBpJEIwUMrRMlCQ=", - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npm.taobao.org/color-convert/download/color-convert-1.9.3.tgz", - "integrity": "sha1-u3GFBpDh8TZWfeYp0tVHHe2kweg=", - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npm.taobao.org/color-name/download/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npm.taobao.org/has-flag/download/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npm.taobao.org/supports-color/download/supports-color-5.5.0.tgz?cache=0&sync_timestamp=1573220230429&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-5.5.0.tgz", - "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=", - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "postcss-value-parser": { - "version": "3.3.1", - "resolved": "https://registry.npm.taobao.org/postcss-value-parser/download/postcss-value-parser-3.3.1.tgz?cache=0&sync_timestamp=1582037912160&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-value-parser%2Fdownload%2Fpostcss-value-parser-3.3.1.tgz", - "integrity": "sha1-n/giVH4okyE88cMO+lGsX9G6goE=" + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" }, "supports-color": { "version": "7.1.0", - "resolved": "https://registry.npm.taobao.org/supports-color/download/supports-color-7.1.0.tgz?cache=0&sync_timestamp=1573220230429&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-7.1.0.tgz", - "integrity": "sha1-aOMlkd9z4lrRxLSRCKLsUHliv9E=", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", + "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", "requires": { "has-flag": "^4.0.0" } @@ -8013,11 +7948,6 @@ "resolved": "https://registry.npm.taobao.org/require-main-filename/download/require-main-filename-2.0.0.tgz", "integrity": "sha1-0LMp7MfMD2Fkn2IhW+aa9UqomJs=" }, - "reserved-words": { - "version": "0.1.2", - "resolved": "https://registry.npm.taobao.org/reserved-words/download/reserved-words-0.1.2.tgz", - "integrity": "sha1-AKCUD5jNUBrqqsMWQR2a3FKzGrE=" - }, "resolve": { "version": "1.15.1", "resolved": "https://registry.npm.taobao.org/resolve/download/resolve-1.15.1.tgz?cache=0&sync_timestamp=1580944242910&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fresolve%2Fdownload%2Fresolve-1.15.1.tgz", @@ -8083,26 +8013,19 @@ } }, "rollup": { - "version": "1.31.1", - "resolved": "https://registry.npm.taobao.org/rollup/download/rollup-1.31.1.tgz", - "integrity": "sha1-QXDW+HFI1G5fvim0k/jz6jRTyW8=", + "version": "1.32.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-1.32.1.tgz", + "integrity": "sha512-/2HA0Ec70TvQnXdzynFffkjA6XN+1e2pEv/uKS5Ulca40g2L7KuOE3riasHoNVHOsFD5KKZgDsMk1CP3Tw9s+A==", "requires": { "@types/estree": "*", "@types/node": "*", "acorn": "^7.1.0" - }, - "dependencies": { - "@types/node": { - "version": "13.7.5", - "resolved": "https://registry.npm.taobao.org/@types/node/download/@types/node-13.7.5.tgz?cache=0&sync_timestamp=1582658035341&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-13.7.5.tgz", - "integrity": "sha1-LaJE12Rmb4UVQnTKyUoctbiNy40=" - } } }, "rollup-plugin-babel": { - "version": "4.3.3", - "resolved": "https://registry.npm.taobao.org/rollup-plugin-babel/download/rollup-plugin-babel-4.3.3.tgz?cache=0&sync_timestamp=1576197487576&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frollup-plugin-babel%2Fdownload%2Frollup-plugin-babel-4.3.3.tgz", - "integrity": "sha1-frWsFtm1gxw/1dl+jfd7olxyoqo=", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-babel/-/rollup-plugin-babel-4.4.0.tgz", + "integrity": "sha512-Lek/TYp1+7g7I+uMfJnnSJ7YWoD58ajo6Oarhlex7lvUce+RCKRuGRSgztDO3/MF/PuGKmUL5iTHKf208UNszw==", "requires": { "@babel/helper-module-imports": "^7.0.0", "rollup-pluginutils": "^2.8.1" @@ -8110,8 +8033,8 @@ }, "rollup-plugin-buble": { "version": "0.19.8", - "resolved": "https://registry.npm.taobao.org/rollup-plugin-buble/download/rollup-plugin-buble-0.19.8.tgz", - "integrity": "sha1-+SMuK7YqdXPQT5cFwb1vAsKgLGo=", + "resolved": "https://registry.npmjs.org/rollup-plugin-buble/-/rollup-plugin-buble-0.19.8.tgz", + "integrity": "sha512-8J4zPk2DQdk3rxeZvxgzhHh/rm5nJkjwgcsUYisCQg1QbT5yagW+hehYEW7ZNns/NVbDCTv4JQ7h4fC8qKGOKw==", "requires": { "buble": "^0.19.8", "rollup-pluginutils": "^2.3.3" @@ -8119,8 +8042,8 @@ }, "rollup-plugin-commonjs": { "version": "9.3.4", - "resolved": "https://registry.npm.taobao.org/rollup-plugin-commonjs/download/rollup-plugin-commonjs-9.3.4.tgz", - "integrity": "sha1-Kz3du73tg9RcNv8QHN0p6ST9I7w=", + "resolved": "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-9.3.4.tgz", + "integrity": "sha512-DTZOvRoiVIHHLFBCL4pFxOaJt8pagxsVldEXBOn6wl3/V21wVaj17HFfyzTsQUuou3sZL3lEJZVWKPFblJfI6w==", "requires": { "estree-walker": "^0.6.0", "magic-string": "^0.25.2", @@ -8130,16 +8053,16 @@ }, "rollup-plugin-hashbang": { "version": "2.2.2", - "resolved": "https://registry.npm.taobao.org/rollup-plugin-hashbang/download/rollup-plugin-hashbang-2.2.2.tgz", - "integrity": "sha1-lx/Em0UuY/nf3HX3muclazSF51A=", + "resolved": "https://registry.npmjs.org/rollup-plugin-hashbang/-/rollup-plugin-hashbang-2.2.2.tgz", + "integrity": "sha512-Yxw9ogeK3KncG1e4CvK0I0IKVBNeJP+DTZS3bExGTfGjw0WP1C7xxbY7LtRd8IKx4fFf53hz7XR1XG7UV6xqCw==", "requires": { "magic-string": "^0.22.4" }, "dependencies": { "magic-string": { "version": "0.22.5", - "resolved": "https://registry.npm.taobao.org/magic-string/download/magic-string-0.22.5.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmagic-string%2Fdownload%2Fmagic-string-0.22.5.tgz", - "integrity": "sha1-jpz1r930Q4XB2lvCpqDb0QsDZX4=", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.22.5.tgz", + "integrity": "sha512-oreip9rJZkzvA8Qzk9HFs8fZGF/u7H/gtrE8EN6RjKJ9kh2HlC+yQ2QezifqTZfGyiuAV0dRv5a+y/8gBb1m9w==", "requires": { "vlq": "^0.2.2" } @@ -8148,16 +8071,16 @@ }, "rollup-plugin-json": { "version": "3.1.0", - "resolved": "https://registry.npm.taobao.org/rollup-plugin-json/download/rollup-plugin-json-3.1.0.tgz", - "integrity": "sha1-fB2vYMRrwhAh6gFr0AhjVhoDMhs=", + "resolved": "https://registry.npmjs.org/rollup-plugin-json/-/rollup-plugin-json-3.1.0.tgz", + "integrity": "sha512-BlYk5VspvGpjz7lAwArVzBXR60JK+4EKtPkCHouAWg39obk9S61hZYJDBfMK+oitPdoe11i69TlxKlMQNFC/Uw==", "requires": { "rollup-pluginutils": "^2.3.1" } }, "rollup-plugin-node-resolve": { "version": "4.2.4", - "resolved": "https://registry.npm.taobao.org/rollup-plugin-node-resolve/download/rollup-plugin-node-resolve-4.2.4.tgz", - "integrity": "sha1-fTcPjW/TAxAGoAMsOCYt2b48YlA=", + "resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-4.2.4.tgz", + "integrity": "sha512-t/64I6l7fZ9BxqD3XlX4ZeO6+5RLKyfpwE2CiPNUKa+GocPlQhf/C208ou8y3AwtNsc6bjSk/8/6y/YAyxCIvw==", "requires": { "@types/resolve": "0.0.8", "builtin-modules": "^3.1.0", @@ -8166,9 +8089,9 @@ } }, "rollup-plugin-postcss": { - "version": "2.1.1", - "resolved": "https://registry.npm.taobao.org/rollup-plugin-postcss/download/rollup-plugin-postcss-2.1.1.tgz", - "integrity": "sha1-Obm3xdqRdBYxs6B60WIqNHezB/Q=", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/rollup-plugin-postcss/-/rollup-plugin-postcss-2.4.1.tgz", + "integrity": "sha512-wlx8V/ic0bTlVXITWKyhDRuOyQiIdVewM2+KP+tKu2Y9j559uoTsk9F6oXFvyaXA5LiYv3VuOH7cjhRHLR2Ocg==", "requires": { "chalk": "^2.4.2", "concat-with-sourcemaps": "^1.0.5", @@ -8180,9 +8103,9 @@ "postcss-load-config": "^2.0.0", "postcss-modules": "^1.4.1", "promise.series": "^0.2.0", - "reserved-words": "^0.1.2", "resolve": "^1.5.0", "rollup-pluginutils": "^2.0.1", + "safe-identifier": "^0.3.1", "style-inject": "^0.3.0" }, "dependencies": { @@ -8195,8 +8118,8 @@ }, "rollup-plugin-replace": { "version": "2.2.0", - "resolved": "https://registry.npm.taobao.org/rollup-plugin-replace/download/rollup-plugin-replace-2.2.0.tgz", - "integrity": "sha1-9BrlNy4R56IXzeNJyLXV/RFecOM=", + "resolved": "https://registry.npmjs.org/rollup-plugin-replace/-/rollup-plugin-replace-2.2.0.tgz", + "integrity": "sha512-/5bxtUPkDHyBJAKketb4NfaeZjL5yLZdeUihSfbF2PQMz+rSTEb8ARKoOl3UBT4m7/X+QOXJo3sLTcq+yMMYTA==", "requires": { "magic-string": "^0.25.2", "rollup-pluginutils": "^2.6.0" @@ -8204,8 +8127,8 @@ }, "rollup-plugin-terser": { "version": "4.0.4", - "resolved": "https://registry.npm.taobao.org/rollup-plugin-terser/download/rollup-plugin-terser-4.0.4.tgz?cache=0&sync_timestamp=1578742860355&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frollup-plugin-terser%2Fdownload%2Frollup-plugin-terser-4.0.4.tgz", - "integrity": "sha1-b2Ye8oT6fCeWPSQmAWkdw9I/mU4=", + "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-4.0.4.tgz", + "integrity": "sha512-wPANT5XKVJJ8RDUN0+wIr7UPd0lIXBo4UdJ59VmlPCtlFsE20AM+14pe+tk7YunCsWEiuzkDBY3QIkSCjtrPXg==", "requires": { "@babel/code-frame": "^7.0.0", "jest-worker": "^24.0.0", @@ -8215,8 +8138,8 @@ }, "rollup-pluginutils": { "version": "2.8.2", - "resolved": "https://registry.npm.taobao.org/rollup-pluginutils/download/rollup-pluginutils-2.8.2.tgz", - "integrity": "sha1-cvKvB0i1kjZNvTOJ5gDlqURKNR4=", + "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz", + "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==", "requires": { "estree-walker": "^0.6.1" } @@ -8257,6 +8180,11 @@ "resolved": "https://registry.npm.taobao.org/safe-buffer/download/safe-buffer-5.2.0.tgz?cache=0&sync_timestamp=1562350533022&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsafe-buffer%2Fdownload%2Fsafe-buffer-5.2.0.tgz", "integrity": "sha1-t02uxJsRSPiMZLaNSbHoFcHy9Rk=" }, + "safe-identifier": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/safe-identifier/-/safe-identifier-0.3.1.tgz", + "integrity": "sha512-+vr9lVsmciuoP1fz8w30qDcohwH2S/tb5dPGQ8zHmG9jQf7YHU2fIKGxxcDpeY38J0Dep+DdPMz8FszVZT0Mbw==" + }, "safe-regex": { "version": "1.1.0", "resolved": "https://registry.npm.taobao.org/safe-regex/download/safe-regex-1.1.0.tgz", @@ -8337,8 +8265,8 @@ }, "serialize-javascript": { "version": "1.9.1", - "resolved": "https://registry.npm.taobao.org/serialize-javascript/download/serialize-javascript-1.9.1.tgz?cache=0&sync_timestamp=1581860503528&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fserialize-javascript%2Fdownload%2Fserialize-javascript-1.9.1.tgz", - "integrity": "sha1-z8IArvd7YAxH2pu4FJyUPnmML9s=" + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-1.9.1.tgz", + "integrity": "sha512-0Vb/54WJ6k5v8sSWN09S0ora+Hnr+cX40r9F170nT+mSkaxltoE/7R3OrIdBSUv1OoiobH1QoWQbCnAO+e8J1A==" }, "serialize-to-js": { "version": "3.1.1", @@ -8595,8 +8523,8 @@ }, "sourcemap-codec": { "version": "1.4.8", - "resolved": "https://registry.npm.taobao.org/sourcemap-codec/download/sourcemap-codec-1.4.8.tgz", - "integrity": "sha1-6oBL2UhXQC5pktBaOO8a41qatMQ=" + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==" }, "spdx-correct": { "version": "3.1.0", @@ -8847,8 +8775,8 @@ }, "style-inject": { "version": "0.3.0", - "resolved": "https://registry.npm.taobao.org/style-inject/download/style-inject-0.3.0.tgz", - "integrity": "sha1-0hxHev/skYEcyCNVgypwDSK/jdM=" + "resolved": "https://registry.npmjs.org/style-inject/-/style-inject-0.3.0.tgz", + "integrity": "sha512-IezA2qp+vcdlhJaVm5SOdPPTUu0FCEqfNSli2vRuSIBbu5Nq5UvygTk/VzeCqfLz2Atj3dVII5QBKGZRZ0edzw==" }, "stylehacks": { "version": "4.0.3", @@ -9152,23 +9080,6 @@ "resolved": "https://registry.npm.taobao.org/tiny-inflate/download/tiny-inflate-1.0.3.tgz", "integrity": "sha1-EicVSUkToYBRZqr3yTRnkz7qJsQ=" }, - "tmp": { - "version": "0.1.0", - "resolved": "https://registry.npm.taobao.org/tmp/download/tmp-0.1.0.tgz", - "integrity": "sha1-7kNKTiJUMILilLpiAdzG6v76KHc=", - "requires": { - "rimraf": "^2.6.3" - } - }, - "tmp-promise": { - "version": "1.1.0", - "resolved": "https://registry.npm.taobao.org/tmp-promise/download/tmp-promise-1.1.0.tgz", - "integrity": "sha1-u5JNI5ApFXubwdUGpqo0H4sT5kw=", - "requires": { - "bluebird": "^3.5.0", - "tmp": "0.1.0" - } - }, "to-arraybuffer": { "version": "1.0.1", "resolved": "https://registry.npm.taobao.org/to-arraybuffer/download/to-arraybuffer-1.0.1.tgz", @@ -9408,8 +9319,8 @@ }, "universalify": { "version": "0.1.2", - "resolved": "https://registry.npm.taobao.org/universalify/download/universalify-0.1.2.tgz", - "integrity": "sha1-tkb2m+OULavOzJ1mOcgNwQXvqmY=" + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "unquote": { "version": "1.1.1", diff --git a/plugins.html b/plugins.html index 41c12c7..d85f9d7 100644 --- a/plugins.html +++ b/plugins.html @@ -39,7 +39,7 @@
    -

    Authlib-Injector

    +

    AuthlibInjector

    @@ -49,6 +49,18 @@

+
+ +

CurseForge

+

+ +
+
+ +

+

+ +
diff --git a/release.html b/release.html index 7bc84d7..4004789 100644 --- a/release.html +++ b/release.html @@ -34,7 +34,7 @@

WINDOWS

- +
@@ -44,7 +44,7 @@

LINUX

- +
diff --git a/src/i18n.ts b/src/i18n.ts index 4ecee63..296c076 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -7,8 +7,13 @@ window.$i = $i let currentLang: typeof enUS export const setLanguague = (l: string) => { + (window as any).currentLang = l currentLang = langs[l] || enUS $('[data-t]').each((_, e) => void (e.innerText = $i($(e).data('t')))) + $('[data-t-src]').each((_, e: HTMLImageElement) => { + const src = $i($(e).data('t-src')) + if (src) e.src = src + }) } setLanguague((navigator.language || (navigator as any).userLanguage).toLowerCase()) ;(window as any).setLanguague = setLanguague diff --git a/src/index.ts b/src/index.ts index 2c9427f..9509fc7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,17 +2,38 @@ const data: { os: { name?: string }, cpu: { architecture?: string } } = new (win const os = (data.os.name || '').toLowerCase() +const cn = { + home: require('../assets/screenshots/home-cn.png'), + resources: require('../assets/screenshots/resources-cn.png'), + accounts: require('../assets/screenshots/accounts-cn.png') +} + +const en = { + home: require('../assets/screenshots/home.png'), + resources: require('../assets/screenshots/resources.png'), + accounts: require('../assets/screenshots/accounts.png') +} + const changeText = () => { let text: string if (os.startsWith('android') || os.startsWith('blackberry') || os.startsWith('ios') || os.startsWith('windows phone')) { text = $i('notSupport') $('#download-now').prop('disabled', true) - } else if (os.startsWith('windows')) text = `Windows ${$i((data.cpu.architecture || '').includes('64') ? '64' : '32')} (.exe)` + } else if (os.startsWith('windows')) text = `Windows ${$i('32')} (.exe)` else if (os.startsWith('mac os')) text = `MACOS ${$i('64')} (.dmg)` else if (os.startsWith('debian') || os.startsWith('ubuntu') || os.startsWith('deepin')) text = `Debian Linux ${$i('64')} (.deb)` else if (os.startsWith('redhat') || os.startsWith('suse') || os.startsWith('centos')) text = `RedHat Linux ${$i('64')} (.rpm)` else text = `Linux ${$i('64')} (.tar.gz)` $('#release-type').text(text) } +const fn = (window as any).setLanguague +const f = (window as any).setLanguague = (str: string, exec: boolean) => { + const isCN = str === 'zh-cn' + $('#screenshot-home').prop('src', isCN ? cn.home : en.home) + $('#screenshot-resources').prop('src', isCN ? cn.resources : en.resources) + $('#screenshot-accounts').prop('src', isCN ? cn.accounts : en.accounts) + if (!exec) fn(str) +} (window as any).changeText = changeText +f((window as any).currentLang, true) changeText() diff --git a/src/install-local.ts b/src/install-local.ts new file mode 100644 index 0000000..eeeb915 --- /dev/null +++ b/src/install-local.ts @@ -0,0 +1,17 @@ +import { ensureRunning, protocol, info } from 'pure-launcher/packages/web-api' + +info().then(console.log) + +const path = decodeURIComponent(location.search.slice(1)) + +ensureRunning() + .then(() => path && protocol({ type: 'InstallLocal', path } as any)) + .then(() => { + $('#text').text($i('installSuccess')) + setTimeout(close, 5000) + }) + .catch(e => { + console.error(e) + $('#text').text($i('installFailed')) + setTimeout(() => (location.href = '/'), 7000) + }) diff --git a/src/minecraft.less b/src/minecraft.less index 3200f81..6eca0d4 100644 --- a/src/minecraft.less +++ b/src/minecraft.less @@ -59,35 +59,38 @@ } .badge { - background-color: #fff; - color: #999; - box-shadow: #d9d9d9 0px 0px 0px 1px inset; + color: white; font-size: 0.7rem; font-weight: 400; padding: 2px 8px; border-radius: 20px; transition: .3s; + &.release { + color: #999; + background-color: #fff; + box-shadow: #d9d9d9 0px 0px 0px 1px inset; + } + &.forge { - color: black; - box-shadow: none; background-color: #fa8c16; } &.forge:hover { - background-color: #fba446; + background-color: #d77104; } &.fabric { - color: white; - box-shadow: none; background-color: #52c41a; } &.fabric:hover { background-color: #409914; } + &.optifine { + background-color: #03a9f4; + } + &.optifine:hover { + background-color: #0284c0; + } &.snapshot { - color: white; - box-shadow: none; - cursor: default; background-color: #f5222d; } } diff --git a/src/plugins.css b/src/plugins.css index f2e0bb7..b51b533 100644 --- a/src/plugins.css +++ b/src/plugins.css @@ -39,3 +39,8 @@ p { margin: 140px 10px 60px; } } + +.screenshot-plugin { + box-shadow: none; + filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, .4)); +} diff --git a/src/versions.ts b/src/versions.ts index b0b7b73..883f913 100644 --- a/src/versions.ts +++ b/src/versions.ts @@ -1,22 +1,12 @@ import copy from 'copy-to-clipboard' -interface ForgeFile { - md5: string - path: string -} - -interface Forge { - version: string - universal: ForgeFile - installer: ForgeFile -} - interface Version { id: string - type: 'snapshot' | 'old_beta' | 'old_alpha' | 'release' time: number fabric?: string - forge?: Forge + forge?: string + optifine?: [string, string] + type?: 'snapshot' | 'old' } interface Data { @@ -49,7 +39,7 @@ const genList = () => { const releaseTime = $i('releaseTime') const versionsStr = data.versions.map((it, i) => { - if (!showOldVersion && it.type !== 'release') return + if (!showOldVersion && it.type) return let type: string let typeName: string switch (it.type) { @@ -57,8 +47,7 @@ const genList = () => { type = 'snapshot' typeName = snapshot break - case 'old_alpha': - case 'old_beta': + case 'old': type = 'snapshot' typeName = old break @@ -71,27 +60,32 @@ const genList = () => { ${it.id} ${typeName} ${it.fabric ? `Fabric` : ''} ${it.forge ? `Forge` : ''} + ${it.optifine ? `Optifine` : ''}

${releaseTime}: ${date.getFullYear()}-${ft(date.getMonth() + 1)}-${ft(date.getDay())} ${ft(date.getHours())}:${ft(date.getHours())}

` }).filter(Boolean).join('') $('#book-body').html(``) } -(window as any).install = (e: MouseEvent, id: number, type: 0 | 1 | 2) => { +(window as any).install = (e: MouseEvent, id: number, type: 0 | 1 | 2 | 3) => { const v = data.versions[id] let json: any = { type: 'Version', mcVersion: v.id, useIdAsName: true } switch (type) { case 1: json.id = v.fabric + '-Fabric' - json.$fabric = { version: v.fabric, loader: data.latest.fabricLoader } + json.$fabric = [v.fabric, data.latest.fabricLoader] break case 2: - json.id = v.id + '-' + v.forge.version + '-Forge' + json.id = v.id + '-Forge' + '-' + v.forge json.$forge = v.forge break + case 3: + json.id = v.id + '-Optifine' + '-' + v.optifine[0] + '-' + v.optifine[0] + json.$optifine = v.optifine + break default: json.id = v.id json.$vanilla = true @@ -103,7 +97,7 @@ const genList = () => { else e.cancelBubble = true } -fetch('https://xmcl.blob.core.windows.net/integration/vanillaData.json', { cache: 'no-cache' }) +fetch('https://xmcl.blob.core.windows.net/pure-launcher/vanillaData.json') .then(it => it.json()) .then((it: Data) => { data = it