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

@@ -1,13 +1,20 @@
<template>
<n8n-text size="small" color="text-base" tag="div" v-if="hint">
<div v-if="!renderHTML" :class="{[$style.hint]: true, [$style.highlight]: highlight}">{{ hint }}</div>
<div v-else ref="hint" :class="{[$style.hint]: true, [$style.highlight]: highlight}" v-html="sanitizeHtml(hint)"></div>
<div v-if="!renderHTML" :class="{ [$style.hint]: true, [$style.highlight]: highlight }">
{{ hint }}
</div>
<div
v-else
ref="hint"
:class="{ [$style.hint]: true, [$style.highlight]: highlight }"
v-html="sanitizeHtml(hint)"
></div>
</n8n-text>
</template>
<script lang="ts">
import { sanitizeHtml } from "@/utils";
import Vue from "vue";
import { sanitizeHtml } from '@/utils';
import Vue from 'vue';
export default Vue.extend({
name: 'InputHint',
@@ -26,25 +33,22 @@ export default Vue.extend({
methods: {
sanitizeHtml,
},
mounted(){
if(this.$refs.hint){
(this.$refs.hint as Element).querySelectorAll('a').forEach(a => a.target = "_blank");
mounted() {
if (this.$refs.hint) {
(this.$refs.hint as Element).querySelectorAll('a').forEach((a) => (a.target = '_blank'));
}
},
});
</script>
<style lang="scss" module>
.hint {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.hint {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.highlight {
color: var(--color-secondary);
}
.highlight {
color: var(--color-secondary);
}
</style>