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

@@ -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,