summaryrefslogtreecommitdiffstats
path: root/loleaflet
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2021-10-26 09:23:28 -0400
committerJan Holesovsky <holesovsky@gmail.com>2021-11-10 17:18:56 +0100
commite0fe47be5fe9eb0ebe93d3c5f176830dc2d24e75 (patch)
tree6302532925b8a8f7bfac3935d40fc3131fb1b125 /loleaflet
parentcypress: disable all writer undo-redo and repair document specs temporarily (diff)
downloadonline-e0fe47be5fe9eb0ebe93d3c5f176830dc2d24e75.tar.gz
online-e0fe47be5fe9eb0ebe93d3c5f176830dc2d24e75.zip
rename loleaflet.html -> cool.html
Change-Id: Iaa28f1269f8192755ec323396ae4ff054529f412 Signed-off-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'loleaflet')
-rw-r--r--loleaflet/Makefile.am8
-rw-r--r--loleaflet/README6
-rw-r--r--loleaflet/html/cool.html.m4 (renamed from loleaflet/html/loleaflet.html.m4)0
-rw-r--r--loleaflet/html/framed.doc.html4
-rw-r--r--loleaflet/html/framed.html4
-rw-r--r--loleaflet/html/load.doc.html2
-rw-r--r--loleaflet/html/multidocs.html4
-rw-r--r--loleaflet/js/global.js2
-rw-r--r--loleaflet/src/map/handler/Map.WOPI.js2
-rw-r--r--loleaflet/test/load.js4
10 files changed, 18 insertions, 18 deletions
diff --git a/loleaflet/Makefile.am b/loleaflet/Makefile.am
index 6a05407218..c22896748e 100644
--- a/loleaflet/Makefile.am
+++ b/loleaflet/Makefile.am
@@ -468,7 +468,7 @@ build-loleaflet: \
$(DIST_FOLDER)/device-tablet.css \
$(DIST_FOLDER)/device-desktop.css \
$(DIST_FOLDER)/bundle.js \
- $(DIST_FOLDER)/loleaflet.html
+ $(DIST_FOLDER)/cool.html
@echo "build loleaflet completed"
if ENABLE_ANDROIDAPP
@if test -d "$(APP_BRANDING_DIR)" ; then cp -a "$(APP_BRANDING_DIR)/branding.css" "$(APP_BRANDING_DIR)/branding.js" $(DIST_FOLDER)/ ; else touch $(DIST_FOLDER)/branding.css ; fi
@@ -518,13 +518,13 @@ $(DIST_FOLDER)/global.js: $(srcdir)/js/global.js
@mkdir -p $(dir $@)
$(call global_file)
-$(DIST_FOLDER)/loleaflet.html: $(srcdir)/html/loleaflet.html.m4 \
+$(DIST_FOLDER)/cool.html: $(srcdir)/html/cool.html.m4 \
$(LOLEAFLET_HTML_DST) \
$(LOLEAFLET_WELCOME_DST) \
$(DIST_FOLDER)/bundle.css \
$(DIST_FOLDER)/global.js \
$(DIST_FOLDER)/bundle.js
- @echo "Generating loleaflet.html..."
+ @echo "Generating cool.html..."
m4 -PE -DBUNDLE=$(IS_BUNDLE) \
-DENABLE_FEEDBACK=$(ENABLE_FEEDBACK) \
-DIOSAPP=$(ENABLE_IOSAPP) \
@@ -537,7 +537,7 @@ $(DIST_FOLDER)/loleaflet.html: $(srcdir)/html/loleaflet.html.m4 \
$(LOLEAFLET_LIBS_JS) \
$(patsubst %.ts,%.js,$(LOLEAFLET_JS_WEBORDER)))" \
-DVENDOR="$(VENDOR)" \
- $(srcdir)/html/loleaflet.html.m4 > $@
+ $(srcdir)/html/cool.html.m4 > $@
node_modules: package.json archived-packages
@npm install
diff --git a/loleaflet/README b/loleaflet/README
index d0fa5346de..a8086d5d44 100644
--- a/loleaflet/README
+++ b/loleaflet/README
@@ -83,9 +83,9 @@ Note that this will, by default, set the loolwsd's file server's root to the par
which means you can access all the files in loleaflet using /loleaflet/ path. It is advised to set
file_server_root_path manually for more control. See wsd/README for more information.
-* open dist/loleaflet.html through loolwsd's fileserver
+* open dist/cool.html through loolwsd's fileserver
- https://localhost:9980/loleaflet/dist/loleaflet.html?file_path=file:///PATH/TO_DOC&host=wss://localhost:9980
+ https://localhost:9980/loleaflet/dist/cool.html?file_path=file:///PATH/TO_DOC&host=wss://localhost:9980
and you should see the document in the browser.
Note that accessing local storage is disabled by default for security reasons. You need to explicitly enable it
@@ -114,7 +114,7 @@ make sync-[writer|calc|impress]
Your browser will open example document and now you can edit .css files and see the result without server restart.
To run another document use:
-browser-sync start --config browsersync-config.js --startPath "loleaflet/96c23f663/loleaflet.html?file_path=file:///path/to/the/file.ods"
+browser-sync start --config browsersync-config.js --startPath "loleaflet/96c23f663/cool.html?file_path=file:///path/to/the/file.ods"
Admin Panel
-----------
diff --git a/loleaflet/html/loleaflet.html.m4 b/loleaflet/html/cool.html.m4
index c230b3a88e..c230b3a88e 100644
--- a/loleaflet/html/loleaflet.html.m4
+++ b/loleaflet/html/cool.html.m4
diff --git a/loleaflet/html/framed.doc.html b/loleaflet/html/framed.doc.html
index 5d34cda250..e88b5c2f4e 100644
--- a/loleaflet/html/framed.doc.html
+++ b/loleaflet/html/framed.doc.html
@@ -1,6 +1,6 @@
<!DOCTYPE html>
-<!-- Proof of concept of running loleaflet.html in an iframe. Also
+<!-- Proof of concept of running cool.html in an iframe. Also
shows how to, from outside the iframe, invoke Python scripting in
the underlying LibreOffice instance that manipulates the document
being edited.
@@ -207,7 +207,7 @@
query = window.location.search + '&';
query += 'NotWOPIButIframe=true';
- var path = window.location.pathname.substr(0, window.location.pathname.lastIndexOf('/') + 1) + 'loleaflet.html';
+ var path = window.location.pathname.substr(0, window.location.pathname.lastIndexOf('/') + 1) + 'cool.html';
var uriBase = window.location.protocol + '//' + window.location.host + path + query;
var iframe = document.getElementById("frame");
iframe.src = uriBase;
diff --git a/loleaflet/html/framed.html b/loleaflet/html/framed.html
index 110959f33b..6f37d57c17 100644
--- a/loleaflet/html/framed.html
+++ b/loleaflet/html/framed.html
@@ -1,6 +1,6 @@
<!DOCTYPE html>
-<!-- Proof of concept of running loleaflet.html in an iframe. Also
+<!-- Proof of concept of running cool.html in an iframe. Also
shows how to, from outside the iframe, invoke Python scripting in
the underlying LibreOffice instance that manipulates the document
being edited.
@@ -201,7 +201,7 @@
<!-- 127.0.0.2 allows us to test CSS issues -->
<script>
- var uriBase = document.location.protocol + "//127.0.0.2:9980/loleaflet/42/loleaflet.html" + window.location.search;
+ var uriBase = document.location.protocol + "//127.0.0.2:9980/loleaflet/42/cool.html" + window.location.search;
var iframe = document.getElementById("frame");
iframe.src = uriBase + "&NotWOPIButIframe=true";
var msg = document.getElementById("link");
diff --git a/loleaflet/html/load.doc.html b/loleaflet/html/load.doc.html
index 84b0d90d60..d6ca007e02 100644
--- a/loleaflet/html/load.doc.html
+++ b/loleaflet/html/load.doc.html
@@ -44,7 +44,7 @@
}
function submitform() {
- var path = window.location.pathname.substr(0, window.location.pathname.lastIndexOf('/') + 1) + 'loleaflet.html';
+ var path = window.location.pathname.substr(0, window.location.pathname.lastIndexOf('/') + 1) + 'cool.html';
var query = '?access_token=' + document.getElementById("access_token").value;
query += '&file_path=' + document.getElementById("file_path").value;
query += '&NotWOPIButIframe=true';
diff --git a/loleaflet/html/multidocs.html b/loleaflet/html/multidocs.html
index 93a38d9afc..b73de19e58 100644
--- a/loleaflet/html/multidocs.html
+++ b/loleaflet/html/multidocs.html
@@ -1,6 +1,6 @@
<!DOCTYPE html>
-<!-- Proof of concept of running multiple instance of loleaflet.html
+<!-- Proof of concept of running multiple instance of cool.html
at the same time (each one in a different iframe).
To open the first document add the path into the input and click
@@ -192,7 +192,7 @@
query += 'file_path=file://' + path;
query += '&NotWOPIButIframe=true';
- var editorPath = window.location.pathname.substr(0, window.location.pathname.lastIndexOf('/') + 1) + 'loleaflet.html';
+ var editorPath = window.location.pathname.substr(0, window.location.pathname.lastIndexOf('/') + 1) + 'cool.html';
var src = window.location.protocol + '//' + window.location.host + editorPath + query;
return src;
diff --git a/loleaflet/js/global.js b/loleaflet/js/global.js
index e374d0b7d3..b89c90255a 100644
--- a/loleaflet/js/global.js
+++ b/loleaflet/js/global.js
@@ -723,7 +723,7 @@ window.app = { // Shouldn't have any functions defined.
}
};
- // Some global variables are defined in loleaflet.html, among them:
+ // Some global variables are defined in cool.html, among them:
// global.host: the host URL, with ws(s):// protocol
// global.serviceRoot: an optional root path on the server, typically blank.
diff --git a/loleaflet/src/map/handler/Map.WOPI.js b/loleaflet/src/map/handler/Map.WOPI.js
index 2da51b87ec..adcbab06d5 100644
--- a/loleaflet/src/map/handler/Map.WOPI.js
+++ b/loleaflet/src/map/handler/Map.WOPI.js
@@ -319,7 +319,7 @@ L.Map.WOPI = L.Handler.extend({
}
if (msg.MessageId === 'Host_PostmessageReady') {
- // We already have a listener for this in loleaflet.html, so ignore it here
+ // We already have a listener for this in cool.html, so ignore it here
return;
}
diff --git a/loleaflet/test/load.js b/loleaflet/test/load.js
index 415d8355c0..baa09f5ab7 100644
--- a/loleaflet/test/load.js
+++ b/loleaflet/test/load.js
@@ -64,7 +64,7 @@ global.console = {
const jsdom = require('jsdom');
const { JSDOM } = jsdom;
-var data = fs.readFileSync(top_builddir + '/loleaflet/dist/loleaflet.html', {encoding: 'utf8'});
+var data = fs.readFileSync(top_builddir + '/loleaflet/dist/cool.html', {encoding: 'utf8'});
data = data.replace(/%SERVICE_ROOT%\/loleaflet\/%VERSION%/g, top_builddir + '/loleaflet/dist');
data = data.replace(/%SERVICE_ROOT%/g, '');
@@ -95,7 +95,7 @@ window = new JSDOM(data, {
verbose: false,
pretendToBeVisual: false,
includeNodeLocations: false,
- url: 'file:///tmp/notthere/loleaflet.html?file_path=file:///' + to_load,
+ url: 'file:///tmp/notthere/cool.html?file_path=file:///' + to_load,
resources: 'usable',
beforeParse(window) {
console.debug('Before script parsing');