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.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: update demo user
boojack3fdc5bb2b166
diff --git a/store/seed/10001__user.sql b/store/seed/10001__user.sqlindex efd536753..5557dad19 100644--- a/store/seed/10001__user.sql+++ b/store/seed/10001__user.sql@@ -10,10 +10,10 @@ INSERT INTOVALUES(101,- '[email protected]',+ '[email protected]','OWNER',- 'Steven',- 'steven_open_id',+ 'Demo Owner',+ 'demo_open_id',-- raw password: secret'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK');diff --git a/web/src/components/AboutSiteDialog.tsx b/web/src/components/AboutSiteDialog.tsxindex 30a14e082..934349df2 100644--- a/web/src/components/AboutSiteDialog.tsx+++ b/web/src/components/AboutSiteDialog.tsx@@ -38,7 +38,7 @@ const AboutSiteDialog: React.FC<Props> = ({ destroy }: Props) => {</div><div className="dialog-content-container"><p>- Memos is an <i>open source</i>, <i>self-hosted</i> knowledge base that works with local SQLite.+ Memos is an <i>open source</i>, <i>self-hosted</i> knowledge base that works with a SQLite db file.</p><br /><p>diff --git a/web/src/less/about-site-dialog.less b/web/src/less/about-site-dialog.lessindex 6f65faddb..92c1522c8 100644--- a/web/src/less/about-site-dialog.less+++ b/web/src/less/about-site-dialog.less@@ -2,7 +2,7 @@.about-site-dialog {> .dialog-container {- @apply w-96;+ @apply w-112;> .dialog-content-container {@apply leading-relaxed;diff --git a/web/src/less/signin.less b/web/src/less/signin.lessindex 08ab0dc99..926ade623 100644--- a/web/src/less/signin.less+++ b/web/src/less/signin.less@@ -19,7 +19,7 @@}> .slogan-text {- @apply mt-2 text-sm text-gray-600;+ @apply mt-2 text-sm text-gray-700;}}@@ -43,14 +43,14 @@@apply py-2;> input {- @apply w-full py-3 px-3 text-base shadow-inner rounded-lg border border-solid border-gray-400;- }-- &:hover {- @apply opacity-80;+ @apply w-full py-3 px-3 text-base shadow-inner rounded-lg border border-solid border-gray-400 hover:opacity-80;}}}++ &.requesting {+ @apply opacity-80;+ }}> .action-btns-container {@@ -71,7 +71,7 @@}> .tip-text {- @apply w-full text-sm mt-4 text-gray-500 text-right;+ @apply w-full text-sm mt-4 text-gray-500 text-right whitespace-pre-wrap;}}}diff --git a/web/src/pages/Signin.tsx b/web/src/pages/Signin.tsxindex 8123c89aa..f15bf21db 100644--- a/web/src/pages/Signin.tsx+++ b/web/src/pages/Signin.tsx@@ -26,7 +26,7 @@ const Signin: React.FC<Props> = () => {api.getSystemStatus().then((status) => {setSiteOwner(status.owner);if (status.profile.mode === "dev") {- setEmail("[email protected]");+ setEmail("[email protected]");setPassword("secret");}pageLoadingState.setFinish();@@ -110,28 +110,28 @@ const Signin: React.FC<Props> = () => {};return (- <div className={`page-wrapper signin ${pageLoadingState.isLoading ? "hidden" : ""}`}>+ <div className="page-wrapper signin"><div className="page-container"><div className="page-header-container"><p className="title-text"><span className="icon-text">✍️</span> Memos</p><p className="slogan-text">- An <i>open source</i>, <i>self-hosted</i> knowledge base that works with local SQLite.+ An <i>open source</i>, <i>self-hosted</i> knowledge base that works with a SQLite db file.</p></div>- <div className="page-content-container">+ <div className={`page-content-container ${actionBtnLoadingState.isLoading ? "requesting" : ""}`}><div className="form-item-container input-form-container">- <span className={"normal-text " + (email === "" ? "" : "not-null")}>Email</span>+ <span className={`normal-tex ${email ? "not-null" : ""}`}>Email</span><input type="email" value={email} onChange={handleEmailInputChanged} /></div><div className="form-item-container input-form-container">- <span className={"normal-text " + (password === "" ? "" : "not-null")}>Password</span>+ <span className={`normal-text ${password ? "not-null" : ""}`}>Password</span><input type="password" value={password} onChange={handlePasswordInputChanged} /></div></div><div className="action-btns-container">- {siteOwner ? (+ {siteOwner || pageLoadingState.isLoading ? (<buttonclassName={`btn signin-btn ${actionBtnLoadingState.isLoading ? "requesting" : ""}`}onClick={() => handleSigninBtnsClick()}@@ -148,8 +148,8 @@ const Signin: React.FC<Props> = () => {)}</div><p className="tip-text">- {siteOwner- ? "If you don't have an account, please contact the site owner or login as guest."+ {siteOwner || pageLoadingState.isLoading+ ? "If you don't have an account, please\ncontact the site owner.": "You are registering as the site owner."}</p></div>diff --git a/web/tailwind.config.js b/web/tailwind.config.jsindex 5279c3582..abec876a3 100644--- a/web/tailwind.config.js+++ b/web/tailwind.config.js@@ -14,6 +14,7 @@ module.exports = {},extend: {spacing: {+ 112: "28rem",128: "32rem",168: "42rem",176: "44rem",