mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
Revert to // eslint-disable-next-line @typescript-eslint/no-misused-promises
disabling of mixins init
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
parent
991e63b1bf
commit
3da012ff8a
|
@ -69,15 +69,14 @@ export default defineComponent({
|
|||
Modals,
|
||||
},
|
||||
mixins: [newVersions, userHelpers],
|
||||
async setup(props) {
|
||||
const newVersionsSetup = await newVersions.setup?.(props);
|
||||
|
||||
setup(props) {
|
||||
return {
|
||||
...useGlobalLinkActions(),
|
||||
...useHistoryHelper(useRoute()),
|
||||
...useToast(),
|
||||
externalHooks: useExternalHooks(),
|
||||
...newVersionsSetup,
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||
...newVersions.setup?.(props),
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
@ -251,7 +250,7 @@ export default defineComponent({
|
|||
this.postAuthenticateDone = true;
|
||||
},
|
||||
},
|
||||
async mounted() {
|
||||
async created() {
|
||||
this.setTheme();
|
||||
await this.initialize();
|
||||
this.logHiringBanner();
|
||||
|
@ -265,6 +264,8 @@ export default defineComponent({
|
|||
void this.postAuthenticate();
|
||||
|
||||
this.loading = false;
|
||||
},
|
||||
async mounted() {
|
||||
|
||||
this.trackPage();
|
||||
void this.externalHooks.run('app.mount');
|
||||
|
|
|
@ -39,13 +39,12 @@ export default defineComponent({
|
|||
TabBar,
|
||||
},
|
||||
mixins: [pushConnection, workflowHelpers],
|
||||
async setup(props) {
|
||||
const pushConnectionSetup = await pushConnection.setup?.(props);
|
||||
const workflowHelpersSetup = await workflowHelpers.setup?.(props);
|
||||
|
||||
setup(props) {
|
||||
return {
|
||||
...pushConnectionSetup,
|
||||
...workflowHelpersSetup,
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||
...pushConnection.setup?.(props),
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||
...workflowHelpers.setup?.(props),
|
||||
};
|
||||
},
|
||||
data() {
|
||||
|
|
|
@ -135,11 +135,11 @@ export default defineComponent({
|
|||
MainSidebarSourceControl,
|
||||
},
|
||||
mixins: [genericHelpers, workflowHelpers, workflowRun, userHelpers, debounceHelper],
|
||||
async setup(props) {
|
||||
const workflowRunSetup = await workflowRun.setup?.(props);
|
||||
setup(props) {
|
||||
return {
|
||||
...useMessage(),
|
||||
...workflowRunSetup,
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||
...workflowRun.setup?.(props),
|
||||
};
|
||||
},
|
||||
data() {
|
||||
|
|
|
@ -188,13 +188,12 @@ export default defineComponent({
|
|||
default: false,
|
||||
},
|
||||
},
|
||||
async setup(props) {
|
||||
const workflowActivateSetup = await workflowActivate.setup?.(props);
|
||||
|
||||
setup(props) {
|
||||
return {
|
||||
...useDeviceSupport(),
|
||||
...useMessage(),
|
||||
...workflowActivateSetup,
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||
...workflowActivate.setup?.(props),
|
||||
};
|
||||
},
|
||||
data() {
|
||||
|
|
|
@ -60,12 +60,12 @@ export default defineComponent({
|
|||
type: String,
|
||||
},
|
||||
},
|
||||
async setup(props) {
|
||||
const workflowRunSetup = await workflowRun.setup?.(props);
|
||||
setup(props) {
|
||||
return {
|
||||
...useToast(),
|
||||
...useMessage(),
|
||||
...workflowRunSetup,
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||
...workflowRun.setup?.(props),
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
|
|
@ -62,11 +62,11 @@ export default defineComponent({
|
|||
name: 'WorkflowActivator',
|
||||
props: ['workflowActive', 'workflowId'],
|
||||
mixins: [workflowActivate],
|
||||
async setup(props) {
|
||||
const workflowActivateSetup = await workflowActivate.setup?.(props);
|
||||
setup(props) {
|
||||
return {
|
||||
...useToast(),
|
||||
...workflowActivateSetup,
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||
...workflowActivate.setup?.(props),
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
|
|
@ -345,9 +345,8 @@ export default defineComponent({
|
|||
NodeCreation,
|
||||
CanvasControls,
|
||||
},
|
||||
async setup(props) {
|
||||
setup(props) {
|
||||
const locale = useI18n();
|
||||
const workflowRunSetup = await workflowRun.setup?.(props);
|
||||
|
||||
return {
|
||||
locale,
|
||||
|
@ -357,7 +356,8 @@ export default defineComponent({
|
|||
...useToast(),
|
||||
...useMessage(),
|
||||
...useUniqueNodeName(),
|
||||
...workflowRunSetup,
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||
...workflowRun.setup?.(props),
|
||||
};
|
||||
},
|
||||
errorCaptured: (err, vm, info) => {
|
||||
|
|
|
@ -76,12 +76,11 @@ export default defineComponent({
|
|||
components: {
|
||||
CommunityPackageCard,
|
||||
},
|
||||
async setup(props) {
|
||||
const pushConnectionSetup = await pushConnection.setup?.(props);
|
||||
|
||||
setup(props) {
|
||||
return {
|
||||
...useToast(),
|
||||
...pushConnectionSetup,
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||
...pushConnection.setup?.(props),
|
||||
};
|
||||
},
|
||||
data() {
|
||||
|
|
Loading…
Reference in a new issue