@kitconcept/volto-light-theme 3.1.2 → 3.2.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/.changelog.draft +11 -0
- package/CHANGELOG.md +3 -567
- package/build/messages/src/components/Anontools/Anontools.json +10 -0
- package/build/messages/src/components/Blocks/Button/schema.json +6 -0
- package/build/messages/src/components/Blocks/EventMetadata/View.json +30 -0
- package/build/messages/src/components/Blocks/Image/Edit.json +10 -0
- package/build/messages/src/components/Blocks/Image/ImageSidebar.json +18 -0
- package/build/messages/src/components/Blocks/Image/schema.json +10 -0
- package/build/messages/src/components/Blocks/Listing/ListingBody.json +26 -0
- package/build/messages/src/components/Blocks/Search/TopSideFacets.json +10 -0
- package/build/messages/src/components/Blocks/Search/components/SearchDetails.json +10 -0
- package/build/messages/src/components/Blocks/Search/components/SearchInput.json +6 -0
- package/build/messages/src/components/Blocks/Slider/DefaultBody.json +18 -0
- package/build/messages/src/components/Blocks/Slider/schema.json +14 -0
- package/build/messages/src/components/Blocks/schema.json +6 -0
- package/build/messages/src/components/Breadcrumbs/Breadcrumbs.json +10 -0
- package/build/messages/src/components/Footer/Footer.json +30 -0
- package/build/messages/src/components/Header/Header.json +6 -0
- package/build/messages/src/components/LanguageSelector/LanguageSelector.json +6 -0
- package/build/messages/src/components/Logo/Logo.json +10 -0
- package/build/messages/src/components/MobileNavigation/MobileNavigation.json +26 -0
- package/build/messages/src/components/Navigation/Navigation.json +10 -0
- package/build/messages/src/components/SearchWidget/IntranetSearchWidget.json +14 -0
- package/build/messages/src/components/SearchWidget/SearchWidget.json +10 -0
- package/build/messages/src/components/Theme/EventView.json +6 -0
- package/build/messages/src/components/Widgets/AlignWidget.json +22 -0
- package/build/messages/src/index.json +10 -0
- package/locales/de/LC_MESSAGES/volto.po +7 -7
- package/locales/en/LC_MESSAGES/volto.po +7 -7
- package/locales/es/LC_MESSAGES/volto.po +10 -9
- package/locales/eu/LC_MESSAGES/volto.po +10 -9
- package/locales/pt_BR/volto.po +7 -7
- package/locales/volto.pot +8 -8
- package/package.json +8 -26
- package/src/components/Blocks/Image/Edit.jsx +14 -14
- package/src/components/Blocks/Image/ImageSidebar.jsx +3 -3
- package/src/components/Blocks/Image/View.jsx +17 -17
- package/src/components/Footer/Footer.jsx +2 -2
- package/src/components/Header/Header.jsx +12 -12
- package/src/theme/_header.scss +1 -1
- package/.dockerignore +0 -1
- package/.editorconfig +0 -34
- package/.eslintignore +0 -6
- package/.eslintrc +0 -53
- package/.github/workflows/acceptance.yml +0 -98
- package/.github/workflows/changelog.yml +0 -43
- package/.github/workflows/code.yml +0 -16
- package/.github/workflows/deploy.yml +0 -105
- package/.github/workflows/unit.yml +0 -16
- package/.prettierignore +0 -3
- package/.prettierrc +0 -12
- package/.stylelintrc +0 -32
- package/.yarn/releases/yarn-3.2.3.cjs +0 -783
- package/.yarnrc.yml +0 -3
- package/Makefile +0 -174
- package/README.md +0 -453
- package/UPGRADE-GUIDE.md +0 -38
- package/acceptance/.gitkeep +0 -0
- package/acceptance/ci-a11y.yml +0 -31
- package/acceptance/ci.yml +0 -29
- package/acceptance/cypress/.gitkeep +0 -0
- package/acceptance/cypress/fixtures/broccoli.jpg +0 -0
- package/acceptance/cypress/fixtures/example.json +0 -5
- package/acceptance/cypress/fixtures/file.pdf +0 -0
- package/acceptance/cypress/fixtures/halfdome2022.jpg +0 -0
- package/acceptance/cypress/fixtures/image.png +0 -0
- package/acceptance/cypress/plugins/index.js +0 -17
- package/acceptance/cypress/support/commands.js +0 -23
- package/acceptance/cypress/support/e2e.js +0 -23
- package/acceptance/cypress/support/reset-fixture.js +0 -45
- package/acceptance/cypress/support/slate.js +0 -14
- package/acceptance/cypress/tests/.gitkeep +0 -0
- package/acceptance/cypress/tests/a11y/accordionBlock.cy.js +0 -30
- package/acceptance/cypress/tests/a11y/basic.cy.js +0 -26
- package/acceptance/cypress/tests/a11y/buttonBlock.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/eventContenttype.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/fileContenttype.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/gridBlock.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/gridImageBlock.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/gridListingBlock.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/gridTeaserBlock.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/gridTextBlock.cy.js +0 -33
- package/acceptance/cypress/tests/a11y/headingBlock.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/highlightBlock.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/imageBlock.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/imageContenttype.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/introductionBlock.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/linkContenttype.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/listingBlock.cy.js +0 -31
- package/acceptance/cypress/tests/a11y/mapsBlock.cy.js +0 -27
- package/acceptance/cypress/tests/a11y/newsItemContenttype.cy.js +0 -27
- package/acceptance/cypress/tests/a11y/pageContent.cy.js +0 -27
- package/acceptance/cypress/tests/a11y/searchBlock.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/separatorBlock.cy.js +0 -28
- package/acceptance/cypress/tests/a11y/tableBlock.cy.js +0 -26
- package/acceptance/cypress/tests/a11y/teaserBlock.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/textBlock.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/tocBlock.cy.js +0 -18
- package/acceptance/cypress/tests/a11y/videoBlock.cy.js +0 -27
- package/acceptance/cypress/tests/main/basic.cy.js +0 -71
- package/acceptance/cypress/tests/main/blocks-map.cy.js +0 -56
- package/acceptance/cypress/tests/main/blocks-table.cy.js +0 -127
- package/acceptance/cypress/tests/main/listing-grid.cy.js +0 -77
- package/acceptance/cypress/tests/main/nav.cy.js +0 -54
- package/acceptance/cypress/tests/main/site-action.cy.js +0 -16
- package/acceptance/cypress.config.js +0 -17
- package/acceptance/docker-compose-a11y.yml +0 -55
- package/acceptance/docker-compose.yml +0 -53
- package/acceptance/package.json +0 -5
- package/acceptance/yarn.lock +0 -2638
- package/devops/stacks/light-theme.kitconcept.io.yml +0 -66
- package/dockerfiles/Dockerfile +0 -32
- package/dockerfiles/Dockerfile.acceptance +0 -19
- package/dockerfiles/Dockerfile.dev +0 -24
- package/dockerfiles/docker-compose.yml +0 -56
- package/dockerfiles/helper.py +0 -132
- package/volto-light-theme.png +0 -0
- package/volto.config.js +0 -7
package/locales/volto.pot
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
msgid ""
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Plone\n"
|
|
4
|
-
"POT-Creation-Date: 2024-
|
|
4
|
+
"POT-Creation-Date: 2024-03-22T15:33:53.504Z\n"
|
|
5
5
|
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
6
6
|
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
7
7
|
"Content-Type: text/plain; charset=utf-8\n"
|
|
@@ -55,7 +55,7 @@ msgid "Close menu"
|
|
|
55
55
|
msgstr ""
|
|
56
56
|
|
|
57
57
|
#. Default: "Contact"
|
|
58
|
-
#: components/
|
|
58
|
+
#: components/Blocks/EventMetadata/View
|
|
59
59
|
msgid "Contact"
|
|
60
60
|
msgstr ""
|
|
61
61
|
|
|
@@ -80,7 +80,7 @@ msgid "Distributed under the {license}."
|
|
|
80
80
|
msgstr ""
|
|
81
81
|
|
|
82
82
|
#. Default: "End"
|
|
83
|
-
#: components/
|
|
83
|
+
#: components/Blocks/EventMetadata/View
|
|
84
84
|
msgid "End"
|
|
85
85
|
msgstr ""
|
|
86
86
|
|
|
@@ -111,7 +111,7 @@ msgid "Home"
|
|
|
111
111
|
msgstr ""
|
|
112
112
|
|
|
113
113
|
#. Default: "ICS Download"
|
|
114
|
-
#: components/
|
|
114
|
+
#: components/Blocks/EventMetadata/View
|
|
115
115
|
msgid "ICS-Download"
|
|
116
116
|
msgstr ""
|
|
117
117
|
|
|
@@ -126,7 +126,7 @@ msgid "Left"
|
|
|
126
126
|
msgstr ""
|
|
127
127
|
|
|
128
128
|
#. Default: "Location"
|
|
129
|
-
#: components/
|
|
129
|
+
#: components/Blocks/EventMetadata/View
|
|
130
130
|
msgid "Location"
|
|
131
131
|
msgstr ""
|
|
132
132
|
|
|
@@ -167,7 +167,7 @@ msgid "Overview"
|
|
|
167
167
|
msgstr ""
|
|
168
168
|
|
|
169
169
|
#. Default: "Phone"
|
|
170
|
-
#: components/
|
|
170
|
+
#: components/Blocks/EventMetadata/View
|
|
171
171
|
msgid "Phone"
|
|
172
172
|
msgstr ""
|
|
173
173
|
|
|
@@ -272,7 +272,7 @@ msgid "Source"
|
|
|
272
272
|
msgstr ""
|
|
273
273
|
|
|
274
274
|
#. Default: "Start"
|
|
275
|
-
#: components/
|
|
275
|
+
#: components/Blocks/EventMetadata/View
|
|
276
276
|
msgid "Start"
|
|
277
277
|
msgstr ""
|
|
278
278
|
|
|
@@ -297,7 +297,7 @@ msgid "Uploading image"
|
|
|
297
297
|
msgstr ""
|
|
298
298
|
|
|
299
299
|
#. Default: "Website"
|
|
300
|
-
#: components/
|
|
300
|
+
#: components/Blocks/EventMetadata/View
|
|
301
301
|
msgid "Website"
|
|
302
302
|
msgstr ""
|
|
303
303
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitconcept/volto-light-theme",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Volto Light Theme by kitconcept",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/types/index.d.ts",
|
|
@@ -34,26 +34,8 @@
|
|
|
34
34
|
"release-rc": "release-it --preRelease=rc"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@
|
|
38
|
-
"
|
|
39
|
-
"eslint": "8.49.0",
|
|
40
|
-
"eslint-config-prettier": "9.0.0",
|
|
41
|
-
"eslint-config-react-app": "7.0.1",
|
|
42
|
-
"eslint-import-resolver-alias": "1.1.2",
|
|
43
|
-
"eslint-import-resolver-babel-plugin-root-import": "1.1.1",
|
|
44
|
-
"eslint-plugin-import": "2.28.1",
|
|
45
|
-
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
46
|
-
"eslint-plugin-prettier": "5.0.0",
|
|
47
|
-
"eslint-plugin-react": "7.33.2",
|
|
48
|
-
"eslint-plugin-react-hooks": "4.6.0",
|
|
49
|
-
"postcss-scss": "4.0.6",
|
|
50
|
-
"prettier": "3.0.3",
|
|
51
|
-
"razzle-plugin-scss": "4.2.18",
|
|
52
|
-
"release-it": "^16.2.1",
|
|
53
|
-
"stylelint": "15.10.3",
|
|
54
|
-
"stylelint-config-idiomatic-order": "9.0.0",
|
|
55
|
-
"stylelint-config-sass-guidelines": "10.0.0",
|
|
56
|
-
"stylelint-prettier": "4.0.2"
|
|
37
|
+
"@plone/scripts": "^3.6.1",
|
|
38
|
+
"release-it": "^17.1.1"
|
|
57
39
|
},
|
|
58
40
|
"peerAddons": [
|
|
59
41
|
"@eeacms/volto-accordion-block",
|
|
@@ -68,13 +50,13 @@
|
|
|
68
50
|
"@plone/components": "2.0.0-alpha.6"
|
|
69
51
|
},
|
|
70
52
|
"peerDependencies": {
|
|
71
|
-
"@eeacms/volto-accordion-block": "^10.4.
|
|
53
|
+
"@eeacms/volto-accordion-block": "^10.4.6",
|
|
72
54
|
"@kitconcept/volto-button-block": "^2.3.1",
|
|
73
|
-
"@kitconcept/volto-dsgvo-banner": "^
|
|
55
|
+
"@kitconcept/volto-dsgvo-banner": "^2.3.2",
|
|
74
56
|
"@kitconcept/volto-heading-block": "^2.4.0",
|
|
75
|
-
"@kitconcept/volto-highlight-block": "^3.0.
|
|
57
|
+
"@kitconcept/volto-highlight-block": "^3.0.1",
|
|
76
58
|
"@kitconcept/volto-introduction-block": "^1.0.0",
|
|
77
|
-
"@kitconcept/volto-separator-block": "^4.
|
|
78
|
-
"@kitconcept/volto-slider-block": "^6.1
|
|
59
|
+
"@kitconcept/volto-separator-block": "^4.1.1",
|
|
60
|
+
"@kitconcept/volto-slider-block": "^6.3.1"
|
|
79
61
|
}
|
|
80
62
|
}
|
|
@@ -303,21 +303,21 @@ class Edit extends Component {
|
|
|
303
303
|
data.image_scales
|
|
304
304
|
? undefined
|
|
305
305
|
: isInternalURL(data.url)
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
306
|
+
? // Backwards compat in the case that the block is storing the full server URL
|
|
307
|
+
(() => {
|
|
308
|
+
if (data.size === 'l')
|
|
309
|
+
return `${flattenToAppURL(data.url)}/@@images/image`;
|
|
310
|
+
if (data.size === 'm')
|
|
311
|
+
return `${flattenToAppURL(
|
|
312
|
+
data.url,
|
|
313
|
+
)}/@@images/image/preview`;
|
|
314
|
+
if (data.size === 's')
|
|
315
|
+
return `${flattenToAppURL(
|
|
316
|
+
data.url,
|
|
317
|
+
)}/@@images/image/mini`;
|
|
309
318
|
return `${flattenToAppURL(data.url)}/@@images/image`;
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
data.url,
|
|
313
|
-
)}/@@images/image/preview`;
|
|
314
|
-
if (data.size === 's')
|
|
315
|
-
return `${flattenToAppURL(
|
|
316
|
-
data.url,
|
|
317
|
-
)}/@@images/image/mini`;
|
|
318
|
-
return `${flattenToAppURL(data.url)}/@@images/image`;
|
|
319
|
-
})()
|
|
320
|
-
: data.url
|
|
319
|
+
})()
|
|
320
|
+
: data.url
|
|
321
321
|
}
|
|
322
322
|
sizes={config.blocks.blocksConfig.image.getSizes(data)}
|
|
323
323
|
alt={data.alt || ''}
|
|
@@ -66,9 +66,9 @@ const ImageSidebar = (props) => {
|
|
|
66
66
|
data.image_scales
|
|
67
67
|
? undefined
|
|
68
68
|
: isInternalURL(data.url)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
? // Backwards compat in the case that the block is storing the full server URL
|
|
70
|
+
`${flattenToAppURL(data.url)}/@@images/image/preview`
|
|
71
|
+
: data.url
|
|
72
72
|
}
|
|
73
73
|
sizes="188px"
|
|
74
74
|
alt={intl.formatMessage(messages.preview)}
|
|
@@ -93,23 +93,23 @@ export const ImageView = ({ className, data, detached, properties, style }) => {
|
|
|
93
93
|
data.image_scales
|
|
94
94
|
? undefined
|
|
95
95
|
: isInternalURL(data.url)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
96
|
+
? // Backwards compat in the case that the block is storing the full server URL
|
|
97
|
+
(() => {
|
|
98
|
+
if (data.size === 'l')
|
|
99
|
+
return `${flattenToAppURL(
|
|
100
|
+
data.url,
|
|
101
|
+
)}/@@images/image`;
|
|
102
|
+
if (data.size === 'm')
|
|
103
|
+
return `${flattenToAppURL(
|
|
104
|
+
data.url,
|
|
105
|
+
)}/@@images/image/preview`;
|
|
106
|
+
if (data.size === 's')
|
|
107
|
+
return `${flattenToAppURL(
|
|
108
|
+
data.url,
|
|
109
|
+
)}/@@images/image/mini`;
|
|
110
|
+
return `${flattenToAppURL(data.url)}/@@images/image`;
|
|
111
|
+
})()
|
|
112
|
+
: data.url
|
|
113
113
|
}
|
|
114
114
|
sizes={config.blocks.blocksConfig.image.getSizes(data)}
|
|
115
115
|
alt={data.alt || ''}
|
|
@@ -28,6 +28,18 @@ const InternetHeader = ({ pathname, siteLabel, token, siteAction }) => {
|
|
|
28
28
|
return (
|
|
29
29
|
<>
|
|
30
30
|
<div className="header">
|
|
31
|
+
<div className="logo-nav-wrapper">
|
|
32
|
+
<div className="logo">
|
|
33
|
+
<Logo />
|
|
34
|
+
</div>
|
|
35
|
+
<Navigation pathname={pathname} />
|
|
36
|
+
<MobileNavigation pathname={pathname} />
|
|
37
|
+
<div className="search-wrapper navigation-desktop">
|
|
38
|
+
<div className="search">
|
|
39
|
+
<SearchWidget />
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
31
43
|
<div className="tools-wrapper">
|
|
32
44
|
<LanguageSelector />
|
|
33
45
|
|
|
@@ -46,18 +58,6 @@ const InternetHeader = ({ pathname, siteLabel, token, siteAction }) => {
|
|
|
46
58
|
</div>
|
|
47
59
|
)}
|
|
48
60
|
</div>
|
|
49
|
-
<div className="logo-nav-wrapper">
|
|
50
|
-
<div className="logo">
|
|
51
|
-
<Logo />
|
|
52
|
-
</div>
|
|
53
|
-
<Navigation pathname={pathname} />
|
|
54
|
-
<MobileNavigation pathname={pathname} />
|
|
55
|
-
<div className="search-wrapper navigation-desktop">
|
|
56
|
-
<div className="search">
|
|
57
|
-
<SearchWidget />
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
61
|
</div>
|
|
62
62
|
</>
|
|
63
63
|
);
|
package/src/theme/_header.scss
CHANGED
package/.dockerignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
node_modules
|
package/.editorconfig
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# EditorConfig Configurtaion file, for more details see:
|
|
2
|
-
# http://EditorConfig.org
|
|
3
|
-
# EditorConfig is a convention description, that could be interpreted
|
|
4
|
-
# by multiple editors to enforce common coding conventions for specific
|
|
5
|
-
# file types
|
|
6
|
-
|
|
7
|
-
# top-most EditorConfig file:
|
|
8
|
-
# Will ignore other EditorConfig files in Home directory or upper tree level.
|
|
9
|
-
root = true
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
[*] # For All Files
|
|
13
|
-
# Unix-style newlines with a newline ending every file
|
|
14
|
-
end_of_line = lf
|
|
15
|
-
insert_final_newline = true
|
|
16
|
-
trim_trailing_whitespace = true
|
|
17
|
-
# Set default charset
|
|
18
|
-
charset = utf-8
|
|
19
|
-
# Indent style default
|
|
20
|
-
indent_style = space
|
|
21
|
-
|
|
22
|
-
[*.{py,cfg,ini}]
|
|
23
|
-
# 4 space indentation
|
|
24
|
-
indent_size = 4
|
|
25
|
-
|
|
26
|
-
[*.{html,dtml,pt,zpt,xml,zcml,js,jsx,json,less,css,yaml,yml}]
|
|
27
|
-
# 2 space indentation
|
|
28
|
-
indent_size = 2
|
|
29
|
-
|
|
30
|
-
[{Makefile,.gitmodules}]
|
|
31
|
-
# Tab indentation (no size specified, but view as 4 spaces)
|
|
32
|
-
indent_style = tab
|
|
33
|
-
indent_size = unset
|
|
34
|
-
tab_width = unset
|
package/.eslintignore
DELETED
package/.eslintrc
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": ["react-app", "prettier", "plugin:jsx-a11y/recommended"],
|
|
3
|
-
"plugins": ["prettier", "react-hooks", "jsx-a11y"],
|
|
4
|
-
"env": {
|
|
5
|
-
"es6": true,
|
|
6
|
-
"browser": true,
|
|
7
|
-
"node": true,
|
|
8
|
-
"mocha": true,
|
|
9
|
-
"jasmine": true
|
|
10
|
-
},
|
|
11
|
-
"parser": "@babel/eslint-parser",
|
|
12
|
-
"parserOptions": {
|
|
13
|
-
"ecmaVersion": 6,
|
|
14
|
-
"sourceType": "module",
|
|
15
|
-
"ecmaFeatures": {
|
|
16
|
-
"legacyDecorators": true
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"rules": {
|
|
20
|
-
"import/no-unresolved": 0,
|
|
21
|
-
"no-alert": 1,
|
|
22
|
-
"no-console": 1,
|
|
23
|
-
"no-debugger": 1,
|
|
24
|
-
"prettier/prettier": [
|
|
25
|
-
"error",
|
|
26
|
-
{ "trailingComma": "all", "singleQuote": true }
|
|
27
|
-
],
|
|
28
|
-
"react-hooks/rules-of-hooks": "error",
|
|
29
|
-
"react-hooks/exhaustive-deps": "warn",
|
|
30
|
-
"react/react-in-jsx-scope": "off"
|
|
31
|
-
},
|
|
32
|
-
"settings": {
|
|
33
|
-
"react": {
|
|
34
|
-
"version": "17.0.2"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"globals": {
|
|
38
|
-
"root": true,
|
|
39
|
-
"__DEVELOPMENT__": true,
|
|
40
|
-
"__CLIENT__": true,
|
|
41
|
-
"__SERVER__": true,
|
|
42
|
-
"__DISABLE_SSR__": true,
|
|
43
|
-
"__DEVTOOLS__": true,
|
|
44
|
-
"__DEBUG__": true,
|
|
45
|
-
"__SSR__": true,
|
|
46
|
-
"__SENTRY__": true,
|
|
47
|
-
"cy": true,
|
|
48
|
-
"Cypress": true,
|
|
49
|
-
"jest": true,
|
|
50
|
-
"socket": true,
|
|
51
|
-
"webpackIsomorphicTools": true
|
|
52
|
-
}
|
|
53
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
name: Acceptance tests
|
|
2
|
-
on: [push, pull_request]
|
|
3
|
-
|
|
4
|
-
env:
|
|
5
|
-
ADDON_NAME: "@kitconcept/volto-light-theme"
|
|
6
|
-
ADDON_PATH: "volto-light-theme"
|
|
7
|
-
VOLTO_VERSION: "17.15.5"
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
|
|
11
|
-
acceptance:
|
|
12
|
-
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
steps:
|
|
15
|
-
- name: Checkout
|
|
16
|
-
uses: actions/checkout@v3
|
|
17
|
-
|
|
18
|
-
- name: Set up Docker Buildx
|
|
19
|
-
uses: docker/setup-buildx-action@v2
|
|
20
|
-
|
|
21
|
-
- name: Install Cypress
|
|
22
|
-
run: |
|
|
23
|
-
cd acceptance
|
|
24
|
-
yarn
|
|
25
|
-
|
|
26
|
-
- name: "Cypress: Acceptance tests"
|
|
27
|
-
uses: cypress-io/github-action@v6
|
|
28
|
-
env:
|
|
29
|
-
BABEL_ENV: production
|
|
30
|
-
CYPRESS_RETRIES: 2
|
|
31
|
-
with:
|
|
32
|
-
parallel: false
|
|
33
|
-
browser: chrome
|
|
34
|
-
working-directory: acceptance
|
|
35
|
-
spec: cypress/tests/main/**/*.js
|
|
36
|
-
install: false
|
|
37
|
-
start: |
|
|
38
|
-
docker compose -f ci.yml --profile prod up
|
|
39
|
-
wait-on: 'npx wait-on --httpTimeout 20000 http-get://localhost:55001/plone http://localhost:3000'
|
|
40
|
-
|
|
41
|
-
# Upload Cypress screenshots
|
|
42
|
-
- uses: actions/upload-artifact@v3
|
|
43
|
-
if: failure()
|
|
44
|
-
with:
|
|
45
|
-
name: cypress-screenshots-acceptance
|
|
46
|
-
path: acceptance/cypress/screenshots
|
|
47
|
-
|
|
48
|
-
# Upload Cypress videos
|
|
49
|
-
- uses: actions/upload-artifact@v3
|
|
50
|
-
if: failure()
|
|
51
|
-
with:
|
|
52
|
-
name: cypress-videos-acceptance
|
|
53
|
-
path: acceptance/cypress/videos
|
|
54
|
-
|
|
55
|
-
acceptance-a11y:
|
|
56
|
-
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
|
|
57
|
-
runs-on: ubuntu-latest
|
|
58
|
-
steps:
|
|
59
|
-
- name: Checkout
|
|
60
|
-
uses: actions/checkout@v3
|
|
61
|
-
|
|
62
|
-
- name: Set up Docker Buildx
|
|
63
|
-
uses: docker/setup-buildx-action@v2
|
|
64
|
-
|
|
65
|
-
- name: Install Cypress
|
|
66
|
-
run: |
|
|
67
|
-
cd acceptance
|
|
68
|
-
yarn
|
|
69
|
-
|
|
70
|
-
- name: "Cypress: Acceptance tests"
|
|
71
|
-
uses: cypress-io/github-action@v6
|
|
72
|
-
env:
|
|
73
|
-
BABEL_ENV: production
|
|
74
|
-
CYPRESS_RETRIES: 2
|
|
75
|
-
CYPRESS_a11y: 1
|
|
76
|
-
with:
|
|
77
|
-
parallel: false
|
|
78
|
-
browser: chrome
|
|
79
|
-
working-directory: acceptance
|
|
80
|
-
spec: cypress/tests/a11y/**/*.js
|
|
81
|
-
install: false
|
|
82
|
-
start: |
|
|
83
|
-
docker compose -f ci-a11y.yml --profile prod up
|
|
84
|
-
wait-on: 'npx wait-on --httpTimeout 20000 http-get://localhost:8080/Plone http://localhost:3000'
|
|
85
|
-
|
|
86
|
-
# Upload Cypress screenshots
|
|
87
|
-
- uses: actions/upload-artifact@v3
|
|
88
|
-
if: failure()
|
|
89
|
-
with:
|
|
90
|
-
name: cypress-screenshots-acceptance
|
|
91
|
-
path: acceptance/cypress/screenshots
|
|
92
|
-
|
|
93
|
-
# Upload Cypress videos
|
|
94
|
-
- uses: actions/upload-artifact@v3
|
|
95
|
-
if: failure()
|
|
96
|
-
with:
|
|
97
|
-
name: cypress-videos-acceptance
|
|
98
|
-
path: acceptance/cypress/videos
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
name: Changelog check
|
|
2
|
-
on:
|
|
3
|
-
pull_request:
|
|
4
|
-
types: [assigned, opened, synchronize, reopened, labeled, unlabeled]
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
|
|
8
|
-
env:
|
|
9
|
-
node-version: 20.x
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
build:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@v3
|
|
16
|
-
with:
|
|
17
|
-
# Fetch all history
|
|
18
|
-
fetch-depth: '0'
|
|
19
|
-
|
|
20
|
-
- name: Install pipx
|
|
21
|
-
run: pip install towncrier
|
|
22
|
-
|
|
23
|
-
# node setup
|
|
24
|
-
- name: Use Node.js ${{ env.node-version }}
|
|
25
|
-
uses: actions/setup-node@v3
|
|
26
|
-
with:
|
|
27
|
-
node-version: ${{ env.node-version }}
|
|
28
|
-
cache: 'yarn'
|
|
29
|
-
|
|
30
|
-
# node install
|
|
31
|
-
- name: Install dependencies
|
|
32
|
-
run: yarn
|
|
33
|
-
|
|
34
|
-
- name: Check for presence of a Change Log fragment (only pull requests)
|
|
35
|
-
run: |
|
|
36
|
-
# Fetch the pull request' base branch so towncrier will be able to
|
|
37
|
-
# compare the current branch with the base branch.
|
|
38
|
-
# Source: https://github.com/actions/checkout/#fetch-all-branches.
|
|
39
|
-
git fetch --no-tags origin main
|
|
40
|
-
towncrier check --compare-with origin/main
|
|
41
|
-
env:
|
|
42
|
-
BASE_BRANCH: ${{ github.base_ref }}
|
|
43
|
-
if: github.event_name == 'pull_request'
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
name: Code analysis checks
|
|
2
|
-
on: [push, pull_request]
|
|
3
|
-
jobs:
|
|
4
|
-
codeanalysis:
|
|
5
|
-
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
|
|
6
|
-
runs-on: ubuntu-latest
|
|
7
|
-
strategy:
|
|
8
|
-
matrix:
|
|
9
|
-
node-version: [20.x]
|
|
10
|
-
|
|
11
|
-
steps:
|
|
12
|
-
- name: Main checkout
|
|
13
|
-
uses: actions/checkout@v3
|
|
14
|
-
|
|
15
|
-
- name: Linting
|
|
16
|
-
run: make lint
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
name: Release and deploy
|
|
2
|
-
on:
|
|
3
|
-
workflow_run:
|
|
4
|
-
workflows: [Acceptance Tests]
|
|
5
|
-
types:
|
|
6
|
-
- completed
|
|
7
|
-
branches:
|
|
8
|
-
- main
|
|
9
|
-
workflow_dispatch:
|
|
10
|
-
|
|
11
|
-
env:
|
|
12
|
-
ENVIRONMENT: "light-theme.kitconcept.io"
|
|
13
|
-
IMAGE_NAME: "ghcr.io/kitconcept/voltolighttheme-frontend"
|
|
14
|
-
VOLTO_VERSION: "17.15.5"
|
|
15
|
-
|
|
16
|
-
jobs:
|
|
17
|
-
meta:
|
|
18
|
-
runs-on: ubuntu-latest
|
|
19
|
-
outputs:
|
|
20
|
-
ENVIRONMENT: ${{ steps.vars.outputs.ENVIRONMENT }}
|
|
21
|
-
STACK_NAME: ${{ steps.vars.outputs.STACK_NAME }}
|
|
22
|
-
steps:
|
|
23
|
-
- name: Checkout
|
|
24
|
-
uses: actions/checkout@v3
|
|
25
|
-
|
|
26
|
-
- name: Set Env Vars
|
|
27
|
-
id: vars
|
|
28
|
-
run: |
|
|
29
|
-
ENVIRONMENT=${{ env.ENVIRONMENT }}
|
|
30
|
-
echo "ENVIRONMENT=${ENVIRONMENT}" >> $GITHUB_OUTPUT
|
|
31
|
-
echo "STACK_NAME=${ENVIRONMENT//./-}" >> $GITHUB_OUTPUT
|
|
32
|
-
|
|
33
|
-
release:
|
|
34
|
-
runs-on: ubuntu-latest
|
|
35
|
-
needs:
|
|
36
|
-
- meta
|
|
37
|
-
steps:
|
|
38
|
-
|
|
39
|
-
- name: Checkout
|
|
40
|
-
uses: actions/checkout@v3
|
|
41
|
-
|
|
42
|
-
- name: Docker meta
|
|
43
|
-
id: meta
|
|
44
|
-
uses: docker/metadata-action@v4
|
|
45
|
-
with:
|
|
46
|
-
images: |
|
|
47
|
-
${{ env.IMAGE_NAME }}
|
|
48
|
-
labels: |
|
|
49
|
-
org.label-schema.docker.cmd=docker run -d -p 3000:3000 ${{ env.IMAGE_NAME }}
|
|
50
|
-
flavor: |
|
|
51
|
-
latest=false
|
|
52
|
-
tags: |
|
|
53
|
-
type=ref,event=branch
|
|
54
|
-
type=sha
|
|
55
|
-
type=raw,value=latest,enable={{is_default_branch}}
|
|
56
|
-
|
|
57
|
-
- name: Set up Docker Buildx
|
|
58
|
-
uses: docker/setup-buildx-action@v2
|
|
59
|
-
|
|
60
|
-
- name: Login to GitHub Container Registry
|
|
61
|
-
uses: docker/login-action@v2
|
|
62
|
-
with:
|
|
63
|
-
registry: ghcr.io
|
|
64
|
-
username: ${{ github.actor }}
|
|
65
|
-
password: ${{ secrets.GITHUB_TOKEN }}
|
|
66
|
-
|
|
67
|
-
- name: Build and push
|
|
68
|
-
uses: docker/build-push-action@v3
|
|
69
|
-
with:
|
|
70
|
-
platforms: linux/amd64
|
|
71
|
-
context: ./
|
|
72
|
-
file: dockerfiles/Dockerfile
|
|
73
|
-
build-args: |
|
|
74
|
-
ADDON_NAME=@kitconcept/volto-light-theme
|
|
75
|
-
ADDON_PATH=volto-light-theme
|
|
76
|
-
VOLTO_VERSION=${{ env.VOLTO_VERSION }}
|
|
77
|
-
push: ${{ github.event_name != 'pull_request' }}
|
|
78
|
-
tags: ${{ steps.meta.outputs.tags }}
|
|
79
|
-
labels: $${{ steps.meta.outputs.labels }}
|
|
80
|
-
deploy:
|
|
81
|
-
if: ${{ github.ref == 'refs/heads/main' }}
|
|
82
|
-
runs-on: ubuntu-latest
|
|
83
|
-
needs:
|
|
84
|
-
- meta
|
|
85
|
-
- release
|
|
86
|
-
environment: ${{ needs.meta.outputs.ENVIRONMENT }}
|
|
87
|
-
steps:
|
|
88
|
-
- name: Checkout
|
|
89
|
-
uses: actions/checkout@v3
|
|
90
|
-
|
|
91
|
-
- name: Deploy to cluster
|
|
92
|
-
uses: kitconcept/docker-stack-deploy@v1.2.0
|
|
93
|
-
with:
|
|
94
|
-
registry: "ghcr.io"
|
|
95
|
-
username: ${{ github.actor }}
|
|
96
|
-
password: ${{ secrets.GITHUB_TOKEN }}
|
|
97
|
-
remote_host: ${{ secrets.DEPLOY_HOST }}
|
|
98
|
-
remote_port: ${{ secrets.DEPLOY_PORT }}
|
|
99
|
-
remote_user: ${{ secrets.DEPLOY_USER }}
|
|
100
|
-
remote_private_key: ${{ secrets.DEPLOY_SSH }}
|
|
101
|
-
stack_file: devops/stacks/${{ needs.meta.outputs.ENVIRONMENT }}.yml
|
|
102
|
-
stack_name: ${{ needs.meta.outputs.STACK_NAME }}
|
|
103
|
-
stack_param: ${{ github.ref_name }}
|
|
104
|
-
env_file: ${{ secrets.ENV_FILE }}
|
|
105
|
-
deploy_timeout: 480
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
name: Unit Tests
|
|
2
|
-
on: [push, pull_request]
|
|
3
|
-
jobs:
|
|
4
|
-
unit:
|
|
5
|
-
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
|
|
6
|
-
runs-on: ubuntu-latest
|
|
7
|
-
strategy:
|
|
8
|
-
matrix:
|
|
9
|
-
node-version: [20.x]
|
|
10
|
-
|
|
11
|
-
steps:
|
|
12
|
-
- name: Main checkout
|
|
13
|
-
uses: actions/checkout@v3
|
|
14
|
-
|
|
15
|
-
- name: Unit tests
|
|
16
|
-
run: make test-ci
|
package/.prettierignore
DELETED