mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
refactor(core): Sort variables files under variables folder (#6051)
sort variables files under variables folder
This commit is contained in:
parent
444ed1bf0e
commit
da31925083
|
@ -156,9 +156,9 @@ import {
|
|||
import { getSamlLoginLabel, isSamlLoginEnabled, isSamlLicensed } from './sso/saml/samlHelpers';
|
||||
import { SamlController } from './sso/saml/routes/saml.controller.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 { getVariablesLimit, isVariablesEnabled } from '@/environments/enviromentHelpers';
|
||||
import { getVariablesLimit, isVariablesEnabled } from '@/environments/variables/enviromentHelpers';
|
||||
import { getCurrentAuthenticationMethod } from './sso/ssoHelpers';
|
||||
import { isVersionControlLicensed } from '@/environments/versionControl/versionControlHelper';
|
||||
import { VersionControlService } from '@/environments/versionControl/versionControl.service.ee';
|
||||
|
|
|
@ -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);
|
||||
}
|
|
@ -73,7 +73,7 @@ import { v4 as uuid } from 'uuid';
|
|||
import { InternalHooks } from '@/InternalHooks';
|
||||
import { LoadNodesAndCredentials } from '@/LoadNodesAndCredentials';
|
||||
import { PostHogClient } from '@/posthog';
|
||||
import { variablesController } from '@/environments/variables.controller';
|
||||
import { variablesController } from '@/environments/variables/variables.controller';
|
||||
import { LdapManager } from '@/Ldap/LdapManager.ee';
|
||||
import { handleLdapInit } from '@/Ldap/helpers';
|
||||
import { Push } from '@/push';
|
||||
|
|
Loading…
Reference in a new issue