refactor: refs #5167 Deleted provinces section
gitea/hedera-web/pipeline/pr-master This commit looks good
Details
gitea/hedera-web/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
2515cbcee7
commit
73ba16634e
41
README.md
41
README.md
|
@ -1,36 +1,55 @@
|
||||||
# Hedera
|
# 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
|
* PHP >= 7.0
|
||||||
* Node.js >= 8.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 front
|
||||||
npm run back
|
```
|
||||||
php -S 127.0.0.1:3001 -t . index.php
|
|
||||||
|
Launch salix backend.
|
||||||
|
```
|
||||||
|
$ npm run db
|
||||||
|
$ npm run back
|
||||||
|
```
|
||||||
|
Launch project backend.
|
||||||
|
```
|
||||||
|
$ php -S 127.0.0.1:3001 -t . index.php
|
||||||
```
|
```
|
||||||
|
|
||||||
### Command line
|
### Command line
|
||||||
|
|
||||||
Run server side method from 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
|
## Built with
|
||||||
|
|
||||||
|
* [nodejs](https://nodejs.org/)
|
||||||
|
* [php](https://www.php.net/)
|
||||||
* [Webpack](https://webpack.js.org/)
|
* [Webpack](https://webpack.js.org/)
|
||||||
* [MooTools](https://mootools.net/)
|
* [MooTools](https://mootools.net/)
|
||||||
* [TinyMCE](https://www.tinymce.com/)
|
* [TinyMCE](https://www.tinymce.com/)
|
||||||
|
|
|
@ -3,12 +3,5 @@ import './style.scss';
|
||||||
export default new Class({
|
export default new Class({
|
||||||
Extends: Hedera.Form,
|
Extends: Hedera.Form,
|
||||||
Template: require('./ui.xml'),
|
Template: require('./ui.xml'),
|
||||||
|
|
||||||
onShowClick(column, agencyId) {
|
|
||||||
this.hash.setAll({
|
|
||||||
form: 'agencies/provinces',
|
|
||||||
agency: agencyId
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -10,11 +10,6 @@
|
||||||
CALL vn2008.agencia_volume ()
|
CALL vn2008.agencia_volume ()
|
||||||
</custom>
|
</custom>
|
||||||
</db-model>
|
</db-model>
|
||||||
<htk-column-button
|
|
||||||
column="agency_id"
|
|
||||||
icon="search"
|
|
||||||
tip="_ShowByProvince"
|
|
||||||
on-clicked="onShowClick"/>
|
|
||||||
<htk-column-text title="_Agency" column="Agencia"/>
|
<htk-column-text title="_Agency" column="Agencia"/>
|
||||||
<htk-column-spin title="_Exps" column="expediciones"/>
|
<htk-column-spin title="_Exps" column="expediciones"/>
|
||||||
<htk-column-spin title="_Bundles" column="Bultos"/>
|
<htk-column-spin title="_Bundles" column="Bultos"/>
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
import './style.scss';
|
|
||||||
|
|
||||||
export default new Class({
|
|
||||||
Extends: Hedera.Form,
|
|
||||||
Template: require('./ui.xml')
|
|
||||||
});
|
|
||||||
|
|
|
@ -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
|
|
|
@ -1,6 +0,0 @@
|
||||||
ByProvince: Breakdown by province
|
|
||||||
Return: Return
|
|
||||||
SelectAgency: Select an agency
|
|
||||||
Province: Province
|
|
||||||
Expeditions: Exps.
|
|
||||||
Left: Left
|
|
|
@ -1,6 +0,0 @@
|
||||||
ByProvince: Desglose por provincia
|
|
||||||
Return: Volver
|
|
||||||
SelectAgency: Selecciona una agencia
|
|
||||||
Province: Provincia
|
|
||||||
Expeditions: Exps.
|
|
||||||
Left: Faltan
|
|
|
@ -1,6 +0,0 @@
|
||||||
ByProvince: Par province
|
|
||||||
Return: Retour
|
|
||||||
SelectAgency: Sélectionnez une agence
|
|
||||||
Province: Province
|
|
||||||
Expeditions: Expéditions
|
|
||||||
Left: Restant
|
|
|
@ -1,6 +0,0 @@
|
||||||
ByProvince: Desglosse por Distritos
|
|
||||||
Return: Voltar
|
|
||||||
SelectAgency: Seleccione uma agência
|
|
||||||
Province: Distrito
|
|
||||||
Expeditions: Exps.
|
|
||||||
Left: Faltam
|
|
|
@ -1,18 +0,0 @@
|
||||||
<vn>
|
|
||||||
<div id="title">
|
|
||||||
<h1><t>ByProvince</t></h1>
|
|
||||||
</div>
|
|
||||||
<div id="form" class="provinces vn-w-sm">
|
|
||||||
<div class="box">
|
|
||||||
<htk-grid>
|
|
||||||
<db-model property="model" lot="hash">
|
|
||||||
CALL vn2008.desglose_volume(#agency)
|
|
||||||
</db-model>
|
|
||||||
<htk-column-text title="_Province" column="Provincia"/>
|
|
||||||
<htk-column-spin title="_Expeditions" column="expediciones"/>
|
|
||||||
<htk-column-spin title="_Bundles" column="Bultos"/>
|
|
||||||
<htk-column-spin title="_Left" column="Prevision"/>
|
|
||||||
</htk-grid>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</vn>
|
|
Loading…
Reference in New Issue