@eeacms/volto-n2k 1.0.2 → 1.0.3
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/.project.eslintrc.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
const fs = require(
|
|
2
|
-
const path = require(
|
|
3
|
-
|
|
4
|
-
const projectRootPath = fs.
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
const fs = require("fs");
|
|
2
|
+
const path = require("path");
|
|
3
|
+
|
|
4
|
+
const projectRootPath = fs.existsSync("./project")
|
|
5
|
+
? fs.realpathSync("./project")
|
|
6
|
+
: fs.realpathSync("./../../../");
|
|
7
|
+
const packageJson = require(path.join(projectRootPath, "package.json"));
|
|
8
|
+
const jsConfig = require(path.join(
|
|
9
|
+
projectRootPath,
|
|
10
|
+
"jsconfig.json"
|
|
11
|
+
)).compilerOptions;
|
|
7
12
|
|
|
8
13
|
const pathsConfig = jsConfig.paths;
|
|
9
14
|
|
|
10
|
-
let voltoPath = path.join(projectRootPath,
|
|
15
|
+
let voltoPath = path.join(projectRootPath, "node_modules/@plone/volto");
|
|
11
16
|
|
|
12
|
-
Object.keys(pathsConfig).forEach(pkg => {
|
|
13
|
-
if (pkg ===
|
|
17
|
+
Object.keys(pathsConfig).forEach((pkg) => {
|
|
18
|
+
if (pkg === "@plone/volto") {
|
|
14
19
|
voltoPath = `./${jsConfig.baseUrl}/${pathsConfig[pkg][0]}`;
|
|
15
20
|
}
|
|
16
21
|
});
|
|
@@ -18,29 +23,27 @@ const AddonConfigurationRegistry = require(`${voltoPath}/addon-registry.js`);
|
|
|
18
23
|
const reg = new AddonConfigurationRegistry(projectRootPath);
|
|
19
24
|
|
|
20
25
|
// Extends ESlint configuration for adding the aliases to `src` directories in Volto addons
|
|
21
|
-
const addonAliases = Object.keys(reg.packages).map(o => [
|
|
26
|
+
const addonAliases = Object.keys(reg.packages).map((o) => [
|
|
22
27
|
o,
|
|
23
28
|
reg.packages[o].modulePath,
|
|
24
29
|
]);
|
|
25
30
|
|
|
26
|
-
|
|
27
31
|
module.exports = {
|
|
28
32
|
extends: `${projectRootPath}/node_modules/@plone/volto/.eslintrc`,
|
|
29
33
|
settings: {
|
|
30
|
-
|
|
34
|
+
"import/resolver": {
|
|
31
35
|
alias: {
|
|
32
36
|
map: [
|
|
33
|
-
[
|
|
37
|
+
["@plone/volto", "@plone/volto/src"],
|
|
34
38
|
...addonAliases,
|
|
35
|
-
[
|
|
36
|
-
[
|
|
39
|
+
["@package", `${__dirname}/src`],
|
|
40
|
+
["~", `${__dirname}/src`],
|
|
37
41
|
],
|
|
38
|
-
extensions: [
|
|
42
|
+
extensions: [".js", ".jsx", ".json"],
|
|
39
43
|
},
|
|
40
|
-
|
|
41
|
-
rootPathSuffix:
|
|
44
|
+
"babel-plugin-root-import": {
|
|
45
|
+
rootPathSuffix: "src",
|
|
42
46
|
},
|
|
43
47
|
},
|
|
44
48
|
},
|
|
45
49
|
};
|
|
46
|
-
|
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,17 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
### [1.0.
|
|
7
|
+
### [1.0.3](https://github.com/eea/volto-n2k/compare/1.0.2...1.0.3) - 10 November 2022
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: show navigation for explorer [Miu Razvan - [`3dda827`](https://github.com/eea/volto-n2k/commit/3dda82724fa04ddfb52f6c4f0f050d29a46f21e8)]
|
|
8
12
|
|
|
9
13
|
#### :hammer_and_wrench: Others
|
|
10
14
|
|
|
11
|
-
-
|
|
15
|
+
- fix error [Claudia Ifrim - [`2942ada`](https://github.com/eea/volto-n2k/commit/2942adaa55a378b9861bff6567899606fd193c8b)]
|
|
16
|
+
### [1.0.2](https://github.com/eea/volto-n2k/compare/1.0.1...1.0.2) - 4 November 2022
|
|
17
|
+
|
|
12
18
|
### [1.0.1](https://github.com/eea/volto-n2k/compare/1.0.0...1.0.1) - 2 November 2022
|
|
13
19
|
|
|
14
20
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -313,7 +313,7 @@ class Navigation extends Component {
|
|
|
313
313
|
''
|
|
314
314
|
)}
|
|
315
315
|
|
|
316
|
-
{!this.state.isSdf && !this.props.isRoot
|
|
316
|
+
{(!this.state.isSdf && !this.props.isRoot) || this.props.isExplorer
|
|
317
317
|
? this.props.items.map((item) => {
|
|
318
318
|
const flatUrl = flattenToAppURL(item.url);
|
|
319
319
|
const itemID = item.title.split(' ').join('-').toLowerCase();
|