Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
db2b34a8
Commit
db2b34a8
authored
Oct 28, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update input source
parent
12bcf65f
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
45 additions
and
65 deletions
+45
-65
package.json
web/package.json
+1
-1
pnpm-lock.yaml
web/pnpm-lock.yaml
+5
-5
ChangeMemberPasswordDialog.tsx
web/src/components/ChangeMemberPasswordDialog.tsx
+1
-2
CreateAccessTokenDialog.tsx
web/src/components/CreateAccessTokenDialog.tsx
+2
-2
CreateIdentityProviderDialog.tsx
web/src/components/CreateIdentityProviderDialog.tsx
+2
-2
CreateWebhookDialog.tsx
web/src/components/CreateWebhookDialog.tsx
+1
-2
LocationSelector.tsx
...c/components/MemoEditor/ActionButton/LocationSelector.tsx
+14
-15
PasswordSignInForm.tsx
web/src/components/PasswordSignInForm.tsx
+1
-2
RenameTagDialog.tsx
web/src/components/RenameTagDialog.tsx
+4
-11
MemberSection.tsx
web/src/components/Settings/MemberSection.tsx
+2
-2
MemoRelatedSettings.tsx
web/src/components/Settings/MemoRelatedSettings.tsx
+2
-2
StorageSection.tsx
web/src/components/Settings/StorageSection.tsx
+3
-10
UpdateAccountDialog.tsx
web/src/components/UpdateAccountDialog.tsx
+3
-3
UpdateCustomizedProfileDialog.tsx
web/src/components/UpdateCustomizedProfileDialog.tsx
+1
-2
Resources.tsx
web/src/pages/Resources.tsx
+2
-2
SignUp.tsx
web/src/pages/SignUp.tsx
+1
-2
No files found.
web/package.json
View file @
db2b34a8
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"@mui/joy"
:
"5.0.0-beta.48"
,
"@mui/joy"
:
"5.0.0-beta.48"
,
"@radix-ui/react-popover"
:
"^1.1.2"
,
"@radix-ui/react-popover"
:
"^1.1.2"
,
"@reduxjs/toolkit"
:
"^2.3.0"
,
"@reduxjs/toolkit"
:
"^2.3.0"
,
"@usememos/mui"
:
"0.0.1-alpha.
14
"
,
"@usememos/mui"
:
"0.0.1-alpha.
20
"
,
"class-variance-authority"
:
"^0.7.0"
,
"class-variance-authority"
:
"^0.7.0"
,
"clsx"
:
"^2.1.1"
,
"clsx"
:
"^2.1.1"
,
"copy-to-clipboard"
:
"^3.3.3"
,
"copy-to-clipboard"
:
"^3.3.3"
,
...
...
web/pnpm-lock.yaml
View file @
db2b34a8
...
@@ -39,8 +39,8 @@ importers:
...
@@ -39,8 +39,8 @@ importers:
specifier
:
^2.3.0
specifier
:
^2.3.0
version
:
2.3.0(react-redux@9.1.2(@types/react@18.3.12)(react@18.3.1)(redux@5.0.1))(react@18.3.1)
version
:
2.3.0(react-redux@9.1.2(@types/react@18.3.12)(react@18.3.1)(redux@5.0.1))(react@18.3.1)
'
@usememos/mui'
:
'
@usememos/mui'
:
specifier
:
0.0.1-alpha.
14
specifier
:
0.0.1-alpha.
20
version
:
0.0.1-alpha.
14
(lucide-react@0.453.0(react@18.3.1))(postcss@8.4.47)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(tailwind-merge@2.5.4)(tailwindcss@3.4.14)
version
:
0.0.1-alpha.
20
(lucide-react@0.453.0(react@18.3.1))(postcss@8.4.47)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(tailwind-merge@2.5.4)(tailwindcss@3.4.14)
class-variance-authority
:
class-variance-authority
:
specifier
:
^0.7.0
specifier
:
^0.7.0
version
:
0.7.0
version
:
0.7.0
...
@@ -1409,8 +1409,8 @@ packages:
...
@@ -1409,8 +1409,8 @@ packages:
'
@ungap/structured-clone@1.2.0'
:
'
@ungap/structured-clone@1.2.0'
:
resolution
:
{
integrity
:
sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==
}
resolution
:
{
integrity
:
sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==
}
'
@usememos/mui@0.0.1-alpha.
14
'
:
'
@usememos/mui@0.0.1-alpha.
20
'
:
resolution
:
{
integrity
:
sha512-
KzLIWkTPVisukxfa6j9LtCmlJpO3QxOe9JFwUDV6AkIqw4QKkVK6Rl+DZu8N9uKSoAiNbg6gbu9vj+Ox3crmug
==
}
resolution
:
{
integrity
:
sha512-
O0wvI5z+ndKHLek+Be5t8e+KOSxPf0gHKJh8wu+M05bSzMldqs1dlm0kaP4bSW5rUifOybrEe0IUsesyg+eJzQ
==
}
peerDependencies
:
peerDependencies
:
lucide-react
:
^0.453.0
lucide-react
:
^0.453.0
postcss
:
^8.4.47
postcss
:
^8.4.47
...
@@ -4642,7 +4642,7 @@ snapshots:
...
@@ -4642,7 +4642,7 @@ snapshots:
'
@ungap/structured-clone@1.2.0'
:
{}
'
@ungap/structured-clone@1.2.0'
:
{}
'
@usememos/mui@0.0.1-alpha.
14
(lucide-react@0.453.0(react@18.3.1))(postcss@8.4.47)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(tailwind-merge@2.5.4)(tailwindcss@3.4.14)'
:
'
@usememos/mui@0.0.1-alpha.
20
(lucide-react@0.453.0(react@18.3.1))(postcss@8.4.47)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(tailwind-merge@2.5.4)(tailwindcss@3.4.14)'
:
dependencies
:
dependencies
:
lucide-react
:
0.453.0(react@18.3.1)
lucide-react
:
0.453.0(react@18.3.1)
postcss
:
8.4.47
postcss
:
8.4.47
...
...
web/src/components/ChangeMemberPasswordDialog.tsx
View file @
db2b34a8
import
{
Input
}
from
"@mui/joy"
;
import
{
Button
,
Input
}
from
"@usememos/mui"
;
import
{
Button
}
from
"@usememos/mui"
;
import
{
XIcon
}
from
"lucide-react"
;
import
{
XIcon
}
from
"lucide-react"
;
import
{
useEffect
,
useState
}
from
"react"
;
import
{
useEffect
,
useState
}
from
"react"
;
import
{
toast
}
from
"react-hot-toast"
;
import
{
toast
}
from
"react-hot-toast"
;
...
...
web/src/components/CreateAccessTokenDialog.tsx
View file @
db2b34a8
import
{
Input
,
Radio
,
RadioGroup
}
from
"@mui/joy"
;
import
{
Radio
,
RadioGroup
}
from
"@mui/joy"
;
import
{
Button
}
from
"@usememos/mui"
;
import
{
Button
,
Input
}
from
"@usememos/mui"
;
import
{
XIcon
}
from
"lucide-react"
;
import
{
XIcon
}
from
"lucide-react"
;
import
React
,
{
useState
}
from
"react"
;
import
React
,
{
useState
}
from
"react"
;
import
{
toast
}
from
"react-hot-toast"
;
import
{
toast
}
from
"react-hot-toast"
;
...
...
web/src/components/CreateIdentityProviderDialog.tsx
View file @
db2b34a8
import
{
Divider
,
Input
,
Option
,
Select
,
Typography
}
from
"@mui/joy"
;
import
{
Divider
,
Option
,
Select
,
Typography
}
from
"@mui/joy"
;
import
{
Button
}
from
"@usememos/mui"
;
import
{
Button
,
Input
}
from
"@usememos/mui"
;
import
{
XIcon
}
from
"lucide-react"
;
import
{
XIcon
}
from
"lucide-react"
;
import
{
useEffect
,
useState
}
from
"react"
;
import
{
useEffect
,
useState
}
from
"react"
;
import
{
toast
}
from
"react-hot-toast"
;
import
{
toast
}
from
"react-hot-toast"
;
...
...
web/src/components/CreateWebhookDialog.tsx
View file @
db2b34a8
import
{
Input
}
from
"@mui/joy"
;
import
{
Button
,
Input
}
from
"@usememos/mui"
;
import
{
Button
}
from
"@usememos/mui"
;
import
{
XIcon
}
from
"lucide-react"
;
import
{
XIcon
}
from
"lucide-react"
;
import
React
,
{
useEffect
,
useState
}
from
"react"
;
import
React
,
{
useEffect
,
useState
}
from
"react"
;
import
{
toast
}
from
"react-hot-toast"
;
import
{
toast
}
from
"react-hot-toast"
;
...
...
web/src/components/MemoEditor/ActionButton/LocationSelector.tsx
View file @
db2b34a8
import
{
Input
}
from
"@mui/joy"
;
import
{
Button
,
Input
}
from
"@usememos/mui"
;
import
{
Button
}
from
"@usememos/mui"
;
import
{
LatLng
}
from
"leaflet"
;
import
{
LatLng
}
from
"leaflet"
;
import
{
MapPinIcon
,
XIcon
}
from
"lucide-react"
;
import
{
MapPinIcon
,
XIcon
}
from
"lucide-react"
;
import
{
useEffect
,
useState
}
from
"react"
;
import
{
useEffect
,
useState
}
from
"react"
;
...
@@ -111,19 +110,19 @@ const LocationSelector = (props: Props) => {
...
@@ -111,19 +110,19 @@ const LocationSelector = (props: Props) => {
<
div
className=
"min-w-80 sm:w-128 flex flex-col justify-start items-start"
>
<
div
className=
"min-w-80 sm:w-128 flex flex-col justify-start items-start"
>
<
LeafletMap
key=
{
JSON
.
stringify
(
state
.
initilized
)
}
latlng=
{
state
.
position
}
onChange=
{
onPositionChanged
}
/>
<
LeafletMap
key=
{
JSON
.
stringify
(
state
.
initilized
)
}
latlng=
{
state
.
position
}
onChange=
{
onPositionChanged
}
/>
<
div
className=
"mt-2 w-full flex flex-row justify-between items-center gap-2"
>
<
div
className=
"mt-2 w-full flex flex-row justify-between items-center gap-2"
>
<
div
className=
"flex flex-row items-center justify-start gap-2"
>
{
state
.
position
&&
(
<
span
className=
"text-sm"
>
[
{
state
.
position
.
lat
.
toFixed
(
2
)
}
,
{
state
.
position
.
lng
.
toFixed
(
2
)
}
]
</
span
>
)
}
<
Input
<
Input
placeholder=
"Choose a position first."
placeholder=
"Choose a position first."
value=
{
state
.
placeholder
}
value=
{
state
.
placeholder
}
disabled=
{
!
state
.
position
}
disabled=
{
!
state
.
position
}
startDecorator=
{
state
.
position
?
(
<
span
>
[
{
state
.
position
.
lat
.
toFixed
(
3
)
}
,
{
state
.
position
.
lng
.
toFixed
(
3
)
}
]
</
span
>
)
:
null
}
onChange=
{
(
e
)
=>
setState
((
state
)
=>
({
...
state
,
placeholder
:
e
.
target
.
value
}))
}
onChange=
{
(
e
)
=>
setState
((
state
)
=>
({
...
state
,
placeholder
:
e
.
target
.
value
}))
}
/>
/>
</
div
>
<
Button
<
Button
className=
"shrink-0"
className=
"shrink-0"
color=
"primary"
color=
"primary"
...
...
web/src/components/PasswordSignInForm.tsx
View file @
db2b34a8
import
{
Input
}
from
"@mui/joy"
;
import
{
Button
,
Checkbox
,
Input
}
from
"@usememos/mui"
;
import
{
Button
,
Checkbox
}
from
"@usememos/mui"
;
import
{
LoaderIcon
}
from
"lucide-react"
;
import
{
LoaderIcon
}
from
"lucide-react"
;
import
{
ClientError
}
from
"nice-grpc-web"
;
import
{
ClientError
}
from
"nice-grpc-web"
;
import
{
useEffect
,
useState
}
from
"react"
;
import
{
useEffect
,
useState
}
from
"react"
;
...
...
web/src/components/RenameTagDialog.tsx
View file @
db2b34a8
import
{
Input
,
List
,
ListItem
}
from
"@mui/joy"
;
import
{
List
,
ListItem
}
from
"@mui/joy"
;
import
{
Button
}
from
"@usememos/mui"
;
import
{
Button
,
Input
}
from
"@usememos/mui"
;
import
{
XIcon
}
from
"lucide-react"
;
import
{
XIcon
}
from
"lucide-react"
;
import
React
,
{
useState
}
from
"react"
;
import
React
,
{
useState
}
from
"react"
;
import
{
toast
}
from
"react-hot-toast"
;
import
{
toast
}
from
"react-hot-toast"
;
...
@@ -63,18 +63,11 @@ const RenameTagDialog: React.FC<Props> = (props: Props) => {
...
@@ -63,18 +63,11 @@ const RenameTagDialog: React.FC<Props> = (props: Props) => {
<
div
className=
"w-full flex flex-col justify-start items-start mb-3"
>
<
div
className=
"w-full flex flex-col justify-start items-start mb-3"
>
<
div
className=
"relative w-full mb-2 flex flex-row justify-start items-center space-x-2"
>
<
div
className=
"relative w-full mb-2 flex flex-row justify-start items-center space-x-2"
>
<
span
className=
"w-20 text-sm whitespace-nowrap shrink-0 text-right"
>
Old Name
</
span
>
<
span
className=
"w-20 text-sm whitespace-nowrap shrink-0 text-right"
>
Old Name
</
span
>
<
Input
className=
"w-full"
readOnly
disabled
type=
"text"
placeholder=
"A new tag name"
size=
"md"
value=
{
tag
}
/>
<
Input
className=
"w-full"
readOnly
disabled
type=
"text"
placeholder=
"A new tag name"
value=
{
tag
}
/>
</
div
>
</
div
>
<
div
className=
"relative w-full mb-2 flex flex-row justify-start items-center space-x-2"
>
<
div
className=
"relative w-full mb-2 flex flex-row justify-start items-center space-x-2"
>
<
span
className=
"w-20 text-sm whitespace-nowrap shrink-0 text-right"
>
New Name
</
span
>
<
span
className=
"w-20 text-sm whitespace-nowrap shrink-0 text-right"
>
New Name
</
span
>
<
Input
<
Input
className=
"w-full"
type=
"text"
placeholder=
"A new tag name"
value=
{
newName
}
onChange=
{
handleTagNameInputChange
}
/>
className=
"w-full"
type=
"text"
placeholder=
"A new tag name"
size=
"md"
value=
{
newName
}
onChange=
{
handleTagNameInputChange
}
/>
</
div
>
</
div
>
<
List
size=
"sm"
marker=
"disc"
>
<
List
size=
"sm"
marker=
"disc"
>
<
ListItem
>
<
ListItem
>
...
...
web/src/components/Settings/MemberSection.tsx
View file @
db2b34a8
import
{
Dropdown
,
Input
,
Menu
,
MenuButton
,
MenuItem
,
Radio
,
RadioGroup
}
from
"@mui/joy"
;
import
{
Dropdown
,
Menu
,
MenuButton
,
MenuItem
,
Radio
,
RadioGroup
}
from
"@mui/joy"
;
import
{
Button
}
from
"@usememos/mui"
;
import
{
Button
,
Input
}
from
"@usememos/mui"
;
import
{
sortBy
}
from
"lodash-es"
;
import
{
sortBy
}
from
"lodash-es"
;
import
{
MoreVerticalIcon
}
from
"lucide-react"
;
import
{
MoreVerticalIcon
}
from
"lucide-react"
;
import
React
,
{
useEffect
,
useState
}
from
"react"
;
import
React
,
{
useEffect
,
useState
}
from
"react"
;
...
...
web/src/components/Settings/MemoRelatedSettings.tsx
View file @
db2b34a8
import
{
Input
,
Switch
,
Select
,
Option
,
Chip
,
ChipDelete
}
from
"@mui/joy"
;
import
{
Switch
,
Select
,
Option
,
Chip
,
ChipDelete
}
from
"@mui/joy"
;
import
{
Button
}
from
"@usememos/mui"
;
import
{
Button
,
Input
}
from
"@usememos/mui"
;
import
{
isEqual
,
uniq
}
from
"lodash-es"
;
import
{
isEqual
,
uniq
}
from
"lodash-es"
;
import
{
CheckIcon
}
from
"lucide-react"
;
import
{
CheckIcon
}
from
"lucide-react"
;
import
{
useState
}
from
"react"
;
import
{
useState
}
from
"react"
;
...
...
web/src/components/Settings/StorageSection.tsx
View file @
db2b34a8
import
{
Divider
,
Input
,
List
,
ListItem
,
Radio
,
RadioGroup
,
Tooltip
}
from
"@mui/joy"
;
import
{
Divider
,
List
,
ListItem
,
Radio
,
RadioGroup
,
Tooltip
}
from
"@mui/joy"
;
import
{
Button
}
from
"@usememos/mui"
;
import
{
Button
,
Input
}
from
"@usememos/mui"
;
import
{
isEqual
}
from
"lodash-es"
;
import
{
isEqual
}
from
"lodash-es"
;
import
{
HelpCircleIcon
}
from
"lucide-react"
;
import
{
HelpCircleIcon
}
from
"lucide-react"
;
import
{
useMemo
,
useState
}
from
"react"
;
import
{
useMemo
,
useState
}
from
"react"
;
...
@@ -136,14 +136,7 @@ const StorageSection = () => {
...
@@ -136,14 +136,7 @@ const StorageSection = () => {
<
HelpCircleIcon
className=
"w-4 h-auto"
/>
<
HelpCircleIcon
className=
"w-4 h-auto"
/>
</
Tooltip
>
</
Tooltip
>
</
div
>
</
div
>
<
Input
<
Input
className=
"w-16 font-mono"
value=
{
workspaceStorageSetting
.
uploadSizeLimitMb
}
onChange=
{
handleMaxUploadSizeChanged
}
/>
className=
"w-16"
sx=
{
{
fontFamily
:
"monospace"
,
}
}
value=
{
workspaceStorageSetting
.
uploadSizeLimitMb
}
onChange=
{
handleMaxUploadSizeChanged
}
/>
</
div
>
</
div
>
{
workspaceStorageSetting
.
storageType
!==
WorkspaceStorageSetting_StorageType
.
DATABASE
&&
(
{
workspaceStorageSetting
.
storageType
!==
WorkspaceStorageSetting_StorageType
.
DATABASE
&&
(
<
div
className=
"w-full flex flex-row justify-between items-center"
>
<
div
className=
"w-full flex flex-row justify-between items-center"
>
...
...
web/src/components/UpdateAccountDialog.tsx
View file @
db2b34a8
import
{
Input
,
Textarea
}
from
"@mui/joy"
;
import
{
Textarea
}
from
"@mui/joy"
;
import
{
Button
}
from
"@usememos/mui"
;
import
{
Button
,
Input
}
from
"@usememos/mui"
;
import
{
isEqual
}
from
"lodash-es"
;
import
{
isEqual
}
from
"lodash-es"
;
import
{
XIcon
}
from
"lucide-react"
;
import
{
XIcon
}
from
"lucide-react"
;
import
{
useState
}
from
"react"
;
import
{
useState
}
from
"react"
;
...
@@ -193,7 +193,7 @@ const UpdateAccountDialog: React.FC<Props> = ({ destroy }: Props) => {
...
@@ -193,7 +193,7 @@ const UpdateAccountDialog: React.FC<Props> = ({ destroy }: Props) => {
{
t
(
"common.email"
)
}
{
t
(
"common.email"
)
}
<
span
className=
"text-sm text-gray-400 ml-1"
>
(
{
t
(
"setting.account-section.email-note"
)
}
)
</
span
>
<
span
className=
"text-sm text-gray-400 ml-1"
>
(
{
t
(
"setting.account-section.email-note"
)
}
)
</
span
>
</
p
>
</
p
>
<
Input
className=
"w-full"
type=
"email"
value=
{
state
.
email
}
onChange=
{
handleEmailChanged
}
/>
<
Input
fullWidth
type=
"email"
value=
{
state
.
email
}
onChange=
{
handleEmailChanged
}
/>
<
p
className=
"text-sm"
>
{
t
(
"common.description"
)
}
</
p
>
<
p
className=
"text-sm"
>
{
t
(
"common.description"
)
}
</
p
>
<
Textarea
<
Textarea
className=
"w-full"
className=
"w-full"
...
...
web/src/components/UpdateCustomizedProfileDialog.tsx
View file @
db2b34a8
import
{
Input
}
from
"@mui/joy"
;
import
Textarea
from
"@mui/joy/Textarea/Textarea"
;
import
Textarea
from
"@mui/joy/Textarea/Textarea"
;
import
{
Button
}
from
"@usememos/mui"
;
import
{
Button
,
Input
}
from
"@usememos/mui"
;
import
{
XIcon
}
from
"lucide-react"
;
import
{
XIcon
}
from
"lucide-react"
;
import
{
useState
}
from
"react"
;
import
{
useState
}
from
"react"
;
import
{
toast
}
from
"react-hot-toast"
;
import
{
toast
}
from
"react-hot-toast"
;
...
...
web/src/pages/Resources.tsx
View file @
db2b34a8
import
{
Divider
,
Input
,
Tooltip
}
from
"@mui/joy"
;
import
{
Divider
,
Tooltip
}
from
"@mui/joy"
;
import
{
Button
}
from
"@usememos/mui"
;
import
{
Button
,
Input
}
from
"@usememos/mui"
;
import
dayjs
from
"dayjs"
;
import
dayjs
from
"dayjs"
;
import
{
includes
}
from
"lodash-es"
;
import
{
includes
}
from
"lodash-es"
;
import
{
PaperclipIcon
,
SearchIcon
,
TrashIcon
}
from
"lucide-react"
;
import
{
PaperclipIcon
,
SearchIcon
,
TrashIcon
}
from
"lucide-react"
;
...
...
web/src/pages/SignUp.tsx
View file @
db2b34a8
import
{
Input
}
from
"@mui/joy"
;
import
{
Button
,
Input
}
from
"@usememos/mui"
;
import
{
Button
}
from
"@usememos/mui"
;
import
{
LoaderIcon
}
from
"lucide-react"
;
import
{
LoaderIcon
}
from
"lucide-react"
;
import
{
ClientError
}
from
"nice-grpc-web"
;
import
{
ClientError
}
from
"nice-grpc-web"
;
import
{
useState
}
from
"react"
;
import
{
useState
}
from
"react"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment