Skip to content

Commit d2c3057

Browse files
trin94Frechdachs
andauthored
0.9.0-beta1
Co-authored-by: Frechdachs <[email protected]>
1 parent 8c2072f commit d2c3057

18 files changed

+308
-34
lines changed

config.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ theme = 'hugo-bearblog'
88
# Basic metadata configuration for your blog.
99
title = "mpvQC"
1010
author = "mpvQC developers"
11-
copyright = "&copy; mpvQC developers - powered by hugo and hugo-bearblog theme"
11+
copyright = "&copy; mpvQC developers"
1212
languageCode = "en-US"
1313

1414
# Generate a nice robots.txt for SEO
@@ -55,6 +55,7 @@ hideMadeWithLine = false
5555
name = "Source"
5656
url = "https://github.com/mpvqc/mpvQC"
5757
weight = 1
58+
5859
[[menu.main]]
5960
name = "Issue Tracker"
6061
url = "https://github.com/mpvqc/mpvQC/issues"

content/_index.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
title = "mpvQC"
66
+++
77

8-
![A screenshot of the latest version](/images/screenshot.png)
9-
10-
# mpvQC
8+
{{<figure-dynamic
9+
dark-src="/images/mpvQC-dark.png"
10+
light-src="/images/mpvQC-light.png"
11+
alt="Screenshot of application"
12+
>}}
1113
1214
A libmpv-based application for quick and easy creation of video file quality control reports.
1315

14-
Current Version: [v0.8.1](https://github.com/mpvqc/mpvQC/releases/tag/0.8.1)
16+
{{<install-instructions>}}
1517

16-
For release notes and downloads,
18+
For release notes and downloads,
1719
[see the latest release announcements](https://github.com/mpvqc/mpvQC/releases).

content/export-templates.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ engine. To begin, follow these steps:
1212
1. Create a new file in the `export-template` directory with the **.jinja** extension (e.g., `MyTemplate.jinja`). The
1313
location of the `export-template` directory varies depending on your operating system:
1414
* On Windows: `appdata/export-templates`
15-
* On Linux (Flatpak): `~/.var/app/com.github.mpvqc.mpvQC/config/mpvQC/export-templates`
15+
* On Linux: `~/.var/app/io.github.mpvqc.mpvQC/config/mpvQC/export-templates`
1616
1. Edit the template
1717
1. Restart mpvQC
1818

@@ -24,26 +24,26 @@ Alongside default Jinja expressions, mpvQC introduces the following **Properties
2424

2525
## Properties
2626

27-
| Name | Type | Description |
28-
|--------------------|----------------|-------------------------------------------------------------------------------------------------------------------------------|
29-
| | | &nbsp; |
30-
| `write_date` | `bool` | Indicates whether the current date and time should be included in reports. |
31-
| `date` | `str` | Date and time formatted according to the user's selected language (QLocale.FormatType.LongFormat). |
32-
| | | &nbsp; |
33-
| `write_generator` | `bool` | Indicates whether the report should include the generator name and version (e.g., "mpvQC 0.9.0"). |
34-
| `generator` | `str` | The name and version of mpvQC being used. |
35-
| | | &nbsp; |
36-
| `write_video_path` | `bool` | Indicates whether the path of the video should be included in reports. |
37-
| `video_path` | `str` | The absolute path of the video file, or an empty string if no video is present. |
38-
| `video_name` | `str` | The name and extension of the video file, or an empty string if no video is present. |
39-
| | | &nbsp; |
40-
| `write_nickname` | `bool` | Indicates whether the user's nickname should be included in reports. |
41-
| `nickname` | `str` | The nickname of the person creating the report. |
42-
| | | &nbsp; |
43-
| `comments` | `list[object]` | A list of comment objects, each with the following properties: |
44-
| | | `time`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`int` &nbsp; Time in seconds. |
45-
| | | `commentType` &nbsp; `str` &nbsp; Type of comment. |
46-
| | | `comment` &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `str` &nbsp; The actual comment. |
27+
| Name | Type | Description |
28+
|--------------------|----------------|----------------------------------------------------------------------------------------------------|
29+
| | | &nbsp; |
30+
| `write_date` | `bool` | Indicates whether the current date and time should be included in reports. |
31+
| `date` | `str` | Date and time formatted according to the user's selected language (QLocale.FormatType.LongFormat). |
32+
| | | &nbsp; |
33+
| `write_generator` | `bool` | Indicates whether the report should include the generator name and version (e.g., "mpvQC 0.9.0"). |
34+
| `generator` | `str` | The name and version of mpvQC being used. |
35+
| | | &nbsp; |
36+
| `write_video_path` | `bool` | Indicates whether the path of the video should be included in reports. |
37+
| `video_path` | `str` | The absolute path of the video file, or an empty string if no video is present. |
38+
| `video_name` | `str` | The name and extension of the video file, or an empty string if no video is present. |
39+
| | | &nbsp; |
40+
| `write_nickname` | `bool` | Indicates whether the user's nickname should be included in reports. |
41+
| `nickname` | `str` | The nickname of the person creating the report. |
42+
| | | &nbsp; |
43+
| `comments` | `list[object]` | A list of comment objects, each with the following properties: |
44+
| | | `time: int`: Time in seconds. |
45+
| | | `commentType: str` Type of comment. |
46+
| | | `comment: str` The actual comment. |
4747

4848
## Filters
4949

@@ -59,7 +59,7 @@ Alongside default Jinja expressions, mpvQC introduces the following **Properties
5959

6060
Internally, mpvQC utilizes the following template to save Quality Control (QC) documents:
6161

62-
```jinja
62+
```
6363
[FILE]
6464
{{ 'date : ' + date + '\n' if write_date else '' -}}
6565
{{ 'generator : ' + generator + '\n' if write_generator else '' -}}

layouts/partials/custom_head.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

layouts/partials/footer.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{{ if ne .Site.Params.hideMadeWithLine true }}
2+
Made with <a href="https://github.com/janraasch/hugo-bearblog/">Hugo Bear </a>
3+
/ <a href="https://github.com/rokcso/hugo-bearblog-neo/">Hugo Bear Neo</a>
4+
{{ end }}

layouts/partials/style.html

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
<!--Based on https://github.com/rokcso/hugo-bearblog-neo/blob/ea1d133bb9b663976954b1b99e8b96be12484a77/layouts/partials/style.html#L1 -->
2+
3+
<style>
4+
/* light theme */
5+
:root {
6+
--width-max: 720px;
7+
--font-primary: Verdana, sans-serif;
8+
--font-secondary: monospace;
9+
--font-size-primary: 1em;
10+
--font-size-secondary: 0.8em;
11+
--body-bg-color: #fcfcfc;
12+
--bold-text-color: #222;
13+
--body-text-color: #444;
14+
--link-color: #3273dc;
15+
--link-visited-color: #8b6fcb;
16+
--table-border-color: #f2f2f2;
17+
--table-th-bg-color: #f2f2f2;
18+
--img-border-color: #f2f2f2;
19+
--code-bg-color: #f2f2f2;
20+
--code-text-color: #222;
21+
--blockquote-border-color: #666;
22+
--blockquote-text-color: #666;
23+
}
24+
25+
@media (prefers-color-scheme: dark) {
26+
/* dark theme */
27+
:root {
28+
--body-bg-color: #1c1c1c;
29+
--bold-text-color: #eee;
30+
--body-text-color: #ddd;
31+
--link-color: #8cc2dd;
32+
--link-visited-color: #c3b1ee;
33+
--table-border-color: #999;
34+
--table-th-bg-color: #999;
35+
--img-border-color: #999;
36+
--code-bg-color: #555;
37+
--code-text-color: #ddd;
38+
--blockquote-border-color: #ccc;
39+
--blockquote-text-color: #ccc;
40+
}
41+
}
42+
43+
body {
44+
font-family: var(--font-primary);
45+
font-size: var(--font-size-primary);
46+
margin: auto;
47+
padding: 20px;
48+
max-width: var(--width-max);
49+
text-align: left;
50+
background-color: var(--body-bg-color);
51+
word-wrap: break-word;
52+
overflow-wrap: break-word;
53+
line-height: 1.5;
54+
color: var(--body-text-color);
55+
}
56+
57+
h1,
58+
h2,
59+
h3,
60+
h4,
61+
h5,
62+
h6,
63+
strong,
64+
b {
65+
color: var(--bold-text-color);
66+
}
67+
68+
h1,
69+
h2,
70+
h3,
71+
h4,
72+
h5,
73+
h6 {
74+
margin: 16px 0;
75+
}
76+
77+
a {
78+
color: var(--link-color);
79+
cursor: pointer;
80+
text-decoration: none;
81+
}
82+
83+
a:hover {
84+
text-decoration: underline;
85+
}
86+
87+
.title span {
88+
font-weight: 400;
89+
}
90+
91+
nav a {
92+
margin-right: 8px;
93+
}
94+
95+
table {
96+
width: 100%;
97+
border-collapse: collapse;
98+
}
99+
100+
th,
101+
td {
102+
padding: 2px;
103+
}
104+
105+
th {
106+
}
107+
108+
hr {
109+
border: 0;
110+
}
111+
112+
img {
113+
max-width: 100%;
114+
border-radius: 6px;
115+
content-visibility: auto;
116+
loading: lazy;
117+
}
118+
119+
i {
120+
font-style: normal;
121+
}
122+
123+
time {
124+
font-family: var(--font-secondary);
125+
font-size: 15px;
126+
}
127+
128+
code {
129+
font-family: var(--font-secondary);
130+
background-color: var(--code-bg-color);
131+
color: var(--code-text-color);
132+
padding: 2px;
133+
border-radius: 4px;
134+
}
135+
136+
pre code {
137+
display: block;
138+
padding: 16px;
139+
white-space: pre-wrap;
140+
overflow-x: auto;
141+
}
142+
143+
div.highlight pre {
144+
border-radius: 4px;
145+
}
146+
147+
blockquote p {
148+
margin: 0;
149+
}
150+
151+
footer {
152+
padding: 25px 0;
153+
text-align: center;
154+
font-size: var(--font-size-secondary);
155+
}
156+
157+
ul li:has(input) {
158+
list-style-type: none;
159+
margin-left: -25.5px;
160+
}
161+
</style>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!--
2+
Based on Hugo figure shortcode: https://github.com/gohugoio/hugo/blobe402d91ee199afcace8ae75da6c3587bb8089ace/tpl/tplimpl/embedded/templates/shortcodes/figurehtml
3+
And this blog post: https://stenbrinke.nl/blog/adding-support-for-dark-and-light-images-to-hugo-figure-shortcode/#final-result
4+
-->
5+
<p>
6+
<picture>
7+
<source srcset="{{ .Get "dark-src" }}"
8+
{{- with .Get "alt" }} alt="{{ . }}" {{ end -}}
9+
{{- with .Get "width" }} width="{{ . }}"{{ end -}}
10+
{{- with .Get "height" }} height="{{ . }}"{{ end -}}
11+
media="(prefers-color-scheme: dark)">
12+
<img src="{{ .Get "light-src" }}"
13+
{{- with .Get "alt" }} alt="{{ . }}" {{ end -}}
14+
{{- with .Get "width" }} width="{{ . }}"{{ end -}}
15+
{{- with .Get "height" }} height="{{ . }}"{{ end -}}>
16+
</picture>
17+
</p>
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<style>
2+
.container {
3+
display: flex;
4+
flex-wrap: wrap;
5+
}
6+
7+
.column {
8+
flex: 1;
9+
padding: 0;
10+
box-sizing: border-box;
11+
}
12+
13+
@media (max-width: 768px) {
14+
.column {
15+
flex-basis: 100%; /* Stacks columns on smaller screens */
16+
}
17+
}
18+
</style>
19+
<div class="container">
20+
<div class="column">
21+
<h2>
22+
<picture>
23+
<!-- https://www.svgrepo.com/svg/232490/windows-operating-system -->
24+
<source height="40"
25+
width="40"
26+
srcset="/images/windows-logo-dark.svg"
27+
media="(prefers-color-scheme: dark)">
28+
<img height="40"
29+
width="40"
30+
src="/images/windows-logo-light.svg"
31+
style="vertical-align: middle;"
32+
alt="linux logo">
33+
</picture>
34+
Windows
35+
</h2>
36+
<ol>
37+
<li>Go to the <a href="https://github.com/mpvqc/mpvQC/releases"> release page</a>.</li>
38+
<li>Download the <b>win-x86_64.zip</b> file and extract it.</li>
39+
<li>Double-click on <b>mpvQC.exe</b> to run it.</li>
40+
</ol>
41+
</div>
42+
<div class="column">
43+
<h2>
44+
<picture>
45+
<!-- https://www.svgrepo.com/svg/232488/linux-->
46+
<source height="40"
47+
width="40"
48+
srcset="/images/linux-logo-dark.svg"
49+
media="(prefers-color-scheme: dark)">
50+
<img height="40"
51+
width="40"
52+
src="/images/linux-logo-light.svg"
53+
style="vertical-align: middle;"
54+
alt="linux logo">
55+
</picture>
56+
Linux
57+
</h2>
58+
<ol>
59+
<li>Download the <a href="https://mpvqc.github.io/mpvQC-flatpak/mpvQC.flatpakref"
60+
download="mpvQC.flatpakref">Flatpak Ref File</a>.
61+
</li>
62+
<li>Double-click on the downloaded file to install it.</li>
63+
</ol>
64+
</div>
65+
</div>

static/api/v1/public/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"latest": "0.8.1"}
1+
{"latest": "0.9.0-beta1"}

static/css/style.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)