]> source.dussan.org Git - gitea.git/commitdiff
Add forge emojies (#16296)
author6543 <6543@obermui.de>
Fri, 2 Jul 2021 14:04:57 +0000 (16:04 +0200)
committerGitHub <noreply@github.com>
Fri, 2 Jul 2021 14:04:57 +0000 (16:04 +0200)
* codeberg :codeberg:
* gitlab :gitlab:
* git :git:
* github :github:
* gogs :gogs:

custom/conf/app.example.ini
docs/content/doc/advanced/config-cheat-sheet.en-us.md
modules/setting/setting.go
public/img/emoji/codeberg.png [new file with mode: 0644]
public/img/emoji/git.png [new file with mode: 0644]
public/img/emoji/github.png [new file with mode: 0644]
public/img/emoji/gitlab.png [new file with mode: 0644]
public/img/emoji/gogs.png [new file with mode: 0644]

index ba12b7ff12b8cd9c44515b097bab08acfc6ab8c3..ff21613586b5a46ad91ec864ab50d7e6feaaff27 100644 (file)
@@ -1040,7 +1040,7 @@ PATH =
 ;; Additional Emojis not defined in the utf8 standard
 ;; By default we support gitea (:gitea:), to add more copy them to public/img/emoji/emoji_name.png and add it to this config.
 ;; Dont mistake it for Reactions.
-;CUSTOM_EMOJIS = gitea
+;CUSTOM_EMOJIS = gitea, codeberg, gitlab, git, github, gogs
 ;;
 ;; Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used.
 ;DEFAULT_SHOW_FULL_NAME = false
index f95a96439fa8c984cdaf5ab9f50a2813817e3130..67b37548160889daf0ec82c3d971a25bf88c0e75 100644 (file)
@@ -181,7 +181,7 @@ The following configuration set `Content-Type: application/vnd.android.package-a
 - `REACTIONS`: All available reactions users can choose on issues/prs and comments
     Values can be emoji alias (:smile:) or a unicode emoji.
     For custom reactions, add a tightly cropped square image to public/img/emoji/reaction_name.png
-- `CUSTOM_EMOJIS`: **gitea**: Additional Emojis not defined in the utf8 standard.
+- `CUSTOM_EMOJIS`: **gitea, codeberg, gitlab, git, github, gogs**: Additional Emojis not defined in the utf8 standard.
     By default we support gitea (:gitea:), to add more copy them to public/img/emoji/emoji_name.png and
     add it to this config.
 - `DEFAULT_SHOW_FULL_NAME`: **false**: Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used.
@@ -392,7 +392,7 @@ relation to port exhaustion.
 - `MAX_ATTEMPTS`: **10**: Maximum number of attempts to create the wrapped queue
 - `TIMEOUT`: **GRACEFUL_HAMMER_TIME + 30s**: Timeout the creation of the wrapped queue if it takes longer than this to create.
 - Queues by default come with a dynamically scaling worker pool. The following settings configure this:
-- `WORKERS`: **0** (v1.14 and before: **1**): Number of initial workers for the queue. 
+- `WORKERS`: **0** (v1.14 and before: **1**): Number of initial workers for the queue.
 - `MAX_WORKERS`: **10**: Maximum number of worker go-routines for the queue.
 - `BLOCK_TIMEOUT`: **1s**: If the queue blocks for this time, boost the number of workers - the `BLOCK_TIMEOUT` will then be doubled before boosting again whilst the boost is ongoing.
 - `BOOST_TIMEOUT`: **5m**: Boost workers will timeout after this long.
index e37b7883420227d9db83f4975739de520744ea5c..e3da5796e42688244cc3dbb623090f650bf8c5f9 100644 (file)
@@ -258,8 +258,8 @@ var (
                DefaultTheme:        `gitea`,
                Themes:              []string{`gitea`, `arc-green`},
                Reactions:           []string{`+1`, `-1`, `laugh`, `hooray`, `confused`, `heart`, `rocket`, `eyes`},
-               CustomEmojis:        []string{`gitea`},
-               CustomEmojisMap:     map[string]string{"gitea": ":gitea:"},
+               CustomEmojis:        []string{`git`, `gitea`, `codeberg`, `gitlab`, `github`, `gogs`},
+               CustomEmojisMap:     map[string]string{"git": ":git:", "gitea": ":gitea:", "codeberg": ":codeberg:", "gitlab": ":gitlab:", "github": ":github:", "gogs": ":gogs:"},
                Notification: struct {
                        MinTimeout            time.Duration
                        TimeoutStep           time.Duration
diff --git a/public/img/emoji/codeberg.png b/public/img/emoji/codeberg.png
new file mode 100644 (file)
index 0000000..b916138
Binary files /dev/null and b/public/img/emoji/codeberg.png differ
diff --git a/public/img/emoji/git.png b/public/img/emoji/git.png
new file mode 100644 (file)
index 0000000..00a6bcf
Binary files /dev/null and b/public/img/emoji/git.png differ
diff --git a/public/img/emoji/github.png b/public/img/emoji/github.png
new file mode 100644 (file)
index 0000000..88efc35
Binary files /dev/null and b/public/img/emoji/github.png differ
diff --git a/public/img/emoji/gitlab.png b/public/img/emoji/gitlab.png
new file mode 100644 (file)
index 0000000..55a0d2b
Binary files /dev/null and b/public/img/emoji/gitlab.png differ
diff --git a/public/img/emoji/gogs.png b/public/img/emoji/gogs.png
new file mode 100644 (file)
index 0000000..6471a84
Binary files /dev/null and b/public/img/emoji/gogs.png differ