@eeacms/volto-globalsearch 1.0.0 → 1.0.1
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 +12 -5
- package/CHANGELOG.md +11 -1
- package/package.json +1 -1
- package/src/config/index.js +3 -3
package/.project.eslintrc.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
const fs = require('fs');
|
|
2
2
|
const path = require('path');
|
|
3
3
|
|
|
4
|
-
const projectRootPath = fs.
|
|
4
|
+
const projectRootPath = fs.existsSync('./project')
|
|
5
|
+
? fs.realpathSync('./project')
|
|
6
|
+
: fs.realpathSync('./../../../');
|
|
5
7
|
const packageJson = require(path.join(projectRootPath, 'package.json'));
|
|
6
|
-
const jsConfig = require(path.join(projectRootPath, 'jsconfig.json'))
|
|
8
|
+
const jsConfig = require(path.join(projectRootPath, 'jsconfig.json'))
|
|
9
|
+
.compilerOptions;
|
|
7
10
|
|
|
8
11
|
const pathsConfig = jsConfig.paths;
|
|
9
12
|
|
|
10
13
|
let voltoPath = path.join(projectRootPath, 'node_modules/@plone/volto');
|
|
11
14
|
|
|
12
|
-
Object.keys(pathsConfig).forEach(pkg => {
|
|
15
|
+
Object.keys(pathsConfig).forEach((pkg) => {
|
|
13
16
|
if (pkg === '@plone/volto') {
|
|
14
17
|
voltoPath = `./${jsConfig.baseUrl}/${pathsConfig[pkg][0]}`;
|
|
15
18
|
}
|
|
@@ -18,11 +21,15 @@ const AddonConfigurationRegistry = require(`${voltoPath}/addon-registry.js`);
|
|
|
18
21
|
const reg = new AddonConfigurationRegistry(projectRootPath);
|
|
19
22
|
|
|
20
23
|
// Extends ESlint configuration for adding the aliases to `src` directories in Volto addons
|
|
21
|
-
const addonAliases = Object.keys(reg.packages).map(o => [
|
|
24
|
+
const addonAliases = Object.keys(reg.packages).map((o) => [
|
|
22
25
|
o,
|
|
23
26
|
reg.packages[o].modulePath,
|
|
24
27
|
]);
|
|
25
28
|
|
|
29
|
+
const voltoSearchlibPath = path.dirname(
|
|
30
|
+
reg.packages['@eeacms/volto-searchlib'].modulePath,
|
|
31
|
+
);
|
|
32
|
+
const searchlibPath = path.resolve(`${voltoSearchlibPath}/searchlib`);
|
|
26
33
|
|
|
27
34
|
module.exports = {
|
|
28
35
|
extends: `${projectRootPath}/node_modules/@plone/volto/.eslintrc`,
|
|
@@ -32,6 +39,7 @@ module.exports = {
|
|
|
32
39
|
map: [
|
|
33
40
|
['@plone/volto', '@plone/volto/src'],
|
|
34
41
|
...addonAliases,
|
|
42
|
+
['@eeacms/search', searchlibPath],
|
|
35
43
|
['@package', `${__dirname}/src`],
|
|
36
44
|
['~', `${__dirname}/src`],
|
|
37
45
|
],
|
|
@@ -43,4 +51,3 @@ module.exports = {
|
|
|
43
51
|
},
|
|
44
52
|
},
|
|
45
53
|
};
|
|
46
|
-
|
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,14 @@ 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.1](https://github.com/eea/volto-globalsearch/compare/1.0.0...1.0.1) - 16 November 2022
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Fix eslint [Tiberiu Ichim - [`cf2886b`](https://github.com/eea/volto-globalsearch/commit/cf2886b412013f9427cf5d39cdf00004bdd9f80b)]
|
|
12
|
+
- test(estlint): Fix .project.eslintrc.js [Alin Voinea - [`40c08d2`](https://github.com/eea/volto-globalsearch/commit/40c08d2d4eda81ce306225a81f09e0bcfe6794eb)]
|
|
13
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`af6e020`](https://github.com/eea/volto-globalsearch/commit/af6e020794798c1f69fee8c08bdf71fc3992230a)]
|
|
14
|
+
## [1.0.0](https://github.com/eea/volto-globalsearch/compare/0.1.7...1.0.0) - 28 October 2022
|
|
8
15
|
|
|
9
16
|
#### :nail_care: Enhancements
|
|
10
17
|
|
|
@@ -22,6 +29,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
22
29
|
#### :hammer_and_wrench: Others
|
|
23
30
|
|
|
24
31
|
- Fix dependencies [kreafox - [`50ad307`](https://github.com/eea/volto-globalsearch/commit/50ad307d64140c43df9dded27c0b532923885764)]
|
|
32
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`c2d848e`](https://github.com/eea/volto-globalsearch/commit/c2d848e1efa456f53d883c50769882101e1ce19f)]
|
|
25
33
|
### [0.1.5](https://github.com/eea/volto-globalsearch/compare/0.1.4...0.1.5) - 28 July 2022
|
|
26
34
|
|
|
27
35
|
#### :hammer_and_wrench: Others
|
|
@@ -34,6 +42,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
34
42
|
|
|
35
43
|
#### :hammer_and_wrench: Others
|
|
36
44
|
|
|
45
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`5dce07b`](https://github.com/eea/volto-globalsearch/commit/5dce07ba7d1e82776a426e9746d5dab1b0acf738)]
|
|
37
46
|
### [0.1.3](https://github.com/eea/volto-globalsearch/compare/0.1.2...0.1.3) - 10 June 2022
|
|
38
47
|
|
|
39
48
|
### [0.1.2](https://github.com/eea/volto-globalsearch/compare/0.1.1...0.1.2) - 10 June 2022
|
|
@@ -56,6 +65,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
56
65
|
- ignore eslint for *.json files [Zoltan Szabo - [`e18919e`](https://github.com/eea/volto-globalsearch/commit/e18919e1255818c5cf33bf769cca078d75ca3422)]
|
|
57
66
|
- formatting [Zoltan Szabo - [`18282ed`](https://github.com/eea/volto-globalsearch/commit/18282ed159865bcbc50e2fd17417cf6d90d3e593)]
|
|
58
67
|
- updated dependencies [Zoltan Szabo - [`cfcf46e`](https://github.com/eea/volto-globalsearch/commit/cfcf46ee33b23bb31f76955c12a857411f042daf)]
|
|
68
|
+
- [JENKINSFILE] fix after bootstrap [valentinab25 - [`61c8c46`](https://github.com/eea/volto-globalsearch/commit/61c8c46891edf3b52768f12cf7505c034ef7bb89)]
|
|
59
69
|
### 0.0.1 - 19 May 2022
|
|
60
70
|
|
|
61
71
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
package/src/config/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { suiFacet, mergeConfig } from '@eeacms/search';
|
|
|
2
2
|
import { getGlobalsearchThumbUrl, getGlobalsearchIconUrl } from './../utils';
|
|
3
3
|
import { typesForClustersOptionsFilter } from './clusters';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { UniversalCard } from '@eeacms/volto-listing-block';
|
|
6
6
|
|
|
7
7
|
// import WebsiteFilterListComponent from './../components/WebsiteFilterListComponent';
|
|
8
8
|
|
|
@@ -72,8 +72,8 @@ export default function install(config) {
|
|
|
72
72
|
|
|
73
73
|
config.resolve.typesForClustersOptionsFilter = typesForClustersOptionsFilter;
|
|
74
74
|
|
|
75
|
-
config.resolve.
|
|
76
|
-
component:
|
|
75
|
+
config.resolve.UniversalCard = {
|
|
76
|
+
component: UniversalCard,
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
// config.resolve.WebsiteFilterListComponent = {
|