Skip to content

Commit

Permalink
✔ TODO :: Browser Ext. 🤔
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed Jun 30, 2023
1 parent b06628f commit 37acfb7
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 26 deletions.
1 change: 0 additions & 1 deletion dist/fansubid/browser/635.623a31206a4d36c6.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/fansubid/browser/635.f50d22077aeb7d2e.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.b650cdfaca63476d.js" type="module"></script><script src="polyfills.325a71d3e423341a.js" type="module"></script><script src="scripts.03e7a8120a25f41a.js" defer></script><script src="main.43ee21ac7e59ae63.js" type="module"></script>
<script src="runtime.a6b400569d5856e6.js" type="module"></script><script src="polyfills.325a71d3e423341a.js" type="module"></script><script src="scripts.03e7a8120a25f41a.js" defer></script><script src="main.43ee21ac7e59ae63.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": 1688056972776,
"timestamp": 1688084956160,
"index": "/index.html",
"assetGroups": [
{
Expand All @@ -27,7 +27,7 @@
"/478.53d669cdfdc1677d.js",
"/58.0285dc62b2799b79.js",
"/628.197b0581f6b719c4.js",
"/635.623a31206a4d36c6.js",
"/635.f50d22077aeb7d2e.js",
"/750.0c44f58b7f21cc1e.js",
"/772.eebac240ffd089ed.js",
"/794.2d3bf421d3fbb2bf.js",
Expand All @@ -43,7 +43,7 @@
"/main.43ee21ac7e59ae63.js",
"/manifest.webmanifest",
"/polyfills.325a71d3e423341a.js",
"/runtime.b650cdfaca63476d.js",
"/runtime.a6b400569d5856e6.js",
"/scripts.03e7a8120a25f41a.js",
"/styles.b697e74e91f54c20.css"
],
Expand Down Expand Up @@ -100,7 +100,7 @@
"/478.53d669cdfdc1677d.js": "2af3d2b2011691ddd75e58ba4036fc05cd628e18",
"/58.0285dc62b2799b79.js": "fd3e7f76c1f964d4aace947c2082994cb893bbe0",
"/628.197b0581f6b719c4.js": "ef47e245805b639c34df9dc1d40a0647d0efd1ef",
"/635.623a31206a4d36c6.js": "5407004d2c945d40fc4639a87cf033a8f5543dc6",
"/635.f50d22077aeb7d2e.js": "3980b188a72809c30bacbd0ddd7b70064134cd70",
"/750.0c44f58b7f21cc1e.js": "93bf8b9d38c41efb0a7ee30d7052565d80d966e8",
"/772.eebac240ffd089ed.js": "af356d0dffacda5b8d767f7bac30d11f7bd07f11",
"/794.2d3bf421d3fbb2bf.js": "51175329ef693352fa00fa08c3c7a9a9a621b305",
Expand All @@ -112,11 +112,11 @@
"/960.5e014ce2e6e49bcf.js": "f853b2cc2ee3b2b356b3aee241491de4c14cba22",
"/common.ac0ed540e3ab82a3.js": "27ad6f976af96ecfe2f83db7a8e582f55ed6d0e9",
"/favicon.ico": "071facb8fab2e4b3493dcfbb0b02d7bd21bca97e",
"/index.html": "6016007d9e9e2f663a91d2b9ccddae305de54922",
"/index.html": "abf2eee03e38f6f24aca5ce83bca30c6eead216d",
"/main.43ee21ac7e59ae63.js": "c20074a235142bc578d198c9b7868aadbfcadfba",
"/manifest.webmanifest": "eafb5426cdc9fd714787e5453af315b9972875a3",
"/polyfills.325a71d3e423341a.js": "18f8a8b77e7d11be1385d438c6d218cc68c0edb3",
"/runtime.b650cdfaca63476d.js": "a468a839ce8c9641a6cf6b9a8f50b03b752794da",
"/runtime.a6b400569d5856e6.js": "dcbd5e8bbd5dcbbb0a930a8b6f72d3788f301636",
"/scripts.03e7a8120a25f41a.js": "2f52334f58ca527e57efab741f2fac760e6dd84d",
"/styles.b697e74e91f54c20.css": "972988388aafead5cb07e9a94f2b9c42e53cf768"
},
Expand Down
1 change: 1 addition & 0 deletions dist/fansubid/browser/runtime.a6b400569d5856e6.js

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

1 change: 0 additions & 1 deletion dist/fansubid/browser/runtime.b650cdfaca63476d.js

This file was deleted.

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

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions src/app/_pages/berkas/berkas-detail/berkas-detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { AuthService } from '../../../_shared/services/auth.service';
import { DownloadManagerService } from '../../../_shared/services/download-manager.service';
import { WinboxService } from '../../../_shared/services/winbox.service';
import { StatsServerService } from '../../../_shared/services/stats-server.service';
import { DialogService } from '../../../_shared/services/dialog.service';
// import { DialogService } from '../../../_shared/services/dialog.service';
import { DdlLampiranService } from '../../../_shared/services/ddl-lampiran.service';

@Component({
Expand Down Expand Up @@ -45,7 +45,7 @@ export class BerkasDetailComponent implements OnInit, OnDestroy {
private activatedRoute: ActivatedRoute,
private gs: GlobalService,
private bs: BusyService,
private ds: DialogService,
// private ds: DialogService,
private pi: PageInfoService,
private berkas: BerkasService,
private fs: FabService,
Expand Down Expand Up @@ -176,20 +176,20 @@ export class BerkasDetailComponent implements OnInit, OnDestroy {

async ddl(id): Promise<void> {
if (this.isDiscord) {
if (this.gs.isDesktop) {
this.subsDialog = (await this.ds.openCorsExtension()).afterClosed().subscribe({
next: re => {
this.gs.log('[INFO_DIALOG_CLOSED]', re);
// TODO :: Create My Own Browser Extension For Bypassing CORS (?)
if (re !== undefined) {
this.dm.startDownload(id, (re === true));
}
this.subsDialog.unsubscribe();
}
});
} else {
// if (this.gs.isDesktop) {
// this.subsDialog = (await this.ds.openCorsExtension()).afterClosed().subscribe({
// next: re => {
// this.gs.log('[INFO_DIALOG_CLOSED]', re);
// // TODO :: Create My Own Browser Extension For Bypassing CORS (?)
// if (re !== undefined) {
// this.dm.startDownload(id, (re === true));
// }
// this.subsDialog.unsubscribe();
// }
// });
// } else {
this.dm.startDownload(id, false);
}
// }
} else {
this.dm.startDownload(id);
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/_shared/services/download-manager.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class DownloadManagerService {
next: async res => {
this.gs.log('[DOWNLOAD_LIST_DDL]', res);
const sortedResults = res.results.sort((a, b) => a.chunk_idx - b.chunk_idx);
// TODO :: Create Chrome / Firefox Extension
// TODO :: Create Browser Extension
// r.id -> Send To Server (Download Proxy, Bypass CORS)
// r.url -> Direct Download, Need Bypass CORS Discord
const handlers: Observable<any>[] = [];
Expand Down

0 comments on commit 37acfb7

Please sign in to comment.