diff --git a/app.js b/app.js index 138ca36b..28b7aaf2 100644 --- a/app.js +++ b/app.js @@ -61,4 +61,3 @@ function loadLocale (cb) cb (require.context ('js', true, /locale\/en.json$/)); }); } } - diff --git a/debian/changelog b/debian/changelog index 45f05bdb..c9b5ce4b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (2.0.1) stable; urgency=low +hedera-web (2.0.3) stable; urgency=low * Initial Release. diff --git a/debian/control b/debian/control index d3ccdba8..05e31365 100644 --- a/debian/control +++ b/debian/control @@ -9,7 +9,7 @@ Vcs-Git: git://www.verdnatura.es/var/git/hedera-web Package: hedera-web Architecture: all -Depends: apache2, php5-mysql, php5-mcrypt, php5-ssh2, php-vn-lib, php-acpu, nodejs, npm +Depends: apache2, php5-mysql, php5-mcrypt, php5-ssh2, php5-apcu, php-vn-lib, nodejs, npm Suggests: php-text-captcha, php5-imap Section: misc Priority: optional diff --git a/debian/install b/debian/install index ddaaaa78..b709bf6e 100644 --- a/debian/install +++ b/debian/install @@ -10,5 +10,6 @@ reports usr/share/hedera-web rest usr/share/hedera-web index.php usr/share/hedera-web package.json usr/share/hedera-web -build usr/share/hedera-web manifest.json usr/share/hedera-web +webpack.config.json usr/share/hedera-web +build usr/share/hedera-web diff --git a/forms/ecomerce/basket/style.css b/forms/ecomerce/basket/style.css index bed6bd76..e7c05999 100644 --- a/forms/ecomerce/basket/style.css +++ b/forms/ecomerce/basket/style.css @@ -8,9 +8,10 @@ } .basket .head { + padding: 0; padding-bottom: 2em; - margin: 0; border-bottom: 1px solid #DDD; + margin-bottom: 1em; } .basket .head p { @@ -22,13 +23,9 @@ /* Lines */ -.basket .lines -{ - padding: .8em 0; -} .basket .line { - padding: 1em 0; + padding: .5em 0; } .basket .line > .delete { @@ -48,7 +45,7 @@ .basket .line > p { margin: .1em 0; - margin-left: 7.5em; + margin-left: 6em; } .basket .line .subtotal { diff --git a/forms/ecomerce/basket/ui.xml b/forms/ecomerce/basket/ui.xml index 07d111df..549a07af 100755 --- a/forms/ecomerce/basket/ui.xml +++ b/forms/ecomerce/basket/ui.xml @@ -26,50 +26,48 @@

-
- - - - SELECT i.id, i.amount, i.price, a.Article, a.Categoria, - a.Medida, a.Tallos, a.Color, o.Abreviatura, a.Foto - FROM basket_item i - JOIN vn2008.Articles a ON a.Id_Article = i.item_id - LEFT JOIN vn2008.Origen o ON a.id_origen = o.id - - + + -
- - -

- - - -

-

- x - - - - -

-
-
+ SELECT i.id, i.amount, i.price, a.Article, a.Categoria, + a.Medida, a.Tallos, a.Color, o.Abreviatura, a.Foto + FROM basket_item i + JOIN vn2008.Articles a ON a.Id_Article = i.item_id + LEFT JOIN vn2008.Origen o ON a.id_origen = o.id - -
+
+ +
+ + +

+ + + +

+

+ x + + + + +

+
+
+ +
diff --git a/forms/ecomerce/confirm/style.css b/forms/ecomerce/confirm/style.css index 01dbb62d..3ab459fe 100644 --- a/forms/ecomerce/confirm/style.css +++ b/forms/ecomerce/confirm/style.css @@ -2,14 +2,6 @@ { color: #555; } -.confirm .card -{ - padding: 2.2em 2.5em; -} -.confirm .summary -{ - margin-bottom: 1em; -} .confirm .address { margin-top: .8em; @@ -119,4 +111,3 @@ { margin: .1em 0; } - diff --git a/forms/ecomerce/ticket/style.css b/forms/ecomerce/ticket/style.css index e7b533df..142ef4da 100644 --- a/forms/ecomerce/ticket/style.css +++ b/forms/ecomerce/ticket/style.css @@ -31,13 +31,18 @@ { padding: .5em 0; } +.ticket .line > .photo +{ + margin-right: 1em; + float: left; + border-radius: 50%; + height: 3.2em; + width: 3.2em; +} .ticket .line p { margin: .1em 0; -} -.ticket .amount -{ - float: left; + margin-left: 4em; } .ticket .subtotal { diff --git a/forms/ecomerce/ticket/ui.xml b/forms/ecomerce/ticket/ui.xml index 96125e7b..605bb999 100755 --- a/forms/ecomerce/ticket/ui.xml +++ b/forms/ecomerce/ticket/ui.xml @@ -6,12 +6,12 @@ SELECT t.id, date, a.Agencia, note, p.name province, - zip_code, city, c.name, consignee, invoice, delivery + zip_code, city, c.name, consignee, invoice, delivery FROM ticket_view t - JOIN address_view c ON t.address_id = c.id - JOIN vn2008.Agencias a ON t.agency_id = a.Id_Agencia - JOIN vn2008.province p ON c.province_id = p.province_id - WHERE t.id = #ticket + JOIN address_view c ON t.address_id = c.id + JOIN vn2008.Agencias a ON t.agency_id = a.Id_Agencia + JOIN vn2008.province p ON c.province_id = p.province_id + WHERE t.id = #ticket @@ -69,14 +69,15 @@ - SELECT m.item_id, amount, concept, Categoria, Medida, Tallos, Color, - Abreviatura, IF(fixed != FALSE, price, NULL) price, fixed, discount + SELECT m.item_id, m.amount, m.concept, + IF(m.fixed != FALSE, m.price, NULL) price, m.fixed, m.discount, + o.Abreviatura, a.Categoria, a.Medida, a.Tallos, a.Color, a.Foto FROM ticket_row_view m - INNER JOIN vn2008.Articles a - ON m.item_id = a.Id_Article AND ticket_id = #ticket - LEFT JOIN vn2008.Origen o - ON a.id_origen = o.id - ORDER BY concept + INNER JOIN vn2008.Articles a + ON m.item_id = a.Id_Article AND ticket_id = #ticket + LEFT JOIN vn2008.Origen o + ON a.id_origen = o.id + ORDER BY concept @@ -86,6 +87,13 @@
+

@@ -94,9 +102,9 @@

x -

-

- + + +

diff --git a/image/logo.png b/image/logo.png new file mode 100644 index 00000000..55e26fec Binary files /dev/null and b/image/logo.png differ diff --git a/index.php b/index.php index b9b0cad3..02b59a37 100755 --- a/index.php +++ b/index.php @@ -5,4 +5,3 @@ require_once 'vn-autoload.php'; $webApp = new Vn\Web\App ('hedera-web'); $webApp->run (); - diff --git a/js/hedera/app.js b/js/hedera/app.js index cd6ce000..6871c10b 100644 --- a/js/hedera/app.js +++ b/js/hedera/app.js @@ -48,7 +48,7 @@ module.exports = new Class gui.show (); } - ,_onLogout: function (gui) + ,_onLogout: function () { this.clearAutoLogin (); this._freeGui (); diff --git a/js/hedera/login.js b/js/hedera/login.js index 56144131..78fa4d4d 100644 --- a/js/hedera/login.js +++ b/js/hedera/login.js @@ -44,7 +44,7 @@ module.exports = new Class this.$('spinner').stop (); } - ,show: function (firstLogin) + ,show: function () { document.body.appendChild (this.node); @@ -114,7 +114,7 @@ module.exports = new Class if (!user) Htk.Toast.showError (_('Please write your user name')); else - this._conn.send ('core/recover-password', {'user': user}, + this._conn.send ('core/recover-password', {'recoverUser': user}, this._onPasswordRecovered.bind (this)); } diff --git a/js/hedera/report.js b/js/hedera/report.js index d48c5b86..b7fe0165 100644 --- a/js/hedera/report.js +++ b/js/hedera/report.js @@ -100,4 +100,3 @@ module.exports = new Class this.doc.body.appendChild (res.$('report')); } }); - diff --git a/js/htk/style.css b/js/htk/style.css index 27e88c9e..6f345467 100644 --- a/js/htk/style.css +++ b/js/htk/style.css @@ -99,7 +99,7 @@ th.cell-radio } td.cell-button { - max-width: 1px; + width: 1em; text-align: center; } td.cell-button > button @@ -633,4 +633,3 @@ td.cell-image .htk-image { to {-webkit-transform: rotate(360deg);} } - diff --git a/package.json b/package.json index 8e77c567..83b993b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hedera-web", - "version": "2.0.1", + "version": "2.0.3", "description": "Verdnatura web page", "devDependencies": { "assets-webpack-plugin": "^3.5.1", diff --git a/pages/main/ui.php b/pages/main/ui.php index f081b50b..65a7a283 100755 --- a/pages/main/ui.php +++ b/pages/main/ui.php @@ -1,47 +1,7 @@ query('SELECT name, content FROM metatag'); - -$wpConfig = json_decode (file_get_contents ('webpack.config.json')); -$buildDir = $wpConfig->buildDir; -$devServerPort = $wpConfig->devServerPort; - -$host = $_SERVER['SERVER_NAME']; -$assets = new stdClass(); - -if (!_DEV_MODE) -{ - $wpAssets = json_decode (file_get_contents ("$buildDir/webpack-assets.json")); - - $manifestJs = $wpAssets->manifest->js; - $mainJs = $wpAssets->main->js; - unset ($wpAssets->manifest); - unset ($wpAssets->main); - - foreach ($wpAssets as $name => $asset) - if (property_exists ($asset, 'js')) - $assets->$name = $asset->js; -} -else -{ - $devServerPath = "http://$host:$devServerPort/$buildDir"; - $manifestJs = "$devServerPath/manifest.js"; - $mainJs = "$devServerPath/main.js"; - - unset ($wpConfig->entry->main); - - foreach ($wpConfig->entry as $asset => $files) - $assets->$asset = "$devServerPath/$asset.js"; -} - -$jsFiles = []; -$jsFiles[] = $manifestJs; - -foreach ($assets as $jsFile) - $jsFiles[] = $jsFile; - -$jsFiles[] = $mainJs; +$result = $db->query ('SELECT name, content FROM metatag'); ?> @@ -58,11 +18,11 @@ $jsFiles[] = $mainJs; - fetch_object()): ?> + fetch_object ()): ?> - + diff --git a/reports/delivery-note/locale/es.json b/reports/delivery-note/locale/es.json new file mode 100644 index 00000000..d6cc0100 --- /dev/null +++ b/reports/delivery-note/locale/es.json @@ -0,0 +1,3 @@ +{ + "Import": "Importe" +} \ No newline at end of file diff --git a/reports/delivery-note/ui.xml b/reports/delivery-note/ui.xml index e92107b1..16c24034 100755 --- a/reports/delivery-note/ui.xml +++ b/reports/delivery-note/ui.xml @@ -56,7 +56,7 @@ - +

- Estamos teniendo problemas; por favor, - espera unos minutos e inténtalo de nuevo. + We are having problems; Please wait a few minutes and try again.

- Intentarlo de nuevo + Try it again