Skip to content

Commit

Permalink
✔ Fix Komentar (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed Jul 8, 2023
1 parent 08fa320 commit 735459c
Show file tree
Hide file tree
Showing 14 changed files with 71 additions and 67 deletions.
1 change: 0 additions & 1 deletion dist/fansubid/browser/219.d349e761baf24a34.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/fansubid/browser/219.fd17c4a00bf1849d.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/fansubid/browser/794.238cae9d59f518fe.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/fansubid/browser/794.501a70f2d9e36ba6.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/fansubid/browser/847.d065f2c6c7858e32.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/fansubid/browser/847.f0c9a75565fb72cb.js

This file was deleted.

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.463af9214fd7531a.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.a332d34075e06bf6.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>
20 changes: 10 additions & 10 deletions dist/fansubid/browser/ngsw.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"configVersion": 1,
"timestamp": 1688830656896,
"timestamp": 1688831772010,
"index": "/index.html",
"assetGroups": [
{
Expand All @@ -13,7 +13,7 @@
"urls": [
"/108.d9b1d0ccca7facc0.js",
"/146.b5de9d3328c10e63.js",
"/219.d349e761baf24a34.js",
"/219.fd17c4a00bf1849d.js",
"/229.f048c8b9a061bc52.js",
"/241.36c9047f79f103f2.js",
"/255.3f08f327f791c94a.js",
Expand All @@ -30,9 +30,9 @@
"/635.93210ae5e9a30a01.js",
"/750.6bb81b252110b0b4.js",
"/772.eebac240ffd089ed.js",
"/794.501a70f2d9e36ba6.js",
"/794.238cae9d59f518fe.js",
"/839.f854a9f9523c5acc.js",
"/847.f0c9a75565fb72cb.js",
"/847.d065f2c6c7858e32.js",
"/915.ca5b75d878de0c36.js",
"/925.26c1471aec2759b1.js",
"/938.f033cd0f3b6b92c3.js",
Expand All @@ -43,7 +43,7 @@
"/main.ccb3e1ec97b6c1ba.js",
"/manifest.webmanifest",
"/polyfills.325a71d3e423341a.js",
"/runtime.463af9214fd7531a.js",
"/runtime.a332d34075e06bf6.js",
"/scripts.03e7a8120a25f41a.js",
"/styles.b697e74e91f54c20.css"
],
Expand Down Expand Up @@ -86,7 +86,7 @@
"hashTable": {
"/108.d9b1d0ccca7facc0.js": "c4361811d33000b84f9e547e55d14bd38f934a4d",
"/146.b5de9d3328c10e63.js": "f478bc37d7a69e458ed48752f2beca80ca602457",
"/219.d349e761baf24a34.js": "18b11933108a0a0982cf90dfdf7163c642b1df3d",
"/219.fd17c4a00bf1849d.js": "0fa0e300584ce9baacc77b8e95a66dc282a87e0d",
"/229.f048c8b9a061bc52.js": "bdf5470fdcecb5f3eddf646fcaffe4bcbfd99c0a",
"/241.36c9047f79f103f2.js": "234e537077d9ba1d8606b4b13f6b13255862cec6",
"/255.3f08f327f791c94a.js": "4b36a33a6d90f98bca8fd1d266dfd86c2b7313fb",
Expand All @@ -103,20 +103,20 @@
"/635.93210ae5e9a30a01.js": "46880c7cf635d4a7c9196d9d21c9463ac556066d",
"/750.6bb81b252110b0b4.js": "7990008056bed5bfc9f3f545d6fabf57c571d600",
"/772.eebac240ffd089ed.js": "af356d0dffacda5b8d767f7bac30d11f7bd07f11",
"/794.501a70f2d9e36ba6.js": "5a40bf3a9c9cc2685a5ae28e997167e0cc9f9b7b",
"/794.238cae9d59f518fe.js": "93970e99fcc9104d7b5304e73331f26166b7a901",
"/839.f854a9f9523c5acc.js": "39f995b5eb8108ae18b098aedfee2609e14bf8f2",
"/847.f0c9a75565fb72cb.js": "821b81116f7e920cc2eab53fa1c4048a1dfd0687",
"/847.d065f2c6c7858e32.js": "4d006db4c7747c225afc6ed9a93c5a44e9823f36",
"/915.ca5b75d878de0c36.js": "84265922a2db5b06e01c5e414df4f4fad79a7fc0",
"/925.26c1471aec2759b1.js": "4628f848f9bfb50fa5672be193edd6a506f922c4",
"/938.f033cd0f3b6b92c3.js": "2b92ae2baadfb83592b1de3d8b54bd12623d335b",
"/960.5e014ce2e6e49bcf.js": "f853b2cc2ee3b2b356b3aee241491de4c14cba22",
"/common.ac0ed540e3ab82a3.js": "27ad6f976af96ecfe2f83db7a8e582f55ed6d0e9",
"/favicon.ico": "071facb8fab2e4b3493dcfbb0b02d7bd21bca97e",
"/index.html": "fbf68ff73b552c10e7f1d1e9288ae4eb13abbd07",
"/index.html": "6fe35c0b28fb6019a697c2c835818e1106f13c8a",
"/main.ccb3e1ec97b6c1ba.js": "aed70640bd2bed4a18a23d57e832faa3b845068a",
"/manifest.webmanifest": "eafb5426cdc9fd714787e5453af315b9972875a3",
"/polyfills.325a71d3e423341a.js": "18f8a8b77e7d11be1385d438c6d218cc68c0edb3",
"/runtime.463af9214fd7531a.js": "3c4a3164a7708cd2b5c85091f6a9c61fae2a296d",
"/runtime.a332d34075e06bf6.js": "8462a8da75a9873b0725c6add9cb7da8cb63a70c",
"/scripts.03e7a8120a25f41a.js": "2f52334f58ca527e57efab741f2fac760e6dd84d",
"/styles.b697e74e91f54c20.css": "972988388aafead5cb07e9a94f2b9c42e53cf768"
},
Expand Down
1 change: 0 additions & 1 deletion dist/fansubid/browser/runtime.463af9214fd7531a.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/fansubid/browser/runtime.a332d34075e06bf6.js

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.

4 changes: 3 additions & 1 deletion src/app/_pages/user/user-detail/user-detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ export class UserDetailComponent implements OnInit, OnDestroy {
'Nama Berkas': r.name
});
}
this.tabData[0].data.row = this.berkasData;
if (this.tabData?.length > 0) {
this.tabData[0].data.row = this.berkasData;
}
this.bs.idle();
},
error: err => {
Expand Down
39 changes: 20 additions & 19 deletions src/app/_shared/components/discussion/comment/comment.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,14 @@ export class CommentComponent implements OnInit, OnDestroy {

ngOnInit(): void {
if (this.gs.isBrowser) {
this.watchUrlRoute();
this.reloadComponent();
this.subsRouter = this.router.events.subscribe({
next: evt => {
if (evt instanceof NavigationEnd) {
this.reloadComponent();
}
}
});
}
}

Expand All @@ -72,24 +79,18 @@ export class CommentComponent implements OnInit, OnDestroy {
this.urlPath = null;
}

watchUrlRoute(): void {
this.subsRouter = this.router.events.subscribe({
next: evt => {
if (evt instanceof NavigationEnd) {
this.count = 0;
this.page = 1;
this.row = 10;
this.pageFinished = false;
this.recursionCount = 0;
this.rootCommentBox = false;
this.commentToSend = null;
this.parent = null;
this.komentar = [];
this.urlPath = this.router.url.split('?')[0];
this.getComment(true);
}
}
});
reloadComponent(): void {
this.count = 0;
this.page = 1;
this.row = 10;
this.pageFinished = false;
this.recursionCount = 0;
this.rootCommentBox = false;
this.commentToSend = null;
this.parent = null;
this.komentar = [];
this.urlPath = this.router.url.split('?')[0];
this.getComment(true);
}

sendComment(k: KomentarModel): void {
Expand Down
63 changes: 32 additions & 31 deletions src/app/_shared/components/report/report.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,42 +171,43 @@ export class ReportComponent implements OnInit, OnDestroy {

ngOnInit(): void {
if (this.gs.isBrowser) {
this.watchUrlRoute();
this.reloadComponent();
this.subsRouter = this.router.events.subscribe({
next: evt => {
if (evt instanceof NavigationEnd) {
this.reloadComponent();
}
}
});
}
}

watchUrlRoute(): void {
this.subsRouter = this.router.events.subscribe({
next: evt => {
if (evt instanceof NavigationEnd) {
this.reportTrackType = this.router.url.split('?')[0].split('/')[1];
this.idSlugUsername = this.router.url.split('?')[0].split('/')[2];
this.ss.socketEmit('track-get', {
trackType: this.reportTrackType,
idSlugUsername: this.idSlugUsername
}, (response: any) => {
this.gs.log(`[SOCKET_TRACK-GET]`, response);
this.barChartUniqueLabels = ['Alamat IP', 'Akun Pengguna', 'Terverifikasi', 'Belum Verifikasi'];
this.barChartUniqueData = [response.unique_ip, response.unique_user, response.verified_user, response.un_verified_user];
this.summary.unique_ip = response.unique_ip;
this.summary.unique_user = response.unique_user;
this.summary.verified_user = response.verified_user;
this.summary.un_verified_user = response.un_verified_user;
this.lineChartVisitorData = [];
this.lineChartVisitorLabels = [];
for (const v of response.visitor) {
this.lineChartVisitorData.push(v.visitor_count || 0);
this.lineChartVisitorLabels.push(
new Date(
new Date(v.visitor_date).getTime() - (new Date(v.visitor_date).getTimezoneOffset() * 60 * 1000)
).toISOString().split('T')[0]
);
}
});
this.getReport();
}
reloadComponent(): void {
this.reportTrackType = this.router.url.split('?')[0].split('/')[1];
this.idSlugUsername = this.router.url.split('?')[0].split('/')[2];
this.ss.socketEmit('track-get', {
trackType: this.reportTrackType,
idSlugUsername: this.idSlugUsername
}, (response: any) => {
this.gs.log(`[SOCKET_TRACK-GET]`, response);
this.barChartUniqueLabels = ['Alamat IP', 'Akun Pengguna', 'Terverifikasi', 'Belum Verifikasi'];
this.barChartUniqueData = [response.unique_ip, response.unique_user, response.verified_user, response.un_verified_user];
this.summary.unique_ip = response.unique_ip;
this.summary.unique_user = response.unique_user;
this.summary.verified_user = response.verified_user;
this.summary.un_verified_user = response.un_verified_user;
this.lineChartVisitorData = [];
this.lineChartVisitorLabels = [];
for (const v of response.visitor) {
this.lineChartVisitorData.push(v.visitor_count || 0);
this.lineChartVisitorLabels.push(
new Date(
new Date(v.visitor_date).getTime() - (new Date(v.visitor_date).getTimezoneOffset() * 60 * 1000)
).toISOString().split('T')[0]
);
}
});
this.getReport();
}

toggleAllStats(): void {
Expand Down

0 comments on commit 735459c

Please sign in to comment.