refactor(editor): Apply Prettier (no-changelog) (#4920)

*  Adjust `format` script

* 🔥 Remove exemption for `editor-ui`

* 🎨 Prettify

* 👕 Fix lint
This commit is contained in:
Iván Ovejero
2022-12-14 10:04:10 +01:00
committed by GitHub
parent bcde07e032
commit 5ca2148c7e
284 changed files with 19247 additions and 15540 deletions

View File

@@ -21,16 +21,15 @@ import { mapStores } from 'pinia';
import Vue from 'vue';
interface NodeIconSource {
path?: string;
fileBuffer?: string;
icon?: string;
path?: string;
fileBuffer?: string;
icon?: string;
}
export default Vue.extend({
name: 'NodeIcon',
props: {
nodeType: {
},
nodeType: {},
size: {
type: Number,
required: false,
@@ -49,10 +48,8 @@ export default Vue.extend({
},
},
computed: {
...mapStores(
useRootStore,
),
type (): string {
...mapStores(useRootStore),
type(): string {
const nodeType = this.nodeType as INodeTypeDescription | IVersionNode | null;
let iconType = 'unknown';
if (nodeType) {
@@ -65,14 +62,14 @@ export default Vue.extend({
}
return iconType;
},
color () : string {
color(): string {
const nodeType = this.nodeType as INodeTypeDescription | IVersionNode | null;
if (nodeType && nodeType.defaults && nodeType.defaults.color) {
return nodeType.defaults.color.toString();
}
return '';
},
iconSource () : NodeIconSource {
iconSource(): NodeIconSource {
const nodeType = this.nodeType as INodeTypeDescription | IVersionNode | null;
const baseUrl = this.rootStore.getBaseUrl;
const iconSource = {} as NodeIconSource;
@@ -104,5 +101,4 @@ export default Vue.extend({
});
</script>
<style lang="scss">
</style>
<style lang="scss"></style>