refactor(core): Sort variables files under variables folder (#6051)

sort variables files under variables folder
This commit is contained in:
Michael Auerswald 2023-04-21 13:08:16 +02:00 committed by GitHub
parent 444ed1bf0e
commit da31925083
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 3 additions and 21 deletions

View file

@ -156,9 +156,9 @@ import {
import { getSamlLoginLabel, isSamlLoginEnabled, isSamlLicensed } from './sso/saml/samlHelpers'; import { getSamlLoginLabel, isSamlLoginEnabled, isSamlLicensed } from './sso/saml/samlHelpers';
import { SamlController } from './sso/saml/routes/saml.controller.ee'; import { SamlController } from './sso/saml/routes/saml.controller.ee';
import { SamlService } from './sso/saml/saml.service.ee'; import { SamlService } from './sso/saml/saml.service.ee';
import { variablesController } from './environments/variables.controller'; import { variablesController } from './environments/variables/variables.controller';
import { LdapManager } from './Ldap/LdapManager.ee'; import { LdapManager } from './Ldap/LdapManager.ee';
import { getVariablesLimit, isVariablesEnabled } from '@/environments/enviromentHelpers'; import { getVariablesLimit, isVariablesEnabled } from '@/environments/variables/enviromentHelpers';
import { getCurrentAuthenticationMethod } from './sso/ssoHelpers'; import { getCurrentAuthenticationMethod } from './sso/ssoHelpers';
import { isVersionControlLicensed } from '@/environments/versionControl/versionControlHelper'; import { isVersionControlLicensed } from '@/environments/versionControl/versionControlHelper';
import { VersionControlService } from '@/environments/versionControl/versionControl.service.ee'; import { VersionControlService } from '@/environments/versionControl/versionControl.service.ee';

View file

@ -1,18 +0,0 @@
import Container from 'typedi';
import { License } from '../../License';
import { generateKeyPairSync } from 'crypto';
export function isVersionControlEnabled() {
const license = Container.get(License);
return license.isVersionControlLicensed();
}
export async function generateSshKeyPair() {
const keyPair = generateKeyPairSync('ed25519', {
privateKeyEncoding: { format: 'pem', type: 'pkcs8' },
publicKeyEncoding: { format: 'pem', type: 'spki' },
});
console.log(keyPair.privateKey);
console.log(keyPair.publicKey);
}

View file

@ -73,7 +73,7 @@ import { v4 as uuid } from 'uuid';
import { InternalHooks } from '@/InternalHooks'; import { InternalHooks } from '@/InternalHooks';
import { LoadNodesAndCredentials } from '@/LoadNodesAndCredentials'; import { LoadNodesAndCredentials } from '@/LoadNodesAndCredentials';
import { PostHogClient } from '@/posthog'; import { PostHogClient } from '@/posthog';
import { variablesController } from '@/environments/variables.controller'; import { variablesController } from '@/environments/variables/variables.controller';
import { LdapManager } from '@/Ldap/LdapManager.ee'; import { LdapManager } from '@/Ldap/LdapManager.ee';
import { handleLdapInit } from '@/Ldap/helpers'; import { handleLdapInit } from '@/Ldap/helpers';
import { Push } from '@/push'; import { Push } from '@/push';