mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 13:27:31 -08:00
refactor: Revert 30k stars banner (no-changelog) (#6347)
refactor: Revert 30k stars banner (#6204)
This reverts commit e3f47994b1
.
This commit is contained in:
parent
de77762e51
commit
33e7ff8869
|
@ -61,20 +61,6 @@
|
||||||
<page-view-layout-list :overflow="type !== 'list'" v-else>
|
<page-view-layout-list :overflow="type !== 'list'" v-else>
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="mb-xs">
|
<div class="mb-xs">
|
||||||
<n8n-callout
|
|
||||||
v-if="starsBannerShouldRender"
|
|
||||||
theme="secondary"
|
|
||||||
icon="star"
|
|
||||||
:class="$style['github-stars-banner']"
|
|
||||||
>
|
|
||||||
<span v-html="$locale.baseText('githubStars.banner.title')"></span>
|
|
||||||
<template #trailingContent>
|
|
||||||
<n8n-link :to="repoUrl" size="small" theme="secondary" bold underline>
|
|
||||||
{{ $locale.baseText('githubStars.banner.link') }}
|
|
||||||
</n8n-link>
|
|
||||||
</template>
|
|
||||||
</n8n-callout>
|
|
||||||
|
|
||||||
<div :class="$style['filters-row']">
|
<div :class="$style['filters-row']">
|
||||||
<n8n-input
|
<n8n-input
|
||||||
:class="[$style['search'], 'mr-2xs']"
|
:class="[$style['search'], 'mr-2xs']"
|
||||||
|
@ -202,11 +188,7 @@ import { mapStores } from 'pinia';
|
||||||
import type { IUser } from '@/Interface';
|
import type { IUser } from '@/Interface';
|
||||||
import PageViewLayout from '@/components/layouts/PageViewLayout.vue';
|
import PageViewLayout from '@/components/layouts/PageViewLayout.vue';
|
||||||
import PageViewLayoutList from '@/components/layouts/PageViewLayoutList.vue';
|
import PageViewLayoutList from '@/components/layouts/PageViewLayoutList.vue';
|
||||||
import {
|
import { EnterpriseEditionFeature } from '@/constants';
|
||||||
EnterpriseEditionFeature,
|
|
||||||
GITHUB_STARS_BANNER_SHOW_UNTIL_DATE,
|
|
||||||
MAIN_REPOSITORY_URL,
|
|
||||||
} from '@/constants';
|
|
||||||
import { debounceHelper } from '@/mixins/debounce';
|
import { debounceHelper } from '@/mixins/debounce';
|
||||||
import ResourceOwnershipSelect from '@/components/forms/ResourceOwnershipSelect.ee.vue';
|
import ResourceOwnershipSelect from '@/components/forms/ResourceOwnershipSelect.ee.vue';
|
||||||
import ResourceFiltersDropdown from '@/components/forms/ResourceFiltersDropdown.vue';
|
import ResourceFiltersDropdown from '@/components/forms/ResourceFiltersDropdown.vue';
|
||||||
|
@ -313,14 +295,10 @@ export default defineComponent({
|
||||||
rowsPerPage: 10 as number | '*',
|
rowsPerPage: 10 as number | '*',
|
||||||
resettingFilters: false,
|
resettingFilters: false,
|
||||||
EnterpriseEditionFeature,
|
EnterpriseEditionFeature,
|
||||||
repoUrl: MAIN_REPOSITORY_URL,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapStores(useSettingsStore, useUsersStore),
|
...mapStores(useSettingsStore, useUsersStore),
|
||||||
starsBannerShouldRender() {
|
|
||||||
return this.resourceKey === 'workflows' && new Date() < GITHUB_STARS_BANNER_SHOW_UNTIL_DATE;
|
|
||||||
},
|
|
||||||
subviewResources(): IResource[] {
|
subviewResources(): IResource[] {
|
||||||
if (!this.shareable) {
|
if (!this.shareable) {
|
||||||
return this.resources as IResource[];
|
return this.resources as IResource[];
|
||||||
|
@ -555,8 +533,4 @@ export default defineComponent({
|
||||||
.datatable {
|
.datatable {
|
||||||
padding-bottom: var(--spacing-s);
|
padding-bottom: var(--spacing-s);
|
||||||
}
|
}
|
||||||
|
|
||||||
.github-stars-banner {
|
|
||||||
margin-bottom: var(--spacing-m);
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -82,7 +82,6 @@ export const COMMUNITY_NODES_BLOCKLIST_DOCS_URL = `https://${DOCS_DOMAIN}/integr
|
||||||
export const CUSTOM_NODES_DOCS_URL = `https://${DOCS_DOMAIN}/integrations/creating-nodes/code/create-n8n-nodes-module/`;
|
export const CUSTOM_NODES_DOCS_URL = `https://${DOCS_DOMAIN}/integrations/creating-nodes/code/create-n8n-nodes-module/`;
|
||||||
export const EXPRESSIONS_DOCS_URL = `https://${DOCS_DOMAIN}/code-examples/expressions/`;
|
export const EXPRESSIONS_DOCS_URL = `https://${DOCS_DOMAIN}/code-examples/expressions/`;
|
||||||
export const N8N_PRICING_PAGE_URL = 'https://n8n.io/pricing';
|
export const N8N_PRICING_PAGE_URL = 'https://n8n.io/pricing';
|
||||||
export const MAIN_REPOSITORY_URL = 'https://github.com/n8n-io/n8n';
|
|
||||||
|
|
||||||
// node types
|
// node types
|
||||||
export const BAMBOO_HR_NODE_TYPE = 'n8n-nodes-base.bambooHr';
|
export const BAMBOO_HR_NODE_TYPE = 'n8n-nodes-base.bambooHr';
|
||||||
|
@ -562,8 +561,6 @@ export const ALLOWED_HTML_TAGS = [
|
||||||
'summary',
|
'summary',
|
||||||
];
|
];
|
||||||
|
|
||||||
export const GITHUB_STARS_BANNER_SHOW_UNTIL_DATE = new Date('2023-06-01');
|
|
||||||
|
|
||||||
export const CLOUD_CHANGE_PLAN_PAGE = window.location.host.includes('stage-app.n8n.cloud')
|
export const CLOUD_CHANGE_PLAN_PAGE = window.location.host.includes('stage-app.n8n.cloud')
|
||||||
? 'https://stage-app.n8n.cloud/account/change-plan'
|
? 'https://stage-app.n8n.cloud/account/change-plan'
|
||||||
: 'https://app.n8n.cloud/account/change-plan';
|
: 'https://app.n8n.cloud/account/change-plan';
|
||||||
|
|
|
@ -597,8 +597,6 @@
|
||||||
"genericHelpers.secShort": "s",
|
"genericHelpers.secShort": "s",
|
||||||
"genericHelpers.showMessage.message": "Executions are read-only. Make changes from the <b>Workflow</b> tab.",
|
"genericHelpers.showMessage.message": "Executions are read-only. Make changes from the <b>Workflow</b> tab.",
|
||||||
"genericHelpers.showMessage.title": "Cannot edit execution",
|
"genericHelpers.showMessage.title": "Cannot edit execution",
|
||||||
"githubStars.banner.title": "<b>Celebrating 30,000 stars on GitHub!</b> A big thank you to our community for your amazing support and contributions",
|
|
||||||
"githubStars.banner.link": "Star us on GitHub",
|
|
||||||
"mainSidebar.aboutN8n": "About n8n",
|
"mainSidebar.aboutN8n": "About n8n",
|
||||||
"mainSidebar.confirmMessage.workflowDelete.cancelButtonText": "",
|
"mainSidebar.confirmMessage.workflowDelete.cancelButtonText": "",
|
||||||
"mainSidebar.confirmMessage.workflowDelete.confirmButtonText": "Yes, delete",
|
"mainSidebar.confirmMessage.workflowDelete.confirmButtonText": "Yes, delete",
|
||||||
|
|
|
@ -108,7 +108,6 @@ import {
|
||||||
faSignOutAlt,
|
faSignOutAlt,
|
||||||
faSlidersH,
|
faSlidersH,
|
||||||
faSpinner,
|
faSpinner,
|
||||||
faStar,
|
|
||||||
faStop,
|
faStop,
|
||||||
faSun,
|
faSun,
|
||||||
faSync,
|
faSync,
|
||||||
|
@ -249,7 +248,6 @@ addIcon(faSlidersH);
|
||||||
addIcon(faSpinner);
|
addIcon(faSpinner);
|
||||||
addIcon(faSolidStickyNote);
|
addIcon(faSolidStickyNote);
|
||||||
addIcon(faStickyNote as IconDefinition);
|
addIcon(faStickyNote as IconDefinition);
|
||||||
addIcon(faStar);
|
|
||||||
addIcon(faStop);
|
addIcon(faStop);
|
||||||
addIcon(faSun);
|
addIcon(faSun);
|
||||||
addIcon(faSync);
|
addIcon(faSync);
|
||||||
|
|
Loading…
Reference in a new issue