Skip to content

Commit

Permalink
βœ” πŸ€” πŸ˜’
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed Aug 13, 2023
1 parent 6d138ee commit ba91ce7
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 25 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.051e60203fe11c95.js" type="module"></script><script src="polyfills.325a71d3e423341a.js" type="module"></script><script src="scripts.03e7a8120a25f41a.js" defer></script><script src="main.b2d4aa46a02fa196.js" type="module"></script>
<script src="runtime.3bde4ed73ae5d072.js" type="module"></script><script src="polyfills.325a71d3e423341a.js" type="module"></script><script src="scripts.03e7a8120a25f41a.js" defer></script><script src="main.752601e9332f73ef.js" type="module"></script>


</body></html>

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": 1691914815354,
"timestamp": 1691917704687,
"index": "/index.html",
"assetGroups": [
{
Expand All @@ -26,7 +26,7 @@
"/534.4f291b2d87610c5e.js",
"/58.f6ab3ad6e852f33b.js",
"/628.db8c265d1ddcb909.js",
"/635.7dd0daa2e6891a16.js",
"/635.18f003abb5156e8f.js",
"/750.1988b582293d0398.js",
"/772.cd9921245860789e.js",
"/794.2b80ca08ebeb3d06.js",
Expand All @@ -40,10 +40,10 @@
"/common.e729f65579fa531e.js",
"/favicon.ico",
"/index.html",
"/main.b2d4aa46a02fa196.js",
"/main.752601e9332f73ef.js",
"/manifest.webmanifest",
"/polyfills.325a71d3e423341a.js",
"/runtime.051e60203fe11c95.js",
"/runtime.3bde4ed73ae5d072.js",
"/scripts.03e7a8120a25f41a.js",
"/styles.804019c2561a4ab0.css"
],
Expand Down Expand Up @@ -99,7 +99,7 @@
"/534.4f291b2d87610c5e.js": "8b4a0d376dc34e8d9d6dca649a88fc654b5397d7",
"/58.f6ab3ad6e852f33b.js": "d9d6c77b350e077f5a224ced8ea90c364ba3210c",
"/628.db8c265d1ddcb909.js": "869b1d9fa459fd62787aba29b761f50e85bad9da",
"/635.7dd0daa2e6891a16.js": "4692d90214123552c3232a22b3b8650e8d1d91d1",
"/635.18f003abb5156e8f.js": "9582bc03d57989662ed6943effdc03bc805c4b9c",
"/750.1988b582293d0398.js": "3985b65dd717ac3e35f2aa5e812eb09fb3e0ccc7",
"/772.cd9921245860789e.js": "5319ee29b1caac2741a61f1f03a99404b4fac853",
"/794.2b80ca08ebeb3d06.js": "2202792acf96b1f398a40f508cd6d6eea6e2d697",
Expand All @@ -112,11 +112,11 @@
"/960.1ff238710fc9f28e.js": "2a2d7bfcfc558cea67c579bd2da2c641fc84001b",
"/common.e729f65579fa531e.js": "38978777ce1d3871766d83d6b0637bea90e52acd",
"/favicon.ico": "071facb8fab2e4b3493dcfbb0b02d7bd21bca97e",
"/index.html": "3ef9610b6a1def533f176d50d1c255f1396dee9f",
"/main.b2d4aa46a02fa196.js": "a98f853986dca77172fe598b65827577e53bfe69",
"/index.html": "923744d335a37076270526adbb6facd097cbd9c4",
"/main.752601e9332f73ef.js": "a26643ce8ae2a18bcbcd8fe1ce84f6f7d950d3e1",
"/manifest.webmanifest": "eafb5426cdc9fd714787e5453af315b9972875a3",
"/polyfills.325a71d3e423341a.js": "18f8a8b77e7d11be1385d438c6d218cc68c0edb3",
"/runtime.051e60203fe11c95.js": "dbdd29103f467e8cc8ac9b0ff965251d95695341",
"/runtime.3bde4ed73ae5d072.js": "aa2a7c76647696c270a98bc9f6271513f15c05cd",
"/scripts.03e7a8120a25f41a.js": "2f52334f58ca527e57efab741f2fac760e6dd84d",
"/styles.804019c2561a4ab0.css": "c138e7f0217a35038bfc26a6baede20b56473994"
},
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.

13 changes: 6 additions & 7 deletions src/api/controllers/attachment.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,20 +331,19 @@ export class AttachmentController {
const ddlFiles = await this.ddlFileRepo.find({
where: [
{
msg_parent: Equal(attachment.discord)
msg_parent: Equal(resAttachmentSave.discord)
},
{
msg_id: Equal(attachment.discord),
msg_id: Equal(resAttachmentSave.discord),
msg_parent: IsNull()
}
],
order: {
chunk_idx: 'ASC'
}
]
});
const msg_ids = [];
for (const df of ddlFiles) {
msg_ids.push(df.msg_id);
if (!msg_ids.includes(df.msg_id)) {
msg_ids.push(df.msg_id);
}
}
await this.ddlFileRepo.remove(ddlFiles);
this.ds.deleteAttachment(msg_ids);
Expand Down
10 changes: 5 additions & 5 deletions src/app/_pages/berkas/berkas-detail/berkas-detail.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ <h2 class="border-bottom-dotted">
<div class="col-12 text-center" *ngIf="isHaveDDL">
<div class="px-3">
<button type="button" class="m-1 w-100" mat-stroked-button color="accent" (click)="ddl(berkasData.attachment_.id)"
matTooltip="{{ lampiran.name }} :: {{ lampiran.download_count }}x" *ngIf="!lampiran.data && !lampiran.isDownloading && !lampiran.isCompleted">
matTooltip="{{ lampiran.name }}.{{ lampiran.ext }} :: {{ lampiran.download_count }}x Unduhan" *ngIf="!lampiran.data && !lampiran.isDownloading && !lampiran.isCompleted">
<mat-icon class="me-1">movie</mat-icon>
{{ lampiran.name | slice:0:5 }}.....{{ lampiran.ext }} ({{ lampiran.size | bytes }})
</button>
<button type="button" class="m-1 w-100" mat-stroked-button color="accent" (click)="cancel_dl(berkasData.attachment_.id)"
matTooltip="{{ lampiran.name }} :: {{ lampiran.download_count }}x" *ngIf="!lampiran.data && lampiran.isDownloading">
matTooltip="{{ lampiran.name }}.{{ lampiran.ext }} :: {{ lampiran.download_count }}x Unduhan" *ngIf="!lampiran.data && lampiran.isDownloading">
<mat-icon class="me-1">close</mat-icon>
Batal Unduh
</button>
<button type="button" class="m-1 w-100" mat-stroked-button color="accent" (click)="saveFileAs(berkasData.attachment_.id)" *ngIf="lampiran.data"
matTooltip="{{ lampiran.name }} :: {{ lampiran.download_count }}x">
matTooltip="{{ lampiran.name }}.{{ lampiran.ext }} :: {{ lampiran.download_count }}x Unduhan">
<mat-icon class="me-1">save</mat-icon>
{{ lampiran.name | slice:0:5 }}.....{{ lampiran.ext }}
</button>
Expand All @@ -99,12 +99,12 @@ <h2 class="border-bottom-dotted">
</div>
</div>
<button type="button" class="m-1 w-100" mat-stroked-button color="accent" *ngFor="let s of berkasData.attachment_.subtitles_"
(click)="standardDdlSubsFont(s.id)" matTooltip="{{ s.name }}">
(click)="standardDdlSubsFont(s.id)" matTooltip="{{ s.name }}.{{ s.name }} :: {{ s.download_count }}x Unduhan">
<mat-icon class="me-1">notes</mat-icon>
{{ s.name | slice:0:5 }}.....{{ s.ext }} ({{ s.size | bytes }})
</button>
<button type="button" class="m-1 w-100" mat-stroked-button color="accent" *ngFor="let f of berkasData.attachment_.fonts_"
(click)="standardDdlSubsFont(f.id)" matTooltip="{{ f.name }}">
(click)="standardDdlSubsFont(f.id)" matTooltip="{{ f.name }}.{{ f.name }} :: {{ f.download_count }}x Unduhan">
<mat-icon class="me-1">font_download</mat-icon>
{{ f.name | slice:0:5 }}.....{{ f.ext }} ({{ f.size | bytes }})
</button>
Expand Down

0 comments on commit ba91ce7

Please sign in to comment.