Skip to content

Develop #4

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Dec 20, 2022
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
59 changes: 59 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"extends": ["react-app", "prettier", "plugin:jsx-a11y/recommended"],
"plugins": ["prettier", "react-hooks", "jsx-a11y"],
"env": {
"es6": true,
"browser": true,
"node": true,
"mocha": true,
"jasmine": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"legacyDecorators": true
}
},
"rules": {
"import/no-unresolved": 1,
"no-alert": 1,
"no-console": 1,
"no-debugger": 1,
"prettier/prettier": [
"error",
{ "trailingComma": "all", "singleQuote": true }
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"settings": {
"import/resolver": {
"alias": {
"map": [["@plone/volto", "./src"]],
"extensions": [".js", ".jsx", ".json"]
},
"babel-plugin-root-import": {
"rootPathSuffix": "src"
}
},
"import/core-modules": [ "load-volto-addons" ]
},
"globals": {
"root": true,
"__DEVELOPMENT__": true,
"__CLIENT__": true,
"__SERVER__": true,
"__DISABLE_SSR__": true,
"__DEVTOOLS__": true,
"__DEBUG__": true,
"__SSR__": true,
"__SENTRY__": true,
"cy": true,
"Cypress": true,
"jest": true,
"socket": true,
"webpackIsomorphicTools": true
}
}
Empty file added .eslintrc.js
Empty file.
10 changes: 2 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
.vscode/
.history
.eslintrc.js
project
logs
*.log
npm-debug.log*
.DS_Store
*.swp
yarn-error.log
yarn.lock
package-lock.json

node_modules
build
dist
screenshots
cypress/videos
cypress/reports
screenshots
videos
.env.local
.env.development.local
.env.test.local
.env.production.local
*~
.env.production.local
13 changes: 6 additions & 7 deletions .project.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
const fs = require('fs');
const path = require('path');

const projectRootPath = fs.realpathSync('./project'); // __dirname
const packageJson = require(path.join(projectRootPath, 'package.json'));
const jsConfig = require(path.join(projectRootPath, 'jsconfig.json')).compilerOptions;
const projectRootPath = fs.realpathSync('./project'); // __dirname
// const packageJson = require(path.join(projectRootPath, 'package.json'));
const jsConfig = require(path.join(projectRootPath, 'jsconfig.json'))
.compilerOptions;

const pathsConfig = jsConfig.paths;

let voltoPath = path.join(projectRootPath, 'node_modules/@plone/volto');

Object.keys(pathsConfig).forEach(pkg => {
Object.keys(pathsConfig).forEach((pkg) => {
if (pkg === '@plone/volto') {
voltoPath = `./${jsConfig.baseUrl}/${pathsConfig[pkg][0]}`;
}
Expand All @@ -18,12 +19,11 @@ const AddonConfigurationRegistry = require(`${voltoPath}/addon-registry.js`);
const reg = new AddonConfigurationRegistry(projectRootPath);

// Extends ESlint configuration for adding the aliases to `src` directories in Volto addons
const addonAliases = Object.keys(reg.packages).map(o => [
const addonAliases = Object.keys(reg.packages).map((o) => [
o,
reg.packages[o].modulePath,
]);


module.exports = {
extends: `${projectRootPath}/node_modules/@plone/volto/.eslintrc`,
settings: {
Expand All @@ -43,4 +43,3 @@ module.exports = {
},
},
};

78 changes: 49 additions & 29 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,52 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [0.1.2](https://github.com/eea/volto-react-table-widget/compare/0.1.1...0.1.2)

- add locales [`2f58aae`](https://github.com/eea/volto-react-table-widget/commit/2f58aaea28c038c4d48d54d1700e7539cc7d42f8)
- add undomodifications parameter to get the Undo Modifications button optional [`b2ebb03`](https://github.com/eea/volto-react-table-widget/commit/b2ebb034827f8605ad37f51b215e2a9bada58c5a)
- add schemas title and description to editor [`2250b88`](https://github.com/eea/volto-react-table-widget/commit/2250b888eb060c10c2ff1ab577810532c8476fb8)
- refactoring code [`99a3dc7`](https://github.com/eea/volto-react-table-widget/commit/99a3dc715d4cdacec9cbf5187fb2238d396ae708)
- prettier [`a424381`](https://github.com/eea/volto-react-table-widget/commit/a424381fbb1899bd5a561f7ce3d16820d5af00db)
- date type widget [`7ee1486`](https://github.com/eea/volto-react-table-widget/commit/7ee1486d3f647a57fa05576538b035b98926b821)

#### [0.1.1](https://github.com/eea/volto-react-table-widget/compare/0.1.0...0.1.1)

> 16 March 2022

- fix tag [`1477105`](https://github.com/eea/volto-react-table-widget/commit/1477105ee567c1daed09bb3ce1819a20a1da024e)

#### 0.1.0

> 16 March 2022

- Develop [`#1`](https://github.com/eea/volto-react-table-widget/pull/1)
- fix paginated row edition and add/remove functionalities [`4c0ae4e`](https://github.com/eea/volto-react-table-widget/commit/4c0ae4ed35d1fa6d25be96c0a8b62d1bc25ee481)
- add isMulti option to select fields [`ec3b57d`](https://github.com/eea/volto-react-table-widget/commit/ec3b57dd596f9a6adede5f4d7c286f09089ad517)
- add react-csv package [`69ba866`](https://github.com/eea/volto-react-table-widget/commit/69ba8660a30ae3e9413be7a564644448a8c51a06)
- improve docs [`f64ad66`](https://github.com/eea/volto-react-table-widget/commit/f64ad66e5b8ddc665a3e6a4664c4e88d535f2df7)
- make it functional [`6eae547`](https://github.com/eea/volto-react-table-widget/commit/6eae547e1654be6b2ebb3d846fe3f6b2eb4ae23b)
- developing [`ee9e4ab`](https://github.com/eea/volto-react-table-widget/commit/ee9e4abc79350992caec4f409d2f9e4fcc3398b5)
- initial implementation [`93a9449`](https://github.com/eea/volto-react-table-widget/commit/93a94490d2cbd0cd297bd0b71c4e3c985b525f61)
- initial commit [`44cd2bc`](https://github.com/eea/volto-react-table-widget/commit/44cd2bc60a530249919572090a1753c37d32efae)
- Initial commit [`4674f4b`](https://github.com/eea/volto-react-table-widget/commit/4674f4b411120cfdfacc3f8ff39dcdfe153d5a1d)
### [0.1.3](https://github.com/eea/volto-react-table-widget/compare/0.1.2...0.1.3) - 20 December 2022

#### :hammer_and_wrench: Others

- comment cypress [ionlizarazu - [`31893fc`](https://github.com/eea/volto-react-table-widget/commit/31893fce25d08b2a2de74a61c865c7d13f9807b3)]
- cypress.json [ionlizarazu - [`c2664bf`](https://github.com/eea/volto-react-table-widget/commit/c2664bfcccdd783c1eeb37026e35c0947a8dd1f8)]
- cypress [ionlizarazu - [`bd25297`](https://github.com/eea/volto-react-table-widget/commit/bd25297e2b21260c623c6dabf0346cb5ad1169d4)]
- cypress tests [ionlizarazu - [`112e668`](https://github.com/eea/volto-react-table-widget/commit/112e668ed52e622c03d08a9bbc76870281d4ef6a)]
- comment integration tests [ionlizarazu - [`fae9883`](https://github.com/eea/volto-react-table-widget/commit/fae9883329d7ce6be2d732c1c73643f789f3ed87)]
- volto-addon-ci 15x [ionlizarazu - [`a54434b`](https://github.com/eea/volto-react-table-widget/commit/a54434b601ee720a8707b1bf19a1e949ce51a05a)]
- jenkinsfile [ionlizarazu - [`6c7393e`](https://github.com/eea/volto-react-table-widget/commit/6c7393e3edbe1052c7a6c9118c33848f23249ad1)]
- jenkinsfile [ionlizarazu - [`59e7231`](https://github.com/eea/volto-react-table-widget/commit/59e723115c34c3e748df46dfe857456b65e99481)]
- jenkinsfile [ionlizarazu - [`925300f`](https://github.com/eea/volto-react-table-widget/commit/925300fb6b2dda3398daa68bd22a2cb324d09127)]
- babel config [ionlizarazu - [`0789361`](https://github.com/eea/volto-react-table-widget/commit/07893618121ace8c6f3160cf03188a75deda00f7)]
- jenkinsfile volto version [ionlizarazu - [`bf131a1`](https://github.com/eea/volto-react-table-widget/commit/bf131a135e66d50997b6f9720a3ceef4d4fc6f67)]
- eslintrc [ionlizarazu - [`9ae85b2`](https://github.com/eea/volto-react-table-widget/commit/9ae85b20c4e399c07208eeb0a33f0bf6d45b7dbc)]
- jenkinsfile [ionlizarazu - [`427c518`](https://github.com/eea/volto-react-table-widget/commit/427c51810908ac81196e76eb32d6c0683c5efdbd)]
- jenkinsfile [ionlizarazu - [`bcbb346`](https://github.com/eea/volto-react-table-widget/commit/bcbb34665dc9946f1ef44b516803209df3337e37)]
- add eslintrc [ionlizarazu - [`9ef8d23`](https://github.com/eea/volto-react-table-widget/commit/9ef8d230c986453f586a511eb1dcc70458830b42)]
- update cell value when value changes instead of onBlur [ionlizarazu - [`73cc0c6`](https://github.com/eea/volto-react-table-widget/commit/73cc0c626ab8ee27dd4212698753f642f9a21a0e)]
- Create README.md [Mikel Larreategi - [`cbc3b63`](https://github.com/eea/volto-react-table-widget/commit/cbc3b6314cbc4f3b7dadf0b608365248f7dcf396)]
### [0.1.2](https://github.com/eea/volto-react-table-widget/compare/0.1.1...0.1.2) - 3 June 2022

#### :hammer_and_wrench: Others

- add locales [ionlizarazu - [`2f58aae`](https://github.com/eea/volto-react-table-widget/commit/2f58aaea28c038c4d48d54d1700e7539cc7d42f8)]
- add undomodifications parameter to get the Undo Modifications button optional [ionlizarazu - [`b2ebb03`](https://github.com/eea/volto-react-table-widget/commit/b2ebb034827f8605ad37f51b215e2a9bada58c5a)]
- add schemas title and description to editor [ionlizarazu - [`2250b88`](https://github.com/eea/volto-react-table-widget/commit/2250b888eb060c10c2ff1ab577810532c8476fb8)]
- refactoring code [ionlizarazu - [`99a3dc7`](https://github.com/eea/volto-react-table-widget/commit/99a3dc715d4cdacec9cbf5187fb2238d396ae708)]
- prettier [Lur Ibargutxi - [`a424381`](https://github.com/eea/volto-react-table-widget/commit/a424381fbb1899bd5a561f7ce3d16820d5af00db)]
- date type widget [Lur Ibargutxi - [`7ee1486`](https://github.com/eea/volto-react-table-widget/commit/7ee1486d3f647a57fa05576538b035b98926b821)]
### [0.1.1](https://github.com/eea/volto-react-table-widget/compare/0.1.0...0.1.1) - 16 March 2022

#### :hammer_and_wrench: Others

- fix tag [Mikel Larreategi - [`1477105`](https://github.com/eea/volto-react-table-widget/commit/1477105ee567c1daed09bb3ce1819a20a1da024e)]
### 0.1.0 - 16 March 2022

#### :hammer_and_wrench: Others

- fix paginated row edition and add/remove functionalities [ionlizarazu - [`4c0ae4e`](https://github.com/eea/volto-react-table-widget/commit/4c0ae4ed35d1fa6d25be96c0a8b62d1bc25ee481)]
- add isMulti option to select fields [ionlizarazu - [`ec3b57d`](https://github.com/eea/volto-react-table-widget/commit/ec3b57dd596f9a6adede5f4d7c286f09089ad517)]
- add react-csv package [ionlizarazu - [`69ba866`](https://github.com/eea/volto-react-table-widget/commit/69ba8660a30ae3e9413be7a564644448a8c51a06)]
- improve docs [Mikel Larreategi - [`f64ad66`](https://github.com/eea/volto-react-table-widget/commit/f64ad66e5b8ddc665a3e6a4664c4e88d535f2df7)]
- make it functional [ionlizarazu - [`6eae547`](https://github.com/eea/volto-react-table-widget/commit/6eae547e1654be6b2ebb3d846fe3f6b2eb4ae23b)]
- developing [ionlizarazu - [`ee9e4ab`](https://github.com/eea/volto-react-table-widget/commit/ee9e4abc79350992caec4f409d2f9e4fcc3398b5)]
- initial implementation [Mikel Larreategi - [`93a9449`](https://github.com/eea/volto-react-table-widget/commit/93a94490d2cbd0cd297bd0b71c4e3c985b525f61)]
- initial commit [Mikel Larreategi - [`44cd2bc`](https://github.com/eea/volto-react-table-widget/commit/44cd2bc60a530249919572090a1753c37d32efae)]
- Initial commit [Mikel Larreategi - [`4674f4b`](https://github.com/eea/volto-react-table-widget/commit/4674f4b411120cfdfacc3f8ff39dcdfe153d5a1d)]
Loading