Skip to content
This repository was archived by the owner on Jun 6, 2019. It is now read-only.

Commit 8d06bc2

Browse files
committed
npm run build && npm run copy
1 parent e708be3 commit 8d06bc2

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

android/app/src/main/assets/index.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,10 @@
203203

204204
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
205205

206-
Vue.use(_vueRouter2.default); // import Vue from 'vue'
207-
206+
Vue.use(_vueRouter2.default);
208207

208+
// Story view factory
209+
// import Vue from 'vue'
209210
function createStoriesView(type) {
210211
return {
211212
name: type + '-stories-view',
@@ -3850,6 +3851,7 @@
38503851

38513852
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
38523853

3854+
// Vuex is auto installed on the web
38533855
if (WXEnvironment.platform !== 'Web') {
38543856
Vue.use(_vuex2.default);
38553857
} // import Vue from 'vue'
@@ -4811,14 +4813,12 @@
48114813
var baseURL = 'https://hacker-news.firebaseio.com/v0';
48124814

48134815
function fetch(path) {
4814-
// console.log('----------> fetch: ' + path)
48154816
return new Promise(function (resolve, reject) {
48164817
stream.fetch({
48174818
method: 'GET',
48184819
url: baseURL + '/' + path + '.json',
48194820
type: 'json'
48204821
}, function (response) {
4821-
// console.log('----------> response.status: ' + response.status)
48224822
if (response.status == 200) {
48234823
resolve(response.data);
48244824
} else {
@@ -5241,8 +5241,7 @@
52415241
}
52425242

52435243
function unescape(text) {
5244-
var res = text || '';
5245-
[['<p>', '\n'], ['&amp;', '&'], ['&amp;', '&'], ['&apos;', '\''], ['&#x27;', '\''], ['&#x2F;', '/'], ['&#39;', '\''], ['&#47;', '/'], ['&lt;', '<'], ['&gt;', '>'], ['&nbsp;', ' '], ['&quot;', '"']].forEach(function (pair) {
5244+
var res = text || '';[['<p>', '\n'], ['&amp;', '&'], ['&amp;', '&'], ['&apos;', '\''], ['&#x27;', '\''], ['&#x2F;', '/'], ['&#39;', '\''], ['&#47;', '/'], ['&lt;', '<'], ['&gt;', '>'], ['&nbsp;', ' '], ['&quot;', '"']].forEach(function (pair) {
52465245
res = res.replace(new RegExp(pair[0], 'ig'), pair[1]);
52475246
});
52485247

ios/assets/index.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,10 @@
203203

204204
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
205205

206-
Vue.use(_vueRouter2.default); // import Vue from 'vue'
207-
206+
Vue.use(_vueRouter2.default);
208207

208+
// Story view factory
209+
// import Vue from 'vue'
209210
function createStoriesView(type) {
210211
return {
211212
name: type + '-stories-view',
@@ -3850,6 +3851,7 @@
38503851

38513852
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
38523853

3854+
// Vuex is auto installed on the web
38533855
if (WXEnvironment.platform !== 'Web') {
38543856
Vue.use(_vuex2.default);
38553857
} // import Vue from 'vue'
@@ -4811,14 +4813,12 @@
48114813
var baseURL = 'https://hacker-news.firebaseio.com/v0';
48124814

48134815
function fetch(path) {
4814-
// console.log('----------> fetch: ' + path)
48154816
return new Promise(function (resolve, reject) {
48164817
stream.fetch({
48174818
method: 'GET',
48184819
url: baseURL + '/' + path + '.json',
48194820
type: 'json'
48204821
}, function (response) {
4821-
// console.log('----------> response.status: ' + response.status)
48224822
if (response.status == 200) {
48234823
resolve(response.data);
48244824
} else {
@@ -5241,8 +5241,7 @@
52415241
}
52425242

52435243
function unescape(text) {
5244-
var res = text || '';
5245-
[['<p>', '\n'], ['&amp;', '&'], ['&amp;', '&'], ['&apos;', '\''], ['&#x27;', '\''], ['&#x2F;', '/'], ['&#39;', '\''], ['&#47;', '/'], ['&lt;', '<'], ['&gt;', '>'], ['&nbsp;', ' '], ['&quot;', '"']].forEach(function (pair) {
5244+
var res = text || '';[['<p>', '\n'], ['&amp;', '&'], ['&amp;', '&'], ['&apos;', '\''], ['&#x27;', '\''], ['&#x2F;', '/'], ['&#39;', '\''], ['&#47;', '/'], ['&lt;', '<'], ['&gt;', '>'], ['&nbsp;', ' '], ['&quot;', '"']].forEach(function (pair) {
52465245
res = res.replace(new RegExp(pair[0], 'ig'), pair[1]);
52475246
});
52485247

0 commit comments

Comments
 (0)