@kitconcept/volto-light-theme 3.0.0-alpha.2 → 3.0.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.
@@ -4,7 +4,7 @@ on: [push, pull_request]
4
4
  env:
5
5
  ADDON_NAME: "@kitconcept/volto-light-theme"
6
6
  ADDON_PATH: "volto-light-theme"
7
- VOLTO_VERSION: "17.5.0"
7
+ VOLTO_VERSION: "17.12.1"
8
8
 
9
9
  jobs:
10
10
 
@@ -11,7 +11,7 @@ on:
11
11
  env:
12
12
  ENVIRONMENT: "light-theme.kitconcept.io"
13
13
  IMAGE_NAME: "ghcr.io/kitconcept/voltolighttheme-frontend"
14
- VOLTO_VERSION: "17.5.0"
14
+ VOLTO_VERSION: "17.12.1"
15
15
 
16
16
  jobs:
17
17
  meta:
package/CHANGELOG.md CHANGED
@@ -8,6 +8,40 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 3.0.0 (2024-02-14)
12
+
13
+ ### Feature
14
+
15
+ - Add options to show intranet label and implement intranet header for intranet sites. @iFlameing [#304](https://github.com/kitconcept/volto-light-theme/pull/304)
16
+ - Add Event Metadata block @iRohitSingh [#334](https://github.com/kitconcept/volto-light-theme/pull/334)
17
+
18
+ ### Bugfix
19
+
20
+ - Fix Navigation fails html validator due to use of divs inside ul tag @iRohitSingh [#289](https://github.com/kitconcept/volto-light-theme/pull/289)
21
+ - Fixed the Caption for Images, Video Blocks etc. to use semantically correct HTML Structure @Molochem [#341](https://github.com/kitconcept/volto-light-theme/pull/341)
22
+ - Fix missing key in `Header` component @sneridagh [#345](https://github.com/kitconcept/volto-light-theme/pull/345)
23
+
24
+ ### Internal
25
+
26
+ - Support for enhanced initial blocks in config - Update to Volto 17.12.1 @sneridagh [#342](https://github.com/kitconcept/volto-light-theme/pull/342)
27
+
28
+ ## 3.0.0-alpha.3 (2024-02-02)
29
+
30
+ ### Feature
31
+
32
+ - Allow customizing the secondary navigation entries via Portal action. @iFlameing [#302](https://github.com/kitconcept/volto-light-theme/pull/302)
33
+
34
+ ### Bugfix
35
+
36
+ - Fix Fat menu A11y issues @iRohitSingh [#264](https://github.com/kitconcept/volto-light-theme/pull/264)
37
+ - Fix Introduction-Block inline-styles have wrong typography. @iFlameing [#314](https://github.com/kitconcept/volto-light-theme/pull/314)
38
+ - Remove extra site-map from header @iRohitSingh [#339](https://github.com/kitconcept/volto-light-theme/pull/339)
39
+
40
+ ### Internal
41
+
42
+ - Upgrade to Volto 17.11.2 and Plone 6.0.9 @sneridagh [#328](https://github.com/kitconcept/volto-light-theme/pull/328)
43
+ - Upgrade to Votlo 17.11.5 and Plone 6.0.9 @sneridagh [#331](https://github.com/kitconcept/volto-light-theme/pull/331)
44
+
11
45
  ## 3.0.0-alpha.2 (2024-01-17)
12
46
 
13
47
  ### Breaking
package/Makefile CHANGED
@@ -21,8 +21,8 @@ GREEN=`tput setaf 2`
21
21
  RESET=`tput sgr0`
22
22
  YELLOW=`tput setaf 3`
23
23
 
24
- PLONE_VERSION=6.0.8
25
- VOLTO_VERSION=17.7.0
24
+ PLONE_VERSION=6.0.9
25
+ VOLTO_VERSION=17.12.1
26
26
 
27
27
  ADDON_NAME='@kitconcept/volto-light-theme'
28
28
  ADDON_PATH='volto-light-theme'
@@ -66,6 +66,11 @@ start-dev: ## Starts Dev container
66
66
  @echo "$(GREEN)==> Start Addon Development container $(RESET)"
67
67
  ${DEV_COMPOSE} up addon-dev backend
68
68
 
69
+ .PHONY: start-live
70
+ start-live: ## Starts Dev container
71
+ @echo "$(GREEN)==> Start Addon Development container $(RESET)"
72
+ ${DEV_COMPOSE} up addon-live backend
73
+
69
74
  .PHONY: dev
70
75
  dev: ## Develop the addon
71
76
  @echo "$(GREEN)==> Start Development Environment $(RESET)"
package/README.md CHANGED
@@ -181,6 +181,40 @@ It's behind a feature flag, as opt-out:
181
181
  config.settings.enableFatMenu = true;
182
182
  ```
183
183
 
184
+ ### Show Site Label
185
+
186
+ If you want to show a label on top of site you can pass label name to `siteLabel` property.
187
+
188
+ ```js
189
+ config.settings.siteLabel = 'Plone Intranet';
190
+ ```
191
+
192
+ If you wanted a translated label then you have to define a translation object in `defineMessages` function provided by react-intl.
193
+
194
+ Here is the code snippets you have to add in your addon index.js file.
195
+ If you don't have addon, you can also add in your config.js file in root of your frontend folder.
196
+
197
+ ```js
198
+ import { defineMessages } from 'react-intl';
199
+
200
+ defineMessages({
201
+ siteLabel: {
202
+ id: 'siteLabel',
203
+ defaultMessage: ' ',
204
+ },
205
+ });
206
+
207
+ ```
208
+ Then add the translation you want in your `locale` file.
209
+
210
+ ### Show intranetHeader
211
+
212
+ We have totally different header for intranet sites. If you want that, you can enable it by passing `intranetHeader` property.
213
+
214
+ ```js
215
+ config.settings.intranetHeader = true;
216
+ ```
217
+
184
218
  ## Upgrade Guide
185
219
 
186
220
  See a detailed upgrade guide in: https://github.com/kitconcept/volto-light-theme/blob/main/UPGRADE-GUIDE.md
@@ -201,7 +235,8 @@ Run `make help` to list the available commands.
201
235
  stop-backend Stop Docker backend
202
236
  build-live Build Addon live
203
237
  build-addon Build Addon dev
204
- start-dev Starts Dev container
238
+ start-dev Starts Dev environent container
239
+ start-live Starts Live environment container
205
240
  dev Develop the addon
206
241
  help Show this help.
207
242
  i18n Sync i18n
@@ -261,11 +296,12 @@ Run
261
296
  make start-dev
262
297
  ```
263
298
 
264
- This will start both the frontend and backend containers.
299
+ This will start both the frontend and backend for the dev environment containers.
300
+
265
301
 
266
302
  ### Stop Backend (Docker)
267
303
 
268
- After developing, to stop the running backend, don't forget to run:
304
+ After developing, the backend stops automatically. However, it can be stopped by running:
269
305
 
270
306
  Run
271
307
 
@@ -369,6 +405,24 @@ When finished, don't forget to shutdown the backend server.
369
405
  make stop-test-acceptance-server-a11y
370
406
  ```
371
407
 
408
+ ### Live mode
409
+
410
+ There is an alternate Docker Compose configuration for running volto in live mode.
411
+ This is not usually needed during development, but can be useful for debugging.
412
+
413
+ To build the frontend for the live environment, run
414
+
415
+ ```shell
416
+ make build-live
417
+ ```
418
+
419
+ To start both the frontend and backend for the live environment, run
420
+
421
+ ```shell
422
+ make start-live
423
+ ```
424
+
425
+
372
426
  ### Release
373
427
 
374
428
  Run
@@ -27,7 +27,6 @@ context('Navigation Acceptance Tests', () => {
27
27
  path: '/level-1/level-2',
28
28
  });
29
29
 
30
-
31
30
  cy.visit('/');
32
31
  cy.viewport('macbook-16');
33
32
  });
@@ -44,17 +43,12 @@ context('Navigation Acceptance Tests', () => {
44
43
  cy.get('ul.desktop-menu button').contains('Level 1').click();
45
44
  cy.get('.subitem-wrapper').findByText('Level 2').click();
46
45
  cy.get('.documentFirstHeading').should('have.text', 'Level 2');
47
-
48
46
  });
49
47
 
50
48
  it('Open 3rd level', function () {
51
49
  cy.wait('@content');
52
50
  cy.get('ul.desktop-menu button').contains('Level 1').click();
53
- cy.get('.subsubitem-wrapper li').findByText('Level 3').click();
51
+ cy.get('.subsubitem-wrapper').findByText('Level 3').click();
54
52
  cy.get('.documentFirstHeading').should('have.text', 'Level 3');
55
-
56
53
  });
57
54
  });
58
-
59
-
60
-
@@ -0,0 +1,16 @@
1
+ context('Site Action Acceptance Tests', () => {
2
+ beforeEach(() => {
3
+ cy.intercept('GET', `/**/*?expand*`).as('content');
4
+ cy.intercept('GET', '/**/Document').as('schema');
5
+
6
+ cy.autologin();
7
+ cy.visit('/');
8
+ cy.viewport('macbook-16');
9
+ cy.visit('/');
10
+ });
11
+
12
+ it('As a editor I should see Site action title in header', function () {
13
+ cy.wait('@content');
14
+ cy.get('.tools').findByText('Contact').should('exist');
15
+ });
16
+ });
@@ -53,3 +53,4 @@ services:
53
53
  - 8080:8080
54
54
  profiles:
55
55
  - dev
56
+ - live
@@ -1,4 +1,3 @@
1
- # Translation of plone.pot to German
2
1
  msgid ""
3
2
  msgstr ""
4
3
  "Project-Id-Version: Plone\n"
@@ -17,307 +16,325 @@ msgstr ""
17
16
  "Preferred-Encodings: utf-8 latin1\n"
18
17
  "X-Is-Fallback-For: de-at de-li de-lu de-ch de-de\n"
19
18
 
19
+ #. Default: "Back"
20
20
  #: components/MobileNavigation/MobileNavigation
21
- # defaultMessage: Back
22
21
  msgid "Back"
23
22
  msgstr ""
24
23
 
24
+ #. Default: "Background color"
25
25
  #: components/Blocks/schema
26
- # defaultMessage: Background color
27
26
  msgid "Background color"
28
27
  msgstr "Hintergrundfarbe"
29
28
 
29
+ #. Default: "Block Width"
30
30
  #: components/Blocks/Button/schema
31
- # defaultMessage: Block Width
32
31
  msgid "Block Width"
33
32
  msgstr "Block Breite"
34
33
 
34
+ #. Default: "Breadcrumbs"
35
35
  #: components/Breadcrumbs/Breadcrumbs
36
- # defaultMessage: Breadcrumbs
37
36
  msgid "Breadcrumbs"
38
37
  msgstr ""
39
38
 
39
+ #. Default: "Browse the site, drop an image, or type an URL"
40
40
  #: components/Blocks/Image/Edit
41
- # defaultMessage: Browse the site, drop an image, or type an URL
42
41
  msgid "Browse the site, drop an image, or type an URL"
43
42
  msgstr "Bild auswählen, hochladen oder URL angeben"
44
43
 
44
+ #. Default: "Button text"
45
45
  #: components/Blocks/Slider/schema
46
- # defaultMessage: Button text
47
46
  msgid "Button text"
48
47
  msgstr ""
49
48
 
49
+ #. Default: "Center"
50
50
  #: components/Widgets/AlignWidget
51
- # defaultMessage: Center
52
51
  msgid "Center"
53
52
  msgstr "Mittig"
54
53
 
54
+ #. Default: "Close menu"
55
55
  #: components/MobileNavigation/MobileNavigation
56
56
  #: components/Navigation/Navigation
57
- # defaultMessage: Close menu
58
57
  msgid "Close menu"
59
58
  msgstr "Menü schließen"
60
59
 
60
+ #. Default: "Contact"
61
61
  #: components/Theme/EventView
62
- # defaultMessage: Contact
63
62
  msgid "Contact"
64
63
  msgstr "Kontakt"
65
64
 
65
+ #. Default: "Continue reading"
66
66
  #: components/Blocks/Slider/DefaultBody
67
- # defaultMessage: Continue reading
68
67
  msgid "Continue reading"
69
68
  msgstr ""
70
69
 
70
+ #. Default: "Copyright"
71
71
  #: components/Footer/Footer
72
- # defaultMessage: Copyright
73
72
  msgid "Copyright"
74
73
  msgstr "Urheberrechte"
75
74
 
75
+ #. Default: "Description"
76
76
  #: components/Blocks/Image/schema
77
- # defaultMessage: Description
78
77
  msgid "Description"
79
78
  msgstr "Beschreibung"
80
79
 
80
+ #. Default: "Distributed under the {license}."
81
81
  #: components/Footer/Footer
82
- # defaultMessage: Distributed under the {license}.
83
82
  msgid "Distributed under the {license}."
84
83
  msgstr ""
85
84
 
85
+ #. Default: "End"
86
86
  #: components/Theme/EventView
87
- # defaultMessage: End
88
87
  msgid "End"
89
88
  msgstr "ende"
90
89
 
90
+ #. Default: "Flag align"
91
91
  #: components/Blocks/Slider/schema
92
- # defaultMessage: Flag align
93
92
  msgid "Flag align"
94
93
  msgstr ""
95
94
 
95
+ #. Default: "Full"
96
96
  #: components/Widgets/AlignWidget
97
- # defaultMessage: Full
98
97
  msgid "Full"
99
98
  msgstr "Volle Breite"
100
99
 
100
+ #. Default: "GNU GPL license"
101
101
  #: components/Footer/Footer
102
- # defaultMessage: GNU GPL license
103
102
  msgid "GNU GPL license"
104
103
  msgstr ""
105
104
 
105
+ #. Default: "Hide Button"
106
106
  #: components/Blocks/Slider/schema
107
- # defaultMessage: Hide Button
108
107
  msgid "Hide Button"
109
108
  msgstr "kein Button anzeigen"
110
109
 
110
+ #. Default: "Home"
111
111
  #: components/Breadcrumbs/Breadcrumbs
112
112
  #: components/MobileNavigation/MobileNavigation
113
- # defaultMessage: Home
114
113
  msgid "Home"
115
114
  msgstr ""
116
115
 
116
+ #. Default: "ICS Download"
117
117
  #: components/Theme/EventView
118
- # defaultMessage: ICS Download
119
118
  msgid "ICS-Download"
120
119
  msgstr "ICS-Download"
121
120
 
121
+ #. Default: "Image"
122
122
  #: components/Blocks/Image/ImageSidebar
123
- # defaultMessage: Image
124
123
  msgid "Image"
125
124
  msgstr "Bild"
126
125
 
126
+ #. Default: "Left"
127
127
  #: components/Widgets/AlignWidget
128
- # defaultMessage: Left
129
128
  msgid "Left"
130
129
  msgstr "Links"
131
130
 
131
+ #. Default: "Location"
132
132
  #: components/Theme/EventView
133
- # defaultMessage: Location
134
133
  msgid "Location"
135
134
  msgstr "Veranstaltungsort"
136
135
 
136
+ #. Default: "Log in"
137
137
  #: components/Anontools/Anontools
138
- # defaultMessage: Log in
139
138
  msgid "Log in"
140
139
  msgstr "Anmelden"
141
140
 
141
+ #. Default: "Next Page"
142
142
  #: components/Blocks/Listing/ListingBody
143
- # defaultMessage: Next Page
144
143
  msgid "Next Page"
145
144
  msgstr "Nächste Seite"
146
145
 
146
+ #. Default: "No date"
147
147
  #: components/Theme/EventView
148
- # defaultMessage: No date
149
148
  msgid "No date"
150
149
  msgstr "Kein Datum"
151
150
 
151
+ #. Default: "No image selected"
152
152
  #: components/Blocks/Image/ImageSidebar
153
- # defaultMessage: No image selected
154
153
  msgid "No image selected"
155
154
  msgstr "Kein Bild ausgewählt"
156
155
 
156
+ #. Default: "No items found in this container."
157
157
  #: components/Blocks/Listing/ListingBody
158
- # defaultMessage: No items found in this container.
159
158
  msgid "No items found in this container."
160
159
  msgstr "Keine Elemente im Ordner gefunden."
161
160
 
161
+ #. Default: "Open menu"
162
162
  #: components/MobileNavigation/MobileNavigation
163
- # defaultMessage: Open menu
163
+ #: components/Navigation/Navigation
164
164
  msgid "Open menu"
165
165
  msgstr "Menü öffnen"
166
166
 
167
+ #. Default: "Overview"
167
168
  #: components/MobileNavigation/MobileNavigation
168
- # defaultMessage: Overview
169
169
  msgid "Overview"
170
170
  msgstr "Übersicht"
171
171
 
172
+ #. Default: "Phone"
172
173
  #: components/Theme/EventView
173
- # defaultMessage: Phone
174
174
  msgid "Phone"
175
175
  msgstr "Telefon"
176
176
 
177
+ #. Default: "Please choose an existing content as source for this element"
177
178
  #: components/Blocks/Slider/DefaultBody
178
- # defaultMessage: Please choose an existing content as source for this element
179
179
  msgid "Please choose an existing content as source for this element"
180
180
  msgstr ""
181
181
 
182
+ #. Default: "Plone Foundation"
182
183
  #: components/Footer/Footer
183
- # defaultMessage: Plone Foundation
184
184
  msgid "Plone Foundation"
185
185
  msgstr ""
186
186
 
187
+ #. Default: "Plone Site"
187
188
  #: components/Logo/Logo
188
- # defaultMessage: Plone Site
189
189
  msgid "Plone Site"
190
190
  msgstr ""
191
191
 
192
+ #. Default: "Plone{reg} Open Source CMS/WCM"
192
193
  #: components/Footer/Footer
193
- # defaultMessage: Plone{reg} Open Source CMS/WCM
194
194
  msgid "Plone{reg} Open Source CMS/WCM"
195
195
  msgstr ""
196
196
 
197
+ #. Default: "Powered by Plone & Python"
197
198
  #: components/Footer/Footer
198
- # defaultMessage: Powered by Plone & Python
199
199
  msgid "Powered by Plone & Python"
200
200
  msgstr ""
201
201
 
202
+ #. Default: "Press"
202
203
  #: index
203
- # defaultMessage: Press
204
204
  msgid "Press"
205
205
  msgstr "Presse"
206
206
 
207
+ #. Default: "Previous Page"
207
208
  #: components/Blocks/Listing/ListingBody
208
- # defaultMessage: Previous Page
209
209
  msgid "Previous Page"
210
210
  msgstr "Vorherige Seite"
211
211
 
212
+ #. Default: "Register"
212
213
  #: components/Anontools/Anontools
213
- # defaultMessage: Register
214
214
  msgid "Register"
215
215
  msgstr "Registrieren"
216
216
 
217
+ #. Default: "Result"
217
218
  #: components/Blocks/Listing/ListingBody
218
- # defaultMessage: Result
219
219
  msgid "Result"
220
220
  msgstr "Ergebnis"
221
221
 
222
+ #. Default: "Right"
222
223
  #: components/Widgets/AlignWidget
223
- # defaultMessage: Right
224
224
  msgid "Right"
225
225
  msgstr "Rechts"
226
226
 
227
+ #. Default: "Search"
227
228
  #: components/Blocks/Search/components/SearchInput
228
229
  #: components/Blocks/Search/TopSideFacets
230
+ #: components/MobileNavigation/MobileNavigation
231
+ #: components/SearchWidget/IntranetSearchWidget
229
232
  #: components/SearchWidget/SearchWidget
230
- # defaultMessage: Search
231
233
  msgid "Search"
232
234
  msgstr "Suche"
233
235
 
236
+ #. Default: "Search Site"
237
+ #: components/SearchWidget/IntranetSearchWidget
234
238
  #: components/SearchWidget/SearchWidget
235
- # defaultMessage: Search Site
236
239
  msgid "Search Site"
237
240
  msgstr "Seite durchsuchen"
238
241
 
242
+ #. Default: "Search for People, E-Mail Address, Phone Number, ..."
243
+ #: components/SearchWidget/IntranetSearchWidget
244
+ msgid "Search for People, E-Mail Address, Phone Number, ..."
245
+ msgstr ""
246
+
247
+ #. Default: "Search results"
239
248
  #: components/Blocks/Search/components/SearchDetails
240
- # defaultMessage: Search results
241
249
  msgid "Search results"
242
250
  msgstr "Ergebnisse"
243
251
 
252
+ #. Default: "Searched for"
244
253
  #: components/Blocks/Search/components/SearchDetails
245
- # defaultMessage: Searched for
246
254
  msgid "Searched for"
247
255
  msgstr "Gesucht für"
248
256
 
257
+ #. Default: "Site"
249
258
  #: components/Logo/Logo
250
- # defaultMessage: Site
251
259
  msgid "Site"
252
260
  msgstr "Seite"
253
261
 
254
- #: components/Header/Header
262
+ #. Default: "Sitemap"
255
263
  #: index
256
- # defaultMessage: Sitemap
257
264
  msgid "Sitemap"
258
265
  msgstr "Übersicht"
259
266
 
267
+ #. Default: "Sorting"
260
268
  #: components/Blocks/Search/TopSideFacets
261
- # defaultMessage: Sorting
262
269
  msgid "Sorting"
263
270
  msgstr "Sortierung"
264
271
 
272
+ #. Default: "Source"
265
273
  #: components/Blocks/Slider/DefaultBody
266
- # defaultMessage: Source
267
274
  msgid "Source"
268
275
  msgstr ""
269
276
 
277
+ #. Default: "Start"
270
278
  #: components/Theme/EventView
271
- # defaultMessage: Start
272
279
  msgid "Start"
273
280
  msgstr "Anfang"
274
281
 
282
+ #. Default: "Switch to"
283
+ #: components/LanguageSelector/LanguageSelector
284
+ msgid "Switch to"
285
+ msgstr ""
286
+
287
+ #. Default: "The {plonecms} is {copyright} 2000-{current_year} by the {plonefoundation} and friends."
275
288
  #: components/Footer/Footer
276
- # defaultMessage: The {plonecms} is {copyright} 2000-{current_year} by the {plonefoundation} and friends.
277
289
  msgid "The {plonecms} is {copyright} 2000-{current_year} by the {plonefoundation} and friends."
278
290
  msgstr ""
279
291
 
292
+ #. Default: "Title"
280
293
  #: components/Blocks/Image/schema
281
- # defaultMessage: Title
282
294
  msgid "Title"
283
295
  msgstr "Titel"
284
296
 
297
+ #. Default: "Uploading image"
285
298
  #: components/Blocks/Image/Edit
286
- # defaultMessage: Uploading image
287
299
  msgid "Uploading image"
288
300
  msgstr "Bild hochladen"
289
301
 
302
+ #. Default: "Website"
290
303
  #: components/Theme/EventView
291
- # defaultMessage: Website
292
304
  msgid "Website"
293
305
  msgstr "Webseite"
294
306
 
307
+ #. Default: "Wide"
295
308
  #: components/Widgets/AlignWidget
296
- # defaultMessage: Wide
297
309
  msgid "Wide"
298
310
  msgstr "Breit"
299
311
 
312
+ #. Default: "Clear image"
300
313
  #: components/Blocks/Image/ImageSidebar
301
- # defaultMessage: Clear image
302
314
  msgid "image_block_clear"
303
315
  msgstr "Bild löschen"
304
316
 
317
+ #. Default: "Image preview"
305
318
  #: components/Blocks/Image/ImageSidebar
306
- # defaultMessage: Image preview
307
319
  msgid "image_block_preview"
308
320
  msgstr ""
309
321
 
322
+ #. Default: "Loading"
310
323
  #: components/Blocks/Listing/ListingBody
311
- # defaultMessage: Loading
312
324
  msgid "loading"
313
325
  msgstr "laden"
314
326
 
327
+ #. Default: "More info"
315
328
  #: components/Blocks/Slider/DefaultBody
316
- # defaultMessage: More info
317
329
  msgid "moreInfo"
318
330
  msgstr ""
319
331
 
332
+ #. Default: "of"
320
333
  #: components/Blocks/Listing/ListingBody
321
- # defaultMessage: of
322
334
  msgid "of"
323
335
  msgstr "von"
336
+
337
+ #. Default: ""
338
+ #: components/Header/Header
339
+ msgid "siteLabel"
340
+ msgstr ""