Skip to content

Commit 1bb534f

Browse files
committed
Atualiza componentes, refatora css
1 parent 4de0789 commit 1bb534f

File tree

35 files changed

+952
-116
lines changed

35 files changed

+952
-116
lines changed

backend/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies = [
2828
"plone.api",
2929
"plone.restapi",
3030
"plone.volto",
31-
"plonegovbr.socialmedia>=2.0.0a4",
31+
"plonegovbr.socialmedia>=2.0.0a5",
3232
"collective.volto.formsupport",
3333
"collective.honeypot",
3434
"plone.app.upgrade",
@@ -294,7 +294,7 @@ constraint-dependencies = [
294294
"plone.z3cform==2.0.4",
295295
"Plone==6.1.1",
296296
"plonetheme.barceloneta==3.2.3",
297-
"plonegovbr.socialmedia==2.0.0a4",
297+
"plonegovbr.socialmedia==2.0.0a5",
298298
"pluggy==1.5.0",
299299
"Products.BTreeFolder2==5.1",
300300
"Products.CMFCore==3.7",

backend/src/pythonbrasil/site/behaviors/__init__.py

Whitespace-only changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<configure
2+
xmlns="http://namespaces.zope.org/zope"
3+
xmlns:browser="http://namespaces.zope.org/browser"
4+
xmlns:plone="http://namespaces.plone.org/plone"
5+
xmlns:zcml="http://namespaces.zope.org/zcml"
6+
i18n_domain="pythonbrasil.site"
7+
>
8+
9+
<include
10+
package="plone.behavior"
11+
file="meta.zcml"
12+
/>
13+
14+
<plone:behavior
15+
name="pythonbrasil.footer"
16+
title="Footer customizations"
17+
description="Set of fields to customize sites and subsites"
18+
provides=".customizations.ISiteFooterCustomizationSettings"
19+
/>
20+
21+
</configure>
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
from plone.autoform import directives
2+
from plone.autoform.interfaces import IFormFieldProvider
3+
from plone.schema import JSONField
4+
from plone.supermodel import model
5+
from pythonbrasil.site import _
6+
from zope.interface import provider
7+
8+
import json
9+
10+
11+
OBJECT_LIST_DEFAULT_VALUE = []
12+
13+
OBJECT_LIST = json.dumps({
14+
"type": "array",
15+
"items": {
16+
"type": "object",
17+
},
18+
})
19+
20+
21+
@provider(IFormFieldProvider)
22+
class ISiteFooterCustomizationSettings(model.Schema):
23+
"""Site/Subsite footer properties behavior."""
24+
25+
model.fieldset(
26+
"footer",
27+
label=_("Rodapé"),
28+
fields=[
29+
"footer_links",
30+
],
31+
)
32+
33+
directives.widget(
34+
"footer_links",
35+
frontendOptions={
36+
"widget": "object_list",
37+
"widgetProps": {"schemaName": "footerLinks"},
38+
},
39+
)
40+
footer_links = JSONField(
41+
title=_("Links"),
42+
schema=OBJECT_LIST,
43+
default=OBJECT_LIST_DEFAULT_VALUE,
44+
required=False,
45+
widget="",
46+
)

backend/src/pythonbrasil/site/configure.zcml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<include file="profiles.zcml" />
1717
<include file="permissions.zcml" />
1818

19+
<include package=".behaviors" />
1920
<include package=".controlpanel" />
2021
<include package=".indexers" />
2122
<include package=".serializers" />

backend/src/pythonbrasil/site/locales/en/LC_MESSAGES/pythonbrasil.site.po

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: PACKAGE VERSION\n"
4-
"POT-Creation-Date: 2022-05-25 17:12+0000\n"
4+
"POT-Creation-Date: 2025-04-29 19:33+0000\n"
55
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
66
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
77
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -13,3 +13,75 @@ msgstr ""
1313
"Language-Name: English\n"
1414
"Preferred-Encodings: utf-8 latin1\n"
1515
"Domain: pythonbrasil.site\n"
16+
17+
#: pythonbrasil/site/profiles/default/types/Sponsor.xml
18+
msgid "Conference Sponsor."
19+
msgstr ""
20+
21+
#: pythonbrasil/site/profiles/default/types/SponsorsDB.xml
22+
msgid "Conference Sponsoring information."
23+
msgstr ""
24+
25+
#: pythonbrasil/site/profiles.zcml:22
26+
msgid "Create example content to showcase the new website"
27+
msgstr ""
28+
29+
#: pythonbrasil/site/content/sponsors/sponsor_level.py:21
30+
msgid "Display on Frontpage"
31+
msgstr ""
32+
33+
#: pythonbrasil/site/profiles/default/types/SponsorLevel.xml
34+
msgid "Package of sponsorship for the conference."
35+
msgstr ""
36+
37+
#: pythonbrasil/site/profiles.zcml:13
38+
msgid "Package to configure a new PythonBrasil 2025 site"
39+
msgstr ""
40+
41+
#: pythonbrasil/site/profiles.zcml:22
42+
msgid "PythonBrasil 2025: Example content"
43+
msgstr ""
44+
45+
#: pythonbrasil/site/profiles.zcml:13
46+
msgid "PythonBrasil 2025: Install"
47+
msgstr ""
48+
49+
#: pythonbrasil/site/content/sponsors/sponsor_level.py:22
50+
msgid "Should this level be displayed on the FrontPage?"
51+
msgstr ""
52+
53+
#: pythonbrasil/site/profiles/default/types/Sponsor.xml
54+
msgid "Sponsor"
55+
msgstr ""
56+
57+
#: pythonbrasil/site/profiles/default/types/SponsorsDB.xml
58+
msgid "Sponsors Database"
59+
msgstr ""
60+
61+
#: pythonbrasil/site/profiles/default/types/SponsorLevel.xml
62+
msgid "Sponsorship Level"
63+
msgstr ""
64+
65+
#: pythonbrasil/site/content/sponsors/sponsor_level.py:14
66+
msgid "Visibility"
67+
msgstr ""
68+
69+
#. Default: "Used in item listings and search results."
70+
#: pythonbrasil/site/content/sponsors/sponsor.py:21
71+
msgid "help_description"
72+
msgstr ""
73+
74+
#. Default: "Summary"
75+
#: pythonbrasil/site/content/sponsors/sponsor.py:20
76+
msgid "label_description"
77+
msgstr ""
78+
79+
#. Default: "Text"
80+
#: pythonbrasil/site/content/sponsors/sponsor.py:30
81+
msgid "label_text"
82+
msgstr ""
83+
84+
#. Default: "Title"
85+
#: pythonbrasil/site/content/sponsors/sponsor.py:17
86+
msgid "label_title"
87+
msgstr ""

backend/src/pythonbrasil/site/locales/pt_BR/LC_MESSAGES/pythonbrasil.site.po

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: PACKAGE VERSION\n"
4-
"POT-Creation-Date: 2022-05-25 17:12+0000\n"
4+
"POT-Creation-Date: 2025-04-29 19:33+0000\n"
55
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
66
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
77
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -13,3 +13,75 @@ msgstr ""
1313
"Language-Name: English\n"
1414
"Preferred-Encodings: utf-8 latin1\n"
1515
"Domain: DOMAIN\n"
16+
17+
#: pythonbrasil/site/profiles/default/types/Sponsor.xml
18+
msgid "Conference Sponsor."
19+
msgstr ""
20+
21+
#: pythonbrasil/site/profiles/default/types/SponsorsDB.xml
22+
msgid "Conference Sponsoring information."
23+
msgstr ""
24+
25+
#: pythonbrasil/site/profiles.zcml:22
26+
msgid "Create example content to showcase the new website"
27+
msgstr ""
28+
29+
#: pythonbrasil/site/content/sponsors/sponsor_level.py:21
30+
msgid "Display on Frontpage"
31+
msgstr ""
32+
33+
#: pythonbrasil/site/profiles/default/types/SponsorLevel.xml
34+
msgid "Package of sponsorship for the conference."
35+
msgstr ""
36+
37+
#: pythonbrasil/site/profiles.zcml:13
38+
msgid "Package to configure a new PythonBrasil 2025 site"
39+
msgstr ""
40+
41+
#: pythonbrasil/site/profiles.zcml:22
42+
msgid "PythonBrasil 2025: Example content"
43+
msgstr ""
44+
45+
#: pythonbrasil/site/profiles.zcml:13
46+
msgid "PythonBrasil 2025: Install"
47+
msgstr ""
48+
49+
#: pythonbrasil/site/content/sponsors/sponsor_level.py:22
50+
msgid "Should this level be displayed on the FrontPage?"
51+
msgstr ""
52+
53+
#: pythonbrasil/site/profiles/default/types/Sponsor.xml
54+
msgid "Sponsor"
55+
msgstr ""
56+
57+
#: pythonbrasil/site/profiles/default/types/SponsorsDB.xml
58+
msgid "Sponsors Database"
59+
msgstr ""
60+
61+
#: pythonbrasil/site/profiles/default/types/SponsorLevel.xml
62+
msgid "Sponsorship Level"
63+
msgstr ""
64+
65+
#: pythonbrasil/site/content/sponsors/sponsor_level.py:14
66+
msgid "Visibility"
67+
msgstr ""
68+
69+
#. Default: "Used in item listings and search results."
70+
#: pythonbrasil/site/content/sponsors/sponsor.py:21
71+
msgid "help_description"
72+
msgstr ""
73+
74+
#. Default: "Summary"
75+
#: pythonbrasil/site/content/sponsors/sponsor.py:20
76+
msgid "label_description"
77+
msgstr ""
78+
79+
#. Default: "Text"
80+
#: pythonbrasil/site/content/sponsors/sponsor.py:30
81+
msgid "label_text"
82+
msgstr ""
83+
84+
#. Default: "Title"
85+
#: pythonbrasil/site/content/sponsors/sponsor.py:17
86+
msgid "label_title"
87+
msgstr ""

backend/src/pythonbrasil/site/locales/pythonbrasil.site.pot

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
msgid ""
55
msgstr ""
66
"Project-Id-Version: PACKAGE VERSION\n"
7-
"POT-Creation-Date: 2022-05-25 17:12+0000\n"
7+
"POT-Creation-Date: 2025-04-29 19:33+0000\n"
88
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
99
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1010
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -16,3 +16,75 @@ msgstr ""
1616
"Language-Name: English\n"
1717
"Preferred-Encodings: utf-8 latin1\n"
1818
"Domain: pythonbrasil.site\n"
19+
20+
#: pythonbrasil/site/profiles/default/types/Sponsor.xml
21+
msgid "Conference Sponsor."
22+
msgstr ""
23+
24+
#: pythonbrasil/site/profiles/default/types/SponsorsDB.xml
25+
msgid "Conference Sponsoring information."
26+
msgstr ""
27+
28+
#: pythonbrasil/site/profiles.zcml:22
29+
msgid "Create example content to showcase the new website"
30+
msgstr ""
31+
32+
#: pythonbrasil/site/content/sponsors/sponsor_level.py:21
33+
msgid "Display on Frontpage"
34+
msgstr ""
35+
36+
#: pythonbrasil/site/profiles/default/types/SponsorLevel.xml
37+
msgid "Package of sponsorship for the conference."
38+
msgstr ""
39+
40+
#: pythonbrasil/site/profiles.zcml:13
41+
msgid "Package to configure a new PythonBrasil 2025 site"
42+
msgstr ""
43+
44+
#: pythonbrasil/site/profiles.zcml:22
45+
msgid "PythonBrasil 2025: Example content"
46+
msgstr ""
47+
48+
#: pythonbrasil/site/profiles.zcml:13
49+
msgid "PythonBrasil 2025: Install"
50+
msgstr ""
51+
52+
#: pythonbrasil/site/content/sponsors/sponsor_level.py:22
53+
msgid "Should this level be displayed on the FrontPage?"
54+
msgstr ""
55+
56+
#: pythonbrasil/site/profiles/default/types/Sponsor.xml
57+
msgid "Sponsor"
58+
msgstr ""
59+
60+
#: pythonbrasil/site/profiles/default/types/SponsorsDB.xml
61+
msgid "Sponsors Database"
62+
msgstr ""
63+
64+
#: pythonbrasil/site/profiles/default/types/SponsorLevel.xml
65+
msgid "Sponsorship Level"
66+
msgstr ""
67+
68+
#: pythonbrasil/site/content/sponsors/sponsor_level.py:14
69+
msgid "Visibility"
70+
msgstr ""
71+
72+
#. Default: "Used in item listings and search results."
73+
#: pythonbrasil/site/content/sponsors/sponsor.py:21
74+
msgid "help_description"
75+
msgstr ""
76+
77+
#. Default: "Summary"
78+
#: pythonbrasil/site/content/sponsors/sponsor.py:20
79+
msgid "label_description"
80+
msgstr ""
81+
82+
#. Default: "Text"
83+
#: pythonbrasil/site/content/sponsors/sponsor.py:30
84+
msgid "label_text"
85+
msgstr ""
86+
87+
#. Default: "Title"
88+
#: pythonbrasil/site/content/sponsors/sponsor.py:17
89+
msgid "label_title"
90+
msgstr ""
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<object xmlns:i18n="http://xml.zope.org/namespaces/i18n"
3+
meta_type="Dexterity FTI"
4+
name="Plone Site"
5+
i18n:domain="plone"
6+
>
7+
8+
<!-- Enabled behaviors -->
9+
<property name="behaviors"
10+
purge="true"
11+
>
12+
<element value="plonegovbr.socialmedia.settings" />
13+
<element value="pythonbrasil.footer" />
14+
<element value="volto.preview_image_link" />
15+
<element value="plone.dublincore" />
16+
<element value="plone.relateditems" />
17+
<element value="plone.locking" />
18+
<element value="plone.excludefromnavigation" />
19+
<element value="volto.blocks" />
20+
</property>
21+
22+
23+
</object>

0 commit comments

Comments
 (0)