@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.
- package/.changelog.draft +12 -0
- package/.release-it.json +5 -1
- package/CHANGELOG.md +25 -4
- package/README.md +45 -134
- 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/index.js +2 -0
- package/src/theme/_content.scss +0 -1
- package/src/theme/_header.scss +1 -1
- package/src/theme/_variables.scss +3 -3
- 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/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
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
context('Listing Grid Acceptance Tests', () => {
|
|
2
|
-
beforeEach(() => {
|
|
3
|
-
cy.intercept('GET', `/**/*?expand*`).as('content');
|
|
4
|
-
cy.intercept('GET', '/**/Document').as('schema');
|
|
5
|
-
|
|
6
|
-
// given a logged in editor and a page in edit mode
|
|
7
|
-
cy.autologin();
|
|
8
|
-
cy.createContent({
|
|
9
|
-
contentType: 'Document',
|
|
10
|
-
contentId: 'document',
|
|
11
|
-
contentTitle: 'Document',
|
|
12
|
-
});
|
|
13
|
-
cy.visit('/');
|
|
14
|
-
cy.wait('@content');
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
it('As editor I can add a listing with Grid variation', () => {
|
|
18
|
-
// Add page
|
|
19
|
-
cy.createContent({
|
|
20
|
-
contentType: 'Document',
|
|
21
|
-
contentId: 'my-page',
|
|
22
|
-
contentTitle: 'My Page',
|
|
23
|
-
path: '/document',
|
|
24
|
-
});
|
|
25
|
-
cy.createContent({
|
|
26
|
-
contentType: 'Document',
|
|
27
|
-
contentId: 'my-page-1',
|
|
28
|
-
contentTitle: 'My Page 1',
|
|
29
|
-
path: '/document',
|
|
30
|
-
});
|
|
31
|
-
cy.createContent({
|
|
32
|
-
contentType: 'Document',
|
|
33
|
-
contentId: 'my-page-2',
|
|
34
|
-
contentTitle: 'My Page 2',
|
|
35
|
-
path: '/document',
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
cy.visit('/document/edit');
|
|
39
|
-
cy.get('.block .slate-editor [contenteditable=true]').click();
|
|
40
|
-
cy.get('.button .block-add-button').click({ force: true });
|
|
41
|
-
cy.get('.blocks-chooser .mostUsed .button.listing').click({
|
|
42
|
-
force: true,
|
|
43
|
-
});
|
|
44
|
-
cy.get('#field-variation').click();
|
|
45
|
-
cy.get(' #field-variation').findByText('Grid').click();
|
|
46
|
-
|
|
47
|
-
cy.get('.querystring-widget .fields').contains('Add criteria').click();
|
|
48
|
-
cy.get(
|
|
49
|
-
'.querystring-widget .fields:first-of-type .field:first-of-type .react-select__menu .react-select__option',
|
|
50
|
-
)
|
|
51
|
-
.contains('Type')
|
|
52
|
-
.click();
|
|
53
|
-
|
|
54
|
-
//insert Page
|
|
55
|
-
cy.get('.querystring-widget .fields:first-of-type > .field').click();
|
|
56
|
-
cy.get(
|
|
57
|
-
'.querystring-widget .fields:first-of-type > .field .react-select__menu .react-select__option',
|
|
58
|
-
)
|
|
59
|
-
.contains('Page')
|
|
60
|
-
.click();
|
|
61
|
-
|
|
62
|
-
//verify before save
|
|
63
|
-
cy.get(`.block.listing .listing-item:first-of-type`).contains('My Page');
|
|
64
|
-
|
|
65
|
-
//save
|
|
66
|
-
cy.get('#toolbar-save').click();
|
|
67
|
-
cy.url().should('eq', Cypress.config().baseUrl + '/document');
|
|
68
|
-
|
|
69
|
-
//test after save
|
|
70
|
-
cy.get('#page-document .listing-item:first-of-type').contains('My Page');
|
|
71
|
-
cy.get('#page-document .listing-item:first-of-type a').should(
|
|
72
|
-
'have.attr',
|
|
73
|
-
'href',
|
|
74
|
-
'/document/my-page',
|
|
75
|
-
);
|
|
76
|
-
});
|
|
77
|
-
});
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
context('Navigation Acceptance Tests', () => {
|
|
2
|
-
beforeEach(() => {
|
|
3
|
-
cy.intercept('GET', `/**/*?expand*`).as('content');
|
|
4
|
-
cy.intercept('GET', '/**/Document').as('schema');
|
|
5
|
-
|
|
6
|
-
// given a logged in editor and a page in edit mode
|
|
7
|
-
cy.autologin();
|
|
8
|
-
cy.visit('/');
|
|
9
|
-
cy.viewport('macbook-16');
|
|
10
|
-
|
|
11
|
-
cy.createContent({
|
|
12
|
-
contentType: 'Document',
|
|
13
|
-
contentId: 'level-1',
|
|
14
|
-
contentTitle: 'Level 1',
|
|
15
|
-
path: '/',
|
|
16
|
-
});
|
|
17
|
-
cy.createContent({
|
|
18
|
-
contentType: 'Document',
|
|
19
|
-
contentId: 'level-2',
|
|
20
|
-
contentTitle: 'Level 2',
|
|
21
|
-
path: '/level-1',
|
|
22
|
-
});
|
|
23
|
-
cy.createContent({
|
|
24
|
-
contentType: 'Document',
|
|
25
|
-
contentId: 'level-3',
|
|
26
|
-
contentTitle: 'Level 3',
|
|
27
|
-
path: '/level-1/level-2',
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
cy.visit('/');
|
|
31
|
-
cy.viewport('macbook-16');
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
it('includes 3rd level', function () {
|
|
35
|
-
cy.wait('@content');
|
|
36
|
-
cy.get('ul.desktop-menu button').contains('Level 1').click();
|
|
37
|
-
cy.get('#navigation').contains('Level 2');
|
|
38
|
-
cy.get('#navigation').contains('Level 3');
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
it('Open 2nd level', function () {
|
|
42
|
-
cy.wait('@content');
|
|
43
|
-
cy.get('ul.desktop-menu button').contains('Level 1').click();
|
|
44
|
-
cy.get('.subitem-wrapper').findByText('Level 2').click();
|
|
45
|
-
cy.get('.documentFirstHeading').should('have.text', 'Level 2');
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
it('Open 3rd level', function () {
|
|
49
|
-
cy.wait('@content');
|
|
50
|
-
cy.get('ul.desktop-menu button').contains('Level 1').click();
|
|
51
|
-
cy.get('.subsubitem-wrapper').findByText('Level 3').click();
|
|
52
|
-
cy.get('.documentFirstHeading').should('have.text', 'Level 3');
|
|
53
|
-
});
|
|
54
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const { defineConfig } = require('cypress');
|
|
2
|
-
|
|
3
|
-
module.exports = defineConfig({
|
|
4
|
-
viewportWidth: 1280,
|
|
5
|
-
e2e: {
|
|
6
|
-
baseUrl: 'http://localhost:3000',
|
|
7
|
-
specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}',
|
|
8
|
-
setupNodeEvents(on, config) {
|
|
9
|
-
on('task', {
|
|
10
|
-
table(message) {
|
|
11
|
-
console.table(message);
|
|
12
|
-
return null;
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
});
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
version: "3"
|
|
2
|
-
|
|
3
|
-
services:
|
|
4
|
-
|
|
5
|
-
addon-dev:
|
|
6
|
-
build:
|
|
7
|
-
context: ../
|
|
8
|
-
dockerfile: ./dockerfiles/Dockerfile.acceptance
|
|
9
|
-
args:
|
|
10
|
-
ADDON_NAME: "${ADDON_NAME}"
|
|
11
|
-
ADDON_PATH: "${ADDON_PATH}"
|
|
12
|
-
VOLTO_VERSION: ${VOLTO_VERSION:-17}
|
|
13
|
-
volumes:
|
|
14
|
-
- ${CURRENT_DIR}:/app/src/addons/${ADDON_PATH}/
|
|
15
|
-
environment:
|
|
16
|
-
RAZZLE_INTERNAL_API_PATH: http://backend-acceptance-a11y:8080/Plone
|
|
17
|
-
RAZZLE_API_PATH: http://localhost:8080/Plone
|
|
18
|
-
HOST: 0.0.0.0
|
|
19
|
-
ports:
|
|
20
|
-
- 3000:3000
|
|
21
|
-
- 3001:3001
|
|
22
|
-
tty: true
|
|
23
|
-
depends_on:
|
|
24
|
-
- backend-acceptance-a11y
|
|
25
|
-
profiles:
|
|
26
|
-
- dev
|
|
27
|
-
|
|
28
|
-
addon-acceptance:
|
|
29
|
-
build:
|
|
30
|
-
context: ../
|
|
31
|
-
dockerfile: ./dockerfiles/Dockerfile
|
|
32
|
-
args:
|
|
33
|
-
ADDON_NAME: "${ADDON_NAME}"
|
|
34
|
-
ADDON_PATH: "${ADDON_PATH}"
|
|
35
|
-
VOLTO_VERSION: ${VOLTO_VERSION:-17}
|
|
36
|
-
environment:
|
|
37
|
-
RAZZLE_INTERNAL_API_PATH: http://backend-acceptance-a11y:8080/Plone
|
|
38
|
-
RAZZLE_API_PATH: http://localhost:8080/Plone
|
|
39
|
-
HOST: 0.0.0.0
|
|
40
|
-
ports:
|
|
41
|
-
- 3000:3000
|
|
42
|
-
depends_on:
|
|
43
|
-
- backend-acceptance-a11y
|
|
44
|
-
profiles:
|
|
45
|
-
- prod
|
|
46
|
-
|
|
47
|
-
backend-acceptance-a11y:
|
|
48
|
-
image: ghcr.io/kitconcept/voltolighttheme:latest
|
|
49
|
-
environment:
|
|
50
|
-
CORS_: true
|
|
51
|
-
ports:
|
|
52
|
-
- 8080:8080
|
|
53
|
-
profiles:
|
|
54
|
-
- dev
|
|
55
|
-
- prod
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
version: "3"
|
|
2
|
-
|
|
3
|
-
services:
|
|
4
|
-
|
|
5
|
-
addon-dev:
|
|
6
|
-
build:
|
|
7
|
-
context: ../
|
|
8
|
-
dockerfile: ./dockerfiles/Dockerfile.acceptance
|
|
9
|
-
args:
|
|
10
|
-
ADDON_NAME: "${ADDON_NAME}"
|
|
11
|
-
ADDON_PATH: "${ADDON_PATH}"
|
|
12
|
-
VOLTO_VERSION: ${VOLTO_VERSION:-17}
|
|
13
|
-
volumes:
|
|
14
|
-
- ${CURRENT_DIR}:/app/src/addons/${ADDON_PATH}/
|
|
15
|
-
environment:
|
|
16
|
-
RAZZLE_INTERNAL_API_PATH: http://backend-acceptance:55001/plone
|
|
17
|
-
RAZZLE_API_PATH: http://localhost:55001/plone
|
|
18
|
-
HOST: 0.0.0.0
|
|
19
|
-
ports:
|
|
20
|
-
- 3000:3000
|
|
21
|
-
- 3001:3001
|
|
22
|
-
tty: true
|
|
23
|
-
depends_on:
|
|
24
|
-
- backend-acceptance
|
|
25
|
-
profiles:
|
|
26
|
-
- dev
|
|
27
|
-
|
|
28
|
-
addon-acceptance:
|
|
29
|
-
build:
|
|
30
|
-
context: ../
|
|
31
|
-
dockerfile: ./dockerfiles/Dockerfile
|
|
32
|
-
args:
|
|
33
|
-
ADDON_NAME: "${ADDON_NAME}"
|
|
34
|
-
ADDON_PATH: "${ADDON_PATH}"
|
|
35
|
-
VOLTO_VERSION: ${VOLTO_VERSION:-17}
|
|
36
|
-
environment:
|
|
37
|
-
RAZZLE_INTERNAL_API_PATH: http://backend-acceptance:55001/plone
|
|
38
|
-
RAZZLE_API_PATH: http://localhost:55001/plone
|
|
39
|
-
HOST: 0.0.0.0
|
|
40
|
-
ports:
|
|
41
|
-
- 3000:3000
|
|
42
|
-
depends_on:
|
|
43
|
-
- backend-acceptance
|
|
44
|
-
profiles:
|
|
45
|
-
- prod
|
|
46
|
-
|
|
47
|
-
backend-acceptance:
|
|
48
|
-
image: plone/server-acceptance:${PLONE_VERSION:-6}
|
|
49
|
-
ports:
|
|
50
|
-
- 55001:55001
|
|
51
|
-
profiles:
|
|
52
|
-
- dev
|
|
53
|
-
- prod
|