Skip to content

Commit fb98003

Browse files
committed
Merge pull request #2495 from ether/release/1.5.1
Release/1.5.1
2 parents cbfc833 + 4c64b7a commit fb98003

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+733
-231
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
# 1.5.1
2+
* NEW: High resolution Icon
3+
* NEW: Use HTTPS for plugins.json download
4+
* NEW: Add 'last update' column
5+
* NEW: Show users and chat at the same time
6+
* NEW: Support io.js
7+
* Fix: removeAttributeOnLine now works properly
8+
* Fix: Plugin search and list
9+
* Fix: Issue where unauthed request could cause error
10+
* Fix: Privacy issue with .etherpad export
11+
* Fix: Freeze deps to improve bisectability
12+
* Fix: IE, everything. IE is so broken.
13+
* Fix: Timeslider proxy
14+
* Fix: All backend tests pass
15+
* Fix: Better support for Export into HTML
16+
* Fix: Timeslider stars
17+
* Fix: Translation update
18+
* Fix: Check filesystem if Abiword exists
19+
* Fix: Docs formatting
20+
* Fix: Move Save Revision notification to a gritter message
21+
* Fix: UeberDB MySQL Timeout issue
22+
* Fix: Indented +9 list items
23+
* Fix: Don't paste on middle click of link
24+
* SECURITY Fix: Issue where a malformed URL could cause EP to disclose installation location
25+
126
# 1.5.0
227
* NEW: Lots of performance improvements for page load times
328
* NEW: Hook for adding CSS to Exports

CONTRIBUTING.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
11
# Developer Guidelines
22
(Please talk to people on the mailing list before you change this page, see our section on [how to get in touch](https://github.com/ether/etherpad-lite#get-in-touch))
33

4+
## How to write a bug report
5+
6+
* Please be polite, we all are humans and problems can occur.
7+
* Please add as much information as possible, for example
8+
* client os(s) and version(s)
9+
* browser(s) and version(s), is the problem reproduceable on different clients
10+
* special environments like firewalls or antivirus
11+
* host os and version
12+
* npm and nodejs version
13+
* Logfiles if available
14+
* steps to reproduce
15+
* what you expected to happen
16+
* what actually happened
17+
* Please format logfiles and code examples with markdown see github Markdown help below the issue textarea for more information.
18+
19+
If you send logfiles, please set the loglevel switch DEBUG in your settings.json file:
20+
21+
```
22+
/* The log level we are using, can be: DEBUG, INFO, WARN, ERROR */
23+
"loglevel": "DEBUG",
24+
```
25+
26+
The logfile location is defined in startup script or the log is directly shown in the commandline after you have started etherpad.
27+
28+
429
## Important note for pull requests
530
**Pull requests should be issued against the develop branch**. We never pull directly into master.
631

bin/installDeps.sh

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,44 +10,51 @@ fi
1010

1111
#Is gnu-grep (ggrep) installed on SunOS (Solaris)
1212
if [ $(uname) = "SunOS" ]; then
13-
hash ggrep > /dev/null 2>&1 || {
13+
hash ggrep > /dev/null 2>&1 || {
1414
echo "Please install ggrep (pkg install gnu-grep)" >&2
15-
exit 1
15+
exit 1
1616
}
1717
fi
1818

1919
#Is curl installed?
20-
hash curl > /dev/null 2>&1 || {
20+
hash curl > /dev/null 2>&1 || {
2121
echo "Please install curl" >&2
22-
exit 1
22+
exit 1
2323
}
2424

2525
#Is node installed?
26-
hash node > /dev/null 2>&1 || {
26+
#not checking io.js, default installation creates a symbolic link to node
27+
hash node > /dev/null 2>&1 || {
2728
echo "Please install node.js ( http://nodejs.org )" >&2
28-
exit 1
29+
exit 1
2930
}
3031

3132
#Is npm installed?
32-
hash npm > /dev/null 2>&1 || {
33+
hash npm > /dev/null 2>&1 || {
3334
echo "Please install npm ( http://npmjs.org )" >&2
34-
exit 1
35+
exit 1
3536
}
3637

3738
#check npm version
3839
NPM_VERSION=$(npm --version)
3940
NPM_MAIN_VERSION=$(echo $NPM_VERSION | cut -d "." -f 1)
4041
if [ $(echo $NPM_MAIN_VERSION) = "0" ]; then
4142
echo "You're running a wrong version of npm, you're using $NPM_VERSION, we need 1.x or higher" >&2
42-
exit 1
43+
exit 1
4344
fi
4445

4546
#check node version
4647
NODE_VERSION=$(node --version)
4748
NODE_V_MINOR=$(echo $NODE_VERSION | cut -d "." -f 1-2)
49+
#iojs version checking added
50+
if hash iojs 2>/dev/null; then
51+
IOJS_VERSION=$(iojs --version)
52+
fi
4853
if [ ! $NODE_V_MINOR = "v0.8" ] && [ ! $NODE_V_MINOR = "v0.10" ] && [ ! $NODE_V_MINOR = "v0.11" ]; then
49-
echo "You're running a wrong version of node, you're using $NODE_VERSION, we need v0.8.x, v0.10.x or v0.11.x" >&2
50-
exit 1
54+
if [ ! $IOJS_VERSION ]; then
55+
echo "You're running a wrong version of node, or io.js is not installed. You're using $NODE_VERSION, we need v0.8.x, v0.10.x or v0.11.x" >&2
56+
exit 1
57+
fi
5158
fi
5259

5360
#Get the name of the settings file
@@ -71,19 +78,19 @@ echo "Ensure that all dependencies are up to date... If this is the first time
7178
[ -e ep_etherpad-lite ] || ln -s ../src ep_etherpad-lite
7279
cd ep_etherpad-lite
7380
npm install --loglevel warn
74-
) || {
81+
) || {
7582
rm -rf node_modules
76-
exit 1
83+
exit 1
7784
}
7885

7986
echo "Ensure jQuery is downloaded and up to date..."
8087
DOWNLOAD_JQUERY="true"
8188
NEEDED_VERSION="1.9.1"
8289
if [ -f "src/static/js/jquery.js" ]; then
8390
if [ $(uname) = "SunOS" ]; then
84-
VERSION=$(cat src/static/js/jquery.js | head -n 3 | ggrep -o "v[0-9]\.[0-9]\(\.[0-9]\)\?");
91+
VERSION=$(head -n 3 src/static/js/jquery.js | ggrep -o "v[0-9]\.[0-9]\(\.[0-9]\)\?")
8592
else
86-
VERSION=$(cat src/static/js/jquery.js | head -n 3 | grep -o "v[0-9]\.[0-9]\(\.[0-9]\)\?");
93+
VERSION=$(head -n 3 src/static/js/jquery.js | grep -o "v[0-9]\.[0-9]\(\.[0-9]\)\?")
8794
fi
8895

8996
if [ ${VERSION#v} = $NEEDED_VERSION ]; then
@@ -106,7 +113,7 @@ do
106113
if [ ! -f "src/static/custom/$f.js" ]; then
107114
cp "src/static/custom/js.template" "src/static/custom/$f.js" || exit 1
108115
fi
109-
116+
110117
if [ ! -f "src/static/custom/$f.css" ]; then
111118
cp "src/static/custom/css.template" "src/static/custom/$f.css" || exit 1
112119
fi

doc/api/hooks_server-side.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,30 @@ Things in context:
247247

248248
This hook will allow a plug-in developer to re-write each line when exporting to HTML.
249249

250+
Example:
251+
```
252+
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
253+
254+
exports.getLineHTMLForExport = function (hook, context) {
255+
var header = _analyzeLine(context.attribLine, context.apool);
256+
if (header) {
257+
return "<" + header + ">" + context.lineContents + "</" + header + ">";
258+
}
259+
}
260+
261+
function _analyzeLine(alineAttrs, apool) {
262+
var header = null;
263+
if (alineAttrs) {
264+
var opIter = Changeset.opIterator(alineAttrs);
265+
if (opIter.hasNext()) {
266+
var op = opIter.next();
267+
header = Changeset.opAttributeValue(op, 'heading', apool);
268+
}
269+
}
270+
return header;
271+
}
272+
```
273+
250274
## stylesForExport
251275
Called from: src/node/utils/ExportHtml.js
252276

@@ -314,7 +338,7 @@ exports.exportHtmlAdditionalTags = function(hook, pad, cb){
314338
var padId = pad.id;
315339
cb(["massive","jugs"]);
316340
};
317-
341+
```
318342

319343
## userLeave
320344
Called from src/node/handler/PadMessageHandler.js

src/etherpad_icon.svg

Lines changed: 92 additions & 0 deletions
Loading

src/locales/ar.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,23 @@
33
"authors": [
44
"Ali1",
55
"Tux-tn",
6-
"Alami"
6+
"Alami",
7+
"Meno25"
78
]
89
},
910
"index.newPad": "باد جديد",
1011
"index.createOpenPad": "أو صنع/فتح باد بوضع إسمه:",
1112
"pad.toolbar.bold.title": "سميك (Ctrl-B)",
1213
"pad.toolbar.italic.title": "مائل (Ctrl-I)",
1314
"pad.toolbar.underline.title": "تسطير (Ctrl-U)",
14-
"pad.toolbar.strikethrough.title": "شطب",
15-
"pad.toolbar.ol.title": "قائمة مرتبة",
16-
"pad.toolbar.ul.title": "قائمة غير مرتبة",
15+
"pad.toolbar.strikethrough.title": "شطب (Ctrl+5)",
16+
"pad.toolbar.ol.title": "قائمة مرتبة (Ctrl+Shift+N)",
17+
"pad.toolbar.ul.title": "قائمة غير مرتبة (Ctrl+Shift+L)",
1718
"pad.toolbar.indent.title": "إزاحة",
1819
"pad.toolbar.unindent.title": "حذف الإزاحة",
1920
"pad.toolbar.undo.title": "فك (Ctrl-Z)",
2021
"pad.toolbar.redo.title": "تكرار (Ctrl-Y)",
21-
"pad.toolbar.clearAuthorship.title": "مسح ألوان التأليف",
22+
"pad.toolbar.clearAuthorship.title": "مسح ألوان التأليف (Ctrl+Shift+C)",
2223
"pad.toolbar.import_export.title": "استيراد/تصدير من/إلى تنسيقات ملفات مختلفة",
2324
"pad.toolbar.timeslider.title": "متصفح التاريخ",
2425
"pad.toolbar.savedRevision.title": "حفظ المراجعة",
@@ -46,6 +47,7 @@
4647
"pad.importExport.import": "تحميل أي ملف نصي أو وثيقة",
4748
"pad.importExport.importSuccessful": "ناجح!",
4849
"pad.importExport.export": "تصدير الباد الحالي بصفة:",
50+
"pad.importExport.exportetherpad": "إيثرباد",
4951
"pad.importExport.exporthtml": "إتش تي إم إل",
5052
"pad.importExport.exportplain": "نص عادي",
5153
"pad.importExport.exportword": "مايكروسوفت وورد",

0 commit comments

Comments
 (0)