@fleetbase/storefront-engine 0.2.0 → 0.2.1
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.
|
@@ -12,7 +12,7 @@ export default class ApplicationController extends Controller {
|
|
|
12
12
|
@action createNewStorefront() {
|
|
13
13
|
return this.storefront.createNewStorefront({
|
|
14
14
|
onSuccess: () => {
|
|
15
|
-
const loader = this.loader.show(`Switching to newly created store...`);
|
|
15
|
+
const loader = this.loader.show({ loadingMessage: `Switching to newly created store...` });
|
|
16
16
|
|
|
17
17
|
this.hostRouter.refresh().then(() => {
|
|
18
18
|
this.notifyPropertyChange('activeStore');
|
|
@@ -23,7 +23,7 @@ export default class ApplicationController extends Controller {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
@action switchActiveStore(store) {
|
|
26
|
-
const loader = this.loader.show(`Switching Storefront to ${store.name}...`);
|
|
26
|
+
const loader = this.loader.show({ loadingMessage: `Switching Storefront to ${store.name}...` });
|
|
27
27
|
this.storefront.setActiveStorefront(store);
|
|
28
28
|
this.hostRouter.refresh().then(() => {
|
|
29
29
|
this.notifyPropertyChange('activeStore');
|
|
@@ -47,7 +47,7 @@ export default class ProductsIndexCategoryNewController extends Controller {
|
|
|
47
47
|
|
|
48
48
|
@action saveProduct() {
|
|
49
49
|
const { category } = this.productsIndexCategoryController;
|
|
50
|
-
const loader = this.loader.showLoader('body', 'Creating new product...');
|
|
50
|
+
const loader = this.loader.showLoader('body', { loadingMessage: 'Creating new product...' });
|
|
51
51
|
this.isSaving = true;
|
|
52
52
|
|
|
53
53
|
if (category) {
|
|
@@ -12,7 +12,7 @@ export default class ApplicationRoute extends Route {
|
|
|
12
12
|
@service storefront;
|
|
13
13
|
|
|
14
14
|
@action loading(transition) {
|
|
15
|
-
this.loader.showOnInitialTransition(transition, 'section.next-view-section', 'Loading storefront...');
|
|
15
|
+
this.loader.showOnInitialTransition(transition, 'section.next-view-section', { loadingMessage: 'Loading storefront...' });
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
@action willTransition() {
|
|
@@ -27,7 +27,7 @@ export default class ProductsIndexCategoryRoute extends Route {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
loading(transition) {
|
|
30
|
-
this.loader.showOnInitialTransition(transition, 'section.next-view-section', 'Loading products...');
|
|
30
|
+
this.loader.showOnInitialTransition(transition, 'section.next-view-section', { loadingMessage: 'Loading products...' });
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
model({ slug, ...params }) {
|
package/composer.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fleetbase/storefront-api",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Headless Commerce & Marketplace Extension for Fleetbase",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fleetbase-extension",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
},
|
|
43
43
|
"autoload": {
|
|
44
44
|
"psr-4": {
|
|
45
|
-
"Fleetbase\\Storefront\\": "src/"
|
|
45
|
+
"Fleetbase\\Storefront\\": "server/src/"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"autoload-dev": {
|
|
49
49
|
"psr-4": {
|
|
50
|
-
"Fleetbase\\Storefront\\Tests\\": "tests/"
|
|
50
|
+
"Fleetbase\\Storefront\\Tests\\": "server/tests/"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"minimum-stability": "dev",
|
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.1",
|
|
4
4
|
"description": "Headless Commerce & Marketplace Extension for Fleetbase",
|
|
5
5
|
"fleetbase": {
|
|
6
6
|
"route": "storefront",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"publish:github": "npm config set '@fleetbase:registry' https://npm.pkg.github.com/ && npm publish"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@fleetbase/ember-core": "^0.1.
|
|
44
|
-
"@fleetbase/ember-ui": "^0.2.
|
|
43
|
+
"@fleetbase/ember-core": "^0.1.6",
|
|
44
|
+
"@fleetbase/ember-ui": "^0.2.1",
|
|
45
45
|
"@fleetbase/fleetops-data": "^0.1.1",
|
|
46
46
|
"@fortawesome/ember-fontawesome": "^0.4.1",
|
|
47
47
|
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|