mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 03:42:16 +00:00
refactor(editor): Standardize components sections order (no-changelog) (#10540)
This commit is contained in:
@@ -1,3 +1,41 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
import ModalDrawer from './ModalDrawer.vue';
|
||||
import TimeAgo from './TimeAgo.vue';
|
||||
import VersionCard from './VersionCard.vue';
|
||||
import { VERSIONS_MODAL_KEY } from '../constants';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useVersionsStore } from '@/stores/versions.store';
|
||||
import type { IVersion } from '@/Interface';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'UpdatesPanel',
|
||||
components: {
|
||||
ModalDrawer,
|
||||
VersionCard,
|
||||
TimeAgo,
|
||||
},
|
||||
computed: {
|
||||
...mapStores(useVersionsStore),
|
||||
nextVersions(): IVersion[] {
|
||||
return this.versionsStore.nextVersions;
|
||||
},
|
||||
currentVersion(): IVersion | undefined {
|
||||
return this.versionsStore.currentVersion;
|
||||
},
|
||||
infoUrl(): string {
|
||||
return this.versionsStore.infoUrl;
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
VERSIONS_MODAL_KEY,
|
||||
};
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ModalDrawer
|
||||
:name="VERSIONS_MODAL_KEY"
|
||||
@@ -51,44 +89,6 @@
|
||||
</ModalDrawer>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
import ModalDrawer from './ModalDrawer.vue';
|
||||
import TimeAgo from './TimeAgo.vue';
|
||||
import VersionCard from './VersionCard.vue';
|
||||
import { VERSIONS_MODAL_KEY } from '../constants';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useVersionsStore } from '@/stores/versions.store';
|
||||
import type { IVersion } from '@/Interface';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'UpdatesPanel',
|
||||
components: {
|
||||
ModalDrawer,
|
||||
VersionCard,
|
||||
TimeAgo,
|
||||
},
|
||||
computed: {
|
||||
...mapStores(useVersionsStore),
|
||||
nextVersions(): IVersion[] {
|
||||
return this.versionsStore.nextVersions;
|
||||
},
|
||||
currentVersion(): IVersion | undefined {
|
||||
return this.versionsStore.currentVersion;
|
||||
},
|
||||
infoUrl(): string {
|
||||
return this.versionsStore.infoUrl;
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
VERSIONS_MODAL_KEY,
|
||||
};
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<style module lang="scss">
|
||||
.title {
|
||||
margin: 0;
|
||||
|
||||
Reference in New Issue
Block a user