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: tweak auth pages
Steven05c6edfe2f44
diff --git a/web/src/components/Settings/AccessTokenSection.tsx b/web/src/components/Settings/AccessTokenSection.tsxindex 1ae31441f..dff68b925 100644--- a/web/src/components/Settings/AccessTokenSection.tsx+++ b/web/src/components/Settings/AccessTokenSection.tsx@@ -13,7 +13,7 @@ import LearnMore from "../LearnMore";const listAccessTokens = async (name: string) => {const { accessTokens } = await userServiceClient.listUserAccessTokens({ name });- return accessTokens;+ return accessTokens.sort((a, b) => (b.issuedAt?.getTime() ?? 0) - (a.issuedAt?.getTime() ?? 0));};const AccessTokenSection = () => {diff --git a/web/src/pages/SignIn.tsx b/web/src/pages/SignIn.tsxindex 4155dae74..83c20f75f 100644--- a/web/src/pages/SignIn.tsx+++ b/web/src/pages/SignIn.tsx@@ -118,7 +118,7 @@ const SignIn = () => {</div><form className="w-full mt-2" onSubmit={handleFormSubmit}><div className="flex flex-col justify-start items-start w-full gap-4">- <div className="w-full flex flex-col justify-start items-start gap-2">+ <div className="w-full flex flex-col justify-start items-start"><span className="leading-8 text-gray-600">{t("common.username")}</span><InputclassName="w-full"@@ -131,7 +131,7 @@ const SignIn = () => {required/></div>- <div className="w-full flex flex-col justify-start items-start gap-2">+ <div className="w-full flex flex-col justify-start items-start"><span className="leading-8 text-gray-600">{t("common.password")}</span><InputclassName="w-full"diff --git a/web/src/pages/SignUp.tsx b/web/src/pages/SignUp.tsxindex efa89bd73..2bdf75bd8 100644--- a/web/src/pages/SignUp.tsx+++ b/web/src/pages/SignUp.tsx@@ -88,7 +88,7 @@ const SignUp = () => {<p className="w-full text-2xl mt-2 dark:text-gray-500">{t("auth.create-your-account")}</p><form className="w-full mt-2" onSubmit={handleFormSubmit}><div className="flex flex-col justify-start items-start w-full gap-4">- <div className="w-full flex flex-col justify-start items-start gap-2">+ <div className="w-full flex flex-col justify-start items-start"><span className="leading-8 text-gray-600">{t("common.username")}</span><InputclassName="w-full"@@ -101,7 +101,7 @@ const SignUp = () => {required/></div>- <div className="w-full flex flex-col justify-start items-start gap-2">+ <div className="w-full flex flex-col justify-start items-start"><span className="leading-8 text-gray-600">{t("common.password")}</span><InputclassName="w-full"@@ -128,13 +128,16 @@ const SignUp = () => {</Button></div></form>- {!commonContext.profile.owner && <p className="w-full mt-4 text-sm font-medium dark:text-gray-500">{t("auth.host-tip")}</p>}- <p className="w-full mt-4 text-sm">- <span className="dark:text-gray-500">{t("auth.sign-in-tip")}</span>- <Link to="/auth" className="cursor-pointer ml-2 text-blue-600 hover:underline" unstable_viewTransition>- {t("common.sign-in")}- </Link>- </p>+ {!commonContext.profile.owner ? (+ <p className="w-full mt-4 text-sm font-medium dark:text-gray-500">{t("auth.host-tip")}</p>+ ) : (+ <p className="w-full mt-4 text-sm">+ <span className="dark:text-gray-500">{t("auth.sign-in-tip")}</span>+ <Link to="/auth" className="cursor-pointer ml-2 text-blue-600 hover:underline" unstable_viewTransition>+ {t("common.sign-in")}+ </Link>+ </p>+ )}</div><div className="mt-4 flex flex-row items-center justify-center w-full gap-2"><LocaleSelect value={commonContext.locale} onChange={handleLocaleSelectChange} />