UNPKG

@wireapp/commons

Version:

Collection of common components that are used across Wire web applications.

49 lines (48 loc) 2.29 kB
"use strict"; /* * Wire * Copyright (C) 2018 Wire Swiss GmbH * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see http://www.gnu.org/licenses/. * */ Object.defineProperty(exports, "__esModule", { value: true }); exports.TEAMS_SUPPORTED_LANGUAGES = exports.TEAMS_DEFAULT_LANGUAGE = exports.WEBSITE_SUPPORTED_LANGUAGES = exports.WEBSITE_DEFAULT_LANGUAGE = exports.ACCOUNT_PAGES_SUPPORTED_LANGUAGES = exports.ACCOUNT_PAGES_DEFAULT_LANGUAGE = exports.LANGUAGE_QUERY_PARAMETER = exports.WEBAPP_SUPPORTED_BROWSERS = exports.BROWSER = void 0; exports.BROWSER = { CHROME: 'chrome', CHROMIUM: 'chromium', // Added for express-useragent EDGE: 'edge', // Added for express-useragent and https://github.com/wireapp/wire-webapp/issues/5263 ELECTRON: 'electron', FIREFOX: 'firefox', IE: 'ie', MS_EDGE: 'microsoft edge', OPERA: 'opera', SAFARI: 'safari', }; exports.WEBAPP_SUPPORTED_BROWSERS = { [exports.BROWSER.CHROME]: { major: 56, minor: 0 }, [exports.BROWSER.CHROMIUM]: { major: 56, minor: 0 }, [exports.BROWSER.FIREFOX]: { major: 60, minor: 0 }, [exports.BROWSER.EDGE]: { major: 15, minor: 0 }, [exports.BROWSER.MS_EDGE]: { major: 15, minor: 0 }, [exports.BROWSER.ELECTRON]: { major: 1, minor: 6 }, [exports.BROWSER.OPERA]: { major: 43, minor: 0 }, }; exports.LANGUAGE_QUERY_PARAMETER = 'hl'; exports.ACCOUNT_PAGES_DEFAULT_LANGUAGE = 'en-US'; exports.ACCOUNT_PAGES_SUPPORTED_LANGUAGES = [exports.ACCOUNT_PAGES_DEFAULT_LANGUAGE, 'de-DE']; exports.WEBSITE_DEFAULT_LANGUAGE = 'en'; exports.WEBSITE_SUPPORTED_LANGUAGES = [exports.WEBSITE_DEFAULT_LANGUAGE, 'de']; exports.TEAMS_DEFAULT_LANGUAGE = 'en'; exports.TEAMS_SUPPORTED_LANGUAGES = [exports.TEAMS_DEFAULT_LANGUAGE, 'de'];