mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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:
@@ -19,16 +19,14 @@ export default mixins(externalHooks).extend({
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapStores(
|
||||
useRootStore,
|
||||
useSettingsStore,
|
||||
useUsersStore,
|
||||
),
|
||||
...mapStores(useRootStore, useSettingsStore, useUsersStore),
|
||||
currentUserId(): string {
|
||||
return this.usersStore.currentUserId || '';
|
||||
},
|
||||
isTelemetryEnabledOnRoute(): boolean {
|
||||
return this.$route.meta && this.$route.meta.telemetry ? !this.$route.meta.telemetry.disabled: true;
|
||||
return this.$route.meta && this.$route.meta.telemetry
|
||||
? !this.$route.meta.telemetry.disabled
|
||||
: true;
|
||||
},
|
||||
telemetry(): ITelemetrySettings {
|
||||
return this.settingsStore.telemetry;
|
||||
@@ -42,16 +40,18 @@ export default mixins(externalHooks).extend({
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
if (this.isTelemetryInitialized || !this.isTelemetryEnabledOnRoute || !this.isTelemetryEnabled) return;
|
||||
if (
|
||||
this.isTelemetryInitialized ||
|
||||
!this.isTelemetryEnabledOnRoute ||
|
||||
!this.isTelemetryEnabled
|
||||
)
|
||||
return;
|
||||
|
||||
this.$telemetry.init(
|
||||
this.telemetry,
|
||||
{
|
||||
instanceId: this.rootStore.instanceId,
|
||||
userId: this.currentUserId,
|
||||
versionCli: this.rootStore.versionCli,
|
||||
},
|
||||
);
|
||||
this.$telemetry.init(this.telemetry, {
|
||||
instanceId: this.rootStore.instanceId,
|
||||
userId: this.currentUserId,
|
||||
versionCli: this.rootStore.versionCli,
|
||||
});
|
||||
|
||||
this.$externalHooks().run('telemetry.currentUserIdChanged', {
|
||||
instanceId: this.rootStore.instanceId,
|
||||
|
||||
Reference in New Issue
Block a user