Skip to content

Commit cc0b474

Browse files
authored
Merge branch 'adrianliechti:main' into main
2 parents e4aba5a + ef43e18 commit cc0b474

70 files changed

Lines changed: 7359 additions & 1328 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

index.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33

44
<head>
55
<meta charset="UTF-8" />
6-
<link rel="icon" type="image/png" href="logo.png" />
76
<link rel="manifest" href="manifest.json" />
8-
<link rel="apple-touch-icon" href="logo.png">
7+
<link rel="icon" type="image/svg+xml" href="icon_light.svg" media="(prefers-color-scheme: light)" />
8+
<link rel="icon" type="image/png" href="icon_light.png" media="(prefers-color-scheme: light)" />
9+
<link rel="icon" type="image/svg+xml" href="icon_dark.svg" media="(prefers-color-scheme: dark)" />
10+
<link rel="icon" type="image/png" href="icon_dark.png" media="(prefers-color-scheme: dark)" />
11+
<link rel="icon" type="image/svg+xml" href="icon_light.svg" />
12+
<link rel="icon" type="image/png" href="icon_light.png" />
913
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
1014
<meta name="theme-color" content="#fafafa" media="(prefers-color-scheme: light)">
1115
<meta name="theme-color" content="#0a0a0a" media="(prefers-color-scheme: dark)">
16+
<link rel="apple-touch-icon" href="icon_app.png">
1217
<meta name="apple-mobile-web-app-capable" content="yes">
1318
<meta name="apple-mobile-web-app-status-bar-style" content="default">
1419

main.go

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ func main() {
3333
voice := os.Getenv("VOICE_ENABLED") == "true"
3434
vision := os.Getenv("VISION_ENABLED") == "true"
3535

36+
internet := os.Getenv("INTERNET_ENABLED") == "true"
37+
38+
artifacts := os.Getenv("ARTIFACTS_ENABLED") == "true"
39+
3640
repository := os.Getenv("REPOSITORY_ENABLED") == "true"
3741
repositoryEmbedder := os.Getenv("REPOSITORY_EMBEDDER")
3842
repositoryExtractor := os.Getenv("REPOSITORY_EXTRACTOR")
@@ -48,6 +52,8 @@ func main() {
4852

4953
Name string `json:"name,omitempty" yaml:"name,omitempty"`
5054
Description string `json:"description,omitempty" yaml:"description,omitempty"`
55+
56+
Prompts []string `json:"prompts,omitempty" yaml:"prompts,omitempty"`
5157
}
5258

5359
type ttsType struct {
@@ -70,6 +76,14 @@ func main() {
7076
URL string `json:"url,omitempty" yaml:"url,omitempty"`
7177
}
7278

79+
type artifactsType struct {
80+
Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
81+
}
82+
83+
type internetType struct {
84+
Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
85+
}
86+
7387
type repositoryType struct {
7488
Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
7589
Embedder string `json:"embedder,omitempty" yaml:"embedder,omitempty"`
@@ -98,6 +112,8 @@ func main() {
98112
Vision *visionType `json:"vision,omitempty" yaml:"vision,omitempty"`
99113

100114
Bridge *bridgeType `json:"bridge,omitempty" yaml:"bridge,omitempty"`
115+
Internet *internetType `json:"internet,omitempty" yaml:"internet,omitempty"`
116+
Artifacts *artifactsType `json:"artifacts,omitempty" yaml:"artifacts,omitempty"`
101117
Repository *repositoryType `json:"repository,omitempty" yaml:"repository,omitempty"`
102118
Translator *translatorType `json:"translator,omitempty" yaml:"translator,omitempty"`
103119

@@ -152,6 +168,18 @@ func main() {
152168
}
153169
}
154170

171+
if artifacts {
172+
config.Artifacts = &artifactsType{
173+
Enabled: true,
174+
}
175+
}
176+
177+
if internet {
178+
config.Internet = &internetType{
179+
Enabled: true,
180+
}
181+
}
182+
155183
if repository {
156184
config.Repository = &repositoryType{
157185
Enabled: true,
@@ -175,13 +203,13 @@ func main() {
175203
"orientation": "portrait",
176204
"icons": []map[string]any{
177205
{
178-
"src": "/icon.png",
206+
"src": "/icon_light.png",
179207
"sizes": "512x512",
180208
"type": "image/png",
181209
"purpose": "any maskable",
182210
},
183211
{
184-
"src": "/logo.svg",
212+
"src": "/icon_light.svg",
185213
"sizes": "any",
186214
"type": "image/svg+xml",
187215
},

0 commit comments

Comments
 (0)