How to use the licia/isEmpty function in licia

To help you get started, we’ve selected a few licia examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github art-community / ART / application-platform / src / main / web / src / administration / tabs / applications / store / ApplicationsTabComponentStore.jsx View on Github external
addProject = (project) => {
        if (isEmpty(project) || this.projects.has(project)) return false;
        this.projects.add(project);
        return true
    };
github art-community / ART / application-platform / src / main / web / src / administration / tabs / applications / project / controller / ProjectConfigurationComponentController.jsx View on Github external
loadEnvironments(environments => {
                if (isEmpty(environments)) {
                    registry.projectConfiguration.store.environments = new Set();
                    registry.projectConfiguration.store.servers = new Set();
                    registry.projectConfiguration.store.project.module.availableEnvironments = [];
                    registry.projectConfiguration.store.project.module.availableServers = [];
                    registry.projectConfiguration.store.apply();
                    return
                }
                registry.projectConfiguration.store.environments = new Set(environments);
                const newAvailableEnvironments = [];
                registry.projectConfiguration.store.project.module.availableEnvironments.forEach(environment => {
                    if (contain(environments, environment)) {
                        newAvailableEnvironments.push(environment);
                    }
                });
                registry.projectConfiguration.store.project.module.availableEnvironments = newAvailableEnvironments;
                loadServersByEnvironments(environments, servers => {
github art-community / ART / application-platform / src / main / web / src / administration / tabs / notifications / reactor / NotificationsTabComponentReactor.jsx View on Github external
loadProjectGroups(application, groups => {
                if (isEmpty(groups)) {
                    registry.notificationsTab.store.projectGroups = [];
                    registry.notificationsTab.store.projects = [];
                    registry.notificationsTab.store.selectedProject = null;
                    registry.notificationsTab.store.selectedProjectGroup = null;
                    registry.notificationsTab.store.apply();
                    return
                }
                registry.notificationsTab.store.projectGroups = new Set(groups);
                registry.notificationsTab.store.apply()
            })
        });
github art-community / ART / application-platform / src / main / web / src / administration / tabs / applications / store / ApplicationsTabComponentStore.jsx View on Github external
deleteApplication = (application) => {
        if (isEmpty(application) || !this.applications.has(application)) return false;
        this.applications.delete(application);
        return true
    };
github art-community / ART / application-platform / src / main / web / src / administration / tabs / applications / project / reactor / ProjectConfigurationComponentReactor.jsx View on Github external
loadServersByEnvironments(environments, servers => {
            if (isEmpty(servers)) {
                registry.projectConfiguration.store.project.module.availableServers = [];
                registry.projectConfiguration.store.apply();
                return
            }
            const newAvailableServers = [];
            registry.projectConfiguration.store.project.module.availableServers.forEach(server => {
                if (contain(servers, server)) {
                    newAvailableServers.push(server);
                }
            });
            registry.projectConfiguration.store.project.module.availableServers = newAvailableServers;
            registry.projectConfiguration.store.servers = new Set(servers);
            registry.projectConfiguration.store.apply()
        })
    },
github art-community / ART / application-platform / src / main / web / src / administration / tabs / applications / controller / ApplicationsTabComponentController.jsx View on Github external
loadProjectGroups(application, groups => {
            if (isEmpty(groups)) {
                registry.applicationsTab.store.projectGroups = new Set();
                registry.applicationsTab.store.projects = new Set();
                registry.applicationsTab.store.apply();
                return;
            }
            registry.applicationsTab.store.projectGroups = new Set(groups);
            registry.applicationsTab.store.selectedProjectGroup = groups[0];
            loadProjects(application, groups[0], projects => {
                if (isEmpty(projects)) {
                    registry.applicationsTab.store.projects = new Set();
                    registry.applicationsTab.store.apply();
                    return;
                }
                registry.applicationsTab.store.projects = new Set(projects);
                registry.applicationsTab.store.selectedProject = projects[0];
                if (registry.projectConfiguration) {
github art-community / ART / application-platform / src / main / web / src / administration / tabs / notifications / component / NotificationsTabComponent.jsx View on Github external
    createProjectNotificationsView = () => isEmpty(this.state.selectedProject) ? EMPTY_TAG :
        <div>
            
                <header color="{PRIMARY_COLOR}">
                    Нотификации для Проекта {registry.notificationsTab.store.selectedProject}
                </header>
                {this.state.selectedProjectNotifications.map((notification, index) =&gt; this.createNotificationView(notification, index, reactors.onProjectNotificationPropertyInput, () =&gt; reactors.onDeleteProjectNotification(index)))}
            
            {this.createAddNotificationButton(reactors.onAddProjectNotification)}
        </div>;
github art-community / ART / application-platform / src / main / web / src / administration / tabs / environments / controller / EnvironmentsTabComponentController.jsx View on Github external
loadClusters(environment, clusters => {
            if (isEmpty(clusters)) {
                registry.environmentsTab.store.apply();
                return
            }
            registry.environmentsTab.store.clusters = new Set(clusters);
            registry.environmentsTab.store.selectedCluster = clusters[0];
            loadServers(environment, clusters[0], servers => {
                if (isEmpty(servers)) {
                    registry.environmentsTab.store.apply();
                    return;
                }
                registry.environmentsTab.store.servers = new Set(servers);
                registry.environmentsTab.store.selectedServer = servers[0];
                if (registry.serverConfiguration) {
                    registry.serverConfiguration.controller.loadServerConfiguration(environment, clusters[0], servers[0]);
                }
                registry.environmentsTab.store.apply();
github art-community / ART / application-platform / src / main / web / src / administration / tabs / applications / project / controller / ProjectConfigurationComponentController.jsx View on Github external
loadProject(application, group, project, project => {
            if (isEmpty(project)) {
                registry.projectConfiguration.store.project = {};
                registry.projectConfiguration.store.apply();
                return
            }
            registry.projectConfiguration.store.project = project;
            loadEnvironments(environments => {
                if (isEmpty(environments)) {
                    registry.projectConfiguration.store.environments = new Set();
                    registry.projectConfiguration.store.servers = new Set();
                    registry.projectConfiguration.store.project.module.availableEnvironments = [];
                    registry.projectConfiguration.store.project.module.availableServers = [];
                    registry.projectConfiguration.store.apply();
                    return
                }
                registry.projectConfiguration.store.environments = new Set(environments);
                const newAvailableEnvironments = [];
github art-community / ART / application-platform / src / main / web / src / administration / tabs / applications / component / ApplicationsTabComponent.jsx View on Github external
    createProjectSelector = () =&gt; isEmpty(this.state.selectedProjectGroup) ? EMPTY_TAG :
        <div>
            <header color="{PRIMARY_COLOR}">Выберите проект:</header>
            
                 reactors.onSelectProject(fromSelectOption(option))}/&gt;
                
                 reactors.onInputNewProject(input.value)}/&gt;
                </div>