-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes descope/etc#4907
- Loading branch information
Showing
7 changed files
with
120 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { IS_LOCAL_STORAGE } from './general'; | ||
|
||
const BASE_CONTENT_URL_KEY = 'base.content.url'; | ||
|
||
// eslint-disable-next-line import/prefer-default-export | ||
export const BASE_CONTENT_URL = | ||
(IS_LOCAL_STORAGE && localStorage.getItem(BASE_CONTENT_URL_KEY)) || | ||
'https://static.descope.com/pages'; | ||
|
||
export const ASSETS_FOLDER = 'v2-beta'; | ||
export const PREV_VER_ASSETS_FOLDER = 'v2-alpha'; | ||
|
||
// Those files are saved on a new folder to prevent breaking changes | ||
export const THEME_FILENAME = 'theme.json'; | ||
export const CONFIG_FILENAME = 'config.json'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/* eslint-disable import/prefer-default-export */ | ||
export const IS_LOCAL_STORAGE = typeof localStorage !== 'undefined'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { IS_LOCAL_STORAGE } from './general'; | ||
|
||
export const UI_COMPONENTS_URL_KEY = 'base.ui.components.url'; | ||
|
||
export const UI_COMPONENTS_URL = | ||
(IS_LOCAL_STORAGE && localStorage.getItem(UI_COMPONENTS_URL_KEY)) || | ||
'https://static.descope.com/npm/@descope/web-components-ui@<version>/dist/umd/index.js'; | ||
|
||
export const UI_COMPONENTS_FALLBACK_URL = | ||
(IS_LOCAL_STORAGE && localStorage.getItem(UI_COMPONENTS_URL_KEY)) || | ||
'https://cdn.jsdelivr.net/npm/@descope/web-components-ui@<version>/dist/umd/index.js'; | ||
|
||
export const UI_COMPONENTS_URL_VERSION_PLACEHOLDER = '<version>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters