46 Commits

Author SHA1 Message Date
dc43fccc04 Style preference tab for user (#467) 2025-05-05 01:31:42 +02:00
3c940cd81f feat: read psql sslmode from db uri (#462) 2025-05-05 00:29:13 +02:00
efba783c56 Add Meilisearch indexer (#444) 2025-03-19 23:28:04 +01:00
87ae60ce4c Fix SQL query for MySQL/Postgres on user profile (#424) 2025-02-03 23:29:34 +01:00
7aa8f84eff Search gists on user profile with title, visibility, language & topics (#422) 2025-02-02 18:14:03 +01:00
76fc129c09 Remove memdb for gist init (#421) 2025-01-30 10:46:35 +01:00
62d56cd1c7 Save content form on gist create error (#420) 2025-01-29 16:00:58 +01:00
d363743203 Fix empty password error when trying to change the username (#418) 2025-01-27 00:57:46 +01:00
f5b8881d35 Add topics for Gists (#413) 2025-01-24 14:39:42 +01:00
f935ee1a7e Refactor server code (#407) 2025-01-20 01:57:39 +01:00
58c5ac11c7 Respect file scheme URIs for SQLite. (#387) 2024-11-25 22:07:13 +01:00
40ff4c7b3f Fix git clone on SSH with MySQL (#382) 2024-11-17 21:25:59 +01:00
4fd0832df9 Allow to define secret key & move the secret key file to parent directory (#358) 2024-10-31 14:50:13 +01:00
2bf434f00e Add TOTP MFA (#342) 2024-10-24 23:23:00 +02:00
6959929094 Add passkeys support + MFA (#341) 2024-10-07 23:56:32 +02:00
56b4fd45fd Add queriable shorter uuids (#338) 2024-09-23 18:14:56 +02:00
17237713a1 Add Postgres and MySQL databases support (#335) 2024-09-20 16:01:09 +02:00
38892d8a4a Fix perms for http/ssh clone (#288) 2024-05-28 01:30:08 +02:00
22052bd38f Add a setting to allow anonymous access to individual gists while still RequireLogin everywhere else (#229)
* Add a setting to allow accessing individual gists without auth

This is a middle ground between the existing setting "Require Login",
which requires login to do anything at all, and having it off, which
shows a public list of gists and more generally allows discovering info
about the users/gists of the instance without login.

The idea of this setting is that it is "require login" for everything
except individual gists.

Fixes #228.


Co-authored-by: Thomas Miceli <tho.miceli@gmail.com>
2024-05-12 23:40:11 +02:00
2fd053a077 feat: make edit visibility a toggle (#277)
* feat: make edit visibility a toggle

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Tweak SVG dropdown icon size & color

---------

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Thomas Miceli <tho.miceli@gmail.com>
2024-05-11 21:03:25 +02:00
6836dedda4 feat: add String method to visibility (#276)
This allows templates that directly use `Private`, for example, to show a string rather than an int.

Signed-off-by: jolheiser <john.olheiser@gmail.com>
2024-05-10 14:11:40 +02:00
ef004675a5 Create invitations for closed registrations (#233) 2024-04-03 01:56:55 +02:00
db6d6a5eba Set gist visibility via Git push options (#215) 2024-04-03 01:56:55 +02:00
7a75c5ecfa Move Git hook logic to Opengist (#213) 2024-04-03 01:56:55 +02:00
4215d7e43b Update dependencies (#197)
Go 1.20 -> 1.21
JS package-lock
Nodejs Docker 18 -> 20
Alpine Docker 3.17 -> 3.19
2024-01-04 18:06:19 +01:00
87a6113cc7 Add Gist code search (#194) 2024-01-04 18:06:19 +01:00
f52310a841 Add 2 new admin actions (#191)
* Synchronize all gists previews
* Reset Git server hooks for all repositories
2024-01-04 18:06:19 +01:00
b3a856a05e Optimize reading gist files content (#186) 2024-01-04 18:06:19 +01:00
3c97901995 Bug fixes (#184)
* Fix gist content when going back to editing

* Fix not outputting non-truncated large files for editon/zip download

* Allow dashes in usernames

* Delete keys associated to deleted user

* Fix error message when there is no files in gist

* Show if there is not files in gist preview

* Fix log parsing for the 11th empty commit
2024-01-04 18:06:19 +01:00
3828022a1c Add custom urls for gists (#183) 2024-01-04 18:06:19 +01:00
85e2da054b Add clickable Markdown checkboxes (#182) 2024-01-04 18:06:19 +01:00
0753c5cb54 Add embedded gists & JSON gist data/metadata (#179) 2024-01-04 18:06:19 +01:00
845e28dd59 Move code rendering to the backend & frontend improvements (#176)
Added Chroma & Goldmark

Added Mermaidjs

More languages supported

Add default values for gist links input

Added copy code from markdown blocks
2024-01-04 18:06:19 +01:00
8466e50cc3 Add GitLab OAuth provider (#174) 2024-01-04 18:06:19 +01:00
47869a77c9 Add healthcheck endpoint (#170) 2024-01-04 18:06:19 +01:00
246f12c8cb feat: default visibility (#155)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2024-01-04 18:06:19 +01:00
1539499294 Longer title and description (#129) 2023-10-04 18:48:02 +02:00
5b278e2e86 Change gist init url to /init (#109) 2023-09-25 18:43:55 +02:00
6c450c6f3b Delete gists when user is deleted (#108) 2023-09-25 18:43:36 +02:00
85b51bf3c9 Merge branch 'master' of github.com:Maronato/opengist into Maronato-master 2023-09-25 13:07:48 +02:00
9dff67f003 Various bug fixes (#105) 2023-09-22 17:31:19 +02:00
be3580f7b1 Resolve merge 2023-09-17 03:23:20 +02:00
3943b53163 Enhance Go CI (#99) 2023-09-17 02:55:17 +02:00
fe674ac88b Add git, auth and gists tests (#97) 2023-09-17 00:59:47 +02:00
46dea89b41 Create gists from git http server endpoint (#95) 2023-09-09 19:39:57 +02:00
a7b346d8df Tweaked project structure (#88) 2023-09-03 00:30:57 +02:00