@strapi/plugin-documentation 4.2.0-alpha.9 → 4.2.0-beta.1
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/pages/PluginPage/index.js +1 -1
- package/admin/src/pages/SettingsPage/index.js +2 -2
- package/admin/src/translations/dk.json +0 -3
- package/admin/src/translations/en.json +0 -3
- package/admin/src/translations/es.json +0 -3
- package/admin/src/translations/ko.json +0 -3
- package/package.json +4 -4
- package/server/controllers/documentation.js +4 -4
|
@@ -92,7 +92,7 @@ const SettingsPage = () => {
|
|
|
92
92
|
<Stack spacing={4}>
|
|
93
93
|
<Typography variant="delta" as="h2">
|
|
94
94
|
{formatMessage({
|
|
95
|
-
id:
|
|
95
|
+
id: 'global.settings',
|
|
96
96
|
defaultMessage: 'Settings',
|
|
97
97
|
})}
|
|
98
98
|
</Typography>
|
|
@@ -125,7 +125,7 @@ const SettingsPage = () => {
|
|
|
125
125
|
<GridItem col={6} s={12}>
|
|
126
126
|
<TextInput
|
|
127
127
|
label={formatMessage({
|
|
128
|
-
id:
|
|
128
|
+
id: 'global.password',
|
|
129
129
|
defaultMessage: 'Password',
|
|
130
130
|
})}
|
|
131
131
|
name="password"
|
|
@@ -26,14 +26,11 @@
|
|
|
26
26
|
"pages.PluginPage.Button.open": "Åben dokumentation",
|
|
27
27
|
"pages.PluginPage.header.description": "Konfigurér dokumentations pluginnet",
|
|
28
28
|
"pages.PluginPage.table.generated": "Sidst genereret",
|
|
29
|
-
"pages.PluginPage.table.icon.delete": "Slet {target}",
|
|
30
29
|
"pages.PluginPage.table.icon.regenerate": "Regenerér {target}",
|
|
31
30
|
"pages.PluginPage.table.icon.show": "Åben {target}",
|
|
32
31
|
"pages.PluginPage.table.version": "Version",
|
|
33
32
|
"pages.SettingsPage.Button.description": "Konfigurér dokumentations pluginnet",
|
|
34
33
|
"pages.SettingsPage.header.save": "Gem",
|
|
35
|
-
"pages.SettingsPage.password.label": "Kodeord",
|
|
36
|
-
"pages.SettingsPage.title": "Indstillinger",
|
|
37
34
|
"pages.SettingsPage.toggle.hint": "Gør dokumentationens endpoint privat",
|
|
38
35
|
"pages.SettingsPage.toggle.label": "Begrænset adgang",
|
|
39
36
|
"plugin.description.long": "Opret et OpenAPI dokument og visualisér dit API med SWAGGER UI.",
|
|
@@ -26,14 +26,11 @@
|
|
|
26
26
|
"pages.PluginPage.Button.open": "Open documentation",
|
|
27
27
|
"pages.PluginPage.header.description": "Configure the documentation plugin",
|
|
28
28
|
"pages.PluginPage.table.generated": "Last generated",
|
|
29
|
-
"pages.PluginPage.table.icon.delete": "Delete {target}",
|
|
30
29
|
"pages.PluginPage.table.icon.regenerate": "Regenerate {target}",
|
|
31
30
|
"pages.PluginPage.table.icon.show": "Open {target}",
|
|
32
31
|
"pages.PluginPage.table.version": "Version",
|
|
33
32
|
"pages.SettingsPage.Button.description": "Configure the documentation plugin",
|
|
34
33
|
"pages.SettingsPage.header.save": "Save",
|
|
35
|
-
"pages.SettingsPage.password.label": "Password",
|
|
36
|
-
"pages.SettingsPage.title": "Settings",
|
|
37
34
|
"pages.SettingsPage.toggle.hint": "Make the documentation endpoint private",
|
|
38
35
|
"pages.SettingsPage.toggle.label": "Restricted Access",
|
|
39
36
|
"plugin.description.long": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
|
|
@@ -26,14 +26,11 @@
|
|
|
26
26
|
"pages.PluginPage.Button.open": "Abrir documentación",
|
|
27
27
|
"pages.PluginPage.header.description": "Configura el plugin de documentación",
|
|
28
28
|
"pages.PluginPage.table.generated": "Último generado",
|
|
29
|
-
"pages.PluginPage.table.icon.delete": "Eliminar {target}",
|
|
30
29
|
"pages.PluginPage.table.icon.regenerate": "Regenerar {target}",
|
|
31
30
|
"pages.PluginPage.table.icon.show": "Abrir {target}",
|
|
32
31
|
"pages.PluginPage.table.version": "Versión",
|
|
33
32
|
"pages.SettingsPage.Button.description": "Configura el plugin de documentación",
|
|
34
33
|
"pages.SettingsPage.header.save": "Guardar",
|
|
35
|
-
"pages.SettingsPage.password.label": "Contraseña",
|
|
36
|
-
"pages.SettingsPage.title": "Ajustes",
|
|
37
34
|
"pages.SettingsPage.toggle.hint": "Hacer que la documentación sea privada",
|
|
38
35
|
"pages.SettingsPage.toggle.label": "Acceso restringido",
|
|
39
36
|
"plugin.description.long": "Cree un documento OpenAPI y visualice su API con SWAGGER UI.",
|
|
@@ -26,14 +26,11 @@
|
|
|
26
26
|
"pages.PluginPage.Button.open": "도큐멘테이션 열기",
|
|
27
27
|
"pages.PluginPage.header.description": "도큐멘테이션 플러그인 설정",
|
|
28
28
|
"pages.PluginPage.table.generated": "최종 생성일",
|
|
29
|
-
"pages.PluginPage.table.icon.delete": "{target} 삭제",
|
|
30
29
|
"pages.PluginPage.table.icon.regenerate": "{target} 재생성",
|
|
31
30
|
"pages.PluginPage.table.icon.show": "{target} 열기",
|
|
32
31
|
"pages.PluginPage.table.version": "버전",
|
|
33
32
|
"pages.SettingsPage.Button.description": "도큐멘테이션 플러그인 설정",
|
|
34
33
|
"pages.SettingsPage.header.save": "저장",
|
|
35
|
-
"pages.SettingsPage.password.label": "비밀번호",
|
|
36
|
-
"pages.SettingsPage.title": "설정",
|
|
37
34
|
"pages.SettingsPage.toggle.hint": "도큐멘테이션 엔드포인트를 비공개로 설정합니다.",
|
|
38
35
|
"pages.SettingsPage.toggle.label": "액세스 제한",
|
|
39
36
|
"plugin.description.long": "SWAGER UI를 사용하여 오픈 API 문서를 만들고 API를 시각화합니다.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-documentation",
|
|
3
|
-
"version": "4.2.0-
|
|
3
|
+
"version": "4.2.0-beta.1",
|
|
4
4
|
"description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"test": "echo \"no tests yet\""
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@strapi/helper-plugin": "4.2.0-
|
|
28
|
-
"@strapi/utils": "4.2.0-
|
|
27
|
+
"@strapi/helper-plugin": "4.2.0-beta.1",
|
|
28
|
+
"@strapi/utils": "4.2.0-beta.1",
|
|
29
29
|
"bcryptjs": "2.4.3",
|
|
30
30
|
"cheerio": "^1.0.0-rc.5",
|
|
31
31
|
"fs-extra": "10.0.0",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
|
|
58
58
|
"kind": "plugin"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "4fa2804f35e15ed72dfd309fb5bb1c4dba18932f"
|
|
61
61
|
}
|
|
@@ -49,7 +49,7 @@ module.exports = {
|
|
|
49
49
|
.getDocumentationVersion();
|
|
50
50
|
|
|
51
51
|
const openAPISpecsPath = path.join(
|
|
52
|
-
strapi.dirs.
|
|
52
|
+
strapi.dirs.app.extensions,
|
|
53
53
|
'documentation',
|
|
54
54
|
'documentation',
|
|
55
55
|
version,
|
|
@@ -82,7 +82,7 @@ module.exports = {
|
|
|
82
82
|
|
|
83
83
|
try {
|
|
84
84
|
const staticFolder = path.resolve(
|
|
85
|
-
strapi.dirs.
|
|
85
|
+
strapi.dirs.app.extensions,
|
|
86
86
|
'documentation',
|
|
87
87
|
'public'
|
|
88
88
|
);
|
|
@@ -120,7 +120,7 @@ module.exports = {
|
|
|
120
120
|
|
|
121
121
|
try {
|
|
122
122
|
const layoutPath = path.resolve(
|
|
123
|
-
strapi.dirs.
|
|
123
|
+
strapi.dirs.app.extensions,
|
|
124
124
|
'documentation',
|
|
125
125
|
'public',
|
|
126
126
|
'login.html'
|
|
@@ -131,7 +131,7 @@ module.exports = {
|
|
|
131
131
|
ctx.url = path.basename(`${ctx.url}/login.html`);
|
|
132
132
|
|
|
133
133
|
try {
|
|
134
|
-
const staticFolder = path.resolve(strapi.dirs.
|
|
134
|
+
const staticFolder = path.resolve(strapi.dirs.app.extensions, 'documentation', 'public');
|
|
135
135
|
return koaStatic(staticFolder)(ctx, next);
|
|
136
136
|
} catch (e) {
|
|
137
137
|
strapi.log.error(e);
|