Commit Graph

74 Commits

Author SHA1 Message Date
Jade Lovelace 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
John Olheiser 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
Thomas Miceli 785d89d6ab
Rework git log parsing and truncating (#260) 2024-04-27 01:49:53 +02:00
hitian f1541368e5
Fix auth page GitlabName Error (#242)
`FTL error="template: auth_form.html:71:65: executing \"auth_form.html\" at <.c.GitLabName>: can't evaluate field GitLabName in type interface {}"`
2024-04-03 10:22:52 +02:00
Thomas Miceli ef004675a5 Create invitations for closed registrations (#233) 2024-04-03 01:56:55 +02:00
Thomas Miceli fc9a75ce8f Markdown preview (#224) 2024-04-03 01:56:55 +02:00
crapStone 915287dc10 Add ability to specify custom names in the OAuth login buttons (#214) 2024-04-03 01:56:55 +02:00
Thomas Miceli 8eb8f4e231 v1.6.0 2024-01-04 18:06:19 +01:00
Thomas Miceli d85917bfb2 Small fixes (#196) 2024-01-04 18:06:19 +01:00
Thomas Miceli 87a6113cc7 Add Gist code search (#194) 2024-01-04 18:06:19 +01:00
Thomas Miceli 4cb7dc2d30 Fix reverse proxy subpath support (#192) 2024-01-04 18:06:19 +01:00
Thomas Miceli 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
Thomas Miceli 97707f7cca Change username setting (#190) 2024-01-04 18:06:19 +01:00
Thomas Miceli 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
Thomas Miceli 3828022a1c Add custom urls for gists (#183) 2024-01-04 18:06:19 +01:00
Thomas Miceli 85e2da054b Add clickable Markdown checkboxes (#182) 2024-01-04 18:06:19 +01:00
Thomas Miceli 0753c5cb54 Add embedded gists & JSON gist data/metadata (#179) 2024-01-04 18:06:19 +01:00
Thomas Miceli 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
Chiawei Chen eff88711ea Trivial Typo: Change 'Gitlab' to 'GitLab' (#177) 2024-01-04 18:06:19 +01:00
Thomas Miceli 8466e50cc3 Add GitLab OAuth provider (#174) 2024-01-04 18:06:19 +01:00
John Olheiser 246f12c8cb feat: default visibility (#155)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2024-01-04 18:06:19 +01:00
Thomas Miceli d518a44d32
Create/change account password (#156) 2023-11-20 18:03:28 +01:00
Slava Krampetz ba03b8df38
Add ru-RU translation (#135) 2023-10-15 18:09:54 +02:00
Gary Wang 7059d5c834
Add zh-CN translation and minor UI fix (#130) 2023-10-12 14:13:39 +02:00
Thomas Miceli d137820037
Add missing $ in templates (#122) 2023-09-29 06:32:09 +02:00
Thomas Miceli 4eedfdcf6f
Fix login page disabled depending on locale (#120) 2023-09-28 20:09:08 +02:00
Thomas Miceli 72275e7573
Add documentation (#110) 2023-09-25 18:57:47 +02:00
Thomas Miceli 85b51bf3c9
Merge branch 'master' of github.com:Maronato/opengist into Maronato-master 2023-09-25 13:07:48 +02:00
Thomas Miceli a5ea522e45
Add translation system (#104) 2023-09-22 17:26:09 +02:00
Gustavo Maronato 1dcb900cf3
implement OIDC auth 2023-09-15 18:56:14 -03:00
Thomas Miceli 3e83700fc2
Miscellaneous front changes (#93)
* Fix fork icon

* Added alt images descriptions

* Add avatars next to gists links

* Fix avatar for nil user

* Slightly different blue primary color

* Reduced main width

* "New" button redirects to login when not logged in
2023-09-06 23:36:44 +02:00
Thomas Miceli ffafde2b3e
Run git gc for repositories (#90) 2023-09-04 11:11:54 +02:00
Thomas Miceli 25316d7bf2
Added private visibility
* Changed gist type and added HTML button on creation

* Adapted label and edit button

* Changed rules for git HTTP and SSH

* Adapt Readme features
2023-09-02 03:58:37 +02:00
joe 4f623881ac
fix typo on admin index page (#85) 2023-08-12 22:53:17 +02:00
Thomas Miceli b5cd49db4c
Download file, button groups, fix unknown file reading (#84) 2023-07-26 15:43:07 +02:00
John Olheiser 319a89387a
fix: retain visibility when editing (#83)
* fix: retain visibility when editing

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

* review(thomiceli): remove private conversion in dto

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

---------

Signed-off-by: jolheiser <john.olheiser@gmail.com>
2023-07-19 17:28:42 +02:00
Thomas Miceli 2890c60124
Warning message on OAuth unlink (#79) 2023-07-17 04:07:10 +02:00
Thomas Miceli 038d81df2d
Add external url to HTML links & redirects (#75) 2023-07-03 16:31:12 +02:00
Thomas Miceli 9470622125
Search page more explicit 2023-06-23 13:59:07 +02:00
Thomas Miceli 7b5d035a32
Search gists (#68) 2023-06-21 18:19:17 +02:00
Thomas Miceli 3366cde385
Sqlite journal mode (#54) 2023-06-09 15:25:41 +02:00
Thomas Miceli 24e3de8fc1
Better config (#50) 2023-06-07 20:50:30 +02:00
Thomas Miceli 62f91c5ed2
Small fixes (#42)
* UI color fixes
* Typos
* Fancy badge in README
2023-05-27 20:20:20 +02:00
Thomas Miceli cecc06b332
Light mode (#38) 2023-05-27 13:58:08 +02:00
Thomas Miceli 4a75a50370
Disable Gravatar (#37)
* Disable Gravatar
* Lowercase emails
* Add migration
2023-05-26 09:15:37 +02:00
Thomas Miceli 5fe84164a5
Better UI for admin settings (#30) 2023-05-11 15:16:05 +02:00
Thomas Miceli 49807d04c7
Disable login form via admin panel 2023-05-06 18:53:59 +02:00
Thomas Miceli 58d40e211f
Fix SSH pubkey detection 2023-05-01 02:55:34 +02:00
Thomas Miceli 333efeacbf
Add require login feature to see gists 2023-04-28 20:31:10 +02:00
Thomas Miceli c7866e18e4
Fix HTML titles in admin panel 2023-04-17 22:13:19 +02:00