Skip to content

Commit

Permalink
✔ Fix Kepencet ~ Wkwk
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed Sep 23, 2023
1 parent 9db51f8 commit c844c49
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 27 deletions.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/fansubid/browser/939.3c954b6d5ad91564.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/fansubid/browser/939.f39fd771f85dfa3b.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.480348d20046a288.js" type="module"></script><script src="polyfills.bbae203fdd01cf64.js" type="module"></script><script src="scripts.25bb5de51afc8a05.js" defer></script><script src="main.1d8777131d96f25d.js" type="module"></script>
<script src="runtime.85348ee98ce6e368.js" type="module"></script><script src="polyfills.bbae203fdd01cf64.js" type="module"></script><script src="scripts.25bb5de51afc8a05.js" defer></script><script src="main.1d8777131d96f25d.js" type="module"></script>


</body></html>
16 changes: 8 additions & 8 deletions dist/fansubid/browser/ngsw.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"configVersion": 1,
"timestamp": 1695476804346,
"timestamp": 1695481426973,
"index": "/index.html",
"assetGroups": [
{
Expand Down Expand Up @@ -28,22 +28,22 @@
"/628.b8bdb826fd1c3eac.js",
"/635.cbe9f6daeeeb706c.js",
"/650.37453a8a19e9c5c9.js",
"/734.c6d19ab68fe20363.js",
"/734.17b3f6bce3f224fd.js",
"/750.ebd8141ed453be68.js",
"/772.ad33717dcabe158b.js",
"/794.ba1bbafc3a11d81d.js",
"/839.32e53804ab79aa26.js",
"/847.bcd84d31b0cbac5a.js",
"/915.963bdeecbe73cd07.js",
"/939.f39fd771f85dfa3b.js",
"/939.3c954b6d5ad91564.js",
"/960.1e1fe3434266e9a4.js",
"/common.9328880044a7fd63.js",
"/favicon.ico",
"/index.html",
"/main.1d8777131d96f25d.js",
"/manifest.webmanifest",
"/polyfills.bbae203fdd01cf64.js",
"/runtime.480348d20046a288.js",
"/runtime.85348ee98ce6e368.js",
"/scripts.25bb5de51afc8a05.js",
"/styles.cc219f76eabe7138.css"
],
Expand Down Expand Up @@ -101,22 +101,22 @@
"/628.b8bdb826fd1c3eac.js": "e88618cc4f1fa66b5ca8a58bfc24bef828469321",
"/635.cbe9f6daeeeb706c.js": "a4b5c79deca629ce4419bafa97abb552eac04cd7",
"/650.37453a8a19e9c5c9.js": "b9fcdbb5c878b941427a25a4cf9c883324e31dce",
"/734.c6d19ab68fe20363.js": "940f58ade3c2ef29356d65fed32bebae667b1471",
"/734.17b3f6bce3f224fd.js": "0345764bab82e8bbfa7876bb341f7d256071250b",
"/750.ebd8141ed453be68.js": "4d545961aeeba3910e1052c27f0b734c61a4bcba",
"/772.ad33717dcabe158b.js": "f49a7512f871ddcb3f07d2e1d54d635baa8608f9",
"/794.ba1bbafc3a11d81d.js": "92112dce145df531385245187844cfbf43b19a32",
"/839.32e53804ab79aa26.js": "41cca1ad00ed3c5d08b1eea69a521939ccca1efe",
"/847.bcd84d31b0cbac5a.js": "14ecd3b22672411212f5b77b1b05f6dccad8ec4a",
"/915.963bdeecbe73cd07.js": "054a839f84adaa4ca6c97067da4ddfc136e78dec",
"/939.f39fd771f85dfa3b.js": "2463629eff2a83d62d16622370d85a9880f089cd",
"/939.3c954b6d5ad91564.js": "dd9bd909c1fc0b04892faa258243acdd23f07fa2",
"/960.1e1fe3434266e9a4.js": "c649bd883373fc66f7e2781d27054b5da57413a3",
"/common.9328880044a7fd63.js": "597ee1dc67b43fb372bc1221d81ee45b6b70e9c4",
"/favicon.ico": "071facb8fab2e4b3493dcfbb0b02d7bd21bca97e",
"/index.html": "8f3bddde791b509b5faa3233f5989a451ac15977",
"/index.html": "8975412ac19ca817d99e7bc7f33ac0d6f6d4c576",
"/main.1d8777131d96f25d.js": "3b995cc2c96fd84fe3173678f2ca9c86b72d3d9b",
"/manifest.webmanifest": "eafb5426cdc9fd714787e5453af315b9972875a3",
"/polyfills.bbae203fdd01cf64.js": "a59f17cf29cb649f708d7ec7aa6b7247712859e1",
"/runtime.480348d20046a288.js": "59134fcacf9b1705b26e15a539104a1b31e53a97",
"/runtime.85348ee98ce6e368.js": "31b67843153f356709130e79b11c8245512e94f2",
"/scripts.25bb5de51afc8a05.js": "61d71afde3d3c58daff9d6801601386596732294",
"/styles.cc219f76eabe7138.css": "4c5a85052f050c876427947a8d75459753879403"
},
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.

44 changes: 31 additions & 13 deletions src/app/_pages/admin/admin-menu/admin-menu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { StatsServerService } from '../../../_shared/services/stats-server.servi
import { AuthService } from '../../../_shared/services/auth.service';
import { TaskCronJobService } from '../../../_shared/services/task-cron-job.service';
import { BusyService } from '../../../_shared/services/busy.service';
import { DialogService } from '../../../_shared/services/dialog.service';

@Component({
selector: 'app-admin-menu',
Expand All @@ -20,14 +21,16 @@ export class AdminMenuComponent implements OnInit, OnDestroy {

subsCronJobsGet = null;
subsCronJobsPut = null;
subsDialog = null;

constructor(
private bs: BusyService,
private gs: GlobalService,
private as: AuthService,
private adm: AdminService,
private ss: StatsServerService,
private tcj: TaskCronJobService
private tcj: TaskCronJobService,
private ds: DialogService
) {
this.gs.bannerImg = null;
this.gs.sizeContain = false;
Expand Down Expand Up @@ -59,6 +62,7 @@ export class AdminMenuComponent implements OnInit, OnDestroy {
ngOnDestroy(): void {
this.subsCronJobsGet?.unsubscribe();
this.subsCronJobsPut?.unsubscribe();
this.subsDialog?.unsubscribe();
}

toggleSetting(key: string, checked: boolean): void {
Expand All @@ -80,18 +84,32 @@ export class AdminMenuComponent implements OnInit, OnDestroy {
});
}

toggleCronJob(t: TaskCronJobModel): void {
this.bs.busy();
this.subsCronJobsPut = this.tcj.toggleOnOffTaskCronJob(t.id).subscribe({
next: res => {
this.gs.log('[TASK_CRON_JOB_TOGGLE_SUCCESS]', res);
this.bs.idle();
this.getAllTaskCronJobs();
},
error: err => {
this.gs.log('[TASK_CRON_JOB_TOGGLE_ERROR]', err, 'error');
this.bs.idle();
this.getAllTaskCronJobs();
async toggleCronJob(t: TaskCronJobModel): Promise<void> {
const statusRun = t.running ? 'Matikan' : 'Nyalakan';
this.subsDialog = (await this.ds.openKonfirmasiDialog(
`${statusRun} ${t.id}`,
`Apakah Yakin Ingin Memaksa ${statusRun} Jadwal Ini ?`
)).afterClosed().subscribe({
next: re => {
this.gs.log('[INFO_DIALOG_CLOSED]', re);
if (re === true) {
this.bs.busy();
this.subsCronJobsPut = this.tcj.toggleOnOffTaskCronJob(t.id).subscribe({
next: res => {
this.gs.log('[TASK_CRON_JOB_TOGGLE_SUCCESS]', res);
this.bs.idle();
this.getAllTaskCronJobs();
},
error: err => {
this.gs.log('[TASK_CRON_JOB_TOGGLE_ERROR]', err, 'error');
this.bs.idle();
this.getAllTaskCronJobs();
}
});
} else if (re === false) {
this.getAllTaskCronJobs();
}
this.subsDialog.unsubscribe();
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ <h2 class="pt-3 border-bottom-dotted">
<small class="text-success">
* <i>Resume-able Upload</i> (Tidak wajib, jika sudah ada URL eksternal, misal alamat webmu gdrive mediafire mega dan lain sebagainya).
Mohon ditunggu dan jangan di tinggal, berkas lampiran akan <i>expired</i> apabila tidak disimpan dalam {{ CONSTANTS.timeoutDeleteTempAttachmentTime / 60 / 1000 }} menit setelah berhasil <i>upload</i>.
Setelah berhasil membuat berkas, lampiran tidak akan bisa di modifikasi.
Lalu kemudian saat berkas berhasil dibuat, lampiran tidak akan bisa di modifikasi.
</small>
</div>
<mat-form-field appearance="outline" class="px-3 pt-3 col" [color]="'accent'">
Expand Down

0 comments on commit c844c49

Please sign in to comment.