mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: fix styles
This commit is contained in:
@@ -11,12 +11,12 @@ const SwaggerUI = dynamic(() => import("swagger-ui-react"), { ssr: false });
|
|||||||
|
|
||||||
const Home: NextPage = () => {
|
const Home: NextPage = () => {
|
||||||
const { data } = api.settings.getOpenApiDocument.useQuery();
|
const { data } = api.settings.getOpenApiDocument.useQuery();
|
||||||
console.log(data);
|
|
||||||
|
|
||||||
if (!data) {
|
return (
|
||||||
return <div>Loading...</div>;
|
<div className="h-screen bg-white">
|
||||||
}
|
<SwaggerUI spec={data || {}} />
|
||||||
return <SwaggerUI spec={data} />;
|
</div>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Home;
|
export default Home;
|
||||||
@@ -31,7 +31,6 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// Fetch data from external API
|
|
||||||
const helpers = createServerSideHelpers({
|
const helpers = createServerSideHelpers({
|
||||||
router: appRouter,
|
router: appRouter,
|
||||||
ctx: {
|
ctx: {
|
||||||
|
|||||||
@@ -163,4 +163,9 @@
|
|||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.swagger-ui .info{
|
||||||
|
margin: 0px !important;
|
||||||
|
padding-top: 1rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user