Skip to content

Commit

Permalink
✔ Fix Add Fansub ~
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed Jul 8, 2023
1 parent a0acf62 commit b622dd3
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 12 deletions.
1 change: 0 additions & 1 deletion dist/fansubid/browser/478.4295dfb2e326f9eb.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/fansubid/browser/478.aa8e58170848fec4.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/fansubid/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<noscript>🎉 Harap Menyalakan JavaScript Untuk Dapat Mengakses Website Ini ✨</noscript>
</div>
<app-root></app-root>
<script src="runtime.7a69d873f9c1ff43.js" type="module"></script><script src="polyfills.325a71d3e423341a.js" type="module"></script><script src="scripts.03e7a8120a25f41a.js" defer></script><script src="main.ccb3e1ec97b6c1ba.js" type="module"></script>
<script src="runtime.dcac0f56272edde8.js" type="module"></script><script src="polyfills.325a71d3e423341a.js" type="module"></script><script src="scripts.03e7a8120a25f41a.js" defer></script><script src="main.ccb3e1ec97b6c1ba.js" type="module"></script>


</body></html>
12 changes: 6 additions & 6 deletions dist/fansubid/browser/ngsw.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"configVersion": 1,
"timestamp": 1688811566634,
"timestamp": 1688820774636,
"index": "/index.html",
"assetGroups": [
{
Expand All @@ -24,7 +24,7 @@
"/438.a0fe6cf3c8f64454.js",
"/469.c52114591a8f9068.js",
"/471.fd52ebcb6e8f6c81.js",
"/478.4295dfb2e326f9eb.js",
"/478.aa8e58170848fec4.js",
"/58.0285dc62b2799b79.js",
"/628.197b0581f6b719c4.js",
"/635.93210ae5e9a30a01.js",
Expand All @@ -43,7 +43,7 @@
"/main.ccb3e1ec97b6c1ba.js",
"/manifest.webmanifest",
"/polyfills.325a71d3e423341a.js",
"/runtime.7a69d873f9c1ff43.js",
"/runtime.dcac0f56272edde8.js",
"/scripts.03e7a8120a25f41a.js",
"/styles.b697e74e91f54c20.css"
],
Expand Down Expand Up @@ -97,7 +97,7 @@
"/438.a0fe6cf3c8f64454.js": "cf5395324dbc0b0bc27ddb0097c34215aad621c8",
"/469.c52114591a8f9068.js": "72dead673bbd49808a5320d61785bd339b050d60",
"/471.fd52ebcb6e8f6c81.js": "caa14af7a2be9315f883e072f12744f2762fbc4e",
"/478.4295dfb2e326f9eb.js": "313f1849802c0f7461740f2fedb0c5ff9f0238b9",
"/478.aa8e58170848fec4.js": "091fa34e4157ee196dda4b21ac3d65a1ce6c5cc4",
"/58.0285dc62b2799b79.js": "fd3e7f76c1f964d4aace947c2082994cb893bbe0",
"/628.197b0581f6b719c4.js": "ef47e245805b639c34df9dc1d40a0647d0efd1ef",
"/635.93210ae5e9a30a01.js": "46880c7cf635d4a7c9196d9d21c9463ac556066d",
Expand All @@ -112,11 +112,11 @@
"/960.5e014ce2e6e49bcf.js": "f853b2cc2ee3b2b356b3aee241491de4c14cba22",
"/common.ac0ed540e3ab82a3.js": "27ad6f976af96ecfe2f83db7a8e582f55ed6d0e9",
"/favicon.ico": "071facb8fab2e4b3493dcfbb0b02d7bd21bca97e",
"/index.html": "1f5465ce28d123139d3908fec0fb3ec1959c8330",
"/index.html": "ed6569a9f37f0378dc1c05df0195196bb1459683",
"/main.ccb3e1ec97b6c1ba.js": "aed70640bd2bed4a18a23d57e832faa3b845068a",
"/manifest.webmanifest": "eafb5426cdc9fd714787e5453af315b9972875a3",
"/polyfills.325a71d3e423341a.js": "18f8a8b77e7d11be1385d438c6d218cc68c0edb3",
"/runtime.7a69d873f9c1ff43.js": "fb089a94296284365c699094904bf8fc8b0f01f3",
"/runtime.dcac0f56272edde8.js": "739755357aabdfad8d40fa01e02dc920f1c8e936",
"/scripts.03e7a8120a25f41a.js": "2f52334f58ca527e57efab741f2fac760e6dd84d",
"/styles.b697e74e91f54c20.css": "972988388aafead5cb07e9a94f2b9c42e53cf768"
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/fansubid/server/main.js

Large diffs are not rendered by default.

27 changes: 25 additions & 2 deletions src/app/_pages/fansub/fansub-list/fansub-list.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnDestroy, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { ActivatedRoute, Router } from '@angular/router';

import { ChartType, ChartOptions } from 'chart.js';
import { SingleDataSet, Label, monkeyPatchChartJsLegend, monkeyPatchChartJsTooltip } from 'ng2-charts';
Expand Down Expand Up @@ -133,8 +133,10 @@ export class FansubListComponent implements OnInit, OnDestroy {
subsFansub = null;
subsAnime = null;
subsDorama = null;
subsQueryParam = null;

constructor(
private activatedRoute: ActivatedRoute,
private router: Router,
private gs: GlobalService,
private bs: BusyService,
Expand All @@ -154,14 +156,35 @@ export class FansubListComponent implements OnInit, OnDestroy {
ngOnDestroy(): void {
this.subsFansub?.unsubscribe();
this.subsAnime?.unsubscribe();
this.subsQueryParam?.unsubscribe();
}

ngOnInit(): void {
if (this.gs.isBrowser) {
this.getFansubData();
this.watchUrlRoute();
}
}

watchUrlRoute(): void {
this.subsQueryParam = this.activatedRoute.queryParams.subscribe({
next: qp => {
this.bs.busy();
this.allFansubId = [];
this.fansubData = [];
this.fansubActive = 0;
this.fansubInActive = 0;
this.doughnutChartGarapanLabels = [];
this.doughnutChartGarapanData = [];
this.barChartAnimeLabels = [];
this.barChartAnimeData = [];
this.barChartDoramaLabels = [];
this.barChartDoramaData = [];
this.bs.idle();
this.getFansubData();
}
});
}

getFansubData(): void {
this.bs.busy();
this.subsFansub = this.fansub.getAllFansub().subscribe({
Expand Down

0 comments on commit b622dd3

Please sign in to comment.