@fleetbase/storefront-engine 0.2.6 → 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 +134 -132
- 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.
|
|
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,134 +1,136 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
"
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
2
|
+
"name": "@fleetbase/storefront-engine",
|
|
3
|
+
"version": "0.2.8",
|
|
4
|
+
"description": "Headless Commerce & Marketplace Extension for Fleetbase",
|
|
5
|
+
"fleetbase": {
|
|
6
|
+
"route": "storefront",
|
|
7
|
+
"dashboard": "storefront/int/v1/dashboard"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"fleetbase-extension",
|
|
11
|
+
"fleetbase-storefront",
|
|
12
|
+
"fleetbase",
|
|
13
|
+
"e-commerce",
|
|
14
|
+
"headless-commerce",
|
|
15
|
+
"headless-marketplace",
|
|
16
|
+
"ember-engine",
|
|
17
|
+
"ember-addon"
|
|
18
|
+
],
|
|
19
|
+
"repository": "https://github.com/fleetbase/storefront",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"author": "Fleetbase Pte Ltd <hello@fleetbase.io>",
|
|
22
|
+
"directories": {
|
|
23
|
+
"app": "app",
|
|
24
|
+
"addon": "addon",
|
|
25
|
+
"tests": "tests"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "ember build --environment=production",
|
|
29
|
+
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
|
|
30
|
+
"lint:css": "stylelint \"**/*.css\"",
|
|
31
|
+
"lint:css:fix": "concurrently \"npm:lint:css -- --fix\"",
|
|
32
|
+
"lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"",
|
|
33
|
+
"lint:hbs": "ember-template-lint .",
|
|
34
|
+
"lint:hbs:fix": "ember-template-lint . --fix",
|
|
35
|
+
"lint:js": "eslint . --cache",
|
|
36
|
+
"lint:js:fix": "eslint . --fix",
|
|
37
|
+
"lint:intl": "fleetbase-intl-lint",
|
|
38
|
+
"start": "ember serve",
|
|
39
|
+
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
|
|
40
|
+
"test:ember": "ember test",
|
|
41
|
+
"test:ember-compatibility": "ember try:each",
|
|
42
|
+
"publish:npm": "npm config set registry https://registry.npmjs.org/ && npm publish",
|
|
43
|
+
"publish:github": "npm config set '@fleetbase:registry' https://npm.pkg.github.com/ && npm publish"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@fleetbase/ember-core": "^0.2.0",
|
|
47
|
+
"@fleetbase/ember-ui": "^0.2.9",
|
|
48
|
+
"@fleetbase/fleetops-data": "^0.1.7",
|
|
49
|
+
"@babel/core": "^7.23.2",
|
|
50
|
+
"@fortawesome/ember-fontawesome": "^0.4.1",
|
|
51
|
+
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
|
52
|
+
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
|
53
|
+
"ember-cli-babel": "^8.2.0",
|
|
54
|
+
"ember-cli-htmlbars": "^6.3.0",
|
|
55
|
+
"ember-intl": "6.3.2",
|
|
56
|
+
"ember-tag-input": "^3.1.0",
|
|
57
|
+
"ember-wormhole": "^0.6.0"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@fleetbase/intl-lint": "^0.0.1",
|
|
61
|
+
"@babel/eslint-parser": "^7.22.15",
|
|
62
|
+
"@babel/plugin-proposal-decorators": "^7.23.2",
|
|
63
|
+
"@ember/optional-features": "^2.0.0",
|
|
64
|
+
"@ember/test-helpers": "^3.2.0",
|
|
65
|
+
"@embroider/test-setup": "^3.0.2",
|
|
66
|
+
"@glimmer/component": "^1.1.2",
|
|
67
|
+
"@glimmer/tracking": "^1.1.2",
|
|
68
|
+
"broccoli-asset-rev": "^3.0.0",
|
|
69
|
+
"broccoli-funnel": "^3.0.8",
|
|
70
|
+
"broccoli-merge-trees": "^4.2.0",
|
|
71
|
+
"concurrently": "^8.2.2",
|
|
72
|
+
"ember-auto-import": "^2.6.3",
|
|
73
|
+
"ember-classic-decorator": "^3.0.0",
|
|
74
|
+
"ember-cli": "~5.4.1",
|
|
75
|
+
"ember-cli-clean-css": "^3.0.0",
|
|
76
|
+
"ember-cli-dependency-checker": "^3.3.2",
|
|
77
|
+
"ember-cli-inject-live-reload": "^2.1.0",
|
|
78
|
+
"ember-cli-sri": "^2.1.1",
|
|
79
|
+
"ember-cli-terser": "^4.0.2",
|
|
80
|
+
"ember-concurrency": "^3.1.1",
|
|
81
|
+
"ember-concurrency-decorators": "^2.0.3",
|
|
82
|
+
"ember-data": "^4.12.5",
|
|
83
|
+
"ember-engines": "^0.9.0",
|
|
84
|
+
"ember-load-initializers": "^2.1.2",
|
|
85
|
+
"ember-math-helpers": "^4.0.0",
|
|
86
|
+
"ember-page-title": "^8.0.0",
|
|
87
|
+
"ember-qunit": "^8.0.1",
|
|
88
|
+
"ember-resolver": "^11.0.1",
|
|
89
|
+
"ember-responsive": "^5.0.0",
|
|
90
|
+
"ember-source": "~5.4.0",
|
|
91
|
+
"ember-source-channel-url": "^3.0.0",
|
|
92
|
+
"ember-template-lint": "^5.11.2",
|
|
93
|
+
"ember-try": "^3.0.0",
|
|
94
|
+
"eslint": "^8.52.0",
|
|
95
|
+
"eslint-config-prettier": "^9.0.0",
|
|
96
|
+
"eslint-plugin-ember": "^11.11.1",
|
|
97
|
+
"eslint-plugin-n": "^16.2.0",
|
|
98
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
99
|
+
"eslint-plugin-qunit": "^8.0.1",
|
|
100
|
+
"loader.js": "^4.7.0",
|
|
101
|
+
"prettier": "^3.0.3",
|
|
102
|
+
"qunit": "^2.20.0",
|
|
103
|
+
"qunit-dom": "^2.0.0",
|
|
104
|
+
"stylelint": "^15.11.0",
|
|
105
|
+
"stylelint-config-standard": "^34.0.0",
|
|
106
|
+
"stylelint-prettier": "^4.0.2",
|
|
107
|
+
"webpack": "^5.89.0"
|
|
108
|
+
},
|
|
109
|
+
"peerDependencies": {
|
|
110
|
+
"ember-engines": "^0.9.0"
|
|
111
|
+
},
|
|
112
|
+
"engines": {
|
|
113
|
+
"node": ">= 18"
|
|
114
|
+
},
|
|
115
|
+
"ember": {
|
|
116
|
+
"edition": "octane"
|
|
117
|
+
},
|
|
118
|
+
"ember-addon": {
|
|
119
|
+
"configPath": "tests/dummy/config"
|
|
120
|
+
},
|
|
121
|
+
"prettier": {
|
|
122
|
+
"trailingComma": "es5",
|
|
123
|
+
"tabWidth": 4,
|
|
124
|
+
"semi": true,
|
|
125
|
+
"singleQuote": true,
|
|
126
|
+
"printWidth": 190,
|
|
127
|
+
"overrides": [
|
|
128
|
+
{
|
|
129
|
+
"files": "*.hbs",
|
|
130
|
+
"options": {
|
|
131
|
+
"singleQuote": false
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
134
136
|
}
|