Commit Graph

116 Commits

Author SHA1 Message Date
897dc43790 Add LDAP authentication (#470)
* Introduce basic LDAP authentication.

* Reformat LDAP code; use ldap in Git HTTP

* lint

---------

Co-authored-by: Santhosh Raju <santhosh.raju@gmail.com>
2025-05-09 19:32:22 +02:00
dc43fccc04 Style preference tab for user (#467) 2025-05-05 01:31:42 +02:00
8cfaceb303 feat: read admin group from OIDC token claim (#445) 2025-04-02 13:38:11 +02:00
7907c7bc1e Fix gist.html using relative URL (#451)
Due to the fact the file templates/base/base_header.html contains a
<base> element, all relative URLs are interpreted as dependant on the
base.[1]

I've noticed the base isn't the current page, but the element linking to
anchor identifier isn't using the complete URL to the gist page, which
means that if you go to a gist, and try to click on the link that leads
you to the file (which would make browsers automatically go down if it's
a file that has a lot of lines), you get taken to the homepage, and
unless you look at the URL closely you wouldn't notice the
fragment/anchor part.

I'm sure there's a better way of dealing with this, such as removing
<base> from the template mentioned above, but due to the fact I'd like
to have this work, I've made it put the full URL to this page.

Something that might be good to do is making the relative URLs always be
absolute, by having the '{{ $.c.ExternalUrl }}' thing everywhere where a
relative URL would be, as that'd probably fix #415, and would allow for
this commit to be reverted if that's desired.

[1] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
2025-03-31 23:07:01 +02:00
e3aa994d30 fix: do not hide file delete button on gist edit page (#447) 2025-03-31 22:44:04 +02:00
efba783c56 Add Meilisearch indexer (#444) 2025-03-19 23:28:04 +01:00
dbdfcd4e85 feat: add option to name an OIDC provider (#435) 2025-03-17 17:19:48 +01:00
6fd7f77003 Fix user avatar on gist likes list (#425) 2025-02-03 23:43:43 +01:00
7aa8f84eff Search gists on user profile with title, visibility, language & topics (#422) 2025-02-02 18:14:03 +01:00
62d56cd1c7 Save content form on gist create error (#420) 2025-01-29 16:00:58 +01:00
28c7e75657 Use jdenticon for default avatars (#416) 2025-01-27 00:08:50 +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
20aef5e694 feat: Add custom instance names (#399)
* Add custom name variable

* Add custom name variable usage to docs

* Remove leftover testing config options (oops)
2024-12-15 17:39:51 +01:00
00951bf63b feat(web): prevent password manager autofill on filename inputs (#357)
* feat(web): add data-1p-ignore attribute to ignore fields

* feat(web): extend password manager ignore attributes

- Add autocomplete="off" to prevent browser autofill
- Add data-lpignore for LastPass compatibility
- Add data-bwignore for Bitwarden compatibility
2024-12-15 17:35:08 +01:00
6a8e827d61 Fix nits typos and translation (#388) 2024-11-23 17:41:15 +01:00
73c2fb55bc Fix confirm() popup messages (#370) 2024-11-02 01:40:10 +01:00
75162b3ef9 Hide passkey login when login form is disabled (#369) 2024-11-02 01:06:14 +01:00
2bf434f00e Add TOTP MFA (#342) 2024-10-24 23:23:00 +02:00
df226cbd99 Add SVG parser (#346) 2024-10-14 21:20:56 +02:00
12696d23b0 Update config file (#343)
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2024-10-13 23:47:06 +02:00
6959929094 Add passkeys support + MFA (#341) 2024-10-07 23:56:32 +02:00
fa8217e27f Separate OAuth unlink URL (#336) 2024-09-22 23:21:43 +02:00
17237713a1 Add Postgres and MySQL databases support (#335) 2024-09-20 16:01:09 +02:00
6499e3cc63 Hide secret values in admin config page 2024-09-08 03:45:28 +02:00
de6578d9e8 Add file delete button on create editor (#320) 2024-09-07 15:17:56 +02:00
f881e1c13c Hide change password form when login via password disabled (#314) 2024-09-03 17:48:45 +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
e439d96e43 Add translation strings (#269) 2024-05-05 00:24:25 +02:00
1aa94292db Frontend fixes (#267)
* Fix mermaid display

* Move Login/Register buttons on mobile

* Min width on avatar
2024-04-28 02:54:18 +02:00
785d89d6ab Rework git log parsing and truncating (#260) 2024-04-27 01:49:53 +02:00
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
ef004675a5 Create invitations for closed registrations (#233) 2024-04-03 01:56:55 +02:00
3f5f4e01f1 Add custom static links (#234) 2024-04-03 01:56:55 +02:00
fc9a75ce8f Markdown preview (#224) 2024-04-03 01:56:55 +02:00
2bf0e9b7ce Show theme change button on responsive devices (#225) 2024-04-03 01:56:55 +02:00
915287dc10 Add ability to specify custom names in the OAuth login buttons (#214) 2024-04-03 01:56:55 +02:00
afbecd9a1e Add custom logo configuration (#209) 2024-04-03 01:56:55 +02:00
8eb8f4e231 v1.6.0 2024-01-04 18:06:19 +01:00
d85917bfb2 Small fixes (#196) 2024-01-04 18:06:19 +01:00
87a6113cc7 Add Gist code search (#194) 2024-01-04 18:06:19 +01:00
4cb7dc2d30 Fix reverse proxy subpath support (#192) 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
97707f7cca Change username setting (#190) 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