Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: remove demo banner

Steven7c5fdd1b06cf
diff --git a/store/db/sqlite/seed/10002__memo.sql b/store/db/sqlite/seed/10002__memo.sql
index 7a7c3022a..0cab75e44 100644
--- a/store/db/sqlite/seed/10002__memo.sql
+++ b/store/db/sqlite/seed/10002__memo.sql
@@ -36,7 +36,8 @@ INSERT INTO
VALUES
(
3,
- "**[yourselfhosted/slash](https://github.com/yourselfhosted/slash)**: An open source, self-hosted bookmarks and link sharing platform. Save and share your links very easily.",
+ '**[Memos](https://github.com/usememos/memos)**: A lightweight, self-hosted memo hub. Open Source and Free forever.
+**[Slash](https://github.com/yourselfhosted/slash)**: An open source, self-hosted bookmarks and link sharing platform. Save and share your links very easily.',
101,
'PUBLIC'
);
diff --git a/web/src/components/DemoBanner.tsx b/web/src/components/DemoBanner.tsx
deleted file mode 100644
index 18ffaa2e3..000000000
--- a/web/src/components/DemoBanner.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import { useEffect, useState } from "react";
-import { useGlobalStore } from "@/store/module";
-import Icon from "./Icon";
-
-interface State {
- show: boolean;
-}
-
-const DemoBanner: React.FC = () => {
- const globalStore = useGlobalStore();
- const profile = globalStore.state.systemStatus.profile;
- const [state, setState] = useState<State>({
- show: false,
- });
-
- useEffect(() => {
- const isDemo = profile.mode === "demo";
- setState({
- show: isDemo,
- });
- }, []);
-
- if (!state.show) return null;
-
- return (
- <div className="mt-4 flex flex-row items-center justify-center w-full rounded-lg 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-6xl px-4 flex flex-row justify-between items-center gap-x-3">
- <span>✨ A lightweight, self-hosted memo hub. Open Source and Free forever. ✨</span>
- <a className="btn-primary shadow" href="https://usememos.com/docs/install/self-hosting" target="_blank">
- Install
- <Icon.ExternalLink className="w-4 h-auto ml-1" />
- </a>
- </div>
- </div>
- );
-};
-
-export default DemoBanner;
diff --git a/web/src/layouts/Root.tsx b/web/src/layouts/Root.tsx
index 893483c9c..ab0a1422b 100644
--- a/web/src/layouts/Root.tsx
+++ b/web/src/layouts/Root.tsx
@@ -1,5 +1,4 @@
import { Outlet } from "react-router-dom";
-import DemoBanner from "@/components/DemoBanner";
import Navigation from "@/components/Navigation";
import useResponsiveWidth from "@/hooks/useResponsiveWidth";
@@ -15,9 +14,6 @@ function Root() {
</div>
)}
<main className="w-full sm:px-4 h-auto flex-grow shrink flex flex-col justify-start items-center">
- <div className="w-full px-4 sm:px-2 h-auto flex flex-col justify-start items-center">
- <DemoBanner />
- </div>
<Outlet />
</main>
</div>