From 8eb8f4e231c0bd2721e562d84ea950b6d101cd60 Mon Sep 17 00:00:00 2001 From: Thomas Miceli Date: Thu, 4 Jan 2024 17:12:31 +0100 Subject: [PATCH] v1.6.0 --- .github/FUNDING.yml | 1 + CHANGELOG.md | 46 +++++++++++++++++++++++++++++++++++++ README.md | 11 +++++---- docs/index.md | 8 ++++--- docs/installation.md | 4 ++-- internal/config/config.go | 2 +- templates/pages/all.html | 2 +- templates/pages/search.html | 2 +- 8 files changed, 63 insertions(+), 13 deletions(-) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..3f99702a --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: thomiceli diff --git a/CHANGELOG.md b/CHANGELOG.md index 44000e6c..4ad42199 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,51 @@ # Changelog +## [1.6.0](https://github.com/thomiceli/opengist/compare/v1.5.3...v1.6.0) - 2024-01-04 +See here how to [update](/docs/update.md) Opengist. + +### Added +- Embedded gists (#179) +- Gist code search (#194) +- Custom URLS for gists (#183) +- Gist JSON data/metadata (#179) +- Keep default visibility when creating a gist on the UI (#155) +- Health check endpoint (#170) +- GitLab OAuth2 login (#174) +- Syntax highlighting for more file types (#176) +- Checkable Markdown checkboxes (#182) +- Config: + - Log output (#172) + - Default git branch name (#171) +- Change username setting (#190) +- Admin actions: + - Synchronize all gists previews (#191) + - Reset Git server hooks for all repositories (#191) + - Index all gists (#194) +- Translations: + - cs-CZ (#164) + - zh-TW (#166, #195) + - hu-HU (#185) + - pt-BR (#193) +- Docs (#198) + +### Changed +- Updated dependencies (#197): + - Go `1.20` -> `1.21` + - JavaScript packages + - NodeJS Docker image `18` -> `20` + - Alpine Docker image `3.17` -> `3.19` + +### Fixed +- Fix reverse proxy subpath support (#192) +- Fix undecoded gist content when going back to editing in the UI (#184) +- Fix outputting non-truncated large files for editon/zip download (#184) +- Allow dashes in usernames (#184) +- Delete SSH keys associated to deleted user (#184) +- Better error message when there is no files in gist (#184) +- Show if there is no files in gist preview (#184) +- Log parsing for the 11th empty commit (#184) +- Optimize reading gist files content (#186) + ## [1.5.3](https://github.com/thomiceli/opengist/compare/v1.5.2...v1.5.3) - 2023-11-20 ### Added - es-ES translation (#139) diff --git a/README.md b/README.md index c464d980..968d497f 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,13 @@ It is similiar to [GitHub Gist](https://gist.github.com/), but open-source and c * Create public, unlisted or private snippets * [Init](/docs/usage/init-via-git.md) / Clone / Pull / Push snippets **via Git** over HTTP or SSH -* Revisions history * Syntax highlighting ; markdown & CSV support +* Search code in snippets ; browse users snippets, likes and forks +* Embed snippets in other websites +* Revisions history * Like / Fork snippets -* Search for snippets ; browse users snippets, likes and forks * Download raw files or as a ZIP archive -* OAuth2 login with GitHub, Gitea, and OpenID Connect +* OAuth2 login with GitHub, GitLab, Gitea, and OpenID Connect * Restrict or unrestrict snippets visibility to anonymous users * Docker support * [More...](/docs/index.md#features) @@ -77,9 +78,9 @@ Download the archive for your system from the release page [here](https://github ```shell # example for linux amd64 -wget https://github.com/thomiceli/opengist/releases/download/v1.5.2/opengist1.5.2-linux-amd64.tar.gz +wget https://github.com/thomiceli/opengist/releases/download/v1.6.0/opengist1.6.0-linux-amd64.tar.gz -tar xzvf opengist1.5.2-linux-amd64.tar.gz +tar xzvf opengist1.6.0-linux-amd64.tar.gz cd opengist chmod +x opengist ./opengist # with or without `--config config.yml` diff --git a/docs/index.md b/docs/index.md index fd69363a..8e583ae3 100644 --- a/docs/index.md +++ b/docs/index.md @@ -11,13 +11,15 @@ Written in [Go](https://go.dev), Opengist aims to be fast and easy to deploy. * Create public, unlisted or private snippets * [Init](/docs/usage/init-via-git.md) / Clone / Pull / Push snippets **via Git** over HTTP or SSH -* Revisions history * Syntax highlighting ; markdown & CSV support +* Search code in snippets ; browse users snippets, likes and forks +* Embed snippets in other websites +* Revisions history * Like / Fork snippets -* Search for snippets ; browse users snippets, likes and forks * Editor with indentation mode & size ; drag and drop files * Download raw files or as a ZIP archive -* OAuth2 login with GitHub, Gitea, and OpenID Connect +* Retrieve snippet data/metadata via a JSON API +* OAuth2 login with GitHub, GitLab, Gitea, and OpenID Connect * Avatars via Gravatar or OAuth2 providers * Light/Dark mode * Responsive UI diff --git a/docs/installation.md b/docs/installation.md index f566ad44..d0eff18c 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -47,9 +47,9 @@ Download the archive for your system from the release page [here](https://github ```shell # example for linux amd64 -wget https://github.com/thomiceli/opengist/releases/download/v1.5.1/opengist1.5.1-linux-amd64.tar.gz +wget https://github.com/thomiceli/opengist/releases/download/v1.6.0/opengist1.6.0-linux-amd64.tar.gz -tar xzvf opengist1.5.1-linux-amd64.tar.gz +tar xzvf opengist1.6.0-linux-amd64.tar.gz cd opengist chmod +x opengist ./opengist # with or without `--config config.yml` diff --git a/internal/config/config.go b/internal/config/config.go index 221721c4..13751735 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -17,7 +17,7 @@ import ( "gopkg.in/yaml.v3" ) -var OpengistVersion = "1.5.3" +var OpengistVersion = "1.6.0" var C *config diff --git a/templates/pages/all.html b/templates/pages/all.html index cec88e45..3783471e 100644 --- a/templates/pages/all.html +++ b/templates/pages/all.html @@ -108,7 +108,7 @@

{{ .locale.Tr "gist.list.search-res
{{ if ne (len .gists) 0 }} {{ range $gist := .gists }} - {{ $nest := dict "gist" $gist "C" $.c "locale" $.locale "DisableGravatar" $.DisableGravatar "searchQuery" $.searchQuery }} + {{ $nest := dict "gist" $gist "c" $.c "locale" $.locale "DisableGravatar" $.DisableGravatar "searchQuery" $.searchQuery }} {{ template "_gist_preview" $nest }} {{ end }} diff --git a/templates/pages/search.html b/templates/pages/search.html index f70a8e46..a0dd9dec 100644 --- a/templates/pages/search.html +++ b/templates/pages/search.html @@ -21,7 +21,7 @@

{{ .nbHits }} {{ .locale.Tr "gist.s

{{ range $gist := .gists }} - {{ $nest := dict "gist" $gist "C" $.c "locale" $.locale "DisableGravatar" $.DisableGravatar }} + {{ $nest := dict "gist" $gist "c" $.c "locale" $.locale "DisableGravatar" $.DisableGravatar }} {{ template "_gist_preview" $nest }} {{ end }}