Skip to content

Commit 0da63dd

Browse files
committed
Merge branch 'release-0.24'
2 parents 873314e + 66aba12 commit 0da63dd

33 files changed

+314
-227
lines changed

.javascript_ignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
static/js/libs/**.js
1+
static/js/libs/

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go:
77
- 1.2
88
- 1.3
99
- 1.4
10+
- 1.5
1011
- tip
1112

1213
env:

Makefile.am

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -124,32 +124,32 @@ release: OUTPUT = $(DIST_BIN)
124124
release: $(DIST_BIN) binary releaseassets
125125

126126
install:
127-
@echo "Installing binaries to: $(BIN)"
128-
@echo "Installing static resources to: $(SHARE)"
129-
$(INSTALL) -d $(BIN)
130-
$(INSTALL) -d $(SHARE)/www/html
131-
$(INSTALL) -d $(SHARE)/www/html/sandboxes
132-
$(INSTALL) -d $(SHARE)/www/static
133-
$(INSTALL) -d $(SHARE)/www/static/img
134-
$(INSTALL) -d $(SHARE)/www/static/sounds
135-
$(INSTALL) -d $(SHARE)/www/static/fonts
136-
$(INSTALL) -d $(SHARE)/www/static/translation
137-
$(INSTALL) -d $(SHARE)/www/static/css
138-
$(INSTALL) -d $(SHARE)/www/static/js/libs/pdf
139-
$(INSTALL) -d $(SHARE)/www/static/js/sandboxes
140-
$(INSTALL) bin/$(EXENAME) $(BIN)
141-
$(INSTALL) html/*.html $(SHARE)/www/html
142-
$(INSTALL) html/sandboxes/*.html $(SHARE)/www/html/sandboxes
143-
$(INSTALL) static/img/* $(SHARE)/www/static/img
144-
$(INSTALL) static/sounds/* $(SHARE)/www/static/sounds
145-
$(INSTALL) static/fonts/* $(SHARE)/www/static/fonts
146-
$(INSTALL) static/translation/* $(SHARE)/www/static/translation
147-
$(INSTALL) static/css/* $(SHARE)/www/static/css
148-
$(INSTALL) -D static/js/libs/require/require.js $(SHARE)/www/static/js/libs/require/require.js
149-
$(INSTALL) $(OUTPUT_JS)/*.js $(SHARE)/www/static/js
150-
$(INSTALL) $(OUTPUT_JS)/libs/pdf/*.js $(SHARE)/www/static/js/libs/pdf
151-
$(INSTALL) -D static/js/libs/webodf.js $(SHARE)/www/static/js/libs/webodf.js
152-
$(INSTALL) $(OUTPUT_JS)/sandboxes/*.js $(SHARE)/www/static/js/sandboxes
127+
@echo "Installing binaries to: $(DESTDIR)$(BIN)"
128+
@echo "Installing static resources to: $(DESTDIR)$(SHARE)"
129+
$(INSTALL) -d $(DESTDIR)$(BIN)
130+
$(INSTALL) -d $(DESTDIR)$(SHARE)/www/html
131+
$(INSTALL) -d $(DESTDIR)$(SHARE)/www/html/sandboxes
132+
$(INSTALL) -d $(DESTDIR)$(SHARE)/www/static
133+
$(INSTALL) -d $(DESTDIR)$(SHARE)/www/static/img
134+
$(INSTALL) -d $(DESTDIR)$(SHARE)/www/static/sounds
135+
$(INSTALL) -d $(DESTDIR)$(SHARE)/www/static/fonts
136+
$(INSTALL) -d $(DESTDIR)$(SHARE)/www/static/translation
137+
$(INSTALL) -d $(DESTDIR)$(SHARE)/www/static/css
138+
$(INSTALL) -d $(DESTDIR)$(SHARE)/www/static/js/libs/pdf
139+
$(INSTALL) -d $(DESTDIR)$(SHARE)/www/static/js/sandboxes
140+
$(INSTALL) bin/$(EXENAME) $(DESTDIR)$(BIN)
141+
$(INSTALL) html/*.html $(DESTDIR)$(SHARE)/www/html
142+
$(INSTALL) html/sandboxes/*.html $(DESTDIR)$(SHARE)/www/html/sandboxes
143+
$(INSTALL) static/img/* $(DESTDIR)$(SHARE)/www/static/img
144+
$(INSTALL) static/sounds/* $(DESTDIR)$(SHARE)/www/static/sounds
145+
$(INSTALL) static/fonts/* $(DESTDIR)$(SHARE)/www/static/fonts
146+
$(INSTALL) static/translation/* $(DESTDIR)$(SHARE)/www/static/translation
147+
$(INSTALL) static/css/* $(DESTDIR)$(SHARE)/www/static/css
148+
$(INSTALL) -D static/js/libs/require/require.js $(DESTDIR)$(SHARE)/www/static/js/libs/require/require.js
149+
$(INSTALL) $(OUTPUT_JS)/*.js $(DESTDIR)$(SHARE)/www/static/js
150+
$(INSTALL) $(OUTPUT_JS)/libs/pdf/*.js $(DESTDIR)$(SHARE)/www/static/js/libs/pdf
151+
$(INSTALL) -D static/js/libs/webodf.js $(DESTDIR)$(SHARE)/www/static/js/libs/webodf.js
152+
$(INSTALL) $(OUTPUT_JS)/sandboxes/*.js $(DESTDIR)$(SHARE)/www/static/js/sandboxes
153153

154154
clean:
155155
$(GO) clean -i -r app/... 2>/dev/null || true

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ Styles can be found in src/styles. Translations are found in src/i18n.
102102
Each folder has its own Makefile to build the corresponding files. Check the
103103
Makefile.am templates for available make targets.
104104

105+
Javascript console logging is automatically _disabled_ and can be enabled by
106+
adding the query parameter `debug` to your url `https://my_url?debug`.
107+
105108

106109
## Running server for development
107110

html/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta name="apple-mobile-web-app-capable" content="yes">
55
<meta name="mobile-web-app-capable" content="yes">
66
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
7+
<meta name="referrer" content="no-referrer">
78
<base href="<%.Cfg.B%>">
89
<%if.Csp%><link rel="stylesheet" type="text/css" href="<%.Cfg.S%>/css/csp.min.css"><%end%>
910
<link rel="stylesheet" type="text/css" href="<%.Cfg.S%>/css/bootstrap.min.css">

html/sandboxes/odfcanvas_sandbox.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
user-select:none;
2929
-webkit-user-select:none;
3030
-moz-user-select:none;
31+
background:white;
3132
}
3233
</style>
3334
</head>

html/sandboxes/pdfcanvas_sandbox.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
margin:0 auto;
2323
position:relative;
2424
display:none;
25+
background:white;
2526
}
2627
</style>
2728
</head>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"dependencies": {
4-
"autoprefixer": ">= 3.1.0",
4+
"autoprefixer": ">= 3.1.0 <= 5.2.1",
55
"po2json": ">= 0.4.1",
66
"jshint": ">= 2.5.5"
77
}

src/hooks/pre-commit.hook

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ echo "==========================================================================
2727
fi
2828
done
2929

30-
3130
for file in `git diff-index --cached --name-only HEAD --diff-filter=ACMR| grep "\.js$"` ; do
3231
case "$file" in
3332
*/libs/*)
@@ -39,7 +38,7 @@ for file in `git diff-index --cached --name-only HEAD --diff-filter=ACMR| grep "
3938
*)
4039
echo "Checking ${file}"
4140
nf=`git checkout-index --temp ${file} | cut -f 1`
42-
jshint --config .jshint "${nf}"
41+
PATH="node_modules/.bin:${PATH}" jshint --config .jshint "${nf}"
4342
r=$?
4443
rm "${nf}"
4544
if [ $r != 0 ] ; then

static/js/base.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*
2020
*/
2121

22+
"use strict";
2223
define([ // Helper module to put non dependency base libraries together.
2324
'modernizr',
2425
'moment',

0 commit comments

Comments
 (0)