Skip to content

Commit

Permalink
✔ Fix Somme 💩
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed Aug 11, 2023
1 parent 994a8de commit 3922703
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h2 class="pt-3 border-bottom-dotted">
<div class="row gy-3">
<div class="col g-0"></div>
<div class="col-12 col-md-3">
<button type="button" mat-flat-button color="accent" class="w-100" [disabled]="submitted || fg.invalid">
<button type="submit" mat-flat-button color="accent" class="w-100" [disabled]="submitted || fg.invalid">
Simpan
<mat-icon class="ms-1">save</mat-icon>
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class AdminListInformationDialogComponent implements OnInit, OnDestroy {
confirm: [null, Validators.compose([Validators.required, Validators.pattern(CONSTANTS.regexEnglishKeyboardKeys)])],
cancel: [null, Validators.compose([Validators.pattern(CONSTANTS.regexEnglishKeyboardKeys)])],
close: [null, Validators.compose([Validators.required, Validators.pattern(CONSTANTS.regexEnglishKeyboardKeys)])],
broadcast: [null, Validators.compose([Validators.required, Validators.pattern(CONSTANTS.regexEnglishKeyboardKeys)])]
broadcast: [null, Validators.compose([Validators.pattern(CONSTANTS.regexEnglishKeyboardKeys)])]
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h2 class="pt-3 border-bottom-dotted">
<div class="row gy-3">
<div class="col g-0"></div>
<div class="col-12 col-md-3">
<button type="button" mat-flat-button color="accent" class="w-100" [disabled]="submitted || fg.invalid">
<button type="submit" mat-flat-button color="accent" class="w-100" [disabled]="submitted || fg.invalid">
Simpan
<mat-icon class="ms-1">save</mat-icon>
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ <h2 class="pt-3 border-bottom-dotted">
<div class="row gy-3">
<div class="col g-0"></div>
<div class="col-12 col-md-3">
<button mat-flat-button color="accent" type="submit" class="w-100" [disabled]="submitted || fg.invalid">
<button type="submit" mat-flat-button color="accent" class="w-100" [disabled]="submitted || fg.invalid">
Simpan
<mat-icon class="ms-1">save</mat-icon>
</button>
Expand Down
6 changes: 3 additions & 3 deletions src/app/_pages/fansub/fansub-list/fansub-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export class FansubListComponent implements OnInit, OnDestroy {
this.fansubInActive++;
}
}
this.pieChartStatusLabels = ['Fansub Aktif', 'Fansub Tidak Aktif'];
this.pieChartStatusLabels = ['Aktif', 'Tidak Aktif'];
this.pieChartStatusData = [this.fansubActive, this.fansubInActive];
this.tabData[0].data.row = this.fansubData;
this.getAnimeFansub();
Expand All @@ -241,7 +241,7 @@ export class FansubListComponent implements OnInit, OnDestroy {
for (const f of this.fansubData) {
f.Anime = res.results[f.id];
}
this.doughnutChartGarapanLabels.push('Berkas Anime');
this.doughnutChartGarapanLabels.push('Anime');
this.doughnutChartGarapanData.push(res.count);
const fansubRank = [...this.fansubData].sort((a, b) => b.Anime - a.Anime).slice(0, 10);
for (const f of fansubRank) {
Expand All @@ -265,7 +265,7 @@ export class FansubListComponent implements OnInit, OnDestroy {
for (const f of this.fansubData) {
f.Dorama = res.results[f.id];
}
this.doughnutChartGarapanLabels.push('Berkas Dorama');
this.doughnutChartGarapanLabels.push('Dorama');
this.doughnutChartGarapanData.push(res.count);
const fansubRank = [...this.fansubData].sort((a, b) => b.Dorama - a.Dorama).slice(0, 10);
for (const f of fansubRank) {
Expand Down
2 changes: 1 addition & 1 deletion src/app/_pages/news/news-list/news-list.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="row pb-3 px-0">
<div class="col-lg-8 col-xl-9">
<div class="row">
<app-material-tab (tableRowClicked)="openNews($event)" (paginatorClicked)="onPaginatorClicked($event)"
<app-material-tab (tableRowClicked)="openNews($event)" (paginatorClicked)="onPaginatorClicked($event)" [tablePageSizeOptions]="tablePageSizeOptions"
[tabData]="tabData" [count]="count" [serverSide]="true" (serverSideFilter)="onServerSideFilter($event)" (serverSideOrder)="onServerSideOrder($event)"></app-material-tab>
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion src/app/_pages/news/news-list/news-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export class NewsListComponent implements OnInit, OnDestroy {

count = 0;
page = 1;
row = 10;
row = 25;

tablePageSizeOptions = [25, 50, 75, 100, 125];

q = '';
sort = '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="col-12 align-items-center">
<div class="text-center my-3 mx-auto">
<h4 class="text-start">Updated: {{ lastUpdated | date:'d MMMM y, hh:mm:ss a z' }}</h4>
<div [innerHTML]="htmlContent | safeInnerHtml"></div>
<div class="text-warning" [innerHTML]="htmlContent | safeInnerHtml"></div>
</div>
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions src/app/_pages/privacy-policy/privacy-policy.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ export class PrivacyPolicyComponent implements OnInit, OnDestroy {

htmlContent = `
<div class="text-center p-5">
<img src="${environment.baseUrl}/assets/img/logo/privacy-policy.png" style="max-width: 192px;" />
<img src="${environment.baseUrl}/assets/img/logo/privacy-policy.png" class="bifeldy-vh-25" />
</div>
<div class="text-start pb-5">
<h1>Privacy Policy</h1>
<h2>
Your privacy is critically important to us.
</h2>
<h2 class="text-primary">Privacy Policy</h2>
<h3 class="text-success">
Loading ...
</h3>
</div>
`;

Expand Down
4 changes: 4 additions & 0 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ $dark-theme: mat.define-dark-theme((
animation: animatedshiny 2s infinite;
}

.bifeldy-vh-25 {
width: 25vh !important;
}

/* Custom SCSS Below */

* {
Expand Down

0 comments on commit 3922703

Please sign in to comment.