- {{address.nickname}} -
-- {{address.street}} -
-- {{address.postalCode}}, {{address.city}} -
-diff --git a/README.md b/README.md
index c5032e41..92133199 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,7 @@ $ npm run dev
Launch project backend.
```
+$ cd back
$ php -S 127.0.0.1:3002 -t . index.php
Run server side method from command line.
diff --git a/app.js b/app.js
deleted file mode 100644
index dc8b10cc..00000000
--- a/app.js
+++ /dev/null
@@ -1,41 +0,0 @@
-__webpack_public_path__ = _PUBLIC_PATH;
-
-import 'promise-polyfill/src/polyfill';
-import 'hedera/hedera';
-const locales = require('./import').locales;
-const packageJson = require('./package.json');
-
-window.onload = function() {
- loadLocale(main);
-}
-
-function main() {
- Vn.setVersion(packageJson.version);
- const hederaWeb = new Hedera.App();
- window.hederaWeb = hederaWeb;
- hederaWeb.run();
-}
-
-function loadLocale(callback) {
- Vn.Locale.init();
- var lang = Vn.Locale.language;
-
- var req = require.context('js', true, /locale\/en.yml$/);
- onLocaleLoad(Vn.Locale.fallbackLang, req);
-
- const loadFn = locales[lang];
- if (loadFn)
- loadFn(function(req) {
- onLocaleLoad(lang, req);
- callback();
- });
- else
- callback();
-}
-
-function onLocaleLoad(lang, req) {
- var keys = req.keys();
-
- for (var i = 0; i < keys.length; i++)
- Vn.Locale.add(req(keys[i]), lang);
-}
diff --git a/apache.conf b/back/apache.conf
similarity index 100%
rename from apache.conf
rename to back/apache.conf
diff --git a/config.php b/back/config.php
similarity index 100%
rename from config.php
rename to back/config.php
diff --git a/env.php b/back/env.php
similarity index 81%
rename from env.php
rename to back/env.php
index e75811c3..f18eb613 100644
--- a/env.php
+++ b/back/env.php
@@ -1,6 +1,6 @@
-
- {{address.nickname}} -
-- {{address.street}} -
-- {{address.postalCode}}, {{address.city}} -
-#{{user.id}} - {{user.user}}
-{{user.role}}
-{{user.email}}
-{{user.phone}}
-- {{Vn.Value.format(iter.stamp, _('%a, %e %b %Y at %T'))}} -
-- {{iter.platform}} - {{iter.browser}} {{iter.version}} -
-- {{iter.nickname}} -
-- {{Vn.Value.format(iter.stamp, '%a, %T')}} - - {{Vn.Value.format(iter.lastUpdate, '%T')}} -
-- {{iter.platform}} - {{iter.browser}} {{iter.version}} -
-- {{iter.longName}} -
- -- {{iter.id}} -
-- {{iter.image}} -
-- {{iter.description}} -
- -- {{iter.nickname}} -
-- #{{iter.id}} - {{iter.name}} -
-
-
- {{iter.browser}} {{iter.minVersion}} - {{iter.maxVersion}} -
-
- {{iter.visits}}
- {{Vn.Value.format(iter.lastVisit, _('%a, %e %b %Y at %T'))}} -
-
-
-
-
-
-
- {{iter.amount}} x {{Vn.Value.format(iter.price, '%.2d€')}} -
-- - #{{item.id}} - - {{item.subName}} -
-{{item.tag5}} | -{{item.value5}} | -
{{item.tag6}} | -{{item.value6}} | -
{{item.tag7}} | -{{item.value7}} | -
{{Vn.Value.format(basket.sent, '%D')}}
-- {{_(basket.method != 'PICKUP' ? 'Agency' : 'Warehouse')}} - {{basket.agency}} -
- -{{card.subName}}
-#{{card.id}}
-{{Vn.Value.format(card.stems, _('%.0d Units'))}}
-{{extendedCard.description}}
-{{iter.nickname}}
-{{iter.street}}
-
-
-
-
-
-
-
-
{{order.nickname}}
-{{order.street}}
-{{order.postalCode}}, {{order.city}}
-
- |
- |
- |
- - {{Vn.Value.format(order.taxableBase, _('%.2d€'))}} - | -
- |
- - {{Vn.Value.format(order.tax, _('%.2d€'))}} - | -
- |
-
- |
-
- |
- - {{Vn.Value.format(order.credit, _('%.2d€'))}} - | -
- |
-
- |
-
{{iter.name}}
-{{iter.iban}}
-- {{Vn.Value.format(iter.total, '%.2d€')}} -
-- {{Vn.Value.format(iter.landed, '%D')}} -
-#{{iter.id}}
-{{iter.nickname}}
-{{iter.agency}}
-
-
-
- {{_(ticket.method != 'PICKUP' ? 'Agency' : 'Warehouse')}} {{ticket.agency}} -
-{{ticket.nickname}}
-{{ticket.street}}
-{{ticket.postalCode}} {{ticket.city}} ({{ticket.province}})
-
-
-
- - {{Vn.Value.format(this.discountSubtotal(iter), '%.2d€')}} - - {{Vn.Value.format(iter.discount, '%.0d%')}} = - - {{Vn.Value.format(this.subtotal(iter), '%.2d€')}} -
-- {{iter.quantity}} x {{Vn.Value.format(iter.price, '%.2d€')}} -
-- {{iter.quantity}} x {{Vn.Value.format(iter.price, '%.2d€')}} -
-- {{Vn.Value.format(iter.quantity * iter.price, '%.2d€')}} -
-#{{iter.id}}
-{{iter.quantity}}
-- {{iter.title}} -
-{{iter.nickname}}
-{{iter.priority}}
-