From 73ba16634eb544790aa56f05e4f0282812e65ebe Mon Sep 17 00:00:00 2001 From: guillermo Date: Mon, 11 Mar 2024 08:50:35 +0100 Subject: [PATCH] refactor: refs #5167 Deleted provinces section --- README.md | 41 +++++++++++++++++++------- forms/agencies/packages/index.js | 7 ----- forms/agencies/packages/ui.xml | 5 ---- forms/agencies/provinces/index.js | 7 ----- forms/agencies/provinces/locale/ca.yml | 6 ---- forms/agencies/provinces/locale/en.yml | 6 ---- forms/agencies/provinces/locale/es.yml | 6 ---- forms/agencies/provinces/locale/fr.yml | 6 ---- forms/agencies/provinces/locale/pt.yml | 6 ---- forms/agencies/provinces/style.scss | 0 forms/agencies/provinces/ui.xml | 18 ----------- import.js | 4 +-- 12 files changed, 31 insertions(+), 81 deletions(-) delete mode 100644 forms/agencies/provinces/index.js delete mode 100644 forms/agencies/provinces/locale/ca.yml delete mode 100644 forms/agencies/provinces/locale/en.yml delete mode 100644 forms/agencies/provinces/locale/es.yml delete mode 100644 forms/agencies/provinces/locale/fr.yml delete mode 100644 forms/agencies/provinces/locale/pt.yml delete mode 100644 forms/agencies/provinces/style.scss delete mode 100644 forms/agencies/provinces/ui.xml diff --git a/README.md b/README.md index 02a6bd99..63f726a3 100644 --- a/README.md +++ b/README.md @@ -1,36 +1,55 @@ # Hedera -Hedera is the main web page for Verdnatura. +Hedera is the main web shop page for Verdnatura. -## Getting Started +## Prerequisites -Required dependencies. +Required applications. * PHP >= 7.0 * Node.js >= 8.0 + * [php-vn-lib](https://gitea.verdnatura.es/verdnatura/php-vn-lib) -### Web application +### Installing dependencies and launching -Launch fronted. +Pull from repository. + +Run this commands on project root directory to install Node dependencies. ``` -npm run front +$ npm install ``` -Launch backend. +Install project [dependences](https://gitea.verdnatura.es/verdnatura/hedera-web/src/branch/dev/debian/control). + +Pull from repository [php-vn-lib](https://gitea.verdnatura.es/verdnatura/php-vn-lib) and install [dependences](https://gitea.verdnatura.es/verdnatura/php-vn-lib/src/branch/master/debian/control) of this project. + +Configure [config.php](https://gitea.verdnatura.es/verdnatura/hedera-web/src/branch/dev/config.php) file. + +Launch project fronted. ``` -npm run db -npm run back -php -S 127.0.0.1:3001 -t . index.php +$ npm run front +``` + +Launch salix backend. +``` +$ npm run db +$ npm run back +``` +Launch project backend. +``` +$ php -S 127.0.0.1:3001 -t . index.php ``` ### Command line Run server side method from command line. ``` -php hedera-web.php -m method_path +$ php hedera-web.php -m method_path ``` ## Built with + * [nodejs](https://nodejs.org/) + * [php](https://www.php.net/) * [Webpack](https://webpack.js.org/) * [MooTools](https://mootools.net/) * [TinyMCE](https://www.tinymce.com/) diff --git a/forms/agencies/packages/index.js b/forms/agencies/packages/index.js index 8c8d3238..2a34fa24 100644 --- a/forms/agencies/packages/index.js +++ b/forms/agencies/packages/index.js @@ -3,12 +3,5 @@ import './style.scss'; export default new Class({ Extends: Hedera.Form, Template: require('./ui.xml'), - - onShowClick(column, agencyId) { - this.hash.setAll({ - form: 'agencies/provinces', - agency: agencyId - }); - } }); diff --git a/forms/agencies/packages/ui.xml b/forms/agencies/packages/ui.xml index 866bab74..ac865023 100644 --- a/forms/agencies/packages/ui.xml +++ b/forms/agencies/packages/ui.xml @@ -10,11 +10,6 @@ CALL vn2008.agencia_volume () - diff --git a/forms/agencies/provinces/index.js b/forms/agencies/provinces/index.js deleted file mode 100644 index 36552d4f..00000000 --- a/forms/agencies/provinces/index.js +++ /dev/null @@ -1,7 +0,0 @@ -import './style.scss'; - -export default new Class({ - Extends: Hedera.Form, - Template: require('./ui.xml') -}); - diff --git a/forms/agencies/provinces/locale/ca.yml b/forms/agencies/provinces/locale/ca.yml deleted file mode 100644 index c46b70c3..00000000 --- a/forms/agencies/provinces/locale/ca.yml +++ /dev/null @@ -1,6 +0,0 @@ -ByProvince: Desglose per província -Return: Tornar -SelectAgency: Selecciona una agència al llistat de l'esquerra -Province: Província -Expeditions: Exps. -Left: Falten diff --git a/forms/agencies/provinces/locale/en.yml b/forms/agencies/provinces/locale/en.yml deleted file mode 100644 index f72295d0..00000000 --- a/forms/agencies/provinces/locale/en.yml +++ /dev/null @@ -1,6 +0,0 @@ -ByProvince: Breakdown by province -Return: Return -SelectAgency: Select an agency -Province: Province -Expeditions: Exps. -Left: Left diff --git a/forms/agencies/provinces/locale/es.yml b/forms/agencies/provinces/locale/es.yml deleted file mode 100644 index f04d3d2e..00000000 --- a/forms/agencies/provinces/locale/es.yml +++ /dev/null @@ -1,6 +0,0 @@ -ByProvince: Desglose por provincia -Return: Volver -SelectAgency: Selecciona una agencia -Province: Provincia -Expeditions: Exps. -Left: Faltan diff --git a/forms/agencies/provinces/locale/fr.yml b/forms/agencies/provinces/locale/fr.yml deleted file mode 100644 index e289766b..00000000 --- a/forms/agencies/provinces/locale/fr.yml +++ /dev/null @@ -1,6 +0,0 @@ -ByProvince: Par province -Return: Retour -SelectAgency: Sélectionnez une agence -Province: Province -Expeditions: Expéditions -Left: Restant diff --git a/forms/agencies/provinces/locale/pt.yml b/forms/agencies/provinces/locale/pt.yml deleted file mode 100644 index 815c8d5c..00000000 --- a/forms/agencies/provinces/locale/pt.yml +++ /dev/null @@ -1,6 +0,0 @@ -ByProvince: Desglosse por Distritos -Return: Voltar -SelectAgency: Seleccione uma agência -Province: Distrito -Expeditions: Exps. -Left: Faltam diff --git a/forms/agencies/provinces/style.scss b/forms/agencies/provinces/style.scss deleted file mode 100644 index e69de29b..00000000 diff --git a/forms/agencies/provinces/ui.xml b/forms/agencies/provinces/ui.xml deleted file mode 100644 index 46fd7c04..00000000 --- a/forms/agencies/provinces/ui.xml +++ /dev/null @@ -1,18 +0,0 @@ - -
-

ByProvince

-
-
-
- - - CALL vn2008.desglose_volume(#agency) - - - - - - -
-
-
diff --git a/import.js b/import.js index 4b33cf30..fe87079e 100644 --- a/import.js +++ b/import.js @@ -40,9 +40,7 @@ export const routes = { }, agencies: { packages: - () => import('agencies/packages'), - provinces: - () => import('agencies/provinces') + () => import('agencies/packages') }, cms: { about: