mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-01 15:37:32 +08:00
Update static-safe mappings to match new layout, rebuild client.
This commit is contained in:
@@ -1563,10 +1563,10 @@
|
||||
|
||||
:Description:
|
||||
Default localization for Galaxy UI. Allowed values are listed at
|
||||
the end of client/src/nls/locale.js. With the default
|
||||
value (auto), the locale will be automatically adjusted to the
|
||||
user's navigator language. Users can override this settings in
|
||||
their user preferences if the localization settings are enabled in
|
||||
the end of client/src/nls/locale.js. With the default value
|
||||
(auto), the locale will be automatically adjusted to the user's
|
||||
navigator language. Users can override this settings in their user
|
||||
preferences if the localization settings are enabled in
|
||||
user_preferences_extra_conf.yml
|
||||
:Default: ``auto``
|
||||
:Type: str
|
||||
|
||||
@@ -97,8 +97,8 @@ UWSGI_OPTIONS = OrderedDict([
|
||||
}),
|
||||
('static-safe', {
|
||||
'key': 'static-safe',
|
||||
'desc': """Allow serving images out of `client`. Most modern Galaxy interfaces bundle all of this, but some older pages still serve these via symlink, requiring this rule.""",
|
||||
'default': 'client/galaxy/images',
|
||||
'desc': """Allow serving certain assets out of `client`. Most modern Galaxy interfaces bundle all of this, but some older pages still serve these via symlink, requiring this rule.""",
|
||||
'default': 'client/src/assets',
|
||||
'type': 'str',
|
||||
}),
|
||||
('master', {
|
||||
|
||||
@@ -47,10 +47,10 @@ uwsgi:
|
||||
# Mapping to serve the favicon.
|
||||
static-map: /favicon.ico=static/favicon.ico
|
||||
|
||||
# Allow serving images out of `client`. Most modern Galaxy interfaces
|
||||
# bundle all of this, but some older pages still serve these via
|
||||
# symlink, requiring this rule.
|
||||
static-safe: client/galaxy/images
|
||||
# Allow serving certain assets out of `client`. Most modern Galaxy
|
||||
# interfaces bundle all of this, but some older pages still serve
|
||||
# these via symlink, requiring this rule.
|
||||
static-safe: client/src/assets
|
||||
|
||||
# Enable the master process manager. Disabled by default for maximum
|
||||
# compatibility with CTRL+C, but should be enabled for use with
|
||||
@@ -836,10 +836,10 @@ galaxy:
|
||||
#user_preferences_extra_conf_path: user_preferences_extra_conf.yml
|
||||
|
||||
# Default localization for Galaxy UI. Allowed values are listed at the
|
||||
# end of client/src.js. With the default value
|
||||
# (auto), the locale will be automatically adjusted to the user's
|
||||
# navigator language. Users can override this settings in their user
|
||||
# preferences if the localization settings are enabled in
|
||||
# end of client/src/nls/locale.js. With the default value (auto), the
|
||||
# locale will be automatically adjusted to the user's navigator
|
||||
# language. Users can override this settings in their user preferences
|
||||
# if the localization settings are enabled in
|
||||
# user_preferences_extra_conf.yml
|
||||
#default_locale: auto
|
||||
|
||||
|
||||
@@ -29,10 +29,10 @@ uwsgi:
|
||||
# Mapping to serve the favicon.
|
||||
static-map: /favicon.ico=static/favicon.ico
|
||||
|
||||
# Allow serving images out of `client`. Most modern Galaxy interfaces
|
||||
# bundle all of this, but some older pages still serve these via
|
||||
# symlink, requiring this rule.
|
||||
static-safe: client/galaxy/images
|
||||
# Allow serving certain assets out of `client`. Most modern Galaxy
|
||||
# interfaces bundle all of this, but some older pages still serve
|
||||
# these via symlink, requiring this rule.
|
||||
static-safe: client/src/assets
|
||||
|
||||
# Enable the master process manager. Disabled by default for maximum
|
||||
# compatibility with CTRL+C, but should be enabled for use with
|
||||
|
||||
@@ -29,10 +29,10 @@ uwsgi:
|
||||
# Mapping to serve the favicon.
|
||||
static-map: /favicon.ico=static/favicon.ico
|
||||
|
||||
# Allow serving images out of `client`. Most modern Galaxy interfaces
|
||||
# bundle all of this, but some older pages still serve these via
|
||||
# symlink, requiring this rule.
|
||||
static-safe: client/galaxy/images
|
||||
# Allow serving certain assets out of `client`. Most modern Galaxy
|
||||
# interfaces bundle all of this, but some older pages still serve
|
||||
# these via symlink, requiring this rule.
|
||||
static-safe: client/src/assets
|
||||
|
||||
# Enable the master process manager. Disabled by default for maximum
|
||||
# compatibility with CTRL+C, but should be enabled for use with
|
||||
|
||||
@@ -54,7 +54,7 @@ GALAXY_CONFIG_SUBSTITUTIONS = {
|
||||
' http: 127.0.0.1:8080': ' ${uwsgi_transport}: ${host}:${port}',
|
||||
' static-map: /static=static': ' static-map: /static=${static_path}',
|
||||
' static-map: /favicon.ico=static/favicon.ico': ' static-map: /static=${static_path}/favicon.ico',
|
||||
' static-safe: client/galaxy/images': ' ${client_path}/galaxy/images',
|
||||
' static-safe: client/src/assets': ' ${client_path}/src/assets',
|
||||
' virtualenv: .venv': ' #venv: .venv # not used when running installed',
|
||||
' pythonpath: lib': ' #pythonpath: lib # not used when running installed',
|
||||
' #config_dir: false': ' config_dir: ${config_dir}',
|
||||
|
||||
@@ -1170,7 +1170,7 @@ mapping:
|
||||
required: false
|
||||
desc: |
|
||||
Default localization for Galaxy UI.
|
||||
Allowed values are listed at the end of client/src.js.
|
||||
Allowed values are listed at the end of client/src/nls/locale.js.
|
||||
With the default value (auto), the locale will be automatically adjusted to
|
||||
the user's navigator language.
|
||||
Users can override this settings in their user preferences if the localization
|
||||
|
||||
@@ -119,8 +119,8 @@ def _get_uwsgi_args(cliargs, kwargs):
|
||||
if hmr_server.lower() in ['1', 'true', 'default']:
|
||||
hmr_server = "http:127.0.0.1:8081"
|
||||
__add_arg(args, 'route', '^/static/dist/ {hmr_server}'.format(hmr_server=hmr_server))
|
||||
# We always want to append client/galaxy/images as static-safe.
|
||||
__add_arg(args, 'static-safe', '{here}/client/galaxy/images'.format(here=os.getcwd()))
|
||||
# We always want to append client/src/assets as static-safe.
|
||||
__add_arg(args, 'static-safe', '{here}/client/src/assets'.format(here=os.getcwd()))
|
||||
|
||||
for arg in DEFAULT_ARGS['_all_'] + DEFAULT_ARGS[cliargs.app]:
|
||||
if not __arg_set(arg, uwsgi_kwargs):
|
||||
|
||||
Reference in New Issue
Block a user