Auto-generate third-party license notices (#370)

Closes #294
Closes #371
This commit is contained in:
Keavon Chambers
2021-09-06 06:57:35 -07:00
parent 208e4bbba3
commit fc7d3aa457
8 changed files with 306 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div class="menu-bar-input">
<div class="entry-container">
<div @click="handleLogoClick(entry)" class="entry">
<div @click="() => window.open('https://www.graphite.design', '_blank')" class="entry">
<IconLabel :icon="'GraphiteLogo'" />
</div>
</div>
@@ -152,7 +152,16 @@ const menuEntries: MenuListEntries = [
{
label: "Help",
ref: undefined,
children: [[{ label: "Menu entries coming soon" }]],
children: [
[
{ label: "Report a Bug", action: () => window.open("https://github.com/GraphiteEditor/Graphite/issues/new", "_blank") },
{ label: "Visit on GitHub", action: () => window.open("https://github.com/GraphiteEditor/Graphite", "_blank") },
],
[
{ label: "Graphite License", action: () => window.open("https://raw.githubusercontent.com/GraphiteEditor/Graphite/master/LICENSE.txt", "_blank") },
{ label: "Third-Party Licenses", action: () => window.open("/third-party-licenses.txt", "_blank") },
],
],
},
];
@@ -165,9 +174,6 @@ export default defineComponent({
if (menuEntry.ref) menuEntry.ref.setOpen();
else throw new Error("The menu bar floating menu has no associated ref");
},
handleLogoClick() {
window.open("https://www.graphite.design", "_blank");
},
},
data() {
return {