Skip to content

Commit

Permalink
✔ Fix Info
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed May 27, 2023
1 parent 6beec37 commit 02f28b4
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 51 deletions.

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.75350074d108a79c.js" type="module"></script><script src="polyfills.325a71d3e423341a.js" type="module"></script><script src="scripts.03e7a8120a25f41a.js" defer></script><script src="main.1068fde1bef97403.js" type="module"></script>
<script src="runtime.7f479650ce97871f.js" type="module"></script><script src="polyfills.325a71d3e423341a.js" type="module"></script><script src="scripts.03e7a8120a25f41a.js" defer></script><script src="main.8bf9cb9b87c2f802.js" type="module"></script>


</body></html>
1 change: 0 additions & 1 deletion dist/fansubid/browser/main.1068fde1bef97403.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/fansubid/browser/main.8bf9cb9b87c2f802.js

Large diffs are not rendered by default.

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": 1684933327458,
"timestamp": 1685197347112,
"index": "/index.html",
"assetGroups": [
{
Expand All @@ -21,7 +21,7 @@
"/268.77110f2d6faa4abb.js",
"/297.dfff6394b810fcb0.js",
"/32.a4c958df199ed6d2.js",
"/330.d311de31b7336b96.js",
"/330.e75b2fc1910c2afa.js",
"/345.94c411d7b3c87056.js",
"/438.790baf2036e9e4da.js",
"/469.5a7443725b8d7b20.js",
Expand All @@ -41,10 +41,10 @@
"/common.1ac374edf29bcb18.js",
"/favicon.ico",
"/index.html",
"/main.1068fde1bef97403.js",
"/main.8bf9cb9b87c2f802.js",
"/manifest.webmanifest",
"/polyfills.325a71d3e423341a.js",
"/runtime.75350074d108a79c.js",
"/runtime.7f479650ce97871f.js",
"/scripts.03e7a8120a25f41a.js",
"/styles.b7715bd3777a7953.css"
],
Expand Down Expand Up @@ -95,7 +95,7 @@
"/268.77110f2d6faa4abb.js": "0ae323f7b578dd614fd5f18dfc6efda9c69a1fd1",
"/297.dfff6394b810fcb0.js": "ad029ba49233a551b404434f2b211abbb76abe8d",
"/32.a4c958df199ed6d2.js": "e008aa55b14b52ba3c36d3a0e27a17b9d62b846d",
"/330.d311de31b7336b96.js": "9731daae939634ca178b4510c77f507ed4ef08ca",
"/330.e75b2fc1910c2afa.js": "051ee5b325c3f4ff980df0ff29aee3c396f55b56",
"/345.94c411d7b3c87056.js": "a7520aaa35bbfbd4e4e5f1f245b97ba85283c8ab",
"/438.790baf2036e9e4da.js": "270dcea65545932993313064ca5dec515e6c394e",
"/469.5a7443725b8d7b20.js": "b77892ce13b206aabea0062ae55b88e420120060",
Expand All @@ -114,11 +114,11 @@
"/960.cf76071ca1fb40b4.js": "7b413c0e87b4c1be4b7d993ac0e7404202d47786",
"/common.1ac374edf29bcb18.js": "1972ca7d76be821efc66593d17996f04787660d2",
"/favicon.ico": "071facb8fab2e4b3493dcfbb0b02d7bd21bca97e",
"/index.html": "edaec450645d0e74f378e701c70becbcc84bb22c",
"/main.1068fde1bef97403.js": "636c9c4ca4e336f48007794cc7d29f2376b9815e",
"/index.html": "784ce36e22b596040e536adad5da1a755b4fb84d",
"/main.8bf9cb9b87c2f802.js": "58257668cb1fff90fda7b9b954428df1f114bfaf",
"/manifest.webmanifest": "eafb5426cdc9fd714787e5453af315b9972875a3",
"/polyfills.325a71d3e423341a.js": "18f8a8b77e7d11be1385d438c6d218cc68c0edb3",
"/runtime.75350074d108a79c.js": "06c30aa9fcd1e43743d55aa6c13cf5fd8382692b",
"/runtime.7f479650ce97871f.js": "a0ecd4a948acc104736e72def6ca287887551b21",
"/scripts.03e7a8120a25f41a.js": "2f52334f58ca527e57efab741f2fac760e6dd84d",
"/styles.b7715bd3777a7953.css": "6a4fb31261ad2bda1b8ec794be0ad4898589e453"
},
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.

39 changes: 1 addition & 38 deletions src/app/_pages/berkas/berkas-detail/berkas-detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,44 +170,7 @@ export class BerkasDetailComponent implements OnInit, OnDestroy {

async ddl(id): Promise<void> {
if (this.isDiscord) {
this.subsDialog = (await this.ds.openKonfirmasiDialog(
`Ekstensi CORS Unblock`,
`
<div class="col-12 text-center mb-3">
<img src="/assets/img/ddl-ext.png" class="w-50" />
</div>
<p>
Jika gagal download, silahkan pasang ekstensi CORS Unblock, kemudian nyalakan (logo icon berwarna menyala), dan download ulang berkasnya.
Lalu saat setelah selesai, dapat dimatikan kembali (tidak wajib sih, hanya saja nanti takutnya mengganggu saat browsing).
Keuntungan menggunakan ekstensi yaitu tanpa adanya batasan kecepatan server, yakni koneksi langsung.
</p>
<p>
Chrome ::
<br />
<a href="https://chrome.google.com/webstore/detail/cors-unblock/lfhmikememgdcahcdlaciloancbhjino" target="_blank">
https://chrome.google.com/webstore/detail/cors-unblock/lfhmikememgdcahcdlaciloancbhjino
</a>
</p>
<p>
Edge ::
<br />
<a href="https://microsoftedge.microsoft.com/addons/detail/cors-unblock/hkjklmhkbkdhlgnnfbbcihcajofmjgbh" target="_blank">
https://microsoftedge.microsoft.com/addons/detail/cors-unblock/hkjklmhkbkdhlgnnfbbcihcajofmjgbh
</a>
</p>
<p>
Firefox ::
<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/cors-unblock" target="_blank">
https://addons.mozilla.org/en-US/firefox/addon/cors-unblock
</a>
</p>
<p>
Klik 'Ya', jika sudah ada ekstensi, atau 'Tidak' jika ingin melanjutkan dengan kecepatan terbatas.
</p>
`,
false
)).afterClosed().subscribe({
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 (?)
Expand Down
16 changes: 16 additions & 0 deletions src/app/_shared/services/dialog.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,20 @@ export class DialogService {
return this.openInfoDialog(defaultData);
}

async openCorsExtension(): Promise<MatDialogRef<MaterialDialogInfoComponent, any>> {
const defaultData = {
id: 'CORS-EXTENSION',
data: {
title: 'Ekstensi CORS Unblock',
htmlMessage: 'Gagal Memuat Metode Verifikasi',
confirmText: 'Ya',
cancelText: 'Tidak'
},
disableClose: false,
maxWidth: this.maxWidth
};
await this.fetchInformation(defaultData);
return this.openInfoDialog(defaultData);
}

}

0 comments on commit 02f28b4

Please sign in to comment.