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 checkbox source
Stevenf373d8e88c60
diff --git a/web/package.json b/web/package.jsonindex 758c8e70c..e36918e87 100644--- a/web/package.json+++ b/web/package.json@@ -19,7 +19,7 @@"@mui/joy": "5.0.0-beta.48","@radix-ui/react-popover": "^1.1.2","@reduxjs/toolkit": "^2.3.0",- "@usememos/mui": "0.0.1-alpha.10",+ "@usememos/mui": "0.0.1-alpha.14","class-variance-authority": "^0.7.0","clsx": "^2.1.1","copy-to-clipboard": "^3.3.3",diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yamlindex 79be49d0a..8304698d5 100644--- a/web/pnpm-lock.yaml+++ b/web/pnpm-lock.yaml@@ -39,8 +39,8 @@ importers:specifier: ^2.3.0version: 2.3.0([email protected](@types/[email protected])([email protected])([email protected]))([email protected])'@usememos/mui':- specifier: 0.0.1-alpha.10- version: 0.0.1-alpha.10([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])+ specifier: 0.0.1-alpha.14+ version: 0.0.1-alpha.14([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])class-variance-authority:specifier: ^0.7.0version: 0.7.0@@ -1409,8 +1409,8 @@ packages:'@ungap/[email protected]':resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}- '@usememos/[email protected]':- resolution: {integrity: sha512-jyEQ4sgmYCxOWEyuUat7MqQN7Gy4PohQxnLvIje0upqu2zT2AaI0GhOPs/t2HkYK09tFXLAVnhp2I+6jBBhfIg==}+ '@usememos/[email protected]':+ resolution: {integrity: sha512-KzLIWkTPVisukxfa6j9LtCmlJpO3QxOe9JFwUDV6AkIqw4QKkVK6Rl+DZu8N9uKSoAiNbg6gbu9vj+Ox3crmug==}peerDependencies:lucide-react: ^0.453.0postcss: ^8.4.47@@ -4642,7 +4642,7 @@ snapshots:'@ungap/[email protected]': {}- '@usememos/[email protected]([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])':+ '@usememos/[email protected]([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])':dependencies:lucide-react: 0.453.0([email protected])postcss: 8.4.47diff --git a/web/src/components/MemoContent/TaskListItem.tsx b/web/src/components/MemoContent/TaskListItem.tsxindex 6fbc62553..67e185902 100644--- a/web/src/components/MemoContent/TaskListItem.tsx+++ b/web/src/components/MemoContent/TaskListItem.tsx@@ -1,4 +1,4 @@-import { Checkbox } from "@mui/joy";+import { Checkbox } from "@usememos/mui";import clsx from "clsx";import { useContext, useState } from "react";import { markdownServiceClient } from "@/grpcweb";diff --git a/web/src/components/MemoEditor/ActionButton/AddMemoRelationPopover.tsx b/web/src/components/MemoEditor/ActionButton/AddMemoRelationPopover.tsxindex 076fa1905..9ce40d5a1 100644--- a/web/src/components/MemoEditor/ActionButton/AddMemoRelationPopover.tsx+++ b/web/src/components/MemoEditor/ActionButton/AddMemoRelationPopover.tsx@@ -1,5 +1,5 @@-import { Autocomplete, AutocompleteOption, Checkbox, Chip } from "@mui/joy";-import { Button } from "@usememos/mui";+import { Autocomplete, AutocompleteOption, Chip } from "@mui/joy";+import { Button, Checkbox } from "@usememos/mui";import { uniqBy } from "lodash-es";import { LinkIcon } from "lucide-react";import React, { useContext, useState } from "react";@@ -130,7 +130,7 @@ const AddMemoRelationPopover = (props: Props) => {return (<Popover open={popoverOpen} onOpenChange={setPopoverOpen}><PopoverTrigger>- <Button className="px-2" variant="plain">+ <Button size="sm" variant="plain"><LinkIcon className="w-5 h-5 mx-auto" /></Button></PopoverTrigger>diff --git a/web/src/components/MemoEditor/ActionButton/LocationSelector.tsx b/web/src/components/MemoEditor/ActionButton/LocationSelector.tsxindex 8647aa7a1..2e91a400a 100644--- a/web/src/components/MemoEditor/ActionButton/LocationSelector.tsx+++ b/web/src/components/MemoEditor/ActionButton/LocationSelector.tsx@@ -95,7 +95,7 @@ const LocationSelector = (props: Props) => {return (<Popover open={popoverOpen} onOpenChange={setPopoverOpen}><PopoverTrigger>- <Button className="group px-2" variant="plain">+ <Button className="group" size="sm" variant="plain"><MapPinIcon className="w-5 h-5 mx-auto shrink-0" />{props.location && (<>diff --git a/web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsx b/web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsxindex a63fccc9d..8351d9129 100644--- a/web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsx+++ b/web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsx@@ -65,7 +65,6 @@ const MarkdownMenu = (props: Props) => {root: {size: "sm",variant: "plain",- className: "px-2",},}}>diff --git a/web/src/components/MemoEditor/ActionButton/TagSelector.tsx b/web/src/components/MemoEditor/ActionButton/TagSelector.tsxindex 83fd20033..0b17adbbd 100644--- a/web/src/components/MemoEditor/ActionButton/TagSelector.tsx+++ b/web/src/components/MemoEditor/ActionButton/TagSelector.tsx@@ -47,7 +47,6 @@ const TagSelector = (props: Props) => {root: {size: "sm",variant: "plain",- className: "px-2",},}}>diff --git a/web/src/components/MemoEditor/ActionButton/UploadResourceButton.tsx b/web/src/components/MemoEditor/ActionButton/UploadResourceButton.tsxindex e0513643d..b5506febe 100644--- a/web/src/components/MemoEditor/ActionButton/UploadResourceButton.tsx+++ b/web/src/components/MemoEditor/ActionButton/UploadResourceButton.tsx@@ -66,7 +66,7 @@ const UploadResourceButton = () => {};return (- <Button className="px-2 relative" size="sm" variant="plain" disabled={state.uploadingFlag}>+ <Button className="relative" size="sm" variant="plain" disabled={state.uploadingFlag}><PaperclipIcon className="w-5 h-5 mx-auto" /><inputclassName="absolute inset-0 w-full h-full opacity-0 cursor-pointer"diff --git a/web/src/components/MemoEditor/index.tsx b/web/src/components/MemoEditor/index.tsxindex 1d497d7be..6a255286d 100644--- a/web/src/components/MemoEditor/index.tsx+++ b/web/src/components/MemoEditor/index.tsx@@ -465,7 +465,9 @@ const MemoEditor = (props: Props) => {<div className="w-full flex flex-row justify-between items-center py-3 dark:border-t-zinc-500"><div className="relative flex flex-row justify-start items-center" onFocus={(e) => e.stopPropagation()}><Select+ className="!text-sm"variant="plain"+ size="md"value={state.memoVisibility}startDecorator={<VisibilityIcon visibility={state.memoVisibility} />}onChange={(_, visibility) => {@@ -475,7 +477,7 @@ const MemoEditor = (props: Props) => {}}>{[Visibility.PRIVATE, Visibility.PROTECTED, Visibility.PUBLIC].map((item) => (- <Option key={item} value={item} className="whitespace-nowrap">+ <Option key={item} value={item} className="whitespace-nowrap !text-sm">{t(`memo.visibility.${convertVisibilityToString(item).toLowerCase()}` as any)}</Option>))}diff --git a/web/src/components/PasswordSignInForm.tsx b/web/src/components/PasswordSignInForm.tsxindex ce70ea15d..5115e4c64 100644--- a/web/src/components/PasswordSignInForm.tsx+++ b/web/src/components/PasswordSignInForm.tsx@@ -1,5 +1,5 @@-import { Checkbox, Input } from "@mui/joy";-import { Button } from "@usememos/mui";+import { Input } from "@mui/joy";+import { Button, Checkbox } from "@usememos/mui";import { LoaderIcon } from "lucide-react";import { ClientError } from "nice-grpc-web";import { useEffect, useState } from "react";@@ -101,12 +101,7 @@ const PasswordSignInForm = () => {</div></div><div className="flex flex-row justify-start items-center w-full mt-6">- <Checkbox- className="dark:!text-gray-400"- label={t("common.remember-me")}- checked={remember}- onChange={(e) => setRemember(e.target.checked)}- />+ <Checkbox label={t("common.remember-me")} checked={remember} onChange={(e) => setRemember(e.target.checked)} /></div><div className="flex flex-row justify-end items-center w-full mt-6"><Buttondiff --git a/web/src/pages/SignIn.tsx b/web/src/pages/SignIn.tsxindex 200e84f82..13d8288aa 100644--- a/web/src/pages/SignIn.tsx+++ b/web/src/pages/SignIn.tsx@@ -97,7 +97,6 @@ const SignIn = () => {{identityProviderList.map((identityProvider) => (<Buttonkey={identityProvider.name}- color="primary"variant="outlined"fullWidthonClick={() => handleSignInWithIdentityProvider(identityProvider)}