Sidebar: rename media-globe/ to media_globe/ (#1973)

So that it can be an importable package.
This is in preparation for setuptools packaging.
This commit is contained in:
radfish 2019-04-16 05:34:55 -04:00 committed by ZeroNet
parent bdb0dc32a7
commit 1516d55a88
7 changed files with 5 additions and 5 deletions

View file

@ -49,7 +49,7 @@ class UiRequestPlugin(object):
yield part
elif path.startswith("/uimedia/globe/"): # Serve WebGL globe files
file_name = re.match(".*/(.*)", path).group(1)
plugin_media_file = "%s-globe/%s" % (media_dir, file_name)
plugin_media_file = "%s_globe/%s" % (media_dir, file_name)
if config.debug and path.endswith("all.js"):
# If debugging merge *.css to all.css and *.js to all.js
from Debug import DebugMedia

View file

@ -1,6 +1,6 @@
/* ---- plugins/Sidebar/media-globe/Detector.js ---- */
/* ---- plugins/Sidebar/media_globe/Detector.js ---- */
/**
@ -66,7 +66,7 @@ Detector = {
/* ---- plugins/Sidebar/media-globe/Tween.js ---- */
/* ---- plugins/Sidebar/media_globe/Tween.js ---- */
// Tween.js - http://github.com/sole/tween.js
@ -84,7 +84,7 @@ TWEEN.Easing.Bounce.EaseInOut=function(a){if(a<0.5)return TWEEN.Easing.Bounce.Ea
/* ---- plugins/Sidebar/media-globe/globe.js ---- */
/* ---- plugins/Sidebar/media_globe/globe.js ---- */
/**
@ -526,7 +526,7 @@ DAT.Globe = function(container, opts) {
/* ---- plugins/Sidebar/media-globe/three.min.js ---- */
/* ---- plugins/Sidebar/media_globe/three.min.js ---- */
// threejs.org/license

View file

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 93 KiB