@strapi/plugin-documentation 4.9.0-alpha.0 → 4.9.0-beta.2
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/admin/src/components/FieldActionWrapper/index.js +1 -1
- package/admin/src/components/PluginIcon/index.js +1 -1
- package/admin/src/pages/PluginPage/index.js +17 -10
- package/admin/src/pages/SettingsPage/index.js +16 -14
- package/admin/src/translations/ar.json +1 -1
- package/admin/src/translations/cs.json +1 -1
- package/admin/src/translations/de.json +2 -2
- package/admin/src/translations/dk.json +4 -4
- package/admin/src/translations/en.json +2 -2
- package/admin/src/translations/es.json +4 -4
- package/admin/src/translations/fr.json +4 -4
- package/admin/src/translations/id.json +2 -2
- package/admin/src/translations/it.json +2 -2
- package/admin/src/translations/ko.json +4 -4
- package/admin/src/translations/ms.json +1 -1
- package/admin/src/translations/nl.json +1 -1
- package/admin/src/translations/pl.json +4 -4
- package/admin/src/translations/pt-BR.json +1 -1
- package/admin/src/translations/pt.json +1 -1
- package/admin/src/translations/ru.json +12 -1
- package/admin/src/translations/sk.json +2 -2
- package/admin/src/translations/sv.json +4 -4
- package/admin/src/translations/th.json +1 -1
- package/admin/src/translations/tr.json +3 -3
- package/admin/src/translations/uk.json +1 -1
- package/admin/src/translations/vi.json +2 -2
- package/admin/src/translations/zh-Hans.json +2 -2
- package/admin/src/utils/openWithNewTab.js +3 -4
- package/package.json +23 -12
|
@@ -16,17 +16,24 @@ import {
|
|
|
16
16
|
useFocusWhenNavigate,
|
|
17
17
|
} from '@strapi/helper-plugin';
|
|
18
18
|
import { Helmet } from 'react-helmet';
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
import {
|
|
20
|
+
Button,
|
|
21
|
+
Layout,
|
|
22
|
+
HeaderLayout,
|
|
23
|
+
ContentLayout,
|
|
24
|
+
Main,
|
|
25
|
+
IconButton,
|
|
26
|
+
Typography,
|
|
27
|
+
Flex,
|
|
28
|
+
Table,
|
|
29
|
+
Tr,
|
|
30
|
+
Thead,
|
|
31
|
+
Th,
|
|
32
|
+
Tbody,
|
|
33
|
+
Td,
|
|
34
|
+
} from '@strapi/design-system';
|
|
26
35
|
|
|
27
|
-
import Trash from '@strapi/icons
|
|
28
|
-
import Show from '@strapi/icons/Eye';
|
|
29
|
-
import Reload from '@strapi/icons/Refresh';
|
|
36
|
+
import { Trash, Eye as Show, Refresh as Reload } from '@strapi/icons';
|
|
30
37
|
|
|
31
38
|
import permissions from '../../permissions';
|
|
32
39
|
import { getTrad } from '../../utils';
|
|
@@ -9,20 +9,22 @@ import {
|
|
|
9
9
|
} from '@strapi/helper-plugin';
|
|
10
10
|
|
|
11
11
|
// Strapi Parts
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
import {
|
|
13
|
+
ContentLayout,
|
|
14
|
+
HeaderLayout,
|
|
15
|
+
Main,
|
|
16
|
+
Button,
|
|
17
|
+
Box,
|
|
18
|
+
Flex,
|
|
19
|
+
Typography,
|
|
20
|
+
ToggleInput,
|
|
21
|
+
TextInput,
|
|
22
|
+
Grid,
|
|
23
|
+
GridItem,
|
|
24
|
+
} from '@strapi/design-system';
|
|
21
25
|
|
|
22
26
|
// Strapi Icons
|
|
23
|
-
import Show from '@strapi/icons
|
|
24
|
-
import Hide from '@strapi/icons/EyeStriked';
|
|
25
|
-
import Check from '@strapi/icons/Check';
|
|
27
|
+
import { Eye as Show, EyeStriked as Hide, Check } from '@strapi/icons';
|
|
26
28
|
|
|
27
29
|
import permissions from '../../permissions';
|
|
28
30
|
import { getTrad } from '../../utils';
|
|
@@ -89,7 +91,7 @@ const SettingsPage = () => {
|
|
|
89
91
|
paddingLeft={7}
|
|
90
92
|
paddingRight={7}
|
|
91
93
|
>
|
|
92
|
-
<
|
|
94
|
+
<Flex direction="column" alignItems="stretch" gap={4}>
|
|
93
95
|
<Typography variant="delta" as="h2">
|
|
94
96
|
{formatMessage({
|
|
95
97
|
id: 'global.settings',
|
|
@@ -166,7 +168,7 @@ const SettingsPage = () => {
|
|
|
166
168
|
</GridItem>
|
|
167
169
|
)}
|
|
168
170
|
</Grid>
|
|
169
|
-
</
|
|
171
|
+
</Flex>
|
|
170
172
|
</Box>
|
|
171
173
|
</ContentLayout>
|
|
172
174
|
</Form>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"components.Row.regenerate": "Regenerate",
|
|
4
4
|
"containers.HomePage.Block.title": "Versions",
|
|
5
5
|
"containers.HomePage.Button.update": "Update",
|
|
6
|
-
"containers.HomePage.PluginHeader.title": "Documentation
|
|
6
|
+
"containers.HomePage.PluginHeader.title": "Documentation — Settings",
|
|
7
7
|
"containers.HomePage.PopUpWarning.confirm": "I understand",
|
|
8
8
|
"containers.HomePage.PopUpWarning.message": "Are you sure you want to delete this version?",
|
|
9
9
|
"containers.HomePage.form.password": "Password",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"components.Row.regenerate": "Znovu vygenerovat",
|
|
4
4
|
"containers.HomePage.Block.title": "Verze",
|
|
5
5
|
"containers.HomePage.Button.update": "Uložit",
|
|
6
|
-
"containers.HomePage.PluginHeader.title": "Dokumentace
|
|
6
|
+
"containers.HomePage.PluginHeader.title": "Dokumentace — Nastavení",
|
|
7
7
|
"containers.HomePage.PopUpWarning.confirm": "Rozumím",
|
|
8
8
|
"containers.HomePage.PopUpWarning.message": "Jste si jisti, že chcete odstranit tuto verzi?",
|
|
9
9
|
"containers.HomePage.form.password": "Heslo",
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"components.Row.regenerate": "Neu generieren",
|
|
4
4
|
"containers.HomePage.Block.title": "Versionen",
|
|
5
5
|
"containers.HomePage.Button.update": "Aktualisieren",
|
|
6
|
-
"containers.HomePage.PluginHeader.title": "Dokumentation
|
|
6
|
+
"containers.HomePage.PluginHeader.title": "Dokumentation — Einstellungen",
|
|
7
7
|
"containers.HomePage.PopUpWarning.confirm": "Ich verstehe",
|
|
8
8
|
"containers.HomePage.PopUpWarning.message": "Sind Sie sich sicher, dass Sie diese Version löschen wollen?",
|
|
9
9
|
"containers.HomePage.copied": "Token in der Zwischenablage kopiert",
|
|
10
|
-
"containers.HomePage.form.jwtToken": "
|
|
10
|
+
"containers.HomePage.form.jwtToken": "JWT Token abrufen",
|
|
11
11
|
"containers.HomePage.form.jwtToken.description": "Kopieren Sie diesen Token und nutzen Sie es unter Swagger, um Anfragen zu stellen",
|
|
12
12
|
"containers.HomePage.form.password": "Passwort",
|
|
13
13
|
"containers.HomePage.form.password.inputDescription": "Setzen Sie ein Passwort, um die Dokumentation privat zu machen",
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
"components.Row.regenerate": "Regenerér",
|
|
5
5
|
"containers.HomePage.Block.title": "Versioner",
|
|
6
6
|
"containers.HomePage.Button.update": "Opdatér",
|
|
7
|
-
"containers.HomePage.PluginHeader.title": "Dokumentation
|
|
7
|
+
"containers.HomePage.PluginHeader.title": "Dokumentation — Indstillinger",
|
|
8
8
|
"containers.HomePage.PopUpWarning.confirm": "Jeg forstår",
|
|
9
9
|
"containers.HomePage.PopUpWarning.message": "Er du sikker på at du vil slette denne version?",
|
|
10
10
|
"containers.HomePage.copied": "Token kopieret til klippebord",
|
|
11
|
-
"containers.HomePage.form.jwtToken": "Hent dit
|
|
11
|
+
"containers.HomePage.form.jwtToken": "Hent dit JWT token",
|
|
12
12
|
"containers.HomePage.form.jwtToken.description": "Kopier dette token og brug det i swagger når du laver requests",
|
|
13
13
|
"containers.HomePage.form.password": "Kodeord",
|
|
14
14
|
"containers.HomePage.form.password.inputDescription": "Indstil kodeordet for at tilgå dokumentationen",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"pages.SettingsPage.header.save": "Gem",
|
|
34
34
|
"pages.SettingsPage.toggle.hint": "Gør dokumentationens endpoint privat",
|
|
35
35
|
"pages.SettingsPage.toggle.label": "Begrænset adgang",
|
|
36
|
-
"plugin.description.long": "Opret et OpenAPI dokument og visualisér dit API med
|
|
37
|
-
"plugin.description.short": "Opret et OpenAPI dokument og visualisér dit API med
|
|
36
|
+
"plugin.description.long": "Opret et OpenAPI dokument og visualisér dit API med Swagger UI.",
|
|
37
|
+
"plugin.description.short": "Opret et OpenAPI dokument og visualisér dit API med Swagger UI.",
|
|
38
38
|
"plugin.name": "Dokumentation"
|
|
39
39
|
}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
"components.Row.regenerate": "Regenerate",
|
|
5
5
|
"containers.HomePage.Block.title": "Versions",
|
|
6
6
|
"containers.HomePage.Button.update": "Update",
|
|
7
|
-
"containers.HomePage.PluginHeader.title": "Documentation
|
|
7
|
+
"containers.HomePage.PluginHeader.title": "Documentation — Settings",
|
|
8
8
|
"containers.HomePage.PopUpWarning.confirm": "I understand",
|
|
9
9
|
"containers.HomePage.PopUpWarning.message": "Are you sure you want to delete this version?",
|
|
10
10
|
"containers.HomePage.copied": "Token copied to clipboard",
|
|
11
|
-
"containers.HomePage.form.jwtToken": "Retrieve your
|
|
11
|
+
"containers.HomePage.form.jwtToken": "Retrieve your JWT token",
|
|
12
12
|
"containers.HomePage.form.jwtToken.description": "Copy this token and use it in swagger to make requests",
|
|
13
13
|
"containers.HomePage.form.password": "Password",
|
|
14
14
|
"containers.HomePage.form.password.inputDescription": "Set the password to access the documentation",
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
"components.Row.regenerate": "Regenerar",
|
|
5
5
|
"containers.HomePage.Block.title": "Versiones",
|
|
6
6
|
"containers.HomePage.Button.update": "Actualizar",
|
|
7
|
-
"containers.HomePage.PluginHeader.title": "Documentación
|
|
7
|
+
"containers.HomePage.PluginHeader.title": "Documentación — Configuración",
|
|
8
8
|
"containers.HomePage.PopUpWarning.confirm": "Confirmar",
|
|
9
9
|
"containers.HomePage.PopUpWarning.message": "¿Estás seguro de que deseas eliminar esta versión?",
|
|
10
10
|
"containers.HomePage.copied": "Token copiado al portapapeles",
|
|
11
|
-
"containers.HomePage.form.jwtToken": "Recupera tu token
|
|
11
|
+
"containers.HomePage.form.jwtToken": "Recupera tu token JWT",
|
|
12
12
|
"containers.HomePage.form.jwtToken.description": "Copie este token y utilícelo con arrogancia para realizar solicitudes",
|
|
13
13
|
"containers.HomePage.form.password": "Contraseña",
|
|
14
14
|
"containers.HomePage.form.password.inputDescription": "Establezca la contraseña para acceder a la documentación",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"pages.SettingsPage.header.save": "Guardar",
|
|
34
34
|
"pages.SettingsPage.toggle.hint": "Hacer que la documentación sea privada",
|
|
35
35
|
"pages.SettingsPage.toggle.label": "Acceso restringido",
|
|
36
|
-
"plugin.description.long": "Cree un documento OpenAPI y visualice su API con
|
|
37
|
-
"plugin.description.short": "Cree un documento OpenAPI y visualice su API con
|
|
36
|
+
"plugin.description.long": "Cree un documento OpenAPI y visualice su API con Swagger UI.",
|
|
37
|
+
"plugin.description.short": "Cree un documento OpenAPI y visualice su API con Swagger UI.",
|
|
38
38
|
"plugin.name": "Documentación"
|
|
39
39
|
}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"components.Row.regenerate": "Recréer",
|
|
4
4
|
"containers.HomePage.Block.title": "Versions",
|
|
5
5
|
"containers.HomePage.Button.update": "Mettre à jour",
|
|
6
|
-
"containers.HomePage.PluginHeader.title": "Documentation
|
|
6
|
+
"containers.HomePage.PluginHeader.title": "Documentation — Paramètres",
|
|
7
7
|
"containers.HomePage.PopUpWarning.confirm": "Supprimer",
|
|
8
8
|
"containers.HomePage.PopUpWarning.message": "Êtes-vous sûr·e de vouloir supprimer cette version ?",
|
|
9
9
|
"containers.HomePage.copied": "Token copié dans le presse papier",
|
|
10
|
-
"containers.HomePage.form.jwtToken": "Récuperez votre
|
|
10
|
+
"containers.HomePage.form.jwtToken": "Récuperez votre JWT token",
|
|
11
11
|
"containers.HomePage.form.jwtToken.description": "Copiez ce token et utilisez le dans swagger pour effectuer des requêtes",
|
|
12
12
|
"containers.HomePage.form.password": "Mot de passe",
|
|
13
13
|
"containers.HomePage.form.password.inputDescription": "Définir le mot de passe pour accéder à la documentation.",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"error.regenerateDoc": "Une erreur est survenue en recréant la documentation",
|
|
21
21
|
"error.regenerateDoc.versionMissing": "La version que vous essayez de créer n'existe pas.",
|
|
22
22
|
"notification.update.success": "Vos paramètres ont été enregistrés",
|
|
23
|
-
"plugin.description.long": "Créez un document OpenAPI et visualisez votre API avec
|
|
24
|
-
"plugin.description.short": "Créez un document OpenAPI et visualisez votre API avec
|
|
23
|
+
"plugin.description.long": "Créez un document OpenAPI et visualisez votre API avec Swagger UI.",
|
|
24
|
+
"plugin.description.short": "Créez un document OpenAPI et visualisez votre API avec Swagger UI.",
|
|
25
25
|
"plugin.name": "Documentation"
|
|
26
26
|
}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"components.Row.regenerate": "Diperbarui",
|
|
4
4
|
"containers.HomePage.Block.title": "Versi",
|
|
5
5
|
"containers.HomePage.Button.update": "Perbarui",
|
|
6
|
-
"containers.HomePage.PluginHeader.title": "Dokumentasi
|
|
6
|
+
"containers.HomePage.PluginHeader.title": "Dokumentasi — Pengaturan",
|
|
7
7
|
"containers.HomePage.PopUpWarning.confirm": "Saya mengerti",
|
|
8
8
|
"containers.HomePage.PopUpWarning.message": "Anda yakin ingin menghapus versi ini?",
|
|
9
9
|
"containers.HomePage.copied": "Token disalin ke papan klip",
|
|
10
|
-
"containers.HomePage.form.jwtToken": "Ambil token
|
|
10
|
+
"containers.HomePage.form.jwtToken": "Ambil token JWT Anda",
|
|
11
11
|
"containers.HomePage.form.jwtToken.description": "Salin token ini dan gunakan dengan sombong untuk membuat permintaan",
|
|
12
12
|
"containers.HomePage.form.password": "Kata sandi",
|
|
13
13
|
"containers.HomePage.form.password.inputDescription": "Atur kata sandi untuk mengakses dokumentasi",
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"components.Row.regenerate": "Rigenera",
|
|
4
4
|
"containers.HomePage.Block.title": "Versioni",
|
|
5
5
|
"containers.HomePage.Button.update": "Aggiorna",
|
|
6
|
-
"containers.HomePage.PluginHeader.title": "Documentazione
|
|
6
|
+
"containers.HomePage.PluginHeader.title": "Documentazione — Impostazioni",
|
|
7
7
|
"containers.HomePage.PopUpWarning.confirm": "Ho capito",
|
|
8
8
|
"containers.HomePage.PopUpWarning.message": "Sei sicuro di voler eliminare questa versione?",
|
|
9
9
|
"containers.HomePage.copied": "Token copiato negli appunti",
|
|
10
|
-
"containers.HomePage.form.jwtToken": "Recupera il tuo token
|
|
10
|
+
"containers.HomePage.form.jwtToken": "Recupera il tuo token JWT",
|
|
11
11
|
"containers.HomePage.form.jwtToken.description": "Copia questo token e usalo in swagger per fare richieste",
|
|
12
12
|
"containers.HomePage.form.password": "Password",
|
|
13
13
|
"containers.HomePage.form.password.inputDescription": "Imposta una password per accedere alla documentazione",
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"components.Row.regenerate": "재생성",
|
|
5
5
|
"containers.HomePage.Block.title": "버전",
|
|
6
6
|
"containers.HomePage.Button.update": "업데이트",
|
|
7
|
-
"containers.HomePage.PluginHeader.title": "도큐멘테이션
|
|
7
|
+
"containers.HomePage.PluginHeader.title": "도큐멘테이션 — 설정",
|
|
8
8
|
"containers.HomePage.PopUpWarning.confirm": "이해합니다.",
|
|
9
9
|
"containers.HomePage.PopUpWarning.message": "이 버전을 삭제하시겠습니까?",
|
|
10
10
|
"containers.HomePage.copied": "토큰이 클립보드에 복사되었습니다.",
|
|
11
11
|
"containers.HomePage.form.jwtToken": "JWT token 얻기",
|
|
12
|
-
"containers.HomePage.form.jwtToken.description": "이 토큰을 복사하고
|
|
12
|
+
"containers.HomePage.form.jwtToken.description": "이 토큰을 복사하고 Swagger에서 리퀘스트를 요청하는데 사용하세요.",
|
|
13
13
|
"containers.HomePage.form.password": "비밀번호",
|
|
14
14
|
"containers.HomePage.form.password.inputDescription": "문서에 액세스하기 위한 비밀번호를 설정합니다.",
|
|
15
15
|
"containers.HomePage.form.restrictedAccess": "액세스 제한",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"pages.SettingsPage.header.save": "저장",
|
|
34
34
|
"pages.SettingsPage.toggle.hint": "도큐멘테이션 엔드포인트를 비공개로 설정합니다.",
|
|
35
35
|
"pages.SettingsPage.toggle.label": "액세스 제한",
|
|
36
|
-
"plugin.description.long": "
|
|
37
|
-
"plugin.description.short": "
|
|
36
|
+
"plugin.description.long": "Swagger UI를 사용하여 오픈 API 문서를 만들고 API를 시각화합니다.",
|
|
37
|
+
"plugin.description.short": "Swagger UI를 사용하여 오픈 API 문서를 만들고 API를 시각화합니다.",
|
|
38
38
|
"plugin.name": "도큐멘테이션"
|
|
39
39
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"components.Row.regenerate": "Hasilkan Semula",
|
|
4
4
|
"containers.HomePage.Block.title": "Versi",
|
|
5
5
|
"containers.HomePage.Button.update": "Kemas Kini",
|
|
6
|
-
"containers.HomePage.PluginHeader.title": "Dokumen
|
|
6
|
+
"containers.HomePage.PluginHeader.title": "Dokumen — Tetapan",
|
|
7
7
|
"containers.HomePage.PopUpWarning.confirm": "Saya faham",
|
|
8
8
|
"containers.HomePage.PopUpWarning.message": "Anda pasti untuk memadam versi ini?",
|
|
9
9
|
"containers.HomePage.copied": "token disalin di papan keratan",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"components.Row.regenerate": "Regenerate",
|
|
4
4
|
"containers.HomePage.Block.title": "Versions",
|
|
5
5
|
"containers.HomePage.Button.update": "Update",
|
|
6
|
-
"containers.HomePage.PluginHeader.title": "Documentation
|
|
6
|
+
"containers.HomePage.PluginHeader.title": "Documentation — Settings",
|
|
7
7
|
"containers.HomePage.PopUpWarning.confirm": "I understand",
|
|
8
8
|
"containers.HomePage.PopUpWarning.message": "Are you sure you want to delete this version?",
|
|
9
9
|
"containers.HomePage.form.password": "Password",
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
"components.Row.regenerate": "Wygeneruj ponownie",
|
|
5
5
|
"containers.HomePage.Block.title": "Wersje",
|
|
6
6
|
"containers.HomePage.Button.update": "Zaktualizuj",
|
|
7
|
-
"containers.HomePage.PluginHeader.title": "Dokumentacja
|
|
7
|
+
"containers.HomePage.PluginHeader.title": "Dokumentacja — Ustawienia",
|
|
8
8
|
"containers.HomePage.PopUpWarning.confirm": "Rozumiem",
|
|
9
9
|
"containers.HomePage.PopUpWarning.message": "Czy jesteś pewien, że chcesz usunąć tę wersję?",
|
|
10
10
|
"containers.HomePage.copied": "Token skopiowany do schowka",
|
|
11
|
-
"containers.HomePage.form.jwtToken": "Odzyskaj swój token
|
|
11
|
+
"containers.HomePage.form.jwtToken": "Odzyskaj swój token JWT",
|
|
12
12
|
"containers.HomePage.form.jwtToken.description": "Skopiuj token i użyj go w swaggerze aby wykonać request",
|
|
13
13
|
"containers.HomePage.form.password": "Hasło",
|
|
14
14
|
"containers.HomePage.form.password.inputDescription": "Ustaw hasło aby uzyskać dostęp do dokumentacji",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"pages.SettingsPage.header.save": "Zapisz",
|
|
34
34
|
"pages.SettingsPage.toggle.hint": "Ustaw endpoint dokumentacji na prywatny",
|
|
35
35
|
"pages.SettingsPage.toggle.label": "Dostęp ograniczony",
|
|
36
|
-
"plugin.description.long": "Stwórz dokument OpenAPI i zwizualizuj swoje API z
|
|
37
|
-
"plugin.description.short": "Stwórz dokument OpenAPI i zwizualizuj swoje API z
|
|
36
|
+
"plugin.description.long": "Stwórz dokument OpenAPI i zwizualizuj swoje API z Swagger UI.",
|
|
37
|
+
"plugin.description.short": "Stwórz dokument OpenAPI i zwizualizuj swoje API z Swagger UI.",
|
|
38
38
|
"plugin.name": "Dokumentacja"
|
|
39
39
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"components.Row.regenerate": "Regenerate",
|
|
4
4
|
"containers.HomePage.Block.title": "Versions",
|
|
5
5
|
"containers.HomePage.Button.update": "Update",
|
|
6
|
-
"containers.HomePage.PluginHeader.title": "Documentation
|
|
6
|
+
"containers.HomePage.PluginHeader.title": "Documentation — Settings",
|
|
7
7
|
"containers.HomePage.PopUpWarning.confirm": "I understand",
|
|
8
8
|
"containers.HomePage.PopUpWarning.message": "Are you sure you want to delete this version?",
|
|
9
9
|
"containers.HomePage.form.password": "Password",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"components.Row.regenerate": "Regenerate",
|
|
4
4
|
"containers.HomePage.Block.title": "Versions",
|
|
5
5
|
"containers.HomePage.Button.update": "Update",
|
|
6
|
-
"containers.HomePage.PluginHeader.title": "Documentation
|
|
6
|
+
"containers.HomePage.PluginHeader.title": "Documentation — Settings",
|
|
7
7
|
"containers.HomePage.PopUpWarning.confirm": "I understand",
|
|
8
8
|
"containers.HomePage.PopUpWarning.message": "Are you sure you want to delete this version?",
|
|
9
9
|
"containers.HomePage.form.password": "Password",
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
+
"coming-soon": "This content is currently under construction and will be back in a few weeks!",
|
|
2
3
|
"components.Row.open": "Открыть",
|
|
3
4
|
"components.Row.regenerate": "Сгенерировать",
|
|
4
5
|
"containers.HomePage.Block.title": "Версии",
|
|
5
6
|
"containers.HomePage.Button.update": "Обновить",
|
|
6
|
-
"containers.HomePage.PluginHeader.title": "Документация
|
|
7
|
+
"containers.HomePage.PluginHeader.title": "Документация — Настройки",
|
|
7
8
|
"containers.HomePage.PopUpWarning.confirm": "Я понимаю",
|
|
8
9
|
"containers.HomePage.PopUpWarning.message": "Вы уверены что хотите удалить эту версию?",
|
|
9
10
|
"containers.HomePage.copied": "Токен скопирован в буфер обмена",
|
|
@@ -22,6 +23,16 @@
|
|
|
22
23
|
"notification.delete.success": "Документация удалена",
|
|
23
24
|
"notification.generate.success": "Документация сгенерирована",
|
|
24
25
|
"notification.update.success": "Настройки успешно обновлены",
|
|
26
|
+
"pages.PluginPage.Button.open": "Открыть документацию",
|
|
27
|
+
"pages.PluginPage.header.description": "Возможности плагина документации",
|
|
28
|
+
"pages.PluginPage.table.generated": "Последняя генерация",
|
|
29
|
+
"pages.PluginPage.table.icon.regenerate": "Сгерерировать {target}",
|
|
30
|
+
"pages.PluginPage.table.icon.show": "Открыть {target}",
|
|
31
|
+
"pages.PluginPage.table.version": "Версия",
|
|
32
|
+
"pages.SettingsPage.header.description": "Настройки плагина документации",
|
|
33
|
+
"pages.SettingsPage.header.save": "Сохранить",
|
|
34
|
+
"pages.SettingsPage.toggle.hint": "Сделать документацию приватной",
|
|
35
|
+
"pages.SettingsPage.toggle.label": "Доступ ограничен",
|
|
25
36
|
"plugin.description.long": "Создайте OpenAPI документацию для удобной работы с вашим API через SWAGGER UI.",
|
|
26
37
|
"plugin.description.short": "Создайте OpenAPI документацию для удобной работы с вашим API через SWAGGER UI.",
|
|
27
38
|
"plugin.name": "Документация"
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"components.Row.regenerate": "Znova vygenerovať",
|
|
4
4
|
"containers.HomePage.Block.title": "Verzie",
|
|
5
5
|
"containers.HomePage.Button.update": "Upraviť",
|
|
6
|
-
"containers.HomePage.PluginHeader.title": "Dokumentácia
|
|
6
|
+
"containers.HomePage.PluginHeader.title": "Dokumentácia — Nastavenia",
|
|
7
7
|
"containers.HomePage.PopUpWarning.confirm": "Rozumiem",
|
|
8
8
|
"containers.HomePage.PopUpWarning.message": "Ste si istý, že chcete odstrániť túto verziu?",
|
|
9
9
|
"containers.HomePage.copied": "Token bol skopírovaný do schránky",
|
|
10
|
-
"containers.HomePage.form.jwtToken": "Získať
|
|
10
|
+
"containers.HomePage.form.jwtToken": "Získať JWT token",
|
|
11
11
|
"containers.HomePage.form.jwtToken.description": "Skopírujte tento token a použijte ho v Swaggeri pri volaniach API",
|
|
12
12
|
"containers.HomePage.form.password": "Heslo",
|
|
13
13
|
"containers.HomePage.form.password.inputDescription": "Nastavte heslo pre prístup k dokumentácii",
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
"components.Row.regenerate": "Återskapa",
|
|
5
5
|
"containers.HomePage.Block.title": "Versioner",
|
|
6
6
|
"containers.HomePage.Button.update": "Uppdatera",
|
|
7
|
-
"containers.HomePage.PluginHeader.title": "Dokumentation
|
|
7
|
+
"containers.HomePage.PluginHeader.title": "Dokumentation — Inställningar",
|
|
8
8
|
"containers.HomePage.PopUpWarning.confirm": "Jag förstår",
|
|
9
9
|
"containers.HomePage.PopUpWarning.message": "Är du säker på att du vill ta bort denna versionen?",
|
|
10
10
|
"containers.HomePage.copied": "Token har kopierats till urklipp",
|
|
11
|
-
"containers.HomePage.form.jwtToken": "Hämta din
|
|
11
|
+
"containers.HomePage.form.jwtToken": "Hämta din JWT-token",
|
|
12
12
|
"containers.HomePage.form.jwtToken.description": "Kopiera denna token och använd den i swagger för att göra förfrågningar",
|
|
13
13
|
"containers.HomePage.form.password": "Lösenord",
|
|
14
14
|
"containers.HomePage.form.password.inputDescription": "Ställ in lösenordet som ska behövas för att komma åt dokumentationen",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"pages.SettingsPage.header.save": "Spara",
|
|
34
34
|
"pages.SettingsPage.toggle.hint": "Gör dokumentationensrutten privat",
|
|
35
35
|
"pages.SettingsPage.toggle.label": "Begränsad åtkomst",
|
|
36
|
-
"plugin.description.long": "Skapa ett OpenAPI-dokument och visualisera din API med
|
|
37
|
-
"plugin.description.short": "Skapa ett OpenAPI-dokument och visualisera din API med
|
|
36
|
+
"plugin.description.long": "Skapa ett OpenAPI-dokument och visualisera din API med Swagger UI.",
|
|
37
|
+
"plugin.description.short": "Skapa ett OpenAPI-dokument och visualisera din API med Swagger UI.",
|
|
38
38
|
"plugin.name": "Dokumentation"
|
|
39
39
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"components.Row.regenerate": "สร้างใหม่",
|
|
4
4
|
"containers.HomePage.Block.title": "เวอร์ชัน",
|
|
5
5
|
"containers.HomePage.Button.update": "อัพเดต",
|
|
6
|
-
"containers.HomePage.PluginHeader.title": "เอกสารคู่มือ
|
|
6
|
+
"containers.HomePage.PluginHeader.title": "เอกสารคู่มือ — การตั้งค่า",
|
|
7
7
|
"containers.HomePage.PopUpWarning.confirm": "ฉันเข้าใจ",
|
|
8
8
|
"containers.HomePage.PopUpWarning.message": "คุณแน่ใจว่าต้องการลบเวอร์ชันนี้หรือไม่?",
|
|
9
9
|
"containers.HomePage.copied": "โทเค็นคัดลอกไปยังคลิปบอร์ด",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"components.Row.regenerate": "Yeniden üret",
|
|
5
5
|
"containers.HomePage.Block.title": "Versiyonlar",
|
|
6
6
|
"containers.HomePage.Button.update": "Güncelle",
|
|
7
|
-
"containers.HomePage.PluginHeader.title": "Dokümantasyon
|
|
7
|
+
"containers.HomePage.PluginHeader.title": "Dokümantasyon — Ayarlar",
|
|
8
8
|
"containers.HomePage.PopUpWarning.confirm": "Anladım",
|
|
9
9
|
"containers.HomePage.PopUpWarning.message": "Bu versiyonu silmek istediğinden emin misin?",
|
|
10
10
|
"containers.HomePage.copied": "Token panoya kopyalandı",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"pages.SettingsPage.header.save": "Kaydet",
|
|
34
34
|
"pages.SettingsPage.toggle.hint": "Dokümantasyon uç noktasını gizli yap",
|
|
35
35
|
"pages.SettingsPage.toggle.label": "Kısıtlı Erişim",
|
|
36
|
-
"plugin.description.long": "Bir OpenAPI Dokümanı oluştur ve
|
|
37
|
-
"plugin.description.short": "Bir OpenAPI Dokümanı oluştur ve
|
|
36
|
+
"plugin.description.long": "Bir OpenAPI Dokümanı oluştur ve Swagger UI ile APIni görselleştir.",
|
|
37
|
+
"plugin.description.short": "Bir OpenAPI Dokümanı oluştur ve Swagger UI ile APIni görselleştir.",
|
|
38
38
|
"plugin.name": "Dokümantasyon"
|
|
39
39
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"components.Row.regenerate": "Згенерувати",
|
|
4
4
|
"containers.HomePage.Block.title": "Версії",
|
|
5
5
|
"containers.HomePage.Button.update": "Оновити",
|
|
6
|
-
"containers.HomePage.PluginHeader.title": "Документація
|
|
6
|
+
"containers.HomePage.PluginHeader.title": "Документація — Налаштування",
|
|
7
7
|
"containers.HomePage.PopUpWarning.confirm": "Я усвідомлюю",
|
|
8
8
|
"containers.HomePage.PopUpWarning.message": "Ви впевнені, що хочете видалити цю версію?",
|
|
9
9
|
"containers.HomePage.copied": "Токен скопійовано у буфер обміну",
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"components.Row.regenerate": "Sinh lại",
|
|
4
4
|
"containers.HomePage.Block.title": "Các Phiên Bản",
|
|
5
5
|
"containers.HomePage.Button.update": "Cập nhật",
|
|
6
|
-
"containers.HomePage.PluginHeader.title": "Tài liệu
|
|
6
|
+
"containers.HomePage.PluginHeader.title": "Tài liệu — Cài đặt",
|
|
7
7
|
"containers.HomePage.PopUpWarning.confirm": "Tôi hiểu",
|
|
8
8
|
"containers.HomePage.PopUpWarning.message": "Bạn có chắc là muốn xóa phiên bản này không?",
|
|
9
9
|
"containers.HomePage.copied": "Chuỗi khoá đã được sao chép vào bộ nhớ tạm",
|
|
10
|
-
"containers.HomePage.form.jwtToken": "Lấy lại chuỗi khóa
|
|
10
|
+
"containers.HomePage.form.jwtToken": "Lấy lại chuỗi khóa JWT của bạn",
|
|
11
11
|
"containers.HomePage.form.jwtToken.description": "Sao chép chuỗi khóa và sử dụng nó trong swagger để truy vấn",
|
|
12
12
|
"containers.HomePage.form.password": "Mật khẩu",
|
|
13
13
|
"containers.HomePage.form.password.inputDescription": "Cài đặt mật khẩu để truy cập tài liệu",
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"components.Row.regenerate": "重新生成",
|
|
4
4
|
"containers.HomePage.Block.title": "版本号",
|
|
5
5
|
"containers.HomePage.Button.update": "更新",
|
|
6
|
-
"containers.HomePage.PluginHeader.title": "文档
|
|
6
|
+
"containers.HomePage.PluginHeader.title": "文档 — 设置",
|
|
7
7
|
"containers.HomePage.PopUpWarning.confirm": "我确定",
|
|
8
8
|
"containers.HomePage.PopUpWarning.message": "您确定要删除此版本吗?",
|
|
9
9
|
"containers.HomePage.copied": "令牌已被复制到粘贴板",
|
|
10
|
-
"containers.HomePage.form.jwtToken": "检索您的
|
|
10
|
+
"containers.HomePage.form.jwtToken": "检索您的 JWT 令牌",
|
|
11
11
|
"containers.HomePage.form.jwtToken.description": "复制此令牌,并用它在 Swagger 中发出请求",
|
|
12
12
|
"containers.HomePage.form.password": "密码",
|
|
13
13
|
"containers.HomePage.form.password.inputDescription": "设置密码以供访问文档",
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { startsWith } from 'lodash';
|
|
2
|
-
|
|
3
1
|
const openWithNewTab = (path) => {
|
|
4
2
|
const url = (() => {
|
|
5
|
-
if (startsWith(
|
|
3
|
+
if (path.startsWith('/')) {
|
|
6
4
|
return `${strapi.backendURL}${path}`;
|
|
7
5
|
}
|
|
8
|
-
|
|
6
|
+
|
|
7
|
+
if (path.startsWith('http')) {
|
|
9
8
|
return path;
|
|
10
9
|
}
|
|
11
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-documentation",
|
|
3
|
-
"version": "4.9.0-
|
|
3
|
+
"version": "4.9.0-beta.2",
|
|
4
4
|
"description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,33 +24,44 @@
|
|
|
24
24
|
"test": "echo \"no tests yet\""
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@strapi/
|
|
28
|
-
"@strapi/
|
|
27
|
+
"@strapi/design-system": "1.6.6",
|
|
28
|
+
"@strapi/helper-plugin": "4.9.0-beta.2",
|
|
29
|
+
"@strapi/icons": "1.6.6",
|
|
30
|
+
"@strapi/utils": "4.9.0-beta.2",
|
|
29
31
|
"bcryptjs": "2.4.3",
|
|
30
32
|
"cheerio": "^1.0.0-rc.12",
|
|
33
|
+
"formik": "2.2.9",
|
|
31
34
|
"fs-extra": "10.0.0",
|
|
32
35
|
"koa-static": "^5.0.0",
|
|
33
36
|
"lodash": "4.17.21",
|
|
34
37
|
"path-to-regexp": "6.2.1",
|
|
35
38
|
"pluralize": "8.0.0",
|
|
36
|
-
"react": "^17.0.2",
|
|
37
39
|
"react-copy-to-clipboard": "^5.1.0",
|
|
38
|
-
"react-
|
|
40
|
+
"react-helmet": "^6.1.0",
|
|
39
41
|
"react-intl": "6.2.8",
|
|
42
|
+
"react-query": "3.24.3",
|
|
40
43
|
"react-redux": "8.0.5",
|
|
41
|
-
"react-router": "^5.2.0",
|
|
42
|
-
"react-router-dom": "5.3.4",
|
|
43
44
|
"redux": "^4.2.1",
|
|
44
|
-
"reselect": "^4.
|
|
45
|
+
"reselect": "^4.1.7",
|
|
45
46
|
"swagger-ui-dist": "4.15.5",
|
|
46
|
-
"yaml": "1.10.2"
|
|
47
|
+
"yaml": "1.10.2",
|
|
48
|
+
"yup": "^0.32.9"
|
|
47
49
|
},
|
|
48
50
|
"peerDependencies": {
|
|
49
|
-
"@strapi/strapi": "^4.0.0"
|
|
51
|
+
"@strapi/strapi": "^4.0.0",
|
|
52
|
+
"react": "^17.0.2",
|
|
53
|
+
"react-dom": "^17.0.2",
|
|
54
|
+
"react-router-dom": "5.3.4",
|
|
55
|
+
"styled-components": "5.3.3"
|
|
50
56
|
},
|
|
51
57
|
"devDependencies": {
|
|
52
58
|
"@testing-library/react": "12.1.4",
|
|
53
|
-
"
|
|
59
|
+
"history": "^4.9.0",
|
|
60
|
+
"msw": "1.0.1",
|
|
61
|
+
"react": "^17.0.2",
|
|
62
|
+
"react-dom": "^17.0.2",
|
|
63
|
+
"react-router-dom": "5.3.4",
|
|
64
|
+
"styled-components": "5.3.3"
|
|
54
65
|
},
|
|
55
66
|
"engines": {
|
|
56
67
|
"node": ">=14.19.1 <=18.x.x",
|
|
@@ -62,5 +73,5 @@
|
|
|
62
73
|
"description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
|
|
63
74
|
"kind": "plugin"
|
|
64
75
|
},
|
|
65
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "d893ead642592a15a95fefb71c544aaabe4db20b"
|
|
66
77
|
}
|