refactor: Revert 30k stars banner (no-changelog) (#6347)

refactor: Revert 30k stars banner (#6204)

This reverts commit e3f47994b1.
This commit is contained in:
Iván Ovejero 2023-06-01 11:22:39 +02:00 committed by GitHub
parent de77762e51
commit 33e7ff8869
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 34 deletions

View file

@ -61,20 +61,6 @@
<page-view-layout-list :overflow="type !== 'list'" v-else>
<template #header>
<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']">
<n8n-input
:class="[$style['search'], 'mr-2xs']"
@ -202,11 +188,7 @@ import { mapStores } from 'pinia';
import type { IUser } from '@/Interface';
import PageViewLayout from '@/components/layouts/PageViewLayout.vue';
import PageViewLayoutList from '@/components/layouts/PageViewLayoutList.vue';
import {
EnterpriseEditionFeature,
GITHUB_STARS_BANNER_SHOW_UNTIL_DATE,
MAIN_REPOSITORY_URL,
} from '@/constants';
import { EnterpriseEditionFeature } from '@/constants';
import { debounceHelper } from '@/mixins/debounce';
import ResourceOwnershipSelect from '@/components/forms/ResourceOwnershipSelect.ee.vue';
import ResourceFiltersDropdown from '@/components/forms/ResourceFiltersDropdown.vue';
@ -313,14 +295,10 @@ export default defineComponent({
rowsPerPage: 10 as number | '*',
resettingFilters: false,
EnterpriseEditionFeature,
repoUrl: MAIN_REPOSITORY_URL,
};
},
computed: {
...mapStores(useSettingsStore, useUsersStore),
starsBannerShouldRender() {
return this.resourceKey === 'workflows' && new Date() < GITHUB_STARS_BANNER_SHOW_UNTIL_DATE;
},
subviewResources(): IResource[] {
if (!this.shareable) {
return this.resources as IResource[];
@ -555,8 +533,4 @@ export default defineComponent({
.datatable {
padding-bottom: var(--spacing-s);
}
.github-stars-banner {
margin-bottom: var(--spacing-m);
}
</style>

View file

@ -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 EXPRESSIONS_DOCS_URL = `https://${DOCS_DOMAIN}/code-examples/expressions/`;
export const N8N_PRICING_PAGE_URL = 'https://n8n.io/pricing';
export const MAIN_REPOSITORY_URL = 'https://github.com/n8n-io/n8n';
// node types
export const BAMBOO_HR_NODE_TYPE = 'n8n-nodes-base.bambooHr';
@ -562,8 +561,6 @@ export const ALLOWED_HTML_TAGS = [
'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')
? 'https://stage-app.n8n.cloud/account/change-plan'
: 'https://app.n8n.cloud/account/change-plan';

View file

@ -597,8 +597,6 @@
"genericHelpers.secShort": "s",
"genericHelpers.showMessage.message": "Executions are read-only. Make changes from the <b>Workflow</b> tab.",
"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.confirmMessage.workflowDelete.cancelButtonText": "",
"mainSidebar.confirmMessage.workflowDelete.confirmButtonText": "Yes, delete",

View file

@ -108,7 +108,6 @@ import {
faSignOutAlt,
faSlidersH,
faSpinner,
faStar,
faStop,
faSun,
faSync,
@ -249,7 +248,6 @@ addIcon(faSlidersH);
addIcon(faSpinner);
addIcon(faSolidStickyNote);
addIcon(faStickyNote as IconDefinition);
addIcon(faStar);
addIcon(faStop);
addIcon(faSun);
addIcon(faSync);