Commit e5a390d8 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix dup request

parent af53a72c
{
"name": "mycard-mobile",
"version": "1.0.41",
"license": "UNLISENCED",
"scripts": {
"ng": "ng",
"start": "ng serve --aot --host 0.0.0.0",
"build": "ng build --i18n-locale zh-CN --prod --source-map --base-href /mobile/ --deploy-url https://cdn01.moecube.com/mobile/ && npm run fuck",
"build:dev": "ng build --i18n-locale zh-CN --prod --source-map --base-href /mobile2/ --deploy-url https://cdn01.moecube.com/mobile2/ && npm run fuck",
"fuck": "patch -i service-worker.patch dist/ngsw-worker.js",
"postinstall": "patch -i webpack.patch -p0 -t",
"lint": "ng lint"
},
"private": true,
"dependencies": {
"@angular/animations": "6.0.5",
"@angular/cdk": "^6.3.0",
"@angular/common": "6.0.5",
"@angular/compiler": "6.0.5",
"@angular/core": "6.0.5",
"@angular/forms": "6.0.5",
"@angular/http": "6.0.5",
"@angular/material": "^6.3.0",
"@angular/platform-browser": "6.0.5",
"@angular/platform-browser-dynamic": "6.0.5",
"@angular/pwa": "^0.6.8",
"@angular/router": "6.0.5",
"@angular/service-worker": "6.0.5",
"core-js": "^2.5.7",
"font-awesome": "^4.7.0",
"hammerjs": "^2.0.8",
"lodash": "^4.17.10",
"material-design-icons": "^3.0.1",
"raven-js": "^3.26.2",
"rxjs": "^6.2.1",
"webdav": "^1.5.2",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.6.8",
"@angular/cli": "^6.0.8",
"@angular/compiler-cli": "6.0.5",
"@angular/language-service": "6.0.5",
"@types/lodash": "^4.14.110",
"@types/node": "^10.3.4",
"codelyzer": "^4.0.1",
"prettier": "^1.12.1",
"tslint": "~5.10.0",
"typescript": "^2.7.2"
}
}
{
"name": "mycard-mobile",
"version": "1.0.42",
"license": "UNLISENCED",
"scripts": {
"ng": "ng",
"start": "ng serve --aot --host 0.0.0.0",
"build": "ng build --i18n-locale zh-CN --prod --source-map --base-href /mobile/ --deploy-url https://cdn01.moecube.com/mobile/ && npm run fuck",
"build:dev": "ng build --i18n-locale zh-CN --prod --source-map --base-href /mobile2/ --deploy-url https://cdn01.moecube.com/mobile2/ && npm run fuck",
"fuck": "patch -i service-worker.patch dist/ngsw-worker.js",
"postinstall": "patch -i webpack.patch -p0 -t",
"lint": "ng lint"
},
"private": true,
"dependencies": {
"@angular/animations": "6.0.5",
"@angular/cdk": "^6.3.0",
"@angular/common": "6.0.5",
"@angular/compiler": "6.0.5",
"@angular/core": "6.0.5",
"@angular/forms": "6.0.5",
"@angular/http": "6.0.5",
"@angular/material": "^6.3.0",
"@angular/platform-browser": "6.0.5",
"@angular/platform-browser-dynamic": "6.0.5",
"@angular/pwa": "^0.6.8",
"@angular/router": "6.0.5",
"@angular/service-worker": "6.0.5",
"core-js": "^2.5.7",
"font-awesome": "^4.7.0",
"hammerjs": "^2.0.8",
"lodash": "^4.17.10",
"material-design-icons": "^3.0.1",
"raven-js": "^3.26.2",
"rxjs": "^6.2.1",
"webdav": "^1.5.2",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.6.8",
"@angular/cli": "^6.0.8",
"@angular/compiler-cli": "6.0.5",
"@angular/language-service": "6.0.5",
"@types/lodash": "^4.14.110",
"@types/node": "^10.3.4",
"codelyzer": "^4.0.1",
"prettier": "^1.12.1",
"tslint": "~5.10.0",
"typescript": "^2.7.2"
}
}
......@@ -9,7 +9,7 @@ import { MatchDialogComponent } from './match-dialog/match-dialog.component';
import { ResultDialogComponent } from './result-dialog/result-dialog.component';
import { StorageService } from './storage.service';
import { HttpClient } from '@angular/common/http';
import { catchError, filter, map, mergeMap, scan, startWith } from 'rxjs/internal/operators';
import { catchError, filter, map, mergeMap, publishLast, refCount, scan, startWith } from 'rxjs/internal/operators';
import { webSocket } from 'rxjs/webSocket';
export interface User {
......@@ -149,7 +149,7 @@ export class YGOProService {
];
constructor(private login: LoginService, private http: HttpClient, private dialog: MatDialog, private storage: StorageService) {
const app = this.http.get<App[]>('https://api.mycard.moe/apps.json').pipe(map(apps => apps.find(_app => _app.id === 'ygopro')!));
const app = this.http.get<App[]>('https://api.mycard.moe/apps.json').pipe(map(apps => apps.find(_app => _app.id === 'ygopro')!), publishLast(), refCount());
this.news = app
.pipe(
map(_app =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment