feat: add [homarr_base] replacement for external urls (#2024)

This commit is contained in:
Jelte Lagendijk
2024-05-07 19:47:19 +02:00
committed by GitHub
parent 477d249da8
commit 5fbb444d5f
8 changed files with 117 additions and 37 deletions

View File

@@ -31,7 +31,8 @@
},
"externalAddress": {
"label": "External address",
"description": "URL that will be opened when clicking on the app."
"description": "URL that will be opened when clicking on the app.",
"tooltip": "You can use a few variables to create dynamic addresses:<br><br><b>[homarr_base]</b> : full address excluding port and path. <i>(Example: 'https://subdomain.homarr.dev')</i><br><b>[homarr_hostname]</b> : full base url including it's current subdomain. <i>(Example: 'subdomain.homarr.dev')</i><br><b>[homarr_domain]</b> : domain with subdomain filtered out. <i>(Example: `homarr.dev')</i><br><b>[homarr_protocol]</b> : <i>http/https</i><br><br>These variables all depend on the current url."
}
},
"behaviour": {
@@ -39,7 +40,7 @@
"label": "Open in new tab",
"description": "Open the app in a new tab instead of the current one."
},
"tooltipDescription":{
"tooltipDescription": {
"label": "Application Description",
"description": "The text you enter will appear when hovering over your app.\r\nUse this to give users more details about your app or leave empty to have nothing."
},
@@ -68,32 +69,32 @@
"text": "This may take a few seconds"
}
},
"appNameFontSize":{
"label":"App Name Font Size",
"description":"Set the font size for when the app name is shown on the tile."
"appNameFontSize": {
"label": "App Name Font Size",
"description": "Set the font size for when the app name is shown on the tile."
},
"appNameStatus":{
"label":"App Name Status",
"description":"Choose where you want the title to show up, if at all.",
"appNameStatus": {
"label": "App Name Status",
"description": "Choose where you want the title to show up, if at all.",
"dropdown": {
"normal":"Show title on tile only",
"hover":"Show title on tooltip hover only",
"hidden":"Don't show at all"
"normal": "Show title on tile only",
"hover": "Show title on tooltip hover only",
"hidden": "Don't show at all"
}
},
"positionAppName":{
"label":"App Name Position",
"description":"Position of the app's name relative to the icon.",
"positionAppName": {
"label": "App Name Position",
"description": "Position of the app's name relative to the icon.",
"dropdown": {
"top":"Top",
"right":"Right",
"bottom":"Bottom",
"left":"Left"
"top": "Top",
"right": "Right",
"bottom": "Bottom",
"left": "Left"
}
},
"lineClampAppName":{
"label":"App Name Line Clamp",
"description":"Defines on how many lines your title should fit at it's maximum. Set 0 for unlimited."
"lineClampAppName": {
"label": "App Name Line Clamp",
"description": "Defines on how many lines your title should fit at it's maximum. Set 0 for unlimited."
}
},
"integration": {