mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(editor): Apply Prettier (no-changelog) (#4920)
* ⚡ Adjust `format` script * 🔥 Remove exemption for `editor-ui` * 🎨 Prettify * 👕 Fix lint
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user