Dmitry Verkhoturov and Umputun
050f1b7941
migrate from mockery to moq
2022-10-02 21:21:28 -05:00
Pavel Mineev and Umputun
53cc370727
admin: fix block period
2022-10-02 13:40:58 -05:00
Paul Mineev and Umputun
363e05d580
fix iframe resize on auth dropdown opening
2022-10-01 18:34:33 -05:00
Dmitry Verkhoturov and Umputun
2ecc80e18c
fix RPC engine work with ListFlags method
...
Fixes the following conversion problem for BlockedUser:
```
panic: interface conversion: interface {} is map[string]interface {},
not store.BlockedUser [recovered]
```
Resolves #1475 .
2022-09-29 11:56:12 -05:00
Dmitry Verkhoturov and Umputun
0728b28856
bump golangci-lint, fix discovered problems
...
Also, improve the goveralls installation method.
2022-09-28 18:11:09 -05:00
Dmitry Verkhoturov and Umputun
a6a9270f63
apply pngcrush, advpng and optipng to all png images
...
Commands used:
```
find . -type f -iname "*.png" -exec advpng -z4 {} \;
find . -type f -iname "*.png" -exec optipng -o7 -preserve {} \;
find . -type f -iname "*.png" -exec pngcrush -rem allb -brute -reduce -ow {} \;
```
2022-09-28 16:05:03 -05:00
Dmitry Verkhoturov and Umputun
372429a9f5
call admin store with a proper key
...
Previously it was set to fixed strings, likely a test artefact.
Resolves #1499 .
2022-09-28 16:04:19 -05:00
Umputun
4733ad8eb1
Revert "fix iframe resize on auth dropdown opening"
...
This reverts commit 8e96aa26b4 .
2022-09-21 15:57:41 -05:00
Paul Mineev and Umputun
8e96aa26b4
fix iframe resize on auth dropdown opening
2022-09-21 10:56:34 -05:00
Dmitry Verkhoturov and Umputun
c0e8520d31
fix makefile and dockerfile
...
Here are multiple changes to commands run by Makefile based on my
attempts to run it on an Oracle Linux machine with the latest Docker.
2022-09-17 13:05:56 -05:00
Paul Mineev and Umputun
345f80d90d
add contribution links in readme
2022-09-14 14:43:58 -05:00
Paul Mineev and Umputun
ffcef2fe99
fix selected item
2022-09-13 10:54:13 -05:00
Dmitry Verkhoturov and Umputun
e77dc33333
bump mockery from v1.1.2 to v2.14.0
...
Command-line params changed their names,
and old ones won't work anymore.
2022-09-12 17:22:34 -05:00
kaikunz and Umputun
5fee19f6c7
Update supportedLocales.json
...
add th
2022-09-12 17:20:51 -05:00
kaikunz and Umputun
659c623240
th.json
...
th
2022-09-12 17:19:14 -05:00
Dmitry Verkhoturov and Umputun
695d0ea13a
allow dashes in site ID when validating email auth request
...
As discovered in #1477 , dashes are expected to work in the site ID
and do work everywhere but in email auth. That change makes
the behaviour consistent: site ID now allows dashes.
2022-09-12 17:16:22 -05:00
Pavel Mineev and Dmitry Verkhoturov
0f7ac514fb
add e2e tests
2022-09-10 11:00:34 +02:00
Dmitry Verkhoturov
9ad3be2e97
bump go modules, make auth dev hostname customisable
...
After this commit, dev auth would start working with the `REMARK_URL`
hostname instead of the previously hardcoded 127.0.0.1.
Breaks development setup where `REMARK_URL` was set
to a non-standard value and dev auth was running on 127.0.0.1
and working, as, after that change, it would stop working.
2022-08-26 23:35:57 +02:00
Dmitry Verkhoturov
2c36fab8aa
add compose files to dockerignore, remove defaults from frontend compose
...
Before that change, docker would create a new image
on docker-compose file changes.
Frontend docker-compose file change removes options set
to the same values as their default values.
2022-08-26 23:35:40 +02:00
Avinal Kumar and Umputun
3b7a4b6e52
Fix directory name in CODEOWNERS file
...
Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com >
2022-08-25 01:10:14 -05:00
Paul Mineev and Umputun
499302c48e
fix broken icons
2022-08-24 11:37:30 -05:00
Dmitry Verkhoturov and Umputun
28fbe76547
remove duplicated docker-compose.yml from parameters doc
...
Also, clarify the wording on TIME_ZONE parameter a little.
2022-08-23 22:39:02 -05:00
Paul Mineev and Umputun
fabb31275d
FE codeowners
2022-08-23 22:18:04 -05:00
Dmitry Verkhoturov and Umputun
96b75af027
proper grammar for ADMIN_PASSWD parameter notes
2022-08-23 21:22:32 -05:00
Pavel Mineev and Paul Mineev
dc048ef047
fix: anon cannot request data removal
2022-08-22 11:42:15 -07:00
Pavel Mineev and Umputun
d6b2960a4a
fix: save choosen color scheme
2022-08-21 22:36:59 -05:00
Pavel Mineev and Umputun
b47b6c4f56
add api sdk
2022-08-20 12:58:40 -05:00
Umputun
75427df7de
make translated lines in ru shorter as a workaround for ugly formatting
2022-08-19 14:24:54 -05:00
Umputun
cb98885e1f
add warn log on rejected email auth validation https://github.com/umputun/remark42/discussions/1139#discussioncomment-3409701
2022-08-16 17:10:09 -04:00
Paul Mineev
7e0445cc94
disable color-scheme on remark iframe
2022-08-10 10:20:31 -07:00
Dmitry Verkhoturov and Umputun
a9836aaea0
move static web files from rakyll/statik to go:embed
...
There is no need for the rakyll/statik package starting with Go 1.16,
which provides us with tools for embedding files
without third-party libraries.
2022-08-03 15:41:02 -05:00
crazy and Umputun
27b28dba0d
add lose commit Traditional Chinese locale file
2022-08-01 10:53:39 -05:00
Dmitry Verkhoturov
86d059bf99
move templates from rakyll/statik to go:embed
...
There is no need for the rakyll/statik package starting with Go 1.16,
which provides us with tools for embedding files
without third-party libraries.
2022-07-29 19:07:49 +02:00
Paul Mineev and Umputun
76f5ce32ca
add turborepo
2022-07-29 11:05:21 -05:00
Dmitry Verkhoturov and Umputun
ff9eab998a
bump buildgo to 1.9.2 to be consistent with other baseimage usages
2022-07-28 16:41:15 -05:00
Dmitry Verkhoturov and Umputun
ac3a36eb13
rewrite email documentation, elaborate on how to replace templates
...
I've run Grammarly over that text to find and fix some flaws
and added more detailed instructions on replacing a built-in template
with your own.
2022-07-28 13:28:27 -05:00
Dmitry Verkhoturov and Umputun
4b4c749756
remove mod=vendor from go build directives as it's no longer actual
...
It's a default in the presence of the vendor folder since Go 1.14,
https://go.dev/ref/mod
2022-07-27 22:09:14 -05:00
Dmitry Verkhoturov and Umputun
4777f4059f
hardcode dockerhub username and ghcr.io repo for site docker push
...
Currently, such a build most likely has access to secrets but
fails due to the wrong username logging with DockerHub when
rebase is done by anyone but @umputun.
I've missed that last case in 5e5b3e0 and ad5d555 .
2022-07-27 22:08:10 -05:00
Dmitry Verkhoturov
ad5d555ac8
hardcode dockerhub username and ghcr.io repo for site docker push
...
Currently, such a build most likely has access to secrets but
fails due to the wrong username logging with DockerHub when
rebase is done by anyone but @umputun.
2022-07-28 01:34:21 +02:00
Dmitry Verkhoturov
fc7540fc9b
do not run size limit job outside of PRs
...
Currently, this step emits the
"Error: No PR found. Only pull_request workflows are supported."
message when run on the master branch commits (after the merge),
so the change prevents it from being run there.
2022-07-28 01:34:05 +02:00
Dmitry Verkhoturov
63a2bdea48
get rid of getstarted.html mentions
...
umputun introduced that reference in 70649b271 ,
but I can't find any references to it or the file itself now.
2022-07-27 23:22:08 +02:00
Dmitry Verkhoturov
41d47fdb3e
don't enable telegram user notifications when they are disabled
...
Before that change, enabling Telegram auth
also enabled Telegram user notifications.
2022-07-27 23:21:09 +02:00
Paul Mineev
86dae37c5d
docs: improve frontend dev instructions
2022-07-27 10:39:10 -07:00
Dmitry Verkhoturov
2a97d9379e
fix unsubscribe template filename
2022-07-27 19:02:34 +02:00
orangesobeautiful and Umputun
ba0060316c
add Traditional Chinese (zh-tw) translations
2022-07-27 11:43:45 -05:00
Paul Mineev and Umputun
41f18a23e5
docs: link backend dev docs to readme.md
2022-07-25 16:39:11 -05:00
Paul Mineev and Umputun
bf26ad4acc
link readme for frontend dev
2022-07-25 16:39:11 -05:00
Paul Mineev and Umputun
acc56ad42b
run dev env for site in docker
2022-07-25 13:29:33 -05:00
Paul Mineev and Umputun
922e779118
docs: reorg contributing section
2022-07-25 13:23:36 -05:00
Dmitry Verkhoturov and Umputun
f104a6e1b6
move common options to cmd.go
...
Timeout, admin password and site id are set in many commands,
and we need to take care of synchronising the descriptions
and flags between them.
This change moves these standard options to cmd.go importing them
in the same manner CommonOpts imported by all commands already.
2022-07-25 12:42:13 -05:00