From 8e03b2b34249c4af98ad7daa6d9fce4cd57162ce Mon Sep 17 00:00:00 2001 From: ttop5 Date: Wed, 7 Aug 2019 17:06:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E6=89=93=E5=8C=85?= =?UTF-8?q?=E6=88=90APP=EF=BC=88Android=20iOS=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +- package.json | 6 +- src-cordova/config.xml | 24 ++ src-cordova/hooks/README.md | 23 ++ src-cordova/package-lock.json | 638 ++++++++++++++++++++++++++++++++++ src-cordova/package.json | 31 ++ src-ext/manifest.json | 2 +- src/router/index.js | 2 +- 8 files changed, 727 insertions(+), 7 deletions(-) create mode 100644 src-cordova/config.xml create mode 100644 src-cordova/hooks/README.md create mode 100644 src-cordova/package-lock.json create mode 100644 src-cordova/package.json diff --git a/README.md b/README.md index 5d4beb9..786772f 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ #### Chrome 插件 -如果您的网络无法访问 Chrome 商店,您也可以从 [这里](https://github.com/ttop5/to-be-slack/releases) 下载最新的 `to-be-slack.crx` 文件。 +您可以直接点击[这里](https://chrome.google.com/webstore/detail/%E4%BB%8A%E6%97%A5%E7%83%AD%E6%A6%9C/ldmhioaifhbepgelhgcjkpfjlhmcjmmd)进行安装。如果您的网络无法访问 Chrome 商店,您也可以从 [这里](https://github.com/ttop5/to-be-slack/releases) 下载最新的 `to-be-slack.crx` 文件, 然后打开 Chrome 浏览器地址栏输入 chrome://extensions ,打开 `开发者模式`,把下载好的文件拖拽到此界面,点击 `添加拓展程序` 来完成安装。 @@ -45,11 +45,11 @@ #### PWA -移动端推荐使用 PWA 程序,使用效果最佳。因为有了这个好东西,所以暂时懒得打包成 APP 了。 +移动端推荐使用 PWA 程序,使用效果最佳且简单方便。~~因为有了这个好东西,所以暂时懒得打包成 APP 了~~ 现已支持打包成 Android 和 iOS 程序,如有需要可自行打包使用。 -iOS:使用 Safari 打开 [https://ttop5.github.io/to-be-slack](https://ttop5.github.io/to-be-slack) -> 正下方中间分享按钮 -> 添加到主屏幕; +iOS:使用 `Safari` 打开 [https://ttop5.github.io/to-be-slack](https://ttop5.github.io/to-be-slack) -> 正下方中间分享按钮 -> 添加到主屏幕; -Android:使用 Chrome 打开 [https://ttop5.github.io/to-be-slack](https://ttop5.github.io/to-be-slack) -> 右上角菜单 -> 添加到主屏幕; +Android:使用 `Chrome` 打开 [https://ttop5.github.io/to-be-slack](https://ttop5.github.io/to-be-slack) -> 右上角菜单 -> 添加到主屏幕;如果不成功,请确认 Chrome 有添加桌面快捷方式的权限。 操作完成后手机主屏幕就会多出一个今日热榜的程序啦! diff --git a/package.json b/package.json index a378a96..4f1598b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ToBeSlack", - "version": "1.3.1", + "version": "1.4.0", "description": "摸鱼愉快", "productName": "今日热榜", "cordovaId": "org.cordova.quasar.app", @@ -10,8 +10,12 @@ "lint": "eslint --ext .js,.vue src", "dev": "quasar dev", "dev-pwa": "quasar dev -m pwa", + "dev-android": "quasar dev -m android", + "dev-ios": "quasar dev -m ios", "build": "quasar build && cp src-ext/background.html ./dist/spa && cp src-ext/manifest.json ./dist/spa", "build-pwa": "quasar build -m pwa", + "build-android": "quasar build -m android", + "build-ios": "quasar build -m ios", "deploy": "yarn build-pwa && node publish.js", "test": "echo \"No test specified\" && exit 0" }, diff --git a/src-cordova/config.xml b/src-cordova/config.xml new file mode 100644 index 0000000..78455cc --- /dev/null +++ b/src-cordova/config.xml @@ -0,0 +1,24 @@ + + + 今日热榜 + 摸鱼愉快 + + Apache Cordova Team + + + + + + + + + + + + + + + + + + diff --git a/src-cordova/hooks/README.md b/src-cordova/hooks/README.md new file mode 100644 index 0000000..574ad4c --- /dev/null +++ b/src-cordova/hooks/README.md @@ -0,0 +1,23 @@ + +# Cordova Hooks + +Cordova Hooks represent special scripts which could be added by application and plugin developers or even by your own build system to customize cordova commands. See Hooks Guide for more details: http://cordova.apache.org/docs/en/edge/guide_appdev_hooks_index.md.html#Hooks%20Guide. diff --git a/src-cordova/package-lock.json b/src-cordova/package-lock.json new file mode 100644 index 0000000..24cdd8d --- /dev/null +++ b/src-cordova/package-lock.json @@ -0,0 +1,638 @@ +{ + "name": "org.cordova.quasar.app", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "abbrev": { + "version": "1.1.1", + "resolved": "http://registry.npm.taobao.org/abbrev/download/abbrev-1.1.1.tgz", + "integrity": "sha1-+PLIh60Qv2f2NPAFtph/7TF5qsg=" + }, + "android-versions": { + "version": "1.4.0", + "resolved": "https://registry.npm.taobao.org/android-versions/download/android-versions-1.4.0.tgz", + "integrity": "sha1-gH6ilB1+V4Dm3WHF2be288Bwbgk=", + "requires": { + "semver": "^5.4.1" + } + }, + "ansi": { + "version": "0.3.1", + "resolved": "http://registry.npm.taobao.org/ansi/download/ansi-0.3.1.tgz", + "integrity": "sha1-DELU+xcWDVqa8eSEus4cZpIsGyE=" + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "http://registry.npm.taobao.org/balanced-match/download/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + }, + "base64-js": { + "version": "1.3.1", + "resolved": "https://registry.npm.taobao.org/base64-js/download/base64-js-1.3.1.tgz", + "integrity": "sha1-WOzoy3XdB+ce0IxzarxfrE2/jfE=" + }, + "big-integer": { + "version": "1.6.44", + "resolved": "https://registry.npm.taobao.org/big-integer/download/big-integer-1.6.44.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbig-integer%2Fdownload%2Fbig-integer-1.6.44.tgz", + "integrity": "sha1-TumuX1g5/BGt4zj+oha0UTRUpTk=" + }, + "bplist-creator": { + "version": "0.0.7", + "resolved": "https://registry.npm.taobao.org/bplist-creator/download/bplist-creator-0.0.7.tgz", + "integrity": "sha1-N98VNgkoJLh8QvlXsBNEEXNyrkU=", + "requires": { + "stream-buffers": "~2.2.0" + } + }, + "bplist-parser": { + "version": "0.1.1", + "resolved": "https://registry.npm.taobao.org/bplist-parser/download/bplist-parser-0.1.1.tgz", + "integrity": "sha1-1g1dzCDLptx+HymbNdPh+V2vuuY=", + "requires": { + "big-integer": "^1.6.7" + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "http://registry.npm.taobao.org/brace-expansion/download/brace-expansion-1.1.11.tgz", + "integrity": "sha1-PH/L9SnYcibz0vUrlm/1Jx60Qd0=", + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "http://registry.npm.taobao.org/concat-map/download/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "cordova-android": { + "version": "8.0.0", + "resolved": "https://registry.npm.taobao.org/cordova-android/download/cordova-android-8.0.0.tgz", + "integrity": "sha1-H74FqRRzHfYZUiuThdTRsYPDa9s=", + "requires": { + "android-versions": "^1.3.0", + "cordova-common": "^3.1.0", + "elementtree": "^0.1.7", + "nopt": "^4.0.1", + "properties-parser": "^0.3.1", + "q": "^1.4.1", + "shelljs": "^0.5.3" + } + }, + "cordova-common": { + "version": "3.2.0", + "resolved": "https://registry.npm.taobao.org/cordova-common/download/cordova-common-3.2.0.tgz", + "integrity": "sha1-mlySFfgX16CPvQFL+WPFROH+tnE=", + "requires": { + "ansi": "^0.3.1", + "bplist-parser": "^0.1.0", + "cross-spawn": "^6.0.5", + "elementtree": "0.1.7", + "endent": "^1.1.1", + "fs-extra": "^8.0.0", + "glob": "^7.1.2", + "minimatch": "^3.0.0", + "plist": "^3.0.1", + "q": "^1.4.1", + "strip-bom": "^3.0.0", + "underscore": "^1.8.3", + "which": "^1.3.0" + } + }, + "cordova-ios": { + "version": "5.0.1", + "resolved": "https://registry.npm.taobao.org/cordova-ios/download/cordova-ios-5.0.1.tgz", + "integrity": "sha1-juMCgMR/Kcw+hxYWepzjPLr53r0=", + "requires": { + "cordova-common": "^3.1.0", + "ios-sim": "^8.0.1", + "nopt": "^4.0.1", + "plist": "^3.0.1", + "q": "^1.5.1", + "shelljs": "^0.5.3", + "unorm": "^1.4.1", + "xcode": "^2.0.0", + "xml-escape": "^1.1.0" + } + }, + "cordova-plugin-whitelist": { + "version": "1.3.4", + "resolved": "https://registry.npm.taobao.org/cordova-plugin-whitelist/download/cordova-plugin-whitelist-1.3.4.tgz", + "integrity": "sha1-MZOFRcfD5941wgqwjCw6+gboo/k=", + "dev": true + }, + "cross-spawn": { + "version": "6.0.5", + "resolved": "http://registry.npm.taobao.org/cross-spawn/download/cross-spawn-6.0.5.tgz", + "integrity": "sha1-Sl7Hxk364iw6FBJNus3uhG2Ay8Q=", + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "dedent": { + "version": "0.7.0", + "resolved": "http://registry.npm.taobao.org/dedent/download/dedent-0.7.0.tgz", + "integrity": "sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=" + }, + "deep-equal": { + "version": "1.0.1", + "resolved": "http://registry.npm.taobao.org/deep-equal/download/deep-equal-1.0.1.tgz", + "integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=" + }, + "define-properties": { + "version": "1.1.3", + "resolved": "http://registry.npm.taobao.org/define-properties/download/define-properties-1.1.3.tgz", + "integrity": "sha1-z4jabL7ib+bbcJT2HYcMvYTO6fE=", + "requires": { + "object-keys": "^1.0.12" + } + }, + "defined": { + "version": "1.0.0", + "resolved": "http://registry.npm.taobao.org/defined/download/defined-1.0.0.tgz", + "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=" + }, + "elementtree": { + "version": "0.1.7", + "resolved": "https://registry.npm.taobao.org/elementtree/download/elementtree-0.1.7.tgz", + "integrity": "sha1-mskb5uUvtuYkTE5UpKw+2K6OKcA=", + "requires": { + "sax": "1.1.4" + } + }, + "endent": { + "version": "1.3.0", + "resolved": "https://registry.npm.taobao.org/endent/download/endent-1.3.0.tgz", + "integrity": "sha1-6oa1g9e3yv9cvuWtLHwyLrGQDHY=", + "requires": { + "dedent": "^0.7.0", + "fast-json-parse": "^1.0.3", + "objectorarray": "^1.0.3" + } + }, + "es-abstract": { + "version": "1.13.0", + "resolved": "http://registry.npm.taobao.org/es-abstract/download/es-abstract-1.13.0.tgz?cache=0&other_urls=http%3A%2F%2Fregistry.npm.taobao.org%2Fes-abstract%2Fdownload%2Fes-abstract-1.13.0.tgz", + "integrity": "sha1-rIYUX91QmdjdSVWMy6Lq+biOJOk=", + "requires": { + "es-to-primitive": "^1.2.0", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "is-callable": "^1.1.4", + "is-regex": "^1.0.4", + "object-keys": "^1.0.12" + } + }, + "es-to-primitive": { + "version": "1.2.0", + "resolved": "http://registry.npm.taobao.org/es-to-primitive/download/es-to-primitive-1.2.0.tgz", + "integrity": "sha1-7fckeAM0VujdqO8J4ArZZQcH83c=", + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "fast-json-parse": { + "version": "1.0.3", + "resolved": "http://registry.npm.taobao.org/fast-json-parse/download/fast-json-parse-1.0.3.tgz", + "integrity": "sha1-Q+XGHuTvqSZWMwRrdw+2gqdXfE0=" + }, + "for-each": { + "version": "0.3.3", + "resolved": "https://registry.npm.taobao.org/for-each/download/for-each-0.3.3.tgz", + "integrity": "sha1-abRH6IoKXTLD5whPPxcQA0shN24=", + "requires": { + "is-callable": "^1.1.3" + } + }, + "fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npm.taobao.org/fs-extra/download/fs-extra-8.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffs-extra%2Fdownload%2Ffs-extra-8.1.0.tgz", + "integrity": "sha1-SdQ8RaiM2Wd2aMt74bRu/bjS4cA=", + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "http://registry.npm.taobao.org/fs.realpath/download/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + }, + "function-bind": { + "version": "1.1.1", + "resolved": "http://registry.npm.taobao.org/function-bind/download/function-bind-1.1.1.tgz", + "integrity": "sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0=" + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npm.taobao.org/glob/download/glob-7.1.4.tgz", + "integrity": "sha1-qmCKL2xXetNX4a5aXCbZqNGWklU=", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.1", + "resolved": "https://registry.npm.taobao.org/graceful-fs/download/graceful-fs-4.2.1.tgz?cache=0&sync_timestamp=1564898698078&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fgraceful-fs%2Fdownload%2Fgraceful-fs-4.2.1.tgz", + "integrity": "sha1-HB8MNkiCyGj1v/ZRIUYygzahGx0=" + }, + "has": { + "version": "1.0.3", + "resolved": "http://registry.npm.taobao.org/has/download/has-1.0.3.tgz", + "integrity": "sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y=", + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-symbols": { + "version": "1.0.0", + "resolved": "http://registry.npm.taobao.org/has-symbols/download/has-symbols-1.0.0.tgz", + "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=" + }, + "inflight": { + "version": "1.0.6", + "resolved": "http://registry.npm.taobao.org/inflight/download/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npm.taobao.org/inherits/download/inherits-2.0.4.tgz?cache=0&sync_timestamp=1560975547815&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Finherits%2Fdownload%2Finherits-2.0.4.tgz", + "integrity": "sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w=" + }, + "ios-sim": { + "version": "8.0.1", + "resolved": "https://registry.npm.taobao.org/ios-sim/download/ios-sim-8.0.1.tgz", + "integrity": "sha1-t0+8RmAal3P+6QQX11OWTAjg6Z0=", + "requires": { + "bplist-parser": "^0.0.6", + "nopt": "1.0.9", + "plist": "^3.0.1", + "simctl": "^2" + }, + "dependencies": { + "bplist-parser": { + "version": "0.0.6", + "resolved": "https://registry.npm.taobao.org/bplist-parser/download/bplist-parser-0.0.6.tgz", + "integrity": "sha1-ONo0cYF9+dRKs4kuJ3B7u9daEbk=" + }, + "nopt": { + "version": "1.0.9", + "resolved": "http://registry.npm.taobao.org/nopt/download/nopt-1.0.9.tgz", + "integrity": "sha1-O8DXy6e/sNWmdtvtfA6+SKT9RU4=", + "requires": { + "abbrev": "1" + } + } + } + }, + "is-callable": { + "version": "1.1.4", + "resolved": "http://registry.npm.taobao.org/is-callable/download/is-callable-1.1.4.tgz", + "integrity": "sha1-HhrfIZ4e62hNaR+dagX/DTCiTXU=" + }, + "is-date-object": { + "version": "1.0.1", + "resolved": "http://registry.npm.taobao.org/is-date-object/download/is-date-object-1.0.1.tgz", + "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=" + }, + "is-regex": { + "version": "1.0.4", + "resolved": "http://registry.npm.taobao.org/is-regex/download/is-regex-1.0.4.tgz", + "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", + "requires": { + "has": "^1.0.1" + } + }, + "is-symbol": { + "version": "1.0.2", + "resolved": "http://registry.npm.taobao.org/is-symbol/download/is-symbol-1.0.2.tgz", + "integrity": "sha1-oFX2rlcZLK7jKeeoYBGLSXqVDzg=", + "requires": { + "has-symbols": "^1.0.0" + } + }, + "isexe": { + "version": "2.0.0", + "resolved": "http://registry.npm.taobao.org/isexe/download/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "http://registry.npm.taobao.org/jsonfile/download/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "http://registry.npm.taobao.org/minimatch/download/minimatch-3.0.4.tgz", + "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.0", + "resolved": "http://registry.npm.taobao.org/minimist/download/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" + }, + "nice-try": { + "version": "1.0.5", + "resolved": "http://registry.npm.taobao.org/nice-try/download/nice-try-1.0.5.tgz", + "integrity": "sha1-ozeKdpbOfSI+iPybdkvX7xCJ42Y=" + }, + "nopt": { + "version": "4.0.1", + "resolved": "http://registry.npm.taobao.org/nopt/download/nopt-4.0.1.tgz", + "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", + "requires": { + "abbrev": "1", + "osenv": "^0.1.4" + } + }, + "object-inspect": { + "version": "1.6.0", + "resolved": "http://registry.npm.taobao.org/object-inspect/download/object-inspect-1.6.0.tgz", + "integrity": "sha1-xwtsv3LydKq0w0wMgvUWe/gs8Vs=" + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npm.taobao.org/object-keys/download/object-keys-1.1.1.tgz", + "integrity": "sha1-HEfyct8nfzsdrwYWd9nILiMixg4=" + }, + "objectorarray": { + "version": "1.0.3", + "resolved": "https://registry.npm.taobao.org/objectorarray/download/objectorarray-1.0.3.tgz", + "integrity": "sha1-0qLekJfAakjX13Jk/XFAZRnnx3I=", + "requires": { + "tape": "^4.8.0" + } + }, + "once": { + "version": "1.4.0", + "resolved": "http://registry.npm.taobao.org/once/download/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "requires": { + "wrappy": "1" + } + }, + "os-homedir": { + "version": "1.0.2", + "resolved": "http://registry.npm.taobao.org/os-homedir/download/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=" + }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "http://registry.npm.taobao.org/os-tmpdir/download/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" + }, + "osenv": { + "version": "0.1.5", + "resolved": "http://registry.npm.taobao.org/osenv/download/osenv-0.1.5.tgz", + "integrity": "sha1-hc36+uso6Gd/QW4odZK18/SepBA=", + "requires": { + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "http://registry.npm.taobao.org/path-is-absolute/download/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + }, + "path-key": { + "version": "2.0.1", + "resolved": "http://registry.npm.taobao.org/path-key/download/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" + }, + "path-parse": { + "version": "1.0.6", + "resolved": "http://registry.npm.taobao.org/path-parse/download/path-parse-1.0.6.tgz", + "integrity": "sha1-1i27VnlAXXLEc37FhgDp3c8G0kw=" + }, + "plist": { + "version": "3.0.1", + "resolved": "http://registry.npm.taobao.org/plist/download/plist-3.0.1.tgz", + "integrity": "sha1-qbkx0XwwTokS7wujvdYYK68uH4w=", + "requires": { + "base64-js": "^1.2.3", + "xmlbuilder": "^9.0.7", + "xmldom": "0.1.x" + } + }, + "properties-parser": { + "version": "0.3.1", + "resolved": "https://registry.npm.taobao.org/properties-parser/download/properties-parser-0.3.1.tgz", + "integrity": "sha1-ExbpU5/7/ZOEXjabIRAiq9R4dxo=", + "requires": { + "string.prototype.codepointat": "^0.2.0" + } + }, + "q": { + "version": "1.5.1", + "resolved": "http://registry.npm.taobao.org/q/download/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=" + }, + "resolve": { + "version": "1.11.1", + "resolved": "https://registry.npm.taobao.org/resolve/download/resolve-1.11.1.tgz?cache=0&sync_timestamp=1564641434608&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fresolve%2Fdownload%2Fresolve-1.11.1.tgz", + "integrity": "sha1-6hDYEQN2mC/vV434/DC5rDCgej4=", + "requires": { + "path-parse": "^1.0.6" + } + }, + "resumer": { + "version": "0.0.0", + "resolved": "https://registry.npm.taobao.org/resumer/download/resumer-0.0.0.tgz", + "integrity": "sha1-8ej0YeQGS6Oegq883CqMiT0HZ1k=", + "requires": { + "through": "~2.3.4" + } + }, + "sax": { + "version": "1.1.4", + "resolved": "http://registry.npm.taobao.org/sax/download/sax-1.1.4.tgz", + "integrity": "sha1-dLbTPJrh4AFRDxeakRaFiPGu2qk=" + }, + "semver": { + "version": "5.7.0", + "resolved": "https://registry.npm.taobao.org/semver/download/semver-5.7.0.tgz", + "integrity": "sha1-eQp89v6lRZuslhELKbYEEtyP+Ws=" + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "http://registry.npm.taobao.org/shebang-command/download/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npm.taobao.org/shebang-regex/download/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" + }, + "shelljs": { + "version": "0.5.3", + "resolved": "http://registry.npm.taobao.org/shelljs/download/shelljs-0.5.3.tgz", + "integrity": "sha1-xUmCuZbHbvDB5rWfvcWCX1txMRM=" + }, + "simctl": { + "version": "2.0.0", + "resolved": "https://registry.npm.taobao.org/simctl/download/simctl-2.0.0.tgz", + "integrity": "sha1-4/HGkIc1lp4j4JIrDLEWGEPdDFk=", + "requires": { + "shelljs": "^0.2.6", + "tail": "^0.4.0" + }, + "dependencies": { + "shelljs": { + "version": "0.2.6", + "resolved": "http://registry.npm.taobao.org/shelljs/download/shelljs-0.2.6.tgz", + "integrity": "sha1-kEktcv/MgVmXa6umL7D2iE8MM3g=" + } + } + }, + "simple-plist": { + "version": "1.0.0", + "resolved": "http://registry.npm.taobao.org/simple-plist/download/simple-plist-1.0.0.tgz", + "integrity": "sha1-vtMIVjOyLzceER9F0VmhzPlLges=", + "requires": { + "bplist-creator": "0.0.7", + "bplist-parser": "0.1.1", + "plist": "^3.0.1" + } + }, + "stream-buffers": { + "version": "2.2.0", + "resolved": "http://registry.npm.taobao.org/stream-buffers/download/stream-buffers-2.2.0.tgz", + "integrity": "sha1-kdX1Ew0c75bc+n9yaUUYh0HQnuQ=" + }, + "string.prototype.codepointat": { + "version": "0.2.1", + "resolved": "https://registry.npm.taobao.org/string.prototype.codepointat/download/string.prototype.codepointat-0.2.1.tgz", + "integrity": "sha1-AErUTIr8cnUnsQjNRitNlxzUabw=" + }, + "string.prototype.trim": { + "version": "1.1.2", + "resolved": "https://registry.npm.taobao.org/string.prototype.trim/download/string.prototype.trim-1.1.2.tgz", + "integrity": "sha1-0E3iyJ4Tf019IG8Ia17S+ua+jOo=", + "requires": { + "define-properties": "^1.1.2", + "es-abstract": "^1.5.0", + "function-bind": "^1.0.2" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npm.taobao.org/strip-bom/download/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=" + }, + "tail": { + "version": "0.4.0", + "resolved": "https://registry.npm.taobao.org/tail/download/tail-0.4.0.tgz", + "integrity": "sha1-0p3nJ1DMmdseBTr/E8NZ7PtxMAI=" + }, + "tape": { + "version": "4.11.0", + "resolved": "https://registry.npm.taobao.org/tape/download/tape-4.11.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftape%2Fdownload%2Ftape-4.11.0.tgz", + "integrity": "sha1-Y9QazNleRaI6h0RzBRxX/bxY7cE=", + "requires": { + "deep-equal": "~1.0.1", + "defined": "~1.0.0", + "for-each": "~0.3.3", + "function-bind": "~1.1.1", + "glob": "~7.1.4", + "has": "~1.0.3", + "inherits": "~2.0.4", + "minimist": "~1.2.0", + "object-inspect": "~1.6.0", + "resolve": "~1.11.1", + "resumer": "~0.0.0", + "string.prototype.trim": "~1.1.2", + "through": "~2.3.8" + } + }, + "through": { + "version": "2.3.8", + "resolved": "http://registry.npm.taobao.org/through/download/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" + }, + "underscore": { + "version": "1.9.1", + "resolved": "http://registry.npm.taobao.org/underscore/download/underscore-1.9.1.tgz", + "integrity": "sha1-BtzjSg5op7q8KbNluOdLiSUgOWE=" + }, + "universalify": { + "version": "0.1.2", + "resolved": "http://registry.npm.taobao.org/universalify/download/universalify-0.1.2.tgz", + "integrity": "sha1-tkb2m+OULavOzJ1mOcgNwQXvqmY=" + }, + "unorm": { + "version": "1.6.0", + "resolved": "https://registry.npm.taobao.org/unorm/download/unorm-1.6.0.tgz", + "integrity": "sha1-ApsolmH7pxTxqa9DnrUdmxbCBa8=" + }, + "uuid": { + "version": "3.3.2", + "resolved": "http://registry.npm.taobao.org/uuid/download/uuid-3.3.2.tgz", + "integrity": "sha1-G0r0lV6zB3xQHCOHL8ZROBFYcTE=" + }, + "which": { + "version": "1.3.1", + "resolved": "http://registry.npm.taobao.org/which/download/which-1.3.1.tgz", + "integrity": "sha1-pFBD1U9YBTFtqNYvn1CRjT2nCwo=", + "requires": { + "isexe": "^2.0.0" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "http://registry.npm.taobao.org/wrappy/download/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + }, + "xcode": { + "version": "2.0.0", + "resolved": "http://registry.npm.taobao.org/xcode/download/xcode-2.0.0.tgz", + "integrity": "sha1-E08flMJvv+ipqqlyS/snckGdoaI=", + "requires": { + "simple-plist": "^1.0.0", + "uuid": "^3.3.2" + } + }, + "xml-escape": { + "version": "1.1.0", + "resolved": "https://registry.npm.taobao.org/xml-escape/download/xml-escape-1.1.0.tgz", + "integrity": "sha1-OQTBQ/qOs6ADDsZG0pAqLxtwbEQ=" + }, + "xmlbuilder": { + "version": "9.0.7", + "resolved": "https://registry.npm.taobao.org/xmlbuilder/download/xmlbuilder-9.0.7.tgz", + "integrity": "sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0=" + }, + "xmldom": { + "version": "0.1.27", + "resolved": "http://registry.npm.taobao.org/xmldom/download/xmldom-0.1.27.tgz", + "integrity": "sha1-1QH5ezvbQDr4757MIFcxh6rawOk=" + } + } +} diff --git a/src-cordova/package.json b/src-cordova/package.json new file mode 100644 index 0000000..73f7d96 --- /dev/null +++ b/src-cordova/package.json @@ -0,0 +1,31 @@ +{ + "name": "org.cordova.quasar.app", + "displayName": "今日热榜", + "version": "1.4.0", + "description": "A sample Apache Cordova application that responds to the deviceready event.", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [ + "ecosystem:cordova" + ], + "author": "Apache Cordova Team", + "license": "Apache-2.0", + "dependencies": { + "cordova-android": "^8.0.0", + "cordova-ios": "^5.0.1" + }, + "devDependencies": { + "cordova-plugin-whitelist": "^1.3.4" + }, + "cordova": { + "plugins": { + "cordova-plugin-whitelist": {} + }, + "platforms": [ + "android", + "ios" + ] + } +} \ No newline at end of file diff --git a/src-ext/manifest.json b/src-ext/manifest.json index 2454d66..f53c847 100644 --- a/src-ext/manifest.json +++ b/src-ext/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "今日热榜", - "version": "1.3.1", + "version": "1.4.0", "description": "摸鱼愉快", "icons": { diff --git a/src/router/index.js b/src/router/index.js index 2f4079c..ce0ef4b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -24,7 +24,7 @@ export default function (/* { store, ssrContext } */) { Router.beforeEach((to, from, next) => { if (to.fullPath === '/') { - const id = localStorage.getItem('slackActiveTab'); + const id = localStorage.getItem('slackActiveTab') || 1; next(`/?id=${id}`); } else { next();