Dmitry Verkhoturov and Umputun
83ae758573
address review commends
2021-07-03 14:57:09 -05:00
Dmitry Verkhoturov and Umputun
200733ed03
add user telegram notifications
2021-07-03 14:57:09 -05:00
Namkhai B and Umputun
98bfc7f5f5
Don't set X-XSRF-TOKEN when the user isn't logged in
...
An HTTP header cannot be empty, and although some webservers allow this
(nginx, Apache), others answer 400 Bad Request (lighttpd), preventing
the widget from loading.
2021-06-15 02:01:57 -05:00
Pavel Mineev and Umputun
3068dfe637
post messages from iframe
...
- fix user info opening
- remove iframe height checks by interval
- update height by mutation observer events
- rename events
2021-06-03 00:56:16 -05:00
Pavel Mineev and Umputun
79eab8ccde
fix copy message with styles
2021-05-30 12:50:37 -05:00
Elephmoon and Umputun
992b843cf5
postMessage without serialization
2021-05-16 13:41:50 -05:00
Pavel Mineev and Umputun
d8058c6576
use named imports
2021-05-06 15:55:46 -05:00
Pavel Mineev and Umputun
58d8fe0f1c
fix linter errors
2021-05-06 15:39:57 -05:00
Pavel Mineev and Umputun
3ad7ba2c09
make form available after failed commit sending
2021-05-06 15:08:03 -05:00
Pavel Mineev and Umputun
e7950fcb22
Fix saving comment to LS
...
* save comment after image upload
* do not affect error messages by save to LS mechanism
* check if data in LS in empty
2021-03-22 03:42:03 -05:00
Pavel Mineev and Umputun
63218ac51c
new-auth
2021-03-04 12:02:46 -06:00
Pavel Mineev and Umputun
111b7a86eb
change fetcher for user delete comment action
2021-02-21 13:32:57 -06:00
Pavel Mineev
f4f4764644
Do not send Content-Type on file upload
2021-02-13 21:52:48 +03:00
Pavel Mineev and Umputun
3628467367
fix oauth providers (turn back site id)
2021-02-04 13:09:59 -06:00
Pavel Mineev and Umputun
2e43f09636
Revert "send cookie with request"
...
This reverts commit 656ab84381 .
2021-02-04 13:09:59 -06:00
Pavel Mineev and Umputun
f515676a72
Revert "add fetcher params to test"
...
This reverts commit a89a06a583 .
2021-02-04 13:09:59 -06:00
Pavel Mineev and Umputun
a89a06a583
add fetcher params to test
2021-02-04 12:13:52 -06:00
Pavel Mineev and Umputun
656ab84381
send cookie with request
2021-02-04 12:13:52 -06:00
Pavel Mineev and Umputun
807249db5d
remove export of fetcher creator and use predefined methods
2021-02-02 15:53:40 -06:00
Pavel Mineev and Umputun
4ab2ea9246
fix default export for tests
2021-02-02 15:53:40 -06:00
Pavel Mineev and Umputun
6d0b18f688
move creation of all fetchers to fetcher.ts
2021-02-02 15:53:40 -06:00
Pavel Mineev and Umputun
068eaea86a
fix types for fetcher methods
2021-02-02 15:53:40 -06:00
Pavel Mineev and Umputun
a1cf289845
Use straight declaration of available methods
2021-02-02 15:53:40 -06:00
Pavel Mineev and Umputun
30394b0760
fix link to oauth window
2021-02-02 15:53:40 -06:00
Pavel Mineev and Umputun
4d075f4f7a
fix last comments request
2021-02-02 15:53:40 -06:00
Pavel Mineev and Umputun
f31146a266
add fetcher creator, create fetcher for every case, remove api.test.ts because of test become usless in terms of using URLSearchParams
2021-02-02 15:53:40 -06:00
Pavel Mineev and Umputun
49b70b7b04
Add comments to fetcher
2021-02-02 15:53:40 -06:00
Pavel Mineev and Umputun
8161182e7d
Pass query throw args
2021-02-02 15:53:40 -06:00
Pavel Mineev and Umputun
2fae0c29d2
Update fetcher and add good coverage to it
2021-02-02 15:53:40 -06:00
Pavel Mineev and Umputun
e1e8da4b2a
use parens for arrow funcs always
2021-01-29 03:17:10 -06:00
Pavel Mineev and Umputun
eb6ef87d42
set fallback for remark_config.host
2021-01-12 16:21:31 -06:00
Pavel Mineev and Umputun
bb5907d21f
Replacing REMARK_URL, fix remark_config stub, add minify html/css in templates
2021-01-12 13:39:26 -06:00
Pavel Mineev and Umputun
a144dd00e3
Remove any from codebase
2021-01-12 13:39:26 -06:00
Pavel Mineev and Umputun
9518d1d83d
Update copy plugin
2021-01-12 13:39:26 -06:00
Pavel Mineev and Umputun
67188880a7
Changes
...
* turn back remark.image
* fix readme
* remove ts-ignore
2021-01-12 13:39:26 -06:00
Pavel Mineev and Umputun
5825a55b69
Update frontend
...
* change root dit and change way to import modules
* update deps to latest versions
* use latest tools for building bundles
* rewrite webpack config
* use nomodule technique for loading modern bundle
* inject polyfills by babel usebuiltins
* update eslint rules
* rename all style files to CSS
* use postcss preset env for building styles
* proper typescript typing
* put all html files to templates folder
* etc
2021-01-12 13:39:26 -06:00
a.kalin and Umputun
81acaef8a4
#819 Changed jwt storage to local variable
2020-12-30 13:16:23 -06:00
a.kalin and Umputun
c538068d8b
#819 Added jwt token to requests
2020-12-30 13:16:23 -06:00
Ksinia and Umputun
5b4e492c1b
Save logged in user email in local storage
2020-11-18 10:59:44 -06:00
Pavel Mineev and Umputun
5c23206d00
Hide email subscription by param from frontend
2020-08-20 18:15:50 -05:00
Pavel Pustovalov and Umputun
71e0e98e05
Update prettier
2020-08-20 02:53:33 -05:00
Pacharapol Withayasakpunt and GitHub
5d6729ddd5
Fix to work without errors in Nuxt Universal ( #723 )
...
by @patarapolw
* allow manual init and destroy for use with Nuxt
* fix onDestroy-related methods
* avoid global scope, and use function scope instead
* add createInstance function to window.REMARK42
* 1. allow DOMNode to be put in remark_config 2. check remark_config before try to attach node
* move createInstance function outside
* update embed.ts
* avoid ?.
* 📚 Docs: doc on how to make it work with SPAs
* 📚 Docs: fix spa.md to be more flexible
* ✨ Feat: add REMARK42::ready event
* remove nuxt-specific terminologies
* tell MutationObserver to disconnect on destroy
* update docs/spa.md
2020-07-31 12:21:00 -05:00
Pavel Mineev and Umputun
2a1690afcf
Encode email in subscribe request
2020-04-08 11:10:32 -05:00
Pavel Mineev and Umputun
7de82e0fef
Fix clear localstorage after comment sending
...
* add functions for saving json to localstorage and tests
* remove comment form localstorage after posting
2020-04-02 16:25:37 -05:00
Pavel Mineev and Umputun
a883052e03
Fix saving of comment sorting
...
* Add tests
2020-03-22 16:11:01 -05:00
Pavel Mineev and Umputun
93fd445bd4
On-demand auth
...
* auth block was moved to comment form
* if comments on page read only auth form shows in old place
* comment value in form will be saved between refreshes (it is side effect form saving comment value between unauth and auth states)
2020-03-12 15:44:31 -05:00
Pavel Mineev and GitHub
85c71716f9
Small refactoring ( #609 )
...
* Move visibility param from redux store to local state
* use func for parsing location.search
* Remove bad wrapper
* we already have wrapper with NODE_ID on page and we shouldn't another one with the same id on page
* move common part of markup to level up
* Tinny refac of setSorting
* add dummy types for pollyfils
also, a bit rewrited way to resolve imports
* Move sort flag to local store
Because we don't need to share this param between diffrent parts of interface
* Add action creators
* move action to action creators
* Remove unused functions
* Merge in conditions in one
* One way for export API methods
* add default tags
* Rewrited changing read only mode
* removed unused function
* set sort changes
* always send sort from store
* rollback if sort don't work
* constanst
* add typing
* shorten export
* remove double define of host
2020-03-07 12:25:18 -06:00
Pavel Mineev and Umputun
30f3ffe517
Reduce size of last-comments widget
...
* use one api method insted full api file
* remove debug for preact
* use smaller constans file
* move unique constants
2020-03-07 03:59:03 -06:00
konstantin krivlenia
6aeb72c3d9
#5 implement POC for theming api
2020-03-05 12:35:15 +03:00
b22cd5f76a
Add localization ( #602 )
...
* #10 add localization
* #10 revert locale from dev page
* #10 add more examples
* #10 localize auth panel
* #10 localize some comment message
* #10 localize some comment form message
* #10 translate vote messages
* #10 translate comment message
* #10 use messages value for translate reference
* #10 fix compile issue
* #10 use messages value for translate reference
* #10 use messages value for translate reference
* #10 use messages value for translate reference
* #10 use messages value for translate reference
* #10 use messages value for translate reference
* #10 translate comment message
* #10 translate comment form
* #10 translate comment form
* #10 translate root component
* #10 translate user info
* #10 translate settings
* #10 translate settings
* #10 translate toolbar
* #10 translate errors messages
* #10 sort dict
* #10 fix after rebase
* #10 localize anonymousLoginForm
* #10 localize emailLoginForm
* #10 update size-limit
* #10 localize subscribe by rss
* #10 localize subscribe by email
* #10 add de locale
* #10 increase limit size
* #10 auto generate loadLocale
* #10 add some documentation
* #10 fix error messages
* fix typo
* don't bundle en locale
* fix message id
* change size limits
* Update extract message pattern
Co-Authored-By: Pavel Mineev <pavel@mineev.me >
Co-authored-by: Pavel Mineev <pavel@mineev.me >
2020-03-04 14:56:00 -06:00