kiosko-plugin-gitlab 0.2.2 → 0.3.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/README.md +7 -1
- package/dist/index.js +7 -4
- package/kiosko-manifest.json +2 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ Uses: `gitlab/merge-requests`.
|
|
|
66
66
|
|
|
67
67
|
### GitLab merge requests — `gitlab/merge-requests`
|
|
68
68
|
|
|
69
|
-
Your open merge requests, the ones you are asked to review and the ones assigned to you, through glab or a token. Read every 3 min while a widget uses it. Options are set
|
|
69
|
+
Your open merge requests, the ones you are asked to review and the ones assigned to you, through glab or a token. Read every 3 min while a widget uses it. Options are set in Kiosko → Settings → Data sources.
|
|
70
70
|
|
|
71
71
|
| Option | Type | Default | |
|
|
72
72
|
|---|---|---|---|
|
|
@@ -74,6 +74,12 @@ Your open merge requests, the ones you are asked to review and the ones assigned
|
|
|
74
74
|
| `token` | string | *(secret)* | Access token. A personal access token with read_api. Empty = use the glab CLI and its login. |
|
|
75
75
|
| `bin` | string | `"glab"` | glab command |
|
|
76
76
|
|
|
77
|
+
### Several accounts
|
|
78
|
+
|
|
79
|
+
With Kiosko 0.2.12 and later the source can have **profiles**: named configurations, each with its own host and token, say «GitLab.com» for your own projects and «Work» for your company's GitLab (`gitlab.example.com`). A profile without a token uses glab's login for its host (`glab auth login --hostname gitlab.example.com`).
|
|
80
|
+
|
|
81
|
+
Each profile is read on its own and each tile picks its profile in the inspector (**Source profile**; **New profile…** makes one from the tile), so a pipelines card for work and another for your own projects can share a screen. Settings → Data sources shows the profiles as tabs. A tile with no profile reads the source's own options, as before; with older Kiosko versions there is one account.
|
|
82
|
+
|
|
77
83
|
## Development
|
|
78
84
|
|
|
79
85
|
```sh
|
package/dist/index.js
CHANGED
|
@@ -180,12 +180,12 @@ function demoMergeRequests(now, locale = "en") {
|
|
|
180
180
|
flaky: { en: "Fix the flaky login test", es: "Arreglar el test de login inestable", de: "Wackeligen Login-Test reparieren", "zh-Hant": "\u4FEE\u6B63\u4E0D\u7A69\u5B9A\u7684\u767B\u5165\u6E2C\u8A66", "zh-Hans": "\u4FEE\u590D\u4E0D\u7A33\u5B9A\u7684\u767B\u5F55\u6D4B\u8BD5" },
|
|
181
181
|
rateLimit: { en: "Rate-limit the public endpoints", es: "Limitar peticiones a endpoints p\xFAblicos", de: "\xD6ffentliche Endpunkte drosseln", "zh-Hant": "\u516C\u958B\u7AEF\u9EDE\u52A0\u4E0A\u901F\u7387\u9650\u5236", "zh-Hans": "\u516C\u5F00\u63A5\u53E3\u52A0\u4E0A\u9650\u6D41" },
|
|
182
182
|
onboarding: { en: "Update the onboarding guide", es: "Actualizar la gu\xEDa de bienvenida", de: "Onboarding-Leitfaden aktualisieren", "zh-Hant": "\u66F4\u65B0\u65B0\u4EBA\u5165\u9580\u6307\u5357", "zh-Hans": "\u66F4\u65B0\u65B0\u4EBA\u5165\u804C\u6307\u5357" },
|
|
183
|
-
darkMode: { en: "Dark mode toggle in settings", es: "Interruptor de modo oscuro en ajustes", de: "Dunkelmodus-Schalter in den Einstellungen", "zh-Hant": "\u8A2D\u5B9A\u52A0\u5165\u6DF1\u8272\u6A21\u5F0F\u958B\u95DC", "zh-Hans": "\u8BBE\u7F6E\u4E2D\u52A0\u5165\u6DF1\u8272\u6A21\u5F0F\u5F00\u5173" },
|
|
183
|
+
darkMode: { en: "Dark mode toggle in settings", es: "Interruptor de modo oscuro en ajustes", de: "Dunkelmodus-Schalter in den Einstellungen", "zh-Hant": "\u5728\u8A2D\u5B9A\u4E2D\u52A0\u5165\u6DF1\u8272\u6A21\u5F0F\u958B\u95DC", "zh-Hans": "\u8BBE\u7F6E\u4E2D\u52A0\u5165\u6DF1\u8272\u6A21\u5F0F\u5F00\u5173" },
|
|
184
184
|
offline: { en: "Offline sync for drafts", es: "Sincronizar borradores sin conexi\xF3n", de: "Offline-Sync f\xFCr Entw\xFCrfe", "zh-Hant": "\u8349\u7A3F\u96E2\u7DDA\u540C\u6B65", "zh-Hans": "\u8349\u7A3F\u79BB\u7EBF\u540C\u6B65" },
|
|
185
185
|
certs: { en: "Rotate the staging certificates", es: "Rotar los certificados de staging", de: "Staging-Zertifikate rotieren", "zh-Hant": "\u66F4\u63DB\u6E2C\u8A66\u74B0\u5883\u6191\u8B49", "zh-Hans": "\u8F6E\u6362\u9884\u53D1\u73AF\u5883\u8BC1\u4E66" },
|
|
186
186
|
perms: { en: "Cache user permissions per request", es: "Cachear permisos de usuario por petici\xF3n", de: "Benutzerrechte pro Anfrage cachen", "zh-Hant": "\u6BCF\u500B\u8ACB\u6C42\u5FEB\u53D6\u4F7F\u7528\u8005\u6B0A\u9650", "zh-Hans": "\u6309\u8BF7\u6C42\u7F13\u5B58\u7528\u6237\u6743\u9650" },
|
|
187
187
|
charts: { en: "Move the charts to the new library", es: "Pasar las gr\xE1ficas a la nueva librer\xEDa", de: "Diagramme auf neue Bibliothek umstellen", "zh-Hant": "\u5716\u8868\u6539\u7528\u65B0\u7684\u51FD\u5F0F\u5EAB", "zh-Hans": "\u56FE\u8868\u8FC1\u79FB\u5230\u65B0\u5E93" },
|
|
188
|
-
push: { en: "Push notifications for replies", es: "Notificaciones push de respuestas", de: "Push-Benachrichtigungen f\xFCr Antworten", "zh-Hant": "\u56DE\u8986\u63A8\u64AD\u901A\u77E5", "zh-Hans": "\u56DE\u590D\u63A8\u9001\u901A\u77E5" }
|
|
188
|
+
push: { en: "Push notifications for replies", es: "Notificaciones push de respuestas", de: "Push-Benachrichtigungen f\xFCr Antworten", "zh-Hant": "\u65B0\u589E\u56DE\u8986\u7684\u63A8\u64AD\u901A\u77E5", "zh-Hans": "\u4E3A\u56DE\u590D\u6DFB\u52A0\u63A8\u9001\u901A\u77E5" }
|
|
189
189
|
};
|
|
190
190
|
const n = (key) => localize(T[key], locale);
|
|
191
191
|
const ago = (h) => new Date(now - h * 36e5).toISOString();
|
|
@@ -243,7 +243,10 @@ var mergeRequests = defineSource({
|
|
|
243
243
|
minIntervalMs: 6e4,
|
|
244
244
|
timeoutMs: 2e4,
|
|
245
245
|
read: ({ options, signal }) => readMergeRequests(options, signal),
|
|
246
|
-
demo: ({ now, locale }) => demoMergeRequests(now, locale)
|
|
246
|
+
demo: ({ now, locale }) => demoMergeRequests(now, locale),
|
|
247
|
+
// Several accounts (gitlab.com and a company host), each with its host and token: Kiosko 0.2.12 and
|
|
248
|
+
// later; older ones ignore it. Each read is one query and keeps nothing, so profiles share no state.
|
|
249
|
+
...{ profiles: true }
|
|
247
250
|
});
|
|
248
251
|
var aliasesField = () => t.map({
|
|
249
252
|
advanced: true,
|
|
@@ -367,7 +370,7 @@ var reviews = defineWidget({
|
|
|
367
370
|
var index_default = definePlugin({
|
|
368
371
|
id: "gitlab",
|
|
369
372
|
name: { en: "GitLab", es: "GitLab", de: "GitLab", "zh-Hant": "GitLab", "zh-Hans": "GitLab" },
|
|
370
|
-
version: "0.
|
|
373
|
+
version: "0.3.0",
|
|
371
374
|
languages: ["en", "es", "de", "zh-Hant", "zh-Hans"],
|
|
372
375
|
sdk: "^0.2.0",
|
|
373
376
|
permissions: { network: ["gitlab.com", "user"], exec: ["glab"] },
|
package/kiosko-manifest.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"zh-Hant": "GitLab",
|
|
10
10
|
"zh-Hans": "GitLab"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.
|
|
12
|
+
"version": "0.3.0",
|
|
13
13
|
"description": {
|
|
14
14
|
"en": "Your merge requests' pipelines and the reviews waiting for you.",
|
|
15
15
|
"es": "Los pipelines de tus merge requests y las revisiones que te esperan.",
|
|
@@ -553,6 +553,7 @@
|
|
|
553
553
|
},
|
|
554
554
|
"polled": true,
|
|
555
555
|
"intervalMs": 180000,
|
|
556
|
+
"profiles": true,
|
|
556
557
|
"options": {
|
|
557
558
|
"default": {
|
|
558
559
|
"host": "",
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kiosko-plugin-gitlab",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "GitLab cards: the pipelines of your open merge requests and the ones waiting for your review.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"author": "Loksly",
|
|
7
|
+
"author": "Loksly <info@kioskolcd.dev> (https://kioskolcd.dev)",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"kiosko",
|
|
10
10
|
"kiosko-plugin",
|