konstantin krivlenia
f6e73299cd
#5 fix after rebase
2020-03-05 12:35:16 +03:00
konstantin krivlenia
6aeb72c3d9
#5 implement POC for theming api
2020-03-05 12:35:15 +03:00
konstantin krivlenia
be6aa8314b
#5 use css custom properties instead of color constant
2020-03-05 12:34:40 +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
konstantin krivlenia and Umputun
5039e8d277
optimize last comment widget
2020-02-22 12:55:25 -06:00
konstantin krivlenia and Umputun
ffb41abfd4
optimize bundle sizes
2020-02-22 00:48:22 -06:00
Konstantin Krivlenia and GitHub
390ecbe8d9
Cleanup embed.ts and add limit-size checker ( #601 )
...
* Cleanup embed.ts and add limit-size checker
* add size limit for dist files
* check only size of files
2020-02-19 16:08:35 -06:00
Konstantin Krivlenia and GitHub
11327cee5b
Introduce stylelint ( #600 )
...
* introduce stylelint config
* run stylelint check on ci
2020-02-16 11:25:59 -06:00
Umputun
1334048d89
allow /api/v1/user calls for robots
2020-02-09 14:41:38 -06:00
Pavel Mineev and Umputun
75ff933add
Small restyling of comment elements
...
* quote with left border and without background
* style for old code insetions (structure pre > code)
* unified elemets margins
* 1px separator height
2020-02-09 13:49:58 -06:00
Pavel Mineev and Umputun
90bd79abbb
Add style for code element
...
* code-highlight.scss was moved
* css vars was defined in `raw-content`
* `pre` styles was used for `code`
2020-02-09 12:18:56 -06:00
d081bf4a24
Code colors ( #592 )
...
* render code htm with classes
* code highlight styles
* revert unneded gitignore change
Co-authored-by: Umputun <umputun@gmail.com >
Co-authored-by: Dmitry Verkhoturov <paskal.07@gmail.com >
2020-02-09 03:18:42 -06:00
1e548eb85f
Code colors (backend support) ( #590 )
...
* testing code highlight with bfchroma render
* add bfchroma vendoring
* render code htm with classes
* adjust bfchroma test cases inside formatter
* go mod tidy
* fix markdown code render tests
* adjust comment text sanitizer to permit code HTML classes
* go mod tidy
* add chroma classes list regexp
* unify gitignore entries style
Co-authored-by: Umputun <umputun@gmail.com >
2020-02-08 21:11:12 -06:00
Umputun and GitHub
b566d7f844
Merge pull request #589 from paskal/blackfriday
...
Replace blackfriday.v2 with blackfriday/v2
2020-02-07 15:25:37 -06:00
Dmitry Verkhoturov
62c43cce77
replace blackfriday.v2 with blackfriday/v2
2020-02-07 22:15:05 +01:00
Pavel Mineev and Umputun
d22e364d1b
Autosubmit token by paste and a bit more ( #583 )
...
* Use lib for typing tests instead copied types
* add jwt utils
* Add autosending
* fix
* tests
* remove atob and fix tests
2020-01-28 00:38:02 -06:00
019fa9e5ac
Simpler image service ( #580 )
...
* fix potential race on close
* move validate inside
* demote commit and cleanup in image.Store to non-exposed functions.
* replace immediate image commit with delayed via Submit
* minor: remove error logging, rename tests
* minor: err wrapping, comments wording
* clarify FileSystem.Save code
* attempt to fix #584 by making submitted image commits on a half of TTL
Co-authored-by: Dmitry Verkhoturov <paskal.07@gmail.com >
2020-01-27 14:17:58 -06:00
Umputun
be3e5f0246
set exclude-use-default: false for linter
2020-01-27 14:17:05 -06:00
Artur Mullakhmetov and Umputun
22a88c579f
Fix unstable test
...
Make comment consistent with code
Decrease timeout param to prevent unwanted 200 response
2020-01-26 11:35:17 -06:00
Artur Mullakhmetov and Umputun
dcab5a1622
switch image interpolation to CatmullRom
2020-01-26 11:35:17 -06:00
Umputun and GitHub
5ecea4f80c
Update FUNDING.yml
2020-01-26 11:30:49 -06:00
Pavel Mineev and Umputun
1804571d4d
fix
2020-01-24 00:17:32 -06:00
Pavel Mineev and Umputun
45f929868a
fix name line break and add styles for blockquote
2020-01-23 21:45:32 -06:00
Dmitry Verkhoturov and Umputun
f97d8232ed
Add subscription link support to notification email verification template ( #573 )
...
* add subscription link support to notification email verification template
* always show token for email subscription in verification email
* hide SubscribeURL from users
backend/v1.5.0
v1.5.0
2020-01-20 18:27:23 -06:00
Pavel Mineev and Umputun
091ac9b4c1
Add shallow equality
2020-01-20 13:17:27 -06:00
Vyrtsev Mikhail and Umputun
029f50c52c
do not render dummy for comment once it gets into viewport
2020-01-19 12:51:28 -06:00
Dmitry Verkhoturov and Umputun
8c37fac06e
actualise CLI options information in the readme
2020-01-19 04:10:55 -06:00
Umputun
4d2ed6bde4
typo in version info print
2020-01-18 22:42:51 -06:00
Umputun
f30f9b97af
missing methods comments
2020-01-18 22:39:21 -06:00
Anton Panferov and Umputun
d69495a9e4
Preserving external images (issue #399 ) ( #447 )
...
* added passing userID to formatters
* added images preserver
* pinned version of golangci-lint
* implemented caching in proxy
* added tests for caching proxy
* removed previous implementation
* removed passing userID into formatter
This reverts commit 05014a5b24190836958377fcd7304294ed02f061.
* made linter happy
* removed storing image extension for FS store
* fixed bug with context cancelation preventing reading downloaded image
* fixed bug with trusting return value and ignorring error
* updated README
* added nolint for sha1
* removed unused resized flag
* added backward compatibility for config
* added handling deprecated cli parameter
* corrected func comment
* made linter happy
* made linter happy
2020-01-18 22:31:30 -06:00
Dmitry Verkhoturov and Umputun
0b55c4f7ad
lower Cache-Control max-age from 24h to 1h to increase speed of updates delivery
2020-01-18 17:58:58 -06:00
Dmitry Verkhoturov and Umputun
540d828ea1
fix ParentCommentDate in email template, fix #561
2020-01-17 17:19:19 -06:00
Pavel Mineev and Umputun
a3d038f75b
fix
2020-01-16 16:42:07 -06:00
Dmitry Verkhoturov and Umputun
8148650247
Update documentation for email capabilities ( #555 )
...
* replace deprecated email variables names with new ones
* clarify email authentication instructions
* add email notifications documentation
* add explanation screenshots
* fix punctuation and typos
2020-01-16 11:20:33 -06:00
Umputun
b0898cd1f3
add cache control for frontend assets
2020-01-15 15:07:45 -06:00
Pavel Mineev and Umputun
b082c2a82f
Fix
...
* fix score position
* add margin before bloquote if it is placed after text
2020-01-15 02:44:05 -06:00
Pavel Mineev and Umputun
4f38c3ea31
FIx height of comment info
2020-01-15 01:50:10 -06:00
Pavel Mineev and Umputun
658279379a
Update email templates ( #550 )
...
* Update email templates
* Fix README
* fix detail
* fix typo
* Changes connected with comment at issue
https://github.com/umputun/remark/issues/494#issuecomment-570801318
* Unify styles between templates
* remove breaking words
* use the same prefix for parent and child
2020-01-15 01:22:00 -06:00
Pavel Mineev and Umputun
ce01a347ca
Collapse comment by thread border ( #545 )
...
* collapse comment by border
* Fix after review
* hide avatar in collapsed state
* fix lines icon
2020-01-14 17:11:30 -06:00
Dmitry Verkhoturov and Umputun
d0ddd8aa80
Unify SMTP settings in separate section ( #536 )
...
* move SMTP settings to separate group
* move deprecated options in separate section in readme
* adjust variables in docker-compose
* add description to SmtpGroup
* remove SMTP option setting which is already set to same value
* remove smtp port default for consistency
* add server deprecated functions handling
* satisfy linter
* add missing bracket in description
* add test for handleDeprecatedFlags
* add HandleDeprecatedFlags function to CommonOptionsCommander
* improve HandleDeprecatedFlags behavior
* add missing result check to ServerCommand.HandleDeprecatedFlags
2020-01-14 14:49:39 -06:00
Konstantin Krivlenia and Umputun
17be003652
#378 Emoji suggestions ( #546 )
...
* #378 add emoji suggestion
* #378 use lazy load for nodeEmoji
* #378 apply remark styles only for light theme
* #378 add dark theme
* #378 fix test
* #378 use permanent class names
* #378 flip if else for readability
2020-01-13 18:26:32 -06:00
Umputun
3c12fde0f8
fix .golangci.yml location inside docker build
2020-01-13 18:19:57 -06:00
Stas and Umputun
b2176a175d
Use golangci lint action ( #549 )
...
* Use action insted download binary file
* Update ci
* Add config option
* Use pre-built docker image for golangci-lint-action
* Remove pre build docker action
* Update action name
* Remove env
* Update ci file
* Add working directory
* Change GITHUB_WORKSPACE
* Update ci file
* Fix ci
* Comment golangci-lint-action
* Update working-directory
* Fix path
* Update ci-build.yml
* Update path
* Revert changes
* Update .golangci.yml
* Add new path for triggers ci
* Separate steps
* Add working-directory
* Add test pwd and ls
* Fix working directory
* Update script for linting in Dockerfile
* Move .golangci.yml to dir backend
* Delete unnecessary word
* Remove multiline string
* Reformat multiline strings to single
* Update disable-all option
2020-01-13 10:56:56 -06:00
Pavel Mineev and Umputun
3447afffdd
fix position on "show more" button
2020-01-12 13:01:04 -06:00
Pavel Mineev and Umputun
7b67b10d5d
Run es-check by cli
2020-01-08 16:18:39 -06:00
Pavel Mineev and Umputun
7d9e8ce076
UI for email subscription ( #537 )
...
* Add api methods for subscription
* Small changes
* little changes in remark.tsx
* disallow pass className to Button and Input
* Subscribe block
* add RSS and Email subscription drobdowns
* add hook useTheme
* unify dropdown import/export
* Change API
* rename subscribe methods
* add unsubscribe method
* Add email subscription to settings and user
* Refactor and add new steps
* render by single component
* add final step
* add unsubscribe step it user is subscribed
* Add tests
* Update subscription logic
* test without mocking redux methods but with mocking store
* update user in store after subscribe and unsubscribe
* little changes in subscription flow
* fix drobdown size
* Fix RSS subscription link for site
* fix link
* add test for RSS subscription
* Fix showing email subscription
* it don't show to unauth users
* it don't show to anonymous users
* it tested
* isUserAnonymous is a bit rewrited
* isUserAnonymous is tested
* Make Email button visible for anon users
* React X supporst Fragments thats why .babelrc changed
* disabled button is more visible
* fix hovering on disabled buttons
* create mocks for tests
* move email dropdown to __subscribe-by-email
2020-01-08 13:55:50 -06:00
Pavel Mineev and Umputun
bfa308e8da
Allow voting for anonymous users
2020-01-07 23:43:49 -06:00
Pavel Mineev and Umputun
5ee76febf2
Update vulnerable dependencies
2020-01-07 18:33:23 -06:00
Dmitry Verkhoturov and Umputun
e4d982dbca
Delete user email on /deleteme request ( #540 )
...
* delete user email on deleteme request
* add tests for user email deletion in /deleteme request
2020-01-07 14:49:24 -06:00
Dmitry Verkhoturov and Umputun
eeb9c72248
check user equality for email notifications only by ID
2020-01-07 14:25:27 -06:00