mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -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,
|
Modals,
|
||||||
},
|
},
|
||||||
mixins: [newVersions, userHelpers],
|
mixins: [newVersions, userHelpers],
|
||||||
async setup(props) {
|
setup(props) {
|
||||||
const newVersionsSetup = await newVersions.setup?.(props);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...useGlobalLinkActions(),
|
...useGlobalLinkActions(),
|
||||||
...useHistoryHelper(useRoute()),
|
...useHistoryHelper(useRoute()),
|
||||||
...useToast(),
|
...useToast(),
|
||||||
externalHooks: useExternalHooks(),
|
externalHooks: useExternalHooks(),
|
||||||
...newVersionsSetup,
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||||
|
...newVersions.setup?.(props),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -251,7 +250,7 @@ export default defineComponent({
|
||||||
this.postAuthenticateDone = true;
|
this.postAuthenticateDone = true;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
async mounted() {
|
async created() {
|
||||||
this.setTheme();
|
this.setTheme();
|
||||||
await this.initialize();
|
await this.initialize();
|
||||||
this.logHiringBanner();
|
this.logHiringBanner();
|
||||||
|
@ -265,6 +264,8 @@ export default defineComponent({
|
||||||
void this.postAuthenticate();
|
void this.postAuthenticate();
|
||||||
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
},
|
||||||
|
async mounted() {
|
||||||
|
|
||||||
this.trackPage();
|
this.trackPage();
|
||||||
void this.externalHooks.run('app.mount');
|
void this.externalHooks.run('app.mount');
|
||||||
|
|
|
@ -39,13 +39,12 @@ export default defineComponent({
|
||||||
TabBar,
|
TabBar,
|
||||||
},
|
},
|
||||||
mixins: [pushConnection, workflowHelpers],
|
mixins: [pushConnection, workflowHelpers],
|
||||||
async setup(props) {
|
setup(props) {
|
||||||
const pushConnectionSetup = await pushConnection.setup?.(props);
|
|
||||||
const workflowHelpersSetup = await workflowHelpers.setup?.(props);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...pushConnectionSetup,
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||||
...workflowHelpersSetup,
|
...pushConnection.setup?.(props),
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||||
|
...workflowHelpers.setup?.(props),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|
|
@ -135,11 +135,11 @@ export default defineComponent({
|
||||||
MainSidebarSourceControl,
|
MainSidebarSourceControl,
|
||||||
},
|
},
|
||||||
mixins: [genericHelpers, workflowHelpers, workflowRun, userHelpers, debounceHelper],
|
mixins: [genericHelpers, workflowHelpers, workflowRun, userHelpers, debounceHelper],
|
||||||
async setup(props) {
|
setup(props) {
|
||||||
const workflowRunSetup = await workflowRun.setup?.(props);
|
|
||||||
return {
|
return {
|
||||||
...useMessage(),
|
...useMessage(),
|
||||||
...workflowRunSetup,
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||||
|
...workflowRun.setup?.(props),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|
|
@ -188,13 +188,12 @@ export default defineComponent({
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
async setup(props) {
|
setup(props) {
|
||||||
const workflowActivateSetup = await workflowActivate.setup?.(props);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...useDeviceSupport(),
|
...useDeviceSupport(),
|
||||||
...useMessage(),
|
...useMessage(),
|
||||||
...workflowActivateSetup,
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||||
|
...workflowActivate.setup?.(props),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|
|
@ -60,12 +60,12 @@ export default defineComponent({
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
async setup(props) {
|
setup(props) {
|
||||||
const workflowRunSetup = await workflowRun.setup?.(props);
|
|
||||||
return {
|
return {
|
||||||
...useToast(),
|
...useToast(),
|
||||||
...useMessage(),
|
...useMessage(),
|
||||||
...workflowRunSetup,
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||||
|
...workflowRun.setup?.(props),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
@ -62,11 +62,11 @@ export default defineComponent({
|
||||||
name: 'WorkflowActivator',
|
name: 'WorkflowActivator',
|
||||||
props: ['workflowActive', 'workflowId'],
|
props: ['workflowActive', 'workflowId'],
|
||||||
mixins: [workflowActivate],
|
mixins: [workflowActivate],
|
||||||
async setup(props) {
|
setup(props) {
|
||||||
const workflowActivateSetup = await workflowActivate.setup?.(props);
|
|
||||||
return {
|
return {
|
||||||
...useToast(),
|
...useToast(),
|
||||||
...workflowActivateSetup,
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||||
|
...workflowActivate.setup?.(props),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
@ -345,9 +345,8 @@ export default defineComponent({
|
||||||
NodeCreation,
|
NodeCreation,
|
||||||
CanvasControls,
|
CanvasControls,
|
||||||
},
|
},
|
||||||
async setup(props) {
|
setup(props) {
|
||||||
const locale = useI18n();
|
const locale = useI18n();
|
||||||
const workflowRunSetup = await workflowRun.setup?.(props);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
locale,
|
locale,
|
||||||
|
@ -357,7 +356,8 @@ export default defineComponent({
|
||||||
...useToast(),
|
...useToast(),
|
||||||
...useMessage(),
|
...useMessage(),
|
||||||
...useUniqueNodeName(),
|
...useUniqueNodeName(),
|
||||||
...workflowRunSetup,
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||||
|
...workflowRun.setup?.(props),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
errorCaptured: (err, vm, info) => {
|
errorCaptured: (err, vm, info) => {
|
||||||
|
|
|
@ -76,12 +76,11 @@ export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
CommunityPackageCard,
|
CommunityPackageCard,
|
||||||
},
|
},
|
||||||
async setup(props) {
|
setup(props) {
|
||||||
const pushConnectionSetup = await pushConnection.setup?.(props);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...useToast(),
|
...useToast(),
|
||||||
...pushConnectionSetup,
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||||
|
...pushConnection.setup?.(props),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|
Loading…
Reference in a new issue