@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.
Files changed (118) hide show
  1. package/.changelog.draft +11 -0
  2. package/CHANGELOG.md +3 -567
  3. package/build/messages/src/components/Anontools/Anontools.json +10 -0
  4. package/build/messages/src/components/Blocks/Button/schema.json +6 -0
  5. package/build/messages/src/components/Blocks/EventMetadata/View.json +30 -0
  6. package/build/messages/src/components/Blocks/Image/Edit.json +10 -0
  7. package/build/messages/src/components/Blocks/Image/ImageSidebar.json +18 -0
  8. package/build/messages/src/components/Blocks/Image/schema.json +10 -0
  9. package/build/messages/src/components/Blocks/Listing/ListingBody.json +26 -0
  10. package/build/messages/src/components/Blocks/Search/TopSideFacets.json +10 -0
  11. package/build/messages/src/components/Blocks/Search/components/SearchDetails.json +10 -0
  12. package/build/messages/src/components/Blocks/Search/components/SearchInput.json +6 -0
  13. package/build/messages/src/components/Blocks/Slider/DefaultBody.json +18 -0
  14. package/build/messages/src/components/Blocks/Slider/schema.json +14 -0
  15. package/build/messages/src/components/Blocks/schema.json +6 -0
  16. package/build/messages/src/components/Breadcrumbs/Breadcrumbs.json +10 -0
  17. package/build/messages/src/components/Footer/Footer.json +30 -0
  18. package/build/messages/src/components/Header/Header.json +6 -0
  19. package/build/messages/src/components/LanguageSelector/LanguageSelector.json +6 -0
  20. package/build/messages/src/components/Logo/Logo.json +10 -0
  21. package/build/messages/src/components/MobileNavigation/MobileNavigation.json +26 -0
  22. package/build/messages/src/components/Navigation/Navigation.json +10 -0
  23. package/build/messages/src/components/SearchWidget/IntranetSearchWidget.json +14 -0
  24. package/build/messages/src/components/SearchWidget/SearchWidget.json +10 -0
  25. package/build/messages/src/components/Theme/EventView.json +6 -0
  26. package/build/messages/src/components/Widgets/AlignWidget.json +22 -0
  27. package/build/messages/src/index.json +10 -0
  28. package/locales/de/LC_MESSAGES/volto.po +7 -7
  29. package/locales/en/LC_MESSAGES/volto.po +7 -7
  30. package/locales/es/LC_MESSAGES/volto.po +10 -9
  31. package/locales/eu/LC_MESSAGES/volto.po +10 -9
  32. package/locales/pt_BR/volto.po +7 -7
  33. package/locales/volto.pot +8 -8
  34. package/package.json +8 -26
  35. package/src/components/Blocks/Image/Edit.jsx +14 -14
  36. package/src/components/Blocks/Image/ImageSidebar.jsx +3 -3
  37. package/src/components/Blocks/Image/View.jsx +17 -17
  38. package/src/components/Footer/Footer.jsx +2 -2
  39. package/src/components/Header/Header.jsx +12 -12
  40. package/src/theme/_header.scss +1 -1
  41. package/.dockerignore +0 -1
  42. package/.editorconfig +0 -34
  43. package/.eslintignore +0 -6
  44. package/.eslintrc +0 -53
  45. package/.github/workflows/acceptance.yml +0 -98
  46. package/.github/workflows/changelog.yml +0 -43
  47. package/.github/workflows/code.yml +0 -16
  48. package/.github/workflows/deploy.yml +0 -105
  49. package/.github/workflows/unit.yml +0 -16
  50. package/.prettierignore +0 -3
  51. package/.prettierrc +0 -12
  52. package/.stylelintrc +0 -32
  53. package/.yarn/releases/yarn-3.2.3.cjs +0 -783
  54. package/.yarnrc.yml +0 -3
  55. package/Makefile +0 -174
  56. package/README.md +0 -453
  57. package/UPGRADE-GUIDE.md +0 -38
  58. package/acceptance/.gitkeep +0 -0
  59. package/acceptance/ci-a11y.yml +0 -31
  60. package/acceptance/ci.yml +0 -29
  61. package/acceptance/cypress/.gitkeep +0 -0
  62. package/acceptance/cypress/fixtures/broccoli.jpg +0 -0
  63. package/acceptance/cypress/fixtures/example.json +0 -5
  64. package/acceptance/cypress/fixtures/file.pdf +0 -0
  65. package/acceptance/cypress/fixtures/halfdome2022.jpg +0 -0
  66. package/acceptance/cypress/fixtures/image.png +0 -0
  67. package/acceptance/cypress/plugins/index.js +0 -17
  68. package/acceptance/cypress/support/commands.js +0 -23
  69. package/acceptance/cypress/support/e2e.js +0 -23
  70. package/acceptance/cypress/support/reset-fixture.js +0 -45
  71. package/acceptance/cypress/support/slate.js +0 -14
  72. package/acceptance/cypress/tests/.gitkeep +0 -0
  73. package/acceptance/cypress/tests/a11y/accordionBlock.cy.js +0 -30
  74. package/acceptance/cypress/tests/a11y/basic.cy.js +0 -26
  75. package/acceptance/cypress/tests/a11y/buttonBlock.cy.js +0 -18
  76. package/acceptance/cypress/tests/a11y/eventContenttype.cy.js +0 -18
  77. package/acceptance/cypress/tests/a11y/fileContenttype.cy.js +0 -18
  78. package/acceptance/cypress/tests/a11y/gridBlock.cy.js +0 -18
  79. package/acceptance/cypress/tests/a11y/gridImageBlock.cy.js +0 -18
  80. package/acceptance/cypress/tests/a11y/gridListingBlock.cy.js +0 -18
  81. package/acceptance/cypress/tests/a11y/gridTeaserBlock.cy.js +0 -18
  82. package/acceptance/cypress/tests/a11y/gridTextBlock.cy.js +0 -33
  83. package/acceptance/cypress/tests/a11y/headingBlock.cy.js +0 -18
  84. package/acceptance/cypress/tests/a11y/highlightBlock.cy.js +0 -18
  85. package/acceptance/cypress/tests/a11y/imageBlock.cy.js +0 -18
  86. package/acceptance/cypress/tests/a11y/imageContenttype.cy.js +0 -18
  87. package/acceptance/cypress/tests/a11y/introductionBlock.cy.js +0 -18
  88. package/acceptance/cypress/tests/a11y/linkContenttype.cy.js +0 -18
  89. package/acceptance/cypress/tests/a11y/listingBlock.cy.js +0 -31
  90. package/acceptance/cypress/tests/a11y/mapsBlock.cy.js +0 -27
  91. package/acceptance/cypress/tests/a11y/newsItemContenttype.cy.js +0 -27
  92. package/acceptance/cypress/tests/a11y/pageContent.cy.js +0 -27
  93. package/acceptance/cypress/tests/a11y/searchBlock.cy.js +0 -18
  94. package/acceptance/cypress/tests/a11y/separatorBlock.cy.js +0 -28
  95. package/acceptance/cypress/tests/a11y/tableBlock.cy.js +0 -26
  96. package/acceptance/cypress/tests/a11y/teaserBlock.cy.js +0 -18
  97. package/acceptance/cypress/tests/a11y/textBlock.cy.js +0 -18
  98. package/acceptance/cypress/tests/a11y/tocBlock.cy.js +0 -18
  99. package/acceptance/cypress/tests/a11y/videoBlock.cy.js +0 -27
  100. package/acceptance/cypress/tests/main/basic.cy.js +0 -71
  101. package/acceptance/cypress/tests/main/blocks-map.cy.js +0 -56
  102. package/acceptance/cypress/tests/main/blocks-table.cy.js +0 -127
  103. package/acceptance/cypress/tests/main/listing-grid.cy.js +0 -77
  104. package/acceptance/cypress/tests/main/nav.cy.js +0 -54
  105. package/acceptance/cypress/tests/main/site-action.cy.js +0 -16
  106. package/acceptance/cypress.config.js +0 -17
  107. package/acceptance/docker-compose-a11y.yml +0 -55
  108. package/acceptance/docker-compose.yml +0 -53
  109. package/acceptance/package.json +0 -5
  110. package/acceptance/yarn.lock +0 -2638
  111. package/devops/stacks/light-theme.kitconcept.io.yml +0 -66
  112. package/dockerfiles/Dockerfile +0 -32
  113. package/dockerfiles/Dockerfile.acceptance +0 -19
  114. package/dockerfiles/Dockerfile.dev +0 -24
  115. package/dockerfiles/docker-compose.yml +0 -56
  116. package/dockerfiles/helper.py +0 -132
  117. package/volto-light-theme.png +0 -0
  118. 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-02-08T13:36:14.317Z\n"
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/Theme/EventView
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/Theme/EventView
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/Theme/EventView
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/Theme/EventView
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/Theme/EventView
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/Theme/EventView
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/Theme/EventView
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.1.2",
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
- "@babel/eslint-parser": "7.22.15",
38
- "@plone/scripts": "^3.3.2",
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.0",
53
+ "@eeacms/volto-accordion-block": "^10.4.6",
72
54
  "@kitconcept/volto-button-block": "^2.3.1",
73
- "@kitconcept/volto-dsgvo-banner": "^1.3.0",
55
+ "@kitconcept/volto-dsgvo-banner": "^2.3.2",
74
56
  "@kitconcept/volto-heading-block": "^2.4.0",
75
- "@kitconcept/volto-highlight-block": "^3.0.0",
57
+ "@kitconcept/volto-highlight-block": "^3.0.1",
76
58
  "@kitconcept/volto-introduction-block": "^1.0.0",
77
- "@kitconcept/volto-separator-block": "^4.0.0",
78
- "@kitconcept/volto-slider-block": "^6.1.0"
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
- ? // Backwards compat in the case that the block is storing the full server URL
307
- (() => {
308
- if (data.size === 'l')
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
- 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`;
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
- ? // Backwards compat in the case that the block is storing the full server URL
70
- `${flattenToAppURL(data.url)}/@@images/image/preview`
71
- : data.url
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
- ? // 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
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 || ''}
@@ -93,8 +93,8 @@ const Footer = ({ intl }) => {
93
93
  : addAppURL(item.id)
94
94
  }`
95
95
  : item.url
96
- ? flattenToAppURL(item.url)
97
- : addAppURL(item.id)
96
+ ? flattenToAppURL(item.url)
97
+ : addAppURL(item.id)
98
98
  }
99
99
  >
100
100
  {item?.title}
@@ -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
  );
@@ -1,6 +1,6 @@
1
1
  .header-wrapper .header {
2
2
  display: flex;
3
- flex-direction: column;
3
+ flex-direction: column-reverse;
4
4
 
5
5
  .logo-nav-wrapper {
6
6
  display: flex;
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
@@ -1,6 +0,0 @@
1
- container-query-polyfill.modern.js
2
- cypress
3
- node_modules
4
- acceptance
5
- *.json
6
- remove_me
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
@@ -1,3 +0,0 @@
1
- container-query-polyfill.modern.js
2
- CHANGELOG.md
3
- README.md
package/.prettierrc DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "trailingComma": "all",
3
- "singleQuote": true,
4
- "overrides": [
5
- {
6
- "files": "*.overrides",
7
- "options": {
8
- "parser": "less"
9
- }
10
- }
11
- ]
12
- }