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
8c6682bd
Commit
8c6682bd
authored
Sep 02, 2024
by
johnnyjoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: regenerate apidocs
parent
d13bb764
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
204 deletions
+65
-204
apidocs.swagger.yaml
docs/apidocs.swagger.yaml
+64
-201
MermaidBlock.tsx
web/src/components/MemoContent/MermaidBlock.tsx
+1
-3
No files found.
docs/apidocs.swagger.yaml
View file @
8c6682bd
...
@@ -300,16 +300,12 @@ paths:
...
@@ -300,16 +300,12 @@ paths:
type
:
integer
type
:
integer
format
:
int32
format
:
int32
-
name
:
pageToken
-
name
:
pageToken
description
:
|-
description
:
"
A
page
token,
received
from
a
previous
`ListMemos`
call.
\r\n
Provide
this
to
retrieve
the
subsequent
page."
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
:
|-
description
:
"
Filter
is
used
to
filter
memos
returned
in
the
list.
\r\n
Format:
\"
creator
==
'users/{uid}'
&&
visibilities
==
['PUBLIC',
'PROTECTED']
\"
"
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
...
@@ -484,9 +480,7 @@ paths:
...
@@ -484,9 +480,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
filter
-
name
:
filter
description
:
|-
description
:
"
Filter
is
used
to
filter
users
returned
in
the
list.
\r\n
Format:
\"
username
==
'frank'
\"
"
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
...
@@ -647,9 +641,7 @@ paths:
...
@@ -647,9 +641,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
resource
name
of
the
workspace
setting.
\r\n
Format:
settings/{setting}"
The resource name of the workspace setting.
Format: settings/{setting}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -671,9 +663,7 @@ paths:
...
@@ -671,9 +663,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
setting.name
-
name
:
setting.name
description
:
|-
description
:
"
name
is
the
name
of
the
setting.
\r\n
Format:
settings/{setting}"
name is the name of the setting.
Format: settings/{setting}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -709,9 +699,7 @@ paths:
...
@@ -709,9 +699,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
identityProvider.name
-
name
:
identityProvider.name
description
:
|-
description
:
"
The
name
of
the
identityProvider.
\r\n
Format:
identityProviders/{id}"
The name of the identityProvider.
Format: identityProviders/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -749,9 +737,7 @@ paths:
...
@@ -749,9 +737,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
inbox.name
-
name
:
inbox.name
description
:
|-
description
:
"
The
name
of
the
inbox.
\r\n
Format:
inboxes/{id}"
The name of the inbox.
Format: inboxes/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -795,10 +781,7 @@ paths:
...
@@ -795,10 +781,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
memo.name
-
name
:
memo.name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}
\r\n
id
is
the
system
generated
id."
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
...
@@ -816,9 +799,7 @@ paths:
...
@@ -816,9 +799,7 @@ paths:
$ref
:
'
#/definitions/v1RowStatus'
$ref
:
'
#/definitions/v1RowStatus'
creator
:
creator
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
creator.
\r\n
Format:
users/{id}"
The name of the creator.
Format: users/{id}
createTime
:
createTime
:
type
:
string
type
:
string
format
:
date-time
format
:
date-time
...
@@ -871,9 +852,7 @@ paths:
...
@@ -871,9 +852,7 @@ paths:
readOnly
:
true
readOnly
:
true
parent
:
parent
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
parent
memo.
\r\n
Format:
memos/{id}"
The name of the parent memo.
Format: memos/{id}
readOnly
:
true
readOnly
:
true
snippet
:
snippet
:
type
:
string
type
:
string
...
@@ -895,9 +874,7 @@ paths:
...
@@ -895,9 +874,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_1
-
name
:
name_1
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -919,9 +896,7 @@ paths:
...
@@ -919,9 +896,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_1
-
name
:
name_1
description
:
|-
description
:
"
The
name
of
the
identityProvider
to
delete.
\r\n
Format:
identityProviders/{id}"
The name of the identityProvider to delete.
Format: identityProviders/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -943,9 +918,7 @@ paths:
...
@@ -943,9 +918,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_2
-
name
:
name_2
description
:
|-
description
:
"
The
name
of
the
identityProvider
to
get.
\r\n
Format:
identityProviders/{id}"
The name of the identityProvider to get.
Format: identityProviders/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -967,9 +940,7 @@ paths:
...
@@ -967,9 +940,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_2
-
name
:
name_2
description
:
|-
description
:
"
The
name
of
the
inbox
to
delete.
\r\n
Format:
inboxes/{id}"
The name of the inbox to delete.
Format: inboxes/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -991,10 +962,7 @@ paths:
...
@@ -991,10 +962,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_3
-
name
:
name_3
description
:
|-
description
:
"
The
name
of
the
resource.
\r\n
Format:
resources/{id}
\r\n
id
is
the
system
generated
unique
identifier."
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
...
@@ -1016,10 +984,7 @@ paths:
...
@@ -1016,10 +984,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_3
-
name
:
name_3
description
:
|-
description
:
"
The
name
of
the
resource.
\r\n
Format:
resources/{id}
\r\n
id
is
the
system
generated
unique
identifier."
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
...
@@ -1041,9 +1006,7 @@ paths:
...
@@ -1041,9 +1006,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_4
-
name
:
name_4
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1065,9 +1028,7 @@ paths:
...
@@ -1065,9 +1028,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_4
-
name
:
name_4
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1089,9 +1050,7 @@ paths:
...
@@ -1089,9 +1050,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
activity.
\r\n
Format:
activities/{id}"
The name of the activity.
Format: activities/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1113,9 +1072,7 @@ paths:
...
@@ -1113,9 +1072,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1137,9 +1094,7 @@ paths:
...
@@ -1137,9 +1094,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1160,9 +1115,7 @@ paths:
...
@@ -1160,9 +1115,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1190,9 +1143,7 @@ paths:
...
@@ -1190,9 +1143,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1219,9 +1170,7 @@ paths:
...
@@ -1219,9 +1170,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1242,9 +1191,7 @@ paths:
...
@@ -1242,9 +1191,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1271,9 +1218,7 @@ paths:
...
@@ -1271,9 +1218,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}.
Use
\"
memos/-
\"
to
list
all
properties."
The name of the memo.
Format: memos/{id}. Use "memos/-" to list all properties.
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1296,9 +1241,7 @@ paths:
...
@@ -1296,9 +1241,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}.
Use
\"
memos/-
\"
to
rebuild
all
memos."
The name of the memo.
Format: memos/{id}. Use "memos/-" to rebuild all memos.
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1325,9 +1268,7 @@ paths:
...
@@ -1325,9 +1268,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1348,9 +1289,7 @@ paths:
...
@@ -1348,9 +1289,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1377,9 +1316,7 @@ paths:
...
@@ -1377,9 +1316,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1401,9 +1338,7 @@ paths:
...
@@ -1401,9 +1338,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1430,9 +1365,7 @@ paths:
...
@@ -1430,9 +1365,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1454,9 +1387,7 @@ paths:
...
@@ -1454,9 +1387,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1483,9 +1414,7 @@ paths:
...
@@ -1483,9 +1414,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1507,17 +1436,13 @@ paths:
...
@@ -1507,17 +1436,13 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
parent
-
name
:
parent
description
:
|-
description
:
"
The
parent,
who
owns
the
tags.
\r\n
Format:
memos/{id}.
Use
\"
memos/-
\"
to
list
all
tags."
The parent, who owns the tags.
Format: memos/{id}. Use "memos/-" to list all tags.
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
pattern
:
memos/[^/]+
pattern
:
memos/[^/]+
-
name
:
filter
-
name
:
filter
description
:
|-
description
:
"
Filter
is
used
to
filter
memos.
\r\n
Format:
\"
creator
==
'users/{uid}'
&&
visibilities
==
['PUBLIC',
'PROTECTED']
\"
"
Filter is used to filter memos.
Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"
in
:
query
in
:
query
required
:
false
required
:
false
type
:
string
type
:
string
...
@@ -1539,9 +1464,7 @@ paths:
...
@@ -1539,9 +1464,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
parent
-
name
:
parent
description
:
|-
description
:
"
The
parent,
who
owns
the
tags.
\r\n
Format:
memos/{id}.
Use
\"
memos/-
\"
to
delete
all
tags."
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
...
@@ -1572,9 +1495,7 @@ paths:
...
@@ -1572,9 +1495,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
parent
-
name
:
parent
description
:
|-
description
:
"
The
parent,
who
owns
the
tags.
\r\n
Format:
memos/{id}.
Use
\"
memos/-
\"
to
rename
all
tags."
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
...
@@ -1601,10 +1522,7 @@ paths:
...
@@ -1601,10 +1522,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
resource.name
-
name
:
resource.name
description
:
|-
description
:
"
The
name
of
the
resource.
\r\n
Format:
resources/{id}
\r\n
id
is
the
system
generated
unique
identifier."
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
...
@@ -1636,9 +1554,7 @@ paths:
...
@@ -1636,9 +1554,7 @@ paths:
format
:
int64
format
:
int64
memo
:
memo
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
related
memo.
\r\n
Format:
memos/{id}"
The related memo.
Format: memos/{id}
tags
:
tags
:
-
ResourceService
-
ResourceService
/api/v1/{setting.name}
:
/api/v1/{setting.name}
:
...
@@ -1656,9 +1572,7 @@ paths:
...
@@ -1656,9 +1572,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
setting.name
-
name
:
setting.name
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1695,9 +1609,7 @@ paths:
...
@@ -1695,9 +1609,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
user.name
-
name
:
user.name
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1751,9 +1663,7 @@ paths:
...
@@ -1751,9 +1663,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1786,10 +1696,7 @@ paths:
...
@@ -1786,10 +1696,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
resource.
\r\n
Format:
resources/{id}
\r\n
id
is
the
system
generated
unique
identifier."
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
...
@@ -1976,9 +1883,7 @@ definitions:
...
@@ -1976,9 +1883,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
identityProvider.
\r\n
Format:
identityProviders/{id}"
The name of the identityProvider.
Format: identityProviders/{id}
type
:
type
:
$ref
:
'
#/definitions/apiv1IdentityProviderType'
$ref
:
'
#/definitions/apiv1IdentityProviderType'
title
:
title
:
...
@@ -2022,9 +1927,7 @@ definitions:
...
@@ -2022,9 +1927,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
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.
...
@@ -2068,10 +1971,7 @@ definitions:
...
@@ -2068,10 +1971,7 @@ definitions:
weekStartDayOffset
:
weekStartDayOffset
:
type
:
integer
type
:
integer
format
:
int32
format
:
int32
description
:
|-
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."
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.
apiv1WorkspaceMemoRelatedSetting
:
apiv1WorkspaceMemoRelatedSetting
:
type
:
object
type
:
object
properties
:
properties
:
...
@@ -2102,9 +2002,7 @@ definitions:
...
@@ -2102,9 +2002,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
|-
title
:
"
name
is
the
name
of
the
setting.
\r\n
Format:
settings/{setting}"
name is the name of the setting.
Format: settings/{setting}
generalSetting
:
generalSetting
:
$ref
:
'
#/definitions/apiv1WorkspaceGeneralSetting'
$ref
:
'
#/definitions/apiv1WorkspaceGeneralSetting'
storageSetting
:
storageSetting
:
...
@@ -2119,9 +2017,7 @@ definitions:
...
@@ -2119,9 +2017,7 @@ definitions:
description
:
storage_type is the storage type.
description
:
storage_type is the storage type.
filepathTemplate
:
filepathTemplate
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
template
of
file
path.
\r\n
e.g.
assets/{timestamp}_{filename}"
The template of file path.
e.g. assets/{timestamp}_{filename}
uploadSizeLimitMb
:
uploadSizeLimitMb
:
type
:
string
type
:
string
format
:
int64
format
:
int64
...
@@ -2280,9 +2176,7 @@ definitions:
...
@@ -2280,9 +2176,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
activity.
\r\n
Format:
activities/{id}"
The name of the activity.
Format: activities/{id}
creatorId
:
creatorId
:
type
:
integer
type
:
integer
format
:
int32
format
:
int32
...
@@ -2413,9 +2307,7 @@ definitions:
...
@@ -2413,9 +2307,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
inbox.
\r\n
Format:
inboxes/{id}"
The name of the inbox.
Format: inboxes/{id}
sender
:
sender
:
type
:
string
type
:
string
title
:
'
Format:
users/{id}'
title
:
'
Format:
users/{id}'
...
@@ -2535,10 +2427,7 @@ definitions:
...
@@ -2535,10 +2427,7 @@ definitions:
additionalProperties
:
additionalProperties
:
type
:
integer
type
:
integer
format
:
int32
format
:
int32
description
:
|-
description
:
"
tag_amounts
is
the
amount
of
tags.
\r\n
key
is
the
tag
name.
e.g.
\"
tag1
\"
.
\r\n
value
is
the
amount
of
the
tag."
tag_amounts is the amount of tags.
key is the tag name. e.g. "tag1".
value is the amount of the tag.
v1ListMemosResponse
:
v1ListMemosResponse
:
type
:
object
type
:
object
properties
:
properties
:
...
@@ -2549,9 +2438,7 @@ definitions:
...
@@ -2549,9 +2438,7 @@ definitions:
$ref
:
'
#/definitions/v1Memo'
$ref
:
'
#/definitions/v1Memo'
nextPageToken
:
nextPageToken
:
type
:
string
type
:
string
description
:
|-
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."
A token, which can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no subsequent pages.
v1ListResourcesResponse
:
v1ListResourcesResponse
:
type
:
object
type
:
object
properties
:
properties
:
...
@@ -2599,10 +2486,7 @@ definitions:
...
@@ -2599,10 +2486,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}
\r\n
id
is
the
system
generated
id."
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.
...
@@ -2610,9 +2494,7 @@ definitions:
...
@@ -2610,9 +2494,7 @@ definitions:
$ref
:
'
#/definitions/v1RowStatus'
$ref
:
'
#/definitions/v1RowStatus'
creator
:
creator
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
creator.
\r\n
Format:
users/{id}"
The name of the creator.
Format: users/{id}
createTime
:
createTime
:
type
:
string
type
:
string
format
:
date-time
format
:
date-time
...
@@ -2665,9 +2547,7 @@ definitions:
...
@@ -2665,9 +2547,7 @@ definitions:
readOnly
:
true
readOnly
:
true
parent
:
parent
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
parent
memo.
\r\n
Format:
memos/{id}"
The name of the parent memo.
Format: memos/{id}
readOnly
:
true
readOnly
:
true
snippet
:
snippet
:
type
:
string
type
:
string
...
@@ -2692,9 +2572,7 @@ definitions:
...
@@ -2692,9 +2572,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
memo
property.
\r\n
Format:
memos/{id}/properties/{property_id}"
The name of the memo property.
Format: memos/{id}/properties/{property_id}
property
:
property
:
$ref
:
'
#/definitions/v1MemoProperty'
$ref
:
'
#/definitions/v1MemoProperty'
readOnly
:
true
readOnly
:
true
...
@@ -2707,14 +2585,10 @@ definitions:
...
@@ -2707,14 +2585,10 @@ definitions:
properties
:
properties
:
memo
:
memo
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
memo.
\r\n
Format:
\"
memos/{uid}
\"
"
The name of memo.
Format: "memos/{uid}"
relatedMemo
:
relatedMemo
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
related
memo.
\r\n
Format:
\"
memos/{uid}
\"
"
The name of related memo.
Format: "memos/{uid}"
type
:
type
:
$ref
:
'
#/definitions/v1MemoRelationType'
$ref
:
'
#/definitions/v1MemoRelationType'
v1MemoRelationType
:
v1MemoRelationType
:
...
@@ -2866,9 +2740,7 @@ definitions:
...
@@ -2866,9 +2740,7 @@ definitions:
format
:
int32
format
:
int32
creator
:
creator
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
creator.
\r\n
Format:
users/{id}"
The name of the creator.
Format: users/{id}
contentId
:
contentId
:
type
:
string
type
:
string
reactionType
:
reactionType
:
...
@@ -2902,10 +2774,7 @@ definitions:
...
@@ -2902,10 +2774,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
description
:
|-
description
:
"
The
name
of
the
resource.
\r\n
Format:
resources/{id}
\r\n
id
is
the
system
generated
unique
identifier."
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.
...
@@ -2927,9 +2796,7 @@ definitions:
...
@@ -2927,9 +2796,7 @@ definitions:
format
:
int64
format
:
int64
memo
:
memo
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
related
memo.
\r\n
Format:
memos/{id}"
The related memo.
Format: memos/{id}
v1RestoreMarkdownNodesRequest
:
v1RestoreMarkdownNodesRequest
:
type
:
object
type
:
object
properties
:
properties
:
...
@@ -3051,9 +2918,7 @@ definitions:
...
@@ -3051,9 +2918,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
id
:
id
:
type
:
integer
type
:
integer
format
:
int32
format
:
int32
...
@@ -3127,9 +2992,7 @@ definitions:
...
@@ -3127,9 +2992,7 @@ definitions:
properties
:
properties
:
owner
:
owner
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
instance
owner.
\r\n
Format:
\"
users/{id}
\"
"
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/src/components/MemoContent/MermaidBlock.tsx
View file @
8c6682bd
import
{
useColorScheme
}
from
"@mui/joy"
;
import
mermaid
from
"mermaid"
;
import
mermaid
from
"mermaid"
;
import
{
useEffect
,
useRef
}
from
"react"
;
import
{
useEffect
,
useRef
}
from
"react"
;
...
@@ -7,9 +6,8 @@ interface Props {
...
@@ -7,9 +6,8 @@ interface Props {
}
}
const
MermaidBlock
:
React
.
FC
<
Props
>
=
({
content
}:
Props
)
=>
{
const
MermaidBlock
:
React
.
FC
<
Props
>
=
({
content
}:
Props
)
=>
{
const
{
mode
}
=
useColorScheme
();
const
mermaidDockBlock
=
useRef
<
null
>
(
null
);
const
mermaidDockBlock
=
useRef
<
null
>
(
null
);
mermaid
.
initialize
({
startOnLoad
:
false
,
theme
:
mode
});
mermaid
.
initialize
({
startOnLoad
:
false
,
theme
:
"default"
});
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
!
mermaidDockBlock
.
current
)
{
if
(
!
mermaidDockBlock
.
current
)
{
...
...
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