Skip to content

Commit d7e1268

Browse files
committed
updated info links in settings
1 parent 7a3b937 commit d7e1268

3 files changed

Lines changed: 33 additions & 14 deletions

File tree

src/core/settings.ts

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -618,41 +618,47 @@ export class ExcalidrawSettingTab extends PluginSettingTab {
618618

619619
const iconLinks = [
620620
{
621-
icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"></path><path d="M9 18c-4.51 2-5-2-7-2"></path></svg>`,
621+
icon: getIcon("bug").outerHTML,
622622
href: "https://github.com/zsviczian/obsidian-excalidraw-plugin/issues",
623-
aria: "Report bugs and raise feature requsts on the plugin's GitHub page",
624-
text: "Bugs and Feature Requests",
623+
aria: t("LINKS_BUGS_ARIA"),
624+
text: t("LINKS_BUGS"),
625625
},
626626
{
627-
icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 19c-2.3 0-6.4-.2-8.1-.6-.7-.2-1.2-.7-1.4-1.4-.3-1.1-.5-3.4-.5-5s.2-3.9.5-5c.2-.7.7-1.2 1.4-1.4C5.6 5.2 9.7 5 12 5s6.4.2 8.1.6c.7.2 1.2.7 1.4 1.4.3 1.1.5 3.4.5 5s-.2 3.9-.5 5c-.2.7-.7 1.2-1.4 1.4-1.7.4-5.8.6-8.1.6 0 0 0 0 0 0z"></path><polygon points="10 15 15 12 10 9"></polygon></svg>`,
627+
icon: getIcon("youtube").outerHTML,
628628
href: "https://www.youtube.com/@VisualPKM",
629-
aria: "Check out my YouTube channel to learn about Visual Thinking and Excalidraw",
630-
text: "Visual PKM on YouTube",
629+
aria: t("LINKS_YT_ARIA"),
630+
text: t("LINKS_YT"),
631631
},
632632
{
633633
icon: `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" stroke="none" strokeWidth="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 640 512"><path d="M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"/></svg>`,
634634
href: "https://discord.gg/DyfAXFwUHc",
635-
aria: "Join the Visual Thinking Workshop Discord Server",
636-
text: "Community on Discord",
635+
aria: t("LINKS_DISCORD_ARIA"),
636+
text: t("LINKS_DISCORD"),
637637
},
638638
{
639-
icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z"></path></svg>`,
639+
icon: getIcon("twitter").outerHTML,
640640
href: "https://twitter.com/zsviczian",
641-
aria: "Follow me on Twitter",
642-
text: "Follow me on Twitter",
641+
aria: t("LINKS_TWITTER"),
642+
text: t("LINKS_TWITTER"),
643643
},
644644
{
645645
icon: getIcon("graduation-cap").outerHTML,
646646
href: "https://visual-thinking-workshop.com",
647-
aria: "Learn about Visual PKM, Excalidraw, Obsidian, ExcaliBrain and more",
648-
text: "Join the Visual Thinking Workshop",
647+
aria: t("LINKS_VTW_ARIA"),
648+
text: t("LINKS_VTW"),
649+
},
650+
{
651+
icon: getIcon("book").outerHTML,
652+
href: "https://sketch-your-mind.com",
653+
aria: t("LINKS_BOOK_ARIA"),
654+
text: t("LINKS_BOOK"),
649655
}
650656
];
651657

652658
const linksEl = containerEl.createDiv("setting-item-description excalidraw-settings-links-container");
653659
iconLinks.forEach(({ icon, href, aria, text }) => {
654660
linksEl.createEl("a",{href, attr: { "aria-label": aria }}, (a)=> {
655-
a.innerHTML = icon + text;
661+
a.innerHTML = icon + text;
656662
});
657663
});
658664

src/lang/locale/en.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,18 @@ export default {
193193
SAVE_IS_TAKING_VERY_LONG: "For better performance, consider splitting large drawings into several smaller files.",
194194

195195
//settings.ts
196+
LINKS_BUGS_ARIA: "Report bugs and raise feature requsts on the plugin's GitHub page",
197+
LINKS_BUGS: "Report Bugs",
198+
LINKS_YT_ARIA: "Check out my YouTube channel to learn about Visual Thinking and Excalidraw",
199+
LINKS_YT: "Learn on YouTube",
200+
LINKS_DISCORD_ARIA: "Join the Visual Thinking Workshop Discord Server",
201+
LINKS_DISCORD: "Join the Community",
202+
LINKS_TWITTER: "Follow me",
203+
LINKS_VTW_ARIA: "Learn about Visual PKM, Excalidraw, Obsidian, ExcaliBrain and more",
204+
LINKS_VTW: "Join a Workshop",
205+
LINKS_BOOK_ARIA: "Read Sketch Your Mind, my book on Visual Thinking",
206+
LINKS_BOOK: "Read the Book",
207+
196208
RELEASE_NOTES_NAME: "Display Release Notes after update",
197209
RELEASE_NOTES_DESC:
198210
"<b><u>Toggle ON:</u></b> Display release notes each time you update Excalidraw to a newer version.<br>" +

styles.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ textarea.excalidraw-wysiwyg, .excalidraw input {
646646
text-decoration: none; /* Remove underline from links */
647647
color: inherit; /* Inherit text color */
648648
text-align: center;
649+
gap: 0.3em;
649650
}
650651

651652
.excalidraw-settings-links-container a {

0 commit comments

Comments
 (0)