@fmidev/smartmet-alert-client 4.0.0-beta.7 → 4.0.0
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/Jenkinsfile +1 -1
- package/README.md +14 -10
- package/dist/index.dark.html +5 -0
- package/dist/index.html +0 -1
- package/dist/index.js +50 -66
- package/dist/index.js.map +1 -1
- package/dist/index.relative.html +2 -2
- package/dist/index.start.html +3 -3
- package/package.json +10 -14
- package/postcss.config.js +3 -3
- package/public/index.dark.html +5 -0
- package/public/index.relative.html +2 -2
- package/public/index.start.html +3 -3
- package/screenshot.png +0 -0
- package/src/App.vue +21 -12
- package/src/assets/img/warning/forest-fire-weather.svg +2 -2
- package/src/assets/img/warning/sea-wave-height.svg +2 -2
- package/src/assets/img/warning/sea-wind-legend.svg +3 -4
- package/src/assets/img/warning/sea-wind.svg +3 -3
- package/src/assets/img/warning/traffic-weather.svg +4 -5
- package/src/components/AlertClient.vue +40 -15
- package/src/components/DaySmall.vue +128 -20
- package/src/components/Days.vue +25 -9
- package/src/components/DescriptionWarning.vue +5 -1
- package/src/components/GrayScaleToggle.vue +10 -0
- package/src/components/Legend.vue +48 -10
- package/src/components/MapLarge.vue +143 -27
- package/src/components/MapSmall.vue +10 -10
- package/src/components/PopupRow.vue +1 -1
- package/src/components/Region.vue +32 -7
- package/src/components/Warning.vue +31 -2
- package/src/components/Warnings.vue +40 -12
- package/src/locales/en.json +178 -178
- package/src/locales/fi.json +178 -178
- package/src/locales/sv.json +2 -2
- package/src/main.js +16 -20
- package/src/mixins/config.js +30 -49
- package/src/mixins/utils.js +10 -2
- package/src/scss/colors.scss +6 -6
- package/src/scss/constants.scss +7 -5
- package/src/scss/themes/dark-gray.scss +34 -0
- package/src/scss/themes/dark.scss +1 -5
- package/src/scss/themes/light-gray.scss +33 -34
- package/src/scss/themes/light.scss +6 -8
- package/src/scss/warningImages.scss +76 -29
- package/test/snapshot.test.js +20 -112
- package/vite.config.js +4 -2
- package/.nvmrc +0 -1
- package/Jenkinsfile.beta +0 -111
- package/ssr/index.mjs +0 -40
package/Jenkinsfile
CHANGED
package/README.md
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
# SmartMet Alert Client
|
|
1
|
+
# SmartMet Alert Client
|
|
2
2
|
|
|
3
3
|
SmartMet Alert Client is a customizable map visualizer for weather, flood and other alerts.
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
npm install @fmidev/smartmet-alert-client
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
<smartmet-alert-client language="en"></smartmet-alert-client>
|
|
17
|
+
```
|
|
18
|
+
More examples are available in the directory `public`.
|
|
19
|
+
|
|
7
20
|
## Project setup
|
|
8
21
|
```
|
|
9
22
|
npm install
|
|
@@ -23,12 +36,3 @@ npm run build
|
|
|
23
36
|
```
|
|
24
37
|
npm run lint
|
|
25
38
|
```
|
|
26
|
-
|
|
27
|
-
### Localization
|
|
28
|
-
|
|
29
|
-
The default language is defined in the .env file. This can be overridden when defining a Vue component:
|
|
30
|
-
```
|
|
31
|
-
<template>
|
|
32
|
-
<AlertClient :refreshInterval="refreshInterval" :selectedDay="selectedDay" language="en"/>
|
|
33
|
-
</template>
|
|
34
|
-
```
|
package/dist/index.dark.html
CHANGED