Skip to content

Commit d6dd8cd

Browse files
authored
Ajustes de CSS (#3)
* Ajustes de CSS * Update i18n * Atualiza Dockerfile * Downgrade Volto to 18.7.0 * Ajusta headline * Atualiza Dockerfile
1 parent 82ac4e6 commit d6dd8cd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+6409
-9640
lines changed

frontend/.dockerignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

frontend/.eslintrc.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
const fs = require('fs');
22
const projectRootPath = __dirname;
3-
const AddonConfigurationRegistry = require('@plone/registry/src/addon-registry');
3+
const { AddonRegistry } = require('@plone/registry/addon-registry');
44

55
let coreLocation;
66
if (fs.existsSync(`${projectRootPath}/core`))
77
coreLocation = `${projectRootPath}/core`;
88
else if (fs.existsSync(`${projectRootPath}/../../core`))
99
coreLocation = `${projectRootPath}/../../core`;
1010

11-
const registry = new AddonConfigurationRegistry(
12-
`${coreLocation}/packages/volto`,
13-
);
11+
const { registry } = AddonRegistry.init(`${coreLocation}/packages/volto`);
1412

1513
// Extends ESlint configuration for adding the aliases to `src` directories in Volto addons
1614
const addonAliases = Object.keys(registry.packages).map((o) => [

frontend/.storybook/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ module.exports = {
107107
[],
108108
defaultRazzleOptions,
109109
);
110-
const AddonConfigurationRegistry = require('@plone/registry/src/addon-registry');
110+
const { AddonRegistry } = require('@plone/registry/addon-registry');
111111

112-
const registry = new AddonConfigurationRegistry(projectRootPath);
112+
const { registry } = AddonRegistry.init(projectRootPath);
113113

114114
config = lessPlugin({ registry }).modifyWebpackConfig({
115115
env: { target: 'web', dev: 'dev' },

frontend/Dockerfile

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
# syntax=docker/dockerfile:1
22
ARG VOLTO_VERSION
3-
FROM plone/frontend-builder:${VOLTO_VERSION} as builder
3+
FROM plone/frontend-builder:${VOLTO_VERSION} AS builder
44

55
COPY --chown=node packages/volto-pythonbrasil-site /app/packages/volto-pythonbrasil-site
66
COPY --chown=node volto.config.js /app/
77
COPY --chown=node package.json /app/package.json.temp
8+
COPY --chown=node mrs.developer.json /app/
9+
COPY --chown=node pnpm-workspace.yaml /app/
810

911
RUN --mount=type=cache,id=pnpm,target=/app/.pnpm-store,uid=1000 <<EOT
10-
python3 -c "import json; data = json.load(open('package.json.temp')); deps = data['dependencies']; data['dependencies'].update(deps); json.dump(data, open('package.json', 'w'), indent=2)"
11-
rm package.json.temp
12-
pnpm install && pnpm build:deps
13-
pnpm build
14-
pnpm install --prod
12+
set -e
13+
python3 -c "import json; orig_data = json.load(open('package.json.temp')); orig_deps = orig_data['dependencies']; data = json.load(open('package.json')); data['dependencies'].update(orig_deps); json.dump(data, open('package.json', 'w'), indent=2)"
14+
rm package.json.temp
15+
pnpm dlx mrs-developer missdev --no-config --fetch-https
16+
pnpm install && pnpm build:deps
17+
pnpm build
18+
pnpm install --prod
1519
EOT
1620

1721
FROM plone/frontend-prod-config:${VOLTO_VERSION}
@@ -22,3 +26,10 @@ LABEL maintainer="PloneGov-BR <[email protected]>" \
2226
org.label-schema.vendor="PloneGov-BR"
2327

2428
COPY --from=builder /app/ /app/
29+
30+
RUN <<EOT
31+
set -e
32+
corepack enable pnpm
33+
corepack use [email protected]
34+
corepack prepare [email protected] --activate
35+
EOT

frontend/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
Encontro da comunidade Python Brasileira
44

55
[![npm](https://img.shields.io/npm/v/volto-pythonbrasil-site)](https://www.npmjs.com/package/volto-pythonbrasil-site)
6-
[![](https://img.shields.io/badge/-Storybook-ff4785?logo=Storybook&logoColor=white&style=flat-square)](https://simplesconsultoria.github.io/volto-pythonbrasil-site/)
7-
[![Code analysis checks](https://github.com/simplesconsultoria/volto-pythonbrasil-site/actions/workflows/code.yml/badge.svg)](https://github.com/simplesconsultoria/volto-pythonbrasil-site/actions/workflows/code.yml)
8-
[![Unit tests](https://github.com/simplesconsultoria/volto-pythonbrasil-site/actions/workflows/unit.yml/badge.svg)](https://github.com/simplesconsultoria/volto-pythonbrasil-site/actions/workflows/unit.yml)
6+
[![](https://img.shields.io/badge/-Storybook-ff4785?logo=Storybook&logoColor=white&style=flat-square)](https://pythonbrasil.github.io/volto-pythonbrasil-site/)
7+
[![Code analysis checks](https://github.com/pythonbrasil/volto-pythonbrasil-site/actions/workflows/code.yml/badge.svg)](https://github.com/pythonbrasil/volto-pythonbrasil-site/actions/workflows/code.yml)
8+
[![Unit tests](https://github.com/pythonbrasil/volto-pythonbrasil-site/actions/workflows/unit.yml/badge.svg)](https://github.com/pythonbrasil/volto-pythonbrasil-site/actions/workflows/unit.yml)
99

1010
## Features
1111

@@ -200,4 +200,4 @@ The project is licensed under the MIT license.
200200

201201
## Credits and Acknowledgements 🙏
202202

203-
Crafted with care by **This was generated by [cookiecutter-volto](https://github.com/plone/cookiecutter-volto/frontend_addon) on 2024-10-18 17:08:50**. A special thanks to all contributors and supporters!
203+
Crafted with care by **Generated using [Cookieplone (0.8.2)](https://github.com/plone/cookieplone) and [cookiecutter-plone (2638336)](https://github.com/plone/cookiecutter-plone/commit/2638336ff1127c169063964cd95251292c954a0b) on 2025-01-31 11:19:23.755532**. A special thanks to all contributors and supporters!

frontend/mrs.developer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"package": "@plone/volto",
55
"url": "[email protected]:plone/volto.git",
66
"https": "https://github.com/plone/volto.git",
7-
"tag": "18.0.0-alpha.46"
7+
"tag": "18.7.0"
88
}
99
}

frontend/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0-alpha.0",
44
"description": "Encontro da comunidade Python Brasileira",
55
"author": "PloneGov-BR",
6-
"homepage": "https://github.com/simplesconsultoria/volto-pythonbrasil-site",
6+
"homepage": "https://github.com/pythonbrasil/volto-pythonbrasil-site",
77
"license": "MIT",
88
"keywords": [
99
"volto-addon",
@@ -40,5 +40,11 @@
4040
"devDependencies": {
4141
"mrs-developer": "^2.2.0"
4242
},
43+
"pnpm": {
44+
"overrides": {
45+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
46+
"react-refresh": "^0.14.2"
47+
}
48+
},
4349
"packageManager": "[email protected]"
4450
}

frontend/packages/volto-pythonbrasil-site/locales/de/LC_MESSAGES/volto.po

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,28 @@ msgstr ""
1212
"Plural-Forms: \n"
1313

1414
#. Default: "Alignment"
15-
#: components/Blocks/Destaque/schema
15+
#: components/Blocks/Chamada/schema
1616
msgid "Alignment"
1717
msgstr ""
1818

19+
#. Default: "Call to Action"
20+
#: components/Blocks/GridCTA/schema
21+
msgid "Call to Action"
22+
msgstr ""
23+
1924
#. Default: "Chamada"
20-
#: components/Blocks/Destaque/schema
25+
#: components/Blocks/Chamada/schema
2126
msgid "Chamada"
2227
msgstr ""
2328

29+
#. Default: "Chamada Principal"
30+
#: components/Blocks/Chamada/schema
31+
msgid "Chamada Principal"
32+
msgstr ""
33+
2434
#. Default: "Chapéu"
25-
#: components/Blocks/Destaque/schema
35+
#: components/Blocks/Chamada/schema
36+
#: components/Blocks/GridCTA/schema
2637
msgid "Chapéu"
2738
msgstr ""
2839

@@ -31,13 +42,8 @@ msgstr ""
3142
msgid "Close menu"
3243
msgstr ""
3344

34-
#. Default: "Destaque Principal"
35-
#: components/Blocks/Destaque/schema
36-
msgid "Destaque Principal"
37-
msgstr ""
38-
3945
#. Default: "Imagem"
40-
#: components/Blocks/Destaque/schema
46+
#: components/Blocks/Chamada/schema
4147
msgid "Imagem"
4248
msgstr ""
4349

@@ -52,17 +58,25 @@ msgid "PythonBrasil 2025"
5258
msgstr ""
5359

5460
#. Default: "Sumário"
55-
#: components/Blocks/Destaque/schema
61+
#: components/Blocks/Chamada/schema
62+
#: components/Blocks/GridCTA/schema
5663
msgid "Sumário"
5764
msgstr ""
5865

5966
#. Default: "Texto CTA"
60-
#: components/Blocks/Destaque/schema
67+
#: components/Blocks/Chamada/schema
68+
#: components/Blocks/GridCTA/schema
6169
msgid "Texto CTA"
6270
msgstr ""
6371

72+
#. Default: "Título"
73+
#: components/Blocks/GridCTA/schema
74+
msgid "Título"
75+
msgstr ""
76+
6477
#. Default: "URL"
65-
#: components/Blocks/Destaque/schema
78+
#: components/Blocks/Chamada/schema
79+
#: components/Blocks/GridCTA/schema
6680
msgid "URL"
6781
msgstr ""
6882

frontend/packages/volto-pythonbrasil-site/locales/en/LC_MESSAGES/volto.po

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,28 @@ msgstr ""
1212
"Plural-Forms: \n"
1313

1414
#. Default: "Alignment"
15-
#: components/Blocks/Destaque/schema
15+
#: components/Blocks/Chamada/schema
1616
msgid "Alignment"
1717
msgstr ""
1818

19+
#. Default: "Call to Action"
20+
#: components/Blocks/GridCTA/schema
21+
msgid "Call to Action"
22+
msgstr ""
23+
1924
#. Default: "Chamada"
20-
#: components/Blocks/Destaque/schema
25+
#: components/Blocks/Chamada/schema
2126
msgid "Chamada"
2227
msgstr ""
2328

29+
#. Default: "Chamada Principal"
30+
#: components/Blocks/Chamada/schema
31+
msgid "Chamada Principal"
32+
msgstr ""
33+
2434
#. Default: "Chapéu"
25-
#: components/Blocks/Destaque/schema
35+
#: components/Blocks/Chamada/schema
36+
#: components/Blocks/GridCTA/schema
2637
msgid "Chapéu"
2738
msgstr ""
2839

@@ -31,13 +42,8 @@ msgstr ""
3142
msgid "Close menu"
3243
msgstr ""
3344

34-
#. Default: "Destaque Principal"
35-
#: components/Blocks/Destaque/schema
36-
msgid "Destaque Principal"
37-
msgstr ""
38-
3945
#. Default: "Imagem"
40-
#: components/Blocks/Destaque/schema
46+
#: components/Blocks/Chamada/schema
4147
msgid "Imagem"
4248
msgstr ""
4349

@@ -52,17 +58,25 @@ msgid "PythonBrasil 2025"
5258
msgstr ""
5359

5460
#. Default: "Sumário"
55-
#: components/Blocks/Destaque/schema
61+
#: components/Blocks/Chamada/schema
62+
#: components/Blocks/GridCTA/schema
5663
msgid "Sumário"
5764
msgstr ""
5865

5966
#. Default: "Texto CTA"
60-
#: components/Blocks/Destaque/schema
67+
#: components/Blocks/Chamada/schema
68+
#: components/Blocks/GridCTA/schema
6169
msgid "Texto CTA"
6270
msgstr ""
6371

72+
#. Default: "Título"
73+
#: components/Blocks/GridCTA/schema
74+
msgid "Título"
75+
msgstr ""
76+
6477
#. Default: "URL"
65-
#: components/Blocks/Destaque/schema
78+
#: components/Blocks/Chamada/schema
79+
#: components/Blocks/GridCTA/schema
6680
msgid "URL"
6781
msgstr ""
6882

frontend/packages/volto-pythonbrasil-site/locales/es/LC_MESSAGES/volto.po

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,28 @@ msgstr ""
1919
"X-Generator: Poedit 2.2.1\n"
2020

2121
#. Default: "Alignment"
22-
#: components/Blocks/Destaque/schema
22+
#: components/Blocks/Chamada/schema
2323
msgid "Alignment"
2424
msgstr ""
2525

26+
#. Default: "Call to Action"
27+
#: components/Blocks/GridCTA/schema
28+
msgid "Call to Action"
29+
msgstr ""
30+
2631
#. Default: "Chamada"
27-
#: components/Blocks/Destaque/schema
32+
#: components/Blocks/Chamada/schema
2833
msgid "Chamada"
2934
msgstr ""
3035

36+
#. Default: "Chamada Principal"
37+
#: components/Blocks/Chamada/schema
38+
msgid "Chamada Principal"
39+
msgstr ""
40+
3141
#. Default: "Chapéu"
32-
#: components/Blocks/Destaque/schema
42+
#: components/Blocks/Chamada/schema
43+
#: components/Blocks/GridCTA/schema
3344
msgid "Chapéu"
3445
msgstr ""
3546

@@ -38,13 +49,8 @@ msgstr ""
3849
msgid "Close menu"
3950
msgstr ""
4051

41-
#. Default: "Destaque Principal"
42-
#: components/Blocks/Destaque/schema
43-
msgid "Destaque Principal"
44-
msgstr ""
45-
4652
#. Default: "Imagem"
47-
#: components/Blocks/Destaque/schema
53+
#: components/Blocks/Chamada/schema
4854
msgid "Imagem"
4955
msgstr ""
5056

@@ -59,17 +65,25 @@ msgid "PythonBrasil 2025"
5965
msgstr ""
6066

6167
#. Default: "Sumário"
62-
#: components/Blocks/Destaque/schema
68+
#: components/Blocks/Chamada/schema
69+
#: components/Blocks/GridCTA/schema
6370
msgid "Sumário"
6471
msgstr ""
6572

6673
#. Default: "Texto CTA"
67-
#: components/Blocks/Destaque/schema
74+
#: components/Blocks/Chamada/schema
75+
#: components/Blocks/GridCTA/schema
6876
msgid "Texto CTA"
6977
msgstr ""
7078

79+
#. Default: "Título"
80+
#: components/Blocks/GridCTA/schema
81+
msgid "Título"
82+
msgstr ""
83+
7184
#. Default: "URL"
72-
#: components/Blocks/Destaque/schema
85+
#: components/Blocks/Chamada/schema
86+
#: components/Blocks/GridCTA/schema
7387
msgid "URL"
7488
msgstr ""
7589

0 commit comments

Comments
 (0)