Skip to content

Commit

Permalink
Rename erz- prefix to bkd- #657
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Apr 22, 2024
1 parent 4c2a3ce commit f9c37e4
Show file tree
Hide file tree
Showing 166 changed files with 506 additions and 506 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@angular-eslint/component-selector": [
"error",
{
"prefix": "erz",
"prefix": "bkd",
"style": "kebab-case",
"type": "element"
}
Expand All @@ -29,15 +29,15 @@
"error",
{
"type": "attribute",
"prefix": "erz",
"prefix": "bkd",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "erz",
"prefix": "bkd",
"style": "kebab-case"
}
],
Expand Down
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "erz",
"prefix": "bkd",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
Expand Down
4 changes: 2 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import { NAVIGATOR } from "./shared/tokens/dom-apis";
import { decode } from "./shared/utils/decode";

@Component({
selector: "erz-app",
selector: "bkd-app",
template:
'<erz-toast aria-live="polite" aria-atomic="true"></erz-toast><router-outlet></router-outlet>',
'<bkd-toast aria-live="polite" aria-atomic="true"></bkd-toast><router-outlet></router-outlet>',
styleUrls: ["./app.component.scss"],
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Params, RouterLink } from "@angular/router";
import { TranslateModule } from "@ngx-translate/core";

@Component({
selector: "erz-dashboard-action",
selector: "bkd-dashboard-action",
templateUrl: "./dashboard-action.component.html",
styleUrls: ["./dashboard-action.component.scss"],
standalone: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<erz-dashboard-action
<bkd-dashboard-action
*ngIf="dashboardService.hasPresenceControl$ | async"
[label]="'dashboard.actions.presence-control'"
[link]="['/presence-control']"
></erz-dashboard-action>
></bkd-dashboard-action>

<erz-dashboard-action
<bkd-dashboard-action
*ngIf="
(dashboardService.hasLessonTeacherRole$ | async) &&
(dashboardService.editAbsencesParams$ | async)
Expand All @@ -13,42 +13,42 @@
[link]="['/edit-absences']"
[linkParams]="dashboardService.editAbsencesParams$ | async"
[count]="dashboardService.editAbsencesCount$ | async"
></erz-dashboard-action>
></bkd-dashboard-action>

<erz-dashboard-action
<bkd-dashboard-action
*ngIf="dashboardService.hasOpenAbsences$ | async"
[label]="'dashboard.actions.open-absences'"
[link]="['/open-absences']"
[count]="dashboardService.openAbsencesCount$ | async"
></erz-dashboard-action>
></bkd-dashboard-action>

<erz-dashboard-action
<bkd-dashboard-action
*ngIf="dashboardService.hasTeacherRole$ | async"
[label]="'dashboard.actions.tests'"
[link]="['/events']"
>
<erz-dashboard-deadline
<bkd-dashboard-deadline
*ngIf="(dashboardService.coursesToRateCount$ | async) ?? 0 > 0"
[count]="dashboardService.coursesToRateCount$ | async"
></erz-dashboard-deadline>
</erz-dashboard-action>
></bkd-dashboard-deadline>
</bkd-dashboard-action>

<erz-dashboard-action
<bkd-dashboard-action
*ngIf="dashboardService.hasStudentRole$ | async"
[label]="'dashboard.actions.my-absences-report'"
[link]="['/my-absences', 'report']"
>
</erz-dashboard-action>
</bkd-dashboard-action>

<erz-dashboard-action
<bkd-dashboard-action
*ngIf="dashboardService.hasStudentRole$ | async"
[label]="'dashboard.actions.my-absences'"
[link]="['/my-absences']"
[count]="dashboardService.myAbsencesCount$ | async"
></erz-dashboard-action>
></bkd-dashboard-action>

<erz-dashboard-action
<bkd-dashboard-action
*ngIf="dashboardService.hasSubstituteAdministratorRole$ | async"
[label]="'dashboard.actions.substitutions'"
[externalLink]="substitutionsAdminLink"
></erz-dashboard-action>
></bkd-dashboard-action>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { DashboardActionComponent } from "../dashboard-action/dashboard-action.c
import { DashboardDeadlineComponent } from "../dashboard-deadline/dashboard-deadline.component";

@Component({
selector: "erz-dashboard-actions",
selector: "bkd-dashboard-actions",
templateUrl: "./dashboard-actions.component.html",
styleUrls: ["./dashboard-actions.component.scss"],
standalone: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { TranslateModule } from "@ngx-translate/core";
import { AddSpacePipe } from "../../../shared/pipes/add-space.pipe";

@Component({
selector: "erz-dashboard-deadline",
selector: "bkd-dashboard-deadline",
templateUrl: "./dashboard-deadline.component.html",
styleUrls: ["./dashboard-deadline.component.scss"],
standalone: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<erz-typeahead
<bkd-typeahead
[typeaheadService]="studentsRestService"
[placeholder]="'dashboard.search.placeholder'"
(valueChange)="$event && navigateToDossier($event)"
>
</erz-typeahead>
</bkd-typeahead>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { DropDownItem } from "../../../shared/models/drop-down-item.model";
import { StudentsRestService } from "../../../shared/services/students-rest.service";

@Component({
selector: "erz-dashboard-search",
selector: "bkd-dashboard-search",
templateUrl: "./dashboard-search.component.html",
styleUrls: ["./dashboard-search.component.scss"],
standalone: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { DashboardService } from "../../services/dashboard.service";
import { DashboardTimetableEntry } from "../dashboard-timetable/dashboard-timetable.component";

@Component({
selector: "erz-dashboard-timetable-table",
selector: "bkd-dashboard-timetable-table",
templateUrl: "./dashboard-timetable-table.component.html",
styleUrls: ["./dashboard-timetable-table.component.scss"],
standalone: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
</a>
</div>

<ng-container *erzLet="timetableEntries$ | async as entries">
<ng-container *bkdLet="timetableEntries$ | async as entries">
<ng-container *ngIf="(loading$ | async) === false; else loading">
<erz-dashboard-timetable-table
<bkd-dashboard-timetable-table
[entries]="entries"
></erz-dashboard-timetable-table>
></bkd-dashboard-timetable-table>

<a
*ngIf="getSubscribeCalendarUrl() | async as url"
Expand All @@ -47,5 +47,5 @@
</ng-container>

<ng-template #loading>
<erz-spinner></erz-spinner>
<bkd-spinner></bkd-spinner>
</ng-template>
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export type DashboardTimetableEntry = {
const CALENDAR_SUBSCRIBE_KEY = "cal";

@Component({
selector: "erz-dashboard-timetable",
selector: "bkd-dashboard-timetable",
templateUrl: "./dashboard-timetable.component.html",
styleUrls: ["./dashboard-timetable.component.scss"],
standalone: true,
Expand Down
10 changes: 5 additions & 5 deletions src/app/dashboard/components/dashboard/dashboard.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div
*erzLet="{
*bkdLet="{
loading: dashboardService.loading$ | async,
hasSearch: dashboardService.hasSearch$ | async,
hasActions: dashboardService.hasActions$ | async,
Expand All @@ -13,7 +13,7 @@
>
{{ "dashboard.heading" | translate }}
</h1>
<erz-spinner *ngIf="data.loading"></erz-spinner>
<bkd-spinner *ngIf="data.loading"></bkd-spinner>
<p
*ngIf="
!data.loading && !data.hasSearch && !data.hasActions && !data.hasTimetable
Expand All @@ -29,16 +29,16 @@
>
<div *ngIf="data.hasSearch">
<h2>{{ "dashboard.search.title" | translate }}</h2>
<erz-dashboard-search></erz-dashboard-search>
<bkd-dashboard-search></bkd-dashboard-search>
</div>
<div *ngIf="data.hasActions">
<h2>{{ "dashboard.actions.title" | translate }}</h2>
<erz-dashboard-actions></erz-dashboard-actions>
<bkd-dashboard-actions></bkd-dashboard-actions>
</div>
</div>
<div *ngIf="data.hasTimetable" class="timetable-column">
<h2>{{ "dashboard.timetable.title" | translate }}</h2>
<erz-dashboard-timetable></erz-dashboard-timetable>
<bkd-dashboard-timetable></bkd-dashboard-timetable>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { DashboardSearchComponent } from "../dashboard-search/dashboard-search.c
import { DashboardTimetableComponent } from "../dashboard-timetable/dashboard-timetable.component";

@Component({
selector: "erz-dashboard",
selector: "bkd-dashboard",
templateUrl: "./dashboard.component.html",
styleUrls: ["./dashboard.component.scss"],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1>{{ "edit-absences.title" | translate }}</h1>
<div
class="erz-container erz-container-limited"
*erzLet="{
class="bkd-container bkd-container-limited"
*bkdLet="{
confirmationStates: confirmationStates$ | async,
categories: activeCategories$ | async,
formGroup: formGroup$ | async
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import {
} from "../../services/edit-absences-update.service";

@Component({
selector: "erz-edit-absences-edit",
selector: "bkd-edit-absences-edit",
templateUrl: "./edit-absences-edit.component.html",
styleUrls: ["./edit-absences-edit.component.scss"],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,55 +3,55 @@
<label class="form-label">{{
"edit-absences.header.student" | translate
}}</label>
<erz-typeahead
<bkd-typeahead
[typeaheadService]="studentsService"
[(value)]="filter.student"
></erz-typeahead>
></bkd-typeahead>
</div>

<div class="col-md-6 col-lg-3">
<label class="form-label">{{
"edit-absences.header.module-instance" | translate
}}</label>
<erz-typeahead
<bkd-typeahead
[typeaheadService]="educationalEventsService"
[(value)]="filter.educationalEvent"
></erz-typeahead>
></bkd-typeahead>
</div>

<div class="col-md-6 col-lg-3">
<label class="form-label">{{
"edit-absences.header.study-class" | translate
}}</label>
<erz-typeahead
<bkd-typeahead
[typeaheadService]="studyClassService"
[(value)]="filter.studyClass"
[additionalHttpParams]="this.classesHttpFilter"
></erz-typeahead>
></bkd-typeahead>
</div>

<div class="col-md-6 col-lg-3">
<label class="form-label">{{
"edit-absences.header.teacher" | translate
}}</label>
<erz-typeahead
<bkd-typeahead
[typeaheadService]="teacherResourcesService"
[(value)]="filter.teacher"
></erz-typeahead>
></bkd-typeahead>
</div>

<div class="col-md-6 col-lg-3">
<label class="form-label">{{
"edit-absences.header.date-from" | translate
}}</label>
<erz-date-select [(value)]="filter.dateFrom"></erz-date-select>
<bkd-date-select [(value)]="filter.dateFrom"></bkd-date-select>
</div>

<div class="col-md-6 col-lg-3">
<label class="form-label">{{
"edit-absences.header.date-to" | translate
}}</label>
<erz-date-select [(value)]="filter.dateTo"></erz-date-select>
<bkd-date-select [(value)]="filter.dateTo"></bkd-date-select>
</div>
</div>

Expand All @@ -60,30 +60,30 @@
<label class="form-label">{{
"edit-absences.header.confirmation-state" | translate
}}</label>
<erz-multiselect
<bkd-multiselect
[options]="absenceConfirmationStatesGrouped$ | async"
[(values)]="filter.confirmationStates"
></erz-multiselect>
></bkd-multiselect>
</div>

<div class="col-sm-12 col-md">
<label class="form-label">{{
"edit-absences.header.presence-type" | translate
}}</label>
<erz-multiselect
<bkd-multiselect
[options]="presenceTypesGrouped$ | async"
[(values)]="filter.presenceTypes"
></erz-multiselect>
></bkd-multiselect>
</div>

<div class="col-sm-12 col-md">
<label class="form-label">{{
"edit-absences.header.incident" | translate
}}</label>
<erz-multiselect
<bkd-multiselect
[options]="incidentTypesGrouped$ | async"
[(values)]="filter.incidentTypes"
></erz-multiselect>
></bkd-multiselect>
</div>

<div class="col-auto">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {
} from "../../services/edit-absences-state.service";

@Component({
selector: "erz-edit-absences-header",
selector: "bkd-edit-absences-header",
templateUrl: "./edit-absences-header.component.html",
styleUrls: ["./edit-absences-header.component.scss"],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
Loading

0 comments on commit f9c37e4

Please sign in to comment.