tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

constants.mjs (948B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 export const ADDON_ID = "addon-fluent";
      6 export const PANEL_ID = `${ADDON_ID}/fluentPanel`;
      7 export const TOOL_ID = `${ADDON_ID}/toolbarButton`;
      8 
      9 export const STRATEGY_DEFAULT = "default";
     10 export const STRATEGY_ACCENTED = "accented";
     11 export const STRATEGY_BIDI = "bidi";
     12 
     13 export const PSEUDO_STRATEGIES = [
     14  STRATEGY_DEFAULT,
     15  STRATEGY_ACCENTED,
     16  STRATEGY_BIDI,
     17 ];
     18 
     19 export const DIRECTIONS = {
     20  ltr: "ltr",
     21  rtl: "rtl",
     22 };
     23 
     24 export const DIRECTION_BY_STRATEGY = {
     25  [STRATEGY_DEFAULT]: DIRECTIONS.ltr,
     26  [STRATEGY_ACCENTED]: DIRECTIONS.ltr,
     27  [STRATEGY_BIDI]: DIRECTIONS.rtl,
     28 };
     29 
     30 export const UPDATE_STRATEGY_EVENT = "update-strategy";
     31 export const FLUENT_SET_STRINGS = "fluent-set-strings";
     32 export const FLUENT_CHANGED = "fluent-changed";