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

clean

parent d13598cd
......@@ -18,8 +18,7 @@
"polyfills": "src/polyfills.ts",
"assets": [
"src/assets",
"src/favicon.ico",
"src/manifest.json"
"src/favicon.ico"
],
"styles": [
"src/styles.css"
......
{
"name": "mycard-mobile",
"version": "1.0.19",
"version": "1.0.22",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......@@ -6745,6 +6745,11 @@
"integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=",
"dev": true
},
"raven-js": {
"version": "3.26.2",
"resolved": "https://registry.npmjs.org/raven-js/-/raven-js-3.26.2.tgz",
"integrity": "sha512-d+PXxMUYK020ug4dCkPGtyseawRiXEMKBYxmRrOishm+g1ul41AwK1O//3eUToiCdof0cXA/HoYtXR4o2Ff9UQ=="
},
"raw-body": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.2.tgz",
......
{
"name": "mycard-mobile",
"version": "1.0.21",
"version": "1.0.22",
"license": "UNLISENCED",
"scripts": {
"ng": "ng",
"start": "ng serve --aot",
"build": "ng build --i18n-locale zh-CN --base-href /mobile/ --prod --build-optimizer",
"build": "ng build --i18n-locale zh-CN --base-href /mobile/ --prod",
"postinstall": "patch -i webpack.patch -p0 -t",
"lint": "ng lint"
},
......@@ -28,6 +28,7 @@
"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"
......
import { NgModule } from '@angular/core';
import { ErrorHandler, NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import {
MatAutocompleteModule,
......@@ -37,7 +37,17 @@ import { WatchComponent } from './watch/watch.component';
import { WindbotComponent } from './windbot/windbot.component';
import { YGOProService } from './ygopro.service';
import { HttpClientModule } from '@angular/common/http';
import { HttpModule } from '@angular/http';
import * as Raven from 'raven-js';
Raven.config('https://a43997ca0d3a4aee8640ab90af35144b@sentry.io/1227659', {
release: environment.version
}).install();
export class RavenErrorHandler implements ErrorHandler {
handleError(err: any): void {
Raven.captureException(err);
}
}
@NgModule({
declarations: [
......@@ -76,7 +86,7 @@ import { HttpModule } from '@angular/http';
MatMenuModule,
MatProgressSpinnerModule
],
providers: [YGOProService, StorageService],
providers: [YGOProService, StorageService, { provide: ErrorHandler, useClass: RavenErrorHandler }],
bootstrap: [AppComponent],
entryComponents: [MatchDialogComponent, ResultDialogComponent]
})
......
......@@ -7,7 +7,6 @@
<meta name="theme-color" content="#673ab7">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<meta name="theme-color" content="#1976d2">
</head>
<body>
<app-root>
......
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