mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-02 16:29:06 +01:00
0a7767eaaa
Adds a feature similar to this https://github.blog/changelog/2021-11-24-specify-theme-context-for-images-in-markdown/ , by adding styles to elements which `src` or `href` attribute ends with `#light-mode-only` or `#dark-mode-only`. To improve compability, the github variants with the `gh-` prefix are also contained. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3985 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Co-authored-by: Mai-Lapyst <mai-lapyst@noreply.codeberg.org> Co-committed-by: Mai-Lapyst <mai-lapyst@noreply.codeberg.org>
94 lines
1.9 KiB
YAML
94 lines
1.9 KiB
YAML
-
|
|
id: 1
|
|
type: 7 # label
|
|
poster_id: 2
|
|
issue_id: 1 # in repo_id 1
|
|
label_id: 1
|
|
content: "1"
|
|
created_unix: 946684810
|
|
-
|
|
id: 2
|
|
type: 0 # comment
|
|
poster_id: 3 # user not watching (see watch.yml)
|
|
issue_id: 1 # in repo_id 1
|
|
content: "good work!"
|
|
created_unix: 946684811
|
|
updated_unix: 946684811
|
|
-
|
|
id: 3
|
|
type: 0 # comment
|
|
poster_id: 5 # user not watching (see watch.yml)
|
|
issue_id: 1 # in repo_id 1
|
|
content: "meh..."
|
|
created_unix: 946684812
|
|
updated_unix: 946684812
|
|
-
|
|
id: 4
|
|
type: 21 # code comment
|
|
poster_id: 1
|
|
issue_id: 2
|
|
content: "meh..."
|
|
review_id: 4
|
|
line: 4
|
|
tree_path: "README.md"
|
|
created_unix: 946684812
|
|
invalidated: false
|
|
-
|
|
id: 5
|
|
type: 21 # code comment
|
|
poster_id: 1
|
|
issue_id: 2
|
|
content: "meh..."
|
|
line: -4
|
|
tree_path: "README.md"
|
|
created_unix: 946684812
|
|
invalidated: false
|
|
|
|
-
|
|
id: 6
|
|
type: 21 # code comment
|
|
poster_id: 1
|
|
issue_id: 2
|
|
content: "it's already invalidated. boring..."
|
|
line: -4
|
|
tree_path: "README.md"
|
|
created_unix: 946684812
|
|
invalidated: true
|
|
|
|
-
|
|
id: 7
|
|
type: 21 # code comment
|
|
poster_id: 100
|
|
issue_id: 3
|
|
content: "a review from a deleted user"
|
|
line: -4
|
|
review_id: 10
|
|
tree_path: "README.md"
|
|
created_unix: 946684812
|
|
invalidated: true
|
|
|
|
-
|
|
id: 8
|
|
type: 0 # comment
|
|
poster_id: 2
|
|
issue_id: 4 # in repo_id 2
|
|
content: "comment in private pository"
|
|
created_unix: 946684811
|
|
updated_unix: 946684811
|
|
|
|
-
|
|
id: 9
|
|
type: 22 # review
|
|
poster_id: 2
|
|
issue_id: 2 # in repo_id 1
|
|
review_id: 20
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 10
|
|
type: 0
|
|
poster_id: 1
|
|
issue_id: 1 # in repo_id 1
|
|
content: "test markup light/dark-mode-only ![GitHub-Mark-Light](https://user-images.githubusercontent.com/3369400/139447912-e0f43f33-6d9f-45f8-be46-2df5bbc91289.png#gh-dark-mode-only)![GitHub-Mark-Dark](https://user-images.githubusercontent.com/3369400/139448065-39a229ba-4b06-434b-bc67-616e2ed80c8f.png#gh-light-mode-only)"
|
|
created_unix: 946684813
|
|
updated_unix: 946684813
|