Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
2e4b7b31
Commit
2e4b7b31
authored
Mar 06, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
040cc29b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
api-docs.tsx
pages/api-docs.tsx
+2
-2
graphiql.tsx
pages/graphiql.tsx
+4
-4
SwaggerUI.tsx
ui/apiDocs/SwaggerUI.tsx
+3
-2
No files found.
pages/api-docs.tsx
View file @
2e4b7b31
...
@@ -10,7 +10,7 @@ import SwaggerUI from 'ui/apiDocs/SwaggerUI';
...
@@ -10,7 +10,7 @@ import SwaggerUI from 'ui/apiDocs/SwaggerUI';
import
Page
from
'
ui/shared/Page/Page
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
const
A
pp
sPage
:
NextPage
=
()
=>
{
const
A
PIDoc
sPage
:
NextPage
=
()
=>
{
const
networkTitle
=
getNetworkTitle
();
const
networkTitle
=
getNetworkTitle
();
return
(
return
(
...
@@ -22,7 +22,7 @@ const AppsPage: NextPage = () => {
...
@@ -22,7 +22,7 @@ const AppsPage: NextPage = () => {
);
);
};
};
export
default
A
pp
sPage
;
export
default
A
PIDoc
sPage
;
export
const
getServerSideProps
:
GetServerSideProps
<
Props
>
=
async
(
args
)
=>
{
export
const
getServerSideProps
:
GetServerSideProps
<
Props
>
=
async
(
args
)
=>
{
if
(
!
appConfig
.
apiDoc
.
specUrl
)
{
if
(
!
appConfig
.
apiDoc
.
specUrl
)
{
...
...
pages/graphiql.tsx
View file @
2e4b7b31
import
{
Spinner
}
from
'
@chakra-ui/react
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
dynamic
from
'
next/dynamic
'
;
import
dynamic
from
'
next/dynamic
'
;
const
GraphQL
=
dynamic
(()
=>
import
(
'
ui/graphQL/GraphQL
'
),
{
const
GraphQL
=
dynamic
(()
=>
import
(
'
ui/graphQL/GraphQL
'
),
{
loading
:
()
=>
<
Spinn
er
/>,
loading
:
()
=>
<
ContentLoad
er
/>,
ssr
:
false
,
ssr
:
false
,
});
});
import
Head
from
'
next/head
'
;
import
Head
from
'
next/head
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
const
Apps
Page
:
NextPage
=
()
=>
{
const
Graphiql
Page
:
NextPage
=
()
=>
{
return
(
return
(
<
Page
>
<
Page
>
...
@@ -22,6 +22,6 @@ const AppsPage: NextPage = () => {
...
@@ -22,6 +22,6 @@ const AppsPage: NextPage = () => {
);
);
};
};
export
default
Apps
Page
;
export
default
Graphiql
Page
;
export
{
getServerSideProps
}
from
'
lib/next/getServerSideProps
'
;
export
{
getServerSideProps
}
from
'
lib/next/getServerSideProps
'
;
ui/apiDocs/SwaggerUI.tsx
View file @
2e4b7b31
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/naming-convention */
const
SwaggerUIReact
=
dynamic
(()
=>
import
(
'
swagger-ui-react
'
),
{
const
SwaggerUIReact
=
dynamic
(()
=>
import
(
'
swagger-ui-react
'
),
{
loading
:
()
=>
<
Spinn
er
/>,
loading
:
()
=>
<
ContentLoad
er
/>,
ssr
:
false
,
ssr
:
false
,
});
});
import
{
Box
,
Spinner
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
dynamic
from
'
next/dynamic
'
;
import
dynamic
from
'
next/dynamic
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
appConfig
from
'
configs/app/config
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
'
swagger-ui-react/swagger-ui.css
'
;
import
'
swagger-ui-react/swagger-ui.css
'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment