mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +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:
@@ -5,18 +5,22 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from "vue";
|
||||
import { shorten } from "@/utils";
|
||||
import Vue from 'vue';
|
||||
import { shorten } from '@/utils';
|
||||
|
||||
const DEFAULT_WORKFLOW_NAME_LIMIT = 25;
|
||||
const WORKFLOW_NAME_END_COUNT_TO_KEEP = 4;
|
||||
|
||||
export default Vue.extend({
|
||||
name: "ShortenName",
|
||||
props: ["name", "limit", "testId"],
|
||||
name: 'ShortenName',
|
||||
props: ['name', 'limit', 'testId'],
|
||||
computed: {
|
||||
shortenedName(): string {
|
||||
return shorten(this.name, this.limit || DEFAULT_WORKFLOW_NAME_LIMIT, WORKFLOW_NAME_END_COUNT_TO_KEEP);
|
||||
return shorten(
|
||||
this.name,
|
||||
this.limit || DEFAULT_WORKFLOW_NAME_LIMIT,
|
||||
WORKFLOW_NAME_END_COUNT_TO_KEEP,
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user