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