This commit is contained in:
VividTruthKeeper 2022-09-10 15:57:12 +05:00
parent 8a419b0155
commit f7364d061f
8 changed files with 71 additions and 88 deletions

View File

@ -1,5 +0,0 @@
<IfModule mod_rewrite.c>
RewriteEngine On RewriteBase /subdirectory RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l RewriteRule . /index.html [L]
</IfModule>

4
dist/.htaccess vendored Normal file
View File

@ -0,0 +1,4 @@
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]

59
dist/assets/index.1d9410cd.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/index.html vendored
View File

@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Admin Panel</title>
<script type="module" crossorigin src="/assets/index.7f10febb.js"></script>
<script type="module" crossorigin src="/assets/index.1d9410cd.js"></script>
<link rel="stylesheet" href="/assets/index.eb599783.css">
</head>
<body>

4
public/.htaccess Normal file
View File

@ -0,0 +1,4 @@
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]

View File

@ -1,12 +1,12 @@
import React from "react";
import { HashRouter } from "react-router-dom";
import { BrowserRouter } from "react-router-dom";
import ReactDOM from "react-dom/client";
import App from "./App";
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
<HashRouter>
<BrowserRouter>
<App />
</HashRouter>
</BrowserRouter>
</React.StrictMode>
);

View File

@ -86,26 +86,6 @@ const Post = () => {
value={postData.id !== -1 ? postData.summary : ""}
></textarea>
</div>
<div className="post__content__block">
<h4>Created</h4>
<input
type={"text"}
readOnly
value={
postData.id !== -1 ? parseDate(postData.createdAt)[0] : ""
}
/>
</div>
<div className="post__content__block">
<h4>Updated</h4>
<input
type={"text"}
readOnly
value={
postData.id !== -1 ? parseDate(postData.updatedAt)[0] : ""
}
/>
</div>
<a
className="post__content__btn"
href={postData.id !== -1 ? postData.link : ""}