Move web interface to its own package

Create clusterio/web_ui package and move all of the web interface files
to it in order to be able to share the interface components with
plugins.
This commit is contained in:
Hornwitser committed 2020-10-28 19:22:14 +01:00
1 parent eee4c69575
commit 690e566556
32 files changed
+46 -27

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
// Calculate basedir of application based on current location and
// the provided web_root from master server.
const location = new URL(window.webRoot, document.location);
const basename = location.pathname !== "/" ? location.pathname : "";
export default basename;