Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

feat(web): edit links inline and make them legible

Andrej9431c14469bb
diff --git a/apps/web/src/components/activity/comment-editor.tsx b/apps/web/src/components/activity/comment-editor.tsx
index e4f8b538c..2dacbaec4 100644
--- a/apps/web/src/components/activity/comment-editor.tsx
+++ b/apps/web/src/components/activity/comment-editor.tsx
@@ -3,6 +3,8 @@ import {
type SlashCommand,
type SlashRange,
} from "@/components/editor/slash-commands";
+import { BubbleLinkEditor } from "@/components/editor/bubble-link-editor";
+import { selectionStartAnchor } from "@/components/editor/selection-start-anchor";
import { TableToolbar } from "@/components/editor/table-toolbar";
import { createEditorExtensions } from "@/components/editor/extensions";
import { insertUploadedAsset as insertEditorAsset } from "@/components/editor/insert-uploaded-asset";
@@ -957,20 +959,22 @@ export default function CommentEditor({
});
}, [editor, value]);
+ const [isEditingLink, setIsEditingLink] = useState(false);
+
const setLink = useCallback(() => {
if (readOnly || disabled || !editor) return;
- const previousUrl = editor.getAttributes("link").href as string | undefined;
- const url = window.prompt(
- t("activity:comment.editor.enterUrl"),
- previousUrl || "",
- );
- if (url === null) return;
- if (!url.trim()) {
- editor.chain().focus().extendMarkRange("link").unsetLink().run();
- return;
- }
- editor.chain().focus().extendMarkRange("link").setLink({ href: url }).run();
- }, [disabled, editor, readOnly, t]);
+ setIsEditingLink(true);
+ }, [disabled, editor, readOnly]);
+
+ const bubbleAnchor = useCallback(
+ () => (editor ? selectionStartAnchor(editor) : null),
+ [editor],
+ );
+
+ const bubbleOptions = useMemo(
+ () => ({ onHide: () => setIsEditingLink(false) }),
+ [],
+ );
const resolveCodeBlockNodeData = useCallback(
(pos: number) => {
@@ -1431,6 +1435,8 @@ export default function CommentEditor({
<BubbleMenu
editor={editor}
className="kaneo-comment-editor-bubble"
+ getReferencedVirtualElement={bubbleAnchor}
+ options={bubbleOptions}
shouldShow={({ editor: activeEditor, from, to }) => {
if (activeEditor.isActive("embedBlock")) return false;
if (activeEditor.isActive("image")) return false;
@@ -1438,102 +1444,114 @@ export default function CommentEditor({
return from !== to;
}}
>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-comment-editor-bubble-btn",
- editor.isActive("bold") && "bg-accent text-accent-foreground",
- )}
- onClick={() => editor.chain().focus().toggleBold().run()}
- >
- <Bold className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-comment-editor-bubble-btn",
- editor.isActive("italic") && "bg-accent text-accent-foreground",
- )}
- onClick={() => editor.chain().focus().toggleItalic().run()}
- >
- <Italic className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-comment-editor-bubble-btn",
- editor.isActive("underline") &&
- "bg-accent text-accent-foreground",
- )}
- onClick={() => editor.chain().focus().toggleUnderline().run()}
- >
- <UnderlineIcon className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-comment-editor-bubble-btn",
- editor.isActive("bulletList") &&
- "bg-accent text-accent-foreground",
- )}
- onClick={() => editor.chain().focus().toggleBulletList().run()}
- >
- <List className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-comment-editor-bubble-btn",
- editor.isActive("taskList") && "bg-accent text-accent-foreground",
- )}
- onClick={() => editor.chain().focus().toggleTaskList().run()}
- >
- <ListTodo className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-comment-editor-bubble-btn",
- editor.isActive("orderedList") &&
- "bg-accent text-accent-foreground",
- )}
- onClick={() => editor.chain().focus().toggleOrderedList().run()}
- >
- <ListOrdered className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-comment-editor-bubble-btn",
- editor.isActive("link") && "bg-accent text-accent-foreground",
- )}
- onClick={setLink}
- >
- <Link2 className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className="kaneo-comment-editor-bubble-btn"
- onClick={() => openImagePicker(editor)}
- >
- <Paperclip className="size-3.5" />
- </Button>
+ {isEditingLink ? (
+ <BubbleLinkEditor
+ editor={editor}
+ buttonClassName="kaneo-comment-editor-bubble-btn"
+ onClose={() => setIsEditingLink(false)}
+ />
+ ) : (
+ <>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-comment-editor-bubble-btn",
+ editor.isActive("bold") && "bg-accent text-accent-foreground",
+ )}
+ onClick={() => editor.chain().focus().toggleBold().run()}
+ >
+ <Bold className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-comment-editor-bubble-btn",
+ editor.isActive("italic") &&
+ "bg-accent text-accent-foreground",
+ )}
+ onClick={() => editor.chain().focus().toggleItalic().run()}
+ >
+ <Italic className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-comment-editor-bubble-btn",
+ editor.isActive("underline") &&
+ "bg-accent text-accent-foreground",
+ )}
+ onClick={() => editor.chain().focus().toggleUnderline().run()}
+ >
+ <UnderlineIcon className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-comment-editor-bubble-btn",
+ editor.isActive("bulletList") &&
+ "bg-accent text-accent-foreground",
+ )}
+ onClick={() => editor.chain().focus().toggleBulletList().run()}
+ >
+ <List className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-comment-editor-bubble-btn",
+ editor.isActive("taskList") &&
+ "bg-accent text-accent-foreground",
+ )}
+ onClick={() => editor.chain().focus().toggleTaskList().run()}
+ >
+ <ListTodo className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-comment-editor-bubble-btn",
+ editor.isActive("orderedList") &&
+ "bg-accent text-accent-foreground",
+ )}
+ onClick={() => editor.chain().focus().toggleOrderedList().run()}
+ >
+ <ListOrdered className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-comment-editor-bubble-btn",
+ editor.isActive("link") && "bg-accent text-accent-foreground",
+ )}
+ onClick={setLink}
+ >
+ <Link2 className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className="kaneo-comment-editor-bubble-btn"
+ onClick={() => openImagePicker(editor)}
+ >
+ <Paperclip className="size-3.5" />
+ </Button>
+ </>
+ )}
</BubbleMenu>
)}
{editor && !readOnly && !disabled && showBubbleMenu && (
diff --git a/apps/web/src/components/editor/bubble-link-editor.tsx b/apps/web/src/components/editor/bubble-link-editor.tsx
new file mode 100644
index 000000000..1ba3596f3
--- /dev/null
+++ b/apps/web/src/components/editor/bubble-link-editor.tsx
@@ -0,0 +1,82 @@
+import type { Editor } from "@tiptap/react";
+import { Check, Link2, Unlink } from "lucide-react";
+import { useState } from "react";
+import { useTranslation } from "react-i18next";
+import { Button } from "@/components/ui/button";
+import { normalizeLinkHref } from "./normalize-link-href";
+
+type BubbleLinkEditorProps = {
+ editor: Editor;
+ buttonClassName: string;
+ onClose: () => void;
+};
+
+export function BubbleLinkEditor({
+ editor,
+ buttonClassName,
+ onClose,
+}: BubbleLinkEditorProps) {
+ const { t } = useTranslation();
+ const currentHref = (editor.getAttributes("link").href as string) ?? "";
+ const [value, setValue] = useState(currentHref);
+
+ const finish = (href: string) => {
+ const chain = editor.chain().focus().extendMarkRange("link");
+ if (href) chain.setLink({ href }).run();
+ else chain.unsetLink().run();
+ onClose();
+ };
+
+ return (
+ <div className="flex items-center gap-1 ps-2">
+ <Link2
+ aria-hidden="true"
+ className="size-3.5 shrink-0 text-muted-foreground"
+ />
+ <input
+ autoFocus
+ type="text"
+ inputMode="url"
+ value={value}
+ aria-label={t("common:editor.link.label")}
+ placeholder={t("common:editor.link.placeholder")}
+ onChange={(event) => setValue(event.target.value)}
+ onKeyDown={(event) => {
+ if (event.key === "Enter") {
+ event.preventDefault();
+ finish(normalizeLinkHref(value));
+ }
+ if (event.key === "Escape") {
+ event.preventDefault();
+ event.stopPropagation();
+ editor.commands.focus();
+ onClose();
+ }
+ }}
+ className="h-7 w-56 min-w-0 bg-transparent px-1 text-[13px] text-foreground outline-none placeholder:text-muted-foreground"
+ />
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ aria-label={t("common:editor.link.apply")}
+ className={buttonClassName}
+ onClick={() => finish(normalizeLinkHref(value))}
+ >
+ <Check className="size-3.5" />
+ </Button>
+ {currentHref && (
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ aria-label={t("common:editor.link.remove")}
+ className={buttonClassName}
+ onClick={() => finish("")}
+ >
+ <Unlink className="size-3.5" />
+ </Button>
+ )}
+ </div>
+ );
+}
diff --git a/apps/web/src/components/editor/normalize-link-href.test.ts b/apps/web/src/components/editor/normalize-link-href.test.ts
new file mode 100644
index 000000000..a96581cb0
--- /dev/null
+++ b/apps/web/src/components/editor/normalize-link-href.test.ts
@@ -0,0 +1,32 @@
+import { describe, expect, it } from "vite-plus/test";
+import { normalizeLinkHref } from "./normalize-link-href";
+
+describe("normalizeLinkHref", () => {
+ it("adds https to bare domains", () => {
+ expect(normalizeLinkHref(" andrje.sh ")).toBe("https://andrje.sh");
+ expect(normalizeLinkHref("kaneo.app/docs?x=1")).toBe(
+ "https://kaneo.app/docs?x=1",
+ );
+ });
+
+ it("keeps links that already have a scheme or are relative", () => {
+ expect(normalizeLinkHref("http://localhost:5173")).toBe(
+ "http://localhost:5173",
+ );
+ expect(normalizeLinkHref("mailto:[email protected]")).toBe(
+ "mailto:[email protected]",
+ );
+ expect(normalizeLinkHref("/dashboard")).toBe("/dashboard");
+ expect(normalizeLinkHref("#notes")).toBe("#notes");
+ });
+
+ it("turns email addresses into mailto links", () => {
+ expect(normalizeLinkHref("[email protected]")).toBe(
+ "mailto:[email protected]",
+ );
+ });
+
+ it("returns an empty string for blank input", () => {
+ expect(normalizeLinkHref(" ")).toBe("");
+ });
+});
diff --git a/apps/web/src/components/editor/normalize-link-href.ts b/apps/web/src/components/editor/normalize-link-href.ts
new file mode 100644
index 000000000..948efdab2
--- /dev/null
+++ b/apps/web/src/components/editor/normalize-link-href.ts
@@ -0,0 +1,9 @@
+const HAS_SCHEME = /^[a-z][a-z\d+.-]*:/i;
+
+export function normalizeLinkHref(input: string) {
+ const value = input.trim();
+ if (!value) return "";
+ if (HAS_SCHEME.test(value) || /^[/#?]/.test(value)) return value;
+ if (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value)) return `mailto:${value}`;
+ return `https://${value}`;
+}
diff --git a/apps/web/src/components/editor/selection-start-anchor.ts b/apps/web/src/components/editor/selection-start-anchor.ts
new file mode 100644
index 000000000..28f5c9def
--- /dev/null
+++ b/apps/web/src/components/editor/selection-start-anchor.ts
@@ -0,0 +1,34 @@
+import { AllSelection, Selection, TextSelection } from "@tiptap/pm/state";
+import type { Editor } from "@tiptap/react";
+
+export function selectionStartAnchor(editor: Editor) {
+ const { state, view } = editor;
+ const { selection } = state;
+ if (
+ !(selection instanceof TextSelection) &&
+ !(selection instanceof AllSelection)
+ )
+ return null;
+
+ const first = Selection.findFrom(state.doc.resolve(selection.from), 1, true);
+ if (!first || first.from >= selection.to) return null;
+
+ const start = first.from;
+ const end = Math.min(selection.to, state.doc.resolve(start).end());
+ const startCoords = view.coordsAtPos(start, 1);
+ const endCoords = view.coordsAtPos(end, -1);
+ const sameLine = Math.abs(endCoords.top - startCoords.top) < 2;
+ const left = startCoords.left;
+ const right = sameLine ? Math.max(endCoords.right, left) : left;
+ const rect = new DOMRect(
+ left,
+ startCoords.top,
+ right - left,
+ startCoords.bottom - startCoords.top,
+ );
+
+ return {
+ getBoundingClientRect: () => rect,
+ getClientRects: () => [rect],
+ };
+}
diff --git a/apps/web/src/components/task/task-description.tsx b/apps/web/src/components/task/task-description.tsx
index b682fb569..a950ad68c 100644
--- a/apps/web/src/components/task/task-description.tsx
+++ b/apps/web/src/components/task/task-description.tsx
@@ -3,6 +3,8 @@ import {
type SlashCommand,
type SlashRange,
} from "@/components/editor/slash-commands";
+import { BubbleLinkEditor } from "@/components/editor/bubble-link-editor";
+import { selectionStartAnchor } from "@/components/editor/selection-start-anchor";
import { TableToolbar } from "@/components/editor/table-toolbar";
import { createEditorExtensions } from "@/components/editor/extensions";
import { insertUploadedAsset as insertEditorAsset } from "@/components/editor/insert-uploaded-asset";
@@ -696,29 +698,21 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {
slashMenuRef.current = slashMenu;
}, [slashMenu]);
- const setLink = useCallback(
- (prefilledUrl?: string) => {
- if (!canEditRef.current || !editor) return;
- const previousUrl = editor.getAttributes("link").href as
- | string
- | undefined;
- const url = window.prompt(
- t("tasks:detail.editor.enterUrl"),
- prefilledUrl || previousUrl || "",
- );
- if (url === null) return;
- if (url.trim() === "") {
- editor.chain().focus().extendMarkRange("link").unsetLink().run();
- return;
- }
- editor
- .chain()
- .focus()
- .extendMarkRange("link")
- .setLink({ href: url })
- .run();
- },
- [editor, t],
+ const [isEditingLink, setIsEditingLink] = useState(false);
+
+ const setLink = useCallback(() => {
+ if (!canEditRef.current || !editor) return;
+ setIsEditingLink(true);
+ }, [editor]);
+
+ const bubbleAnchor = useCallback(
+ () => (editor ? selectionStartAnchor(editor) : null),
+ [editor],
+ );
+
+ const bubbleOptions = useMemo(
+ () => ({ onHide: () => setIsEditingLink(false) }),
+ [],
);
const filteredSlashCommands = useMemo(() => {
@@ -1340,6 +1334,8 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {
<BubbleMenu
editor={editor}
className="kaneo-tiptap-bubble"
+ getReferencedVirtualElement={bubbleAnchor}
+ options={bubbleOptions}
shouldShow={({ editor: activeEditor, from, to }) => {
if (activeEditor.isActive("embedBlock")) return false;
if (activeEditor.isActive("image")) return false;
@@ -1347,170 +1343,183 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {
return from !== to;
}}
>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-tiptap-bubble-btn",
- editor.isActive("heading", { level: 2 }) &&
- "bg-accent text-accent-foreground",
- )}
- onClick={() =>
- editor.chain().focus().toggleHeading({ level: 2 }).run()
- }
- >
- <Heading2 className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-tiptap-bubble-btn",
- editor.isActive("bulletList") &&
- "bg-accent text-accent-foreground",
- )}
- onClick={() => editor.chain().focus().toggleBulletList().run()}
- >
- <List className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-tiptap-bubble-btn",
- editor.isActive("taskList") && "bg-accent text-accent-foreground",
- )}
- onClick={() => editor.chain().focus().toggleTaskList().run()}
- >
- <ListTodo className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-tiptap-bubble-btn",
- editor.isActive("orderedList") &&
- "bg-accent text-accent-foreground",
- )}
- onClick={() => editor.chain().focus().toggleOrderedList().run()}
- >
- <ListOrdered className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-tiptap-bubble-btn",
- editor.isActive("blockquote") &&
- "bg-accent text-accent-foreground",
- )}
- onClick={() => editor.chain().focus().toggleBlockquote().run()}
- >
- <Quote className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-tiptap-bubble-btn",
- editor.isActive("codeBlock") &&
- "bg-accent text-accent-foreground",
- )}
- onClick={() => editor.chain().focus().toggleCodeBlock().run()}
- >
- <Braces className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className="kaneo-tiptap-bubble-btn"
- onClick={() =>
- editor.chain().focus().insertTable({ cols: 3, rows: 3 }).run()
- }
- >
- <Table2 className="size-3.5" />
- </Button>
- <span className="kaneo-tiptap-bubble-separator" />
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-tiptap-bubble-btn",
- editor.isActive("bold") && "bg-accent text-accent-foreground",
- )}
- onClick={() => editor.chain().focus().toggleBold().run()}
- >
- <Bold className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-tiptap-bubble-btn",
- editor.isActive("italic") && "bg-accent text-accent-foreground",
- )}
- onClick={() => editor.chain().focus().toggleItalic().run()}
- >
- <Italic className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-tiptap-bubble-btn",
- editor.isActive("underline") &&
- "bg-accent text-accent-foreground",
- )}
- onClick={() => editor.chain().focus().toggleUnderline().run()}
- >
- <UnderlineIcon className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-tiptap-bubble-btn",
- editor.isActive("strike") && "bg-accent text-accent-foreground",
- )}
- onClick={() => editor.chain().focus().toggleStrike().run()}
- >
- <Strikethrough className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-tiptap-bubble-btn",
- editor.isActive("code") && "bg-accent text-accent-foreground",
- )}
- onClick={() => editor.chain().focus().toggleCode().run()}
- >
- <Code className="size-3.5" />
- </Button>
- <Button
- type="button"
- variant="ghost"
- size="xs"
- className={cn(
- "kaneo-tiptap-bubble-btn",
- editor.isActive("link") && "bg-accent text-accent-foreground",
- )}
- onClick={() => setLink()}
- >
- <Link2 className="size-3.5" />
- </Button>
+ {isEditingLink ? (
+ <BubbleLinkEditor
+ editor={editor}
+ buttonClassName="kaneo-tiptap-bubble-btn"
+ onClose={() => setIsEditingLink(false)}
+ />
+ ) : (
+ <>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-tiptap-bubble-btn",
+ editor.isActive("heading", { level: 2 }) &&
+ "bg-accent text-accent-foreground",
+ )}
+ onClick={() =>
+ editor.chain().focus().toggleHeading({ level: 2 }).run()
+ }
+ >
+ <Heading2 className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-tiptap-bubble-btn",
+ editor.isActive("bulletList") &&
+ "bg-accent text-accent-foreground",
+ )}
+ onClick={() => editor.chain().focus().toggleBulletList().run()}
+ >
+ <List className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-tiptap-bubble-btn",
+ editor.isActive("taskList") &&
+ "bg-accent text-accent-foreground",
+ )}
+ onClick={() => editor.chain().focus().toggleTaskList().run()}
+ >
+ <ListTodo className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-tiptap-bubble-btn",
+ editor.isActive("orderedList") &&
+ "bg-accent text-accent-foreground",
+ )}
+ onClick={() => editor.chain().focus().toggleOrderedList().run()}
+ >
+ <ListOrdered className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-tiptap-bubble-btn",
+ editor.isActive("blockquote") &&
+ "bg-accent text-accent-foreground",
+ )}
+ onClick={() => editor.chain().focus().toggleBlockquote().run()}
+ >
+ <Quote className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-tiptap-bubble-btn",
+ editor.isActive("codeBlock") &&
+ "bg-accent text-accent-foreground",
+ )}
+ onClick={() => editor.chain().focus().toggleCodeBlock().run()}
+ >
+ <Braces className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className="kaneo-tiptap-bubble-btn"
+ onClick={() =>
+ editor.chain().focus().insertTable({ cols: 3, rows: 3 }).run()
+ }
+ >
+ <Table2 className="size-3.5" />
+ </Button>
+ <span className="kaneo-tiptap-bubble-separator" />
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-tiptap-bubble-btn",
+ editor.isActive("bold") && "bg-accent text-accent-foreground",
+ )}
+ onClick={() => editor.chain().focus().toggleBold().run()}
+ >
+ <Bold className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-tiptap-bubble-btn",
+ editor.isActive("italic") &&
+ "bg-accent text-accent-foreground",
+ )}
+ onClick={() => editor.chain().focus().toggleItalic().run()}
+ >
+ <Italic className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-tiptap-bubble-btn",
+ editor.isActive("underline") &&
+ "bg-accent text-accent-foreground",
+ )}
+ onClick={() => editor.chain().focus().toggleUnderline().run()}
+ >
+ <UnderlineIcon className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-tiptap-bubble-btn",
+ editor.isActive("strike") &&
+ "bg-accent text-accent-foreground",
+ )}
+ onClick={() => editor.chain().focus().toggleStrike().run()}
+ >
+ <Strikethrough className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-tiptap-bubble-btn",
+ editor.isActive("code") && "bg-accent text-accent-foreground",
+ )}
+ onClick={() => editor.chain().focus().toggleCode().run()}
+ >
+ <Code className="size-3.5" />
+ </Button>
+ <Button
+ type="button"
+ variant="ghost"
+ size="xs"
+ className={cn(
+ "kaneo-tiptap-bubble-btn",
+ editor.isActive("link") && "bg-accent text-accent-foreground",
+ )}
+ onClick={setLink}
+ >
+ <Link2 className="size-3.5" />
+ </Button>
+ </>
+ )}
</BubbleMenu>
)}
diff --git a/apps/web/src/index.css b/apps/web/src/index.css
index 6ab9a0e9b..566427354 100644
--- a/apps/web/src/index.css
+++ b/apps/web/src/index.css
@@ -663,22 +663,15 @@ input:-webkit-autofill:active {
}
.kaneo-tiptap-content .ProseMirror a {
- color: var(--primary);
+ color: var(--info-foreground);
text-decoration-line: underline;
text-decoration-thickness: 1px;
- text-underline-offset: 2px;
- text-decoration-color: color-mix(
- in srgb,
- var(--primary) 68%,
- transparent
- );
- transition:
- color 0.12s ease,
- text-decoration-color 0.12s ease;
+ text-underline-offset: 3px;
+ text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
+ transition: text-decoration-color 0.12s ease;
}
.kaneo-tiptap-content .ProseMirror a:hover {
- color: color-mix(in srgb, var(--primary) 84%, var(--foreground));
text-decoration-color: currentColor;
}
@@ -1341,11 +1334,18 @@ input:-webkit-autofill:active {
.kaneo-comment-editor-prose a,
.kaneo-tiptap-prose a {
- color: color-mix(in srgb, var(--foreground) 88%, #4c9aff 12%);
+ color: var(--info-foreground);
cursor: pointer;
- text-decoration: underline;
- text-decoration-color: color-mix(in srgb, var(--ring) 44%, transparent);
- text-underline-offset: 2px;
+ text-decoration-line: underline;
+ text-decoration-thickness: 1px;
+ text-underline-offset: 3px;
+ text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
+ transition: text-decoration-color 0.12s ease;
+ }
+
+ .kaneo-comment-editor-prose a:hover,
+ .kaneo-tiptap-prose a:hover {
+ text-decoration-color: currentColor;
}
.kaneo-comment-editor-prose :not(pre) > code {
diff --git a/i18n/az-AZ.json b/i18n/az-AZ.json
index 8b0feed25..bc59116c7 100644
--- a/i18n/az-AZ.json
+++ b/i18n/az-AZ.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "Keçid URL-i",
+ "placeholder": "Keçidi yapışdırın və ya yazın…",
+ "apply": "Keçidi tətbiq et",
+ "remove": "Keçidi sil"
+ }
}
},
"auth": {
@@ -2576,7 +2584,6 @@
"imageUploaded": "Şəkil yükləndi",
"fileAttached": "Fayl əlavə edildi",
"failedToUploadFile": "Faylı yükləmək alınmadı",
- "enterUrl": "URL daxil edin",
"plaintext": "Sadə mətn",
"autoDetect": "Avtomatik müəyyən et",
"slashGroupText": "Mətn",
@@ -2705,7 +2712,6 @@
"ariaLabel": "Tapşırıq təsviri redaktoru",
"placeholder": "Təsvir yazın...",
"previewImage": "Şəklə önbaxış",
- "enterUrl": "URL daxil edin",
"autoDetect": "Avtomatik müəyyən et",
"copyCode": "Kodu kopyala",
"copy": "Kopyala",
diff --git a/i18n/de-DE.json b/i18n/de-DE.json
index fc76165e1..c851a24e9 100644
--- a/i18n/de-DE.json
+++ b/i18n/de-DE.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "Link-URL",
+ "placeholder": "Link einfügen oder eingeben…",
+ "apply": "Link übernehmen",
+ "remove": "Link entfernen"
+ }
}
},
"auth": {
@@ -2576,7 +2584,6 @@
"imageUploaded": "Bild hochgeladen",
"fileAttached": "Datei angehängt",
"failedToUploadFile": "Datei konnte nicht hochgeladen werden",
- "enterUrl": "URL eingeben",
"plaintext": "Klartext",
"autoDetect": "Automatisch erkennen",
"slashGroupText": "Text",
@@ -2705,7 +2712,6 @@
"ariaLabel": "Editor für Aufgabenbeschreibung",
"placeholder": "Schreibe eine Beschreibung...",
"previewImage": "Bildvorschau",
- "enterUrl": "URL eingeben",
"autoDetect": "Automatisch erkennen",
"copyCode": "Code kopieren",
"copy": "Kopieren",
diff --git a/i18n/el-GR.json b/i18n/el-GR.json
index ba3874ac3..d6d43e4fd 100644
--- a/i18n/el-GR.json
+++ b/i18n/el-GR.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "URL συνδέσμου",
+ "placeholder": "Επικολλήστε ή πληκτρολογήστε έναν σύνδεσμο…",
+ "apply": "Εφαρμογή συνδέσμου",
+ "remove": "Αφαίρεση συνδέσμου"
+ }
}
},
"auth": {
@@ -2576,7 +2584,6 @@
"imageUploaded": "Η εικόνα μεταφορτώθηκε",
"fileAttached": "Το αρχείο επισυνάφθηκε",
"failedToUploadFile": "Αποτυχία μεταφόρτωσης αρχείου",
- "enterUrl": "Εισαγάγετε URL",
"plaintext": "Απλό κείμενο",
"autoDetect": "Αυτόματη ανίχνευση",
"slashGroupText": "Κείμενο",
@@ -2705,7 +2712,6 @@
"ariaLabel": "Επεξεργαστής περιγραφής εργασίας",
"placeholder": "Γράψτε μια περιγραφή...",
"previewImage": "Προεπισκόπηση εικόνας",
- "enterUrl": "Εισαγάγετε URL",
"autoDetect": "Αυτόματη ανίχνευση",
"copyCode": "Αντιγραφή κώδικα",
"copy": "Αντιγραφή",
diff --git a/i18n/en-US.json b/i18n/en-US.json
index bbabe54b1..f2278901f 100644
--- a/i18n/en-US.json
+++ b/i18n/en-US.json
@@ -152,6 +152,14 @@
"crimson": "Crimson"
}
}
+ },
+ "editor": {
+ "link": {
+ "label": "Link URL",
+ "placeholder": "Paste or type a link…",
+ "apply": "Apply link",
+ "remove": "Remove link"
+ }
}
},
"auth": {
@@ -2578,7 +2586,6 @@
"imageUploaded": "Image uploaded",
"fileAttached": "File attached",
"failedToUploadFile": "Failed to upload file",
- "enterUrl": "Enter URL",
"plaintext": "Plaintext",
"autoDetect": "Auto detect",
"slashGroupText": "Text",
@@ -2706,7 +2713,6 @@
"ariaLabel": "Task description editor",
"placeholder": "Write a description...",
"previewImage": "Preview image",
- "enterUrl": "Enter URL",
"autoDetect": "Auto detect",
"copyCode": "Copy code",
"copy": "Copy",
diff --git a/i18n/es-ES.json b/i18n/es-ES.json
index 2d25df98c..769d43de2 100644
--- a/i18n/es-ES.json
+++ b/i18n/es-ES.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "URL del enlace",
+ "placeholder": "Pega o escribe un enlace…",
+ "apply": "Aplicar enlace",
+ "remove": "Quitar enlace"
+ }
}
},
"auth": {
@@ -2622,7 +2630,6 @@
"imageUploaded": "Imagen subida",
"fileAttached": "Fichero adjuntado",
"failedToUploadFile": "Error al subir fichero",
- "enterUrl": "Introduce la URL",
"plaintext": "Texto plano",
"autoDetect": "Detectar automáticamente",
"slashGroupText": "Texto",
@@ -2751,7 +2758,6 @@
"ariaLabel": "Editor de descripción de tareas",
"placeholder": "Escribe una descripción...",
"previewImage": "Vista previa de imagen",
- "enterUrl": "Introduce URL",
"autoDetect": "Auto detectar",
"copyCode": "Copiar código",
"copy": "Copiar",
diff --git a/i18n/fr-FR.json b/i18n/fr-FR.json
index 2cb766c6a..19cc87601 100644
--- a/i18n/fr-FR.json
+++ b/i18n/fr-FR.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "URL du lien",
+ "placeholder": "Collez ou saisissez un lien…",
+ "apply": "Appliquer le lien",
+ "remove": "Supprimer le lien"
+ }
}
},
"auth": {
@@ -2622,7 +2630,6 @@
"imageUploaded": "Image téléversée",
"fileAttached": "Fichier joint",
"failedToUploadFile": "Échec du téléversement du fichier",
- "enterUrl": "Entrer une URL",
"plaintext": "Texte brut",
"autoDetect": "Détection automatique",
"slashGroupText": "Texte",
@@ -2751,7 +2758,6 @@
"ariaLabel": "Éditeur de description de tâche",
"placeholder": "Écrire une description...",
"previewImage": "Aperçu de l'image",
- "enterUrl": "Entrer une URL",
"autoDetect": "Détection automatique",
"copyCode": "Copier le code",
"copy": "Copier",
diff --git a/i18n/hi-IN.json b/i18n/hi-IN.json
index 35d2aa539..447df815d 100644
--- a/i18n/hi-IN.json
+++ b/i18n/hi-IN.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "लिंक URL",
+ "placeholder": "लिंक पेस्ट करें या लिखें…",
+ "apply": "लिंक लागू करें",
+ "remove": "लिंक हटाएँ"
+ }
}
},
"auth": {
@@ -2576,7 +2584,6 @@
"imageUploaded": "चित्र अपलोड किया गया",
"fileAttached": "फ़ाइल संलग्न की गई",
"failedToUploadFile": "फ़ाइल अपलोड करने में विफल",
- "enterUrl": "URL दर्ज करें",
"plaintext": "सादा पाठ",
"autoDetect": "स्वतः पहचान",
"slashGroupText": "पाठ",
@@ -2705,7 +2712,6 @@
"ariaLabel": "कार्य विवरण संपादक",
"placeholder": "विवरण लिखें...",
"previewImage": "पूर्वावलोकन चित्र",
- "enterUrl": "URL दर्ज करें",
"autoDetect": "स्वतः पहचान",
"copyCode": "कोड कॉपी करें",
"copy": "कॉपी करें",
diff --git a/i18n/id-ID.json b/i18n/id-ID.json
index 27872ebf4..ffa44de26 100644
--- a/i18n/id-ID.json
+++ b/i18n/id-ID.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "URL tautan",
+ "placeholder": "Tempel atau ketik tautan…",
+ "apply": "Terapkan tautan",
+ "remove": "Hapus tautan"
+ }
}
},
"auth": {
@@ -2530,7 +2538,6 @@
"imageUploaded": "Gambar diunggah",
"fileAttached": "File dilampirkan",
"failedToUploadFile": "Gagal mengunggah file",
- "enterUrl": "Masukkan URL",
"plaintext": "Teks biasa",
"autoDetect": "Deteksi otomatis",
"slashGroupText": "Teks",
@@ -2659,7 +2666,6 @@
"ariaLabel": "Editor deskripsi tugas",
"placeholder": "Tulis deskripsi...",
"previewImage": "Pratinjau gambar",
- "enterUrl": "Masukkan URL",
"autoDetect": "Deteksi otomatis",
"copyCode": "Salin kode",
"copy": "Salin",
diff --git a/i18n/it-IT.json b/i18n/it-IT.json
index f758a32c5..ed8a5b390 100644
--- a/i18n/it-IT.json
+++ b/i18n/it-IT.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "URL del link",
+ "placeholder": "Incolla o digita un link…",
+ "apply": "Applica link",
+ "remove": "Rimuovi link"
+ }
}
},
"auth": {
@@ -2622,7 +2630,6 @@
"imageUploaded": "Immagine caricata",
"fileAttached": "File allegato",
"failedToUploadFile": "Caricamento file fallito",
- "enterUrl": "Inserisci URL",
"plaintext": "Testo semplice",
"autoDetect": "Rilevamento automatico",
"slashGroupText": "Testo",
@@ -2751,7 +2758,6 @@
"ariaLabel": "Editor descrizione attività",
"placeholder": "Scrivi una descrizione...",
"previewImage": "Anteprima immagine",
- "enterUrl": "Inserisci URL",
"autoDetect": "Rilevamento automatico",
"copyCode": "Copia codice",
"copy": "Copia",
diff --git a/i18n/ja-JP.json b/i18n/ja-JP.json
index 0b3d71922..b32cbecf6 100644
--- a/i18n/ja-JP.json
+++ b/i18n/ja-JP.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "リンク URL",
+ "placeholder": "リンクを貼り付けるか入力…",
+ "apply": "リンクを適用",
+ "remove": "リンクを削除"
+ }
}
},
"auth": {
@@ -2530,7 +2538,6 @@
"imageUploaded": "画像をアップロードしました",
"fileAttached": "ファイルを添付しました",
"failedToUploadFile": "ファイルのアップロードに失敗しました",
- "enterUrl": "URLを入力",
"plaintext": "プレーンテキスト",
"autoDetect": "自動検出",
"slashGroupText": "テキスト",
@@ -2659,7 +2666,6 @@
"ariaLabel": "タスク説明エディター",
"placeholder": "説明を入力...",
"previewImage": "画像をプレビュー",
- "enterUrl": "URLを入力",
"autoDetect": "自動検出",
"copyCode": "コードをコピー",
"copy": "コピー",
diff --git a/i18n/ko-KR.json b/i18n/ko-KR.json
index 72e3c4fa4..c35b2f0f2 100644
--- a/i18n/ko-KR.json
+++ b/i18n/ko-KR.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "링크 URL",
+ "placeholder": "링크를 붙여넣거나 입력하세요…",
+ "apply": "링크 적용",
+ "remove": "링크 제거"
+ }
}
},
"auth": {
@@ -2530,7 +2538,6 @@
"imageUploaded": "이미지가 업로드되었습니다",
"fileAttached": "파일이 첨부되었습니다",
"failedToUploadFile": "파일 업로드에 실패했습니다",
- "enterUrl": "URL 입력",
"plaintext": "일반 텍스트",
"autoDetect": "자동 감지",
"slashGroupText": "텍스트",
@@ -2659,7 +2666,6 @@
"ariaLabel": "작업 설명 편집기",
"placeholder": "설명을 작성하세요...",
"previewImage": "이미지 미리보기",
- "enterUrl": "URL 입력",
"autoDetect": "자동 감지",
"copyCode": "코드 복사",
"copy": "복사",
diff --git a/i18n/mk-MK.json b/i18n/mk-MK.json
index 0ad40c7fe..13790cefc 100644
--- a/i18n/mk-MK.json
+++ b/i18n/mk-MK.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "URL на врската",
+ "placeholder": "Залепете или внесете врска…",
+ "apply": "Примени врска",
+ "remove": "Отстрани врска"
+ }
}
},
"auth": {
@@ -2576,7 +2584,6 @@
"imageUploaded": "Сликата е прикачена",
"fileAttached": "Датотеката е прикачена",
"failedToUploadFile": "Неуспешно прикачување на датотека",
- "enterUrl": "Внеси URL",
"plaintext": "Обичен текст",
"autoDetect": "Автоматско откривање",
"slashGroupText": "Текст",
@@ -2705,7 +2712,6 @@
"ariaLabel": "Уредувач на опис на задача",
"placeholder": "Напиши опис...",
"previewImage": "Преглед на слика",
- "enterUrl": "Внеси URL",
"autoDetect": "Автоматско откривање",
"copyCode": "Копирај код",
"copy": "Копирај",
diff --git a/i18n/nl-NL.json b/i18n/nl-NL.json
index 33adc9a35..8e03d9962 100644
--- a/i18n/nl-NL.json
+++ b/i18n/nl-NL.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "Link-URL",
+ "placeholder": "Plak of typ een link…",
+ "apply": "Link toepassen",
+ "remove": "Link verwijderen"
+ }
}
},
"auth": {
@@ -2576,7 +2584,6 @@
"imageUploaded": "Afbeelding geüpload",
"fileAttached": "Bestand bijgevoegd",
"failedToUploadFile": "Uploaden bestand mislukt",
- "enterUrl": "URL invoeren",
"plaintext": "Platte tekst",
"autoDetect": "Automatisch detecteren",
"slashGroupText": "Tekst",
@@ -2705,7 +2712,6 @@
"ariaLabel": "Taakbeschrijving editor",
"placeholder": "Schrijf een beschrijving...",
"previewImage": "Voorbeeld afbeelding",
- "enterUrl": "URL invoeren",
"autoDetect": "Automatisch detecteren",
"copyCode": "Code kopiëren",
"copy": "Kopiëren",
diff --git a/i18n/pl-PL.json b/i18n/pl-PL.json
index af0829df0..75e3ecf73 100644
--- a/i18n/pl-PL.json
+++ b/i18n/pl-PL.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "Adres URL linku",
+ "placeholder": "Wklej lub wpisz link…",
+ "apply": "Zastosuj link",
+ "remove": "Usuń link"
+ }
}
},
"auth": {
@@ -1093,7 +1101,6 @@
"embedErrorInvalidUrl": "Wprowadź prawidłowy adres URL",
"embedErrorYoutubeOnly": "Można osadzać tylko linki YouTube.",
"embedVideo": "Osadź wideo",
- "enterUrl": "Wprowadź adres URL",
"failedToUploadFile": "Nie udało się przesłać pliku",
"fileAttached": "Dołączono plik",
"hintEsc": "Esc",
@@ -3181,7 +3188,6 @@
"onlyYoutubeInline": "Można osadzać tylko adresy URL YouTube. Użyj trybu linku.",
"submit": "Osadź"
},
- "enterUrl": "Wprowadź adres URL",
"languages": {
"bash": "Bash",
"clojure": "Clojure",
diff --git a/i18n/pt-BR.json b/i18n/pt-BR.json
index 940060377..45b393d83 100644
--- a/i18n/pt-BR.json
+++ b/i18n/pt-BR.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "URL do link",
+ "placeholder": "Cole ou digite um link…",
+ "apply": "Aplicar link",
+ "remove": "Remover link"
+ }
}
},
"auth": {
@@ -2622,7 +2630,6 @@
"imageUploaded": "Imagem enviada",
"fileAttached": "Arquivo anexado",
"failedToUploadFile": "Falha ao enviar arquivo",
- "enterUrl": "Digite a URL",
"plaintext": "Texto simples",
"autoDetect": "Detecção automática",
"slashGroupText": "Texto",
@@ -2751,7 +2758,6 @@
"ariaLabel": "Editor de descrição da tarefa",
"placeholder": "Escreva uma descrição...",
"previewImage": "Pré-visualizar imagem",
- "enterUrl": "Digite a URL",
"autoDetect": "Detecção automática",
"copyCode": "Copiar código",
"copy": "Copiar",
diff --git a/i18n/ru-RU.json b/i18n/ru-RU.json
index 087af6397..0d1580f06 100644
--- a/i18n/ru-RU.json
+++ b/i18n/ru-RU.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "URL ссылки",
+ "placeholder": "Вставьте или введите ссылку…",
+ "apply": "Применить ссылку",
+ "remove": "Удалить ссылку"
+ }
}
},
"auth": {
@@ -2674,7 +2682,6 @@
"imageUploaded": "Изображение загружено",
"fileAttached": "Файл прикреплён",
"failedToUploadFile": "Не удалось загрузить файл",
- "enterUrl": "Введите URL",
"plaintext": "Простой текст",
"autoDetect": "Автоопределение",
"slashGroupText": "Текст",
@@ -2805,7 +2812,6 @@
"ariaLabel": "Редактор описания задачи",
"placeholder": "Напишите описание...",
"previewImage": "Предпросмотр изображения",
- "enterUrl": "Введите URL",
"autoDetect": "Автоопределение",
"copyCode": "Скопировать код",
"copy": "Копировать",
diff --git a/i18n/tr-TR.json b/i18n/tr-TR.json
index 716306333..3c40e7180 100644
--- a/i18n/tr-TR.json
+++ b/i18n/tr-TR.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "Bağlantı URL'si",
+ "placeholder": "Bir bağlantı yapıştırın veya yazın…",
+ "apply": "Bağlantıyı uygula",
+ "remove": "Bağlantıyı kaldır"
+ }
}
},
"auth": {
@@ -2576,7 +2584,6 @@
"imageUploaded": "Görsel yüklendi",
"fileAttached": "Dosya eklendi",
"failedToUploadFile": "Dosya yüklenemedi",
- "enterUrl": "URL girin",
"plaintext": "Düz metin",
"autoDetect": "Otomatik algıla",
"slashGroupText": "Metin",
@@ -2705,7 +2712,6 @@
"ariaLabel": "Talep açıklama düzenleyici",
"placeholder": "Açıklama yazın...",
"previewImage": "Önizleme görseli",
- "enterUrl": "URL girin",
"autoDetect": "Otomatik algıla",
"copyCode": "Kodu kopyala",
"copy": "Kopyala",
diff --git a/i18n/uk-UA.json b/i18n/uk-UA.json
index 533d084a4..b0207d1c9 100644
--- a/i18n/uk-UA.json
+++ b/i18n/uk-UA.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "URL посилання",
+ "placeholder": "Вставте або введіть посилання…",
+ "apply": "Застосувати посилання",
+ "remove": "Видалити посилання"
+ }
}
},
"auth": {
@@ -2666,7 +2674,6 @@
"imageUploaded": "Зображення завантажено",
"fileAttached": "Файл прикріплено",
"failedToUploadFile": "Не вдалося завантажити файл",
- "enterUrl": "Введіть URL",
"plaintext": "Звичайний текст",
"autoDetect": "Автовизначення",
"slashGroupText": "Текст",
@@ -2797,7 +2804,6 @@
"ariaLabel": "Редактор опису завдання",
"placeholder": "Напишіть опис...",
"previewImage": "Попередній перегляд зображення",
- "enterUrl": "Введіть URL",
"autoDetect": "Автовизначення",
"copyCode": "Копіювати код",
"copy": "Копіювати",
diff --git a/i18n/vi-VN.json b/i18n/vi-VN.json
index 727c9e8b1..fac60d7b7 100644
--- a/i18n/vi-VN.json
+++ b/i18n/vi-VN.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
+ },
+ "editor": {
+ "link": {
+ "label": "URL liên kết",
+ "placeholder": "Dán hoặc nhập liên kết…",
+ "apply": "Áp dụng liên kết",
+ "remove": "Xóa liên kết"
+ }
}
},
"auth": {
@@ -2530,7 +2538,6 @@
"imageUploaded": "Đã tải ảnh lên",
"fileAttached": "Đã đính kèm file",
"failedToUploadFile": "Không thể tải file lên",
- "enterUrl": "Nhập URL",
"plaintext": "Văn bản thuần",
"autoDetect": "Tự động nhận diện",
"slashGroupText": "Văn bản",
@@ -2659,7 +2666,6 @@
"ariaLabel": "Trình soạn thảo mô tả công việc",
"placeholder": "Viết mô tả...",
"previewImage": "Xem trước ảnh",
- "enterUrl": "Nhập URL",
"autoDetect": "Tự động nhận diện",
"copyCode": "Sao chép mã",
"copy": "Sao chép",
diff --git a/i18n/zh-CN.json b/i18n/zh-CN.json
index 6666105d2..b1a60197e 100644
--- a/i18n/zh-CN.json
+++ b/i18n/zh-CN.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "项目状态加载失败。"
}
+ },
+ "editor": {
+ "link": {
+ "label": "链接 URL",
+ "placeholder": "粘贴或输入链接…",
+ "apply": "应用链接",
+ "remove": "移除链接"
+ }
}
},
"auth": {
@@ -2530,7 +2538,6 @@
"imageUploaded": "图片已上传",
"fileAttached": "文件已附加",
"failedToUploadFile": "上传文件失败",
- "enterUrl": "输入 URL",
"plaintext": "纯文本",
"autoDetect": "自动检测",
"slashGroupText": "文本",
@@ -2659,7 +2666,6 @@
"ariaLabel": "任务描述编辑器",
"placeholder": "编写描述…",
"previewImage": "预览图片",
- "enterUrl": "输入 URL",
"autoDetect": "自动检测",
"copyCode": "复制代码",
"copy": "复制",
diff --git a/i18n/zh-TW.json b/i18n/zh-TW.json
index 1ca13cdab..787339055 100644
--- a/i18n/zh-TW.json
+++ b/i18n/zh-TW.json
@@ -152,6 +152,14 @@
},
"statusLoadError": "無法載入專案狀態。"
}
+ },
+ "editor": {
+ "link": {
+ "label": "連結 URL",
+ "placeholder": "貼上或輸入連結…",
+ "apply": "套用連結",
+ "remove": "移除連結"
+ }
}
},
"auth": {
@@ -2530,7 +2538,6 @@
"imageUploaded": "圖片已上傳",
"fileAttached": "檔案已附加",
"failedToUploadFile": "上傳檔案失敗",
- "enterUrl": "輸入 URL",
"plaintext": "純文字",
"autoDetect": "自動偵測",
"slashGroupText": "文字",
@@ -2659,7 +2666,6 @@
"ariaLabel": "任務描述編輯器",
"placeholder": "撰寫描述…",
"previewImage": "預覽圖片",
- "enterUrl": "輸入 URL",
"autoDetect": "自動偵測",
"copyCode": "複製程式碼",
"copy": "複製",