@strapi/plugin-documentation 4.0.0-next.14 → 4.0.0-next.18
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.
|
@@ -6,11 +6,39 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import {
|
|
9
|
+
import { useIntl } from 'react-intl';
|
|
10
|
+
import { CheckPagePermissions, NoContent } from '@strapi/helper-plugin';
|
|
11
|
+
import { Layout, HeaderLayout, ContentLayout } from '@strapi/parts/Layout';
|
|
12
|
+
import { Main } from '@strapi/parts/Main';
|
|
10
13
|
import pluginPermissions from '../../permissions';
|
|
14
|
+
import { getTrad } from '../../utils';
|
|
11
15
|
// import HomePage from '../HomePage';
|
|
12
16
|
|
|
13
|
-
const ComingSoon = () =>
|
|
17
|
+
const ComingSoon = () => {
|
|
18
|
+
const { formatMessage } = useIntl();
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<Layout>
|
|
22
|
+
<Main>
|
|
23
|
+
<HeaderLayout
|
|
24
|
+
title={formatMessage({
|
|
25
|
+
id: getTrad('plugin.name'),
|
|
26
|
+
defaultMessage: 'Documentation',
|
|
27
|
+
})}
|
|
28
|
+
/>
|
|
29
|
+
<ContentLayout>
|
|
30
|
+
<NoContent
|
|
31
|
+
content={{
|
|
32
|
+
id: getTrad('coming.soon'),
|
|
33
|
+
defaultMessage:
|
|
34
|
+
'This content is currently under construction and will be back in a few weeks!',
|
|
35
|
+
}}
|
|
36
|
+
/>
|
|
37
|
+
</ContentLayout>
|
|
38
|
+
</Main>
|
|
39
|
+
</Layout>
|
|
40
|
+
);
|
|
41
|
+
};
|
|
14
42
|
|
|
15
43
|
function App() {
|
|
16
44
|
return (
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"error.noVersion": "需要一个版本",
|
|
23
23
|
"error.regenerateDoc": "重新生成文件时发生错误",
|
|
24
24
|
"error.regenerateDoc.versionMissing": "您尝试重新生成的版本不存在",
|
|
25
|
-
"notification.update.success": "设置更新成功",
|
|
26
25
|
"notification.delete.success": "文档删除成功",
|
|
27
26
|
"notification.generate.success": "文档生成成功",
|
|
28
|
-
"
|
|
27
|
+
"notification.update.success": "设置更新成功",
|
|
29
28
|
"plugin.description.long": "创建OpenAPI文档并使用SwaggerUI可视化你的API",
|
|
30
|
-
"plugin.description.short": "创建OpenAPI文档并使用SwaggerUI可视化你的API"
|
|
29
|
+
"plugin.description.short": "创建OpenAPI文档并使用SwaggerUI可视化你的API",
|
|
30
|
+
"plugin.name": "文档"
|
|
31
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-documentation",
|
|
3
|
-
"version": "4.0.0-next.
|
|
3
|
+
"version": "4.0.0-next.18",
|
|
4
4
|
"description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
|
|
5
5
|
"strapi": {
|
|
6
6
|
"displayName": "Documentation",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"test": "echo \"no tests yet\""
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@strapi/helper-plugin": "4.0.0-next.
|
|
16
|
+
"@strapi/helper-plugin": "4.0.0-next.18",
|
|
17
17
|
"cheerio": "^1.0.0-rc.5",
|
|
18
18
|
"fs-extra": "^9.1.0",
|
|
19
19
|
"koa-static": "^5.0.0",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"npm": ">=6.0.0"
|
|
71
71
|
},
|
|
72
72
|
"license": "SEE LICENSE IN LICENSE",
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "3276216796b9b4918a3ad4ab633d41f1fa241256"
|
|
74
74
|
}
|