Skip to content

Commit

Permalink
feat(editor): Adding discord link and fixing some UTM tags
Browse files Browse the repository at this point in the history
  • Loading branch information
krynble committed Nov 2, 2023
1 parent 479f902 commit a7062cf
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export default defineComponent({
if (url.hostname === DOCS_DOMAIN) {
url.searchParams.set('utm_source', 'n8n_app');
url.searchParams.set('utm_medium', 'left_nav_menu');
url.searchParams.set('utm_medium', 'credential_settings');
url.searchParams.set('utm_campaign', 'create_new_credentials_modal');
}
Expand Down
14 changes: 12 additions & 2 deletions packages/editor-ui/src/components/MainSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export default defineComponent({
label: this.$locale.baseText('mainSidebar.helpMenuItems.documentation'),
type: 'link',
properties: {
href: 'https://docs.n8n.io',
href: 'https://docs.n8n.io?utm_source=n8n_app&utm_medium=app_sidebar',
newWindow: true,
},
},
Expand All @@ -303,7 +303,17 @@ export default defineComponent({
label: this.$locale.baseText('mainSidebar.helpMenuItems.forum'),
type: 'link',
properties: {
href: 'https://community.n8n.io',
href: 'https://community.n8n.io?utm_source=n8n_app&utm_medium=app_sidebar',
newWindow: true,
},
},
{
id: 'discord',
icon: 'discord',
label: this.$locale.baseText('mainSidebar.helpMenuItems.discord'),
type: 'link',
properties: {
href: 'https://discord.gg/XPKeKXeB7d',
newWindow: true,
},
},
Expand Down
1 change: 1 addition & 0 deletions packages/editor-ui/src/plugins/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@
"mainSidebar.helpMenuItems.course": "Course",
"mainSidebar.helpMenuItems.documentation": "Documentation",
"mainSidebar.helpMenuItems.forum": "Forum",
"mainSidebar.helpMenuItems.discord": "Discord",
"mainSidebar.helpMenuItems.quickstart": "Quickstart",
"mainSidebar.new": "New",
"mainSidebar.newTemplate": "New from template",
Expand Down
12 changes: 12 additions & 0 deletions packages/editor-ui/src/plugins/icons/custom.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
import type { IconDefinition, IconName, IconPrefix } from '@fortawesome/fontawesome-svg-core';

export const faDiscord: IconDefinition = {
prefix: 'fas' as IconPrefix,
iconName: 'discord' as IconName,
icon: [
640,
512,
[],
'',
'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',
],
};

export const faVariable: IconDefinition = {
prefix: 'fas' as IconPrefix,
iconName: 'variable' as IconName,
Expand Down
3 changes: 2 additions & 1 deletion packages/editor-ui/src/plugins/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ import {
faProjectDiagram,
faStream,
} from '@fortawesome/free-solid-svg-icons';
import { faVariable, faXmark, faVault } from './custom';
import { faDiscord, faVariable, faXmark, faVault } from './custom';
import { faStickyNote } from '@fortawesome/free-regular-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';

Expand Down Expand Up @@ -203,6 +203,7 @@ export const FontAwesomePlugin: Plugin<{}> = {
addIcon(faCube);
addIcon(faCut);
addIcon(faDatabase);
addIcon(faDiscord);
addIcon(faDotCircle);
addIcon(faGripLinesVertical);
addIcon(faGripVertical);
Expand Down

0 comments on commit a7062cf

Please sign in to comment.