Skip to content

Commit

Permalink
Atualiza versão do volto para 18.1.1 (#16) (#20)
Browse files Browse the repository at this point in the history
* Atualiza versão do volto para 18.1.1 (#16)

* modifica .eslintrc.js e package.json para atualização do volto (https://6.docs.plone.org/volto/upgrade-guide/index.html)

* Corrige componente Tags para lint
  • Loading branch information
samoel-silva authored Dec 1, 2024
1 parent c36f3bb commit 495cfd3
Show file tree
Hide file tree
Showing 6 changed files with 2,556 additions and 4,894 deletions.
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": "[email protected]: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

0 comments on commit 495cfd3

Please sign in to comment.