refactor: Run lintfix (no-changelog) (#7537)
- Fix autofixable violations - Remove unused directives - Allow for PascalCased variables - needed for dynamically imported or assigned classes, decorators, routers, etc.
This commit is contained in:
@@ -1986,7 +1986,7 @@ export default defineComponent({
|
||||
];
|
||||
const sourceNodeOutputs = NodeHelpers.getNodeOutputs(
|
||||
workflow,
|
||||
lastSelectedNode!,
|
||||
lastSelectedNode,
|
||||
sourceNodeType,
|
||||
);
|
||||
const sourceNodeOutputTypes = NodeHelpers.getConnectionTypes(sourceNodeOutputs);
|
||||
@@ -2010,7 +2010,7 @@ export default defineComponent({
|
||||
// outputs here is to calculate the position it is fine to assume
|
||||
// that they have no outputs and are so treated as a regular node
|
||||
// with only "main" outputs.
|
||||
outputs = NodeHelpers.getNodeOutputs(workflow, newNodeData!, nodeTypeData);
|
||||
outputs = NodeHelpers.getNodeOutputs(workflow, newNodeData, nodeTypeData);
|
||||
} catch (e) {}
|
||||
const outputTypes = NodeHelpers.getConnectionTypes(outputs);
|
||||
const lastSelectedNodeType = this.nodeTypesStore.getNodeType(
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { convertToDisplayDate } from '@/utils';
|
||||
import { convertToDisplayDate, capitalizeFirstLetter } from '@/utils';
|
||||
import { useToast, useMessage } from '@/composables';
|
||||
import type {
|
||||
ILdapConfig,
|
||||
@@ -156,7 +156,6 @@ import { MODAL_CONFIRM } from '@/constants';
|
||||
|
||||
import humanizeDuration from 'humanize-duration';
|
||||
import { ElTable, ElTableColumn } from 'element-plus';
|
||||
import { capitalizeFirstLetter } from '@/utils';
|
||||
import InfiniteLoading from 'v3-infinite-loading';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useUsersStore } from '@/stores/users.store';
|
||||
@@ -217,7 +216,7 @@ export default defineComponent({
|
||||
return this.usersStore.currentUser;
|
||||
},
|
||||
isLDAPFeatureEnabled(): boolean {
|
||||
return this.settingsStore.settings.enterprise.ldap === true;
|
||||
return this.settingsStore.settings.enterprise.ldap;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
@@ -304,7 +303,7 @@ export default defineComponent({
|
||||
let saveForm = true;
|
||||
|
||||
try {
|
||||
if (this.adConfig.loginEnabled === true && newConfiguration.loginEnabled === false) {
|
||||
if (this.adConfig.loginEnabled && !newConfiguration.loginEnabled) {
|
||||
const confirmAction = await this.confirm(
|
||||
this.$locale.baseText('settings.ldap.confirmMessage.beforeSaveForm.message'),
|
||||
this.$locale.baseText('settings.ldap.confirmMessage.beforeSaveForm.headline'),
|
||||
@@ -399,11 +398,11 @@ export default defineComponent({
|
||||
this.loginEnabled = this.adConfig.loginEnabled;
|
||||
this.syncEnabled = this.adConfig.synchronizationEnabled;
|
||||
const whenLoginEnabled: IFormInput['shouldDisplay'] = (values) =>
|
||||
values['loginEnabled'] === true;
|
||||
values.loginEnabled === true;
|
||||
const whenSyncAndLoginEnabled: IFormInput['shouldDisplay'] = (values) =>
|
||||
values['synchronizationEnabled'] === true && values['loginEnabled'] === true;
|
||||
values.synchronizationEnabled === true && values.loginEnabled === true;
|
||||
const whenAdminBindingAndLoginEnabled: IFormInput['shouldDisplay'] = (values) =>
|
||||
values['bindingType'] === 'admin' && values['loginEnabled'] === true;
|
||||
values.bindingType === 'admin' && values.loginEnabled === true;
|
||||
this.formInputs = [
|
||||
{
|
||||
name: 'loginEnabled',
|
||||
@@ -484,7 +483,7 @@ export default defineComponent({
|
||||
required: false,
|
||||
},
|
||||
shouldDisplay(values): boolean {
|
||||
return values['connectionSecurity'] !== 'none' && values['loginEnabled'] === true;
|
||||
return values.connectionSecurity !== 'none' && values.loginEnabled === true;
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -155,7 +155,7 @@ export default defineComponent({
|
||||
return process.env.NODE_ENV;
|
||||
},
|
||||
isLicensed(): boolean {
|
||||
if (this.disableLicense === true) return false;
|
||||
if (this.disableLicense) return false;
|
||||
return this.settingsStore.isEnterpriseFeatureEnabled(EnterpriseEditionFeature.LogStreaming);
|
||||
},
|
||||
},
|
||||
|
||||
@@ -173,7 +173,7 @@ export default defineComponent({
|
||||
return this.currentUser?.signInType === 'ldap';
|
||||
},
|
||||
isLDAPFeatureEnabled(): boolean {
|
||||
return this.settingsStore.settings.enterprise.ldap === true;
|
||||
return this.settingsStore.settings.enterprise.ldap;
|
||||
},
|
||||
signInWithSaml(): boolean {
|
||||
return (
|
||||
|
||||
@@ -62,7 +62,7 @@ import { defineComponent } from 'vue';
|
||||
import { mapStores } from 'pinia';
|
||||
import { EnterpriseEditionFeature, INVITE_USER_MODAL_KEY, VIEWS } from '@/constants';
|
||||
|
||||
import type { IUser, IUserListAction } from '@/Interface';
|
||||
import type { IUserListAction } from '@/Interface';
|
||||
import { useToast } from '@/composables';
|
||||
import { copyPaste } from '@/mixins/copyPaste';
|
||||
import { useUIStore } from '@/stores/ui.store';
|
||||
@@ -137,13 +137,13 @@ export default defineComponent({
|
||||
this.uiStore.openModal(INVITE_USER_MODAL_KEY);
|
||||
},
|
||||
async onDelete(userId: string) {
|
||||
const user = this.usersStore.getUserById(userId) as IUser | null;
|
||||
const user = this.usersStore.getUserById(userId);
|
||||
if (user) {
|
||||
this.uiStore.openDeleteUserModal(userId);
|
||||
}
|
||||
},
|
||||
async onReinvite(userId: string) {
|
||||
const user = this.usersStore.getUserById(userId) as IUser | null;
|
||||
const user = this.usersStore.getUserById(userId);
|
||||
if (user) {
|
||||
try {
|
||||
await this.usersStore.reinviteUser({ id: user.id });
|
||||
@@ -161,7 +161,7 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
async onCopyInviteLink(userId: string) {
|
||||
const user = this.usersStore.getUserById(userId) as IUser | null;
|
||||
const user = this.usersStore.getUserById(userId);
|
||||
if (user?.inviteAcceptUrl) {
|
||||
this.copyToClipboard(user.inviteAcceptUrl);
|
||||
|
||||
@@ -173,7 +173,7 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
async onCopyPasswordResetLink(userId: string) {
|
||||
const user = this.usersStore.getUserById(userId) as IUser | null;
|
||||
const user = this.usersStore.getUserById(userId);
|
||||
if (user) {
|
||||
const url = await this.usersStore.getUserPasswordResetLink(user);
|
||||
this.copyToClipboard(url.link);
|
||||
@@ -186,7 +186,7 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
async onAllowSSOManualLogin(userId: string) {
|
||||
const user = this.usersStore.getUserById(userId) as IUser | null;
|
||||
const user = this.usersStore.getUserById(userId);
|
||||
if (user) {
|
||||
if (!user.settings) {
|
||||
user.settings = {};
|
||||
@@ -202,7 +202,7 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
async onDisallowSSOManualLogin(userId: string) {
|
||||
const user = this.usersStore.getUserById(userId) as IUser | null;
|
||||
const user = this.usersStore.getUserById(userId);
|
||||
if (user?.settings) {
|
||||
user.settings.allowSSOManualLogin = false;
|
||||
await this.usersStore.updateOtherUserSettings(userId, user.settings);
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import AuthView from './AuthView.vue';
|
||||
import MfaView from './MfaView.vue';
|
||||
import MfaView, { FORM } from './MfaView.vue';
|
||||
import { useToast } from '@/composables';
|
||||
import type { IFormBoxConfig } from '@/Interface';
|
||||
import { MFA_AUTHENTICATION_REQUIRED_ERROR_CODE, VIEWS } from '@/constants';
|
||||
@@ -30,7 +30,6 @@ import { useUsersStore } from '@/stores/users.store';
|
||||
import { useSettingsStore } from '@/stores/settings.store';
|
||||
import { useCloudPlanStore, useUIStore } from '@/stores';
|
||||
import { genericHelpers } from '@/mixins/genericHelpers';
|
||||
import { FORM } from './MfaView.vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'SigninView',
|
||||
|
||||
@@ -150,7 +150,7 @@ export default defineComponent({
|
||||
async mounted() {
|
||||
this.scrollToTop();
|
||||
|
||||
if (this.collection && (this.collection as ITemplatesCollectionFull).full) {
|
||||
if (this.collection && this.collection.full) {
|
||||
this.loading = false;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -363,8 +363,7 @@ export default defineComponent({
|
||||
if (contentArea) {
|
||||
// When leaving this page, store current scroll position in route data
|
||||
if (
|
||||
this.$route.meta &&
|
||||
this.$route.meta.setScrollPosition &&
|
||||
this.$route.meta?.setScrollPosition &&
|
||||
typeof this.$route.meta.setScrollPosition === 'function'
|
||||
) {
|
||||
this.$route.meta.setScrollPosition(contentArea.scrollTop);
|
||||
|
||||
Reference in New Issue
Block a user