mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
Default dashboard assets/fonts to local bundles
This commit is contained in:
@@ -9,13 +9,14 @@ import os
|
|||||||
offline_bp = Blueprint('offline', __name__, url_prefix='/offline')
|
offline_bp = Blueprint('offline', __name__, url_prefix='/offline')
|
||||||
|
|
||||||
# Default offline settings
|
# Default offline settings
|
||||||
OFFLINE_DEFAULTS = {
|
OFFLINE_DEFAULTS = {
|
||||||
'offline.enabled': False,
|
'offline.enabled': False,
|
||||||
'offline.assets_source': 'cdn',
|
# Default to bundled assets/fonts to avoid third-party CDN privacy blocks.
|
||||||
'offline.fonts_source': 'cdn',
|
'offline.assets_source': 'local',
|
||||||
'offline.tile_provider': 'cartodb_dark_cyan',
|
'offline.fonts_source': 'local',
|
||||||
'offline.tile_server_url': ''
|
'offline.tile_provider': 'cartodb_dark_cyan',
|
||||||
}
|
'offline.tile_server_url': ''
|
||||||
|
}
|
||||||
|
|
||||||
# Asset paths to check
|
# Asset paths to check
|
||||||
ASSET_PATHS = {
|
ASSET_PATHS = {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ const Settings = {
|
|||||||
// Default settings
|
// Default settings
|
||||||
defaults: {
|
defaults: {
|
||||||
'offline.enabled': false,
|
'offline.enabled': false,
|
||||||
'offline.assets_source': 'cdn',
|
'offline.assets_source': 'local',
|
||||||
'offline.fonts_source': 'cdn',
|
'offline.fonts_source': 'local',
|
||||||
'offline.tile_provider': 'cartodb_dark_cyan',
|
'offline.tile_provider': 'cartodb_dark_cyan',
|
||||||
'offline.tile_server_url': ''
|
'offline.tile_server_url': ''
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user