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
04c6e262
Commit
04c6e262
authored
Nov 04, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: align colors
parent
f310207b
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
235 additions
and
82 deletions
+235
-82
apidocs.swagger.yaml
proto/gen/apidocs.swagger.yaml
+188
-60
package.json
web/package.json
+1
-1
pnpm-lock.yaml
web/pnpm-lock.yaml
+5
-5
ActivityCalendar.tsx
web/src/components/ActivityCalendar.tsx
+3
-3
LocationSelector.tsx
...c/components/MemoEditor/ActionButton/LocationSelector.tsx
+10
-8
TagSelector.tsx
web/src/components/MemoEditor/ActionButton/TagSelector.tsx
+3
-3
ReactionView.tsx
web/src/components/ReactionView.tsx
+3
-2
tailwind.config.js
web/tailwind.config.js
+22
-0
No files found.
proto/gen/apidocs.swagger.yaml
View file @
04c6e262
...
@@ -311,12 +311,16 @@ paths:
...
@@ -311,12 +311,16 @@ paths:
type
:
integer
type
:
integer
format
:
int32
format
:
int32
-
name
:
pageToken
-
name
:
pageToken
description
:
"
A
page
token,
received
from
a
previous
`ListMemos`
call.
\r\n
Provide
this
to
retrieve
the
subsequent
page."
description
:
|-
A page token, received from a previous `ListMemos` call.
Provide this to retrieve the subsequent page.
in: query
in: query
required: false
required: false
type: string
type: string
-
name
:
filter
-
name
:
filter
description
:
"
Filter
is
used
to
filter
memos
returned
in
the
list.
\r\n
Format:
\"
creator
==
'users/{uid}'
&&
visibilities
==
['PUBLIC',
'PROTECTED']
\"
"
description
:
|-
Filter is used to filter memos returned in the list.
Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"
in: query
in: query
required: false
required: false
type: string
type: string
...
@@ -505,7 +509,9 @@ paths:
...
@@ -505,7 +509,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
filter
-
name
:
filter
description
:
"
Filter
is
used
to
filter
users
returned
in
the
list.
\r\n
Format:
\"
username
==
'frank'
\"
"
description
:
|-
Filter is used to filter users returned in the list.
Format: "username == 'frank'"
in: query
in: query
required: false
required: false
type: string
type: string
...
@@ -666,7 +672,9 @@ paths:
...
@@ -666,7 +672,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
resource
name
of
the
workspace
setting.
\r\n
Format:
settings/{setting}"
description
:
|-
The resource name of the workspace setting.
Format: settings/{setting}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -688,7 +696,9 @@ paths:
...
@@ -688,7 +696,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
setting.name
-
name
:
setting.name
description
:
"
name
is
the
name
of
the
setting.
\r\n
Format:
settings/{setting}"
description
:
|-
name is the name of the setting.
Format: settings/{setting}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -724,7 +734,9 @@ paths:
...
@@ -724,7 +734,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
identityProvider.name
-
name
:
identityProvider.name
description
:
"
The
name
of
the
identityProvider.
\r\n
Format:
identityProviders/{id}"
description
:
|-
The name of the identityProvider.
Format: identityProviders/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -762,7 +774,9 @@ paths:
...
@@ -762,7 +774,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
inbox.name
-
name
:
inbox.name
description
:
"
The
name
of
the
inbox.
\r\n
Format:
inboxes/{id}"
description
:
|-
The name of the inbox.
Format: inboxes/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -806,7 +820,10 @@ paths:
...
@@ -806,7 +820,10 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
memo.name
-
name
:
memo.name
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}
\r\n
id
is
the
system
generated
id."
description
:
|-
The name of the memo.
Format: memos/{id}
id is the system generated id.
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -824,7 +841,9 @@ paths:
...
@@ -824,7 +841,9 @@ paths:
$ref
:
'
#/definitions/v1RowStatus'
$ref
:
'
#/definitions/v1RowStatus'
creator
:
creator
:
type
:
string
type
:
string
title
:
"
The
name
of
the
creator.
\r\n
Format:
users/{id}"
title
:
|-
The name of the creator.
Format: users/{id}
createTime
:
createTime
:
type
:
string
type
:
string
format
:
date-time
format
:
date-time
...
@@ -871,7 +890,9 @@ paths:
...
@@ -871,7 +890,9 @@ paths:
readOnly
:
true
readOnly
:
true
parent
:
parent
:
type
:
string
type
:
string
title
:
"
The
name
of
the
parent
memo.
\r\n
Format:
memos/{id}"
title
:
|-
The name of the parent memo.
Format: memos/{id}
readOnly: true
readOnly: true
snippet
:
snippet
:
type
:
string
type
:
string
...
@@ -897,7 +918,9 @@ paths:
...
@@ -897,7 +918,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_1
-
name
:
name_1
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
description
:
|-
The name of the user.
Format: users/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -919,7 +942,9 @@ paths:
...
@@ -919,7 +942,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_1
-
name
:
name_1
description
:
"
The
name
of
the
identityProvider
to
delete.
\r\n
Format:
identityProviders/{id}"
description
:
|-
The name of the identityProvider to delete.
Format: identityProviders/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -941,7 +966,9 @@ paths:
...
@@ -941,7 +966,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_2
-
name
:
name_2
description
:
"
The
name
of
the
identityProvider
to
get.
\r\n
Format:
identityProviders/{id}"
description
:
|-
The name of the identityProvider to get.
Format: identityProviders/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -963,7 +990,9 @@ paths:
...
@@ -963,7 +990,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_2
-
name
:
name_2
description
:
"
The
name
of
the
inbox
to
delete.
\r\n
Format:
inboxes/{id}"
description
:
|-
The name of the inbox to delete.
Format: inboxes/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -985,7 +1014,10 @@ paths:
...
@@ -985,7 +1014,10 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_3
-
name
:
name_3
description
:
"
The
name
of
the
resource.
\r\n
Format:
resources/{id}
\r\n
id
is
the
system
generated
unique
identifier."
description
:
|-
The name of the resource.
Format: resources/{id}
id is the system generated unique identifier.
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1007,7 +1039,10 @@ paths:
...
@@ -1007,7 +1039,10 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_3
-
name
:
name_3
description
:
"
The
name
of
the
resource.
\r\n
Format:
resources/{id}
\r\n
id
is
the
system
generated
unique
identifier."
description
:
|-
The name of the resource.
Format: resources/{id}
id is the system generated unique identifier.
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1029,7 +1064,9 @@ paths:
...
@@ -1029,7 +1064,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_4
-
name
:
name_4
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
description
:
|-
The name of the memo.
Format: memos/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1051,7 +1088,9 @@ paths:
...
@@ -1051,7 +1088,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_4
-
name
:
name_4
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
description
:
|-
The name of the memo.
Format: memos/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1073,7 +1112,9 @@ paths:
...
@@ -1073,7 +1112,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
name
of
the
activity.
\r\n
Format:
activities/{id}"
description
:
|-
The name of the activity.
Format: activities/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1095,7 +1136,9 @@ paths:
...
@@ -1095,7 +1136,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
description
:
|-
The name of the user.
Format: users/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1117,7 +1160,9 @@ paths:
...
@@ -1117,7 +1160,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
description
:
|-
The name of the user.
Format: users/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1138,7 +1183,9 @@ paths:
...
@@ -1138,7 +1183,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
description
:
|-
The name of the user.
Format: users/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1166,7 +1213,9 @@ paths:
...
@@ -1166,7 +1213,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
description
:
|-
The name of the user.
Format: users/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1193,7 +1242,9 @@ paths:
...
@@ -1193,7 +1242,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
description
:
|-
The name of the memo.
Format: memos/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1214,7 +1265,9 @@ paths:
...
@@ -1214,7 +1265,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
description
:
|-
The name of the memo.
Format: memos/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1241,7 +1294,9 @@ paths:
...
@@ -1241,7 +1294,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
description
:
|-
The name of the memo.
Format: memos/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1262,7 +1317,9 @@ paths:
...
@@ -1262,7 +1317,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
description
:
|-
The name of the memo.
Format: memos/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1289,7 +1346,9 @@ paths:
...
@@ -1289,7 +1346,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
description
:
|-
The name of the memo.
Format: memos/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1311,7 +1370,9 @@ paths:
...
@@ -1311,7 +1370,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
description
:
|-
The name of the memo.
Format: memos/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1338,7 +1399,9 @@ paths:
...
@@ -1338,7 +1399,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
description
:
|-
The name of the memo.
Format: memos/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1360,7 +1423,9 @@ paths:
...
@@ -1360,7 +1423,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
description
:
|-
The name of the memo.
Format: memos/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1387,7 +1452,9 @@ paths:
...
@@ -1387,7 +1452,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
description
:
|-
The name of the user.
Format: users/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1410,7 +1477,9 @@ paths:
...
@@ -1410,7 +1477,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
parent
-
name
:
parent
description
:
"
The
parent,
who
owns
the
tags.
\r\n
Format:
memos/{id}.
Use
\"
memos/-
\"
to
delete
all
tags."
description
:
|-
The parent, who owns the tags.
Format: memos/{id}. Use "memos/-" to delete all tags.
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1441,7 +1510,9 @@ paths:
...
@@ -1441,7 +1510,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
parent
-
name
:
parent
description
:
"
The
parent,
who
owns
the
tags.
\r\n
Format:
memos/{id}.
Use
\"
memos/-
\"
to
rename
all
tags."
description
:
|-
The parent, who owns the tags.
Format: memos/{id}. Use "memos/-" to rename all tags.
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1468,7 +1539,10 @@ paths:
...
@@ -1468,7 +1539,10 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
resource.name
-
name
:
resource.name
description
:
"
The
name
of
the
resource.
\r\n
Format:
resources/{id}
\r\n
id
is
the
system
generated
unique
identifier."
description
:
|-
The name of the resource.
Format: resources/{id}
id is the system generated unique identifier.
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1500,7 +1574,9 @@ paths:
...
@@ -1500,7 +1574,9 @@ paths:
format
:
int64
format
:
int64
memo
:
memo
:
type
:
string
type
:
string
title
:
"
The
related
memo.
\r\n
Format:
memos/{id}"
title
:
|-
The related memo.
Format: memos/{id}
tags
:
tags
:
-
ResourceService
-
ResourceService
/api/v1/{setting.name}
:
/api/v1/{setting.name}
:
...
@@ -1518,7 +1594,9 @@ paths:
...
@@ -1518,7 +1594,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
setting.name
-
name
:
setting.name
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
description
:
|-
The name of the user.
Format: users/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1555,7 +1633,9 @@ paths:
...
@@ -1555,7 +1633,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
user.name
-
name
:
user.name
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
description
:
|-
The name of the user.
Format: users/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1609,7 +1689,9 @@ paths:
...
@@ -1609,7 +1689,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
description
:
|-
The name of the user.
Format: users/{id}
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1642,7 +1724,10 @@ paths:
...
@@ -1642,7 +1724,10 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
"
The
name
of
the
resource.
\r\n
Format:
resources/{id}
\r\n
id
is
the
system
generated
unique
identifier."
description
:
|-
The name of the resource.
Format: resources/{id}
id is the system generated unique identifier.
in: path
in: path
required: true
required: true
type: string
type: string
...
@@ -1835,7 +1920,9 @@ definitions:
...
@@ -1835,7 +1920,9 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
"
The
name
of
the
identityProvider.
\r\n
Format:
identityProviders/{id}"
title
:
|-
The name of the identityProvider.
Format: identityProviders/{id}
type
:
type
:
$ref
:
'
#/definitions/apiv1IdentityProviderType'
$ref
:
'
#/definitions/apiv1IdentityProviderType'
title
:
title
:
...
@@ -1871,7 +1958,10 @@ definitions:
...
@@ -1871,7 +1958,10 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}
\r\n
id
is
the
system
generated
id."
description
:
|-
The name of the memo.
Format: memos/{id}
id is the system generated id.
uid
:
uid
:
type
:
string
type
:
string
description
:
The user defined id of the memo.
description
:
The user defined id of the memo.
...
@@ -1879,7 +1969,9 @@ definitions:
...
@@ -1879,7 +1969,9 @@ definitions:
$ref
:
'
#/definitions/v1RowStatus'
$ref
:
'
#/definitions/v1RowStatus'
creator
:
creator
:
type
:
string
type
:
string
title
:
"
The
name
of
the
creator.
\r\n
Format:
users/{id}"
title
:
|-
The name of the creator.
Format: users/{id}
createTime
:
createTime
:
type
:
string
type
:
string
format
:
date-time
format
:
date-time
...
@@ -1926,7 +2018,9 @@ definitions:
...
@@ -1926,7 +2018,9 @@ definitions:
readOnly
:
true
readOnly
:
true
parent
:
parent
:
type
:
string
type
:
string
title
:
"
The
name
of
the
parent
memo.
\r\n
Format:
memos/{id}"
title
:
|-
The name of the parent memo.
Format: memos/{id}
readOnly: true
readOnly: true
snippet
:
snippet
:
type
:
string
type
:
string
...
@@ -1959,7 +2053,9 @@ definitions:
...
@@ -1959,7 +2053,9 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
title
:
|-
The name of the user.
Format: users/{id}
locale
:
locale
:
type
:
string
type
:
string
description
:
The preferred locale of the user.
description
:
The preferred locale of the user.
...
@@ -2003,7 +2099,10 @@ definitions:
...
@@ -2003,7 +2099,10 @@ definitions:
weekStartDayOffset
:
weekStartDayOffset
:
type
:
integer
type
:
integer
format
:
int32
format
:
int32
description
:
"
week_start_day_offset
is
the
week
start
day
offset
from
Sunday.
\r\n
0:
Sunday,
1:
Monday,
2:
Tuesday,
3:
Wednesday,
4:
Thursday,
5:
Friday,
6:
Saturday
\r\n
Default
is
Sunday."
description
:
|-
week_start_day_offset is the week start day offset from Sunday.
0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday
Default is Sunday.
disallowChangeUsername
:
disallowChangeUsername
:
type
:
boolean
type
:
boolean
description
:
disallow_change_username disallows changing username.
description
:
disallow_change_username disallows changing username.
...
@@ -2054,7 +2153,9 @@ definitions:
...
@@ -2054,7 +2153,9 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
"
name
is
the
name
of
the
setting.
\r\n
Format:
settings/{setting}"
title
:
|-
name is the name of the setting.
Format: settings/{setting}
generalSetting
:
generalSetting
:
$ref
:
'
#/definitions/apiv1WorkspaceGeneralSetting'
$ref
:
'
#/definitions/apiv1WorkspaceGeneralSetting'
storageSetting
:
storageSetting
:
...
@@ -2069,7 +2170,9 @@ definitions:
...
@@ -2069,7 +2170,9 @@ definitions:
description
:
storage_type is the storage type.
description
:
storage_type is the storage type.
filepathTemplate
:
filepathTemplate
:
type
:
string
type
:
string
title
:
"
The
template
of
file
path.
\r\n
e.g.
assets/{timestamp}_{filename}"
title
:
|-
The template of file path.
e.g. assets/{timestamp}_{filename}
uploadSizeLimitMb
:
uploadSizeLimitMb
:
type
:
string
type
:
string
format
:
int64
format
:
int64
...
@@ -2228,7 +2331,9 @@ definitions:
...
@@ -2228,7 +2331,9 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
"
The
name
of
the
activity.
\r\n
Format:
activities/{id}"
title
:
|-
The name of the activity.
Format: activities/{id}
creatorId
:
creatorId
:
type
:
integer
type
:
integer
format
:
int32
format
:
int32
...
@@ -2371,7 +2476,9 @@ definitions:
...
@@ -2371,7 +2476,9 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
"
The
name
of
the
inbox.
\r\n
Format:
inboxes/{id}"
title
:
|-
The name of the inbox.
Format: inboxes/{id}
sender
:
sender
:
type
:
string
type
:
string
title
:
'
Format:
users/{id}'
title
:
'
Format:
users/{id}'
...
@@ -2445,7 +2552,9 @@ definitions:
...
@@ -2445,7 +2552,9 @@ definitions:
$ref
:
'
#/definitions/v1Inbox'
$ref
:
'
#/definitions/v1Inbox'
nextPageToken
:
nextPageToken
:
type
:
string
type
:
string
description
:
"
A
token,
which
can
be
sent
as
`page_token`
to
retrieve
the
next
page.
\r\n
If
this
field
is
omitted,
there
are
no
subsequent
pages."
description
:
|-
A token, which can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no subsequent pages.
v1ListMemoCommentsResponse
:
v1ListMemoCommentsResponse
:
type
:
object
type
:
object
properties
:
properties
:
...
@@ -2488,7 +2597,9 @@ definitions:
...
@@ -2488,7 +2597,9 @@ definitions:
$ref
:
'
#/definitions/apiv1Memo'
$ref
:
'
#/definitions/apiv1Memo'
nextPageToken
:
nextPageToken
:
type
:
string
type
:
string
description
:
"
A
token,
which
can
be
sent
as
`page_token`
to
retrieve
the
next
page.
\r\n
If
this
field
is
omitted,
there
are
no
subsequent
pages."
description
:
|-
A token, which can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no subsequent pages.
v1ListNode
:
v1ListNode
:
type
:
object
type
:
object
properties
:
properties
:
...
@@ -2564,10 +2675,14 @@ definitions:
...
@@ -2564,10 +2675,14 @@ definitions:
properties
:
properties
:
memo
:
memo
:
$ref
:
'
#/definitions/v1MemoRelationMemo'
$ref
:
'
#/definitions/v1MemoRelationMemo'
title
:
"
The
name
of
memo.
\r\n
Format:
\"
memos/{uid}
\"
"
title
:
|-
The name of memo.
Format: "memos/{uid}"
relatedMemo
:
relatedMemo
:
$ref
:
'
#/definitions/v1MemoRelationMemo'
$ref
:
'
#/definitions/v1MemoRelationMemo'
title
:
"
The
name
of
related
memo.
\r\n
Format:
\"
memos/{uid}
\"
"
title
:
|-
The name of related memo.
Format: "memos/{uid}"
type
:
type
:
$ref
:
'
#/definitions/v1MemoRelationType'
$ref
:
'
#/definitions/v1MemoRelationType'
v1MemoRelationMemo
:
v1MemoRelationMemo
:
...
@@ -2575,7 +2690,9 @@ definitions:
...
@@ -2575,7 +2690,9 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
title
:
|-
The name of the memo.
Format: memos/{id}
uid
:
uid
:
type
:
string
type
:
string
snippet
:
snippet
:
...
@@ -2749,7 +2866,9 @@ definitions:
...
@@ -2749,7 +2866,9 @@ definitions:
format
:
int32
format
:
int32
creator
:
creator
:
type
:
string
type
:
string
title
:
"
The
name
of
the
creator.
\r\n
Format:
users/{id}"
title
:
|-
The name of the creator.
Format: users/{id}
contentId
:
contentId
:
type
:
string
type
:
string
reactionType
:
reactionType
:
...
@@ -2766,7 +2885,10 @@ definitions:
...
@@ -2766,7 +2885,10 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
description
:
"
The
name
of
the
resource.
\r\n
Format:
resources/{id}
\r\n
id
is
the
system
generated
unique
identifier."
description
:
|-
The name of the resource.
Format: resources/{id}
id is the system generated unique identifier.
uid
:
uid
:
type
:
string
type
:
string
description
:
The user defined id of the resource.
description
:
The user defined id of the resource.
...
@@ -2788,7 +2910,9 @@ definitions:
...
@@ -2788,7 +2910,9 @@ definitions:
format
:
int64
format
:
int64
memo
:
memo
:
type
:
string
type
:
string
title
:
"
The
related
memo.
\r\n
Format:
memos/{id}"
title
:
|-
The related memo.
Format: memos/{id}
v1RestoreMarkdownNodesRequest
:
v1RestoreMarkdownNodesRequest
:
type
:
object
type
:
object
properties
:
properties
:
...
@@ -2910,7 +3034,9 @@ definitions:
...
@@ -2910,7 +3034,9 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
title
:
|-
The name of the user.
Format: users/{id}
id
:
id
:
type
:
integer
type
:
integer
format
:
int32
format
:
int32
...
@@ -2984,7 +3110,9 @@ definitions:
...
@@ -2984,7 +3110,9 @@ definitions:
properties
:
properties
:
owner
:
owner
:
type
:
string
type
:
string
title
:
"
The
name
of
instance
owner.
\r\n
Format:
\"
users/{id}
\"
"
title
:
|-
The name of instance owner.
Format: "users/{id}"
version
:
version
:
type
:
string
type
:
string
title
:
version is the current version of instance
title
:
version is the current version of instance
...
...
web/package.json
View file @
04c6e262
...
@@ -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.2
4
"
,
"@usememos/mui"
:
"0.0.1-alpha.2
5
"
,
"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 @
04c6e262
...
@@ -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.2
4
specifier
:
0.0.1-alpha.2
5
version
:
0.0.1-alpha.2
4
(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.2
5
(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.2
4
'
:
'
@usememos/mui@0.0.1-alpha.2
5
'
:
resolution
:
{
integrity
:
sha512-
4UAlapAs7UfgG3OkdvolgNBo1BCcaXhs3TeWw1UvEA7pwj6txzbIjqN8c6IHl+gYeMzoXBO2Ou7gnYD9OOtj5
Q==
}
resolution
:
{
integrity
:
sha512-
TjvhSgKRqXrDBPGJuojwjbBGLysiycvE+05UJlzmJ1OOQLO3UBYFc5F+iPHg5ok+7PEjWrt3tTubU76/kWsgB
Q==
}
peerDependencies
:
peerDependencies
:
lucide-react
:
^0.453.0
lucide-react
:
^0.453.0
postcss
:
^8.4.47
postcss
:
^8.4.47
...
@@ -4645,7 +4645,7 @@ snapshots:
...
@@ -4645,7 +4645,7 @@ snapshots:
'
@ungap/structured-clone@1.2.0'
:
{}
'
@ungap/structured-clone@1.2.0'
:
{}
'
@usememos/mui@0.0.1-alpha.2
4
(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.2
5
(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/ActivityCalendar.tsx
View file @
04c6e262
...
@@ -21,11 +21,11 @@ const getCellAdditionalStyles = (count: number, maxCount: number) => {
...
@@ -21,11 +21,11 @@ const getCellAdditionalStyles = (count: number, maxCount: number) => {
const
ratio
=
count
/
maxCount
;
const
ratio
=
count
/
maxCount
;
if
(
ratio
>
0.7
)
{
if
(
ratio
>
0.7
)
{
return
"bg-
teal-700
text-gray-100 dark:opacity-80"
;
return
"bg-
primary-darker
text-gray-100 dark:opacity-80"
;
}
else
if
(
ratio
>
0.4
)
{
}
else
if
(
ratio
>
0.4
)
{
return
"bg-
teal-600
text-gray-100 dark:opacity-80"
;
return
"bg-
primary-dark
text-gray-100 dark:opacity-80"
;
}
else
{
}
else
{
return
"bg-
teal-500
text-gray-100 dark:opacity-70"
;
return
"bg-
primary
text-gray-100 dark:opacity-70"
;
}
}
};
};
...
...
web/src/components/MemoEditor/ActionButton/LocationSelector.tsx
View file @
04c6e262
...
@@ -98,9 +98,7 @@ const LocationSelector = (props: Props) => {
...
@@ -98,9 +98,7 @@ const LocationSelector = (props: Props) => {
<
MapPinIcon
className=
"w-5 h-5 mx-auto shrink-0"
/>
<
MapPinIcon
className=
"w-5 h-5 mx-auto shrink-0"
/>
{
props
.
location
&&
(
{
props
.
location
&&
(
<>
<>
<
span
className=
"font-normal ml-0.5 text-ellipsis whitespace-nowrap overflow-hidden max-w-32"
>
<
span
className=
"ml-0.5 text-sm text-ellipsis whitespace-nowrap overflow-hidden max-w-32"
>
{
props
.
location
.
placeholder
}
</
span
>
{
props
.
location
.
placeholder
}
</
span
>
<
XIcon
className=
"w-5 h-5 mx-auto shrink-0 hidden group-hover:block opacity-60 hover:opacity-80"
onClick=
{
removeLocation
}
/>
<
XIcon
className=
"w-5 h-5 mx-auto shrink-0 hidden group-hover:block opacity-60 hover:opacity-80"
onClick=
{
removeLocation
}
/>
</>
</>
)
}
)
}
...
@@ -111,14 +109,17 @@ const LocationSelector = (props: Props) => {
...
@@ -111,14 +109,17 @@ const LocationSelector = (props: Props) => {
<
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"
>
<
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
}
size=
"sm"
startDecorator=
{
state
.
position
&&
(
<
span
className=
"text-xs opacity-60"
>
[
{
state
.
position
.
lat
.
toFixed
(
2
)
}
,
{
state
.
position
.
lng
.
toFixed
(
2
)
}
]
</
span
>
)
}
disabled=
{
!
state
.
position
}
disabled=
{
!
state
.
position
}
onChange=
{
(
e
)
=>
setState
((
state
)
=>
({
...
state
,
placeholder
:
e
.
target
.
value
}))
}
onChange=
{
(
e
)
=>
setState
((
state
)
=>
({
...
state
,
placeholder
:
e
.
target
.
value
}))
}
/>
/>
...
@@ -126,6 +127,7 @@ const LocationSelector = (props: Props) => {
...
@@ -126,6 +127,7 @@ const LocationSelector = (props: Props) => {
<
Button
<
Button
className=
"shrink-0"
className=
"shrink-0"
color=
"primary"
color=
"primary"
size=
"sm"
onClick=
{
()
=>
{
onClick=
{
()
=>
{
props
.
onChange
(
props
.
onChange
(
Location
.
fromPartial
({
Location
.
fromPartial
({
...
...
web/src/components/MemoEditor/ActionButton/TagSelector.tsx
View file @
04c6e262
...
@@ -46,15 +46,15 @@ const TagSelector = (props: Props) => {
...
@@ -46,15 +46,15 @@ const TagSelector = (props: Props) => {
<
HashIcon
className=
"w-5 h-5 mx-auto"
/>
<
HashIcon
className=
"w-5 h-5 mx-auto"
/>
</
Button
>
</
Button
>
</
MenuButton
>
</
MenuButton
>
<
Menu
className=
"relative
text-sm
"
component=
"div"
size=
"sm"
placement=
"bottom-start"
>
<
Menu
className=
"relative"
component=
"div"
size=
"sm"
placement=
"bottom-start"
>
<
div
ref=
{
containerRef
}
>
<
div
ref=
{
containerRef
}
>
{
tags
.
length
>
0
?
(
{
tags
.
length
>
0
?
(
<
div
className=
"flex
-row justify-start items-start flex-wrap px-1 max-w-[12rem] h-auto max-h-48 overflow-y-auto font-mono
"
>
<
div
className=
"flex
flex-row justify-start items-start flex-wrap px-3 py-1 max-w-[12rem] h-auto max-h-48 overflow-y-auto gap-x-2 gap-y-1
"
>
{
tags
.
map
((
tag
)
=>
{
{
tags
.
map
((
tag
)
=>
{
return
(
return
(
<
div
<
div
key=
{
tag
}
key=
{
tag
}
className=
"inline-flex w-auto max-w-full cursor-pointer
rounded text-sm leading-5 px-1 text-gray-500 dark:text-gray-400 hover:bg-zinc-100 dark:hover:bg-zinc-800
"
className=
"inline-flex w-auto max-w-full cursor-pointer
text-base leading-6 text-gray-500 dark:text-gray-400 hover:text-primary dark:hover:text-primary-dark
"
onClick=
{
()
=>
handleTagClick
(
tag
)
}
onClick=
{
()
=>
handleTagClick
(
tag
)
}
>
>
<
OverflowTip
>
#
{
tag
}
</
OverflowTip
>
<
OverflowTip
>
#
{
tag
}
</
OverflowTip
>
...
...
web/src/components/ReactionView.tsx
View file @
04c6e262
...
@@ -66,14 +66,15 @@ const ReactionView = (props: Props) => {
...
@@ -66,14 +66,15 @@ const ReactionView = (props: Props) => {
<
Tooltip
title=
{
stringifyUsers
(
users
,
reactionType
)
}
placement=
"top"
>
<
Tooltip
title=
{
stringifyUsers
(
users
,
reactionType
)
}
placement=
"top"
>
<
div
<
div
className=
{
clsx
(
className=
{
clsx
(
"h-7 border px-2 py-0.5 rounded-full font-memo flex flex-row justify-center items-center gap-1 dark:border-zinc-700"
,
"h-7 border px-2 py-0.5 rounded-full flex flex-row justify-center items-center gap-1 dark:border-zinc-700"
,
"text-sm text-gray-600 dark:text-gray-400"
,
currentUser
&&
"cursor-pointer"
,
currentUser
&&
"cursor-pointer"
,
hasReaction
&&
"bg-blue-100 border-blue-200 dark:bg-zinc-900"
,
hasReaction
&&
"bg-blue-100 border-blue-200 dark:bg-zinc-900"
,
)
}
)
}
onClick=
{
handleReactionClick
}
onClick=
{
handleReactionClick
}
>
>
<
span
>
{
reactionType
}
</
span
>
<
span
>
{
reactionType
}
</
span
>
<
span
className=
"
text-sm text-gray-500 dark:text-gray-40
0"
>
{
users
.
length
}
</
span
>
<
span
className=
"
opacity-6
0"
>
{
users
.
length
}
</
span
>
</
div
>
</
div
>
</
Tooltip
>
</
Tooltip
>
);
);
...
...
web/tailwind.config.js
View file @
04c6e262
...
@@ -6,6 +6,28 @@ module.exports = {
...
@@ -6,6 +6,28 @@ module.exports = {
prefix
:
""
,
prefix
:
""
,
theme
:
{
theme
:
{
extend
:
{
extend
:
{
colors
:
{
primary
:
{
DEFAULT
:
"#0d9488"
,
// Teal 600
dark
:
"#0f766e"
,
// Teal 700
darker
:
"#0d5a56"
,
// Teal 800
},
success
:
{
DEFAULT
:
"#16a34a"
,
// Green 600
dark
:
"#047857"
,
// Green 700
darker
:
"#03664a"
,
// Green 800
},
danger
:
{
DEFAULT
:
"#dc2626"
,
// Red 600
dark
:
"#b91c1c"
,
// Red 700
darker
:
"#991b1b"
,
// Red 800
},
warning
:
{
DEFAULT
:
"#ca8a04"
,
// Yellow 600
dark
:
"#b45309"
,
// Yellow 700
darker
:
"#92400e"
,
// Yellow 800
},
},
spacing
:
{
spacing
:
{
128
:
"32rem"
,
128
:
"32rem"
,
},
},
...
...
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