moved uds.js to different location for admin and user

This commit is contained in:
Adolfo Gómez García 2020-04-24 10:02:18 +02:00
parent 57bc347625
commit e5967b7ff3
3 changed files with 3 additions and 2 deletions

View File

@ -47,6 +47,6 @@ def rename(newName: str) -> bool:
return renamers[distribution](newName)
# Try Debian renamer, simplest one
logger.info('Renamer for platform "{0}" not found, tryin debian renamer'.format(distribution))
logger.info('Renamer for platform "{0}" not found, trying debian renamer'.format(distribution))
return renamers['debian'](newName)

View File

@ -92,6 +92,6 @@
</svg>
</div>
</uds-root>
<script src="/uds/res/admin/runtime.js?stamp=1587373545" defer></script><script src="/uds/res/admin/polyfills-es5.js?stamp=1587373545" nomodule defer></script><script src="/uds/res/admin/polyfills.js?stamp=1587373545" defer></script><script src="/uds/res/admin/main.js?stamp=1587373545" defer></script></body>
<script src="/uds/res/admin/runtime.js?stamp=1587715220" defer></script><script src="/uds/res/admin/polyfills-es5.js?stamp=1587715220" nomodule defer></script><script src="/uds/res/admin/polyfills.js?stamp=1587715220" defer></script><script src="/uds/res/admin/main.js?stamp=1587715220" defer></script></body>
</html>

View File

@ -89,6 +89,7 @@ urlpatterns = [
# Javascript
path(r'uds/utility/uds.js', uds.web.views.modern.js, name="utility.js"),
path(r'uds/adm/utility/uds.js', uds.web.views.modern.js, name="utility-adm.js"),
# i18n
re_path(r'^uds/utility/i18n/(?P<lang>[a-z_-]*).js$', JavaScriptCatalog.as_view(), name='utility.jsCatalog'),