@openremote/core 1.35.0-snapshot.20261120141721 → 1.35.0-snapshot.20261123110127
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
|
@@ -6,15 +6,15 @@ ES6 modules for connecting to an OpenRemote Manager as well as utilities for per
|
|
|
6
6
|
|
|
7
7
|
The default export is a singleton of type `Manager` that can be used to connect to an OpenRemote Manager, initiate
|
|
8
8
|
authentication and download common resources (translation files, icons, etc). Everything is initiated by calling
|
|
9
|
-
the `init` method, what tasks are performed during
|
|
9
|
+
the `init` method, what tasks are performed during initialization is determined by the `ManagerConfig` passed to the
|
|
10
10
|
`init`, the tasks include the following:
|
|
11
11
|
|
|
12
12
|
- Check the manager exists and is accessible (calls the `api/master/info` endpoint)
|
|
13
|
-
-
|
|
13
|
+
- Initialize authentication and perform login redirect (if requested in the `ManagerConfig`)
|
|
14
14
|
- Download `mdi` iconset (if requested in the `ManagerConfig` - if not specified iconset will be downloaded)
|
|
15
|
-
-
|
|
15
|
+
- Initialize REST API client (`@openremote/rest`) - Sets a timeout of 10s and will also add a request interceptor to
|
|
16
16
|
add required `Authorization` header for authentication
|
|
17
|
-
-
|
|
17
|
+
- Initialize console (the console is the device used to render the application desktop, Android or iOS device)
|
|
18
18
|
- Download built in OpenRemote translation files
|
|
19
19
|
- Download Asset Model Descriptors
|
|
20
20
|
|
|
@@ -29,10 +29,10 @@ yarn add @openremote/core
|
|
|
29
29
|
|
|
30
30
|
For a full list of properties, methods and options refer to the TypeDoc generated [documentation](<>).
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
whether
|
|
32
|
+
Initialization is done by calling the `init` method which returns a Promise that is fulfilled with a `boolean` indicating
|
|
33
|
+
whether initialization was successful or not.
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
Initialization usage example:
|
|
36
36
|
|
|
37
37
|
```$javascript
|
|
38
38
|
import openremote from "@openremote/core";
|
|
@@ -85,7 +85,7 @@ class AssetComponent extends subscribe(openremote) {
|
|
|
85
85
|
### Events (`./dist/event`)
|
|
86
86
|
|
|
87
87
|
Provides infrastructure for connecting to the OpenRemote Manager client event bus; by default an `EventProvider` instance
|
|
88
|
-
`Manager` is
|
|
88
|
+
`Manager` is initialized by the `Manager` during the initialization process and can be accessed from `openremote.events`
|
|
89
89
|
but it is also possible to instantiate an `EventProvider` manually.
|
|
90
90
|
|
|
91
91
|
### Util (`./dist/util`)
|