@fleetbase/storefront-engine 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/addon/components/file-record.hbs +9 -2
- package/addon/components/file-record.js +3 -2
- package/addon/components/modals/add-store-hours.hbs +12 -2
- package/addon/components/modals/assign-driver.hbs +18 -5
- package/addon/components/modals/create-first-store.hbs +18 -6
- package/addon/components/modals/create-gateway.hbs +19 -7
- package/addon/components/modals/create-network-category.hbs +23 -5
- package/addon/components/modals/create-network.hbs +15 -7
- package/addon/components/modals/create-new-variant.hbs +20 -4
- package/addon/components/modals/create-notification-channel.hbs +22 -17
- package/addon/components/modals/create-product-category.hbs +22 -7
- package/addon/components/modals/create-store.hbs +11 -3
- package/addon/components/modals/import-products.hbs +34 -15
- package/addon/components/modals/incoming-order.hbs +29 -19
- package/addon/components/modals/manage-addons.hbs +50 -9
- package/addon/components/modals/manage-addons.js +3 -2
- package/addon/components/modals/order-ready-assign-driver.hbs +24 -13
- package/addon/components/modals/select-addon-category.hbs +8 -1
- package/addon/components/modals/share-network.hbs +23 -8
- package/addon/components/modals/store-details.hbs +4 -4
- package/addon/components/modals/store-form.hbs +24 -5
- package/addon/components/modals/store-location-form.hbs +26 -16
- package/addon/components/network-category-picker.hbs +17 -6
- package/addon/components/schedule-manager.hbs +8 -1
- package/addon/components/schedule-manager.js +6 -5
- package/addon/components/store-selector.hbs +14 -3
- package/addon/components/widget/customers.hbs +16 -7
- package/addon/components/widget/customers.js +2 -1
- package/addon/components/widget/orders.hbs +58 -23
- package/addon/components/widget/orders.js +17 -16
- package/addon/components/widget/storefront-metrics.hbs +5 -5
- package/addon/controllers/customers/index.js +21 -13
- package/addon/controllers/networks/index/network/index.js +16 -9
- package/addon/controllers/networks/index/network/stores.js +39 -31
- package/addon/controllers/networks/index/network.js +3 -2
- package/addon/controllers/networks/index.js +10 -3
- package/addon/controllers/orders/index.js +30 -23
- package/addon/controllers/products/index/category/edit.js +5 -3
- package/addon/controllers/products/index/category/new.js +10 -9
- package/addon/controllers/products/index/category.js +8 -7
- package/addon/controllers/products/index/index.js +9 -2
- package/addon/controllers/products/index.js +9 -8
- package/addon/controllers/settings/gateways.js +7 -6
- package/addon/controllers/settings/index.js +1 -0
- package/addon/controllers/settings/locations.js +18 -11
- package/addon/controllers/settings/notifications.js +8 -7
- package/addon/services/storefront.js +13 -7
- package/addon/templates/application.hbs +8 -8
- package/addon/templates/customers/index/edit.hbs +0 -1
- package/addon/templates/customers/index.hbs +23 -4
- package/addon/templates/home.hbs +1 -1
- package/addon/templates/networks/index/network/customers.hbs +0 -1
- package/addon/templates/networks/index/network/index.hbs +200 -62
- package/addon/templates/networks/index/network/orders.hbs +0 -1
- package/addon/templates/networks/index/network/stores.hbs +18 -3
- package/addon/templates/networks/index/network.hbs +5 -5
- package/addon/templates/networks/index.hbs +12 -7
- package/addon/templates/orders/index/edit.hbs +0 -1
- package/addon/templates/orders/index/new.hbs +0 -1
- package/addon/templates/orders/index/view.hbs +0 -1
- package/addon/templates/orders/index.hbs +25 -6
- package/addon/templates/products/index/category/new.hbs +65 -12
- package/addon/templates/products/index.hbs +27 -6
- package/addon/templates/settings/api.hbs +3 -3
- package/addon/templates/settings/gateways.hbs +10 -10
- package/addon/templates/settings/index.hbs +146 -51
- package/addon/templates/settings/locations.hbs +13 -6
- package/addon/templates/settings/notifications.hbs +5 -7
- package/addon/templates/settings.hbs +6 -6
- package/composer.json +3 -3
- package/extension.json +1 -1
- package/package.json +3 -1
- package/translations/en-us.yaml +574 -1
|
@@ -4,14 +4,21 @@
|
|
|
4
4
|
<div class="flex flex-col md:flex-row justify-between">
|
|
5
5
|
<div>
|
|
6
6
|
<h1 class="text-lg leading-6 font-bold text-gray-900 dark:text-gray-100">
|
|
7
|
-
|
|
7
|
+
{{t "storefront.settings.locations.location-setting"}}
|
|
8
8
|
</h1>
|
|
9
9
|
<p class="mt-1 text-sm text-gray-500">
|
|
10
|
-
|
|
10
|
+
{{t "storefront.settings.locations.manage-store"}}
|
|
11
11
|
</p>
|
|
12
12
|
</div>
|
|
13
13
|
<div>
|
|
14
|
-
<Button
|
|
14
|
+
<Button
|
|
15
|
+
@wrapperClass="flex-shrink-0"
|
|
16
|
+
@icon="plus"
|
|
17
|
+
@iconPrefix="fas"
|
|
18
|
+
@type="primary"
|
|
19
|
+
@text={{t "storefront.settings.locations.text-location"}}
|
|
20
|
+
@onClick={{this.createNewLocation}}
|
|
21
|
+
/>
|
|
15
22
|
</div>
|
|
16
23
|
</div>
|
|
17
24
|
|
|
@@ -19,11 +26,11 @@
|
|
|
19
26
|
<ContentPanel @title={{storeLocation.name}} @open={{true}} @pad={{true}}>
|
|
20
27
|
<div class="flex items-center justify-between mb-4">
|
|
21
28
|
<div>
|
|
22
|
-
<h4 class="dark:text-gray-100 text-base font-semibold">
|
|
29
|
+
<h4 class="dark:text-gray-100 text-base font-semibold">{{t "storefront.settings.locations.store-hour"}}</h4>
|
|
23
30
|
</div>
|
|
24
31
|
<div class="flex items-center">
|
|
25
|
-
<Button @icon="edit" @text="
|
|
26
|
-
<Button @icon="trash" @type="danger" @text="
|
|
32
|
+
<Button @icon="edit" @text={{t "storefront.common.edit"}} @onClick={{fn this.editStoreLocation storeLocation}} @wrapperClass="mr-2" />
|
|
33
|
+
<Button @icon="trash" @type="danger" @text={{t "storefront.common.delete"}} @onClick={{fn this.removeStoreLocation storeLocation}} />
|
|
27
34
|
</div>
|
|
28
35
|
</div>
|
|
29
36
|
<div class="mb-6 uppercase dark:text-gray-100">
|
|
@@ -4,16 +4,14 @@
|
|
|
4
4
|
<div class="flex justify-between">
|
|
5
5
|
<div class="w-3/4">
|
|
6
6
|
<h1 class="text-lg leading-6 font-bold text-gray-900 dark:text-gray-100">
|
|
7
|
-
|
|
7
|
+
{{t "storefront.settings.notification.notification-settings"}}
|
|
8
8
|
</h1>
|
|
9
9
|
<p class="mt-1 text-sm text-gray-500">
|
|
10
|
-
|
|
11
|
-
have
|
|
12
|
-
it's own rules and options.
|
|
10
|
+
{{t "storefront.settings.notification.notification-storefront"}}
|
|
13
11
|
</p>
|
|
14
12
|
</div>
|
|
15
13
|
<div>
|
|
16
|
-
<Button @icon="plus" @iconPrefix="fas" @type="primary" @text="
|
|
14
|
+
<Button @icon="plus" @iconPrefix="fas" @type="primary" @text={{t "storefront.settings.notification.new-channel"}} @onClick={{this.createChannel}} />
|
|
17
15
|
</div>
|
|
18
16
|
</div>
|
|
19
17
|
|
|
@@ -24,8 +22,8 @@
|
|
|
24
22
|
<span class="dark:text-gray-50">{{notificationChannel.name}}</span>
|
|
25
23
|
</div>
|
|
26
24
|
<div class="flex items-center">
|
|
27
|
-
<Button @size="xs" @type="default" @text="
|
|
28
|
-
<Button @size="xs" @type="danger" @text="
|
|
25
|
+
<Button @size="xs" @type="default" @text={{t "storefront.common.edit"}} @wrapperClass="mr-2" @onClick={{fn this.editChannel notificationChannel}} />
|
|
26
|
+
<Button @size="xs" @type="danger" @text={{t "storefront.common.delete"}} @onClick={{fn this.deleteChannel notificationChannel}} />
|
|
29
27
|
</div>
|
|
30
28
|
</div>
|
|
31
29
|
{{/each}}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
<Layout::Section::Header @title="
|
|
1
|
+
<Layout::Section::Header @title={{t "storefront.common.settings"}} class="align-items-unset" @actionsWrapperClass="align-items-end-i">
|
|
2
2
|
<div class="ui-tabs w-full border-b-0i">
|
|
3
3
|
<nav>
|
|
4
4
|
<LinkTo @route="settings.index" class="ui-tab">
|
|
5
5
|
<FaIcon @icon="cog" @prefix="fas" class="mr-1" />
|
|
6
|
-
<span>
|
|
6
|
+
<span>{{t "storefront.common.general"}}</span>
|
|
7
7
|
</LinkTo>
|
|
8
8
|
<LinkTo @route="settings.locations" class="ui-tab">
|
|
9
9
|
<FaIcon @icon="map-marker-alt" class="mr-1" />
|
|
10
|
-
<span>
|
|
10
|
+
<span>{{t "storefront.common.location"}}</span>
|
|
11
11
|
</LinkTo>
|
|
12
12
|
<LinkTo @route="settings.gateways" class="ui-tab">
|
|
13
13
|
<FaIcon @icon="cash-register" class="mr-1" />
|
|
14
|
-
<span>
|
|
14
|
+
<span>{{t "storefront.common.gateways"}}</span>
|
|
15
15
|
</LinkTo>
|
|
16
16
|
<LinkTo @route="settings.api" class="ui-tab">
|
|
17
17
|
<FaIcon @icon="code" class="mr-1" />
|
|
18
|
-
<span>
|
|
18
|
+
<span>{{t "storefront.common.api"}}</span>
|
|
19
19
|
</LinkTo>
|
|
20
20
|
<LinkTo @route="settings.notifications" class="ui-tab">
|
|
21
21
|
<FaIcon @icon="bells" class="mr-1" />
|
|
22
|
-
<span>
|
|
22
|
+
<span>{{t "storefront.common.notification"}}</span>
|
|
23
23
|
</LinkTo>
|
|
24
24
|
</nav>
|
|
25
25
|
</div>
|
package/composer.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fleetbase/storefront-api",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Headless Commerce & Marketplace Extension for Fleetbase",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fleetbase-extension",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
],
|
|
23
23
|
"require": {
|
|
24
24
|
"php": "^7.4|^8.0",
|
|
25
|
-
"fleetbase/core-api": "^1.3.
|
|
26
|
-
"fleetbase/fleetops-api": "^0.4.
|
|
25
|
+
"fleetbase/core-api": "^1.3.12",
|
|
26
|
+
"fleetbase/fleetops-api": "^0.4.1",
|
|
27
27
|
"geocoder-php/google-maps-places-provider": "^1.4",
|
|
28
28
|
"laravel-notification-channels/apn": "^3.8",
|
|
29
29
|
"laravel-notification-channels/fcm": "^2.7",
|
package/extension.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fleetbase/storefront-engine",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Headless Commerce & Marketplace Extension for Fleetbase",
|
|
5
5
|
"fleetbase": {
|
|
6
6
|
"route": "storefront",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"lint:hbs:fix": "ember-template-lint . --fix",
|
|
35
35
|
"lint:js": "eslint . --cache",
|
|
36
36
|
"lint:js:fix": "eslint . --fix",
|
|
37
|
+
"lint:intl": "fleetbase-intl-lint",
|
|
37
38
|
"start": "ember serve",
|
|
38
39
|
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
|
|
39
40
|
"test:ember": "ember test",
|
|
@@ -56,6 +57,7 @@
|
|
|
56
57
|
"ember-wormhole": "^0.6.0"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
60
|
+
"@fleetbase/intl-lint": "^0.0.1",
|
|
59
61
|
"@babel/eslint-parser": "^7.22.15",
|
|
60
62
|
"@babel/plugin-proposal-decorators": "^7.23.2",
|
|
61
63
|
"@ember/optional-features": "^2.0.0",
|