Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Atualiza versão do volto para 18.1.1 (#16) #20

Merged
merged 3 commits into from
Dec 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions frontend/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const fs = require('fs');
const projectRootPath = __dirname;
const AddonConfigurationRegistry = require('@plone/registry/src/addon-registry');
const { AddonRegistry } = require('@plone/registry/addon-registry');

let coreLocation;
if (fs.existsSync(`${projectRootPath}/core`))
coreLocation = `${projectRootPath}/core`;
else if (fs.existsSync(`${projectRootPath}/../../core`))
coreLocation = `${projectRootPath}/../../core`;

const registry = new AddonConfigurationRegistry(
const { registry } = AddonRegistry.init(
`${coreLocation}/packages/volto`,
);

Expand All @@ -30,9 +30,8 @@ module.exports = {
['@plone/volto', `${coreLocation}/packages/volto/src`],
[
'@plone/volto-slate',
`${coreLocation}/core/packages/volto-slate/src`,
`${coreLocation}/volto-slate/src`,
],
['@plone/registry', `${coreLocation}/packages/registry/src`],
[
'portalbrasil-intranet',
'./packages/portalbrasil-intranet/src',
Expand Down
2 changes: 1 addition & 1 deletion frontend/mrs.developer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"package": "@plone/volto",
"url": "git@github.com:plone/volto.git",
"https": "https://github.com/plone/volto.git",
"tag": "18.0.0-alpha.43"
"tag": "18.1.1"
}
}
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"release-major-alpha": "pnpm --filter portalbrasil-intranet release-major-alpha",
"release-alpha": "pnpm --filter portalbrasil-intranet release-alpha",
"storybook": "VOLTOCONFIG=$(pwd)/volto.config.js pnpm --filter @plone/volto storybook dev -p 6006 -c $(pwd)/.storybook",
"build-storybook": "VOLTOCONFIG=$(pwd)/volto.config.js pnpm --filter @plone/volto build-storybook -c $(pwd)/.storybook"
"build-storybook": "VOLTOCONFIG=$(pwd)/volto.config.js pnpm --filter @plone/volto storybook build -c $(pwd)/.storybook"
},
"dependencies": {
"@plone/volto": "workspace:*",
Expand Down
1 change: 1 addition & 0 deletions frontend/packages/portalbrasil-intranet/news/16.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Atualiza versão do volto para 18.1.1 [@samoel-silva]
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ const Tags = ({ tags }) => {
<Container narrow className="tags">
<Icon name={tagSVG} />
{parsedTags.map((tag, i) => (
<>
<React.Fragment key={tag.id}>
<Link className="ui tag" key={tag} to={`/search?Subject=${tag}`}>
{tag}
</Link>
{parsedTags.length > i + 1 && <span className="divider">,</span>}
</>
</React.Fragment>
))}
</Container>
) : (
Expand Down
Loading