Mushiyo
2af17b6204
corrected punctuation
9 years ago
Mushiyo
19179b1764
modify to a better translation
9 years ago
Mushiyo
b98133836d
Added zh_TW translation
9 years ago
Martin Zimmermann
8018a7e23d
update russian translation
9 years ago
wendal
6e4d9ba446
add: zh_CN Translation
9 years ago
Martin Zimmermann
630e76f66c
Merge branch 'legacy/0.9'
...
Conflicts:
CHANGES.rst
isso/ext/notifications.py
isso/utils/http.py
setup.py
9 years ago
Sergey
56c81c2d06
Update ru.js
9 years ago
Martin Zimmermann
957fc72eb1
reject request if reject is actually defined, fix #165
9 years ago
Martin Zimmermann
0466977109
replace bullet with HTML entity, fix #169
9 years ago
Martin Zimmermann
4c9a2aba30
fetch polish translation
9 years ago
Martin Zimmermann
26b889d381
Merge remote-tracking branch 'origin/pr/157'
...
Conflicts:
isso/js/app/i18n.js
10 years ago
Matias
c5496b103d
Added spanish translation
...
Added spanish translation
10 years ago
Matias
4d7fc956ab
Create es.js
...
Added spanish translation
10 years ago
Martin Zimmermann
e271851b50
fetch greek translation
10 years ago
Jelmer Vernooij
00c4d4149e
Import transifex improvements to Dutch translation.
10 years ago
Jelmer Vernooij
dcb7f6457c
Add Dutch translations.
10 years ago
Martin Zimmermann
d70eb160b9
Merge branch 'legacy/0.9'
...
Conflicts:
isso/migrate.py
10 years ago
Martin Zimmermann
d6602b7fe4
Merge branch 'pr/143'
10 years ago
Martin Zimmermann
7f5ff457c1
integrate swedish translation into Isso
10 years ago
Martin Zimmermann
b45f39e662
resolve when comment is in moderation queue, too
10 years ago
Théo Zimmermann
bba91b3f93
don't lose comment if it failed to create
10 years ago
Gustav Näslund
da47dbd374
Added swedish translation file
10 years ago
Martin Zimmermann
4b97684e22
fix editing when avatars are disabled
10 years ago
Martin Zimmermann
928198f340
update translations
10 years ago
Martin Zimmermann
f0a0f40223
add fallback localStorage implementation if not functional, #134
10 years ago
Théo Zimmermann
d0a0ac39b0
bug fixed: was trying to remove an unexisting span.votes
10 years ago
Martin Zimmermann
721e87a843
Merge branch 'legacy/0.9'
...
Conflicts:
CHANGES.rst
docs/docs/configuration/client.rst
setup.py
10 years ago
Martin Zimmermann
c712d196d7
add option to hide voting feature, closes #115
10 years ago
Martin Zimmermann
d21aed83f8
save name, email and website in localStorage, closes #119
10 years ago
Martin Zimmermann
d9098b83f0
use different identifiers to avoid mixin events
10 years ago
Martin Zimmermann
f7e51fd03d
Merge branch 'legacy/0.9'
...
Conflicts:
CHANGES.rst
isso/core.py
setup.py
10 years ago
Martin Zimmermann
881788a049
fix <time> semantics and add title attribute, closes #104
...
The browser shows a human-readable, absolute timestamp when hovering the
"time ago" element
10 years ago
Martin Zimmermann
8a58afc8e6
fix order of converting HTML back to text
...
Fixes a regression introduced by ad9384e
, which escapes wanted line
breaks, such as <br /> and <div>.
10 years ago
Martin Zimmermann
7008e88314
prevent insertion, closes #112
10 years ago
Martin Zimmermann
7701dafa13
remove old Markup.js module
10 years ago
Martin Zimmermann
57d4380106
fix french 'date-now'
10 years ago
Martin Zimmermann
ad9384e8d7
preserve HTML tags while editing comments
10 years ago
Martin Zimmermann
0c8ec38dda
don't scrollIntoView on expanding comments
...
A regression introduced in 94ee6a69
10 years ago
Martin Zimmermann
fbb55bf38a
add esperanto translation
10 years ago
Martin Zimmermann
d2644c3ba3
increase Copyright year
10 years ago
Martin Zimmermann
64054ec029
remove unused code, fix pyflakes and jshint hints
10 years ago
Martin Zimmermann
94ee6a6981
use el.on("click") to load more comments and prevent default
10 years ago
Martin Zimmermann
d0a50c7905
fix french translation
10 years ago
Martin Zimmermann
2d37637019
add fr and de translation for postbox-website, fix french translation
10 years ago
Martin Zimmermann
96206b110c
fix pagination translations and pluralization
...
If a message does not contain '\n', pluralize is not called. Also
replace {{ hidden_replies }} with {{ n }}.
10 years ago
Martin Zimmermann
5d3f178fca
remove debug statement
10 years ago
Martin Zimmermann
96620e8cd0
rename .postbox to .isso-postbox
10 years ago
Martin Zimmermann
165caa9620
show all top-level comments (for now)
...
There is a bug, when you hide N top-level comments, that shows the wrong
comment count. With a JSON API like data structure, the total comment
count can be sent as a different key, related to #96 .
10 years ago
Martin Zimmermann
8fefe3a616
fix hidden reply to deleted comment (and change a few names)
10 years ago
Martin Zimmermann
6bfd1344ba
Merge branch 'remove-avatar-preview'
10 years ago
Martin Zimmermann
e1b4ddb123
remove sha1.js and pbkdf2.js, part of #51
10 years ago
Martin Zimmermann
14fac577df
fix syntax
10 years ago
Martin Zimmermann
16663d44f8
hide avatar during editing
10 years ago
Martin Zimmermann
0211322915
remove avatar preview in postbox
10 years ago
Martin Zimmermann
5b0ce6471a
add website input
10 years ago
Martin Zimmermann
b60dbd3e42
remove old template 'struct'
10 years ago
Martin Zimmermann
608119e8ce
add r.js build optimization for jade plugin
10 years ago
Martin Zimmermann
ccf59fba2a
initial support for jade
...
Replace Markup.js with Jade [1] for real templating (like expression
evaluation and sane syntax). Jade compiles directly to JavaScript which
makes it possible to only have Jade as build dependency with a tiny
runtime wrapper for the client (around 40% of Markup.js's size).
Templates are rewritten for Jade but do not use all features from Jade
(such as filters, mixins and includes) for now.
A simple requirejs-jade wrapper to compile Jade during runtime is
already included.
i18n
----
I also rewrote the i18n module and moved translation and pluralization
functions back into the module, thus decoupling it from the previous
markup language. The module now exposes:
* i18n.translate(msgid) -> string
* i18n.pluralize(msgid, n) -> string
I18n depends on app/config and thus has access to the user's prefered
language and exposes both function with `i18n.lang` already set. If the
msgid was not found, it returns "???" (like Markup.js).
The pluralization function replaces `{{ n }}` with the function argument
just like with Markup.js (to keep the diffs clean).
[1] http://jade-lang.com/
10 years ago
Martin Zimmermann
7c3bd52821
stub requirejs-text to save ~5kb
10 years ago
Martin Zimmermann
4f98bca202
hide avatars with data-isso-avatar="false", part of #49
10 years ago
Martin Zimmermann
d5e5e9c7e2
use numerical values in default configuration to match user-provided values
10 years ago
Martin Zimmermann
ed810cdf39
fetch all nested comments when set to 'inf'
10 years ago
Martin Zimmermann
324326c2ba
translate Hidden to german and french
10 years ago
Martin Zimmermann
f3a7f65687
remove keyworded function arguments and fix JS hints
10 years ago
Srijan Choudhary
26d26ae71b
Add i18n for "Hidden"
10 years ago
Srijan Choudhary
8879db59b8
Show all comments if limit/nested_limit set as inf
10 years ago
Srijan Choudhary
baef73f1e8
Change default values of config params
10 years ago
Srijan Choudhary
ab927e39d0
Add a reveal on click parameter
10 years ago
Srijan Choudhary
54b156844b
Add max-comments limit for nested replies
10 years ago
Srijan Choudhary
f5da45e525
Correct total comments count
10 years ago
Srijan Choudhary
76d5dbc97f
Take max comments to load from config.js
10 years ago
Srijan Choudhary
8dbf4d5337
Client side changes for new API
...
* Handle hierarchal comments data format
* New comments fetching parameters: limit, parent, after
* Link to load more comments
10 years ago
Martin Zimmermann
b9102b44e2
fix russian translation for "Anonymous"
10 years ago
Martin Zimmermann
344f94e5a0
rm forward (reference) arrow
10 years ago
Martin Zimmermann
9ee0a1a2eb
reply to comment now nests to max. level of 1, part of #79
10 years ago
Martin Zimmermann
f09b6b9bdb
preserve line breaks when editing comments, finally closes #77
10 years ago
Martin Zimmermann
4fa0f0d8ea
fix server time offset calculation for IE10
10 years ago
Martin Zimmermann
09451ff707
replace textarea with a content-editable div
...
Mainly because of the sluggish auto-resize "feature" which comes for
free when using a content-editable div.
If you use a custom CSS, make sure you replace textarea (element with
.textarea (class) and set `white-space: pre`.
10 years ago
Martin Zimmermann
638ddc6359
pass event through for $.on
10 years ago
Martin Zimmermann
5ce48de94a
add POST request to get comment counts for multiple URLs
...
The old way via `GET /count?uri=...` still works, but is now deprecated
and might be removed in future releases.
The new way is much more efficient especially fore multiple listings.
The internal implemention is improvable though.
10 years ago
Martin Zimmermann
d69bfc2511
fix visual update up/downvote
10 years ago
Martin Zimmermann
8f293ad435
configurable avatar colors
...
* data-isso-avatar-bg="#f0f0f0" sets the background color
* data-isso-avatar-fg="#0abf99 #5698c4 etc." sets up to 8 different
forground colors
10 years ago
Martin Zimmermann
83361fbdac
improve "time from now" helper, based on moment.js
...
http://momentjs.com/docs/#/displaying/fromnow/
10 years ago
Martin Zimmermann
9a678e4691
an attempt to address #69
...
Add a global-like object that stores the delta from server time and
client time in a list and use the resulting average to "correct"
utils.ago diffs.
10 years ago
Martin Zimmermann
72c38c2312
set day_diff to 0 if negative, related to #69
10 years ago
Martin Zimmermann
3d9665b523
remove now obsolete Makefile
11 years ago
Martin Zimmermann
1c3c826ada
replace requirejs-domready with a (self-made) HTML5 idiom, #51
...
This commit removes yet another dependency. The provided domready
function is compatible with IE9, Firefox and Safari/Chrome.
Inspired by:
* http://stackoverflow.com/a/15580098
* https://github.com/requirejs/domReady/blob/master/domReady.js
11 years ago
Martin Zimmermann
baff120800
fix french pluralform
11 years ago
Martin Zimmermann
cbd449dcd0
Merge branch 'transifex'
11 years ago
Martin Zimmermann
dcd473967b
Merge branch 'remove-q-lib'
11 years ago
Martin Zimmermann
6006a12778
fix wrong logic when vote counter stays at zero (e.g. self-vote)
11 years ago
Martin Zimmermann
306d2d9f9e
log 5xx errors
...
Also, fix console.log usage.
11 years ago
Martin Zimmermann
a29393ee3f
replace kriskowal/q with 50 LoC homebrew implementation, part of #51
...
As a result, it is no longer possible to chain promises
(then().then().then(etc.)), but that is actually not an issue for Isso.
The deferred/promise implementation is roughly based on
http://stackoverflow.com/a/17722683 and stackp/promisejs.
11 years ago
Martin Zimmermann
bfae158bde
update translations from Transifex (initial pull)
11 years ago
Thomas Sileo
08313c191c
Added reply notification for commenter
11 years ago
Martin Zimmermann
cbee3f7b2e
clarify copyright headers
11 years ago
Martin Zimmermann
9db762ad5e
italian translation by alzeco
11 years ago
Martin Zimmermann
525b2db6f1
fix french pluralization
11 years ago
Martin Zimmermann
150726df13
Merge branch 'feature/27', override thread id
11 years ago
Martin Zimmermann
77df31d06f
override thread discovery with data-isso-id="...", close #27
11 years ago
Martin Zimmermann
b15f17738e
isso.dispatch now dispatches multiple sites based on relative URLs
...
The previous approach using a custom X-Custom header did work for the
client-side, but not for activation and deletion links. Now, you need
to add a `name = foo` option to the general section. `isso.dispatch`
then binds this configuration to /foo and can distinguish all API
calls without a special HTTP header.
11 years ago
Martin Zimmermann
232e2fb474
another approach to fix #40 (return 403 on false Content-Type)
...
When an attacker uses a <form> to downvote a comment, the browser
*should* add a `Content-Type: ...` header with three possible values:
* application/x-www-form-urlencoded
* multipart/form-data
* text/plain
If the header is not sent or requests `application/json`, the
request is not forged (XHR is restricted by CORS separately).
11 years ago
Martin Zimmermann
83b48d5db6
use el.getAttribute instead of el.dataset to support IE10 m(
11 years ago
Martin Zimmermann
598b08bd1c
add russian translation
...
http://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html
11 years ago
Martin Zimmermann
9c94e66702
add fr.js to i18n module, appendum to #38
11 years ago
Martin Zimmermann
aeb7c35d8f
override useragent's language with data-isso-lang
11 years ago
Martin Zimmermann
2e9c21db15
add X-Origin to GET requests, so isso.dispatch works on a single host
11 years ago
Martin Zimmermann
b21e216b06
mv app/fancy to /app/lib/fancy
11 years ago
Martin Zimmermann
edafc5f88f
client configuration for reply-to-self
...
also: move data-isso-* configuration to app/config
11 years ago
Martin Zimmermann
64c0d770c6
remove edit and remove buttons when comment is marked as deleted
11 years ago
Martin Zimmermann
519112a8fc
add some documentation
11 years ago
Sploinga
5a20a4a4bf
French translation
11 years ago
Martin Zimmermann
6f3a2d8072
add an option to prevent Isso from appending the default CSS, closes #29
11 years ago
Martin Zimmermann
c06c11aeca
api.js parses custom data attributes for client configuration, part of #29
...
All data-attributes beginning with `data-isso-` are stored in
`api.config` (without leading data-isso-). Isso tries to parse
the values with JSON (e.g. `-isso-foo="false"` returns false)
and falls back for a simple string value.
11 years ago
Martin Zimmermann
0a247a7927
data-isso-prefix is now ony data-isso
11 years ago
Martin Zimmermann
33fb15e241
rename data-prefix to data-isso
11 years ago
Martin Zimmermann
aa6665c8f0
fix endpoint detection when using require.js
11 years ago
Martin Zimmermann
6691810316
handle cross-origin cookies with a custom header X-Set-Cookie, fix #24
...
Cookies set from a different domain can not be read by JS executed in
the current domain. As a workaround, Isso sends both a Set-Cookie and
X-Set-Cookie header. The former is used by the browser to make the
HTTP request to the API, the latter is read by `embed.min.js` to
determine if a comment can be edited or deleted.
When a comment is deleted, the server sends an expired cookies in
Set-Cookie and X-Set-Cookie.
11 years ago
Martin Zimmermann
05c8b571e2
requirejs-text now uses CORS XHR requests to static files
11 years ago
Martin Zimmermann
cc2ac11850
inline CSS
11 years ago
Martin Zimmermann
d8a254c304
fix api endpoint detection
11 years ago
Martin Zimmermann
3c193bef27
request remote_addr only when using the comment form
11 years ago
Martin Zimmermann
7e73986667
remove trailing slash from API endpoint, appendum to 8da9d0b
11 years ago
Martin Zimmermann
375b32a151
Merge branch 'feature/data-attributes'
11 years ago
Martin Zimmermann
8da9d0b13b
override API location with `data-prefix="..."`
11 years ago
Martin Zimmermann
54413dfcf3
add copyright header to embed.js (and it's MIT not BSD)
11 years ago
Martin Zimmermann
2b7d263735
only create a reply box when needed
...
Previously this led to unnecessary object creation which impacted the
rendering time (on my machine 200 comments -> 1200ms) just to create
the postbox per comment (just the object initialization)).
11 years ago
Martin Zimmermann
2cac3f0567
detect Isso API endpoint when using *.dev.js script
11 years ago
Martin Zimmermann
1518bae5ba
IE10 does not support classList on SVG elements m(
11 years ago
Martin Zimmermann
5689143c4a
remove button no longer resets after 1.5s, part of #17
11 years ago
Martin Zimmermann
c3b6e0319e
use SVG to render identicon so the browser can auto-resize the image
...
Temporary fix for websites with small width, where the identicon
overlaps with the textarea field.
11 years ago
Martin Zimmermann
66ade6df14
remove semantic article, header and footer tags to avoid CSS collisions
11 years ago
Martin Zimmermann
b691579bad
test if #isso-thread exists
11 years ago
Martin Zimmermann
a2c3ecb131
remove behave.js
11 years ago
Martin Zimmermann
79f8c1157e
show N days ago instead of previous week
11 years ago
Martin Zimmermann
988d2032c5
replace blank identicon with ghosts
11 years ago
Martin Zimmermann
2557c02117
Merge branch 'feature/spam-guard'
11 years ago
Martin Zimmermann
1034d5016e
document app/dom.js
11 years ago
Martin Zimmermann
8967fd733e
hide reply button when it is not possible to reply
11 years ago
Martin Zimmermann
9ce965440a
toggle next state, when submit was succesful
11 years ago
Martin Zimmermann
0abb8ed658
remove edit and remove buttons when cookie is gone
11 years ago
Martin Zimmermann
0b8cac7f18
implement comment editing
11 years ago
Martin Zimmermann
75f172f4ae
textarea auto resize
11 years ago
Martin Zimmermann
80e8ce7e25
more i18n
11 years ago
Martin Zimmermann
57a16acff4
use promise lib correctly
11 years ago
Martin Zimmermann
e4f9b53668
minor CSS improvement to input and submit fields
11 years ago
Martin Zimmermann
2f6f4bc338
stylesheet injection
11 years ago
Martin Zimmermann
de25af5467
exclude svgs from count.min.js
11 years ago
Martin Zimmermann
fd18ea9eab
split i18n messages
11 years ago
Martin Zimmermann
ef463eb517
API endpoint detection for count.min.js
11 years ago