chore: remove seed data

This commit is contained in:
Johnny
2025-06-09 23:06:32 +08:00
parent ba33336dc4
commit d413729038
9 changed files with 6 additions and 226 deletions
-2
View File
@@ -1,7 +1,6 @@
import { useColorScheme } from "@mui/joy";
import { useEffect } from "react";
import { Outlet } from "react-router-dom";
import DemoBanner from "@/components/DemoBanner";
import { useWorkspaceStore } from "@/stores";
import useNavigateTo from "./hooks/useNavigateTo";
import { FeatureType } from "./stores/workspace";
@@ -72,7 +71,6 @@ function App() {
return (
<>
<DemoBanner />
<Outlet />
</>
);
@@ -1,27 +0,0 @@
import { useWorkspaceStore } from "@/stores";
import Icon from "./Icon";
const DemoBanner: React.FC = () => {
const workspaceStore = useWorkspaceStore();
const shouldShow = workspaceStore.profile.mode === "demo";
if (!shouldShow) return null;
return (
<div className="z-10 relative flex flex-row items-center justify-center w-full py-2 text-sm sm:text-lg font-medium dark:text-gray-300 bg-white dark:bg-zinc-700 shadow">
<div className="w-full max-w-8xl px-4 md:px-12 flex flex-row justify-between items-center gap-x-3">
<span>✨🔗 Slash - An open source, self-hosted platform for sharing and managing your most frequently used links.</span>
<a
className="shadow flex flex-row justify-center items-center px-2 py-1 rounded-md text-sm sm:text-base text-white bg-blue-600 hover:bg-blue-700"
href="https://github.com/yourselfhosted/slash#deploy-with-docker-in-seconds"
target="_blank"
>
Install
<Icon.ExternalLink className="w-4 h-auto ml-1" />
</a>
</div>
</div>
);
};
export default DemoBanner;