Skip to content

Commit

Permalink
Version 4.15.12
Browse files Browse the repository at this point in the history
  • Loading branch information
acaurrinhos committed Feb 9, 2023
1 parent d458d62 commit 95989ac
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 93 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Cyclos 4 UI",
"description": "The new Cyclos 4 frontend",
"icon": "cyclos.png",
"version": "4.15.11",
"version": "4.15.12",
"license": "MIT",
"author": {
"name": "Cyclos development team",
Expand Down
51 changes: 0 additions & 51 deletions src/app/ui/dashboard/dashboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,6 @@ export const PasswordStatusNeedingAttention = [
PasswordStatusEnum.PENDING, PasswordStatusEnum.NEVER_CREATED,
];

// Customizations for stniklaas
export const ConsumersConfig = '-8370399924608672754';
export const MerchantsConfig = '-8370399924608672498';
export const CityConfig = '-8370399924608673010';
export const OrganizationsConfig = '-8370399924608672242';
export const QrCodeToken = 'tk_cccard';
export const ExpiryDatesRecordType = 'rtu_expirylog';
export const HelpOperation = 'co_helpnfe21';
export const MemberRewardOperation = 'co_cashback';
export const MemberRewardNonMemberOperation = 'co_cashbacknotmember';
export const QuickScanOperation = 'co_quickscan';
export const CheckUserBalanceOperation = 'co_check_user_balance';
export const BuyGiftCardOperation = 'co_buy_giftcard';

/**
* Displays the dashboard page (home for logged users)
*/
Expand Down Expand Up @@ -265,42 +251,5 @@ export class DashboardComponent extends BasePageComponent<DataForFrontendHome> i
if (types.has(FrontendQuickAccessTypeEnum.SETTINGS)) {
addAction(SvgIcon.Gear, this.i18n.dashboard.action.settings, new ActiveMenu(Menu.SETTINGS));
}

// Customizations for stniklaas
const config = this.dataForFrontendHolder.auth.configuration.id;
if (config === ConsumersConfig) {
const qrCode = auth.permissions.tokens.my.map(t => t.type).find(t => t.internalName === QrCodeToken);
if (qrCode) {
addAction('qr-code', 'QR-code', new ActiveMenu(Menu.MY_TOKENS, { tokenType: qrCode }));
}
const expiryDates = auth.permissions.records.user.map(rt => rt.type).find(rt => rt.internalName === ExpiryDatesRecordType);
if (expiryDates) {
addAction('calendar-week', 'Vervaldata', new ActiveMenu(Menu.SEARCH_RECORDS_BANKING, { recordType: expiryDates }));
}
}
const memberReward = auth.permissions.operations.user.filter(o => o.run).map(o => o.operation).find(o => o.internalName === MemberRewardOperation)
if (memberReward) {
addAction(memberReward.svgIcon, memberReward.label, new ActiveMenu(Menu.RUN_OPERATION_BANKING, { operation: memberReward }));
}
const memberRewardNonMember = auth.permissions.operations.user.filter(o => o.run).map(o => o.operation).find(o => o.internalName === MemberRewardNonMemberOperation)
if (memberRewardNonMember) {
addAction(memberRewardNonMember.svgIcon, memberRewardNonMember.label, new ActiveMenu(Menu.RUN_OPERATION_BANKING, { operation: memberRewardNonMember }));
}
const quickScan = auth.permissions.operations.user.filter(o => o.run).map(o => o.operation).find(o => o.internalName === QuickScanOperation)
if (quickScan) {
addAction(quickScan.svgIcon, quickScan.label, new ActiveMenu(Menu.RUN_OPERATION_BANKING, { operation: quickScan }));
}
const checkUserBalance = auth.permissions.operations.user.filter(o => o.run).map(o => o.operation).find(o => o.internalName === CheckUserBalanceOperation)
if (checkUserBalance) {
addAction(checkUserBalance.svgIcon, checkUserBalance.label, new ActiveMenu(Menu.RUN_OPERATION_BANKING, { operation: checkUserBalance }));
}
const buyGiftCard = auth.permissions.operations.user.filter(o => o.run).map(o => o.operation).find(o => o.internalName === BuyGiftCardOperation)
if (buyGiftCard) {
addAction(buyGiftCard.svgIcon, buyGiftCard.label, new ActiveMenu(Menu.RUN_OPERATION_MARKETPLACE, { operation: buyGiftCard }));
}
const help = auth.permissions.operations.user.filter(o => o.run).map(o => o.operation).find(o => o.internalName === HelpOperation)
if (help) {
addAction(help.svgIcon, help.label, new ActiveMenu(Menu.RUN_OPERATION_PERSONAL, { operation: help }));
}
}
}
18 changes: 14 additions & 4 deletions src/app/ui/operations/run-operation.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,24 @@
<ng-container *ngIf="isSearch; else regular">
<!-- When a result page, render a filters section -->
<page-content
[mode]="hasSearchFields || data.informationText ? 'filters' : 'emptyFilters'"
[mode]="!runDirectly || primaryActions?.length || hasSearchFields || data.informationText ? 'filters' : 'emptyFilters'"
[heading]="data.name" [mobileHeading]="data.label"
[headingActions]="headingActions$ | async">
<alert type="info" *ngIf="data.informationText" class="mt-3">
<div [innerHTML]="data.informationText | trust"></div>
</alert>
<ng-container *ngTemplateOutlet="theForm"></ng-container>
<actions kind="secondary" *ngIf="!runDirectly" class="mb-3">
<action-button [disabled]="requesting$ | async" (action)="run()"
<div [formGroup]="form" class="filters-form filters-form-separator">
<ng-container *ngTemplateOutlet="theForm"></ng-container>
</div>
<actions kind="secondary" *ngIf="!runDirectly || primaryActions?.length"
class="mb-3 mt-0">
<action-button *ngIf="!runDirectly" [disabled]="requesting$ | async"
(action)="run()"
[label]="data.customSubmitLabel || i18n.general.submit">
</action-button>
<action-button *ngFor="let action of primaryActions"
[label]="action.action.label"
(action)="runPrimaryAction(action)"></action-button>
</actions>
</page-content>

Expand Down Expand Up @@ -83,6 +90,9 @@
<action-button [disabled]="requesting$ | async" (action)="run()"
[label]="data.customSubmitLabel || i18n.general.submit">
</action-button>
<action-button *ngFor="let action of primaryActions"
[label]="action.action.label"
(action)="runPrimaryAction(action)"></action-button>
</actions>
<div class="mt-3 text-right" *ngIf="redirecting$ | async">
{{ i18n.operation.redirecting }}
Expand Down
1 change: 0 additions & 1 deletion src/app/ui/operations/run-operation.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ export class RunOperationComponent
this.headingActions = headingActions;
}


runPrimaryAction(action: RunOperationAction) {
this.runOperationHelper.run(action.action, null, action.parameters);
}
Expand Down
70 changes: 35 additions & 35 deletions src/i18n/i18n.nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,11 @@
"brokering.users": "Gebruikers",
"brokering.register": "Registreer gebruiker",
"marketplace": "Marktplaats",
"marketplace.users": "Gebruikers",
"marketplace.users": "Deelnemers",
"marketplace.register": "Registreer gebruiker",
"marketplace.directory": "Bedrijven",
"marketplace.userSearch": "Gebruikers",
"marketplace.businessDirectory": "Gebruikers",
"marketplace.directory": "Deelnemers",
"marketplace.userSearch": "Deelnemers",
"marketplace.businessDirectory": "Deelnemers",
"marketplace.systemMessages": "Berichten",
"marketplace.advertisements": "Advertenties",
"marketplace.adInterests": "Advertentie interesses",
Expand Down Expand Up @@ -805,7 +805,7 @@
"paymentToSelf": "Betaling tussen eigen rekeningen",
"paymentToUser": "Betaling aan gebruiker",
"paymentConfirmation": "Betalingsbevestiging",
"pendingMyAuthorization": "In afwachting van mijn authorizatie",
"pendingMyAuthorization": "In afwachting van mijn goedkeuring",
"authorizations": "Betalingsautorisaties",
"authorizationHistory": "Autorisatie geschiedenis",
"scheduled": "Geagendeerde betalingen",
Expand Down Expand Up @@ -891,7 +891,7 @@
"authorizePending": "Machtigen in afwachting van betaling",
"authorizePending.done.stillPending": "De betaling moet nog een andere toestemming om te worden verwerkt",
"authorizePending.done": "De betaling is geautoriseerd",
"denyPending": "Ontkennen in afwachting van betaling",
"denyPending": "Weiger de in behandeling zijnde betaling",
"denyPending.done": "De betaling is geweigerd",
"cancelAuthorization": "Annuleren het autorisatieproces",
"cancelAuthorization.done": "De machtiging tot betaling is geannuleerd",
Expand Down Expand Up @@ -924,8 +924,8 @@
"chargebackTransfer": "Deze overdracht terugvordering",
"chargebackTransfer.message": "Dit zal het bedrag van deze overdracht aan de betaler",
"chargebackTransfer.done": "Deze overdracht was terug in rekening gebracht",
"processInstallment": "Proces deze aflevering",
"processInstallment.message": "Ben je zeker dat proces nu de aflevering aantal {number}?",
"processInstallment": "Verwerk deze termijn",
"processInstallment.message": "Wil je termijn {number} nu verwerken?",
"processInstallment.done": "De termijnbetaling is verwerkt",
"settleInstallment": "Termijnbetaling schikken",
"settleInstallment.message": "Weet u zeker dat u de termijnbetaling met nummer {number} wilt schikken?",
Expand Down Expand Up @@ -1154,7 +1154,7 @@
},
"notificationSettings": {
"label": "Meldingen",
"title": "Melding instellingen",
"title": "Meldingsinstellingen",
"done": "De instellingen voor meldingen zijn succesvol opgeslagen"
},
"changePin": {
Expand Down Expand Up @@ -1394,12 +1394,12 @@
"operator.owner": "Operator eigenaar",
"operator.noGroup": "Geen groep (heeft alle rechten)",
"operator.registration.active": "De operator {operator} is geactiveerd.",
"operator.registration.inactive": "De operator {operator} is geregistreerd maar moet nog door de administratie geactiveerd worden.",
"operator.registration.inactive": "De operator {operator} is geregistreerd, maar moet nog door de administratie geactiveerd worden.",
"operator.registration.pending": "De operator {operator} is geregistreerd, maar moet de registratie nog valideren door de e-mail te bevestigen.",
"operator.registration.addAnother": "Nog een operator registreren",
"noImageRequired": "Upload uw profielfoto",
"noImage": "Nog geen profiel afbeelding",
"noImages": "Geen profiel foto ' s",
"noImages": "Geen profielafbeeldingen",
"address.define": "Definiëren adres",
"address.add": "Adres toevoegen",
"address.remove": "Verwijder dit adres",
Expand All @@ -1417,7 +1417,7 @@
"profileSaved": "Het profiel is opgeslagen",
"newEmailConfirmed": "Uw nieuwe e-mailadres is succesvol bevestigd",
"passwordConfirmation": "{type} bevestiging",
"securityQuestion.message": "Mocht u uw wachtwoord vergeet, moet u het correct antwoord op de vraag om het wachtwoord opnieuw instellen.<br>Dit kan worden ingesteld later, maar houd in gedachten dat de terugwinning van het wachtwoord werkt niet zonder.",
"securityQuestion.message": "In het geval dat u uw wachtwoord vergeten bent, is het antwoord op de beveiligingsvraag vereist om uw wachtwoord opnieuw in te stellen.<br>Het is mogelijk om de beveiligingsvraag later in te stellen, maar dan kunt u uw wachtwoord niet opnieuw instellen.",
"securityQuestion.empty": "Laat dit veld leeg",
"captcha": "Verificatie",
"contact": "Contact",
Expand Down Expand Up @@ -1458,7 +1458,7 @@
"sales": "Verkopen",
"viewAccount": "{account} bekijken",
"viewScheduledPayments": "Bekijk geagendeerde betalingen",
"viewAuthorizedPayments": "Bekijk betalingsautoriteiten",
"viewAuthorizedPayments": "Bekijk betalingsautorisaties",
"paymentRequests": "Betalingsverzoeken",
"externalPayments": "Externe betalingen",
"viewAds": "Bekijk advertenties",
Expand All @@ -1468,7 +1468,7 @@
"viewOperatorGroups": "Bekijk operator groepen",
"viewWebshop": "Bekijk webshop",
"adInterests": "Advertentie interesses",
"deliveryMethods": "Leverings methoden",
"deliveryMethods": "Leveringsmethoden",
"webshopSettings": "Webshop instellingen",
"status.user": "Gebruiker-status",
"status.operator": "Operator status",
Expand All @@ -1482,7 +1482,7 @@
"voucherTransactionsRedeems": "Bekijk waardebon inwisselingen",
"voucherRedeem": "Waardebon inwisselen",
"voucherTopUp": "Waardebon opwaarderen",
"notificationSettings": "Melding instellingen",
"notificationSettings": "Meldingsinstellingen",
"products": "Producten",
"accountsBalanceLimits": "Rekeningsaldo limieten",
"accountsPaymentLimits": "Rekening betalingslimieten",
Expand All @@ -1504,11 +1504,11 @@
"skipActivationEmail": "Sla activatie e-mail over",
"password.assign": "Toewijzen wachtwoord",
"password.forceChange": "Gebruiker dwingen om te wijzigen",
"active.public": "U bent met succes ingeschreven, en je account is nu actief.",
"inactive.public": "Uw account is succesvol aangemaakt.<br>u zult Echter geactiveerd moeten worden door de overheid.<br>U ontvangt een bericht wanneer uw account actief is.",
"active.public": "U bent met succes ingeschreven. Uw account is nu actief.",
"inactive.public": "Uw account is succesvol aangemaakt en is in afwachting van activatie door de administratie.<br>U ontvangt bericht als uw account actief is.",
"pending.public": "Uw registratie is ingediend en moet worden geverifieerd.<br>U ontvangt binnenkort een e-mail met instructies over hoe u uw account kunt activeren.<br>Als u de e-mail niet ontvangt, controleer dan uw spam- of junk-folder.",
"active.manager": "Het gebruikersaccount voor {user} is geactiveerd.",
"inactive.manager": "Gebruiker {user} is geregistreerd maar moet nog steeds geactiveerd worden door de administratie.",
"inactive.manager": "Gebruiker {user} is geregistreerd, maar moet nog geactiveerd worden door de administratie.",
"pending.manager": "De gebruiker {user} is geregistreerd, maar moet de registratie nog valideren door de e-mail te bevestigen.",
"principal.single": "U kunt gebruik maken van uw {principal} ({value}) op {channels}",
"principal.multiple.preface": "U kunt inloggen met de volgende gegevens:",
Expand Down Expand Up @@ -1756,7 +1756,7 @@
"changeQuantity": "Hoeveelheid wijzigen",
"chargeType": "Heffing type",
"chooseSeller": "Kies een verkoper uit de onderstaande lijst om door te gaan met het winkelwagen proces",
"chooseDeliveryMethod": "Kies verzendmethode",
"chooseDeliveryMethod": "Kies leveringsmethode",
"chooseDeliveryAddress": "Afleveradres kiezen",
"choosePaymentType": "Kies het type betaling",
"customAddress": "Afleveradres",
Expand All @@ -1772,11 +1772,11 @@
"deliveryAddress": "Afleveradres",
"deliveryInformation": "Leveringsdetails",
"deliveryPrice": "Leveringsprijs",
"deliveryMethod": "Levering methode",
"deliveryMethods": "Leverings methoden",
"deliveryMethod": "Leveringsmethode",
"deliveryMethods": "Leveringsmethoden",
"deliveryPriceToBeConfirmed": "De leveringsprijs is nog niet bekend en het totale bedrag is niet het definitieve bedrag. Nadat de verkoper de leveringsprijs heeft ingesteld, kunt u de bestelling nog steeds afwijzen of bevestigen.",
"deliveryMethodCreated": "De verzendmethode is aangemaakt",
"deliveryMethodSaved": "De verzendmethode is opgeslagen",
"deliveryMethodCreated": "De leveringsmethode is aangemaakt",
"deliveryMethodSaved": "De leveringsmethode is opgeslagen",
"deliveryType": "Levering type",
"deliver": "Leveren",
"pickup": "Afhaal locatie",
Expand All @@ -1798,7 +1798,7 @@
"matchFields": "Zoek een match met de velden",
"name": "Titel",
"negotiated": "Onderhandeld",
"noDeliveryMethodsAvailable": "Geen verzendmethoden voor de geselecteerde valuta",
"noDeliveryMethodsAvailable": "Geen leveringsmethoden voor de geselecteerde valuta",
"owner": "Uitgever",
"price": "Prijs",
"questionAsked": "De vraag is gestuurd naar de verkoper",
Expand Down Expand Up @@ -1845,7 +1845,7 @@
"pendingForAuth": "De advertentie is verwerkt en wacht op verdere autorisatie",
"hide": "Verbergen",
"unhide": "Unhide",
"setDeliveryMethod": "Verzendmethode instellen",
"setDeliveryMethod": "Leveringsmethode instellen",
"lowStockNotification": "Lage voorraad melding",
"stockQuantity": "Hoeveelheid op voorraad",
"unlimited": "Geen limiet",
Expand Down Expand Up @@ -1919,9 +1919,9 @@
"shoppingCart": "Winkelwagen",
"history": "Geschiedenis bestelling",
"deliveryAddress": "Afleveradres",
"deliveryMethod": "Levering methode",
"deliveryMethodNew": "Nieuwe verzendmethode toevoegen",
"deliveryMethods": "Leverings methoden",
"deliveryMethod": "Leveringsmethode",
"deliveryMethodNew": "Nieuwe leveringsmethode toevoegen",
"deliveryMethods": "Leveringsmethoden",
"paymentType": "Type betaling",
"confirmOrder": "Bevestigen bestelling",
"webshopSettings": "Webshop instellingen",
Expand All @@ -1947,9 +1947,9 @@
"shoppingCart": "Winkelwagen",
"history": "Geschiedenis bestelling",
"deliveryAddress": "Afleveradres",
"deliveryMethod": "Levering methode",
"deliveryMethodNew": "Nieuwe verzendmethode toevoegen",
"deliveryMethods": "Leverings methoden",
"deliveryMethod": "Leveringsmethode",
"deliveryMethodNew": "Nieuwe leveringsmethode toevoegen",
"deliveryMethods": "Leveringsmethoden",
"paymentType": "Type betaling",
"confirmOrder": "Bevestigen bestelling",
"webshopSettings": "Webshop instellingen",
Expand Down Expand Up @@ -2021,7 +2021,7 @@
"remove": "Deze melding verwijderen",
"removeAll": "Alles verwijderen",
"markAllRead": "Markeer alle berichten als gelezen",
"settings": "Melding instellingen"
"settings": "Meldingsinstellingen"
},
"admin": {
"adPendingAuthorization": "Advertentie is in behandeling voor autorisatie",
Expand Down Expand Up @@ -2149,8 +2149,8 @@
}
},
"notificationSettings": {
"title": "Melding instellingen",
"mobileTitle": "Melding instellingen",
"title": "Meldingsinstellingen",
"mobileTitle": "Meldingsinstellingen",
"notAvailableSettings": "U heeft geen permissies om instellingen te wijzigen.",
"forwardMessages": "Stuur uw interne berichten door naar uw e-mailadres",
"emailMailings": "E-mail mailings ontvangen",
Expand Down Expand Up @@ -2289,7 +2289,7 @@
"accountBalanceFixed": "Rekeningen met inconsistent cached saldo zijn gecorrigeerd",
"accountFeeChargedNoFailures": "Heffing is beëindigd zonder fouten",
"accountFeeChargedWithFailures": "Rekening heffing is afgewerkt met één of meer fouten",
"applicationRestarted": "Apllicatie opnieuw gestart",
"applicationRestarted": "Applicatie opnieuw gestart",
"custom": "Aangepast",
"customTranslationsInvalidated": "Aangepaste vertalingen ongeldig gemaakt",
"emailSendingFailed": "Een e-mail kon niet worden verzonden",
Expand Down

0 comments on commit 95989ac

Please sign in to comment.