Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-11-27 13:40:12 +0300
committerJoas Schilling <coding@schilljs.com>2018-11-28 14:48:51 +0300
commit252c53e780a3557f073981cea78c8982f39745e5 (patch)
tree5c8910b73c6b9318bac7e99a06c7f5690ada3e08 /compile-handlebars-templates.sh
parentda13fd1d8f493e231aa348d60124bb22baf69a3d (diff)
Move ChatView to precompiled Handlebars templates
In Nextcloud 15 the default Content Security Policy disallows unsafe eval expressions, so Handlebars templates can no longer be compiled at runtime. For the time being that default Content Security Policy was lifted for Talk so "Handlebars.compile" could still be used. However, this only applies to Talk itself; when using Talk components in other apps they must abide to the Content Security Policy of those apps. As ChatView is going to be used in the Files app it has been moved to precompiled Handlebars templates (which are still compatible with the regular Talk UI). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'compile-handlebars-templates.sh')
-rwxr-xr-xcompile-handlebars-templates.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/compile-handlebars-templates.sh b/compile-handlebars-templates.sh
index 663a5bd83..632488aff 100755
--- a/compile-handlebars-templates.sh
+++ b/compile-handlebars-templates.sh
@@ -4,3 +4,5 @@
export PATH=./node_modules/.bin/:$PATH
handlebars -n OCA.VideoCalls.Admin.Templates js/admin/templates/ -f js/admin/templates.js
+
+handlebars -n OCA.SpreedMe.Views.Templates js/views/templates/ -f js/views/templates.js