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
609366da
Unverified
Commit
609366da
authored
Apr 05, 2023
by
HappyZ
Committed by
GitHub
Apr 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: add "copy link" for each memo (#1474)
parent
f48d9153
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
26 additions
and
1 deletion
+26
-1
Memo.tsx
web/src/components/Memo.tsx
+8
-0
de.json
web/src/locales/de.json
+1
-0
en.json
web/src/locales/en.json
+1
-0
es.json
web/src/locales/es.json
+1
-0
fr.json
web/src/locales/fr.json
+1
-0
it.json
web/src/locales/it.json
+1
-0
ko.json
web/src/locales/ko.json
+1
-0
nl.json
web/src/locales/nl.json
+1
-0
pl.json
web/src/locales/pl.json
+1
-0
pt_BR.json
web/src/locales/pt_BR.json
+1
-0
ru.json
web/src/locales/ru.json
+1
-0
sl.json
web/src/locales/sl.json
+1
-0
sv.json
web/src/locales/sv.json
+1
-0
tr.json
web/src/locales/tr.json
+1
-0
uk.json
web/src/locales/uk.json
+1
-0
vi.json
web/src/locales/vi.json
+1
-0
zh-Hant.json
web/src/locales/zh-Hant.json
+1
-0
zh.json
web/src/locales/zh.json
+2
-1
No files found.
web/src/components/Memo.tsx
View file @
609366da
...
...
@@ -65,6 +65,11 @@ const Memo: React.FC<Props> = (props: Props) => {
toast
.
success
(
t
(
"message.succeed-copy-content"
));
};
const
handleCopyLink
=
()
=>
{
copy
(
`
${
window
.
location
.
origin
}
/m/
${
memo
.
id
}
`
);
toast
.
success
(
t
(
"message.succeed-copy-link"
));
};
const
handleTogglePinMemoBtnClick
=
async
()
=>
{
try
{
if
(
memo
.
pinned
)
{
...
...
@@ -233,6 +238,9 @@ const Memo: React.FC<Props> = (props: Props) => {
<
span
className=
"btn"
onClick=
{
handleCopyContent
}
>
{
t
(
"memo.copy"
)
}
</
span
>
<
span
className=
"btn"
onClick=
{
handleCopyLink
}
>
{
t
(
"memo.copy-link"
)
}
</
span
>
<
span
className=
"btn"
onClick=
{
handleViewMemoDetailPage
}
>
{
t
(
"memo.view-detail"
)
}
</
span
>
...
...
web/src/locales/de.json
View file @
609366da
...
...
@@ -96,6 +96,7 @@
"memo"
:
{
"view-detail"
:
"Details anzeigen"
,
"copy"
:
"Kopieren"
,
"copy-link"
:
"Link Kopieren"
,
"visibility"
:
{
"private"
:
"Nur für dich sichtbar"
,
"protected"
:
"Für Mitglieder sichtbar"
,
...
...
web/src/locales/en.json
View file @
609366da
...
...
@@ -76,6 +76,7 @@
"memo"
:
{
"view-detail"
:
"View Detail"
,
"copy"
:
"Copy"
,
"copy-link"
:
"Copy Link"
,
"embed"
:
"Embed memo"
,
"archived-memos"
:
"Archived Memos"
,
"no-archived-memos"
:
"No archived memos."
,
...
...
web/src/locales/es.json
View file @
609366da
...
...
@@ -96,6 +96,7 @@
"memo"
:
{
"view-detail"
:
"Ver Detalles"
,
"copy"
:
"Copiar"
,
"copy-link"
:
"Copiar Enlace"
,
"visibility"
:
{
"private"
:
"Solo visible para ti"
,
"protected"
:
"Visible para los miembros"
,
...
...
web/src/locales/fr.json
View file @
609366da
...
...
@@ -96,6 +96,7 @@
"memo"
:
{
"view-detail"
:
"Voir le détail"
,
"copy"
:
"Copier"
,
"copy-link"
:
"Copier le lien"
,
"visibility"
:
{
"private"
:
"Privé"
,
"protected"
:
"Visible par les membres"
,
...
...
web/src/locales/it.json
View file @
609366da
...
...
@@ -96,6 +96,7 @@
"memo"
:
{
"view-detail"
:
"Vedi dettagli"
,
"copy"
:
"Copia"
,
"copy-link"
:
"Copia link"
,
"visibility"
:
{
"private"
:
"Visibile solo a te"
,
"protected"
:
"Visibile ai membri"
,
...
...
web/src/locales/ko.json
View file @
609366da
...
...
@@ -56,6 +56,7 @@
},
"memo"
:
{
"copy"
:
"복사"
,
"copy-link"
:
"링크 복사"
,
"view-detail"
:
"자세히 보기"
,
"visibility"
:
{
"private"
:
"나만 볼 수 있음"
,
...
...
web/src/locales/nl.json
View file @
609366da
...
...
@@ -96,6 +96,7 @@
"memo"
:
{
"view-detail"
:
"Bekijk Detail"
,
"copy"
:
"Kopiëer"
,
"copy-link"
:
"Kopiëer Link"
,
"visibility"
:
{
"private"
:
"Privé"
,
"protected"
:
"Zichtbaar voor leden"
,
...
...
web/src/locales/pl.json
View file @
609366da
...
...
@@ -96,6 +96,7 @@
"memo"
:
{
"view-detail"
:
"Zobacz szczegóły"
,
"copy"
:
"Kopiuj"
,
"copy-link"
:
"Kopiuj odnośnik"
,
"visibility"
:
{
"private"
:
"Widoczne tylko dla ciebie"
,
"protected"
:
"Widoczne dla użytkowników"
,
...
...
web/src/locales/pt_BR.json
View file @
609366da
...
...
@@ -96,6 +96,7 @@
"memo"
:
{
"view-detail"
:
"View Detail"
,
"copy"
:
"Copy"
,
"copy-link"
:
"Copiar Link"
,
"visibility"
:
{
"private"
:
"Visível apenas para você"
,
"protected"
:
"Visível para membros"
,
...
...
web/src/locales/ru.json
View file @
609366da
...
...
@@ -120,6 +120,7 @@
"memo"
:
{
"view-detail"
:
"Подробно"
,
"copy"
:
"Копировать"
,
"copy-link"
:
"Скопировать ссылку"
,
"embed"
:
"Встроить запись"
,
"visibility"
:
{
"private"
:
"Видно только вам"
,
...
...
web/src/locales/sl.json
View file @
609366da
...
...
@@ -116,6 +116,7 @@
"memo"
:
{
"view-detail"
:
"Poglej podrobnosti"
,
"copy"
:
"Kopiraj"
,
"copy-link"
:
"Kopiraj povezavo"
,
"embed"
:
"Vdelaj beležko"
,
"visibility"
:
{
"private"
:
"Vidno samo za vas"
,
...
...
web/src/locales/sv.json
View file @
609366da
...
...
@@ -96,6 +96,7 @@
"memo"
:
{
"view-detail"
:
"Visa detaljer"
,
"copy"
:
"Kopiera"
,
"copy-link"
:
"Kopiera länk"
,
"visibility"
:
{
"private"
:
"Endast synlig för dig"
,
"protected"
:
"Synlig för medlemmar"
,
...
...
web/src/locales/tr.json
View file @
609366da
...
...
@@ -86,6 +86,7 @@
"memo"
:
{
"view-detail"
:
"Detayları görüntüle"
,
"copy"
:
"Kopyala"
,
"copy-link"
:
"Bağlantıyı kopyala"
,
"visibility"
:
{
"private"
:
"Sadece sizin için görünür"
,
"protected"
:
"Sadece kullanıcılara görünür"
,
...
...
web/src/locales/uk.json
View file @
609366da
...
...
@@ -96,6 +96,7 @@
"memo"
:
{
"view-detail"
:
"Деталі"
,
"copy"
:
"Копіювати"
,
"copy-link"
:
"Копіювати посилання"
,
"visibility"
:
{
"private"
:
"Видимий тільки вам"
,
"protected"
:
"Видимий тільки користувачам"
,
...
...
web/src/locales/vi.json
View file @
609366da
...
...
@@ -96,6 +96,7 @@
"memo"
:
{
"view-detail"
:
"Xem Chi Tiết"
,
"copy"
:
"Sao Chép"
,
"copy-link"
:
"Sao Chép"
,
"visibility"
:
{
"private"
:
"Riêng tư"
,
"protected"
:
"Bảo vệ"
,
...
...
web/src/locales/zh-Hant.json
View file @
609366da
...
...
@@ -98,6 +98,7 @@
"memo"
:
{
"view-detail"
:
"查看詳情"
,
"copy"
:
"複製"
,
"copy-link"
:
"複製連結"
,
"visibility"
:
{
"private"
:
"僅自己可見"
,
"protected"
:
"登入使用者可見"
,
...
...
web/src/locales/zh.json
View file @
609366da
...
...
@@ -65,7 +65,7 @@
"fetching-data"
:
"请求数据中..."
,
"upload"
:
"上传"
,
"preview"
:
"预览"
,
"copy-link"
:
"
拷贝
链接"
,
"copy-link"
:
"
复制
链接"
,
"delete-resource"
:
"删除资源"
,
"warning-text"
:
"确定删除这个资源么?此操作不可逆❗"
,
"linked-amount"
:
"链接的 Memo 数量"
,
...
...
@@ -98,6 +98,7 @@
"memo"
:
{
"view-detail"
:
"查看详情"
,
"copy"
:
"复制"
,
"copy-link"
:
"复制链接"
,
"visibility"
:
{
"private"
:
"仅自己可见"
,
"protected"
:
"登录用户可见"
,
...
...
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