404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.119.11.179: ~ $
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CapacitorConfig = exports.CAPACITOR_CONFIG_FILE = void 0;
const cli_framework_1 = require("@ionic/cli-framework");
const lodash = require("lodash");
exports.CAPACITOR_CONFIG_FILE = 'capacitor.config.json';
class CapacitorConfig extends cli_framework_1.BaseConfig {
    provideDefaults(config) {
        return config;
    }
    setServerUrl(url) {
        const serverConfig = this.get('server') || {};
        if (typeof serverConfig.url === 'string') {
            serverConfig.originalUrl = serverConfig.url;
        }
        if (typeof serverConfig.cleartext === 'boolean') {
            serverConfig.originalCleartext = serverConfig.cleartext;
        }
        serverConfig.url = url;
        serverConfig.cleartext = true;
        this.set('server', serverConfig);
    }
    resetServerUrl() {
        const serverConfig = this.get('server') || {};
        delete serverConfig.url;
        delete serverConfig.cleartext;
        if (serverConfig.originalUrl) {
            serverConfig.url = serverConfig.originalUrl;
            delete serverConfig.originalUrl;
        }
        if (serverConfig.originalCleartext) {
            serverConfig.cleartext = serverConfig.originalCleartext;
            delete serverConfig.originalCleartext;
        }
        if (lodash.isEmpty(serverConfig)) {
            this.unset('server');
        }
        else {
            this.set('server', serverConfig);
        }
    }
}
exports.CapacitorConfig = CapacitorConfig;

Filemanager

Name Type Size Permission Actions
config.d.ts File 582 B 0644
config.js File 1.52 KB 0644
index.d.ts File 939 B 0644
index.js File 5 KB 0644
utils.d.ts File 370 B 0644
utils.js File 1.15 KB 0644