@kitconcept/volto-light-theme 3.1.2 → 3.3.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 (122) hide show
  1. package/.changelog.draft +12 -0
  2. package/.release-it.json +5 -1
  3. package/CHANGELOG.md +25 -4
  4. package/README.md +45 -134
  5. package/build/messages/src/components/Anontools/Anontools.json +10 -0
  6. package/build/messages/src/components/Blocks/Button/schema.json +6 -0
  7. package/build/messages/src/components/Blocks/EventMetadata/View.json +30 -0
  8. package/build/messages/src/components/Blocks/Image/Edit.json +10 -0
  9. package/build/messages/src/components/Blocks/Image/ImageSidebar.json +18 -0
  10. package/build/messages/src/components/Blocks/Image/schema.json +10 -0
  11. package/build/messages/src/components/Blocks/Listing/ListingBody.json +26 -0
  12. package/build/messages/src/components/Blocks/Search/TopSideFacets.json +10 -0
  13. package/build/messages/src/components/Blocks/Search/components/SearchDetails.json +10 -0
  14. package/build/messages/src/components/Blocks/Search/components/SearchInput.json +6 -0
  15. package/build/messages/src/components/Blocks/Slider/DefaultBody.json +18 -0
  16. package/build/messages/src/components/Blocks/Slider/schema.json +14 -0
  17. package/build/messages/src/components/Blocks/schema.json +6 -0
  18. package/build/messages/src/components/Breadcrumbs/Breadcrumbs.json +10 -0
  19. package/build/messages/src/components/Footer/Footer.json +30 -0
  20. package/build/messages/src/components/Header/Header.json +6 -0
  21. package/build/messages/src/components/LanguageSelector/LanguageSelector.json +6 -0
  22. package/build/messages/src/components/Logo/Logo.json +10 -0
  23. package/build/messages/src/components/MobileNavigation/MobileNavigation.json +26 -0
  24. package/build/messages/src/components/Navigation/Navigation.json +10 -0
  25. package/build/messages/src/components/SearchWidget/IntranetSearchWidget.json +14 -0
  26. package/build/messages/src/components/SearchWidget/SearchWidget.json +10 -0
  27. package/build/messages/src/components/Theme/EventView.json +6 -0
  28. package/build/messages/src/components/Widgets/AlignWidget.json +22 -0
  29. package/build/messages/src/index.json +10 -0
  30. package/locales/de/LC_MESSAGES/volto.po +7 -7
  31. package/locales/en/LC_MESSAGES/volto.po +7 -7
  32. package/locales/es/LC_MESSAGES/volto.po +10 -9
  33. package/locales/eu/LC_MESSAGES/volto.po +10 -9
  34. package/locales/pt_BR/volto.po +7 -7
  35. package/locales/volto.pot +8 -8
  36. package/package.json +8 -26
  37. package/src/components/Blocks/Image/Edit.jsx +14 -14
  38. package/src/components/Blocks/Image/ImageSidebar.jsx +3 -3
  39. package/src/components/Blocks/Image/View.jsx +17 -17
  40. package/src/components/Footer/Footer.jsx +2 -2
  41. package/src/components/Header/Header.jsx +12 -12
  42. package/src/index.js +2 -0
  43. package/src/theme/_content.scss +0 -1
  44. package/src/theme/_header.scss +1 -1
  45. package/src/theme/_variables.scss +3 -3
  46. package/.dockerignore +0 -1
  47. package/.editorconfig +0 -34
  48. package/.eslintignore +0 -6
  49. package/.eslintrc +0 -53
  50. package/.github/workflows/acceptance.yml +0 -98
  51. package/.github/workflows/changelog.yml +0 -43
  52. package/.github/workflows/code.yml +0 -16
  53. package/.github/workflows/deploy.yml +0 -105
  54. package/.github/workflows/unit.yml +0 -16
  55. package/.prettierignore +0 -3
  56. package/.prettierrc +0 -12
  57. package/.stylelintrc +0 -32
  58. package/.yarn/releases/yarn-3.2.3.cjs +0 -783
  59. package/.yarnrc.yml +0 -3
  60. package/Makefile +0 -174
  61. package/UPGRADE-GUIDE.md +0 -38
  62. package/acceptance/.gitkeep +0 -0
  63. package/acceptance/ci-a11y.yml +0 -31
  64. package/acceptance/ci.yml +0 -29
  65. package/acceptance/cypress/.gitkeep +0 -0
  66. package/acceptance/cypress/fixtures/broccoli.jpg +0 -0
  67. package/acceptance/cypress/fixtures/example.json +0 -5
  68. package/acceptance/cypress/fixtures/file.pdf +0 -0
  69. package/acceptance/cypress/fixtures/halfdome2022.jpg +0 -0
  70. package/acceptance/cypress/fixtures/image.png +0 -0
  71. package/acceptance/cypress/plugins/index.js +0 -17
  72. package/acceptance/cypress/support/commands.js +0 -23
  73. package/acceptance/cypress/support/e2e.js +0 -23
  74. package/acceptance/cypress/support/reset-fixture.js +0 -45
  75. package/acceptance/cypress/support/slate.js +0 -14
  76. package/acceptance/cypress/tests/.gitkeep +0 -0
  77. package/acceptance/cypress/tests/a11y/accordionBlock.cy.js +0 -30
  78. package/acceptance/cypress/tests/a11y/basic.cy.js +0 -26
  79. package/acceptance/cypress/tests/a11y/buttonBlock.cy.js +0 -18
  80. package/acceptance/cypress/tests/a11y/eventContenttype.cy.js +0 -18
  81. package/acceptance/cypress/tests/a11y/fileContenttype.cy.js +0 -18
  82. package/acceptance/cypress/tests/a11y/gridBlock.cy.js +0 -18
  83. package/acceptance/cypress/tests/a11y/gridImageBlock.cy.js +0 -18
  84. package/acceptance/cypress/tests/a11y/gridListingBlock.cy.js +0 -18
  85. package/acceptance/cypress/tests/a11y/gridTeaserBlock.cy.js +0 -18
  86. package/acceptance/cypress/tests/a11y/gridTextBlock.cy.js +0 -33
  87. package/acceptance/cypress/tests/a11y/headingBlock.cy.js +0 -18
  88. package/acceptance/cypress/tests/a11y/highlightBlock.cy.js +0 -18
  89. package/acceptance/cypress/tests/a11y/imageBlock.cy.js +0 -18
  90. package/acceptance/cypress/tests/a11y/imageContenttype.cy.js +0 -18
  91. package/acceptance/cypress/tests/a11y/introductionBlock.cy.js +0 -18
  92. package/acceptance/cypress/tests/a11y/linkContenttype.cy.js +0 -18
  93. package/acceptance/cypress/tests/a11y/listingBlock.cy.js +0 -31
  94. package/acceptance/cypress/tests/a11y/mapsBlock.cy.js +0 -27
  95. package/acceptance/cypress/tests/a11y/newsItemContenttype.cy.js +0 -27
  96. package/acceptance/cypress/tests/a11y/pageContent.cy.js +0 -27
  97. package/acceptance/cypress/tests/a11y/searchBlock.cy.js +0 -18
  98. package/acceptance/cypress/tests/a11y/separatorBlock.cy.js +0 -28
  99. package/acceptance/cypress/tests/a11y/tableBlock.cy.js +0 -26
  100. package/acceptance/cypress/tests/a11y/teaserBlock.cy.js +0 -18
  101. package/acceptance/cypress/tests/a11y/textBlock.cy.js +0 -18
  102. package/acceptance/cypress/tests/a11y/tocBlock.cy.js +0 -18
  103. package/acceptance/cypress/tests/a11y/videoBlock.cy.js +0 -27
  104. package/acceptance/cypress/tests/main/basic.cy.js +0 -71
  105. package/acceptance/cypress/tests/main/blocks-map.cy.js +0 -56
  106. package/acceptance/cypress/tests/main/blocks-table.cy.js +0 -127
  107. package/acceptance/cypress/tests/main/listing-grid.cy.js +0 -77
  108. package/acceptance/cypress/tests/main/nav.cy.js +0 -54
  109. package/acceptance/cypress/tests/main/site-action.cy.js +0 -16
  110. package/acceptance/cypress.config.js +0 -17
  111. package/acceptance/docker-compose-a11y.yml +0 -55
  112. package/acceptance/docker-compose.yml +0 -53
  113. package/acceptance/package.json +0 -5
  114. package/acceptance/yarn.lock +0 -2638
  115. package/devops/stacks/light-theme.kitconcept.io.yml +0 -66
  116. package/dockerfiles/Dockerfile +0 -32
  117. package/dockerfiles/Dockerfile.acceptance +0 -19
  118. package/dockerfiles/Dockerfile.dev +0 -24
  119. package/dockerfiles/docker-compose.yml +0 -56
  120. package/dockerfiles/helper.py +0 -132
  121. package/volto-light-theme.png +0 -0
  122. package/volto.config.js +0 -7
@@ -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;
@@ -203,7 +203,7 @@ $font-weights: (
203
203
  bold: 700,
204
204
  extra-bold: 800,
205
205
  bolder: 900,
206
- );
206
+ ) !default;
207
207
 
208
208
  $font-sizes: (
209
209
  2xs: 12px,
@@ -216,7 +216,7 @@ $font-sizes: (
216
216
  3xl: 36px,
217
217
  4xl: 42px,
218
218
  5xl: 48px,
219
- );
219
+ ) !default;
220
220
 
221
221
  $line-heights: (
222
222
  xs: 16px,
@@ -228,7 +228,7 @@ $line-heights: (
228
228
  3xl: 42px,
229
229
  4xl: 48px,
230
230
  5xl: 56px,
231
- );
231
+ ) !default;
232
232
 
233
233
  @mixin add($property, $value) {
234
234
  @if $property == size {
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
- }
package/.stylelintrc DELETED
@@ -1,32 +0,0 @@
1
- {
2
- "extends": [
3
- "stylelint-config-idiomatic-order"
4
- ],
5
- "plugins": [
6
- "stylelint-prettier"
7
- ],
8
- "overrides": [
9
- {
10
- "files": [
11
- "**/*.less"
12
- ],
13
- "customSyntax": "postcss-less"
14
- },
15
- {
16
- "files": [
17
- "**/*.overrides"
18
- ],
19
- "customSyntax": "postcss-less"
20
- },
21
- {
22
- "files": [
23
- "**/*.scss"
24
- ],
25
- "customSyntax": "postcss-scss"
26
- }
27
- ],
28
- "rules": {
29
- "prettier/prettier": true,
30
- "order/properties-alphabetical-order": null
31
- }
32
- }