@bigbinary/neeto-api-keys-frontend 3.0.1 → 3.0.3

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.
Files changed (44) hide show
  1. package/app/javascript/src/translations/ar.json +3 -1
  2. package/app/javascript/src/translations/bg.json +3 -1
  3. package/app/javascript/src/translations/ca.json +3 -1
  4. package/app/javascript/src/translations/cs.json +3 -1
  5. package/app/javascript/src/translations/da.json +3 -1
  6. package/app/javascript/src/translations/de.json +3 -1
  7. package/app/javascript/src/translations/en.json +3 -1
  8. package/app/javascript/src/translations/es-MX.json +3 -1
  9. package/app/javascript/src/translations/es.json +3 -1
  10. package/app/javascript/src/translations/et.json +3 -1
  11. package/app/javascript/src/translations/fi.json +3 -1
  12. package/app/javascript/src/translations/fil.json +3 -1
  13. package/app/javascript/src/translations/fr.json +3 -1
  14. package/app/javascript/src/translations/he.json +76 -0
  15. package/app/javascript/src/translations/hi.json +3 -1
  16. package/app/javascript/src/translations/hr.json +3 -1
  17. package/app/javascript/src/translations/id.json +3 -1
  18. package/app/javascript/src/translations/it.json +3 -1
  19. package/app/javascript/src/translations/ja.json +3 -1
  20. package/app/javascript/src/translations/ko.json +3 -1
  21. package/app/javascript/src/translations/nl.json +3 -1
  22. package/app/javascript/src/translations/pl.json +3 -1
  23. package/app/javascript/src/translations/pt-BR.json +3 -1
  24. package/app/javascript/src/translations/pt.json +3 -1
  25. package/app/javascript/src/translations/ro.json +3 -1
  26. package/app/javascript/src/translations/ru.json +3 -1
  27. package/app/javascript/src/translations/sk.json +3 -1
  28. package/app/javascript/src/translations/sl.json +3 -1
  29. package/app/javascript/src/translations/sv.json +3 -1
  30. package/app/javascript/src/translations/th.json +3 -1
  31. package/app/javascript/src/translations/tr.json +3 -1
  32. package/app/javascript/src/translations/uk.json +3 -1
  33. package/app/javascript/src/translations/vi.json +3 -1
  34. package/app/javascript/src/translations/zh-CN.json +3 -1
  35. package/app/javascript/src/translations/zh-TW.json +3 -1
  36. package/dist/ApiKeys.js +19 -2
  37. package/dist/ApiKeys.js.map +1 -1
  38. package/dist/cjs/ApiKeys.js +19 -2
  39. package/dist/cjs/ApiKeys.js.map +1 -1
  40. package/dist/cjs/index.js +3 -1
  41. package/dist/cjs/index.js.map +1 -1
  42. package/dist/index.js +3 -1
  43. package/dist/index.js.map +1 -1
  44. package/package.json +11 -11
@@ -6,7 +6,9 @@
6
6
  "never": "أبدا",
7
7
  "general": "عام",
8
8
  "zapier": "زابير",
9
- "type": "نوع"
9
+ "type": "نوع",
10
+ "apiKeyCount_one": "{{count}} مفتاح API",
11
+ "apiKeyCount_other": "{{count}} مفاتيح API"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "إضافة مفتاح API جديد",
@@ -6,7 +6,9 @@
6
6
  "never": "Никога",
7
7
  "general": "Общи",
8
8
  "zapier": "Zapier",
9
- "type": "Тип"
9
+ "type": "Тип",
10
+ "apiKeyCount_one": "{{count}} API ключ",
11
+ "apiKeyCount_other": "{{count}} API ключа"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Добавяне на нов API ключ",
@@ -6,7 +6,9 @@
6
6
  "never": "Mai",
7
7
  "general": "General",
8
8
  "zapier": "Zapier",
9
- "type": "Tipus"
9
+ "type": "Tipus",
10
+ "apiKeyCount_one": "{{count}} clau de l'API",
11
+ "apiKeyCount_other": "{{count}} claus de l'API"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Afegir nova clau d'API",
@@ -6,7 +6,9 @@
6
6
  "never": "Nikdy",
7
7
  "general": "Obecné",
8
8
  "zapier": "Zapier",
9
- "type": "Typ"
9
+ "type": "Typ",
10
+ "apiKeyCount_one": "{{count}} API klíč",
11
+ "apiKeyCount_other": "{{count}} API klíče"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Přidat nový API klíč",
@@ -6,7 +6,9 @@
6
6
  "never": "Aldrig",
7
7
  "general": "Generel",
8
8
  "zapier": "Zapier",
9
- "type": "Type"
9
+ "type": "Type",
10
+ "apiKeyCount_one": "{{count}} API nøgle",
11
+ "apiKeyCount_other": "{{count}} API nøgler"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Tilføj ny API-nøgle",
@@ -6,7 +6,9 @@
6
6
  "never": "Nie",
7
7
  "general": "Allgemein",
8
8
  "zapier": "Zapier",
9
- "type": "Typ"
9
+ "type": "Typ",
10
+ "apiKeyCount_one": "{{count}} API-Schlüssel",
11
+ "apiKeyCount_other": "{{count}} API-Schlüssel"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Neuen API-Schlüssel hinzufügen",
@@ -6,7 +6,9 @@
6
6
  "never": "Never",
7
7
  "general": "General",
8
8
  "zapier": "Zapier",
9
- "type": "Type"
9
+ "type": "Type",
10
+ "apiKeyCount_one": "{{count}} API key",
11
+ "apiKeyCount_other": "{{count}} API keys"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Add new API key",
@@ -6,7 +6,9 @@
6
6
  "never": "Nunca",
7
7
  "general": "General",
8
8
  "zapier": "Zapier",
9
- "type": "Tipo"
9
+ "type": "Tipo",
10
+ "apiKeyCount_one": "{{count}} clave de API",
11
+ "apiKeyCount_other": "{{count}} claves de API"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Agregar nueva clave API",
@@ -6,7 +6,9 @@
6
6
  "never": "Nunca",
7
7
  "general": "General",
8
8
  "zapier": "Zapier",
9
- "type": "Tipo"
9
+ "type": "Tipo",
10
+ "apiKeyCount_one": "{{count}} clave de API",
11
+ "apiKeyCount_other": "{{count}} claves de API"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Agregar nueva clave de API",
@@ -6,7 +6,9 @@
6
6
  "never": "Kunagi",
7
7
  "general": "Üldine",
8
8
  "zapier": "Zapier",
9
- "type": "Tüüp"
9
+ "type": "Tüüp",
10
+ "apiKeyCount_one": "{{count}} API võti",
11
+ "apiKeyCount_other": "{{count}} API võtmed"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Lisa uus API võti",
@@ -6,7 +6,9 @@
6
6
  "never": "Ei koskaan",
7
7
  "general": "Yleinen",
8
8
  "zapier": "Zapier",
9
- "type": "Tyyppi"
9
+ "type": "Tyyppi",
10
+ "apiKeyCount_one": "{{count}} API avain",
11
+ "apiKeyCount_other": "{{count}} API avainta"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Lisää uusi API-avain",
@@ -6,7 +6,9 @@
6
6
  "never": "Kailanman",
7
7
  "general": "Pangkalahatan",
8
8
  "zapier": "Zapier",
9
- "type": "Uri"
9
+ "type": "Uri",
10
+ "apiKeyCount_one": "{{count}} Pangunahing susi ng API",
11
+ "apiKeyCount_other": "{{count}} Mga susi ng API"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Magdagdag ng bagong API susi",
@@ -6,7 +6,9 @@
6
6
  "never": "Jamais",
7
7
  "general": "Général",
8
8
  "zapier": "Zapier",
9
- "type": "Type"
9
+ "type": "Type",
10
+ "apiKeyCount_one": "{{count}} clé API",
11
+ "apiKeyCount_other": "{{count}} clés API"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Ajouter une nouvelle clé API",
@@ -0,0 +1,76 @@
1
+ {
2
+ "neetoApiKeys": {
3
+ "common": {
4
+ "apiKey_one": "מפתח API",
5
+ "apiKey_other": "מפתחות API",
6
+ "never": "מעולם",
7
+ "general": "כללי",
8
+ "zapier": "זאפייר",
9
+ "type": "סוג",
10
+ "apiKeyCount_one": "{{count}} מפתחות API",
11
+ "apiKeyCount_other": "{{count}} מפתחות API"
12
+ },
13
+ "headers": {
14
+ "createApiKey": "הוסף מפתח API חדש",
15
+ "updateApiKey": "ערוך מפתח API"
16
+ },
17
+ "noData": {
18
+ "title": "אין מפתחות API להציג.",
19
+ "helpText": "הנה איך אתה יכול <helpLink>ליצור מפתח API</helpLink>."
20
+ },
21
+ "alert": {
22
+ "titles": {
23
+ "deleteApiKey": "למחוק מפתח API?"
24
+ },
25
+ "descriptions": {
26
+ "deleteApiKey": "אתה מוחק לצמיתות את מפתח ה-API בשם <strong>{{name}}</strong>. זה לא ניתן לביטול.",
27
+ "deleteZapierApiKey": "אתה מוחק לצמיתות את מפתח ה-API <strong>{{name}}</strong>. כל הזאפים שקשורים למפתח API זה יכבו. זה לא ניתן לביטול."
28
+ }
29
+ },
30
+ "buttons": {
31
+ "delete": "מחק",
32
+ "addApiKey": "הוסף מפתח API",
33
+ "edit": "ערוך",
34
+ "submit": "שלח",
35
+ "cancel": "בטל",
36
+ "saveChanges": "שמור שינויים"
37
+ },
38
+ "placeholders": {
39
+ "search": "חפש מפתחות API",
40
+ "selectExpiryDate": "בחר תאריך תפוגה",
41
+ "label": "הוסף תווית עבור מפתח ה-API"
42
+ },
43
+ "notifications": {
44
+ "copiedToClipboard": "מפתח ה-API הועתק ללוח"
45
+ },
46
+ "tooltips": {
47
+ "apiKeys": "מפתחות API",
48
+ "apiKeysDescription": "צור מפתחות API כדי להשתמש ב-APIs ציבוריים",
49
+ "copyToClipboard": "העתק ללוח"
50
+ },
51
+ "table": {
52
+ "headers": {
53
+ "label": "תיוג",
54
+ "token": "מפתח API",
55
+ "expiresAt": "תאריך תפוגה",
56
+ "createdAt": "נוצר בתאריך",
57
+ "status": "סטטוס",
58
+ "type": "סוג"
59
+ }
60
+ },
61
+ "fields": {
62
+ "label": "תיוג",
63
+ "expiryDate": "תאריך תפוגה",
64
+ "neverExpire": "לא פג תוקף"
65
+ },
66
+ "validations": {
67
+ "expiry": "$t(neetoApiKeys.fields.expiryDate) צריך להיות לפחות {{date}}",
68
+ "required": "{{entity}} הוא נדרש",
69
+ "maxLength": "{{entity}} יכול להיות עד {{max}} תווים"
70
+ },
71
+ "tags": {
72
+ "expired": "פג תוקף",
73
+ "active": "פעיל"
74
+ }
75
+ }
76
+ }
@@ -6,7 +6,9 @@
6
6
  "never": "कभी नहीं",
7
7
  "general": "सामान्य",
8
8
  "zapier": "ज़ेपियर",
9
- "type": "प्रकार"
9
+ "type": "प्रकार",
10
+ "apiKeyCount_one": "{{count}} API कुंजी",
11
+ "apiKeyCount_other": "{{count}} API कुंजी"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "नया एपीआई कुंजी जोड़ें",
@@ -6,7 +6,9 @@
6
6
  "never": "Nikada",
7
7
  "general": "Općenito",
8
8
  "zapier": "Zapier",
9
- "type": "Vrsta"
9
+ "type": "Vrsta",
10
+ "apiKeyCount_one": "{{count}} API ključ",
11
+ "apiKeyCount_other": "{{count}} API ključevi"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Dodaj novi API ključ",
@@ -6,7 +6,9 @@
6
6
  "never": "Tidak pernah",
7
7
  "general": "Umum",
8
8
  "zapier": "Zapier",
9
- "type": "Tipe"
9
+ "type": "Tipe",
10
+ "apiKeyCount_one": "{{count}} Kunci API",
11
+ "apiKeyCount_other": "{{count}} Kunci API"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Tambahkan kunci API baru",
@@ -6,7 +6,9 @@
6
6
  "never": "Mai",
7
7
  "general": "Generale",
8
8
  "zapier": "Zapier",
9
- "type": "Tipo"
9
+ "type": "Tipo",
10
+ "apiKeyCount_one": "{{count}} chiave API",
11
+ "apiKeyCount_other": "{{count}} chiavi API"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Aggiungi nuova chiave API",
@@ -6,7 +6,9 @@
6
6
  "never": "決して",
7
7
  "general": "一般",
8
8
  "zapier": "Zapier",
9
- "type": "タイプ"
9
+ "type": "タイプ",
10
+ "apiKeyCount_one": "{{count}} API キー",
11
+ "apiKeyCount_other": "{{count}} API キー"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "新しいAPIキーを追加",
@@ -6,7 +6,9 @@
6
6
  "never": "절대 안 함",
7
7
  "general": "일반",
8
8
  "zapier": "Zapier",
9
- "type": "유형"
9
+ "type": "유형",
10
+ "apiKeyCount_one": "{{count}} API 키",
11
+ "apiKeyCount_other": "{{count}} API 키"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "새 API 키 추가",
@@ -6,7 +6,9 @@
6
6
  "never": "Nooit",
7
7
  "general": "Algemeen",
8
8
  "zapier": "Zapier",
9
- "type": "Type"
9
+ "type": "Type",
10
+ "apiKeyCount_one": "{{count}} API sleutel",
11
+ "apiKeyCount_other": "{{count}} API sleutels"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Voeg nieuwe API-sleutel toe",
@@ -6,7 +6,9 @@
6
6
  "never": "Nigdy",
7
7
  "general": "Ogólne",
8
8
  "zapier": "Zapier",
9
- "type": "Typ"
9
+ "type": "Typ",
10
+ "apiKeyCount_one": "{{count}} klucz API",
11
+ "apiKeyCount_other": "{{count}} klucze API"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Dodaj nowy klucz API",
@@ -6,7 +6,9 @@
6
6
  "never": "Nunca",
7
7
  "general": "Geral",
8
8
  "zapier": "Zapier",
9
- "type": "Tipo"
9
+ "type": "Tipo",
10
+ "apiKeyCount_one": "{{count}} chave de API",
11
+ "apiKeyCount_other": "{{count}} chaves de API"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Adicionar nova chave de API",
@@ -6,7 +6,9 @@
6
6
  "never": "Nunca",
7
7
  "general": "Geral",
8
8
  "zapier": "Zapier",
9
- "type": "Tipo"
9
+ "type": "Tipo",
10
+ "apiKeyCount_one": "{{count}} chave de API",
11
+ "apiKeyCount_other": "{{count}} chaves de API"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Adicionar nova chave de API",
@@ -6,7 +6,9 @@
6
6
  "never": "Niciodată",
7
7
  "general": "General",
8
8
  "zapier": "Zapier",
9
- "type": "Tip"
9
+ "type": "Tip",
10
+ "apiKeyCount_one": "{{count}} cheie API",
11
+ "apiKeyCount_other": "{{count}} chei API"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Adaugă o nouă cheie API",
@@ -6,7 +6,9 @@
6
6
  "never": "Никогда",
7
7
  "general": "Общее",
8
8
  "zapier": "Zapier",
9
- "type": "Тип"
9
+ "type": "Тип",
10
+ "apiKeyCount_one": "{{count}} API ключ",
11
+ "apiKeyCount_other": "{{count}} API ключа"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Добавить новый API ключ",
@@ -6,7 +6,9 @@
6
6
  "never": "Nikdy",
7
7
  "general": "Všeobecné",
8
8
  "zapier": "Zapier",
9
- "type": "Typ"
9
+ "type": "Typ",
10
+ "apiKeyCount_one": "{{count}} API kľúč",
11
+ "apiKeyCount_other": "{{count}} API kľúče"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Pridať nový API kľúč",
@@ -6,7 +6,9 @@
6
6
  "never": "Nikoli",
7
7
  "general": "Splošno",
8
8
  "zapier": "Zapier",
9
- "type": "Vrsta"
9
+ "type": "Vrsta",
10
+ "apiKeyCount_one": "{{count}} API ključ",
11
+ "apiKeyCount_other": "{{count}} API ključi"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Dodaj nov API ključ",
@@ -6,7 +6,9 @@
6
6
  "never": "Aldrig",
7
7
  "general": "Allmän",
8
8
  "zapier": "Zapier",
9
- "type": "Typ"
9
+ "type": "Typ",
10
+ "apiKeyCount_one": "{{count}} API nyckel",
11
+ "apiKeyCount_other": "{{count}} API nycklar"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Lägg till ny API-nyckel",
@@ -6,7 +6,9 @@
6
6
  "never": "ไม่เคย",
7
7
  "general": "ทั่วไป",
8
8
  "zapier": "Zapier",
9
- "type": "ประเภท"
9
+ "type": "ประเภท",
10
+ "apiKeyCount_one": "{{count}} คีย์ API",
11
+ "apiKeyCount_other": "{{count}} คีย์ API"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "เพิ่มกุญแจ API ใหม่",
@@ -6,7 +6,9 @@
6
6
  "never": "Asla",
7
7
  "general": "Genel",
8
8
  "zapier": "Zapier",
9
- "type": "Tür"
9
+ "type": "Tür",
10
+ "apiKeyCount_one": "{{count}} API anahtarı",
11
+ "apiKeyCount_other": "{{count}} API anahtarları"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Yeni API anahtarı ekle",
@@ -6,7 +6,9 @@
6
6
  "never": "Ніколи",
7
7
  "general": "Загальний",
8
8
  "zapier": "Zapier",
9
- "type": "Тип"
9
+ "type": "Тип",
10
+ "apiKeyCount_one": "{{count}} API ключ",
11
+ "apiKeyCount_other": "{{count}} API ключів"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Додати новий API ключ",
@@ -6,7 +6,9 @@
6
6
  "never": "Không bao giờ",
7
7
  "general": "Chung",
8
8
  "zapier": "Zapier",
9
- "type": "Loại"
9
+ "type": "Loại",
10
+ "apiKeyCount_one": "{{count}} khóa API",
11
+ "apiKeyCount_other": "{{count}} khóa API"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "Thêm khóa API mới",
@@ -6,7 +6,9 @@
6
6
  "never": "从不",
7
7
  "general": "常规",
8
8
  "zapier": "Zapier",
9
- "type": "类型"
9
+ "type": "类型",
10
+ "apiKeyCount_one": "{{count}} 个 API 密钥",
11
+ "apiKeyCount_other": "{{count}} 个 API 密钥"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "添加新的 API 密钥",
@@ -6,7 +6,9 @@
6
6
  "never": "從不",
7
7
  "general": "一般",
8
8
  "zapier": "Zapier",
9
- "type": "類型"
9
+ "type": "類型",
10
+ "apiKeyCount_one": "{{count}} 個 API 金鑰",
11
+ "apiKeyCount_other": "{{count}} 個 API 金鑰"
10
12
  },
11
13
  "headers": {
12
14
  "createApiKey": "新增 API 金鑰",
package/dist/ApiKeys.js CHANGED
@@ -6,9 +6,12 @@ import { truncate, isPresent, humanize, isNotPresent, isNotEmpty } from '@bigbin
6
6
  import { DEFAULT_PAGE_INDEX, DEFAULT_PAGE_SIZE, PLURAL } from '@bigbinary/neeto-commons-frontend/constants';
7
7
  import { useUpdateEffect, useMutationWithInvalidation, withT, withTitle, useQueryParams, useDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
8
8
  import { getQueryParams, buildUrl, dayjs, dateFormat } from '@bigbinary/neeto-commons-frontend/utils';
9
+ import FilterBar from '@bigbinary/neeto-filters-frontend/Bar';
9
10
  import Header from '@bigbinary/neeto-molecules/Header';
11
+ import SubHeader from '@bigbinary/neeto-molecules/SubHeader';
10
12
  import Alert from '@bigbinary/neetoui/Alert';
11
13
  import Button from '@bigbinary/neetoui/Button';
14
+ import Typography from '@bigbinary/neetoui/Typography';
12
15
  import { useTranslation, Trans } from 'react-i18next';
13
16
  import { mergeLeft, prop } from 'ramda';
14
17
  import { useHistory } from 'react-router-dom';
@@ -18,7 +21,6 @@ import axios from 'axios';
18
21
  import * as yup from 'yup';
19
22
  import HelpPopover from '@bigbinary/neeto-molecules/HelpPopover';
20
23
  import Pane from '@bigbinary/neetoui/Pane';
21
- import Typography from '@bigbinary/neetoui/Typography';
22
24
  import NeetoUIForm from '@bigbinary/neetoui/formik/Form';
23
25
  import Input from '@bigbinary/neetoui/formik/Input';
24
26
  import Radio from '@bigbinary/neetoui/formik/Radio';
@@ -676,7 +678,22 @@ var ApiKeys = function ApiKeys(_ref) {
676
678
  },
677
679
  title: t("neetoApiKeys.tooltips.apiKeys")
678
680
  }, titleHelpPopoverProps)
679
- }, headerProps)), /*#__PURE__*/jsx(Table, {
681
+ }, headerProps)), /*#__PURE__*/jsx(SubHeader, {
682
+ leftActionBlock: /*#__PURE__*/jsxs(Fragment, {
683
+ children: [/*#__PURE__*/jsx(Typography, {
684
+ component: "h4",
685
+ children: t("neetoApiKeys.common.apiKeyCount", {
686
+ count: (data === null || data === void 0 ? void 0 : data.totalCount) || 0
687
+ })
688
+ }), /*#__PURE__*/jsx(FilterBar, {
689
+ className: "ml-4 mb-0",
690
+ keyword: {
691
+ key: "search_term",
692
+ node: "label"
693
+ }
694
+ })]
695
+ })
696
+ }), /*#__PURE__*/jsx(Table, {
680
697
  currentPage: currentPage,
681
698
  data: data,
682
699
  helpDocUrl: helpDocUrl,