lumia-plugin 0.3.9 → 0.4.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/examples/base_plugin/actions_tutorial.md +4 -0
- package/examples/base_plugin/manifest.json +4 -6
- package/examples/base_plugin/package.json +1 -1
- package/examples/base_plugin/settings_tutorial.md +10 -0
- package/examples/base_plugin/translations.json +8 -0
- package/package.json +2 -2
- package/examples/base_plugin/translations/en.json +0 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "showcase_plugin",
|
|
3
3
|
"name": "Showcase Plugin",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"author": "Lumia Stream",
|
|
6
6
|
"email": "",
|
|
7
7
|
"website": "",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"helperText": "Used when the action does not supply a duration."
|
|
40
40
|
}
|
|
41
41
|
],
|
|
42
|
-
"settings_tutorial": "
|
|
43
|
-
"actions_tutorial": "
|
|
42
|
+
"settings_tutorial": "./settings_tutorial.md",
|
|
43
|
+
"actions_tutorial": "./actions_tutorial.md",
|
|
44
44
|
"actions": [
|
|
45
45
|
{
|
|
46
46
|
"type": "trigger_alert",
|
|
@@ -127,8 +127,6 @@
|
|
|
127
127
|
]
|
|
128
128
|
}
|
|
129
129
|
],
|
|
130
|
-
"translations":
|
|
131
|
-
"en": "./translations/en.json"
|
|
132
|
-
}
|
|
130
|
+
"translations": "./translations.json"
|
|
133
131
|
}
|
|
134
132
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
### Setup
|
|
3
|
+
1) Enter a default message and color.
|
|
4
|
+
2) Adjust the default duration if you want a longer or shorter alert.
|
|
5
|
+
3) Click Save to store the defaults.
|
|
6
|
+
---
|
|
7
|
+
### What this plugin does
|
|
8
|
+
- Stores the message, username, color, and duration in variables.
|
|
9
|
+
- Uses those values when triggering the sample alert.
|
|
10
|
+
---
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"en": {
|
|
3
|
+
"message": "Stores the most recent message handled by the plugin.",
|
|
4
|
+
"username": "Stores the most recent username handled by the plugin.",
|
|
5
|
+
"color": "Tracks the color used by the latest sample alert.",
|
|
6
|
+
"duration": "Tracks the duration used by the latest sample alert."
|
|
7
|
+
}
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lumia-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Command-line tools for creating, building, and validating Lumia Stream plugins.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"lumia-plugin": "scripts/cli.js"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"author": "Lumia Stream",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@lumiastream/plugin": "^0.
|
|
27
|
+
"@lumiastream/plugin": "^0.4.0",
|
|
28
28
|
"jszip": "3.10.1"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"message": "Stores the most recent message handled by the plugin.",
|
|
3
|
-
"showcase_plugin_message": "Stores the most recent message handled by the plugin.",
|
|
4
|
-
"username": "Stores the most recent username handled by the plugin.",
|
|
5
|
-
"showcase_plugin_username": "Stores the most recent username handled by the plugin.",
|
|
6
|
-
"color": "Tracks the color used by the latest sample alert.",
|
|
7
|
-
"showcase_plugin_color": "Tracks the color used by the latest sample alert.",
|
|
8
|
-
"duration": "Tracks the duration used by the latest sample alert.",
|
|
9
|
-
"showcase_plugin_duration": "Tracks the duration used by the latest sample alert."
|
|
10
|
-
}
|