Umputun
4cf9bf2b63
add deleteme rest example
2019-05-12 13:26:47 -05:00
Umputun and GitHub
4adbca22b2
Refactor rest ( #320 )
...
* fresh vendor
* enforce vendor flag with env
* move tree to service package
* move controllers routing to rest.go, remove separate subrouters
* cleanup/formatting
* missing vendor packages
* move rss, img proxy, robots and getstarted to top-level routes
* simplify logger middleware usage
* randomize server test ports
* check for non-admin in admin tests
* lint: minor warns
* admin test to jwt admin
2019-05-07 01:54:19 -05:00
Umputun
1616f43f0c
clean empty staging directory
v1.3.1
2019-05-04 12:39:24 -05:00
Umputun
cc49ee0946
fix uninitialized imageapi pattern string
2019-05-04 12:10:39 -05:00
Umputun
a9a368e02d
lint: typos
backend/v1.3.0
2019-04-28 13:13:12 -05:00
Umputun and GitHub
02b27d2c12
Merge pull request #317 from Reeywhaar/mv-web-to-frontend
...
Rename "web" to "frontend"
v1.3.0
2019-04-28 12:07:50 -05:00
Vyrtsev Mikhail
24860e124e
mv web -> frontend
2019-04-28 19:27:36 +03:00
Umputun and GitHub
f7d2bf976e
Merge pull request #316 from Reeywhaar/fix-comment-input-top-margin
...
Fix comment input top margin in editing or replying mode
2019-04-21 16:03:22 -05:00
Vyrtsev Mikhail
b7ece816a4
fix comment input top margin in editing or replying mode
2019-04-21 23:13:30 +03:00
Umputun and GitHub
f4b0e0ca5f
Merge pull request #315 from Reeywhaar/handle-error-http-code
...
Handle specific rest status codes in fetcher
2019-04-21 15:04:32 -05:00
Vyrtsev Mikhail
a37761fe9e
handle specific rest status codes in fetcher
2019-04-21 22:52:44 +03:00
Umputun
6b31741fa3
fix cache enabled for pictures
2019-04-21 01:26:51 -05:00
Umputun
ace1cbc278
allow caching for /img api calls
2019-04-20 19:06:05 -05:00
Umputun and GitHub
1db544a54f
Merge pull request #313 from Reeywhaar/add-ie11-support
...
Restore ie11 support
2019-04-20 19:02:32 -05:00
Umputun
0156c5ac97
add no-cache middleware to api calls #313
2019-04-20 18:49:42 -05:00
Vyrtsev Mikhail
38db4a5511
restore ie11 support
2019-04-21 00:47:26 +03:00
Umputun and GitHub
ee21c34c12
Merge pull request #312 from Reeywhaar/fix-useless-comment-collapse
...
Fix useless comment collapse
2019-04-20 14:40:58 -05:00
Vyrtsev Mikhail
22006bee81
add logError: boolean param to fetcher
...
Case for it is getUser api method. When user is not authenticated, api returns 403 error which pops up in console and have no meaning
2019-04-20 21:24:00 +03:00
Vyrtsev Mikhail
d1420286dd
fix comment collapsing button works on second click on useless comment
2019-04-20 21:13:24 +03:00
Vyrtsev Mikhail
38f9fd855c
fix #310 : useless comment remains uncollapsed
2019-04-20 20:58:58 +03:00
Vyrtsev Mikhail
7e84b356a2
fix tests
2019-04-20 20:58:58 +03:00
Vyrtsev Mikhail
68294fd3d2
forbid dynamic type acquisition for typescript
...
was useful during refactoring but makes no sense now
2019-04-20 20:47:37 +03:00
Umputun and GitHub
c078bc31a6
Merge pull request #308 from Reeywhaar/ui-fixes
...
Ui fixes
2019-04-20 12:08:12 -05:00
Vyrtsev Mikhail
0a77baff89
set eslint to fail on warnings
2019-04-20 18:54:23 +03:00
Vyrtsev Mikhail
fa63b4bc70
disable eslint warnings
2019-04-20 18:54:22 +03:00
Vyrtsev Mikhail
34772fa1b6
deny anonymous image upload
2019-04-20 18:54:21 +03:00
Vyrtsev Mikhail
1dd97d42a1
hide unexpected error message from ui, still can be seen in console
2019-04-20 18:54:20 +03:00
Umputun
619e9fec3b
clean image tests leftovers from tmp
2019-04-17 13:38:29 -05:00
Umputun
15a8fb946d
lint: err shadowing
2019-04-17 13:36:16 -05:00
Umputun
c46a21af72
simplify image Save logic by switching to loaded []byte
...
note: resize loaded to memory anyway
2019-04-17 13:35:41 -05:00
Umputun and GitHub
68b892f5e9
Image resize ( #311 )
...
* resize uploaded images #309
* fix temp files created in current dire after image test
* update mod
* missing image test files
* fix failed goroutine test on image-resize submit
* switch to mockery
* missing in mock change
* resize by both ResizeWidth and ResizeHeight
* add IMAGE_RESIZE params to readme
* add latest features to the description
* lint: missing file close in image test
2019-04-17 02:53:35 -05:00
Umputun and GitHub
24606e46bf
Merge pull request #307 from Reeywhaar/image-upload-ui
...
Image upload ui
2019-04-14 22:58:39 -05:00
Umputun and GitHub
0585c325a4
Merge pull request #305 from Mavrin/master
...
#299 add toolbar for markdown formatting
2019-04-14 19:33:03 -05:00
konstantin krivlenia
c7824e603d
#299 increase height textarea
2019-04-14 11:19:03 +03:00
konstantin krivlenia
5f86519aad
#299 make it working in IE11
2019-04-14 11:18:17 +03:00
konstantin krivlenia
abeca3cc23
#299 add list format buttons
2019-04-14 11:18:16 +03:00
konstantin krivlenia
b38bbf4f00
#299 add link format button
2019-04-14 11:18:16 +03:00
konstantin krivlenia
8fb147e8b4
#299 add code format button
2019-04-14 11:18:15 +03:00
konstantin krivlenia
b13cc1cae7
#299 add quote format button
2019-04-14 11:18:14 +03:00
konstantin krivlenia
2b68c8e8d3
#299 add italic format button
2019-04-14 11:18:14 +03:00
konstantin krivlenia
4c5363835f
#299 add header format button
2019-04-14 11:18:13 +03:00
konstantin krivlenia
8e19729718
#299 add bold toolbar for formatting
2019-04-14 11:18:13 +03:00
Vyrtsev Mikhail
1aea8be941
add image upload drag and drop
2019-04-14 00:06:42 +03:00
Umputun
2a53a54a78
allow image/webp
...
https://github.com/umputun/remark/pull/307#issuecomment-482873793
2019-04-13 14:52:21 -05:00
Umputun
6bdbcb8351
lint: missing check for header load error
2019-04-13 14:48:47 -05:00
Umputun
3debfff93d
another test rejection due to image type check
2019-04-13 14:44:36 -05:00
Umputun
ac261940d7
fix rest test with rejected non-pic
2019-04-13 14:39:55 -05:00
Umputun
44bd512de7
miss vendor for xid package
2019-04-13 14:28:34 -05:00
Umputun
d72154b3c8
make shorted image uids, check image type and restrict to png, gif and jpeg only #285
2019-04-13 14:27:40 -05:00
Umputun
e182d34c2c
update readme with info about max_image_size
2019-04-12 10:20:14 -05:00