@eldrajs/theme-cli 0.1.0 → 0.2.1
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/CHANGELOG.md +8 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{validate-C6jB8_Oc.js → validate-DprFpjV7.js} +29 -4
- package/package.json +3 -3
- package/template/.eldra/block-types.d.ts +12 -3
- package/template/.eldra/manifest.json +317 -26
- package/template/.eldra/previews.json +35 -34
- package/template/.github/workflows/eldra-deploy.yml +2 -0
- package/template/.gitlab-ci.yml +2 -0
- package/template/.storybook/main.ts +3 -0
- package/template/.storybook/preview.ts +2 -1
- package/template/.storybook/virtual-eldra.d.ts +5 -0
- package/template/README.md +31 -14
- package/template/app/components/FormHoneypot.vue +21 -0
- package/template/app/composables/useFormSpam.ts +55 -0
- package/template/app/composables/usePageStructuredData.ts +112 -0
- package/template/app/composables/useTurnstile.ts +111 -0
- package/template/app/formSeeds.ts +93 -0
- package/template/app/pages/[...slug].vue +48 -12
- package/template/app/plugins/eldra-storefront.ts +19 -2
- package/template/app/plugins/eldra-ui-messages.ts +1 -1
- package/template/app/seededPages.ts +7 -0
- package/template/app/storefront/analytics.ts +202 -0
- package/template/app/storefront/cart.ts +7 -0
- package/template/app/storefront/demo.ts +48 -2
- package/template/app/storefront/forms.ts +133 -0
- package/template/app/storefront/gateway.ts +113 -7
- package/template/app/storefront/money.ts +18 -17
- package/template/app/storefront/structuredData.ts +161 -0
- package/template/app/storefront/types.ts +101 -2
- package/template/app/utils/seoInput.ts +172 -0
- package/template/bitbucket-pipelines.yml +3 -1
- package/template/blocks/breadcrumbs/Block.vue +1 -0
- package/template/blocks/cart/Block.vue +1 -0
- package/template/blocks/cart/parts/Summary.vue +1 -0
- package/template/blocks/contact/Block.vue +50 -21
- package/template/blocks/contact/__tests__/Block.spec.ts +89 -8
- package/template/blocks/contact/block.json +2 -9
- package/template/blocks/contact/mock.json +1 -2
- package/template/blocks/footer/Block.vue +58 -8
- package/template/blocks/footer/__tests__/Block.spec.ts +70 -16
- package/template/blocks/footer/preview.png +0 -0
- package/template/blocks/form/Block.vue +614 -0
- package/template/blocks/form/__tests__/Block.spec.ts +536 -0
- package/template/blocks/form/block.json +69 -0
- package/template/blocks/form/mock.json +25 -0
- package/template/blocks/form/preview.png +0 -0
- package/template/blocks/form/validate.ts +68 -0
- package/template/blocks/newsletter/Block.vue +57 -3
- package/template/blocks/newsletter/__tests__/Block.spec.ts +89 -31
- package/template/blocks/newsletter/block.json +4 -5
- package/template/blocks/newsletter/mock.json +1 -1
- package/template/blocks/newsletter/preview.png +0 -0
- package/template/blocks/product-detail/__tests__/Block.spec.ts +7 -10
- package/template/i18n/en-US.json +33 -2
- package/template/i18n/is-IS.json +33 -2
- package/template/nuxt.config.ts +15 -1
- package/template/package.json +1 -0
- package/template/public/apple-touch-icon.png +0 -0
- package/template/public/favicon.ico +0 -0
- package/template/stories/generated/form.stories.ts +68 -0
- package/template/test/formValidate.spec.ts +46 -0
- package/template/test/inlineEditable.spec.ts +2 -1
- package/template/test/moneyFormatting.spec.ts +4 -8
- package/template/test/pages/ssr.spec.ts +5 -11
- package/template/test/prerenderFailure.spec.ts +1 -1
- package/template/test/prerenderRefresh.browser.spec.ts +5 -1
- package/template/test/richText.spec.ts +12 -9
- package/template/test/seededPages.spec.ts +13 -0
- package/template/test/seoInput.spec.ts +119 -0
- package/template/test/slugPage.spec.ts +62 -26
- package/template/test/slugPageTemplate.spec.ts +5 -1
- package/template/test/starter.spec.ts +42 -4
- package/template/test/storefront/analytics.spec.ts +283 -0
- package/template/test/storefront/forms.spec.ts +385 -0
- package/template/test/storefront/money.spec.ts +11 -12
- package/template/test/storefront/structuredData.spec.ts +138 -0
- package/template/test/structuredData.generate.spec.ts +159 -0
- package/template/test/support/mockGateway.ts +29 -1
- package/template/test/support/turnstileForms.ts +53 -0
- package/template/test/useBlockData.spec.ts +7 -4
- package/template/app/utils/pageTitle.ts +0 -37
- package/template/test/pageTitle.spec.ts +0 -49
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"manifestVersion":
|
|
2
|
+
"manifestVersion": 2,
|
|
3
3
|
"theme": {
|
|
4
|
+
"id": "starter",
|
|
4
5
|
"name": "starter-nuxt",
|
|
5
6
|
"version": "0.1.0",
|
|
6
7
|
"framework": "nuxt",
|
|
@@ -1793,7 +1794,7 @@
|
|
|
1793
1794
|
"description": "The shop's address, opening hours, phone and email beside a short enquiry form, with a map that always offers an \"Open in maps\" link outside any embed.",
|
|
1794
1795
|
"icon": "map-pin",
|
|
1795
1796
|
"category": "marketing",
|
|
1796
|
-
"version":
|
|
1797
|
+
"version": 2,
|
|
1797
1798
|
"fields": [
|
|
1798
1799
|
{
|
|
1799
1800
|
"fieldId": "variant",
|
|
@@ -1964,21 +1965,12 @@
|
|
|
1964
1965
|
"type": "bool",
|
|
1965
1966
|
"default": false
|
|
1966
1967
|
},
|
|
1967
|
-
{
|
|
1968
|
-
"fieldId": "recipient",
|
|
1969
|
-
"name": "Recipient",
|
|
1970
|
-
"type": "string",
|
|
1971
|
-
"helpText": "Where submissions go. Not shown.",
|
|
1972
|
-
"validators": {
|
|
1973
|
-
"required": true
|
|
1974
|
-
}
|
|
1975
|
-
},
|
|
1976
1968
|
{
|
|
1977
1969
|
"fieldId": "successText",
|
|
1978
1970
|
"name": "Success text",
|
|
1979
1971
|
"type": "text",
|
|
1980
1972
|
"localized": true,
|
|
1981
|
-
"helpText": "Shown after a successful submit.
|
|
1973
|
+
"helpText": "Shown after a successful submit. It never echoes what the visitor typed."
|
|
1982
1974
|
}
|
|
1983
1975
|
],
|
|
1984
1976
|
"mock": {
|
|
@@ -2025,8 +2017,7 @@
|
|
|
2025
2017
|
}
|
|
2026
2018
|
],
|
|
2027
2019
|
"showOrderNumber": true,
|
|
2028
|
-
"
|
|
2029
|
-
"successText": "We reply within one business day, usually sooner. A copy is on its way to {email}."
|
|
2020
|
+
"successText": "We reply within one business day, usually sooner."
|
|
2030
2021
|
},
|
|
2031
2022
|
"previewImage": ".eldra/previews/contact.png"
|
|
2032
2023
|
},
|
|
@@ -3017,6 +3008,141 @@
|
|
|
3017
3008
|
},
|
|
3018
3009
|
"previewImage": ".eldra/previews/footer.png"
|
|
3019
3010
|
},
|
|
3011
|
+
{
|
|
3012
|
+
"apiId": "form",
|
|
3013
|
+
"name": "Form",
|
|
3014
|
+
"description": "A form from the Forms page: contact, newsletter or any form you build, with the fields, spam protection and emails managed in Studio.",
|
|
3015
|
+
"icon": "mail",
|
|
3016
|
+
"category": "marketing",
|
|
3017
|
+
"version": 1,
|
|
3018
|
+
"fields": [
|
|
3019
|
+
{
|
|
3020
|
+
"fieldId": "preset",
|
|
3021
|
+
"name": "Layout",
|
|
3022
|
+
"type": "select",
|
|
3023
|
+
"helpText": "default stacks the fields. inline puts a single field and the button on one row, for a sign-up.",
|
|
3024
|
+
"metadata": {
|
|
3025
|
+
"options": [
|
|
3026
|
+
"default",
|
|
3027
|
+
"inline"
|
|
3028
|
+
]
|
|
3029
|
+
},
|
|
3030
|
+
"validators": {
|
|
3031
|
+
"required": true
|
|
3032
|
+
}
|
|
3033
|
+
},
|
|
3034
|
+
{
|
|
3035
|
+
"fieldId": "formKey",
|
|
3036
|
+
"name": "Form",
|
|
3037
|
+
"type": "string",
|
|
3038
|
+
"helpText": "The key of the form on the Forms page, for example \"contact\" or \"newsletter\".",
|
|
3039
|
+
"validators": {
|
|
3040
|
+
"required": true
|
|
3041
|
+
}
|
|
3042
|
+
},
|
|
3043
|
+
{
|
|
3044
|
+
"fieldId": "heading",
|
|
3045
|
+
"name": "Heading",
|
|
3046
|
+
"type": "string",
|
|
3047
|
+
"isTitle": true,
|
|
3048
|
+
"localized": true,
|
|
3049
|
+
"validators": {
|
|
3050
|
+
"required": true
|
|
3051
|
+
}
|
|
3052
|
+
},
|
|
3053
|
+
{
|
|
3054
|
+
"fieldId": "text",
|
|
3055
|
+
"name": "Text",
|
|
3056
|
+
"type": "text",
|
|
3057
|
+
"localized": true,
|
|
3058
|
+
"helpText": "What the visitor gets, or what happens next."
|
|
3059
|
+
},
|
|
3060
|
+
{
|
|
3061
|
+
"fieldId": "buttonLabel",
|
|
3062
|
+
"name": "Button label",
|
|
3063
|
+
"type": "string",
|
|
3064
|
+
"localized": true,
|
|
3065
|
+
"helpText": "Defaults to \"Send\" when unset."
|
|
3066
|
+
},
|
|
3067
|
+
{
|
|
3068
|
+
"fieldId": "consent",
|
|
3069
|
+
"name": "Consent",
|
|
3070
|
+
"type": "rich-text",
|
|
3071
|
+
"localized": true,
|
|
3072
|
+
"helpText": "One line with a privacy link, shown under the button. Inline links only.",
|
|
3073
|
+
"metadata": {
|
|
3074
|
+
"toolbar": [
|
|
3075
|
+
"bold",
|
|
3076
|
+
"italic",
|
|
3077
|
+
"link",
|
|
3078
|
+
"undo",
|
|
3079
|
+
"redo"
|
|
3080
|
+
]
|
|
3081
|
+
}
|
|
3082
|
+
},
|
|
3083
|
+
{
|
|
3084
|
+
"fieldId": "successTitle",
|
|
3085
|
+
"name": "Success title",
|
|
3086
|
+
"type": "string",
|
|
3087
|
+
"localized": true,
|
|
3088
|
+
"helpText": "Shown above the form's own confirmation text. Defaults to \"Thank you\"."
|
|
3089
|
+
},
|
|
3090
|
+
{
|
|
3091
|
+
"fieldId": "sectionBackground",
|
|
3092
|
+
"name": "Section background",
|
|
3093
|
+
"type": "select",
|
|
3094
|
+
"helpText": "Defaults to \"none\" when unset.",
|
|
3095
|
+
"metadata": {
|
|
3096
|
+
"options": [
|
|
3097
|
+
"none",
|
|
3098
|
+
"surface",
|
|
3099
|
+
"surface-strong",
|
|
3100
|
+
"primary",
|
|
3101
|
+
"accent"
|
|
3102
|
+
]
|
|
3103
|
+
}
|
|
3104
|
+
}
|
|
3105
|
+
],
|
|
3106
|
+
"mock": {
|
|
3107
|
+
"preset": "default",
|
|
3108
|
+
"formKey": "contact",
|
|
3109
|
+
"heading": "Send us a message",
|
|
3110
|
+
"text": "Questions about an order, a wholesale enquiry or just which glaze to choose: a real person will answer.",
|
|
3111
|
+
"buttonLabel": "Send message",
|
|
3112
|
+
"consent": {
|
|
3113
|
+
"type": "doc",
|
|
3114
|
+
"content": [
|
|
3115
|
+
{
|
|
3116
|
+
"type": "paragraph",
|
|
3117
|
+
"content": [
|
|
3118
|
+
{
|
|
3119
|
+
"type": "text",
|
|
3120
|
+
"text": "We only use your details to reply. Read our "
|
|
3121
|
+
},
|
|
3122
|
+
{
|
|
3123
|
+
"type": "text",
|
|
3124
|
+
"marks": [
|
|
3125
|
+
{
|
|
3126
|
+
"type": "link",
|
|
3127
|
+
"attrs": {
|
|
3128
|
+
"href": "/pages/privacy"
|
|
3129
|
+
}
|
|
3130
|
+
}
|
|
3131
|
+
],
|
|
3132
|
+
"text": "privacy policy"
|
|
3133
|
+
},
|
|
3134
|
+
{
|
|
3135
|
+
"type": "text",
|
|
3136
|
+
"text": "."
|
|
3137
|
+
}
|
|
3138
|
+
]
|
|
3139
|
+
}
|
|
3140
|
+
]
|
|
3141
|
+
},
|
|
3142
|
+
"sectionBackground": "none"
|
|
3143
|
+
},
|
|
3144
|
+
"previewImage": ".eldra/previews/form.png"
|
|
3145
|
+
},
|
|
3020
3146
|
{
|
|
3021
3147
|
"apiId": "gallery",
|
|
3022
3148
|
"name": "Gallery",
|
|
@@ -4001,7 +4127,7 @@
|
|
|
4001
4127
|
"description": "An email sign-up with a clear promise, one field and visible error/success states. Use it once per page.",
|
|
4002
4128
|
"icon": "mail",
|
|
4003
4129
|
"category": "marketing",
|
|
4004
|
-
"version":
|
|
4130
|
+
"version": 2,
|
|
4005
4131
|
"fields": [
|
|
4006
4132
|
{
|
|
4007
4133
|
"fieldId": "variant",
|
|
@@ -4104,13 +4230,10 @@
|
|
|
4104
4230
|
"helpText": "For example the confirmation step and the welcome code."
|
|
4105
4231
|
},
|
|
4106
4232
|
{
|
|
4107
|
-
"fieldId": "
|
|
4108
|
-
"name": "
|
|
4233
|
+
"fieldId": "formKey",
|
|
4234
|
+
"name": "Form",
|
|
4109
4235
|
"type": "string",
|
|
4110
|
-
"
|
|
4111
|
-
"required": true
|
|
4112
|
-
},
|
|
4113
|
-
"helpText": "The marketing list or audience id in the connected email app."
|
|
4236
|
+
"helpText": "The key of the sign-up form on the Forms page. Defaults to \"newsletter\" when unset."
|
|
4114
4237
|
},
|
|
4115
4238
|
{
|
|
4116
4239
|
"fieldId": "sectionBackground",
|
|
@@ -4169,7 +4292,7 @@
|
|
|
4169
4292
|
"consentCheckboxLabel": "I'd like to receive emails from Northwind Goods",
|
|
4170
4293
|
"successTitle": "You're on the list",
|
|
4171
4294
|
"successText": "Check your inbox to confirm. Your 10% welcome code arrives with the first letter.",
|
|
4172
|
-
"
|
|
4295
|
+
"formKey": "newsletter",
|
|
4173
4296
|
"sectionBackground": "surface"
|
|
4174
4297
|
},
|
|
4175
4298
|
"previewImage": ".eldra/previews/newsletter.png"
|
|
@@ -8184,6 +8307,116 @@
|
|
|
8184
8307
|
]
|
|
8185
8308
|
}
|
|
8186
8309
|
],
|
|
8310
|
+
"formSeeds": [
|
|
8311
|
+
{
|
|
8312
|
+
"key": "contact",
|
|
8313
|
+
"name": "Contact",
|
|
8314
|
+
"fields": [
|
|
8315
|
+
{
|
|
8316
|
+
"id": "name",
|
|
8317
|
+
"type": "text",
|
|
8318
|
+
"required": true,
|
|
8319
|
+
"label": {
|
|
8320
|
+
"en-US": "Name",
|
|
8321
|
+
"is-IS": "Nafn"
|
|
8322
|
+
}
|
|
8323
|
+
},
|
|
8324
|
+
{
|
|
8325
|
+
"id": "email",
|
|
8326
|
+
"type": "email",
|
|
8327
|
+
"required": true,
|
|
8328
|
+
"label": {
|
|
8329
|
+
"en-US": "Email address",
|
|
8330
|
+
"is-IS": "Netfang"
|
|
8331
|
+
},
|
|
8332
|
+
"placeholder": {
|
|
8333
|
+
"en-US": "name@example.com",
|
|
8334
|
+
"is-IS": "nafn@example.is"
|
|
8335
|
+
}
|
|
8336
|
+
},
|
|
8337
|
+
{
|
|
8338
|
+
"id": "topic",
|
|
8339
|
+
"type": "text",
|
|
8340
|
+
"required": false,
|
|
8341
|
+
"label": {
|
|
8342
|
+
"en-US": "What is it about?",
|
|
8343
|
+
"is-IS": "Um hvað er málið?"
|
|
8344
|
+
},
|
|
8345
|
+
"validation": {
|
|
8346
|
+
"maxLength": 120
|
|
8347
|
+
}
|
|
8348
|
+
},
|
|
8349
|
+
{
|
|
8350
|
+
"id": "orderNumber",
|
|
8351
|
+
"type": "text",
|
|
8352
|
+
"required": false,
|
|
8353
|
+
"label": {
|
|
8354
|
+
"en-US": "Order number",
|
|
8355
|
+
"is-IS": "Pöntunarnúmer"
|
|
8356
|
+
}
|
|
8357
|
+
},
|
|
8358
|
+
{
|
|
8359
|
+
"id": "message",
|
|
8360
|
+
"type": "textarea",
|
|
8361
|
+
"required": true,
|
|
8362
|
+
"label": {
|
|
8363
|
+
"en-US": "Message",
|
|
8364
|
+
"is-IS": "Skilaboð"
|
|
8365
|
+
},
|
|
8366
|
+
"validation": {
|
|
8367
|
+
"minLength": 10,
|
|
8368
|
+
"maxLength": 4000
|
|
8369
|
+
}
|
|
8370
|
+
}
|
|
8371
|
+
],
|
|
8372
|
+
"actions": {
|
|
8373
|
+
"notify": true,
|
|
8374
|
+
"confirm": true
|
|
8375
|
+
},
|
|
8376
|
+
"success": {
|
|
8377
|
+
"message": {
|
|
8378
|
+
"en-US": "Thanks. We reply within one business day, usually sooner.",
|
|
8379
|
+
"is-IS": "Takk fyrir. Við svörum innan eins virks dags, oftast fyrr."
|
|
8380
|
+
}
|
|
8381
|
+
}
|
|
8382
|
+
},
|
|
8383
|
+
{
|
|
8384
|
+
"key": "newsletter",
|
|
8385
|
+
"name": "Newsletter",
|
|
8386
|
+
"fields": [
|
|
8387
|
+
{
|
|
8388
|
+
"id": "email",
|
|
8389
|
+
"type": "email",
|
|
8390
|
+
"required": true,
|
|
8391
|
+
"label": {
|
|
8392
|
+
"en-US": "Email address",
|
|
8393
|
+
"is-IS": "Netfang"
|
|
8394
|
+
},
|
|
8395
|
+
"placeholder": {
|
|
8396
|
+
"en-US": "name@example.com",
|
|
8397
|
+
"is-IS": "nafn@example.is"
|
|
8398
|
+
}
|
|
8399
|
+
}
|
|
8400
|
+
],
|
|
8401
|
+
"actions": {
|
|
8402
|
+
"notify": false,
|
|
8403
|
+
"confirm": false,
|
|
8404
|
+
"subscribe": {
|
|
8405
|
+
"list": "newsletter",
|
|
8406
|
+
"consentText": {
|
|
8407
|
+
"en-US": "I want to receive the newsletter from {shop}. I can unsubscribe at any time.",
|
|
8408
|
+
"is-IS": "Ég vil fá fréttabréf frá {shop}. Ég get skráð mig úr áskrift hvenær sem er."
|
|
8409
|
+
}
|
|
8410
|
+
}
|
|
8411
|
+
},
|
|
8412
|
+
"success": {
|
|
8413
|
+
"message": {
|
|
8414
|
+
"en-US": "Check your inbox to confirm your subscription.",
|
|
8415
|
+
"is-IS": "Kíktu í pósthólfið til að staðfesta áskriftina."
|
|
8416
|
+
}
|
|
8417
|
+
}
|
|
8418
|
+
}
|
|
8419
|
+
],
|
|
8187
8420
|
"tokens": {
|
|
8188
8421
|
"colors": {
|
|
8189
8422
|
"accent": {
|
|
@@ -8359,6 +8592,7 @@
|
|
|
8359
8592
|
"testimonials.headingHintHelp": "An optional rating summary and a link to all reviews go here too.",
|
|
8360
8593
|
"testimonials.itemHintLabel": "Add a testimonial",
|
|
8361
8594
|
"testimonials.itemHintHelp": "A quote, the customer's name and location, or pick reviews from the product catalogue.",
|
|
8595
|
+
"breadcrumbs.home": "Home",
|
|
8362
8596
|
"breadcrumbs.hintLabel": "Breadcrumbs fill in automatically.",
|
|
8363
8597
|
"breadcrumbs.hintHelp": "They appear once this page sits under a parent page.",
|
|
8364
8598
|
"featureGrid.fallbackLabel": "Feature grid",
|
|
@@ -8497,9 +8731,37 @@
|
|
|
8497
8731
|
"contact.summaryTitleOne": "One field needs a look",
|
|
8498
8732
|
"contact.summaryTitleMany": "{count} fields need a look",
|
|
8499
8733
|
"contact.serverError": "We couldn't send your message. Please email {email} instead.",
|
|
8500
|
-
"contact.
|
|
8501
|
-
"contact.
|
|
8734
|
+
"contact.serverErrorGeneric": "We couldn't send your message. Please try again in a minute.",
|
|
8735
|
+
"contact.successTitle": "Thanks! Your message is with us.",
|
|
8736
|
+
"contact.successTextDefault": "We reply within one working day, usually sooner.",
|
|
8502
8737
|
"contact.sendAnother": "Send another message",
|
|
8738
|
+
"form.headingHintLabel": "Add a heading",
|
|
8739
|
+
"form.formHintLabel": "Choose a form",
|
|
8740
|
+
"form.formHintHelp": "Set the form key to a form from the Forms page, for example \"contact\".",
|
|
8741
|
+
"form.submit": "Send",
|
|
8742
|
+
"form.submitting": "Sending…",
|
|
8743
|
+
"form.selectPlaceholder": "Choose an option",
|
|
8744
|
+
"form.loading": "Loading the form…",
|
|
8745
|
+
"form.loadFailed": "This form can't be shown right now.",
|
|
8746
|
+
"form.required": "{field} is required.",
|
|
8747
|
+
"form.requiredCheckbox": "Tick the box: {field}",
|
|
8748
|
+
"form.invalidEmail": "Enter a full email address, like name{'@'}example.com",
|
|
8749
|
+
"form.invalidNumber": "Enter a number, like 12 or 3.5",
|
|
8750
|
+
"form.invalidUrl": "Enter a full web address, like https://example.com",
|
|
8751
|
+
"form.tooShort": "Use at least {min} characters.",
|
|
8752
|
+
"form.tooLong": "Use at most {max} characters.",
|
|
8753
|
+
"form.invalidFormat": "Check the format of this answer.",
|
|
8754
|
+
"form.invalidForm": "Please check your answers and try again.",
|
|
8755
|
+
"form.rateLimited": "Too many attempts. Please wait a minute and try again.",
|
|
8756
|
+
"form.tooLarge": "That is more than we can accept. Please shorten your answers.",
|
|
8757
|
+
"form.unavailable": "We couldn't send that just now. Please try again in a minute.",
|
|
8758
|
+
"form.unsupported": "This form isn't connected yet.",
|
|
8759
|
+
"form.turnstileRequired": "Please complete the spam check before sending.",
|
|
8760
|
+
"form.turnstileFailed": "The spam check could not load. Reload the page and try again.",
|
|
8761
|
+
"form.successTitle": "Thank you",
|
|
8762
|
+
"form.successTitlePending": "Check your inbox",
|
|
8763
|
+
"form.sendAnother": "Send another",
|
|
8764
|
+
"form.richTextTableLabel": "Table",
|
|
8503
8765
|
"video.play": "Play video: {title}",
|
|
8504
8766
|
"video.playWithDuration": "Play video: {title}, {duration}",
|
|
8505
8767
|
"video.minuteOne": "{count} minute",
|
|
@@ -8877,6 +9139,7 @@
|
|
|
8877
9139
|
"testimonials.headingHintHelp": "Valfrjáls einkunnasamantekt og tengill á allar umsagnir fara hér líka.",
|
|
8878
9140
|
"testimonials.itemHintLabel": "Bættu við umsögn",
|
|
8879
9141
|
"testimonials.itemHintHelp": "Tilvitnun, nafn viðskiptavinar og staðsetning, eða veldu umsagnir úr vörulistanum.",
|
|
9142
|
+
"breadcrumbs.home": "Heim",
|
|
8880
9143
|
"breadcrumbs.hintLabel": "Leiðarslóðin fyllist út sjálfkrafa.",
|
|
8881
9144
|
"breadcrumbs.hintHelp": "Hún birtist þegar þessi síða er undir annarri síðu.",
|
|
8882
9145
|
"featureGrid.fallbackLabel": "Eiginleikatafla",
|
|
@@ -9015,9 +9278,37 @@
|
|
|
9015
9278
|
"contact.summaryTitleOne": "Einn reit þarf að skoða",
|
|
9016
9279
|
"contact.summaryTitleMany": "{count} reiti þarf að skoða",
|
|
9017
9280
|
"contact.serverError": "Ekki tókst að senda skilaboðin. Sendu tölvupóst á {email} í staðinn.",
|
|
9018
|
-
"contact.
|
|
9019
|
-
"contact.
|
|
9281
|
+
"contact.serverErrorGeneric": "Ekki tókst að senda skilaboðin. Reyndu aftur eftir smá stund.",
|
|
9282
|
+
"contact.successTitle": "Takk fyrir! Skilaboðin þín hafa borist okkur.",
|
|
9283
|
+
"contact.successTextDefault": "Við svörum innan eins virks dags, oftast fyrr.",
|
|
9020
9284
|
"contact.sendAnother": "Senda önnur skilaboð",
|
|
9285
|
+
"form.headingHintLabel": "Bættu við fyrirsögn",
|
|
9286
|
+
"form.formHintLabel": "Veldu eyðublað",
|
|
9287
|
+
"form.formHintHelp": "Settu lykil eyðublaðsins af eyðublaðasíðunni, til dæmis \"contact\".",
|
|
9288
|
+
"form.submit": "Senda",
|
|
9289
|
+
"form.submitting": "Sendi…",
|
|
9290
|
+
"form.selectPlaceholder": "Veldu valkost",
|
|
9291
|
+
"form.loading": "Hleð eyðublaðinu…",
|
|
9292
|
+
"form.loadFailed": "Ekki er hægt að sýna þetta eyðublað núna.",
|
|
9293
|
+
"form.required": "{field} er nauðsynlegt.",
|
|
9294
|
+
"form.requiredCheckbox": "Hakaðu í reitinn: {field}",
|
|
9295
|
+
"form.invalidEmail": "Sláðu inn fullt netfang, eins og nafn{'@'}example.is",
|
|
9296
|
+
"form.invalidNumber": "Sláðu inn tölu, t.d. 12 eða 3,5",
|
|
9297
|
+
"form.invalidUrl": "Sláðu inn fullt veffang, t.d. https://example.is",
|
|
9298
|
+
"form.tooShort": "Notaðu að minnsta kosti {min} stafi.",
|
|
9299
|
+
"form.tooLong": "Notaðu í mesta lagi {max} stafi.",
|
|
9300
|
+
"form.invalidFormat": "Athugaðu snið svarsins.",
|
|
9301
|
+
"form.invalidForm": "Athugaðu svörin og reyndu aftur.",
|
|
9302
|
+
"form.rateLimited": "Of margar tilraunir. Bíddu í eina mínútu og reyndu aftur.",
|
|
9303
|
+
"form.tooLarge": "Þetta er meira en við getum tekið við. Styttu svörin.",
|
|
9304
|
+
"form.unavailable": "Ekki tókst að senda þetta núna. Reyndu aftur eftir smá stund.",
|
|
9305
|
+
"form.unsupported": "Þetta eyðublað er ekki tengt ennþá.",
|
|
9306
|
+
"form.turnstileRequired": "Kláraðu ruslpóstsvörnina áður en þú sendir.",
|
|
9307
|
+
"form.turnstileFailed": "Ekki tókst að hlaða ruslpóstsvörninni. Endurhlaðið síðuna og reyndu aftur.",
|
|
9308
|
+
"form.successTitle": "Takk fyrir",
|
|
9309
|
+
"form.successTitlePending": "Kíktu í pósthólfið",
|
|
9310
|
+
"form.sendAnother": "Senda annað",
|
|
9311
|
+
"form.richTextTableLabel": "Tafla",
|
|
9021
9312
|
"video.play": "Spila myndband: {title}",
|
|
9022
9313
|
"video.playWithDuration": "Spila myndband: {title}, {duration}",
|
|
9023
9314
|
"video.minuteOne": "{count} mínúta",
|
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
{
|
|
2
|
-
"announcement-bar": "
|
|
3
|
-
"article": "
|
|
4
|
-
"article-list": "
|
|
5
|
-
"breadcrumbs": "
|
|
6
|
-
"cart": "
|
|
7
|
-
"collection-grid": "
|
|
8
|
-
"collection-header": "
|
|
9
|
-
"contact": "
|
|
10
|
-
"cta": "
|
|
11
|
-
"faq": "
|
|
12
|
-
"feature-grid": "
|
|
13
|
-
"footer": "
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"product-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
2
|
+
"announcement-bar": "68ba9861a4fcecb582e18aa7f44a51ff3f6465c9fbb47e88cddd8890420337be",
|
|
3
|
+
"article": "5a5254d7ee0f76eec3ac8c1a66b34eefe9356e087bd36d825e4574bbe968e4a6",
|
|
4
|
+
"article-list": "1d661f6f33521324f89524b53095a09d5ded680618bfcb96fc909e9ed67c6b49",
|
|
5
|
+
"breadcrumbs": "80f7223888fe94df391ef9eb14e7d21db29783865e96e501efb545681633d35f",
|
|
6
|
+
"cart": "cd4c0b36d1096fb01371ee10e3ca96ea6c79c5c3adfc708861a2a66dbc295070",
|
|
7
|
+
"collection-grid": "54346552f7c6485b93fff6b97f19896c25f4995c1a6a20548a0303751733c757",
|
|
8
|
+
"collection-header": "20b09301eb4f776e7d8af810bcb3c68c163a9d0f57640464542ab475837bf26d",
|
|
9
|
+
"contact": "fe8f7c5ac315c08303b4f60a428037389205498689f86bf9d298c4ae2743a0d5",
|
|
10
|
+
"cta": "c77c1ad7ee168c9b9a21ba3829fbf7d49ce553eb44e55e24048054440ff1b9b9",
|
|
11
|
+
"faq": "4f6545197383c27ffa047f127f66689a579f471a813abb8077ee02acdc5042c3",
|
|
12
|
+
"feature-grid": "42a3e8c3ed8ba59c47808072e7bd75134f0dd5cd6601890aaefe4d9d680a758d",
|
|
13
|
+
"footer": "18b3e8d7c29a044b2bac93ca16a72c78dbf7d9f744a036b6fbec3af3de70229e",
|
|
14
|
+
"form": "215c423696dc865cc11b65680dd4bea7d015fe934605843338aa6a90a49fc491",
|
|
15
|
+
"gallery": "66757de8c7f8450ac115826353352010a31883260dae2f963cb17d186f64843b",
|
|
16
|
+
"hero": "cd9f9ae50828278eedd8e8a71c5b2955ad4d1fc5d6d0373ab3ba6f30df1bc293",
|
|
17
|
+
"image": "1a384a1981e8fbdf3e6815d339158eff339e547c53487be26f247ed88dc3ac82",
|
|
18
|
+
"logo-cloud": "406912fe0300486b7cd485411bd34bdcf4d93c82340f27d63e6713543949b6de",
|
|
19
|
+
"navigation": "93b181878989575035cf454218148aea9cb049f17eb3b25e9da2db15fc7d7c4a",
|
|
20
|
+
"newsletter": "f676177b2fca8a09cf59f4ecc4e84fc60aa525f2539252577e0e9b26c8e331ed",
|
|
21
|
+
"order-status": "d8b65673592446379e561d3d48597668a3106c07840f744332c8fca3ae52369d",
|
|
22
|
+
"pricing-table": "68d1a9d389f4042268ae0fd79b84c587ec01eb8893f7ada06c54245b5956b94a",
|
|
23
|
+
"product-carousel": "024c67324ffd1d6247698472432b4e834ca81af55eab2234c4328503216aaaa3",
|
|
24
|
+
"product-detail": "299507d04f82e14a40e6e3ce918eca8b2a859b979f5ec05a887a1e40d266858c",
|
|
25
|
+
"quote": "ffdc3c965ee0a91a7182cec18ce97d9f62f55d46546b4b0be043cf6b88910e04",
|
|
26
|
+
"rich-text": "a0cd489b4d00771c8da71fe3a4bc93b92e50bf34278d5c517b10cc6b6c35b039",
|
|
27
|
+
"search": "c5c2b96738215219dcdc097a35579b0d38780e47b944d1d70edc8d8616c20ce4",
|
|
28
|
+
"split-content": "99f9e1259086fef5e9edc03afa6c28eebc92d05b2ec9ef8c4651130da798db60",
|
|
29
|
+
"stats": "708d400b93646a28b80a60893d0a8faa74a718258626998f0060126cde0b69ea",
|
|
30
|
+
"tabs": "f689ffce96742598f115e4275fecd27759a97bb137d55e3acbd8e2fb118e10ce",
|
|
31
|
+
"team": "e36e1af3528e799000c4ba8464c3785ac07a47aac4eac2a98dfc82ae0f409924",
|
|
32
|
+
"testimonials": "25a01fd4e5399eac5d01c25a5010ef07ffacbba47c8daa3e36d3737d11e1fb40",
|
|
33
|
+
"timeline": "2f8944c3df228ab1c7e268abbae8e8ca935ac0a070c1a088504a7566f74a109f",
|
|
34
|
+
"trust-strip": "ed8c3652aa09ff76983d7dc217490a1c8ecf9e87ff4539eeb4ab7b18619648ea",
|
|
35
|
+
"video-embed": "22e334618a755bceecef473bb8e027efd829f457756482088043232143237659",
|
|
36
|
+
"wishlist": "273cbad2f658ccb87354266890a078f5951294bd8066fd4a236e0a2b5456796c"
|
|
36
37
|
}
|
|
@@ -17,6 +17,8 @@ jobs:
|
|
|
17
17
|
env:
|
|
18
18
|
ELDRA_GATEWAY_URL: ${{ vars.ELDRA_GATEWAY_URL }}
|
|
19
19
|
ELDRA_ORG_ID: ${{ vars.ELDRA_ORG_ID }}
|
|
20
|
+
# A build is production unless ELDRA_BUILD_TARGET=preview, so none is set here.
|
|
21
|
+
ELDRA_SITE_URL: ${{ vars.ELDRA_SITE_URL }}
|
|
20
22
|
- run: pnpm exec eldra-theme deploy
|
|
21
23
|
env:
|
|
22
24
|
ELDRA_API_URL: ${{ vars.ELDRA_API_URL }}
|
package/template/.gitlab-ci.yml
CHANGED
|
@@ -13,4 +13,6 @@ eldra-deploy:
|
|
|
13
13
|
- pnpm exec nuxi generate
|
|
14
14
|
- pnpm exec eldra-theme deploy
|
|
15
15
|
variables:
|
|
16
|
+
# A build is production unless ELDRA_BUILD_TARGET=preview, so none is set here.
|
|
17
|
+
# ELDRA_SITE_URL (the public origin) is a CI/CD variable set on the project.
|
|
16
18
|
ELDRA_TRIGGER_DEPLOYMENT_ID: $ELDRA_TRIGGER_DEPLOYMENT_ID
|
|
@@ -4,6 +4,7 @@ import tailwindcss from '@tailwindcss/vite';
|
|
|
4
4
|
import vue from '@vitejs/plugin-vue';
|
|
5
5
|
import eldraTheme from '@eldrajs/vite-plugin-theme';
|
|
6
6
|
import { generateStories } from '../scripts/generate-stories.mjs';
|
|
7
|
+
import { starterFormSeeds } from '../app/formSeeds';
|
|
7
8
|
import { starterSeeds, starterTemplateRoles } from '../app/templates';
|
|
8
9
|
|
|
9
10
|
const themeDir = fileURLToPath(new URL('..', import.meta.url));
|
|
@@ -47,6 +48,8 @@ const config: StorybookConfig = {
|
|
|
47
48
|
tailwind: false,
|
|
48
49
|
templates: starterSeeds(),
|
|
49
50
|
templateRoles: starterTemplateRoles(),
|
|
51
|
+
// Declared for the same reason: this instance writes `.eldra/manifest.json` too.
|
|
52
|
+
formSeeds: starterFormSeeds(),
|
|
50
53
|
}),
|
|
51
54
|
];
|
|
52
55
|
config.resolve = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { setup, type Preview } from '@storybook/vue3-vite';
|
|
2
2
|
import { registerBlockFields } from '@eldrajs/theme-vue';
|
|
3
3
|
import blockFields from 'virtual:eldra/block-fields';
|
|
4
|
+
import manifest from 'virtual:eldra/manifest';
|
|
4
5
|
import '../app/assets/main.css';
|
|
5
6
|
// The theme's own `--eldra-color-*` / `--eldra-container-*` custom properties,
|
|
6
7
|
// generated from tokens.json — normally injected by @eldrajs/theme-nuxt's
|
|
@@ -16,7 +17,7 @@ import { NuxtLinkStub } from './nuxt-link-stub';
|
|
|
16
17
|
// Mirrors the runtime plugin: register block field metadata once so
|
|
17
18
|
// `useEldraBlockField` / `EldraRichText` (the `article` block's rich-text
|
|
18
19
|
// field) resolve a field's `localized` flag the same way a real page does.
|
|
19
|
-
registerBlockFields(blockFields);
|
|
20
|
+
registerBlockFields(blockFields, manifest.theme.id);
|
|
20
21
|
|
|
21
22
|
setup((app) => {
|
|
22
23
|
// No gateway, no `virtual:eldra/messages` — every block calls `useI18n()` directly, with no
|
|
@@ -18,6 +18,11 @@ declare module 'virtual:eldra/block-fields' {
|
|
|
18
18
|
export default blockFields;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
declare module 'virtual:eldra/manifest' {
|
|
22
|
+
const manifest: { theme: { id: string } };
|
|
23
|
+
export default manifest;
|
|
24
|
+
}
|
|
25
|
+
|
|
21
26
|
declare module 'virtual:eldra/tokens.css' {}
|
|
22
27
|
|
|
23
28
|
// Plain `tsc` (see shims-vue.d.ts) has no `vite/client` ambient CSS-import
|