How to use enabled - 2 common examples

To help you get started, we’ve selected a few enabled 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 saggiyogesh / nodeportal / lib / BootstrapApp.js View on Github external
AppProperties.set("DEV_STATIC_MAX_AGE", props["dev.static.max.age"]);
    AppProperties.set("AVAILABLE_LOCALES", props["available.locales"]);
    AppProperties.set("SCHEMA_LIST_MODEL_EVENTS", props["schema.list.model.events"]);
    AppProperties.set("SERVER_PORT", props["server.port"]);
    AppProperties.set("MAIL_KNOWN_SMTP", props["mail.known.smtp"]);
    AppProperties.set("MAIL_HOST", props["mail.host"]);
    AppProperties.set("MAIL_PORT", props["mail.port"]);
    AppProperties.set("MAIL_AUTH_USER", props["mail.auth.user"]);
    AppProperties.set("MAIL_AUTH_PASSWORD", props["mail.auth.password"]);
    AppProperties.set("STARTUP_MAIL_TEST", props["startup.mail.test"]);

    AppProperties.set("APP_STARTUP_ACTIONS_FILE", props["app.startup.actions.file"]);
    AppProperties.set("REQ_MIDDLEWARES", props["req.middlewares"]);

    //OAuth accounts login config
    var accounts = props["enabled.login.accounts"];
    accounts = accounts || AppProperties.get("ENABLED_LOGIN_ACCOUNTS");
    if (accounts) {
        AppProperties.set("ENABLED_LOGIN_ACCOUNTS", accounts);
        accounts = accounts.split(",");
        var accConfig = {};
        _.each(props, function (value, key) {
            var split = key.split(".");
            var acc = split[0];
            if (acc && _.contains(accounts, acc)) {
                accConfig[acc] = accConfig[acc] || {};
                //trying to convert string array into array
                try {
                    value = eval(value);
                }
                catch (e) {
                }
github phingofficial / phing / docs / docbook5 / en / output / webhelp / search / index-1.js View on Github external
w["email"]="107*1,272*1,275*1,289*4,377*1";
w["email."]="289*2";
w["embed"]="270*1";
w["emerg"]="270*1";
w["emit"]="109*1,340*1";
w["emphasi"]="138*9";
w["emphasis"]="138*1";
w["emphasised."]="138*1";
w["employ"]="42*1";
w["empti"]="73*1,85*1,99*1,130*1,190*1,206*1,217*1,323*1,333*1,388*1,403*1,413*1,492*1,502*1";
w["empty."]="166*1";
w["emul"]="73*1,76*1,117*1,163*1,465*1";
w["en"]="35*2,226*2,286*1,354*1,521*1";
w["en_us"]="75*1";
w["enabl"]="23*1,33*1,42*2,53*14,76*1,105*1,159*1,200*1,258*1,322*2,326*1,354*1,369*1,403*1,451*2,460*10,475*1,486*1,507*1,518*1";
w["enabled."]="105*1,460*2";
w["enc"]="42*1";
w["enc_passwd"]="157*1";
w["enclos"]="62*2,132*1,180*1,296*1,317*1,402*1,492*1";
w["encod"]="11*8,18*4,48*1,74*3,84*1,93*1,109*2,111*2,132*2,135*2,147*1,236*2,238*13,280*2,284*5,363*16,365*2,449*1,456*2,460*13,521*2";
w["encoded."]="460*1";
w["encodedon"]="460*1";
w["encoder."]="18*1,93*1";
w["encoding."]="109*1,280*2,284*3,460*1";
w["encount"]="181*1,200*2,304*1,369*2,403*1,486*1";
w["encountered."]="200*2,403*1";
w["encounters."]="304*1";
w["encourag"]="31*1,42*1";
w["encrypt"]="18*1,167*1,238*3,414*1";
w["encrypted."]="238*1";
w["end"]="42*1,111*1,164*1,178*1,243*1,259*1,296*1,317*3,343*2,402*2,442*1,464*1,518*1";
w["endings:"]="164*1";

enabled

Check if a certain debug flag is enabled.

MIT
Latest version published 6 years ago

Package Health Score

65 / 100
Full package analysis

Popular enabled functions