refactor(editor): Standardize components sections order (no-changelog) (#10540)

This commit is contained in:
Ricardo Espinoza
2024-08-24 09:24:08 -04:00
committed by GitHub
parent 4d48f903af
commit 609bc4d97d
215 changed files with 10387 additions and 10376 deletions

View File

@@ -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;