@kitconcept/core 1.0.0-alpha.1
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 +10 -0
- package/.release-it.json +31 -0
- package/CHANGELOG.md +18 -0
- package/README.md +195 -0
- package/babel.config.js +17 -0
- package/locales/de/LC_MESSAGES/volto.po +42 -0
- package/locales/en/LC_MESSAGES/volto.po +42 -0
- package/locales/es/LC_MESSAGES/volto.po +49 -0
- package/locales/pt_BR/LC_MESSAGES/volto.po +47 -0
- package/locales/volto.pot +44 -0
- package/news/.gitkeep +0 -0
- package/package.json +62 -0
- package/public/.gitkeep +0 -0
- package/src/components/.gitkeep +0 -0
- package/src/components/Controlpanels/VersionOverview.jsx +166 -0
- package/src/config/settings.ts +8 -0
- package/src/customizations/volto/components/manage/Controlpanels/VersionOverview.jsx +7 -0
- package/src/index.ts +10 -0
- package/src/theme/_main.scss +2 -0
- package/src/theme/_variables.scss +0 -0
- package/src/theme/components/_version_overview.scss +3 -0
- package/towncrier.toml +33 -0
- package/tsconfig.json +30 -0
package/.changelog.draft
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
## 1.0.0-alpha.1 (2025-05-09)
|
|
2
|
+
|
|
3
|
+
### Feature
|
|
4
|
+
|
|
5
|
+
- Add @kitconcept/volto-light-theme as dependency. @ericof
|
|
6
|
+
- Add @plonegovbr/socialmedia as dependency. @ericof
|
|
7
|
+
- Add volto-form-block as dependency. @ericof
|
|
8
|
+
- Use @plone/volto version 18.19.0 @ericof
|
|
9
|
+
|
|
10
|
+
|
package/.release-it.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"plugins": {
|
|
3
|
+
"../../core/packages/scripts/prepublish.js": {}
|
|
4
|
+
},
|
|
5
|
+
"hooks": {
|
|
6
|
+
"after:bump": [
|
|
7
|
+
"pipx run towncrier build --draft --yes --version ${version} > .changelog.draft",
|
|
8
|
+
"pipx run towncrier build --yes --version ${version}",
|
|
9
|
+
"cp ../../README.md ./ && cp CHANGELOG.md ../../CHANGELOG.md",
|
|
10
|
+
"python3 -c 'import json; data = json.load(open(\"../../package.json\")); data[\"version\"] = \"${version}\"; json.dump(data, open(\"../../package.json\", \"w\"), indent=2)'",
|
|
11
|
+
"git add ../../CHANGELOG.md ../../package.json"
|
|
12
|
+
],
|
|
13
|
+
"after:release": "rm .changelog.draft README.md"
|
|
14
|
+
},
|
|
15
|
+
"npm": {
|
|
16
|
+
"publish": false
|
|
17
|
+
},
|
|
18
|
+
"git": {
|
|
19
|
+
"changelog": "pipx run towncrier build --draft --yes --version 0.0.0",
|
|
20
|
+
"requireUpstream": false,
|
|
21
|
+
"requireCleanWorkingDir": false,
|
|
22
|
+
"commitMessage": "Release ${version}",
|
|
23
|
+
"tagName": "${version}",
|
|
24
|
+
"tagAnnotation": "Release ${version}"
|
|
25
|
+
},
|
|
26
|
+
"github": {
|
|
27
|
+
"release": true,
|
|
28
|
+
"releaseName": "${version}",
|
|
29
|
+
"releaseNotes": "cat .changelog.draft"
|
|
30
|
+
}
|
|
31
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
<!-- You should *NOT* be adding new change log entries to this file.
|
|
4
|
+
You should create a file in the news directory instead.
|
|
5
|
+
For helpful instructions, please see:
|
|
6
|
+
https://6.docs.plone.org/contributing/index.html#contributing-change-log-label
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
<!-- towncrier release notes start -->
|
|
10
|
+
|
|
11
|
+
## 1.0.0-alpha.1 (2025-05-09)
|
|
12
|
+
|
|
13
|
+
### Feature
|
|
14
|
+
|
|
15
|
+
- Add @kitconcept/volto-light-theme as dependency. @ericof
|
|
16
|
+
- Add @plonegovbr/socialmedia as dependency. @ericof
|
|
17
|
+
- Add volto-form-block as dependency. @ericof
|
|
18
|
+
- Use @plone/volto version 18.19.0 @ericof
|
package/README.md
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
# kitconcept.core (core)
|
|
2
|
+
|
|
3
|
+
Core setup for kitconcept GmbH distributions built on top of Plone
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/core)
|
|
6
|
+
[](https://kitconcept.github.io/core/)
|
|
7
|
+
[](https://github.com/kitconcept/kitconcept-core/actions/workflows/main.yml)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Features
|
|
11
|
+
|
|
12
|
+
<!-- List your awesome features here -->
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
To install your project, you must choose the method appropriate to your version of Volto.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Volto 18 and later
|
|
20
|
+
|
|
21
|
+
Add `core` to your `package.json`.
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"core": "*"
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Add `core` to your `volto.config.js`.
|
|
30
|
+
|
|
31
|
+
```javascript
|
|
32
|
+
const addons = ['core'];
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
If this package provides a Volto theme, and you want to activate it, then add the following to your `volto.config.js`.
|
|
36
|
+
|
|
37
|
+
```javascript
|
|
38
|
+
const theme = 'core';
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Volto 17 and earlier
|
|
42
|
+
|
|
43
|
+
Create a new Volto project.
|
|
44
|
+
You can skip this step if you already have one.
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
npm install -g yo @plone/generator-volto
|
|
48
|
+
yo @plone/volto my-volto-project --addon core
|
|
49
|
+
cd my-volto-project
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Add `core` to your `package.json`.
|
|
53
|
+
|
|
54
|
+
```JSON
|
|
55
|
+
"addons": [
|
|
56
|
+
"core"
|
|
57
|
+
],
|
|
58
|
+
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"core": "*"
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Download and install the new add-on.
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
yarn install
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Start Volto.
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
yarn start
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Test installation
|
|
77
|
+
|
|
78
|
+
Visit http://localhost:3000/ in a browser, login, and check the awesome new features.
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## Development
|
|
82
|
+
|
|
83
|
+
The development of this add-on is done in isolation using pnpm workspaces, the latest `mrs-developer`, and other Volto core improvements.
|
|
84
|
+
For these reasons, it only works with pnpm and Volto 18.
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### Prerequisites ✅
|
|
88
|
+
|
|
89
|
+
- An [operating system](https://6.docs.plone.org/install/create-project-cookieplone.html#prerequisites-for-installation) that runs all the requirements mentioned.
|
|
90
|
+
- [nvm](https://6.docs.plone.org/install/create-project-cookieplone.html#nvm)
|
|
91
|
+
- [Node.js and pnpm](https://6.docs.plone.org/install/create-project.html#node-js) 22
|
|
92
|
+
- [Make](https://6.docs.plone.org/install/create-project-cookieplone.html#make)
|
|
93
|
+
- [Git](https://6.docs.plone.org/install/create-project-cookieplone.html#git)
|
|
94
|
+
- [Docker](https://docs.docker.com/get-started/get-docker/) (optional)
|
|
95
|
+
|
|
96
|
+
### Installation 🔧
|
|
97
|
+
|
|
98
|
+
1. Clone this repository, then change your working directory.
|
|
99
|
+
|
|
100
|
+
```shell
|
|
101
|
+
git clone git@github.com:kitconcept/kitconcept-core.git
|
|
102
|
+
cd kitconcept-core/frontend
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
2. Install this code base.
|
|
106
|
+
|
|
107
|
+
```shell
|
|
108
|
+
make install
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Make convenience commands
|
|
113
|
+
|
|
114
|
+
Run `make help` to list the available Make commands.
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Set up development environment
|
|
118
|
+
|
|
119
|
+
Install package requirements.
|
|
120
|
+
|
|
121
|
+
```shell
|
|
122
|
+
make install
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Start developing
|
|
126
|
+
|
|
127
|
+
Start the backend.
|
|
128
|
+
|
|
129
|
+
```shell
|
|
130
|
+
make backend-docker-start
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
In a separate terminal session, start the frontend.
|
|
134
|
+
|
|
135
|
+
```shell
|
|
136
|
+
make start
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Lint code
|
|
140
|
+
|
|
141
|
+
Run ESlint, Prettier, and Stylelint in analyze mode.
|
|
142
|
+
|
|
143
|
+
```shell
|
|
144
|
+
make lint
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Format code
|
|
148
|
+
|
|
149
|
+
Run ESlint, Prettier, and Stylelint in fix mode.
|
|
150
|
+
|
|
151
|
+
```shell
|
|
152
|
+
make format
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### i18n
|
|
156
|
+
|
|
157
|
+
Extract the i18n messages to locales.
|
|
158
|
+
|
|
159
|
+
```shell
|
|
160
|
+
make i18n
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Unit tests
|
|
164
|
+
|
|
165
|
+
Run unit tests.
|
|
166
|
+
|
|
167
|
+
```shell
|
|
168
|
+
make test
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### Run Cypress tests
|
|
172
|
+
|
|
173
|
+
Run each of these steps in separate terminal sessions.
|
|
174
|
+
|
|
175
|
+
In the first session, start the frontend in development mode.
|
|
176
|
+
|
|
177
|
+
```shell
|
|
178
|
+
make acceptance-frontend-dev-start
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
In the second session, start the backend acceptance server.
|
|
182
|
+
|
|
183
|
+
```shell
|
|
184
|
+
make acceptance-backend-start
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
In the third session, start the Cypress interactive test runner.
|
|
188
|
+
|
|
189
|
+
```shell
|
|
190
|
+
make acceptance-test
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## License
|
|
194
|
+
|
|
195
|
+
The project is licensed under the MIT license.
|
package/babel.config.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module.exports = function (api) {
|
|
2
|
+
api.cache(true);
|
|
3
|
+
const presets = ['razzle'];
|
|
4
|
+
const plugins = [
|
|
5
|
+
[
|
|
6
|
+
'react-intl', // React Intl extractor, required for the whole i18n infrastructure to work
|
|
7
|
+
{
|
|
8
|
+
messagesDir: './build/messages/',
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
return {
|
|
14
|
+
plugins,
|
|
15
|
+
presets,
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: \n"
|
|
4
|
+
"Report-Msgid-Bugs-To: \n"
|
|
5
|
+
"POT-Creation-Date: \n"
|
|
6
|
+
"PO-Revision-Date: \n"
|
|
7
|
+
"Last-Translator: \n"
|
|
8
|
+
"Language: de\n"
|
|
9
|
+
"Language-Team: \n"
|
|
10
|
+
"Content-Type: \n"
|
|
11
|
+
"Content-Transfer-Encoding: \n"
|
|
12
|
+
"Plural-Forms: \n"
|
|
13
|
+
|
|
14
|
+
#. Default: "Add-ons"
|
|
15
|
+
#: components/Controlpanels/VersionOverview
|
|
16
|
+
msgid "Add-ons"
|
|
17
|
+
msgstr ""
|
|
18
|
+
|
|
19
|
+
#. Default: "No addons found"
|
|
20
|
+
#: components/Controlpanels/VersionOverview
|
|
21
|
+
msgid "No addons found"
|
|
22
|
+
msgstr ""
|
|
23
|
+
|
|
24
|
+
#. Default: "Package Version"
|
|
25
|
+
#: components/Controlpanels/VersionOverview
|
|
26
|
+
msgid "Package Version"
|
|
27
|
+
msgstr ""
|
|
28
|
+
|
|
29
|
+
#. Default: "Profile Version (File system)"
|
|
30
|
+
#: components/Controlpanels/VersionOverview
|
|
31
|
+
msgid "Profile Version (File system)"
|
|
32
|
+
msgstr ""
|
|
33
|
+
|
|
34
|
+
#. Default: "Profile Version (Installed)"
|
|
35
|
+
#: components/Controlpanels/VersionOverview
|
|
36
|
+
msgid "Profile Version (Installed)"
|
|
37
|
+
msgstr ""
|
|
38
|
+
|
|
39
|
+
#. Default: "You are running in 'debug mode'. This mode is intended for sites that are under development. This allows many configuration changes to be immediately visible, but will make your site run more slowly. To turn off debug mode, stop the server, set 'debug-mode=off' in your buildout.cfg, re-run bin/buildout and then restart the server process."
|
|
40
|
+
#: components/Controlpanels/VersionOverview
|
|
41
|
+
msgid "Warning Regarding debug mode"
|
|
42
|
+
msgstr ""
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: \n"
|
|
4
|
+
"Report-Msgid-Bugs-To: \n"
|
|
5
|
+
"POT-Creation-Date: \n"
|
|
6
|
+
"PO-Revision-Date: \n"
|
|
7
|
+
"Last-Translator: \n"
|
|
8
|
+
"Language: en\n"
|
|
9
|
+
"Language-Team: \n"
|
|
10
|
+
"Content-Type: \n"
|
|
11
|
+
"Content-Transfer-Encoding: \n"
|
|
12
|
+
"Plural-Forms: \n"
|
|
13
|
+
|
|
14
|
+
#. Default: "Add-ons"
|
|
15
|
+
#: components/Controlpanels/VersionOverview
|
|
16
|
+
msgid "Add-ons"
|
|
17
|
+
msgstr ""
|
|
18
|
+
|
|
19
|
+
#. Default: "No addons found"
|
|
20
|
+
#: components/Controlpanels/VersionOverview
|
|
21
|
+
msgid "No addons found"
|
|
22
|
+
msgstr ""
|
|
23
|
+
|
|
24
|
+
#. Default: "Package Version"
|
|
25
|
+
#: components/Controlpanels/VersionOverview
|
|
26
|
+
msgid "Package Version"
|
|
27
|
+
msgstr ""
|
|
28
|
+
|
|
29
|
+
#. Default: "Profile Version (File system)"
|
|
30
|
+
#: components/Controlpanels/VersionOverview
|
|
31
|
+
msgid "Profile Version (File system)"
|
|
32
|
+
msgstr ""
|
|
33
|
+
|
|
34
|
+
#. Default: "Profile Version (Installed)"
|
|
35
|
+
#: components/Controlpanels/VersionOverview
|
|
36
|
+
msgid "Profile Version (Installed)"
|
|
37
|
+
msgstr ""
|
|
38
|
+
|
|
39
|
+
#. Default: "You are running in 'debug mode'. This mode is intended for sites that are under development. This allows many configuration changes to be immediately visible, but will make your site run more slowly. To turn off debug mode, stop the server, set 'debug-mode=off' in your buildout.cfg, re-run bin/buildout and then restart the server process."
|
|
40
|
+
#: components/Controlpanels/VersionOverview
|
|
41
|
+
msgid "Warning Regarding debug mode"
|
|
42
|
+
msgstr ""
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: Plone\n"
|
|
4
|
+
"Report-Msgid-Bugs-To: \n"
|
|
5
|
+
"POT-Creation-Date: 2023-05-09 11:45-0400\n"
|
|
6
|
+
"PO-Revision-Date: 2023-05-10 11:34-0400\n"
|
|
7
|
+
"Last-Translator: Leonardo J. Caballero G. <leonardocaballero@gmail.com>\n"
|
|
8
|
+
"Language: es\n"
|
|
9
|
+
"Language-Team: ES <LL@li.org>\n"
|
|
10
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
11
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
12
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
13
|
+
"Preferred-Encodings: utf-8\n"
|
|
14
|
+
"MIME-Version: 1.0\n"
|
|
15
|
+
"Language-Code: es\n"
|
|
16
|
+
"Language-Name: Español\n"
|
|
17
|
+
"Domain: volto\n"
|
|
18
|
+
"X-Is-Fallback-For: es-ar es-bo es-cl es-co es-cr es-do es-ec es-es es-sv es-gt es-hn es-mx es-ni es-pa es-py es-pe es-pr es-us es-uy es-ve\n"
|
|
19
|
+
"X-Generator: Poedit 2.2.1\n"
|
|
20
|
+
|
|
21
|
+
#. Default: "Add-ons"
|
|
22
|
+
#: components/Controlpanels/VersionOverview
|
|
23
|
+
msgid "Add-ons"
|
|
24
|
+
msgstr ""
|
|
25
|
+
|
|
26
|
+
#. Default: "No addons found"
|
|
27
|
+
#: components/Controlpanels/VersionOverview
|
|
28
|
+
msgid "No addons found"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
#. Default: "Package Version"
|
|
32
|
+
#: components/Controlpanels/VersionOverview
|
|
33
|
+
msgid "Package Version"
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
36
|
+
#. Default: "Profile Version (File system)"
|
|
37
|
+
#: components/Controlpanels/VersionOverview
|
|
38
|
+
msgid "Profile Version (File system)"
|
|
39
|
+
msgstr ""
|
|
40
|
+
|
|
41
|
+
#. Default: "Profile Version (Installed)"
|
|
42
|
+
#: components/Controlpanels/VersionOverview
|
|
43
|
+
msgid "Profile Version (Installed)"
|
|
44
|
+
msgstr ""
|
|
45
|
+
|
|
46
|
+
#. Default: "You are running in 'debug mode'. This mode is intended for sites that are under development. This allows many configuration changes to be immediately visible, but will make your site run more slowly. To turn off debug mode, stop the server, set 'debug-mode=off' in your buildout.cfg, re-run bin/buildout and then restart the server process."
|
|
47
|
+
#: components/Controlpanels/VersionOverview
|
|
48
|
+
msgid "Warning Regarding debug mode"
|
|
49
|
+
msgstr ""
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: Plone\n"
|
|
4
|
+
"Report-Msgid-Bugs-To: \n"
|
|
5
|
+
"POT-Creation-Date: 2023-04-06T16:01:32.969Z\n"
|
|
6
|
+
"PO-Revision-Date: \n"
|
|
7
|
+
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
8
|
+
"Language: \n"
|
|
9
|
+
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
10
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
11
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
12
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
13
|
+
"MIME-Version: 1.0\n"
|
|
14
|
+
"Language-Code: pt_BR\n"
|
|
15
|
+
"Language-Name: Português do Brasil\n"
|
|
16
|
+
"Preferred-Encodings: utf-8\n"
|
|
17
|
+
"Domain: volto\n"
|
|
18
|
+
|
|
19
|
+
#. Default: "Add-ons"
|
|
20
|
+
#: components/Controlpanels/VersionOverview
|
|
21
|
+
msgid "Add-ons"
|
|
22
|
+
msgstr ""
|
|
23
|
+
|
|
24
|
+
#. Default: "No addons found"
|
|
25
|
+
#: components/Controlpanels/VersionOverview
|
|
26
|
+
msgid "No addons found"
|
|
27
|
+
msgstr ""
|
|
28
|
+
|
|
29
|
+
#. Default: "Package Version"
|
|
30
|
+
#: components/Controlpanels/VersionOverview
|
|
31
|
+
msgid "Package Version"
|
|
32
|
+
msgstr ""
|
|
33
|
+
|
|
34
|
+
#. Default: "Profile Version (File system)"
|
|
35
|
+
#: components/Controlpanels/VersionOverview
|
|
36
|
+
msgid "Profile Version (File system)"
|
|
37
|
+
msgstr ""
|
|
38
|
+
|
|
39
|
+
#. Default: "Profile Version (Installed)"
|
|
40
|
+
#: components/Controlpanels/VersionOverview
|
|
41
|
+
msgid "Profile Version (Installed)"
|
|
42
|
+
msgstr ""
|
|
43
|
+
|
|
44
|
+
#. Default: "You are running in 'debug mode'. This mode is intended for sites that are under development. This allows many configuration changes to be immediately visible, but will make your site run more slowly. To turn off debug mode, stop the server, set 'debug-mode=off' in your buildout.cfg, re-run bin/buildout and then restart the server process."
|
|
45
|
+
#: components/Controlpanels/VersionOverview
|
|
46
|
+
msgid "Warning Regarding debug mode"
|
|
47
|
+
msgstr ""
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: Plone\n"
|
|
4
|
+
"POT-Creation-Date: 2025-04-28T17:31:27.834Z\n"
|
|
5
|
+
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
6
|
+
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
7
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
8
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
9
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
10
|
+
"MIME-Version: 1.0\n"
|
|
11
|
+
"Language-Code: en\n"
|
|
12
|
+
"Language-Name: English\n"
|
|
13
|
+
"Preferred-Encodings: utf-8\n"
|
|
14
|
+
"Domain: volto\n"
|
|
15
|
+
|
|
16
|
+
#. Default: "Add-ons"
|
|
17
|
+
#: components/Controlpanels/VersionOverview
|
|
18
|
+
msgid "Add-ons"
|
|
19
|
+
msgstr ""
|
|
20
|
+
|
|
21
|
+
#. Default: "No addons found"
|
|
22
|
+
#: components/Controlpanels/VersionOverview
|
|
23
|
+
msgid "No addons found"
|
|
24
|
+
msgstr ""
|
|
25
|
+
|
|
26
|
+
#. Default: "Package Version"
|
|
27
|
+
#: components/Controlpanels/VersionOverview
|
|
28
|
+
msgid "Package Version"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
#. Default: "Profile Version (File system)"
|
|
32
|
+
#: components/Controlpanels/VersionOverview
|
|
33
|
+
msgid "Profile Version (File system)"
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
36
|
+
#. Default: "Profile Version (Installed)"
|
|
37
|
+
#: components/Controlpanels/VersionOverview
|
|
38
|
+
msgid "Profile Version (Installed)"
|
|
39
|
+
msgstr ""
|
|
40
|
+
|
|
41
|
+
#. Default: "You are running in 'debug mode'. This mode is intended for sites that are under development. This allows many configuration changes to be immediately visible, but will make your site run more slowly. To turn off debug mode, stop the server, set 'debug-mode=off' in your buildout.cfg, re-run bin/buildout and then restart the server process."
|
|
42
|
+
#: components/Controlpanels/VersionOverview
|
|
43
|
+
msgid "Warning Regarding debug mode"
|
|
44
|
+
msgstr ""
|
package/news/.gitkeep
ADDED
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kitconcept/core",
|
|
3
|
+
"version": "1.0.0-alpha.1",
|
|
4
|
+
"description": "Core setup for kitconcept GmbH distributions built on top of Plone",
|
|
5
|
+
"main": "src/index.ts",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"volto-addon",
|
|
9
|
+
"volto",
|
|
10
|
+
"plone",
|
|
11
|
+
"react"
|
|
12
|
+
],
|
|
13
|
+
"author": "kitconcept GmbH",
|
|
14
|
+
"homepage": "https://github.com/kitconcept/kitconcept-core#readme",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git@github.com:kitconcept/kitconcept-core"
|
|
18
|
+
},
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"addons": [
|
|
23
|
+
"@eeacms/volto-accordion-block",
|
|
24
|
+
"@kitconcept/volto-banner-block",
|
|
25
|
+
"@kitconcept/volto-button-block",
|
|
26
|
+
"@kitconcept/volto-heading-block",
|
|
27
|
+
"@kitconcept/volto-highlight-block",
|
|
28
|
+
"@kitconcept/volto-introduction-block",
|
|
29
|
+
"@kitconcept/volto-separator-block",
|
|
30
|
+
"@kitconcept/volto-slider-block",
|
|
31
|
+
"@mbarde/volto-image-crop-widget",
|
|
32
|
+
"@plonegovbr/volto-social-media",
|
|
33
|
+
"@plone-collective/volto-authomatic",
|
|
34
|
+
"volto-form-block",
|
|
35
|
+
"@kitconcept/volto-light-theme"
|
|
36
|
+
],
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@plone-collective/volto-authomatic": "3.0.0-alpha.1",
|
|
39
|
+
"@kitconcept/volto-light-theme": "6.0.0-alpha.24",
|
|
40
|
+
"@mbarde/volto-image-crop-widget": "^0.5.1",
|
|
41
|
+
"@plonegovbr/volto-social-media": "^2.0.0-alpha.5",
|
|
42
|
+
"volto-form-block": "^3.12.0",
|
|
43
|
+
"@kitconcept/volto-banner-block": "^1.0.1",
|
|
44
|
+
"@plone/components": "3.0.2"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"react": "18.2.0",
|
|
48
|
+
"react-dom": "18.2.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@plone/scripts": "^3.6.1",
|
|
52
|
+
"release-it": "^17.1.1",
|
|
53
|
+
"@plone/types": "1.4.4"
|
|
54
|
+
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"i18n": "rm -rf build/messages && NODE_ENV=production i18n --addon",
|
|
57
|
+
"dry-release": "release-it --dry-run",
|
|
58
|
+
"release": "release-it",
|
|
59
|
+
"release-major-alpha": "release-it major --preRelease=alpha",
|
|
60
|
+
"release-alpha": "release-it --preRelease=alpha"
|
|
61
|
+
}
|
|
62
|
+
}
|
package/public/.gitkeep
ADDED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormattedMessage } from 'react-intl';
|
|
3
|
+
import isEmpty from 'lodash/isEmpty';
|
|
4
|
+
|
|
5
|
+
import voltoPackageJson from '@plone/volto/../package.json';
|
|
6
|
+
|
|
7
|
+
import { defineMessages, useIntl } from 'react-intl';
|
|
8
|
+
import config from '@plone/volto/registry';
|
|
9
|
+
|
|
10
|
+
const messages = defineMessages({
|
|
11
|
+
addons: {
|
|
12
|
+
id: 'Add-ons',
|
|
13
|
+
defaultMessage: 'Add-ons',
|
|
14
|
+
},
|
|
15
|
+
no_addons: {
|
|
16
|
+
id: 'No addons found',
|
|
17
|
+
defaultMessage: 'No addons found',
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const voltoVersion = voltoPackageJson.version;
|
|
22
|
+
|
|
23
|
+
const DistributionInfo = (systemInformation) => {
|
|
24
|
+
const { distribution } = systemInformation;
|
|
25
|
+
const { name, title, package_name, package_version } = distribution;
|
|
26
|
+
return (
|
|
27
|
+
<section className="version-group">
|
|
28
|
+
<h3>
|
|
29
|
+
{title} ({name})
|
|
30
|
+
</h3>
|
|
31
|
+
<ul
|
|
32
|
+
style={{
|
|
33
|
+
fontSize: '16px',
|
|
34
|
+
fontFamily: 'Monospace',
|
|
35
|
+
paddingLeft: '1rem',
|
|
36
|
+
}}
|
|
37
|
+
>
|
|
38
|
+
<li>
|
|
39
|
+
{package_name} ({package_version})
|
|
40
|
+
</li>
|
|
41
|
+
</ul>
|
|
42
|
+
</section>
|
|
43
|
+
);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const BackendInfo = (systemInformation) => {
|
|
47
|
+
const {
|
|
48
|
+
cmf_version,
|
|
49
|
+
debug_mode,
|
|
50
|
+
pil_version,
|
|
51
|
+
plone_version,
|
|
52
|
+
core,
|
|
53
|
+
plone_restapi_version,
|
|
54
|
+
plone_volto_version,
|
|
55
|
+
python_version,
|
|
56
|
+
zope_version,
|
|
57
|
+
} = systemInformation;
|
|
58
|
+
const {
|
|
59
|
+
name,
|
|
60
|
+
version,
|
|
61
|
+
profile_version_installed,
|
|
62
|
+
profile_version_file_system,
|
|
63
|
+
} = core;
|
|
64
|
+
return (
|
|
65
|
+
<section className="version-group">
|
|
66
|
+
<h3>Backend</h3>
|
|
67
|
+
<ul
|
|
68
|
+
style={{
|
|
69
|
+
fontSize: '16px',
|
|
70
|
+
fontFamily: 'Monospace',
|
|
71
|
+
paddingLeft: '1rem',
|
|
72
|
+
}}
|
|
73
|
+
>
|
|
74
|
+
<li>
|
|
75
|
+
{name}
|
|
76
|
+
<ul>
|
|
77
|
+
<li>
|
|
78
|
+
<FormattedMessage
|
|
79
|
+
id="Package Version"
|
|
80
|
+
defaultMessage="Package Version"
|
|
81
|
+
/>
|
|
82
|
+
: {version}
|
|
83
|
+
</li>
|
|
84
|
+
<li>
|
|
85
|
+
<FormattedMessage
|
|
86
|
+
id="Profile Version (Installed)"
|
|
87
|
+
defaultMessage="Profile Version (Installed)"
|
|
88
|
+
/>
|
|
89
|
+
: {profile_version_installed}
|
|
90
|
+
</li>
|
|
91
|
+
<li>
|
|
92
|
+
<FormattedMessage
|
|
93
|
+
id="Profile Version (File system)"
|
|
94
|
+
defaultMessage="Profile Version (File system)"
|
|
95
|
+
/>
|
|
96
|
+
: {profile_version_file_system}
|
|
97
|
+
</li>
|
|
98
|
+
</ul>
|
|
99
|
+
</li>
|
|
100
|
+
<li>Plone {plone_version}</li>
|
|
101
|
+
<li>plone.volto {plone_volto_version}</li>
|
|
102
|
+
<li>plone.restapi {plone_restapi_version}</li>
|
|
103
|
+
<li>CMF {cmf_version}</li>
|
|
104
|
+
<li>Zope {zope_version}</li>
|
|
105
|
+
<li>Python {python_version}</li>
|
|
106
|
+
<li>PIL {pil_version}</li>
|
|
107
|
+
</ul>
|
|
108
|
+
{debug_mode !== 'No' && (
|
|
109
|
+
<p>
|
|
110
|
+
<FormattedMessage
|
|
111
|
+
id="Warning Regarding debug mode"
|
|
112
|
+
defaultMessage="You are running in 'debug mode'. This mode is intended for sites that are under development. This allows many configuration changes to be immediately visible, but will make your site run more slowly. To turn off debug mode, stop the server, set 'debug-mode=off' in your buildout.cfg, re-run bin/buildout and then restart the server process."
|
|
113
|
+
/>
|
|
114
|
+
</p>
|
|
115
|
+
)}
|
|
116
|
+
</section>
|
|
117
|
+
);
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
const FrontendInfo = () => {
|
|
121
|
+
const intl = useIntl();
|
|
122
|
+
const { addonsInfo, projectName, projectVersion } = config.settings;
|
|
123
|
+
const isProject =
|
|
124
|
+
projectName !== undefined && voltoPackageJson.name !== projectName;
|
|
125
|
+
return (
|
|
126
|
+
<section className="version-group">
|
|
127
|
+
<h3>Frontend</h3>
|
|
128
|
+
<ul
|
|
129
|
+
style={{
|
|
130
|
+
fontSize: '16px',
|
|
131
|
+
fontFamily: 'Monospace',
|
|
132
|
+
paddingLeft: '1rem',
|
|
133
|
+
}}
|
|
134
|
+
>
|
|
135
|
+
{isProject ? (
|
|
136
|
+
<li>
|
|
137
|
+
{projectName} {projectVersion}
|
|
138
|
+
</li>
|
|
139
|
+
) : null}
|
|
140
|
+
{voltoVersion && <li>Volto {voltoVersion}</li>}
|
|
141
|
+
</ul>
|
|
142
|
+
<h4>{intl.formatMessage(messages.addons)}</h4>
|
|
143
|
+
{isEmpty(addonsInfo) ? (
|
|
144
|
+
<p>{intl.formatMessage(messages.no_addons)}</p>
|
|
145
|
+
) : (
|
|
146
|
+
<ul style={{ fontSize: '16px', fontFamily: 'Monospace' }}>
|
|
147
|
+
{addonsInfo.map((addon) => (
|
|
148
|
+
<li key={addon.name}>{`${addon.name} ${addon.version || ''}`}</li>
|
|
149
|
+
))}
|
|
150
|
+
</ul>
|
|
151
|
+
)}
|
|
152
|
+
</section>
|
|
153
|
+
);
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
const VersionOverview = (systemInformation) => {
|
|
157
|
+
return (
|
|
158
|
+
<>
|
|
159
|
+
<DistributionInfo {...systemInformation} />
|
|
160
|
+
<BackendInfo {...systemInformation} />
|
|
161
|
+
<FrontendInfo {...systemInformation} />
|
|
162
|
+
</>
|
|
163
|
+
);
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export default VersionOverview;
|
package/src/index.ts
ADDED
|
File without changes
|
package/towncrier.toml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[tool.towncrier]
|
|
2
|
+
filename = "CHANGELOG.md"
|
|
3
|
+
directory = "news/"
|
|
4
|
+
title_format = "## {version} ({project_date})"
|
|
5
|
+
underlines = ["", "", ""]
|
|
6
|
+
template = "./node_modules/@plone/scripts/templates/towncrier_template.jinja"
|
|
7
|
+
start_string = "<!-- towncrier release notes start -->\n"
|
|
8
|
+
issue_format = "[#{issue}](https://github.com/kitconcept/kitconcept-core/issue/{issue})"
|
|
9
|
+
|
|
10
|
+
[[tool.towncrier.type]]
|
|
11
|
+
directory = "breaking"
|
|
12
|
+
name = "Breaking"
|
|
13
|
+
showcontent = true
|
|
14
|
+
|
|
15
|
+
[[tool.towncrier.type]]
|
|
16
|
+
directory = "feature"
|
|
17
|
+
name = "Feature"
|
|
18
|
+
showcontent = true
|
|
19
|
+
|
|
20
|
+
[[tool.towncrier.type]]
|
|
21
|
+
directory = "bugfix"
|
|
22
|
+
name = "Bugfix"
|
|
23
|
+
showcontent = true
|
|
24
|
+
|
|
25
|
+
[[tool.towncrier.type]]
|
|
26
|
+
directory = "internal"
|
|
27
|
+
name = "Internal"
|
|
28
|
+
showcontent = true
|
|
29
|
+
|
|
30
|
+
[[tool.towncrier.type]]
|
|
31
|
+
directory = "documentation"
|
|
32
|
+
name = "Documentation"
|
|
33
|
+
showcontent = true
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"esModuleInterop": true,
|
|
4
|
+
"skipLibCheck": true,
|
|
5
|
+
"target": "es2022",
|
|
6
|
+
"allowJs": true,
|
|
7
|
+
"resolveJsonModule": true,
|
|
8
|
+
"moduleDetection": "force",
|
|
9
|
+
"isolatedModules": true,
|
|
10
|
+
"verbatimModuleSyntax": true,
|
|
11
|
+
"module": "preserve",
|
|
12
|
+
"noEmit": true,
|
|
13
|
+
"lib": ["es2022", "dom", "dom.iterable"],
|
|
14
|
+
"jsx": "react-jsx",
|
|
15
|
+
"paths": {
|
|
16
|
+
"@plone/volto/*": ["../../core/packages/volto/src/*"],
|
|
17
|
+
"core/*": ["./src/*"]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"include": ["**/*.ts", "**/*.tsx"],
|
|
21
|
+
"exclude": [
|
|
22
|
+
"node_modules",
|
|
23
|
+
"build",
|
|
24
|
+
"public",
|
|
25
|
+
"coverage",
|
|
26
|
+
"**/*.test.{js,jsx,ts,tsx}",
|
|
27
|
+
"**/*.spec.{js,jsx,ts,tsx}",
|
|
28
|
+
"**/*.stories.{js,jsx,ts,tsx}"
|
|
29
|
+
]
|
|
30
|
+
}
|