@openremote/or-app 1.8.0-snapshot.20250725074716 → 1.8.0-snapshot.20250725120000
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 +87 -87
- package/images/logo-mobile.svg +7 -7
- package/images/logo.svg +15 -15
- package/lib/app.js +38 -1
- package/lib/index.js +538 -67
- package/lib/or-header.js +496 -298
- package/lib/page-offline.js +109 -49
- package/lib/types.js +25 -1
- package/package.json +16 -16
- package/typedoc.js +2 -2
package/README.md
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
# @openremote/or-asset-viewer \<or-asset-viewer\>
|
|
2
|
-
[![NPM Version][npm-image]][npm-url]
|
|
3
|
-
[![Linux Build][travis-image]][travis-url]
|
|
4
|
-
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
5
|
-
|
|
6
|
-
Web Component for displaying an asset tree. This component requires an OpenRemote Manager to retrieve, save and query assets.
|
|
7
|
-
|
|
8
|
-
## Install
|
|
9
|
-
```bash
|
|
10
|
-
npm i @openremote/or-asset-viewer
|
|
11
|
-
yarn add @openremote/or-asset-viewer
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Usage
|
|
15
|
-
By default the or-asset-viewer is using a 2 columns grid. This can be changed by using a different config.
|
|
16
|
-
|
|
17
|
-
4 column grid, 25% for each column:
|
|
18
|
-
```javascript
|
|
19
|
-
const viewerConfig = {
|
|
20
|
-
viewerStyles: {
|
|
21
|
-
gridTemplateColumns: "repeat(auto-fill, minmax(calc(25%),1fr))";
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
<or-asset-viewer .config="${viewerConfig}"></or-asset-viewer>
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
The position of a panel can also be changed by changing the config of or-asset-viewer
|
|
29
|
-
|
|
30
|
-
To change the width of a panel use gridColumn:
|
|
31
|
-
```javascript
|
|
32
|
-
const viewerConfig = {
|
|
33
|
-
panels: {
|
|
34
|
-
"info": {
|
|
35
|
-
type: "property",
|
|
36
|
-
panelStyles: {
|
|
37
|
-
gridColumn: "1 / -1" // same as 1 / 3 in a 2 column grid: Start on column 1, End on column 3
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
gridColumn can also be used to change the position horizontally.
|
|
45
|
-
```javascript
|
|
46
|
-
const viewerConfig = {
|
|
47
|
-
panels: {
|
|
48
|
-
"info": {
|
|
49
|
-
type: "property",
|
|
50
|
-
panelStyles: {
|
|
51
|
-
gridColumnStart: "2" // start the panel in the second column
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
To change the vertical position of a panel use gridRowStart. To start the panel on the first row set gridRowStart to 1:
|
|
59
|
-
```javascript
|
|
60
|
-
const viewerConfig = {
|
|
61
|
-
panels: {
|
|
62
|
-
"info": {
|
|
63
|
-
type: "property",
|
|
64
|
-
panelStyles: {
|
|
65
|
-
gridRowStart: "1"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
For a full list of properties, methods and options refer to the TypeDoc generated [documentation]().
|
|
73
|
-
|
|
74
|
-
## Supported Browsers
|
|
75
|
-
The last 2 versions of all modern browsers are supported, including Chrome, Safari, Opera, Firefox, Edge. In addition,
|
|
76
|
-
Internet Explorer 11 is also supported.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
## License
|
|
80
|
-
[GNU AGPLv3](https://www.gnu.org/licenses/agpl-3.0.en.html)
|
|
81
|
-
|
|
82
|
-
[npm-image]: https://img.shields.io/npm/v/live-xxx.svg
|
|
83
|
-
[npm-url]: https://npmjs.org/package/@openremote/or-asset-list
|
|
84
|
-
[travis-image]: https://img.shields.io/travis/live-js/live-xxx/master.svg
|
|
85
|
-
[travis-url]: https://travis-ci.org/live-js/live-xxx
|
|
86
|
-
[coveralls-image]: https://img.shields.io/coveralls/live-js/live-xxx/master.svg
|
|
87
|
-
[coveralls-url]: https://coveralls.io/r/live-js/live-xxx?branch=master
|
|
1
|
+
# @openremote/or-asset-viewer \<or-asset-viewer\>
|
|
2
|
+
[![NPM Version][npm-image]][npm-url]
|
|
3
|
+
[![Linux Build][travis-image]][travis-url]
|
|
4
|
+
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
5
|
+
|
|
6
|
+
Web Component for displaying an asset tree. This component requires an OpenRemote Manager to retrieve, save and query assets.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
```bash
|
|
10
|
+
npm i @openremote/or-asset-viewer
|
|
11
|
+
yarn add @openremote/or-asset-viewer
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
By default the or-asset-viewer is using a 2 columns grid. This can be changed by using a different config.
|
|
16
|
+
|
|
17
|
+
4 column grid, 25% for each column:
|
|
18
|
+
```javascript
|
|
19
|
+
const viewerConfig = {
|
|
20
|
+
viewerStyles: {
|
|
21
|
+
gridTemplateColumns: "repeat(auto-fill, minmax(calc(25%),1fr))";
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
<or-asset-viewer .config="${viewerConfig}"></or-asset-viewer>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
The position of a panel can also be changed by changing the config of or-asset-viewer
|
|
29
|
+
|
|
30
|
+
To change the width of a panel use gridColumn:
|
|
31
|
+
```javascript
|
|
32
|
+
const viewerConfig = {
|
|
33
|
+
panels: {
|
|
34
|
+
"info": {
|
|
35
|
+
type: "property",
|
|
36
|
+
panelStyles: {
|
|
37
|
+
gridColumn: "1 / -1" // same as 1 / 3 in a 2 column grid: Start on column 1, End on column 3
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
gridColumn can also be used to change the position horizontally.
|
|
45
|
+
```javascript
|
|
46
|
+
const viewerConfig = {
|
|
47
|
+
panels: {
|
|
48
|
+
"info": {
|
|
49
|
+
type: "property",
|
|
50
|
+
panelStyles: {
|
|
51
|
+
gridColumnStart: "2" // start the panel in the second column
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
To change the vertical position of a panel use gridRowStart. To start the panel on the first row set gridRowStart to 1:
|
|
59
|
+
```javascript
|
|
60
|
+
const viewerConfig = {
|
|
61
|
+
panels: {
|
|
62
|
+
"info": {
|
|
63
|
+
type: "property",
|
|
64
|
+
panelStyles: {
|
|
65
|
+
gridRowStart: "1"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
For a full list of properties, methods and options refer to the TypeDoc generated [documentation]().
|
|
73
|
+
|
|
74
|
+
## Supported Browsers
|
|
75
|
+
The last 2 versions of all modern browsers are supported, including Chrome, Safari, Opera, Firefox, Edge. In addition,
|
|
76
|
+
Internet Explorer 11 is also supported.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## License
|
|
80
|
+
[GNU AGPLv3](https://www.gnu.org/licenses/agpl-3.0.en.html)
|
|
81
|
+
|
|
82
|
+
[npm-image]: https://img.shields.io/npm/v/live-xxx.svg
|
|
83
|
+
[npm-url]: https://npmjs.org/package/@openremote/or-asset-list
|
|
84
|
+
[travis-image]: https://img.shields.io/travis/live-js/live-xxx/master.svg
|
|
85
|
+
[travis-url]: https://travis-ci.org/live-js/live-xxx
|
|
86
|
+
[coveralls-image]: https://img.shields.io/coveralls/live-js/live-xxx/master.svg
|
|
87
|
+
[coveralls-url]: https://coveralls.io/r/live-js/live-xxx?branch=master
|
package/images/logo-mobile.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<svg viewBox="0 0 107.372 107.453" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<g>
|
|
4
|
-
<path fill="#C4D600" d="M53.648,107.296C24.068,107.296,0,83.236,0,53.646h11.234c0,23.391,19.025,42.42,42.414,42.42 c23.385,0,42.416-19.029,42.416-42.42c0-23.382-19.031-42.408-42.416-42.408V0c29.582,0,53.65,24.068,53.65,53.646 C107.299,83.236,83.23,107.296,53.648,107.296L53.648,107.296z"/>
|
|
5
|
-
<path fill="#4E9D2D" d="M45.525,92.57c-10.395-2.166-19.324-8.262-25.145-17.137c-5.814-8.884-7.826-19.511-5.654-29.906 c2.174-10.399,8.258-19.325,17.141-25.145c8.889-5.815,19.506-7.825,29.906-5.655c21.463,4.479,35.281,25.582,30.803,47.041 L81.58,59.478c3.207-15.397-6.703-30.539-22.105-33.751c-7.461-1.56-15.078-0.119-21.455,4.06 c-6.369,4.169-10.736,10.58-12.299,18.039c-1.555,7.458-0.113,15.075,4.064,21.453c4.17,6.37,10.576,10.744,18.041,12.297 L45.525,92.57L45.525,92.57z"/>
|
|
6
|
-
<path fill="#1D5632" d="M53.682,79.428c-0.432,0-0.871-0.012-1.309-0.032c-6.869-0.342-13.205-3.344-17.83-8.439 c-4.621-5.108-6.982-11.705-6.639-18.582l11.215,0.553c-0.188,3.879,1.141,7.609,3.75,10.488c2.604,2.879,6.186,4.568,10.059,4.761 c3.869,0.179,7.607-1.142,10.48-3.748c2.887-2.603,4.576-6.179,4.773-10.057c0.391-8.012-5.803-14.854-13.816-15.248l0.559-11.222 c14.201,0.71,25.178,12.823,24.475,27.021c-0.344,6.883-3.336,13.212-8.441,17.831C66.174,77.086,60.084,79.428,53.682,79.428 L53.682,79.428z"/>
|
|
7
|
-
</g>
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<svg viewBox="0 0 107.372 107.453" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<g>
|
|
4
|
+
<path fill="#C4D600" d="M53.648,107.296C24.068,107.296,0,83.236,0,53.646h11.234c0,23.391,19.025,42.42,42.414,42.42 c23.385,0,42.416-19.029,42.416-42.42c0-23.382-19.031-42.408-42.416-42.408V0c29.582,0,53.65,24.068,53.65,53.646 C107.299,83.236,83.23,107.296,53.648,107.296L53.648,107.296z"/>
|
|
5
|
+
<path fill="#4E9D2D" d="M45.525,92.57c-10.395-2.166-19.324-8.262-25.145-17.137c-5.814-8.884-7.826-19.511-5.654-29.906 c2.174-10.399,8.258-19.325,17.141-25.145c8.889-5.815,19.506-7.825,29.906-5.655c21.463,4.479,35.281,25.582,30.803,47.041 L81.58,59.478c3.207-15.397-6.703-30.539-22.105-33.751c-7.461-1.56-15.078-0.119-21.455,4.06 c-6.369,4.169-10.736,10.58-12.299,18.039c-1.555,7.458-0.113,15.075,4.064,21.453c4.17,6.37,10.576,10.744,18.041,12.297 L45.525,92.57L45.525,92.57z"/>
|
|
6
|
+
<path fill="#1D5632" d="M53.682,79.428c-0.432,0-0.871-0.012-1.309-0.032c-6.869-0.342-13.205-3.344-17.83-8.439 c-4.621-5.108-6.982-11.705-6.639-18.582l11.215,0.553c-0.188,3.879,1.141,7.609,3.75,10.488c2.604,2.879,6.186,4.568,10.059,4.761 c3.869,0.179,7.607-1.142,10.48-3.748c2.887-2.603,4.576-6.179,4.773-10.057c0.391-8.012-5.803-14.854-13.816-15.248l0.559-11.222 c14.201,0.71,25.178,12.823,24.475,27.021c-0.344,6.883-3.336,13.212-8.441,17.831C66.174,77.086,60.084,79.428,53.682,79.428 L53.682,79.428z"/>
|
|
7
|
+
</g>
|
|
8
8
|
</svg>
|
package/images/logo.svg
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<svg viewBox="72.189 -19.217 539.143 173.724" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<g transform="matrix(1, 0, 0, 1, 0, 7)">
|
|
4
|
-
<path fill="#1D5632" d="M145.09,38.053c12.479,0,22.098,10.548,22.098,22.095c0,11.473-9.473,22.097-22.098,22.097 c-12.316,0-21.943-10.392-21.943-21.787C123.146,47.14,134.004,38.053,145.09,38.053z M145.17,77.396 c8.164,0,16.631-6.468,16.631-17.479c0-11.088-9.393-17.018-16.631-17.018c-7.701,0-16.635,6.313-16.635,17.476 C128.535,70.158,136.471,77.396,145.17,77.396z"/>
|
|
5
|
-
<path fill="#1D5632" d="M267.848,38.237h5.385V45.4h0.156c1.617-2.551,5.773-6.494,12.938-6.494c5.154,0,9.469,1.315,13.316,5.179 c3.156,3.093,5.238,7.956,5.238,14.911v23.26h-5.391v-23.26c0-5.484-1.695-9.347-4.006-11.588c-2.924-2.859-6.775-3.63-9.158-3.63 c-2.389,0-6.24,0.771-9.168,3.63c-2.309,2.241-4,6.104-3.926,11.588v23.26h-5.385V38.237z"/>
|
|
6
|
-
<path fill="#4E9D2D" d="M312.16,39.521h9.395v3.775h0.15c1.928-2.772,3.848-5.235,9.166-5.235h0.846v9.932 C322.4,48.378,322.4,55.69,322.4,58.23v24.025h-10.24V39.521z"/>
|
|
7
|
-
<path fill="#4E9D2D" d="M448.814,59.918c0-12.935,10.547-22.866,22.789-22.866c12.088,0,22.637,9.622,22.637,22.71 c0,14.016-10.781,22.867-22.637,22.867C458.898,82.629,448.814,72.159,448.814,59.918z M483.992,59.995 c0-7.776-6-13.554-12.389-13.554c-5.312,0-12.555,4.546-12.555,13.477c0,8.088,6.09,13.321,12.555,13.321 C479.066,73.239,483.992,66.771,483.992,59.995z"/>
|
|
8
|
-
<path fill="#4E9D2D" d="M500.199,47.598h-5.984V38.51h5.984V24.271h10.24V38.51h6.16v9.088h-6.16v33.646h-10.24V47.598z"/>
|
|
9
|
-
<path fill="#4E9D2D" d="M426.043,38.349c-5.213,0-9.924,2.27-13.324,5.927c-3.398-3.657-8.119-5.927-13.322-5.927 c-10.326,0-18.73,8.916-18.73,19.873v24.464h10.752V58.222c0-5.032,3.582-9.123,7.979-9.123c4.203,0,7.65,3.733,7.947,8.453 c-0.006,0.227-0.033,0.446-0.033,0.67v24.464h10.754v-0.06h0.059V58.222c0-0.224-0.023-0.443-0.029-0.67 c0.297-4.72,3.744-8.453,7.949-8.453c4.395,0,7.979,4.091,7.979,9.123v24.404h10.748V58.222 C444.77,47.265,436.371,38.349,426.043,38.349z"/>
|
|
10
|
-
<rect x="171.701" y="39.091" fill="#1D5632" width="5.402" height="56.955"/>
|
|
11
|
-
<path fill="#1D5632" d="M193.68,38.053c-11.088,0-21.945,9.052-21.979,22.335h5.393c0-0.006,0-0.006,0-0.006 c0-11.168,8.945-17.481,16.654-17.481c7.256,0,16.66,5.93,16.66,17.018c0,11.011-8.48,17.479-16.66,17.479 c-4.051,0-7.928-1.587-10.932-4.251v6.167c3.186,1.85,6.881,2.932,10.863,2.932c12.639,0,22.131-10.624,22.131-22.097 C215.811,48.601,206.168,38.053,193.68,38.053z"/>
|
|
12
|
-
<path fill="#1D5632" d="M259.939,48.83c-3.002-5.233-9.547-10.702-18.787-10.777c-12.242,0.231-21.865,10.237-21.865,22.173 c0,12.471,10.166,22.019,21.943,22.019c9.699,0,17.785-6.388,20.711-14.782h-5.699c-1.922,5.234-7.391,9.781-15.09,9.935 c-8.236,0-15.938-7.006-16.322-15.246h0.006c-0.234-2.232-0.318-5.594,0.805-8.146h0.01c2.654-7.622,9.742-11.104,15.58-11.104 c6.701,0,14.783,4.466,16.479,14.402h-24.168v4.848h29.635C263.402,58.073,262.789,53.373,259.939,48.83z"/>
|
|
13
|
-
<path fill="#4E9D2D" d="M376.396,59.304c0-10.779-8.549-22.481-22.1-22.481c-13.172,0-22.482,11.087-22.482,23.173 c0,12.471,9.852,22.634,22.559,22.634c10.008,0,18.17-7.157,20.635-14.855h-10.779c-1.926,3.538-5.314,5.466-9.855,5.466 c-7.08,0-11.047-5.616-11.715-8.492c-0.619-1.886-1.23-4.997-0.352-8.521h-0.023c0.051-0.205,0.117-0.395,0.17-0.59 c0.021-0.064,0.037-0.123,0.057-0.189c2.145-7.278,8.221-9.232,11.863-9.232c5.08,0,10.398,3.154,11.545,10.012h-17.971v8.235 h27.826C376.086,63.074,376.396,61.307,376.396,59.304z"/>
|
|
14
|
-
<path fill="#4E9D2D" d="M561.125,59.304c0-10.779-8.541-22.481-22.09-22.481c-13.172,0-22.49,11.087-22.49,23.173 c0,12.471,9.861,22.634,22.566,22.634c10.008,0,18.17-7.157,20.635-14.855h-10.781c-1.924,3.538-5.314,5.466-9.854,5.466 c-7.078,0-11.047-5.616-11.717-8.492c-0.615-1.886-1.23-4.997-0.354-8.521h-0.018c0.047-0.205,0.115-0.395,0.168-0.59 c0.021-0.064,0.037-0.123,0.057-0.189c2.145-7.278,8.221-9.232,11.863-9.232c5.08,0,10.393,3.154,11.551,10.012h-18.629v8.235 h28.479C560.82,63.074,561.125,61.307,561.125,59.304z"/>
|
|
15
|
-
</g>
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<svg viewBox="72.189 -19.217 539.143 173.724" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<g transform="matrix(1, 0, 0, 1, 0, 7)">
|
|
4
|
+
<path fill="#1D5632" d="M145.09,38.053c12.479,0,22.098,10.548,22.098,22.095c0,11.473-9.473,22.097-22.098,22.097 c-12.316,0-21.943-10.392-21.943-21.787C123.146,47.14,134.004,38.053,145.09,38.053z M145.17,77.396 c8.164,0,16.631-6.468,16.631-17.479c0-11.088-9.393-17.018-16.631-17.018c-7.701,0-16.635,6.313-16.635,17.476 C128.535,70.158,136.471,77.396,145.17,77.396z"/>
|
|
5
|
+
<path fill="#1D5632" d="M267.848,38.237h5.385V45.4h0.156c1.617-2.551,5.773-6.494,12.938-6.494c5.154,0,9.469,1.315,13.316,5.179 c3.156,3.093,5.238,7.956,5.238,14.911v23.26h-5.391v-23.26c0-5.484-1.695-9.347-4.006-11.588c-2.924-2.859-6.775-3.63-9.158-3.63 c-2.389,0-6.24,0.771-9.168,3.63c-2.309,2.241-4,6.104-3.926,11.588v23.26h-5.385V38.237z"/>
|
|
6
|
+
<path fill="#4E9D2D" d="M312.16,39.521h9.395v3.775h0.15c1.928-2.772,3.848-5.235,9.166-5.235h0.846v9.932 C322.4,48.378,322.4,55.69,322.4,58.23v24.025h-10.24V39.521z"/>
|
|
7
|
+
<path fill="#4E9D2D" d="M448.814,59.918c0-12.935,10.547-22.866,22.789-22.866c12.088,0,22.637,9.622,22.637,22.71 c0,14.016-10.781,22.867-22.637,22.867C458.898,82.629,448.814,72.159,448.814,59.918z M483.992,59.995 c0-7.776-6-13.554-12.389-13.554c-5.312,0-12.555,4.546-12.555,13.477c0,8.088,6.09,13.321,12.555,13.321 C479.066,73.239,483.992,66.771,483.992,59.995z"/>
|
|
8
|
+
<path fill="#4E9D2D" d="M500.199,47.598h-5.984V38.51h5.984V24.271h10.24V38.51h6.16v9.088h-6.16v33.646h-10.24V47.598z"/>
|
|
9
|
+
<path fill="#4E9D2D" d="M426.043,38.349c-5.213,0-9.924,2.27-13.324,5.927c-3.398-3.657-8.119-5.927-13.322-5.927 c-10.326,0-18.73,8.916-18.73,19.873v24.464h10.752V58.222c0-5.032,3.582-9.123,7.979-9.123c4.203,0,7.65,3.733,7.947,8.453 c-0.006,0.227-0.033,0.446-0.033,0.67v24.464h10.754v-0.06h0.059V58.222c0-0.224-0.023-0.443-0.029-0.67 c0.297-4.72,3.744-8.453,7.949-8.453c4.395,0,7.979,4.091,7.979,9.123v24.404h10.748V58.222 C444.77,47.265,436.371,38.349,426.043,38.349z"/>
|
|
10
|
+
<rect x="171.701" y="39.091" fill="#1D5632" width="5.402" height="56.955"/>
|
|
11
|
+
<path fill="#1D5632" d="M193.68,38.053c-11.088,0-21.945,9.052-21.979,22.335h5.393c0-0.006,0-0.006,0-0.006 c0-11.168,8.945-17.481,16.654-17.481c7.256,0,16.66,5.93,16.66,17.018c0,11.011-8.48,17.479-16.66,17.479 c-4.051,0-7.928-1.587-10.932-4.251v6.167c3.186,1.85,6.881,2.932,10.863,2.932c12.639,0,22.131-10.624,22.131-22.097 C215.811,48.601,206.168,38.053,193.68,38.053z"/>
|
|
12
|
+
<path fill="#1D5632" d="M259.939,48.83c-3.002-5.233-9.547-10.702-18.787-10.777c-12.242,0.231-21.865,10.237-21.865,22.173 c0,12.471,10.166,22.019,21.943,22.019c9.699,0,17.785-6.388,20.711-14.782h-5.699c-1.922,5.234-7.391,9.781-15.09,9.935 c-8.236,0-15.938-7.006-16.322-15.246h0.006c-0.234-2.232-0.318-5.594,0.805-8.146h0.01c2.654-7.622,9.742-11.104,15.58-11.104 c6.701,0,14.783,4.466,16.479,14.402h-24.168v4.848h29.635C263.402,58.073,262.789,53.373,259.939,48.83z"/>
|
|
13
|
+
<path fill="#4E9D2D" d="M376.396,59.304c0-10.779-8.549-22.481-22.1-22.481c-13.172,0-22.482,11.087-22.482,23.173 c0,12.471,9.852,22.634,22.559,22.634c10.008,0,18.17-7.157,20.635-14.855h-10.779c-1.926,3.538-5.314,5.466-9.855,5.466 c-7.08,0-11.047-5.616-11.715-8.492c-0.619-1.886-1.23-4.997-0.352-8.521h-0.023c0.051-0.205,0.117-0.395,0.17-0.59 c0.021-0.064,0.037-0.123,0.057-0.189c2.145-7.278,8.221-9.232,11.863-9.232c5.08,0,10.398,3.154,11.545,10.012h-17.971v8.235 h27.826C376.086,63.074,376.396,61.307,376.396,59.304z"/>
|
|
14
|
+
<path fill="#4E9D2D" d="M561.125,59.304c0-10.779-8.541-22.481-22.09-22.481c-13.172,0-22.49,11.087-22.49,23.173 c0,12.471,9.861,22.634,22.566,22.634c10.008,0,18.17-7.157,20.635-14.855h-10.781c-1.924,3.538-5.314,5.466-9.854,5.466 c-7.078,0-11.047-5.616-11.717-8.492c-0.615-1.886-1.23-4.997-0.354-8.521h-0.018c0.047-0.205,0.115-0.395,0.168-0.59 c0.021-0.064,0.037-0.123,0.057-0.189c2.145-7.278,8.221-9.232,11.863-9.232c5.08,0,10.393,3.154,11.551,10.012h-18.629v8.235 h28.479C560.82,63.074,561.125,61.307,561.125,59.304z"/>
|
|
15
|
+
</g>
|
|
16
16
|
</svg>
|
package/lib/app.js
CHANGED
|
@@ -1 +1,38 @@
|
|
|
1
|
-
import{createSlice
|
|
1
|
+
import { createSlice } from "@reduxjs/toolkit";
|
|
2
|
+
const INITIAL_STATE = {
|
|
3
|
+
page: "",
|
|
4
|
+
params: null,
|
|
5
|
+
offline: false,
|
|
6
|
+
visible: true,
|
|
7
|
+
resolved: false,
|
|
8
|
+
drawerOpened: false,
|
|
9
|
+
scrollTop: 0,
|
|
10
|
+
realm: undefined
|
|
11
|
+
};
|
|
12
|
+
const appSlice = createSlice({
|
|
13
|
+
name: "app",
|
|
14
|
+
initialState: INITIAL_STATE,
|
|
15
|
+
reducers: {
|
|
16
|
+
updatePage(state, action) {
|
|
17
|
+
return Object.assign(Object.assign({}, state), { page: typeof action.payload === "string" ? action.payload : action.payload.page, params: typeof action.payload === "string" ? null : action.payload.params });
|
|
18
|
+
},
|
|
19
|
+
updateDrawer(state, action) {
|
|
20
|
+
return Object.assign(Object.assign({}, state), { drawerOpened: action.payload });
|
|
21
|
+
},
|
|
22
|
+
scrollToTop(state, action) {
|
|
23
|
+
return Object.assign(Object.assign({}, state), { scrollTop: action.payload });
|
|
24
|
+
},
|
|
25
|
+
updateRealm(state, action) {
|
|
26
|
+
return Object.assign(Object.assign({}, state), { realm: action.payload });
|
|
27
|
+
},
|
|
28
|
+
setOffline(state, action) {
|
|
29
|
+
return Object.assign(Object.assign({}, state), { offline: action.payload });
|
|
30
|
+
},
|
|
31
|
+
setVisibility(state, action) {
|
|
32
|
+
return Object.assign(Object.assign({}, state), { visible: action.payload });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export const { updatePage, updateDrawer, scrollToTop, updateRealm, setOffline, setVisibility } = appSlice.actions;
|
|
37
|
+
export const appReducer = appSlice.reducer;
|
|
38
|
+
//# sourceMappingURL=app.js.map
|