@revenexx/cover 0.10.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/api/account.ts +4 -0
- package/app/assets/css/cover.css +9 -0
- package/app/components/RevenexxForm.vue +4 -0
- package/app/components/account/AccountSidebar.vue +2 -5
- package/app/components/account/carts/AccountCartsTable.vue +4 -2
- package/app/components/account/dashboard/AccountDashboardKpis.vue +74 -34
- package/app/components/account/dashboard/AccountDashboardQuickActions.vue +24 -6
- package/app/components/account/organization/AccountOrganization.vue +3 -1
- package/app/components/account/team/AccountTeam.vue +32 -7
- package/app/components/auth/AuthForgotPasswordPanel.vue +9 -4
- package/app/components/auth/AuthLoginPanel.vue +75 -18
- package/app/components/auth/AuthRegisterPanel.vue +1 -1
- package/app/components/cart/actions/CartSaveToListModal.vue +5 -0
- package/app/components/cart/item/CartItem.vue +17 -75
- package/app/components/cart/position/CartPosition.vue +17 -30
- package/app/components/cart/quote/CartQuoteRequestModal.vue +9 -1
- package/app/components/cart/switcher/CartSwitcher.vue +5 -2
- package/app/components/category/view/GridView.vue +10 -1
- package/app/components/category/view/ListView.vue +10 -1
- package/app/components/checkout/confirmation/CheckoutConfirmationActions.vue +2 -0
- package/app/components/checkout/onepage/CheckoutAddressSection.vue +4 -4
- package/app/components/checkout/onepage/CheckoutDeliverySection.vue +18 -2
- package/app/components/checkout/onepage/CheckoutGate.vue +2 -0
- package/app/components/checkout/onepage/CheckoutOnePageView.vue +1 -1
- package/app/components/checkout/onepage/CheckoutPaymentSection.vue +10 -0
- package/app/components/checkout/onepage/CheckoutSummarySection.vue +7 -1
- package/app/components/layout/Region.vue +13 -0
- package/app/components/layout/footer/Footer.vue +8 -0
- package/app/components/layout/header/AppBar.vue +4 -3
- package/app/components/layout/header/MainNav.vue +3 -3
- package/app/components/listing/ListingResults.vue +3 -1
- package/app/components/product/card/Compact.vue +10 -1
- package/app/components/product/detail/ProductDetailAddToCart.vue +51 -18
- package/app/components/product/detail/ProductDetailIdentity.vue +1 -1
- package/app/components/product/detail/ProductDetailPriceRequest.vue +1 -1
- package/app/components/product/detail/ProductDetailSaveToList.vue +10 -0
- package/app/composables/useAccountDashboard.ts +0 -10
- package/app/composables/useAccountNavigation.ts +35 -0
- package/app/composables/useAuthStore.ts +6 -2
- package/app/composables/useCategoryListing.ts +6 -0
- package/app/composables/useCheckoutOnePage.ts +21 -2
- package/app/composables/useMasterDataEditable.ts +23 -0
- package/app/composables/useProductCard.ts +29 -2
- package/app/composables/useProductListing.ts +79 -0
- package/app/composables/useQuantityStepper.ts +90 -0
- package/app/composables/useQuickActions.ts +35 -0
- package/app/composables/useRoleGrants.ts +32 -0
- package/app/composables/useSearchListing.ts +4 -0
- package/app/composables/useThemeEvents.ts +144 -0
- package/app/config/accountDashboard.ts +26 -0
- package/app/config/quickActions.ts +40 -5
- package/app/interfaces/account/dashboard.ts +2 -0
- package/app/interfaces/auth.ts +25 -4
- package/app/interfaces/quantity-stepper.ts +17 -0
- package/app/interfaces/shopSettings.ts +84 -0
- package/app/layouts/default.vue +19 -10
- package/app/layouts/focus.vue +28 -7
- package/app/middleware/checkout-guard.ts +7 -1
- package/app/pages/punchout/transfer.vue +22 -0
- package/app/plugins/theme-events.client.ts +132 -0
- package/app/shared/themeEvents.ts +445 -0
- package/i18n/locales/de/account.json +7 -0
- package/i18n/locales/de/auth.json +42 -2
- package/i18n/locales/de/cart.json +4 -2
- package/i18n/locales/de/checkout.json +2 -1
- package/i18n/locales/de/common.json +2 -0
- package/i18n/locales/de/cover.json +44 -0
- package/i18n/locales/de/editor.json +47 -1
- package/i18n/locales/en/account.json +7 -0
- package/i18n/locales/en/auth.json +42 -2
- package/i18n/locales/en/cart.json +4 -2
- package/i18n/locales/en/checkout.json +2 -1
- package/i18n/locales/en/common.json +2 -0
- package/i18n/locales/en/cover.json +44 -0
- package/i18n/locales/en/editor.json +47 -1
- package/nuxt.config.ts +15 -1
- package/package.json +5 -2
- package/server/api/account/orders/[id]/cancel.post.ts +1 -1
- package/server/api/account/orders/[id]/messages.get.ts +1 -1
- package/server/api/account/orders/[id]/messages.post.ts +1 -1
- package/server/api/account/orders/[id]/return.post.ts +1 -0
- package/server/api/account/orders/[id].get.ts +1 -1
- package/server/api/account/pending-approvals/index.get.ts +1 -0
- package/server/api/account/profile.get.ts +3 -1
- package/server/api/auth/login.post.ts +22 -3
- package/server/api/auth/magic-link.put.ts +6 -1
- package/server/api/auth/otp.put.ts +6 -1
- package/server/api/carts/[id]/activate.post.ts +8 -0
- package/server/api/carts/[id]/index.delete.ts +3 -0
- package/server/api/carts/[id]/index.put.ts +1 -0
- package/server/api/carts/[id]/items.post.ts +1 -0
- package/server/api/carts/index.post.ts +4 -0
- package/server/api/orders/index.post.ts +33 -0
- package/server/api/quick-actions.get.ts +6 -38
- package/server/interfaces/auth.ts +10 -1
- package/server/middleware/buyer-principal.ts +18 -0
- package/server/routes/punchout/start.get.ts +6 -15
- package/server/services/ApiAddressBookService.ts +43 -1
- package/server/services/ApiAuthService.ts +119 -22
- package/server/services/ApiCartService.ts +67 -32
- package/server/services/ApiOrganizationService.ts +7 -2
- package/server/services/ApiTeamService.ts +93 -21
- package/server/services/MockAuthService.ts +21 -2
- package/server/utils/buyerIdentity.ts +168 -0
- package/server/utils/cartOwnership.ts +67 -0
- package/server/utils/liveOrderLists.ts +50 -23
- package/server/utils/liveOrders.ts +39 -24
- package/server/utils/livePrices.ts +7 -15
- package/server/utils/masterData.ts +29 -0
- package/server/utils/passwordlessSignIn.ts +13 -4
- package/server/utils/pendingApprovals.ts +29 -7
- package/server/utils/procurementCheckout.ts +2 -0
- package/server/utils/quickActionCatalogue.ts +53 -0
- package/server/utils/revenexxSdk.ts +116 -2
- package/server/utils/shopSettings.ts +5 -0
|
@@ -173,7 +173,8 @@
|
|
|
173
173
|
"guestTitle": "Als Gast bestellen",
|
|
174
174
|
"guestDescription": "Bestellen Sie ohne Konto. Ihre Angaben werden nur für diese Bestellung verwendet.",
|
|
175
175
|
"guestBusiness": "Gastbestellung Geschäftskunde",
|
|
176
|
-
"guestPrivate": "Gastbestellung Privatkunde"
|
|
176
|
+
"guestPrivate": "Gastbestellung Privatkunde",
|
|
177
|
+
"backToSelection": "Zurück zur Auswahl"
|
|
177
178
|
},
|
|
178
179
|
"guest": {
|
|
179
180
|
"email": "E-Mail-Adresse",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"knowledge": "Wissen",
|
|
14
14
|
"mainNavigation": "Hauptnavigation",
|
|
15
15
|
"backToShop": "Zurück zum Shop",
|
|
16
|
+
"backToCart": "Zurück zum Warenkorb",
|
|
16
17
|
"catalog": {
|
|
17
18
|
"loading": "Warengruppen werden geladen…",
|
|
18
19
|
"showAllGroups": "alle {count} Gruppen",
|
|
@@ -39,6 +40,7 @@
|
|
|
39
40
|
"footer": {
|
|
40
41
|
"tagline": "B2B-Lösungen für moderne Unternehmen.",
|
|
41
42
|
"copyright": "© {year} Cover Corp — Alle Rechte vorbehalten.",
|
|
43
|
+
"cookieSettings": "Cookie-Einstellungen",
|
|
42
44
|
"columns": {
|
|
43
45
|
"products": {
|
|
44
46
|
"heading": "Produkte",
|
|
@@ -29,5 +29,49 @@
|
|
|
29
29
|
},
|
|
30
30
|
"actions": {
|
|
31
31
|
"tryAgain": "Erneut versuchen"
|
|
32
|
+
},
|
|
33
|
+
"productMenu": {
|
|
34
|
+
"homeLabel": "Cover-Startseite",
|
|
35
|
+
"triggerLabel": "revenexx-Produkte und -Dienste",
|
|
36
|
+
"currentLabel": "Cover",
|
|
37
|
+
"closeLabel": "Menü schließen",
|
|
38
|
+
"items": {
|
|
39
|
+
"developerPortal": {
|
|
40
|
+
"title": "Developer Portal",
|
|
41
|
+
"subtitle": "Starte mit der Entwicklung für die Revenue Cloud."
|
|
42
|
+
},
|
|
43
|
+
"help": {
|
|
44
|
+
"title": "Hilfe",
|
|
45
|
+
"subtitle": "Erfahre, wie du die Revenue Cloud verwendest."
|
|
46
|
+
},
|
|
47
|
+
"cover": {
|
|
48
|
+
"title": "Cover",
|
|
49
|
+
"subtitle": "Unser Designsystem für B2B-Storefronts."
|
|
50
|
+
},
|
|
51
|
+
"studio": {
|
|
52
|
+
"title": "Studio",
|
|
53
|
+
"subtitle": "Einheitliche UI für Apps im Cockpit."
|
|
54
|
+
},
|
|
55
|
+
"schemas": {
|
|
56
|
+
"title": "Schemas",
|
|
57
|
+
"subtitle": "Klare Spezifikationen für Entwickler."
|
|
58
|
+
},
|
|
59
|
+
"changelog": {
|
|
60
|
+
"title": "Changelog",
|
|
61
|
+
"subtitle": "Bleib über unsere täglichen Änderungen auf dem Laufenden."
|
|
62
|
+
},
|
|
63
|
+
"status": {
|
|
64
|
+
"title": "Status",
|
|
65
|
+
"subtitle": "Statusinformationen und Berichte zu allen Diensten."
|
|
66
|
+
},
|
|
67
|
+
"support": {
|
|
68
|
+
"title": "Support",
|
|
69
|
+
"subtitle": "Kontaktiere uns, wenn du Hilfe brauchst."
|
|
70
|
+
},
|
|
71
|
+
"about": {
|
|
72
|
+
"title": "Über revenexx",
|
|
73
|
+
"subtitle": "Erfahre mehr über die Revenue Cloud."
|
|
74
|
+
}
|
|
75
|
+
}
|
|
32
76
|
}
|
|
33
77
|
}
|
|
@@ -41,7 +41,10 @@
|
|
|
41
41
|
"slugHelp": "Kleinbuchstaben, Zahlen, „-“ und „/“ für verschachtelte Pfade.",
|
|
42
42
|
"bundleHelp": "Lokal immer als „standard“ behandelt; der Wert greift erst, wenn die Seite übernommen und von der Live-API ausgeliefert wird.",
|
|
43
43
|
"warnings": {
|
|
44
|
-
"routeSlug": "Dieser Slug gehört
|
|
44
|
+
"routeSlug": "Dieser Slug gehört der Route {path} — dort wird die Seite ausgeliefert, nicht unter /{slug}."
|
|
45
|
+
},
|
|
46
|
+
"suggestions": {
|
|
47
|
+
"none": "Kein Routen-Slug passt — die Seite bekommt einen freien Slug."
|
|
45
48
|
},
|
|
46
49
|
"errors": {
|
|
47
50
|
"duplicate": "Es gibt bereits eine Seite mit diesem Slug.",
|
|
@@ -118,7 +121,50 @@
|
|
|
118
121
|
"serif": "Serif",
|
|
119
122
|
"mono": "Monospace",
|
|
120
123
|
"geometric": "Geometrisch"
|
|
124
|
+
},
|
|
125
|
+
"design": {
|
|
126
|
+
"title": "Shop-Design",
|
|
127
|
+
"brand": "Markenfarbe",
|
|
128
|
+
"neutral": "Neutralfarbe",
|
|
129
|
+
"radius": "Eckenradius",
|
|
130
|
+
"font": "Webfont",
|
|
131
|
+
"fontHint": "Name der Schriftfamilie und URL ihres Stylesheets (fonts.bunny.net, fonts.googleapis.com oder cdn.revenexx.com).",
|
|
132
|
+
"customCss": "Eigenes CSS",
|
|
133
|
+
"customCssHint": "Gilt für den ganzen Shop und überschreibt Theme-Styles. Keine Imports, externe URLs nur per https.",
|
|
134
|
+
"save": "Design speichern",
|
|
135
|
+
"saving": "Speichern …",
|
|
136
|
+
"saved": "Gespeichert — alle Seiten nutzen jetzt dieses Design.",
|
|
137
|
+
"failed": "Das Design konnte nicht gespeichert werden.",
|
|
138
|
+
"tenantScheme": "Eigenes Design"
|
|
121
139
|
}
|
|
140
|
+
},
|
|
141
|
+
"region": {
|
|
142
|
+
"title": "Region",
|
|
143
|
+
"hint": "Wie die Blöcke dieser Region mit dem Standard-Header bzw. -Footer des Themes kombiniert werden.",
|
|
144
|
+
"modes": {
|
|
145
|
+
"after": "Nach dem Standard",
|
|
146
|
+
"before": "Vor dem Standard",
|
|
147
|
+
"replace": "Standard ersetzen"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"accountNav": {
|
|
151
|
+
"title": "Kontonavigation",
|
|
152
|
+
"lead": "Gruppen und Links der Konto-Seitenleiste dieses Mandanten. Gilt für alle Kontoseiten.",
|
|
153
|
+
"save": "Speichern",
|
|
154
|
+
"loading": "Navigation wird geladen …",
|
|
155
|
+
"empty": "Noch keine eigene Navigation – es wird die Standardnavigation angezeigt.",
|
|
156
|
+
"seedDefault": "Standardnavigation übernehmen",
|
|
157
|
+
"groupLabel": "Gruppenname",
|
|
158
|
+
"linkLabel": "Linktext",
|
|
159
|
+
"linkTarget": "Ziel wählen",
|
|
160
|
+
"addLink": "Link hinzufügen",
|
|
161
|
+
"addGroup": "Gruppe hinzufügen",
|
|
162
|
+
"removeGroup": "Gruppe entfernen",
|
|
163
|
+
"removeLink": "Link entfernen",
|
|
164
|
+
"moveUp": "Nach oben",
|
|
165
|
+
"moveDown": "Nach unten",
|
|
166
|
+
"saved": "Navigation gespeichert",
|
|
167
|
+
"saveFailed": "Navigation konnte nicht gespeichert werden"
|
|
122
168
|
}
|
|
123
169
|
}
|
|
124
170
|
}
|
|
@@ -580,6 +580,7 @@
|
|
|
580
580
|
"organization": {
|
|
581
581
|
"title": "Company",
|
|
582
582
|
"locked": "Your company details are maintained by us. To change them, please contact your account manager.",
|
|
583
|
+
"lockedRole": "Your role does not include changing your company's details. Please ask an administrator of your company.",
|
|
583
584
|
"description": "View and edit your company details.",
|
|
584
585
|
"companySection": "Company",
|
|
585
586
|
"edit": "Edit",
|
|
@@ -607,6 +608,7 @@
|
|
|
607
608
|
"team": {
|
|
608
609
|
"title": "Users",
|
|
609
610
|
"locked": "Your company's users are maintained by us. For a new login, please contact your account manager.",
|
|
611
|
+
"lockedRole": "Your role does not include managing your company's users. Please ask an administrator of your company.",
|
|
610
612
|
"description": "Manage your company's users and their roles.",
|
|
611
613
|
"searchPlaceholder": "Search by name, email or role…",
|
|
612
614
|
"invite": "Invite user",
|
|
@@ -619,6 +621,11 @@
|
|
|
619
621
|
"cancel": "Cancel",
|
|
620
622
|
"saved": "Saved",
|
|
621
623
|
"saveError": "Save failed",
|
|
624
|
+
"refused": {
|
|
625
|
+
"roleAboveOwn": "You cannot give anybody a role above your own.",
|
|
626
|
+
"ownRole": "Your own role cannot be changed here.",
|
|
627
|
+
"notFound": "This user is not part of your company."
|
|
628
|
+
},
|
|
622
629
|
"errorTitle": "Users unavailable",
|
|
623
630
|
"errorDescription": "The users could not be loaded.",
|
|
624
631
|
"columns": {
|
|
@@ -99,10 +99,17 @@
|
|
|
99
99
|
"errors": {
|
|
100
100
|
"invalidCredentials": "Email or password is incorrect.",
|
|
101
101
|
"accountBlocked": "This account has been locked. Please contact support.",
|
|
102
|
+
"organizationBlocked": "Your company's account with this shop is on hold. Please contact your contact person at the merchant.",
|
|
102
103
|
"rateLimited": "Too many attempts. Please try again in a few minutes.",
|
|
103
104
|
"network": "Could not reach the server. Check your connection and try again.",
|
|
104
105
|
"sessionExists": "You are already logged in.",
|
|
105
|
-
"unknown": "Something went wrong. Please try again."
|
|
106
|
+
"unknown": "Something went wrong. Please try again.",
|
|
107
|
+
"identifierNotOffered": "This shop does not accept that to sign in. Please sign in with: {accepted}.",
|
|
108
|
+
"invalidCredentialsBy": {
|
|
109
|
+
"email": "Email or password is incorrect.",
|
|
110
|
+
"username": "Username or password is incorrect.",
|
|
111
|
+
"customerNumber": "Customer number or password is incorrect. A customer number signs in as your company's primary contact — with that contact's password."
|
|
112
|
+
}
|
|
106
113
|
},
|
|
107
114
|
"heroTitle": "Customer portal + shop + digital services =",
|
|
108
115
|
"heroHighlight": "One account.",
|
|
@@ -130,7 +137,40 @@
|
|
|
130
137
|
"existingCustomer": "I already have an account",
|
|
131
138
|
"newCustomer": "I am a new customer",
|
|
132
139
|
"newCustomerText": "Register for personal access to prices, orders and digital services.",
|
|
133
|
-
"registerCta": "Become a customer"
|
|
140
|
+
"registerCta": "Become a customer",
|
|
141
|
+
"identifier": {
|
|
142
|
+
"email": {
|
|
143
|
+
"label": "Email address",
|
|
144
|
+
"placeholder": "Your email address"
|
|
145
|
+
},
|
|
146
|
+
"username": {
|
|
147
|
+
"label": "Username",
|
|
148
|
+
"placeholder": "Your username"
|
|
149
|
+
},
|
|
150
|
+
"customerNumber": {
|
|
151
|
+
"label": "Customer number",
|
|
152
|
+
"placeholder": "Your customer number"
|
|
153
|
+
},
|
|
154
|
+
"email_username": {
|
|
155
|
+
"label": "Email or username",
|
|
156
|
+
"placeholder": "Email address or username"
|
|
157
|
+
},
|
|
158
|
+
"email_customerNumber": {
|
|
159
|
+
"label": "Email or customer number",
|
|
160
|
+
"placeholder": "Email address or customer number"
|
|
161
|
+
},
|
|
162
|
+
"username_customerNumber": {
|
|
163
|
+
"label": "Username or customer number",
|
|
164
|
+
"placeholder": "Username or customer number"
|
|
165
|
+
},
|
|
166
|
+
"email_username_customerNumber": {
|
|
167
|
+
"label": "Email, username or customer number",
|
|
168
|
+
"placeholder": "Email address, username or customer number"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"identifierHelp": {
|
|
172
|
+
"customerNumber": "A customer number signs you in as your company's primary contact."
|
|
173
|
+
}
|
|
134
174
|
},
|
|
135
175
|
"currentPassword": {
|
|
136
176
|
"fields": {
|
|
@@ -135,7 +135,8 @@
|
|
|
135
135
|
"skuPlaceholder": "e.g. NK-G42…",
|
|
136
136
|
"quantityLabel": "Quantity",
|
|
137
137
|
"add": "Add",
|
|
138
|
-
"added": "Added {quantity}× {name}"
|
|
138
|
+
"added": "Added {quantity}× {name}",
|
|
139
|
+
"notFound": "Item {sku} cannot be ordered."
|
|
139
140
|
},
|
|
140
141
|
"quickOrder": {
|
|
141
142
|
"title": "Straight to your order",
|
|
@@ -202,7 +203,8 @@
|
|
|
202
203
|
"title": "Only the active cart",
|
|
203
204
|
"description": "Create more carts via “New cart” — e.g. per project or cost center."
|
|
204
205
|
},
|
|
205
|
-
"disabled": "Multiple carts are not enabled for your organization."
|
|
206
|
+
"disabled": "Multiple carts are not enabled for your organization.",
|
|
207
|
+
"punchout": "On a punchout visit you work in the one cart your procurement system receives."
|
|
206
208
|
}
|
|
207
209
|
},
|
|
208
210
|
"boost": {
|
|
@@ -173,7 +173,8 @@
|
|
|
173
173
|
"guestTitle": "Order as a guest",
|
|
174
174
|
"guestDescription": "Order without an account. Your details are used for this order only.",
|
|
175
175
|
"guestBusiness": "Guest order — business",
|
|
176
|
-
"guestPrivate": "Guest order — private"
|
|
176
|
+
"guestPrivate": "Guest order — private",
|
|
177
|
+
"backToSelection": "Back to selection"
|
|
177
178
|
},
|
|
178
179
|
"guest": {
|
|
179
180
|
"email": "E-mail address",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"knowledge": "Knowledge",
|
|
14
14
|
"mainNavigation": "Main navigation",
|
|
15
15
|
"backToShop": "Back to shop",
|
|
16
|
+
"backToCart": "Back to cart",
|
|
16
17
|
"catalog": {
|
|
17
18
|
"loading": "Loading product groups…",
|
|
18
19
|
"showAllGroups": "all {count} groups",
|
|
@@ -39,6 +40,7 @@
|
|
|
39
40
|
"footer": {
|
|
40
41
|
"tagline": "B2B supply solutions for modern businesses.",
|
|
41
42
|
"copyright": "© {year} Cover Corp — All rights reserved.",
|
|
43
|
+
"cookieSettings": "Cookie settings",
|
|
42
44
|
"columns": {
|
|
43
45
|
"products": {
|
|
44
46
|
"heading": "Products",
|
|
@@ -29,5 +29,49 @@
|
|
|
29
29
|
},
|
|
30
30
|
"actions": {
|
|
31
31
|
"tryAgain": "Try again"
|
|
32
|
+
},
|
|
33
|
+
"productMenu": {
|
|
34
|
+
"homeLabel": "Cover home",
|
|
35
|
+
"triggerLabel": "revenexx products and services",
|
|
36
|
+
"currentLabel": "Cover",
|
|
37
|
+
"closeLabel": "Close menu",
|
|
38
|
+
"items": {
|
|
39
|
+
"developerPortal": {
|
|
40
|
+
"title": "Developer Portal",
|
|
41
|
+
"subtitle": "Start to develop with the Revenue Cloud."
|
|
42
|
+
},
|
|
43
|
+
"help": {
|
|
44
|
+
"title": "Help",
|
|
45
|
+
"subtitle": "Learn how to use the Revenue Cloud."
|
|
46
|
+
},
|
|
47
|
+
"cover": {
|
|
48
|
+
"title": "Cover",
|
|
49
|
+
"subtitle": "Our design system for B2B storefronts."
|
|
50
|
+
},
|
|
51
|
+
"studio": {
|
|
52
|
+
"title": "Studio",
|
|
53
|
+
"subtitle": "Unified UI for apps inside the Cockpit."
|
|
54
|
+
},
|
|
55
|
+
"schemas": {
|
|
56
|
+
"title": "Schemas",
|
|
57
|
+
"subtitle": "Clear specifications for developers."
|
|
58
|
+
},
|
|
59
|
+
"changelog": {
|
|
60
|
+
"title": "Changelog",
|
|
61
|
+
"subtitle": "Stay up to date with what we ship every day."
|
|
62
|
+
},
|
|
63
|
+
"status": {
|
|
64
|
+
"title": "Status",
|
|
65
|
+
"subtitle": "Status insights and reports of all services."
|
|
66
|
+
},
|
|
67
|
+
"support": {
|
|
68
|
+
"title": "Support",
|
|
69
|
+
"subtitle": "Contact us whenever you need help."
|
|
70
|
+
},
|
|
71
|
+
"about": {
|
|
72
|
+
"title": "About revenexx",
|
|
73
|
+
"subtitle": "Learn more about the Revenue Cloud."
|
|
74
|
+
}
|
|
75
|
+
}
|
|
32
76
|
}
|
|
33
77
|
}
|
|
@@ -41,7 +41,10 @@
|
|
|
41
41
|
"slugHelp": "Lowercase letters, digits, \"-\" and \"/\" for nested paths.",
|
|
42
42
|
"bundleHelp": "Always treated as \"standard\" locally; the value only takes effect once the page is promoted and served by the live API.",
|
|
43
43
|
"warnings": {
|
|
44
|
-
"routeSlug": "This slug belongs to
|
|
44
|
+
"routeSlug": "This slug belongs to the route {path} — the page is served there, not at /{slug}."
|
|
45
|
+
},
|
|
46
|
+
"suggestions": {
|
|
47
|
+
"none": "No route slug matches — the page gets a free slug."
|
|
45
48
|
},
|
|
46
49
|
"errors": {
|
|
47
50
|
"duplicate": "A page with this slug already exists.",
|
|
@@ -118,7 +121,50 @@
|
|
|
118
121
|
"serif": "Serif",
|
|
119
122
|
"mono": "Monospace",
|
|
120
123
|
"geometric": "Geometric"
|
|
124
|
+
},
|
|
125
|
+
"design": {
|
|
126
|
+
"title": "Site design",
|
|
127
|
+
"brand": "Brand colour",
|
|
128
|
+
"neutral": "Neutral colour",
|
|
129
|
+
"radius": "Corner radius",
|
|
130
|
+
"font": "Web font",
|
|
131
|
+
"fontHint": "Font family name and its stylesheet URL (fonts.bunny.net, fonts.googleapis.com or cdn.revenexx.com).",
|
|
132
|
+
"customCss": "Custom CSS",
|
|
133
|
+
"customCssHint": "Applies to the whole shop and overrides theme styles. No imports; external URLs only via https.",
|
|
134
|
+
"save": "Save design",
|
|
135
|
+
"saving": "Saving …",
|
|
136
|
+
"saved": "Saved — every page now uses this design.",
|
|
137
|
+
"failed": "Could not save the design.",
|
|
138
|
+
"tenantScheme": "Own design"
|
|
121
139
|
}
|
|
140
|
+
},
|
|
141
|
+
"region": {
|
|
142
|
+
"title": "Region",
|
|
143
|
+
"hint": "How this region's blocks combine with the theme's default header or footer.",
|
|
144
|
+
"modes": {
|
|
145
|
+
"after": "After the default",
|
|
146
|
+
"before": "Before the default",
|
|
147
|
+
"replace": "Replace the default"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"accountNav": {
|
|
151
|
+
"title": "Account navigation",
|
|
152
|
+
"lead": "Groups and links of this tenant's account sidebar. Applies to every account page.",
|
|
153
|
+
"save": "Save",
|
|
154
|
+
"loading": "Loading navigation …",
|
|
155
|
+
"empty": "No custom navigation yet – the default navigation is shown.",
|
|
156
|
+
"seedDefault": "Start from the default navigation",
|
|
157
|
+
"groupLabel": "Group name",
|
|
158
|
+
"linkLabel": "Link text",
|
|
159
|
+
"linkTarget": "Choose target",
|
|
160
|
+
"addLink": "Add link",
|
|
161
|
+
"addGroup": "Add group",
|
|
162
|
+
"removeGroup": "Remove group",
|
|
163
|
+
"removeLink": "Remove link",
|
|
164
|
+
"moveUp": "Move up",
|
|
165
|
+
"moveDown": "Move down",
|
|
166
|
+
"saved": "Navigation saved",
|
|
167
|
+
"saveFailed": "The navigation could not be saved"
|
|
122
168
|
}
|
|
123
169
|
}
|
|
124
170
|
}
|
package/nuxt.config.ts
CHANGED
|
@@ -58,7 +58,21 @@ export default defineNuxtConfig({
|
|
|
58
58
|
|
|
59
59
|
// Forms: FormKit renders the BFF-served form schemas (SSR-safe). The
|
|
60
60
|
// module and config ship with the layer so every consumer gets them.
|
|
61
|
-
|
|
61
|
+
//
|
|
62
|
+
// Consent + tags (RAD-183): the layer registers them, not a theme, for the
|
|
63
|
+
// same reason — every storefront on cover (the blökkli theme, the custom
|
|
64
|
+
// theme, the demo shop) owes a cookie choice, and the layer's own layouts
|
|
65
|
+
// mount the banner and its footer link. Order matters: @nuxt/scripts is the
|
|
66
|
+
// loader both sit on; the consent module provides `$consentProvider`, which
|
|
67
|
+
// the tag manager reads at runtime (it never imports it). Without tenant
|
|
68
|
+
// credentials both fail closed — no banner, no tag — so a consumer that is
|
|
69
|
+
// not a deployed Site (the docs website) renders exactly as before.
|
|
70
|
+
modules: [
|
|
71
|
+
"@formkit/nuxt",
|
|
72
|
+
"@nuxt/scripts",
|
|
73
|
+
"@revenexx/consent-manager-nuxt",
|
|
74
|
+
"@revenexx/tag-manager-nuxt",
|
|
75
|
+
],
|
|
62
76
|
|
|
63
77
|
formkit: {
|
|
64
78
|
// autoImport's build-time transform produces conflicting sourcemaps in
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revenexx/cover",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Cover
|
|
3
|
+
"version": "0.12.0",
|
|
4
|
+
"description": "Cover — revenexx design system for Nuxt. Distributed as a Nuxt layer: generic UI components, theming tokens and stores shared by the demo shop, custom storefronts and the Blokkli theme.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
7
7
|
"license": "MIT",
|
|
@@ -41,8 +41,11 @@
|
|
|
41
41
|
"@formkit/vue": "^1.6.0",
|
|
42
42
|
"@iconify-json/lucide": "^1.2.111",
|
|
43
43
|
"@internationalized/date": "^3.12.0",
|
|
44
|
+
"@nuxt/scripts": "^1.3.0",
|
|
45
|
+
"@revenexx/consent-manager-nuxt": "^0.1.0",
|
|
44
46
|
"@revenexx/sdk": "^0.2.0",
|
|
45
47
|
"@revenexx/storage-model-viewer": "^0.3.0",
|
|
48
|
+
"@revenexx/tag-manager-nuxt": "^0.1.0",
|
|
46
49
|
"@vueuse/core": "^14.3.0",
|
|
47
50
|
"typesense": "^3.0.5"
|
|
48
51
|
},
|
|
@@ -22,7 +22,7 @@ export default defineEventHandler(async (event): Promise<{ ok: true }> => {
|
|
|
22
22
|
throw createError({ statusCode: 501, message: "This storefront does not cancel orders on demo data" });
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const order = await getLiveOrderByNumber(number);
|
|
25
|
+
const order = await getLiveOrderByNumber(number, user.contactId);
|
|
26
26
|
if (!order) {
|
|
27
27
|
throw createError({ statusCode: 404, message: "Order not found" });
|
|
28
28
|
}
|
|
@@ -27,7 +27,7 @@ export default defineEventHandler(async (event): Promise<{ messages: AccountOrde
|
|
|
27
27
|
return { messages: [] };
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
const order = await getLiveOrderByNumber(number);
|
|
30
|
+
const order = await getLiveOrderByNumber(number, user.contactId);
|
|
31
31
|
if (!order) {
|
|
32
32
|
throw createError({ statusCode: 404, message: "Order not found" });
|
|
33
33
|
}
|
|
@@ -23,7 +23,7 @@ export default defineEventHandler(async (event): Promise<{ ok: true }> => {
|
|
|
23
23
|
throw createError({ statusCode: 501, message: "This storefront does not take order messages on demo data" });
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
const order = await getLiveOrderByNumber(number);
|
|
26
|
+
const order = await getLiveOrderByNumber(number, user.contactId);
|
|
27
27
|
if (!order) {
|
|
28
28
|
throw createError({ statusCode: 404, message: "Order not found" });
|
|
29
29
|
}
|
|
@@ -29,6 +29,7 @@ export default defineEventHandler(async (event): Promise<AccountOrder> => {
|
|
|
29
29
|
try {
|
|
30
30
|
const order = await requestOrderReturn(
|
|
31
31
|
id,
|
|
32
|
+
user.contactId,
|
|
32
33
|
positions.map(p => ({ orderItemId: p.orderItemId, quantity: Number(p.quantity) })),
|
|
33
34
|
body?.reason,
|
|
34
35
|
);
|
|
@@ -11,7 +11,7 @@ export default defineEventHandler(async (event) => {
|
|
|
11
11
|
|
|
12
12
|
if (resolveOrderServiceKey(event) === "api") {
|
|
13
13
|
try {
|
|
14
|
-
const order = await getLiveOrderByNumber(id);
|
|
14
|
+
const order = await getLiveOrderByNumber(id, user.contactId);
|
|
15
15
|
if (!order) {
|
|
16
16
|
throw createError({ statusCode: 404, message: "Order not found" });
|
|
17
17
|
}
|
|
@@ -20,6 +20,7 @@ export default defineEventHandler(async (event): Promise<PendingApprovalsRespons
|
|
|
20
20
|
const approvals = await listPendingApprovals(event, {
|
|
21
21
|
...(user.contactId ?? refs?.contact_id ? { contactId: (user.contactId ?? refs?.contact_id) as string } : {}),
|
|
22
22
|
...(user.role ? { role: user.role } : {}),
|
|
23
|
+
...(user.organizationId ? { organizationId: user.organizationId } : {}),
|
|
23
24
|
});
|
|
24
25
|
return { approvals };
|
|
25
26
|
});
|
|
@@ -66,7 +66,9 @@ export default defineEventHandler(async (event): Promise<AccountProfileResponse>
|
|
|
66
66
|
const live = resolveServiceKey(event, { domain: "accountService", mockKey: "mock", liveKey: "api" }) === "api";
|
|
67
67
|
if (live) {
|
|
68
68
|
const [phone, organization] = await Promise.all([
|
|
69
|
-
|
|
69
|
+
// The verified contact, not the cookie's: a contact id the browser
|
|
70
|
+
// wrote would read anybody's number (RAD-155).
|
|
71
|
+
contactPhone(sessionOrderRefs(event).contact_id),
|
|
70
72
|
getOrganizationService(event).get(event).catch(() => null),
|
|
71
73
|
]);
|
|
72
74
|
return {
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
export default defineEventHandler(async (event) => {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
// `identifier` is what the sign-in form sends: an address, a username or a
|
|
3
|
+
// customer number (RAD-151). `email` stays accepted under its own name for
|
|
4
|
+
// callers written before — the testkit and any theme posting here directly.
|
|
5
|
+
const body = await readBody<{
|
|
6
|
+
identifier?: string; email?: string; password?: string;
|
|
4
7
|
}>(event);
|
|
8
|
+
const identifier = String(body?.identifier ?? body?.email ?? "").trim();
|
|
9
|
+
const password = String(body?.password ?? "");
|
|
10
|
+
if (!identifier || !password) {
|
|
11
|
+
throw createError({ statusCode: 400, data: { type: "user_invalid_credentials" } });
|
|
12
|
+
}
|
|
5
13
|
|
|
6
14
|
try {
|
|
7
|
-
const result = await getAuthService(event).login(event,
|
|
15
|
+
const result = await getAuthService(event).login(event, identifier, password);
|
|
8
16
|
|
|
9
17
|
// Live carts: hand the guest's session carts to the contact — merge
|
|
10
18
|
// into the customer's current cart or adopt them. Best-effort: a cart
|
|
@@ -22,6 +30,17 @@ export default defineEventHandler(async (event) => {
|
|
|
22
30
|
return result;
|
|
23
31
|
}
|
|
24
32
|
catch (err) {
|
|
33
|
+
// A blocked contact or company (customers >= 1.1.0) is told so, not
|
|
34
|
+
// shown an outage.
|
|
35
|
+
const refused = signInRefusalType(err);
|
|
36
|
+
if (refused) {
|
|
37
|
+
throw createError({ statusCode: 403, data: { type: refused } });
|
|
38
|
+
}
|
|
39
|
+
// A kind of identifier this shop does not take (customers >= 1.1.2) —
|
|
40
|
+
// shop configuration, not a secret, so the form can say which to use.
|
|
41
|
+
if (apiErrorCode(err) === "identifier_not_offered") {
|
|
42
|
+
throw createError({ statusCode: 403, data: { type: "identifier_not_offered" } });
|
|
43
|
+
}
|
|
25
44
|
if (isApiUserError(err)) {
|
|
26
45
|
throw createError({ statusCode: err.code, data: { type: apiAuthErrorType(err) } });
|
|
27
46
|
}
|
|
@@ -16,9 +16,14 @@ export default defineEventHandler(async (event): Promise<AuthLoginResult> => {
|
|
|
16
16
|
userId,
|
|
17
17
|
secret,
|
|
18
18
|
}) as unknown as PasswordlessConfirm;
|
|
19
|
-
return completeSignIn(event, answer.session, answer.contact, "");
|
|
19
|
+
return completeSignIn(event, answer.session, answer.contact, "", answer.permissions);
|
|
20
20
|
}
|
|
21
21
|
catch (err) {
|
|
22
|
+
// A blocked contact or company is refused at the redeem, and told why.
|
|
23
|
+
const refused = signInRefusalType(err);
|
|
24
|
+
if (refused) {
|
|
25
|
+
throw createError({ statusCode: 403, message: "This account may not sign in", data: { type: refused } });
|
|
26
|
+
}
|
|
22
27
|
// A used or lapsed link is the ordinary case, not an outage: the buyer
|
|
23
28
|
// asks for another one.
|
|
24
29
|
if (err instanceof RevenexxException && [400, 401, 404].includes(err.code)) {
|
|
@@ -16,9 +16,14 @@ export default defineEventHandler(async (event): Promise<AuthLoginResult> => {
|
|
|
16
16
|
userId,
|
|
17
17
|
secret,
|
|
18
18
|
}) as unknown as PasswordlessConfirm;
|
|
19
|
-
return completeSignIn(event, answer.session, answer.contact, "");
|
|
19
|
+
return completeSignIn(event, answer.session, answer.contact, "", answer.permissions);
|
|
20
20
|
}
|
|
21
21
|
catch (err) {
|
|
22
|
+
// A blocked contact or company is refused at the redeem, and told why.
|
|
23
|
+
const refused = signInRefusalType(err);
|
|
24
|
+
if (refused) {
|
|
25
|
+
throw createError({ statusCode: 403, message: "This account may not sign in", data: { type: refused } });
|
|
26
|
+
}
|
|
22
27
|
if (err instanceof RevenexxException && [400, 401, 404].includes(err.code)) {
|
|
23
28
|
throw createError({ statusCode: 401, message: "This code is wrong or has expired" });
|
|
24
29
|
}
|
|
@@ -7,11 +7,19 @@ export default defineEventHandler(async (event) => {
|
|
|
7
7
|
if (!id) {
|
|
8
8
|
throw createError({ statusCode: 400, message: "Cart id is required" });
|
|
9
9
|
}
|
|
10
|
+
// On a punchout visit, switching away from its cart is refused as such (409),
|
|
11
|
+
// before the ownership check would call that other cart "not found".
|
|
12
|
+
assertPunchoutCartKept(event, id, "activate");
|
|
13
|
+
await assertOwnCart(event, manager, id);
|
|
10
14
|
try {
|
|
11
15
|
const items = await manager.activateCart(event, id);
|
|
12
16
|
return { items };
|
|
13
17
|
}
|
|
14
18
|
catch (err) {
|
|
19
|
+
// A punchout visit refuses to switch away from its own cart.
|
|
20
|
+
if (isError(err)) {
|
|
21
|
+
throw err;
|
|
22
|
+
}
|
|
15
23
|
getLogService().error("Service error: carts/activate", toErrorContext(err));
|
|
16
24
|
throw createError({ statusCode: 500, message: "Internal server error" });
|
|
17
25
|
}
|
|
@@ -7,6 +7,9 @@ export default defineEventHandler(async (event) => {
|
|
|
7
7
|
if (!id) {
|
|
8
8
|
throw createError({ statusCode: 400, message: "Cart id is required" });
|
|
9
9
|
}
|
|
10
|
+
// A punchout visit's own cart is the one its hand-back sends.
|
|
11
|
+
assertPunchoutCartKept(event, id, "delete");
|
|
12
|
+
await assertOwnCart(event, manager, id);
|
|
10
13
|
try {
|
|
11
14
|
await manager.deleteCart(event, id);
|
|
12
15
|
return { ok: true };
|
|
@@ -8,6 +8,7 @@ export default defineEventHandler(async (event) => {
|
|
|
8
8
|
if (!id || !name?.trim()) {
|
|
9
9
|
throw createError({ statusCode: 400, message: "Cart id and name are required" });
|
|
10
10
|
}
|
|
11
|
+
await assertOwnCart(event, manager, id);
|
|
11
12
|
try {
|
|
12
13
|
await manager.renameCart(event, id, name);
|
|
13
14
|
return { ok: true };
|
|
@@ -10,6 +10,7 @@ export default defineEventHandler(async (event) => {
|
|
|
10
10
|
if (!id || !item) {
|
|
11
11
|
throw createError({ statusCode: 400, message: "Cart id and item are required" });
|
|
12
12
|
}
|
|
13
|
+
await assertOwnCart(event, manager, id);
|
|
13
14
|
try {
|
|
14
15
|
await manager.addItemToCart(event, id, item);
|
|
15
16
|
return { ok: true };
|
|
@@ -8,6 +8,10 @@ export default defineEventHandler(async (event) => {
|
|
|
8
8
|
return await manager.createCart(event, name ?? "", Boolean(activate));
|
|
9
9
|
}
|
|
10
10
|
catch (err) {
|
|
11
|
+
// A punchout visit refuses a second cart.
|
|
12
|
+
if (isError(err)) {
|
|
13
|
+
throw err;
|
|
14
|
+
}
|
|
11
15
|
getLogService().error("Service error: carts/create", toErrorContext(err));
|
|
12
16
|
throw createError({ statusCode: 500, message: "Internal server error" });
|
|
13
17
|
}
|