id's toegevoegd pt 2 + fix mattermost pipeline
This commit is contained in:
14
.github/workflows/deploy-docker-to-tst.yml
vendored
14
.github/workflows/deploy-docker-to-tst.yml
vendored
@@ -25,15 +25,21 @@ jobs:
|
|||||||
name: version
|
name: version
|
||||||
path: version.txt
|
path: version.txt
|
||||||
- name: Notify Mattermost via Bot
|
- name: Notify Mattermost via Bot
|
||||||
|
env:
|
||||||
|
VERSION: ${{ VERSION }}
|
||||||
|
REPO: ${{ gitea.repository }}
|
||||||
|
BRANCH: ${{ gitea.ref }}
|
||||||
|
MATTERMOST_BOT_TOKEN: ${{ secrets.MATTERMOST_BOT_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
curl --fail -X POST -H "Authorization: Bearer tspcwdn5rbdk8kkmnex6h1nfha" \
|
curl --fail -X POST -H "Authorization: Bearer $MATTERMOST_BOT_TOKEN" \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d '{
|
-d '{
|
||||||
"channel_id": "9a8obynkd7rctk6qf8rfe6oppy",
|
"channel_id": "9a8obynkd7rctk6qf8rfe6oppy",
|
||||||
"message": "@all \n🚀 *Build gestart!* Een nieuwe build [${{VERSION}}-SNAPSHOT] is begonnen voor de repository *${{ gitea.repository }}* op branch *${{ gitea.ref }}*."
|
"message": "@all 🚀 *Build gestart!* Een nieuwe build ['"$VERSION"'-SNAPSHOT] is begonnen voor de repository *'"$REPO"'* op branch *'"$BRANCH"'*."
|
||||||
}' \
|
}' \
|
||||||
https://mattermost.melvanveen.nl/api/v4/posts
|
https://mattermost.melvanveen.nl/api/v4/posts
|
||||||
|
|
||||||
|
|
||||||
# Stap 3: Inloggen bij Docker Hub
|
# Stap 3: Inloggen bij Docker Hub
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
@@ -94,11 +100,13 @@ jobs:
|
|||||||
docker image prune -f
|
docker image prune -f
|
||||||
|
|
||||||
- name: Notify Mattermost via Bot
|
- name: Notify Mattermost via Bot
|
||||||
|
env:
|
||||||
|
VERSION: ${{ VERSION }}
|
||||||
run: |
|
run: |
|
||||||
curl --fail -X POST -H "Authorization: Bearer tspcwdn5rbdk8kkmnex6h1nfha" \
|
curl --fail -X POST -H "Authorization: Bearer tspcwdn5rbdk8kkmnex6h1nfha" \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d '{
|
-d '{
|
||||||
"channel_id": "9a8obynkd7rctk6qf8rfe6oppy",
|
"channel_id": "9a8obynkd7rctk6qf8rfe6oppy",
|
||||||
"message": "@all \n✅ *Build is geslaagd!* Er staat een nieuwe versie klaar op https://test-paypoint.melvanveen.nl"
|
"message": "@all ✅ *Build is geslaagd!* Versie '"$VERSION"'-SNAPSHOT staat klaar op https://test-paypoint.melvanveen.nl"
|
||||||
}' \
|
}' \
|
||||||
https://mattermost.melvanveen.nl/api/v4/posts
|
https://mattermost.melvanveen.nl/api/v4/posts
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
tuiButton
|
tuiButton
|
||||||
iconStart="@tui.pencil"
|
iconStart="@tui.pencil"
|
||||||
size="s"
|
size="s"
|
||||||
|
id="bewerkAfspraak"
|
||||||
(click)="showEditModal = true"
|
(click)="showEditModal = true"
|
||||||
type="button">
|
type="button">
|
||||||
Bewerken
|
Bewerken
|
||||||
@@ -41,6 +42,7 @@
|
|||||||
tuiButton
|
tuiButton
|
||||||
iconStart="@tui.trash-2"
|
iconStart="@tui.trash-2"
|
||||||
size="s"
|
size="s"
|
||||||
|
id="verwijderAfspraak"
|
||||||
(click)="showDeleteModal = true"
|
(click)="showDeleteModal = true"
|
||||||
type="button">
|
type="button">
|
||||||
Verwijderen
|
Verwijderen
|
||||||
@@ -59,6 +61,7 @@
|
|||||||
appearance="outline"
|
appearance="outline"
|
||||||
tuiButton
|
tuiButton
|
||||||
size="s"
|
size="s"
|
||||||
|
id="bevestigAfspraakVerwijderen"
|
||||||
(click)="deleteAppointment()"
|
(click)="deleteAppointment()"
|
||||||
type="button">
|
type="button">
|
||||||
Ja, afspraak verwijderen
|
Ja, afspraak verwijderen
|
||||||
@@ -67,6 +70,7 @@
|
|||||||
appearance="outline"
|
appearance="outline"
|
||||||
tuiButton
|
tuiButton
|
||||||
size="s"
|
size="s"
|
||||||
|
id="annuleerAfspraakVerwijderen"
|
||||||
(click)="showDeleteModal = false"
|
(click)="showDeleteModal = false"
|
||||||
type="button">
|
type="button">
|
||||||
Nee, ga terug
|
Nee, ga terug
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
tuiTextfieldLegacy
|
tuiTextfieldLegacy
|
||||||
formControlName="title"
|
formControlName="title"
|
||||||
type="text"
|
type="text"
|
||||||
|
id="titelBewerken"
|
||||||
/>
|
/>
|
||||||
</tui-input>
|
</tui-input>
|
||||||
<div
|
<div
|
||||||
@@ -17,6 +18,7 @@
|
|||||||
appearance="outline"
|
appearance="outline"
|
||||||
tuiButton
|
tuiButton
|
||||||
size="s"
|
size="s"
|
||||||
|
[id]="action + '-bewerken'"
|
||||||
(click)="addAction(action)"
|
(click)="addAction(action)"
|
||||||
type="button">{{ action }}
|
type="button">{{ action }}
|
||||||
</button>
|
</button>
|
||||||
@@ -27,6 +29,7 @@
|
|||||||
<tui-combo-box
|
<tui-combo-box
|
||||||
[formControl]="control"
|
[formControl]="control"
|
||||||
[stringify]="stringify"
|
[stringify]="stringify"
|
||||||
|
id="klantBewerken"
|
||||||
tuiTextfieldSize="m">
|
tuiTextfieldSize="m">
|
||||||
Klant
|
Klant
|
||||||
<tui-data-list-wrapper
|
<tui-data-list-wrapper
|
||||||
@@ -38,6 +41,7 @@
|
|||||||
<button
|
<button
|
||||||
size="m"
|
size="m"
|
||||||
tuiButton
|
tuiButton
|
||||||
|
id="nieuweKlantBewerken"
|
||||||
(click)="toggleCustomerModal()"
|
(click)="toggleCustomerModal()"
|
||||||
iconStart="@tui.plus"
|
iconStart="@tui.plus"
|
||||||
type="button">
|
type="button">
|
||||||
@@ -53,6 +57,7 @@
|
|||||||
formControlName="date"
|
formControlName="date"
|
||||||
tuiTextfieldSize="m"
|
tuiTextfieldSize="m"
|
||||||
class="tui-space_vertical-4"
|
class="tui-space_vertical-4"
|
||||||
|
id="datumBewerken"
|
||||||
[tuiTextfieldLabelOutside]="false"
|
[tuiTextfieldLabelOutside]="false"
|
||||||
>
|
>
|
||||||
Datum
|
Datum
|
||||||
@@ -63,6 +68,7 @@
|
|||||||
formControlName="startTime"
|
formControlName="startTime"
|
||||||
tuiTextfieldSize="m"
|
tuiTextfieldSize="m"
|
||||||
class="tui-space_top-2"
|
class="tui-space_top-2"
|
||||||
|
id="vanBewerken"
|
||||||
[tuiTextfieldLabelOutside]="false">
|
[tuiTextfieldLabelOutside]="false">
|
||||||
Van
|
Van
|
||||||
</tui-input-time>
|
</tui-input-time>
|
||||||
@@ -72,6 +78,7 @@
|
|||||||
formControlName="endTime"
|
formControlName="endTime"
|
||||||
tuiTextfieldSize="m"
|
tuiTextfieldSize="m"
|
||||||
class="tui-space_top-2"
|
class="tui-space_top-2"
|
||||||
|
id="totBewerken"
|
||||||
[tuiTextfieldLabelOutside]="false"
|
[tuiTextfieldLabelOutside]="false"
|
||||||
>
|
>
|
||||||
Tot
|
Tot
|
||||||
@@ -79,12 +86,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<tui-textarea formControlName="notes">Notities</tui-textarea>
|
<tui-textarea formControlName="notes" id="notitiesBewerken">Notities</tui-textarea>
|
||||||
</form>
|
</form>
|
||||||
<br>
|
<br>
|
||||||
<button
|
<button
|
||||||
size="m"
|
size="m"
|
||||||
tuiButton
|
tuiButton
|
||||||
|
id="afspraakBewerken"
|
||||||
type="button" (click)="updateAppointment()"
|
type="button" (click)="updateAppointment()"
|
||||||
[tuiAppearanceState]="formIsValid()">
|
[tuiAppearanceState]="formIsValid()">
|
||||||
Afspraak bewerken
|
Afspraak bewerken
|
||||||
@@ -95,54 +103,51 @@
|
|||||||
<tui-input
|
<tui-input
|
||||||
formControlName="firstName"
|
formControlName="firstName"
|
||||||
tuiTextfieldSize="m"
|
tuiTextfieldSize="m"
|
||||||
[tuiTextfieldCleaner]="true"
|
id="voornaam-nieuwe-klant"
|
||||||
>
|
[tuiTextfieldCleaner]="true">
|
||||||
Voornaam
|
Voornaam
|
||||||
<input
|
<input
|
||||||
tuiTextfieldLegacy
|
tuiTextfieldLegacy
|
||||||
type="text"
|
type="text"
|
||||||
formControlName="firstName"
|
formControlName="firstName"/>
|
||||||
/>
|
|
||||||
</tui-input>
|
</tui-input>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<tui-input
|
<tui-input
|
||||||
formControlName="lastName"
|
formControlName="lastName"
|
||||||
tuiTextfieldSize="m"
|
tuiTextfieldSize="m"
|
||||||
[tuiTextfieldCleaner]="true"
|
id="achternaam-nieuwe-klant"
|
||||||
>
|
[tuiTextfieldCleaner]="true">
|
||||||
Achternaam
|
Achternaam
|
||||||
<input
|
<input
|
||||||
tuiTextfieldLegacy
|
tuiTextfieldLegacy
|
||||||
type="text"
|
type="text"
|
||||||
formControlName="lastName"
|
formControlName="lastName"/>
|
||||||
/>
|
|
||||||
</tui-input>
|
</tui-input>
|
||||||
<br>
|
<br>
|
||||||
<tui-input
|
<tui-input
|
||||||
formControlName="email"
|
formControlName="email"
|
||||||
tuiTextfieldSize="m"
|
tuiTextfieldSize="m"
|
||||||
[tuiTextfieldCleaner]="true"
|
id="email-nieuwe-klant"
|
||||||
>
|
[tuiTextfieldCleaner]="true">
|
||||||
Email
|
Email
|
||||||
<input
|
<input
|
||||||
tuiTextfieldLegacy
|
tuiTextfieldLegacy
|
||||||
autocomplete="email"
|
autocomplete="email"
|
||||||
type="email"
|
type="email"
|
||||||
formControlName="email"
|
formControlName="email"/>
|
||||||
/>
|
|
||||||
</tui-input>
|
</tui-input>
|
||||||
<br>
|
<br>
|
||||||
<button
|
<button
|
||||||
appearance="secondary"
|
appearance="secondary"
|
||||||
size="m"
|
size="m"
|
||||||
tuiButton
|
tuiButton
|
||||||
|
id="klant-toevoegen"
|
||||||
|
[loading]=waiting
|
||||||
(click)="saveCustomer()"
|
(click)="saveCustomer()"
|
||||||
type="button">
|
type="button">
|
||||||
<tui-icon
|
<tui-icon
|
||||||
icon="@tui.plus"
|
icon="@tui.plus"
|
||||||
[style.height.rem]="1"
|
[style.height.rem]="1"/>
|
||||||
/>
|
|
||||||
Klant toevoegen
|
Klant toevoegen
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -13,7 +13,12 @@ import {
|
|||||||
import {Appointment} from '../../models/appointment';
|
import {Appointment} from '../../models/appointment';
|
||||||
import {TuiDay, TuiTime} from '@taiga-ui/cdk';
|
import {TuiDay, TuiTime} from '@taiga-ui/cdk';
|
||||||
import {AppointmentService} from '../../services/appointment.service';
|
import {AppointmentService} from '../../services/appointment.service';
|
||||||
import {TuiDataListWrapperComponent, TuiFilterByInputPipe, TuiStringifyContentPipe} from '@taiga-ui/kit';
|
import {
|
||||||
|
TuiButtonLoading,
|
||||||
|
TuiDataListWrapperComponent,
|
||||||
|
TuiFilterByInputPipe,
|
||||||
|
TuiStringifyContentPipe
|
||||||
|
} from '@taiga-ui/kit';
|
||||||
import {Customer} from '../../models/customer';
|
import {Customer} from '../../models/customer';
|
||||||
import {CustomerService} from '../../services/customer.service';
|
import {CustomerService} from '../../services/customer.service';
|
||||||
import {ModalComponent} from '../modal/modal.component';
|
import {ModalComponent} from '../modal/modal.component';
|
||||||
@@ -36,7 +41,8 @@ import {ModalComponent} from '../modal/modal.component';
|
|||||||
TuiStringifyContentPipe,
|
TuiStringifyContentPipe,
|
||||||
TuiFilterByInputPipe,
|
TuiFilterByInputPipe,
|
||||||
ModalComponent,
|
ModalComponent,
|
||||||
TuiIcon
|
TuiIcon,
|
||||||
|
TuiButtonLoading
|
||||||
],
|
],
|
||||||
templateUrl: './edit-item.component.html',
|
templateUrl: './edit-item.component.html',
|
||||||
styleUrl: './edit-item.component.scss'
|
styleUrl: './edit-item.component.scss'
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
size="xs"
|
size="xs"
|
||||||
tuiIconButton
|
tuiIconButton
|
||||||
type="button"
|
type="button"
|
||||||
|
id="sluitModal"
|
||||||
[style.border-radius.%]="100"
|
[style.border-radius.%]="100"
|
||||||
(click)="closeModal()"
|
(click)="closeModal()"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -5,21 +5,24 @@
|
|||||||
iconStart="@tui.chevron-left"
|
iconStart="@tui.chevron-left"
|
||||||
size="m"
|
size="m"
|
||||||
tuiIconButton
|
tuiIconButton
|
||||||
|
id="vorigeDag"
|
||||||
(click)="previousDay()"
|
(click)="previousDay()"
|
||||||
type="button">
|
type="button">
|
||||||
</button>
|
</button>
|
||||||
<h1 class="date" (click)="toggleCalendar()">{{ getDate() }}</h1>
|
<h1 class="date" id="geselecteerdeDatum" (click)="toggleCalendar()">{{ getDate() }}</h1>
|
||||||
<button
|
<button
|
||||||
appearance="primary"
|
appearance="primary"
|
||||||
iconStart="@tui.chevron-right"
|
iconStart="@tui.chevron-right"
|
||||||
size="m"
|
size="m"
|
||||||
tuiIconButton
|
tuiIconButton
|
||||||
|
id="volgendeDag"
|
||||||
(click)="nextDay()"
|
(click)="nextDay()"
|
||||||
type="button">
|
type="button">
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="calendar" *ngIf="showCalendar">
|
<div class="calendar" *ngIf="showCalendar">
|
||||||
<tui-calendar
|
<tui-calendar
|
||||||
|
id="calenderDatum"
|
||||||
[value]="value"
|
[value]="value"
|
||||||
(dayClick)="onDayClick($event)"
|
(dayClick)="onDayClick($event)"
|
||||||
/>
|
/>
|
||||||
@@ -30,6 +33,7 @@
|
|||||||
appearance="secondary"
|
appearance="secondary"
|
||||||
size="m"
|
size="m"
|
||||||
tuiButton
|
tuiButton
|
||||||
|
id="vandaag"
|
||||||
(click)="setToday()"
|
(click)="setToday()"
|
||||||
type="button">
|
type="button">
|
||||||
Vandaag
|
Vandaag
|
||||||
@@ -38,6 +42,7 @@
|
|||||||
appearance="secondary"
|
appearance="secondary"
|
||||||
size="m"
|
size="m"
|
||||||
tuiButton
|
tuiButton
|
||||||
|
id="afspraakMaken"
|
||||||
(click)="isModalOpen = true"
|
(click)="isModalOpen = true"
|
||||||
type="button">
|
type="button">
|
||||||
<tui-icon
|
<tui-icon
|
||||||
@@ -54,6 +59,7 @@
|
|||||||
|
|
||||||
<div *ngFor="let appointment of getAppointmentsForHour(hour)"
|
<div *ngFor="let appointment of getAppointmentsForHour(hour)"
|
||||||
class="appointment"
|
class="appointment"
|
||||||
|
[attr.id]="'afspraak-'+appointment.id"
|
||||||
(click)="selectAppointment(appointment)"
|
(click)="selectAppointment(appointment)"
|
||||||
[ngClass]="{ 'large': (getAppointmentHeight(appointment) > 50) }"
|
[ngClass]="{ 'large': (getAppointmentHeight(appointment) > 50) }"
|
||||||
[ngStyle]="getInlineStyles(appointment)">
|
[ngStyle]="getInlineStyles(appointment)">
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
size="m"
|
size="m"
|
||||||
tuiButton
|
tuiButton
|
||||||
appearance="secondary"
|
appearance="secondary"
|
||||||
|
id="klantToevoegen"
|
||||||
type="button"
|
type="button"
|
||||||
(click)="toggleCustomerModal()"
|
(click)="toggleCustomerModal()"
|
||||||
>
|
>
|
||||||
@@ -26,7 +27,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr *ngFor="let customer of customers" (click)="selectCustomer(customer)">
|
<tr *ngFor="let customer of customers" (click)="selectCustomer(customer)" [id]="customer.id">
|
||||||
<td>{{ customer.firstName }} {{ customer.lastName }}</td>
|
<td>{{ customer.firstName }} {{ customer.lastName }}</td>
|
||||||
<td>{{ customer.email }}</td>
|
<td>{{ customer.email }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -47,6 +48,7 @@
|
|||||||
<input
|
<input
|
||||||
tuiTextfieldLegacy
|
tuiTextfieldLegacy
|
||||||
type="text"
|
type="text"
|
||||||
|
id="input-voornaam"
|
||||||
formControlName="firstName"
|
formControlName="firstName"
|
||||||
/>
|
/>
|
||||||
</tui-input>
|
</tui-input>
|
||||||
@@ -61,6 +63,7 @@
|
|||||||
<input
|
<input
|
||||||
tuiTextfieldLegacy
|
tuiTextfieldLegacy
|
||||||
type="text"
|
type="text"
|
||||||
|
id="input-achternaam"
|
||||||
formControlName="lastName"
|
formControlName="lastName"
|
||||||
/>
|
/>
|
||||||
</tui-input>
|
</tui-input>
|
||||||
@@ -74,6 +77,7 @@
|
|||||||
<input
|
<input
|
||||||
tuiTextfieldLegacy
|
tuiTextfieldLegacy
|
||||||
autocomplete="email"
|
autocomplete="email"
|
||||||
|
id="input-email"
|
||||||
type="email"
|
type="email"
|
||||||
formControlName="email"
|
formControlName="email"
|
||||||
/>
|
/>
|
||||||
@@ -83,6 +87,7 @@
|
|||||||
appearance="secondary"
|
appearance="secondary"
|
||||||
size="m"
|
size="m"
|
||||||
tuiButton
|
tuiButton
|
||||||
|
id="opslaanKlant"
|
||||||
(click)="saveCustomer()"
|
(click)="saveCustomer()"
|
||||||
[disabled]="customerForm.invalid"
|
[disabled]="customerForm.invalid"
|
||||||
type="button">
|
type="button">
|
||||||
|
|||||||
Reference in New Issue
Block a user