mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-03-04 02:20:19 +01:00
# Description of Changes Move frontend code into `core` folder and add infrastructure for `proprietary` folder to include premium, non-OSS features
25 lines
701 B
TypeScript
25 lines
701 B
TypeScript
import React, { useEffect } from "react";
|
|
import { BaseToolProps } from "@app/types/tool";
|
|
import { withBasePath } from "@app/constants/app";
|
|
|
|
const SwaggerUI: React.FC<BaseToolProps> = () => {
|
|
useEffect(() => {
|
|
// Redirect to Swagger UI
|
|
window.open(withBasePath("/swagger-ui/5.21.0/index.html"), "_blank");
|
|
}, []);
|
|
|
|
return (
|
|
<div style={{ textAlign: "center", padding: "2rem" }}>
|
|
<p>Opening Swagger UI in a new tab...</p>
|
|
<p>
|
|
If it didn't open automatically,{" "}
|
|
<a href={withBasePath("/swagger-ui/5.21.0/index.html")} target="_blank" rel="noopener noreferrer">
|
|
click here
|
|
</a>
|
|
</p>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default SwaggerUI;
|