@fleetbase/fleetops-engine 0.4.5 → 0.4.6

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/README.md CHANGED
@@ -13,7 +13,7 @@ This monorepo contains both the frontend and backend components of the FleetOps
13
13
 
14
14
  ### Requirements
15
15
 
16
- * PHP 7.3.0 or above
16
+ * PHP 8.0 or above
17
17
  * Ember.js v4.8 or above
18
18
  * Ember CLI v4.8 or above
19
19
  * Node.js v18 or above
@@ -4,6 +4,13 @@ import { inject as service } from '@ember/service';
4
4
  import { task } from 'ember-concurrency-decorators';
5
5
 
6
6
  export default class WidgetFleetOpsKeyMetricsComponent extends Component {
7
+ /**
8
+ * The widget ID to use for registering.
9
+ *
10
+ * @memberof WidgetFleetOpsKeyMetricsComponent
11
+ */
12
+ static widgetId = 'fleet-ops-key-metrics-widget';
13
+
7
14
  /**
8
15
  * Inject the fetch service.
9
16
  *
@@ -327,7 +327,7 @@ export default class ManagementContactsIndexController extends BaseController {
327
327
  * @void
328
328
  */
329
329
  @action viewContact(contact) {
330
- return this.transitionToRoute('management.contact.index.details', contact);
330
+ return this.transitionToRoute('management.contacts.index.details', contact);
331
331
  }
332
332
 
333
333
  /**
@@ -336,7 +336,7 @@ export default class ManagementContactsIndexController extends BaseController {
336
336
  * @void
337
337
  */
338
338
  @action createContact() {
339
- return this.transitionToRoute('management.contact.index.new');
339
+ return this.transitionToRoute('management.contacts.index.new');
340
340
  }
341
341
 
342
342
  /**
@@ -346,7 +346,7 @@ export default class ManagementContactsIndexController extends BaseController {
346
346
  * @void
347
347
  */
348
348
  @action editContact(contact) {
349
- return this.transitionToRoute('management.contact.index.edit', contact);
349
+ return this.transitionToRoute('management.contacts.index.edit', contact);
350
350
  }
351
351
 
352
352
  /**
package/addon/engine.js CHANGED
@@ -43,7 +43,7 @@ export default class FleetOpsEngine extends Engine {
43
43
 
44
44
  // widgets for registry
45
45
  const KeyMetricsWidgetDefinition = {
46
- did: 'fleetops-metrics',
46
+ widgetId: 'fleet-ops-key-metrics-widget',
47
47
  name: 'Fleet-Ops Metrics',
48
48
  description: 'Key metrics from Fleet-Ops.',
49
49
  icon: 'truck',
package/composer.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbase/fleetops-api",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "Fleet & Transport Management Extension for Fleetbase",
5
5
  "keywords": [
6
6
  "fleetbase-extension",
package/extension.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "Fleet-Ops",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "Fleet & Transport Management Extension for Fleetbase",
5
5
  "repository": "https://github.com/fleetbase/fleetops",
6
6
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleetbase/fleetops-engine",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "Fleet & Transport Management Extension for Fleetbase",
5
5
  "fleetbase": {
6
6
  "route": "fleet-ops"
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@babel/core": "^7.23.2",
45
- "@fleetbase/ember-core": "^0.2.3",
45
+ "@fleetbase/ember-core": "^0.2.4",
46
46
  "@fleetbase/ember-ui": "^0.2.10",
47
47
  "@fleetbase/fleetops-data": "^0.1.8",
48
48
  "@fleetbase/leaflet-routing-machine": "^3.2.16",
@@ -109,9 +109,13 @@ class Point implements CastsAttributes
109
109
  *
110
110
  * @return bool
111
111
  */
112
- public static function isRawPoint($data)
112
+ public static function isRawPoint($data): bool
113
113
  {
114
- return preg_match('/[\x00-\x1f]/', $data, $matches) === 1;
114
+ if (is_string($data)) {
115
+ return preg_match('/[\x00-\x1f]/', $data, $matches) === 1;
116
+ }
117
+
118
+ return false;
115
119
  }
116
120
 
117
121
  /**