From 456370b1aa33b2304a72bbdc3bcf673fbbf64d8d Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 21 Sep 2017 17:56:24 +0200 Subject: [PATCH] Base for Drive in sandboxed iframe --- customize.dist/src/less2/main.less | 3 +- www/code/inner.html | 2 +- www/common/common-interface.js | 4 +- www/common/metadata-manager.js | 1 - www/common/sframe-boot.js | 19 + www/common/sframe-common-file.js | 2 - www/common/sframe-common-interface.js | 101 +- www/common/sframe-common-outer.js | 37 +- www/common/sframe-common.js | 19 + www/common/sframe-protocol.js | 6 + www/common/userObject.js | 8 + www/file/inner.html | 2 +- www/filepicker/inner.html | 2 +- www/newdrive/app-drive.less | 879 +++++++ www/newdrive/file.less | 820 +++++++ www/newdrive/index.html | 38 + www/newdrive/inner.html | 63 + www/newdrive/inner.js | 3014 +++++++++++++++++++++++++ www/newdrive/main.js | 53 + www/pad/inner.html | 2 +- www/slide/inner.html | 2 +- www/whiteboard/inner.html | 2 +- 22 files changed, 5060 insertions(+), 19 deletions(-) create mode 100644 www/newdrive/app-drive.less create mode 100644 www/newdrive/file.less create mode 100644 www/newdrive/index.html create mode 100644 www/newdrive/inner.html create mode 100644 www/newdrive/inner.js create mode 100644 www/newdrive/main.js diff --git a/customize.dist/src/less2/main.less b/customize.dist/src/less2/main.less index 5e0479deb..ed0d0bd0d 100644 --- a/customize.dist/src/less2/main.less +++ b/customize.dist/src/less2/main.less @@ -22,11 +22,12 @@ html.cp-app-print { .app-print_main(); } +body.cp-app-drive { @import "../../../newdrive/app-drive.less"; } body.cp-app-pad { @import "../../../pad/app-pad.less"; } body.cp-app-code { @import "../../../code/app-code.less"; } body.cp-app-slide { @import "../../../slide/app-slide.less"; } body.cp-app-file { @import "../../../file/app-file.less"; } body.cp-app-filepicker { @import "../../../filepicker/app-filepicker.less"; } -body.cp-app-poll { @import "../../../poll/app-poll.less"; } +//body.cp-app-poll { @import "../../../poll/app-poll.less"; } body.cp-app-whiteboard { @import "../../../whiteboard/app-whiteboard.less"; } diff --git a/www/code/inner.html b/www/code/inner.html index 2ac5b56f8..5d914b6c8 100644 --- a/www/code/inner.html +++ b/www/code/inner.html @@ -2,7 +2,7 @@ - + + + +