diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 08eebdf9..b799d3e4 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -13,7 +13,7 @@ body: attributes: label: Before submitting, please confirm the following options: - - label: I confirm this was discussed, and the maintainers suggest I open an issue (note that AI bots are not maintainers). + - label: I confirm this was discussed, and the maintainers asked that I open an issue. required: true - label: I am aware that if I create this issue without a discussion, it will be removed without a response. required: true diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index f876f0f9..b52196f5 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -116,7 +116,7 @@ jobs: # https://github.com/docker/build-push-action - name: Build and push Docker image id: build-and-push - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: context: . push: ${{ github.event_name != 'pull_request' && !(github.event_name == 'push' && startsWith(github.ref, 'refs/heads/feature')) }} diff --git a/.github/workflows/docs-publish.yml b/.github/workflows/docs-publish.yml index 2f3a9501..b45dbb7a 100644 --- a/.github/workflows/docs-publish.yml +++ b/.github/workflows/docs-publish.yml @@ -51,8 +51,7 @@ jobs: mkdocs-material- - run: sudo apt-get install pngquant - run: pip install mike - - run: pip install mkdocs-material - - run: pip install "mkdocs-material[imaging]" + - run: pip install mkdocs-material mkdocs-redirects "mkdocs-material[imaging]" - name: Test Docs Build run: MKINSIDERS=false mkdocs build deploy: @@ -78,7 +77,7 @@ jobs: - run: sudo apt-get install pngquant - run: pip install mike==2.0.0 - run: pip install git+https://${GH_TOKEN}@github.com/benphelps/mkdocs-material-insiders.git - - run: pip install "mkdocs-material[imaging]" + - run: pip install mkdocs-redirects "mkdocs-material[imaging]" - name: Set Git config run: | git config --global user.name "GitHub Action" diff --git a/docs/assets/BlossomValley.jpg b/docs/assets/BlossomValley.jpg deleted file mode 100644 index 8c6a6321..00000000 Binary files a/docs/assets/BlossomValley.jpg and /dev/null differ diff --git a/docs/assets/banner_dark@2x.webp b/docs/assets/banner_dark@2x.webp new file mode 100644 index 00000000..651fd078 Binary files /dev/null and b/docs/assets/banner_dark@2x.webp differ diff --git a/docs/assets/banner_light@2x.webp b/docs/assets/banner_light@2x.webp new file mode 100644 index 00000000..00b258eb Binary files /dev/null and b/docs/assets/banner_light@2x.webp differ diff --git a/docs/assets/blossom_valley.jpg b/docs/assets/blossom_valley.jpg new file mode 100644 index 00000000..39445902 Binary files /dev/null and b/docs/assets/blossom_valley.jpg differ diff --git a/docs/assets/blossom_valley_blur.jpg b/docs/assets/blossom_valley_blur.jpg new file mode 100644 index 00000000..54bb9bae Binary files /dev/null and b/docs/assets/blossom_valley_blur.jpg differ diff --git a/docs/assets/homepage_demo.webp b/docs/assets/homepage_demo.webp new file mode 100644 index 00000000..e6c47041 Binary files /dev/null and b/docs/assets/homepage_demo.webp differ diff --git a/docs/assets/homepage_demo_clip.png b/docs/assets/homepage_demo_clip.png new file mode 100644 index 00000000..8ac16f35 Binary files /dev/null and b/docs/assets/homepage_demo_clip.png differ diff --git a/docs/assets/homepage_demo_clip.webp b/docs/assets/homepage_demo_clip.webp new file mode 100644 index 00000000..169998e9 Binary files /dev/null and b/docs/assets/homepage_demo_clip.webp differ diff --git a/docs/assets/light_squircle@2x.webp b/docs/assets/light_squircle@2x.webp new file mode 100644 index 00000000..fc1a1613 Binary files /dev/null and b/docs/assets/light_squircle@2x.webp differ diff --git a/docs/assets/sections.webp b/docs/assets/sections.webp new file mode 100644 index 00000000..2e8f3e35 Binary files /dev/null and b/docs/assets/sections.webp differ diff --git a/docs/assets/widget_stocks_demo.png b/docs/assets/widget_stocks_demo.png new file mode 100644 index 00000000..0d2cde53 Binary files /dev/null and b/docs/assets/widget_stocks_demo.png differ diff --git a/docs/configs/docker.md b/docs/configs/docker.md index bcd0dd61..51f6b523 100644 --- a/docs/configs/docker.md +++ b/docs/configs/docker.md @@ -203,7 +203,7 @@ In order to detect every service within the Docker swarm it is necessary that se ## Multiple Homepage Instances -The optional field `instanceName` can be configured in [settings.md](settings.md#instance-name) to differentiate between multiple homepage instances. +The optional field `instanceName` can be configured in [settings.yaml](settings.md#instance-name) to differentiate between multiple homepage instances. To limit a label to an instance, insert `.instance.{{instanceName}}` after the `homepage` prefix. diff --git a/docs/configs/index.md b/docs/configs/index.md index a43977f6..85a1ac90 100644 --- a/docs/configs/index.md +++ b/docs/configs/index.md @@ -1,6 +1,7 @@ --- title: Configuration description: Homepage Configuration +icon: material/cog --- Homepage uses YAML for configuration, YAML stands for "YAML Ain't Markup Language.". It's a human-readable data serialization format that's a superset of JSON. Great for config files, easy to read and write. Supports complex data types like lists and objects. **Indentation matters.** If you already use Docker Compose, you already use YAML. diff --git a/docs/configs/kubernetes.md b/docs/configs/kubernetes.md index c76813f4..06685f3a 100644 --- a/docs/configs/kubernetes.md +++ b/docs/configs/kubernetes.md @@ -36,7 +36,7 @@ Inside of the service you'd like to connect to a pod: The `app` field is used to create a label selector, in this example case it would match pods with the label: `app.kubernetes.io/name=emby`. -Sometimes this is insufficient for complex or atypical application deployments. In these cases, the `pod-selector` field can be used. Any field selector can be used with it, so it allows for some very powerful selection capabilities. +Sometimes this is insufficient for complex or atypical application deployments. In these cases, the `podSelector` field can be used. Any field selector can be used with it, so it allows for some very powerful selection capabilities. For instance, it can be utilized to roll multiple underlying deployments under one application to see a high-level aggregate: @@ -47,7 +47,7 @@ For instance, it can be utilized to roll multiple underlying deployments under o description: Matrix Synapse Powered Chat app: matrix-element namespace: comms - pod-selector: >- + podSelector: >- app.kubernetes.io/instance in ( matrix-element, matrix-media-repo, @@ -58,7 +58,7 @@ For instance, it can be utilized to roll multiple underlying deployments under o !!! note - A blank string as a pod-selector does not deactivate it, but will actually select all pods in the namespace. This is a useful way to capture the resource usage of a complex application siloed to a single namespace, like Longhorn. + A blank string as a podSelector does not deactivate it, but will actually select all pods in the namespace. This is a useful way to capture the resource usage of a complex application siloed to a single namespace, like Longhorn. ## Automatic Service Discovery diff --git a/docs/index.md b/docs/index.md index fe1c0adf..31a84e8c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,5 +1,7 @@ --- title: Home +description: A modern, fully static, fast, secure, fully proxied, highly customizable application dashboard with integrations for over 100 services and translations into multiple languages. +icon: material/home hide: - navigation - toc @@ -10,17 +12,21 @@ hide:
-

-![Alt text](assets/banner_dark@2x.png#only-light) -![Alt text](assets/banner_light@2x.png#only-dark) +

-A modern, fully static, fast, secure fully proxied, highly customizable application dashboard with integrations for over 100 services and translations into multiple languages. Easily configured via YAML files or through docker label discovery. +homepage -![Alt text](assets/homepage_demo.png) +homepage -

- DigitalOcean Referral Badge -

-

-Homepage builds are kindly powered by DigitalOcean. -

+

A modern, fully static, fast, secure fully proxied, highly customizable application dashboard with integrations for over 100 services and translations into multiple languages. Easily configured via YAML files or through docker label discovery.

+ +
+ + diff --git a/docs/installation/index.md b/docs/installation/index.md index beb370c1..778b9ef2 100644 --- a/docs/installation/index.md +++ b/docs/installation/index.md @@ -1,6 +1,7 @@ --- title: Installation description: Docs intro +icon: simple/docker ---

diff --git a/docs/layouts/custom.yml b/docs/layouts/custom.yml new file mode 100644 index 00000000..d8e36c10 --- /dev/null +++ b/docs/layouts/custom.yml @@ -0,0 +1,252 @@ +# Copyright (c) 2016-2024 Martin Donath + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: + +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. + +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. + +# ----------------------------------------------------------------------------- +# Configuration +# ----------------------------------------------------------------------------- + +# Definitions +definitions: + # Background image + - &background_image >- + {{ layout.background_image | x }} + + # Background color (default: indigo) + - &background_color >- + {%- if layout.background_color -%} + {{ layout.background_color }} + {%- else -%} + {%- set palette = config.theme.palette or {} -%} + {%- if not palette is mapping -%} + {%- set list = palette | selectattr("primary") | list + palette -%} + {%- set palette = list | first -%} + {%- endif -%} + {%- set primary = palette.get("primary", "indigo") -%} + {%- set primary = primary.replace(" ", "-") -%} + {{ { + "red": "#ef5552", + "pink": "#e92063", + "purple": "#ab47bd", + "deep-purple": "#7e56c2", + "indigo": "#4051b5", + "blue": "#2094f3", + "light-blue": "#02a6f2", + "cyan": "#00bdd6", + "teal": "#009485", + "green": "#4cae4f", + "light-green": "#8bc34b", + "lime": "#cbdc38", + "yellow": "#ffec3d", + "amber": "#ffc105", + "orange": "#ffa724", + "deep-orange": "#ff6e42", + "brown": "#795649", + "grey": "#757575", + "blue-grey": "#546d78", + "black": "#000000", + "white": "#ffffff" + }[primary] or "#4051b5" }} + {%- endif -%} + + # Text color (default: white) + - &color >- + {%- if layout.color -%} + {{ layout.color }} + {%- else -%} + {%- set palette = config.theme.palette or {} -%} + {%- if not palette is mapping -%} + {%- set list = palette | selectattr("primary") | list + palette -%} + {%- set palette = list | first -%} + {%- endif -%} + {%- set primary = palette.get("primary", "indigo") -%} + {%- set primary = primary.replace(" ", "-") -%} + {{ { + "red": "#ffffff", + "pink": "#ffffff", + "purple": "#ffffff", + "deep-purple": "#ffffff", + "indigo": "#ffffff", + "blue": "#ffffff", + "light-blue": "#ffffff", + "cyan": "#ffffff", + "teal": "#ffffff", + "green": "#ffffff", + "light-green": "#ffffff", + "lime": "#000000", + "yellow": "#000000", + "amber": "#000000", + "orange": "#000000", + "deep-orange": "#ffffff", + "brown": "#ffffff", + "grey": "#ffffff", + "blue-grey": "#ffffff", + "black": "#ffffff", + "white": "#000000" + }[primary] or "#ffffff" }} + {%- endif -%} + + # Font family (default: Roboto) + - &font_family >- + {%- if layout.font_family -%} + {{ layout.font_family }} + {%- elif config.theme.font is mapping -%} + {{ config.theme.font.get("text", "Roboto") }} + {%- else -%} + Roboto + {%- endif -%} + + # Font variant + - &font_variant >- + {%- if layout.font_variant -%} + {{ layout.font_variant }} + {%- endif -%} + + # Site name + - &site_name >- + {{ config.site_name }} + + # Page title + - &page_title >- + {%- if layout.title -%} + {{ layout.title }} + {%- else -%} + {{ page.meta.get("title", page.title) }} + {%- endif -%} + + # Page title with site name + - &page_title_with_site_name >- + {%- if not page.is_homepage -%} + {{ page.meta.get("title", page.title) }} - {{ config.site_name }} + {%- else -%} + {{ page.meta.get("title", page.title) }} + {%- endif -%} + + # Page description + - &page_description >- + {%- if layout.description -%} + {{ layout.description }} + {%- else -%} + {{ page.meta.get("description", config.site_description) | x }} + {%- endif -%} + + # Page icon + - &page_icon >- + {{ page.meta.icon | x }} + + # Logo + - &logo >- + {%- if layout.logo -%} + {{ layout.logo }} + {%- elif config.theme.logo -%} + {{ config.docs_dir }}/{{ config.theme.logo }} + {%- endif -%} + + # Logo (icon) + - &logo_icon >- + {%- if not layout.logo and config.theme.icon -%} + {{ config.theme.icon.logo | x }} + {%- endif -%} + +# Meta tags +tags: + # Open Graph + og:type: website + og:title: *page_title_with_site_name + og:description: *page_description + og:image: "{{ image.url }}" + og:image:type: "{{ image.type }}" + og:image:width: "{{ image.width }}" + og:image:height: "{{ image.height }}" + og:url: "{{ page.canonical_url }}" + + # Twitter + twitter:card: summary_large_image + twitter:title: *page_title_with_site_name + twitter:description: *page_description + twitter:image: "{{ image.url }}" + +# ----------------------------------------------------------------------------- +# Specification +# ----------------------------------------------------------------------------- + +# Card size and layers +size: { width: 1200, height: 630 } +layers: + # Background + - background: + image: *background_image + color: *background_color + + # Page icon + - size: { width: 630, height: 630 } + offset: { x: 800, y: 0 } + icon: + value: *page_icon + color: "#FFFFFF20" + + # Logo + - size: { width: 64, height: 64 } + offset: { x: 64, y: 64 } + background: + image: *logo + icon: + value: *logo_icon + color: *color + + # Site name + - size: { width: 768, height: 42 } + offset: { x: 160, y: 74 } + typography: + content: *site_name + color: *color + font: + family: *font_family + variant: *font_variant + style: Bold + + # Page title + - size: { width: 864, height: 256 } + offset: { x: 62, y: 192 } + typography: + content: *page_title + align: start + color: *color + line: + amount: 3 + height: 1.25 + font: + family: *font_family + variant: *font_variant + style: Bold + + # Page description + - size: { width: 864, height: 64 } + offset: { x: 64, y: 512 } + typography: + content: *page_description + align: start + color: *color + line: + amount: 2 + height: 1.5 + font: + family: *font_family + variant: *font_variant + style: Regular diff --git a/docs/more/coverage.md b/docs/more/coverage.md new file mode 100644 index 00000000..65a1a866 --- /dev/null +++ b/docs/more/coverage.md @@ -0,0 +1,57 @@ +--- +title: Community Coverage +description: Homepage has been covered by quite a few YouTube channels, here are some of them. +--- + +Homepage has been covered by quite a few YouTube channels, here are some of them. If you have a video you'd like to add, please open a PR! + +## English + +

+ +[![Youtube Video](https://img.youtube.com/vi/mC3tjysJ01E/maxresdefault.jpg)](https://www.youtube.com/watch?v=mC3tjysJ01E) + +[![Youtube Video](https://img.youtube.com/vi/o9SLve4wBPY/maxresdefault.jpg)](https://www.youtube.com/watch?v=o9SLve4wBPY) + +[![Youtube Video](https://img.youtube.com/vi/j9kbQucNwlc/maxresdefault.jpg)](https://www.youtube.com/watch?v=j9kbQucNwlc) + +[![Youtube Video](https://img.youtube.com/vi/3Ux7zfCCM1A/maxresdefault.jpg)](https://www.youtube.com/watch?v=3Ux7zfCCM1A) + +[![Youtube Video](https://img.youtube.com/vi/4AwUNy2eztA/maxresdefault.jpg)](https://www.youtube.com/watch?v=4AwUNy2eztA) + +[![Youtube Video](https://img.youtube.com/vi/7mUUCB3kP0E/maxresdefault.jpg)](https://www.youtube.com/watch?v=7mUUCB3kP0E) + +[![Youtube Video](https://img.youtube.com/vi/a5-4u0qFKaE/maxresdefault.jpg)](https://www.youtube.com/watch?v=a5-4u0qFKaE) + +[![Youtube Video](https://img.youtube.com/vi/tV7-06FU4gQ/maxresdefault.jpg)](https://www.youtube.com/watch?v=tV7-06FU4gQ) + +[![Youtube Video](https://img.youtube.com/vi/X2ycbT7rPu4/maxresdefault.jpg)](https://www.youtube.com/watch?v=X2ycbT7rPu4) + +[![Youtube Video](https://img.youtube.com/vi/1jEWUJqL-eo/maxresdefault.jpg)](https://www.youtube.com/watch?v=1jEWUJqL-eo) + +
+ +
+ +
+## French +[![Youtube Video](https://img.youtube.com/vi/aGztk8you6o/maxresdefault.jpg)](https://www.youtube.com/watch?v=aGztk8you6o) +[![Youtube Video](https://img.youtube.com/vi/pQfhWqZh7YE/maxresdefault.jpg)](https://www.youtube.com/watch?v=pQfhWqZh7YE) +
+ +
+## German +[![Youtube Video](https://img.youtube.com/vi/DrDgg-WRA2g/maxresdefault.jpg)](https://www.youtube.com/watch?v=DrDgg-WRA2g) +
+ +
+## Chinese +[![Youtube Video](https://img.youtube.com/vi/DAW15ckt4n4/mqdefault.jpg){: style="width: 100%"}](https://www.youtube.com/watch?v=DAW15ckt4n4) +
+ +
+## Russian +[![Youtube Video](https://img.youtube.com/vi/dk3Cp5ck8mY/maxresdefault.jpg)](https://www.youtube.com/watch?v=dk3Cp5ck8mY) +
+ +
diff --git a/docs/more/index.md b/docs/more/index.md index 1b817983..402029b3 100644 --- a/docs/more/index.md +++ b/docs/more/index.md @@ -1,6 +1,7 @@ --- title: More description: More homepage resources and guides. +icon: material/information-slab-circle --- Here you'll find resources and guides for Homepage, troubleshooting tips, and more. diff --git a/docs/more/sponsors.md b/docs/more/sponsors.md new file mode 100644 index 00000000..bb877a6c --- /dev/null +++ b/docs/more/sponsors.md @@ -0,0 +1,58 @@ +--- +title: Sponsors +description: Homepage is supported by these awesome people and companies. +--- + +If you would like to support the Homepage project, you can do so by becoming a sponsor. Your sponsorship helps to keep the project running and growing. + +
+ +[:simple-github: GitHub Sponsors](https://github.com/sponsors/gethomepage){ .md-button } + +[:simple-opencollective: OpenCollective](https://opencollective.com/homepage){ .md-button } + +[:simple-patreon: Patreon](https://www.patreon.com/gethomepage){ .md-button .w-full } + +
+ +
+ +These companies help the Homepage project by providing services, tools, and resources. + +
+
+ DigitalOcean +

+ DigitalOcean provides the GitHub Actions runner for the project. Dramatically speeding up the CI/CD process. +

+
+ +
+ Crowdin +

+ Crowdin provides the translation platform for the project. Making it easy to translate the project into multiple languages. +

+
+ +
+ JetBrains +

+ JetBrains provides the project with free licenses for their awesome tools. +

+
+ +
+ BuySellAds +

+ BuySellAds provides the project with the ability to monetize the website, with high quality ads from the CarbonAds network. All earnings are sent directly to the projects OpenCollective. +

+
+
+ + diff --git a/docs/overrides/main.html b/docs/overrides/main.html index 0a5f2bc5..7150c1b7 100644 --- a/docs/overrides/main.html +++ b/docs/overrides/main.html @@ -1,5 +1,10 @@ {% extends "base.html" %} +{% block header %} +
+ {% include "partials/header.html" %} +{% endblock %} + {% block site_nav %} {% if nav %} diff --git a/docs/scripts/extra.js b/docs/scripts/extra.js deleted file mode 100644 index 8383e85e..00000000 --- a/docs/scripts/extra.js +++ /dev/null @@ -1,35 +0,0 @@ -var glimeScript; -var glimeStyles = []; -document$.subscribe(function () { - if (!glimeScript) { - glimeScript = document.createElement("script"); - glimeScript.setAttribute("src", "https://cdn.glimelab.ai/widget/1.0.0/widget.js"); - glimeScript.setAttribute("onload", "onGlimeLoad()"); - document.head.appendChild(glimeScript); - } else { - var newGlimeStyle = document.createElement("style"); - document.head.appendChild(newGlimeStyle); - var i = 0; - glimeStyles.forEach((rule) => { - newGlimeStyle.sheet.insertRule(rule.cssText, i); - i++; - }); - } -}); - -onGlimeLoad = () => { - window.glime.init("Bl3mlvfCnTnRm5"); - setTimeout(() => { - const sheets = document.styleSheets; - [...sheets].forEach((sheet) => { - if (!sheet.href) { - [...sheet.cssRules].forEach((rule) => { - if (!rule || rule.href || !rule.selectorText) return; - if (rule.selectorText.indexOf(".css-") === 0 || rule.selectorText.indexOf("glime") > -1) { - glimeStyles.push(rule); - } - }); - } - }); - }, 1000); -}; diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index f9281da2..07ecaa57 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -1,3 +1,29 @@ +[data-md-color-scheme="slate"] { + --md-hue: 220; + --md-default-bg-color: hsla(0, 0%, 14%, 0.6); + --md-code-bg-color: hsla(0, 0%, 0%, 0.2); +} + +[data-md-color-scheme="default"] { + --md-hue: 220; + --md-default-fg-color--light: white; + --md-default-fg-color--lighter: hsla(0, 0%, 100%, 0.6); + --md-default-bg-color: hsla(0, 0%, 100%, 0.8); + --md-code-bg-color: hsla(0, 0%, 100%, 0.6); + --md-code-bg-color--lighter: hsla(0, 0%, 100%, 0.6); + --md-default-fg-color: white; +} + +[data-md-color-scheme="default"] .md-search__inner { + --md-default-fg-color--light: gray; + --md-default-fg-color--lighter: black; + --md-default-bg-color: hsla(0, 0%, 100%, 0.9); +} + +[data-md-color-scheme="default"] .md-search__inner .md-search__input { + color: var(--md-default-fg-color--light); +} + [data-md-toggle="search"]:not(:checked) ~ .md-header .md-search__form::after { position: absolute; top: 0.3rem; @@ -19,10 +45,6 @@ } } -#glimeRoot * { - font-family: var(--md-text-font) !important; -} - #carbonads { margin-top: 10px; } @@ -42,3 +64,220 @@ .md-typeset table:not([class]) { display: table; } + +/* less than 1440px wide */ +@media (max-width: 1440px) { + .md-footer-meta__inner { + justify-content: center; + } +} + +/* less than 740px wide */ +@media (max-width: 740px) { + .md-footer-meta__inner { + justify-content: left; + flex-direction: column; + } + .md-social { + padding-top: 0; + } +} + +.md-header__button.md-logo { + padding: 0; + margin: 0; +} + +.md-header__button.md-logo img, +.md-header__button.md-logo svg { + height: 2rem; +} + +.md-header__topic .md-ellipsis { + display: none; +} + +body { + background-color: transparent !important; + background-image: url("https://raw.githubusercontent.com/gethomepage/homepage/main/docs/assets/blossom_valley.jpg"); + background-size: cover; + background-attachment: fixed; + background-position: center; + color: rgba(255, 255, 255, 0.8); +} + +.md-typeset h1 { + color: #fff; +} + +body[data-md-color-scheme="default"] { + color: rgba(255, 255, 255, 1); +} + +.blur-overlay { + z-index: -1; + position: fixed; + width: 100%; + height: 100%; + background: hsl(0deg 0% 0% / 10%); + backdrop-filter: blur(128px); + -webkit-backdrop-filter: blur(128px); +} + +[data-md-color-scheme="default"] .blur-overlay { + background: hsla(0, 0%, 0%, 0); +} + +.md-nav--lifted > .md-nav__list > .md-nav__item--active > .md-nav__link, +.md-nav--secondary .md-nav__title { + background: none; + box-shadow: none; +} + +[data-md-color-scheme="slate"] .md-main, +[data-md-color-scheme="slate"] .md-tabs, +[data-md-color-scheme="slate"] .md-footer { + background-color: hsla(0, 0%, 0%, 0.3); +} + +[data-md-color-scheme="default"] .md-main, +[data-md-color-scheme="default"] .md-tabs, +[data-md-color-scheme="default"] .md-footer { + background-color: hsla(0, 0%, 100%, 0.1); +} + +[data-md-color-scheme="slate"] .md-header { + background-color: hsla(0, 0%, 0%, 0.3); + backdrop-filter: blur(16px); + -webkit-backdrop-filter: blur(16px); +} + +[data-md-color-scheme="default"] .md-header { + background-color: hsla(0, 0%, 100%, 0.1); + backdrop-filter: blur(16px); + -webkit-backdrop-filter: blur(16px); +} + +.md-header:has(.md-search-result__item), +.md-header:has(.md-search__input.focus-visible) { + backdrop-filter: none !important; + -webkit-backdrop-filter: none !important; +} + +.md-footer-meta { + background-color: transparent; +} + +[data-md-color-scheme="slate"][data-md-color-primary="black"], +[data-md-color-scheme="default"][data-md-color-primary="black"] { + --md-typeset-a-color: #ffffff; +} + +.md-content__inner a { + text-decoration: underline; + font-weight: bolder; +} + +[data-md-color-scheme="default"] .highlight .p, +[data-md-color-scheme="default"] .highlight .o, +[data-md-color-scheme="default"] .highlight .ow, +[data-md-color-scheme="default"] .highlight .c, +[data-md-color-scheme="default"] .highlight .c1, +[data-md-color-scheme="default"] .highlight .ch, +[data-md-color-scheme="default"] .highlight .cm, +[data-md-color-scheme="default"] .highlight .cs, +[data-md-color-scheme="default"] .highlight .sd { + color: #36464eaa; +} + +[data-md-color-scheme="default"] .md-annotation__index:after { + background-color: #36464ecc; +} + +/* I know this is a farce, but I want it to look nice. */ +.css-9if7bc { + background-color: hsla(0, 0%, 0%, 0.3); + backdrop-filter: blur(16px); + -webkit-backdrop-filter: blur(16px); +} + +@media screen and (max-width: 76.234375em) { + .md-nav--primary, + .md-nav--primary .md-nav { + background-color: hsla(0, 0%, 0%, 0.8); + } +} + +@media screen and (max-width: 76.234375em) { + .md-nav--primary .md-nav__title ~ .md-nav__list { + background-color: hsla(0, 0%, 0%, 0.8); + backdrop-filter: blur(16px); + -webkit-backdrop-filter: blur(16px); + } +} + +@media screen and (max-width: 76.234375em) { + .md-nav--primary .md-nav__title { + background-color: hsla(0, 0%, 0%, 0.8); + backdrop-filter: blur(16px); + } +} + +.md-search__scrollwrap { + background-color: hsla(0, 0%, 0%, 0.8); + backdrop-filter: blur(16px); + -webkit-backdrop-filter: blur(16px); +} + +.md-search-result .md-typeset h1 { + color: #fff; +} + +[data-md-color-scheme="default"] .highlight span.filename, +[data-md-color-scheme="default"] .linenodiv a { + color: #36464e; + font-weight: light; +} + +.linenodiv a { + text-decoration: none; +} + +.md-typeset .admonition, +.md-typeset details { + background-color: transparent; +} + +.md-typeset img, +.md-typeset svg, +.md-typeset video { + box-shadow: 0 0 1rem 0.25rem hsla(0, 0%, 0%, 0.1); +} + +.highlight { + box-shadow: 0 0 1rem 0.25rem hsla(0, 0%, 0%, 0.1); +} + +.md-typeset .admonition.tip, +.md-typeset details.tip { + box-shadow: 0 0 1rem 0.25rem hsl(171.83deg 100% 37.45% / 20%); +} + +.md-typeset .admonition.note, +.md-typeset details.note { + box-shadow: 0 0 1rem 0.25rem hsl(214.29deg 100% 37.45% / 20%); +} + +.md-typeset .admonition.warning, +.md-typeset details.warning { + box-shadow: 0 0 1rem 0.25rem hsl(40.91deg 100% 37.45% / 20%); +} + +.md-typeset .admonition.danger, +.md-typeset details.danger { + box-shadow: 0 0 1rem 0.25rem hsl(0deg 100% 37.45% / 20%); +} + +.md-tabs__link { + transform: translateZ(0); +} diff --git a/docs/more/troubleshooting.md b/docs/troubleshooting/index.md similarity index 85% rename from docs/more/troubleshooting.md rename to docs/troubleshooting/index.md index 9c60a09f..889d79dc 100644 --- a/docs/more/troubleshooting.md +++ b/docs/troubleshooting/index.md @@ -1,15 +1,11 @@ --- title: Troubleshooting description: Basic Troubleshooting - +icon: material/message-question hide: - navigation --- -## Introducing the Homepage AI Bot - -Thanks to the generous folks at [Glime](https://glimelab.ai), Homepage is now equipped with a pretty clever AI-powered bot. The bot has full knowledge of our docs, GitHub issues and discussions and is great at answering specific questions about setting up your Homepage. To use the bot, just hit the 'Ask AI' button on any page in our docs, [open a GitHub discussion](https://github.com/gethomepage/homepage/discussions) or check out the [#ai-support channel on Discord](https://discord.com/channels/1019316731635834932/1177885603552038993)! - ## General Troubleshooting Tips - For API errors, clicking the "API Error Information" button in the widget will usually show some helpful information as to whether the issue is reaching the service host, an authentication issue, etc. diff --git a/docs/widgets/authoring/api.md b/docs/widgets/authoring/api.md index b700b19c..54927da8 100644 --- a/docs/widgets/authoring/api.md +++ b/docs/widgets/authoring/api.md @@ -1,6 +1,6 @@ --- title: API Guide -description: How to fetch data from an API in Homepage widgets. +description: Get comfortable with making API calls from inside your widget. --- Homepage provides the `useWidgetAPI` hook to help you fetch data from an API. This hook insures that the data is fetched using a proxy, and is critical for security. @@ -29,7 +29,7 @@ The `widget` argument is the metadata object for the widget. It contains informa ### `endpoint` -The `endpoint` argument is the name of the endpoint to fetch data from. This is [defined in the widget metadata object](widget.md#endpoint). The `useWidgetAPI` hook uses this argument to determine which endpoint to fetch data from. +The `endpoint` argument is the name of the endpoint to fetch data from. This is [defined in the widget metadata object](metadata.md#endpoint). The `useWidgetAPI` hook uses this argument to determine which endpoint to fetch data from. If no endpoint is provided, the `useWidgetAPI` hook will call the API endpoint defined in the widget metadata object directly. @@ -47,4 +47,4 @@ export default function Component({ service }) { } ``` -The `params` must be [whitelisted in the widget metadata object](widget.md#params). This is done to prevent arbitrary query parameters from being passed to the API. +The `params` must be [whitelisted in the widget metadata object](metadata.md#params). This is done to prevent arbitrary query parameters from being passed to the API. diff --git a/docs/widgets/authoring/component.md b/docs/widgets/authoring/component.md index e909169f..1e20cbbf 100644 --- a/docs/widgets/authoring/component.md +++ b/docs/widgets/authoring/component.md @@ -1,6 +1,6 @@ --- title: Component Guide -description: How to create and configure Homepage widget components. +description: Learn more about the widget component in Homepage, and how to build your widget UI. --- Homepage widgets are built using React components. These components are responsible for fetching data from the API and rendering the widget UI. Homepage provides a set of hooks and utilities to help you build your widget component. @@ -63,7 +63,7 @@ This hook is used to fetch data from the API. We cover this hook in more detail Homepage provides a set of components to help you build your widget UI. These components are designed to provide a consistent layout, and all widgets are expected to use these components. -![Component Sections](../../assets/sections.png) +![Component Sections](../../assets/sections.webp) **``** diff --git a/docs/more/development.md b/docs/widgets/authoring/getting-started.md similarity index 92% rename from docs/more/development.md rename to docs/widgets/authoring/getting-started.md index ec580cff..55ce5d1c 100644 --- a/docs/more/development.md +++ b/docs/widgets/authoring/getting-started.md @@ -1,9 +1,11 @@ --- -title: Development -description: Homepage Development +title: Getting Started +description: Get started developing for Homepage. --- -## Development Overview +We'll cover getting homepage up and running on your local machine for development, as well as some guidelines for developing new features and widgets. + +## Development First, clone the homepage repository. diff --git a/docs/widgets/authoring/index.md b/docs/widgets/authoring/index.md index cc9b934f..297629b4 100644 --- a/docs/widgets/authoring/index.md +++ b/docs/widgets/authoring/index.md @@ -1,34 +1,33 @@ --- -title: Homepage Widget Guides -description: How to create and configure Homepage widgets. +title: Guides & Tutorials +description: Learn how to create and customize widgets in Homepage. Explore translations, widget components, widget metadata, proxy handlers, and making API calls. +icon: fontawesome/solid/graduation-cap --- Widgets are a core component of Homepage. They are used to display information about your system, services, and environment. ## Overview -If you are new to Homepage widgets, and are looking to create a new widget, please follow along with the guide here: [Widget Guide](guide.md). +If you are new to Homepage widgets, and are looking to create a new widget, please follow along with the guide here: [Widget Tutorial](tutorial.md). ### Translations All text and numerical content in widgets should be translated and localized. English is the default language, and other languages can be added via [Crowdin](https://crowdin.com/project/gethomepage). -The Homepage community prides itself on being multilingual, and we strongly encourage you to add translations for your widgets. - -If you are looking to learn more about translations, please refer to the guide here: [Translations Guide](translations.md). +To learn more about translations, please refer to the guide here: [Translations Guide](translations.md). ### Widget Component The widget component is the core of the widget. It is responsible for [fetching data from the API](api.md) and rendering the widget UI. Homepage provides a set of hooks and utilities to help you build your widget component. -If you are looking to learn more about widget components, please refer to the guide here: [Component Guide](component.md). +To learn more about widget components, please refer to the guide here: [Component Guide](component.md). ### Widget Metadata Widget metadata defines the configuration of the widget. It defines the API endpoint to fetch data from, the proxy handler to use, and any data mappings. -If you are looking to learn more about widget metadata, endpoint and data mapping, please refer to the guide here: [Metadata Guide](widget.md). +To learn more about widget metadata, endpoint and data mapping, please refer to the guide here: [Metadata Guide](metadata.md). -If you are looking to learn more about proxy handlers, please refer to the guide here: [Proxies Guide](proxies.md). +To learn more about proxy handlers, please refer to the guide here: [Proxies Guide](proxies.md). -If you are looking to learn more making API calls from inside your widget, please refer to the guide here: [API Guide](api.md). +To learn more about making API calls from inside your widget, please refer to the guide here: [API Guide](api.md). diff --git a/docs/widgets/authoring/widget.md b/docs/widgets/authoring/metadata.md similarity index 97% rename from docs/widgets/authoring/widget.md rename to docs/widgets/authoring/metadata.md index fd9ec062..63e464e1 100644 --- a/docs/widgets/authoring/widget.md +++ b/docs/widgets/authoring/metadata.md @@ -1,6 +1,6 @@ --- title: Metadata Guide -description: How to create and configure Homepage widget metadata. +description: Explore all the metadata properties that can be used to configure a widget in Homepage. --- Here, we will go over how to create and configure Homepage widget metadata. Metadata is a JS object that contains information about the widget, such as the API endpoint, proxy handler, and mappings. This metadata is used by Homepage to fetch data from the API and pass it to the widget. @@ -56,7 +56,7 @@ Here are some examples of how to configure a widget's metadata object. }; ``` -A widgets metadata is quite powerful and can be configured in many different ways. +A widget's metadata is quite powerful and can be configured in many different ways. ## Configuration Properties diff --git a/docs/widgets/authoring/proxies.md b/docs/widgets/authoring/proxies.md index cf835bac..220af4ad 100644 --- a/docs/widgets/authoring/proxies.md +++ b/docs/widgets/authoring/proxies.md @@ -1,6 +1,6 @@ --- title: Proxies Guide -description: How to use and create Homepage widget proxies. +description: Learn about proxy handlers in Homepage, and how to securely fetch data from an API. --- Homepage includes a set of built-in proxy handlers that can be used to fetch data from an API. We will go over how to use these proxy handlers and briefly cover how to create your own. diff --git a/docs/widgets/authoring/translations.md b/docs/widgets/authoring/translations.md index 06a6e39d..13473f05 100644 --- a/docs/widgets/authoring/translations.md +++ b/docs/widgets/authoring/translations.md @@ -5,8 +5,6 @@ description: Tips and tricks for translating and localizing Homepage widgets. All text and numerical content in widgets should be translated and localized. English is the default language, and other languages can be added via [Crowdin](https://crowdin.com/project/gethomepage). -The Homepage community prides itself on being multilingual, and we strongly encourage you to add translations for your widgets. - ## Translations Homepage uses the [next-i18next](https://github.com/i18next/next-i18next) library to handle translations. This library provides a set of hooks and utilities to help you localize your widgets, and Homepage has extended this library to support additional features. @@ -32,15 +30,25 @@ Homepage uses the [next-i18next](https://github.com/i18next/next-i18next) librar } ``` -=== "en.json" +## Set up translation strings - ```json - "yourwidget": { - "key1": "Value 1", - "key2": "Value 2", - "key3": "Value 3" - } - ``` +Homepage uses translated and localized strings for **all text and numerical content** in widgets. English is the default language, and other languages can be added via [Crowdin](https://crowdin.com/project/gethomepage). To add the English translations for your widget, follow these steps: + +Open the `public/locales/en/common.js` file. + +Add a new object for your widget to the bottom of the list, like this: + +```json +"yourwidget": { + "key1": "Value 1", + "key2": "Value 2", + "key3": "Value 3" +} +``` + +!!! note + + Even if you natively speak another language, you should only add English translations. You can then add translations in your native language via [Crowdin](https://crowdin.com/project/gethomepage), once your widget is merged. ## Common Translations diff --git a/docs/widgets/authoring/guide.md b/docs/widgets/authoring/tutorial.md similarity index 92% rename from docs/widgets/authoring/guide.md rename to docs/widgets/authoring/tutorial.md index 766c8d4c..d9fef90b 100644 --- a/docs/widgets/authoring/guide.md +++ b/docs/widgets/authoring/tutorial.md @@ -1,6 +1,6 @@ --- -title: Widget Guide -description: How to create a custom widget for Homepage. +title: Widget Tutorial +description: Follow along with this guide to learn how to create a custom widget for Homepage. We'll cover the basic structure of a widget, how to use translations, and how to fetch data from an API. --- In this guide, we'll walk through the process of creating a custom widget for Homepage. We'll cover the basic structure of a widget, how to use translations, and how to fetch data from an API. By the end of this guide, you'll have a solid understanding of how to build your own custom widget. @@ -55,25 +55,9 @@ export default widget; All widgets that fetch data from dynamic endpoints should have either `mappings` or an `allowedEndpoints` property. -## Set up translation strings +## Including translation strings in your widget -Homepage uses translated and localized strings for **all text and numerical content** in widgets. English is the default language, and other languages can be added via [Crowdin](https://crowdin.com/project/gethomepage). To add the English translations for your widget, follow these steps: - -Open the `public/locales/en/common.js` file. - -Add a new object for your widget to the bottom of the list, like this: - -```json -"yourwidget": { - "key1": "Value 1", - "key2": "Value 2", - "key3": "Value 3" -} -``` - -!!! note - - Even if you nativly speak another language, you should only add English translations. You can then add translations in your native language via [Crowdin](https://crowdin.com/project/gethomepage), once your widget is merged. +Refer to the [translations guide](translations.md) for more details. The Homepage community prides itself on being multilingual, and we strongly encourage you to add translations for your widgets. ## Create the widget component diff --git a/docs/widgets/index.md b/docs/widgets/index.md index 69f95d02..8b81ee40 100644 --- a/docs/widgets/index.md +++ b/docs/widgets/index.md @@ -1,10 +1,13 @@ --- title: Widgets -description: Homepage info and status widgets. +description: Find information on how to configure specific widgets in Homepage. +icon: material/widgets --- Homepage has two types of widgets: info and service. Below we'll cover each type and how to configure them. +The left navigation of this site contains links to all available widgets. + ## Service Widgets Service widgets are used to display the status of a service, often a web service or API. Services (and their widgets) are defined in your `services.yaml` file. Here's an example: diff --git a/docs/widgets/info/index.md b/docs/widgets/info/index.md index 52edeaad..b16e053c 100644 --- a/docs/widgets/info/index.md +++ b/docs/widgets/info/index.md @@ -2,3 +2,18 @@ title: Info Widgets description: Homepage info widgets. --- + +You can also find a list of all available info widgets in the sidebar navigation. + +- [Date & Time](datetime.md) +- [Glances](glances.md) +- [Greeting](greeting.md) +- [Kubernetes](kubernetes.md) +- [Logo](logo.md) +- [Longhorn](longhorn.md) +- [OpenMeteo](openmeteo.md) +- [OpenWeatherMap](openweathermap.md) +- [Resources](resources.md) +- [Search](search.md) +- [Stocks](stocks.md) +- [UniFi Controller](unifi_controller.md) diff --git a/docs/widgets/info/stocks.md b/docs/widgets/info/stocks.md new file mode 100644 index 00000000..548bedb4 --- /dev/null +++ b/docs/widgets/info/stocks.md @@ -0,0 +1,48 @@ +--- +title: Stocks +description: Stocks Information Widget Configuration +--- + +_(Find the Stocks service widget [here](../services/stocks.md))_ + +The Stocks Information Widget allows you to include basic stock market data in +your Homepage header. The widget includes the current price of a stock, and the +change in price for the day. + +Finnhub.io is currently the only supported provider for the stocks widget. +You can sign up for a free api key at [finnhub.io](https://finnhub.io). +You are encouraged to read finnhub.io's +[terms of service/privacy policy](https://finnhub.io/terms-of-service) before +signing up. The documentation for the endpoint that is utilized can be viewed +[here](https://finnhub.io/docs/api/quote). + +You must set `finnhub` as a provider in your `settings.yaml` like below: + +```yaml +providers: + finnhub: yourfinnhubapikeyhere +``` + +Next, configure the stocks widget in your `widgets.yaml`: + +The information widget allows for up to 8 items in the watchlist. + +```yaml +- stocks: + provider: finnhub + color: true # optional, defaults to true + cache: 1 # optional, default caches results for 1 minute + watchlist: + - GME + - AMC + - NVDA + - AMD + - TSM + - MSFT + - AAPL + - BRK.A +``` + +The above configuration would result in something like this: + +![Example of Stocks Widget](../../assets/widget_stocks_demo.png) diff --git a/docs/widgets/info/unifi_controller.md b/docs/widgets/info/unifi_controller.md index 29188270..420029f5 100644 --- a/docs/widgets/info/unifi_controller.md +++ b/docs/widgets/info/unifi_controller.md @@ -9,7 +9,9 @@ You can display general connectivity status from your Unifi (Network) Controller An optional 'site' parameter can be supplied, if it is not the widget will use the default site for the controller. -_Note: If you enter e.g. incorrect credentials and receive an "API Error", you may need to recreate the container to clear the cache._ +!!! hint + + If you enter e.g. incorrect credentials and receive an "API Error", you may need to recreate the container to clear the cache. unifi_infowidget diff --git a/docs/widgets/services/frigate.md b/docs/widgets/services/frigate.md new file mode 100644 index 00000000..411c3cc7 --- /dev/null +++ b/docs/widgets/services/frigate.md @@ -0,0 +1,17 @@ +--- +title: Frigate +description: Frigate Widget Configuration +--- + +Learn more about [Frigate](https://frigate.video/). + +Allowed fields: `["cameras", "uptime", "version"]`. + +A recent event listing is disabled by default, but can be enabled with the `enableRecentEvents` option. + +```yaml +widget: + type: frigate + url: http://frigate.host.or.ip:port + enableRecentEvents: true # Optional, defaults to false +``` diff --git a/docs/widgets/services/index.md b/docs/widgets/services/index.md index b8a41d76..e0502488 100644 --- a/docs/widgets/services/index.md +++ b/docs/widgets/services/index.md @@ -2,3 +2,126 @@ title: Service Widgets description: Homepage service widgets. --- + +You can also find a list of all available service widgets in the sidebar navigation. + +- [Adguard Home](adguard-home.md) +- [Atsumeru](atsumeru.md) +- [Audiobookshelf](audiobookshelf.md) +- [Authentik](authentik.md) +- [Autobrr](autobrr.md) +- [Azure DevOps](azuredevops.md) +- [Bazarr](bazarr.md) +- [Caddy](caddy.md) +- [Calendar](calendar.md) +- [Calibre-Web](calibre-web.md) +- [ChangeDetection.io](changedetectionio.md) +- [Channels DVR Server](channelsdvrserver.md) +- [Cloudflared](cloudflared.md) +- [Coin Market Cap](coin-market-cap.md) +- [CrowdSec](crowdsec.md) +- [Custom API](customapi.md) +- [Deluge](deluge.md) +- [DiskStation](diskstation.md) +- [DownloadStation](downloadstation.md) +- [Emby](emby.md) +- [ESPHome](esphome.md) +- [EVCC](evcc.md) +- [Fileflows](fileflows.md) +- [Flood](flood.md) +- [FreshRSS](freshrss.md) +- [Frigate](frigate.md) +- [Fritz!Box](fritzbox.md) +- [GameDig](gamedig.md) +- [Gatus](gatus.md) +- [Ghostfolio](ghostfolio.md) +- [Gitea](gitea.md) +- [Glances](glances.md) +- [Gluetun](gluetun.md) +- [Gotify](gotify.md) +- [Grafana](grafana.md) +- [HDHomeRun](hdhomerun.md) +- [Healthchecks](healthchecks.md) +- [Home Assistant](homeassistant.md) +- [HomeBox](homebox.md) +- [Homebridge](homebridge.md) +- [iFrame](iframe.md) +- [Immich](immich.md) +- [Jackett](jackett.md) +- [JDownloader](jdownloader.md) +- [Jellyfin](jellyfin.md) +- [Jellyseerr](jellyseerr.md) +- [Kavita](kavita.md) +- [Komga](komga.md) +- [Kopia](kopia.md) +- [Lidarr](lidarr.md) +- [Mastodon](mastodon.md) +- [Mealie](mealie.md) +- [Medusa](medusa.md) +- [Mikrotik](mikrotik.md) +- [Minecraft](minecraft.md) +- [Miniflux](miniflux.md) +- [MJpeg](mjpeg.md) +- [Moonraker](moonraker.md) +- [Mylar](mylar.md) +- [MySpeed](myspeed.md) +- [Navidrome](navidrome.md) +- [NetAlertX](netalertx.md) +- [Netdata](netdata.md) +- [Nextcloud](nextcloud.md) +- [NextDNS](nextdns.md) +- [NGINX Proxy Manager](nginx-proxy-manager.md) +- [NZBGet](nzbget.md) +- [OctoPrint](octoprint.md) +- [Omada](omada.md) +- [Ombi](ombi.md) +- [OpenDTU](opendtu.md) +- [OpenMediaVault](openmediavault.md) +- [OpenWRT](openwrt.md) +- [OPNsense](opnsense.md) +- [Overseerr](overseerr.md) +- [PaperlessNGX](paperlessngx.md) +- [Peanut](peanut.md) +- [pfSense](pfsense.md) +- [PhotoPrism](photoprism.md) +- [Pi-hole](pihole.md) +- [PlantIt](plantit.md) +- [Plex & Tautulli](plex-tautulli.md) +- [Plex](plex.md) +- [Portainer](portainer.md) +- [Prometheus](prometheus.md) +- [Prowlarr](prowlarr.md) +- [Proxmox](proxmox.md) +- [Proxmox Backup Server](proxmoxbackupserver.md) +- [Pterodactyl](pterodactyl.md) +- [PyLoad](pyload.md) +- [qBittorrent](qbittorrent.md) +- [QNAP](qnap.md) +- [Radarr](radarr.md) +- [Readarr](readarr.md) +- [ROMM](romm.md) +- [ruTorrent](rutorrent.md) +- [SABnzbd](sabnzbd.md) +- [Scrutiny](scrutiny.md) +- [Sonarr](sonarr.md) +- [Speedtest Tracker](speedtest-tracker.md) +- [Stash](stash.md) +- [Stocks](stocks.md) +- [SwagDashboard](swagdashboard.md) +- [Syncthing Relay Server](syncthing-relay-server.md) +- [Tailscale](tailscale.md) +- [Tandoor](tandoor.md) +- [TDarr](tdarr.md) +- [Traefik](traefik.md) +- [Transmission](transmission.md) +- [TrueNAS](truenas.md) +- [TubeArchivist](tubearchivist.md) +- [UniFi Controller](unifi-controller.md) +- [Unmanic](unmanic.md) +- [Uptime Kuma](uptime-kuma.md) +- [UptimeRobot](uptimerobot.md) +- [UrBackup](urbackup.md) +- [Watchtower](watchtower.md) +- [WGEasy](wgeasy.md) +- [WhatsUpDocker](whatsupdocker.md) +- [xTeVe](xteve.md) diff --git a/docs/widgets/services/myspeed.md b/docs/widgets/services/myspeed.md new file mode 100644 index 00000000..1790c9c1 --- /dev/null +++ b/docs/widgets/services/myspeed.md @@ -0,0 +1,15 @@ +--- +title: MySpeed +description: MySpeed Widget Configuration +--- + +Learn more about [MySpeed](https://myspeed.dev/). + +Allowed fields: `["ping", "download", "upload"]`. + +```yaml +widget: + type: myspeed + url: http://myspeed.host.or.ip:port + password: password # only required if password is set +``` diff --git a/docs/widgets/services/pfsense.md b/docs/widgets/services/pfsense.md index 8f32a718..a7d7a923 100644 --- a/docs/widgets/services/pfsense.md +++ b/docs/widgets/services/pfsense.md @@ -26,5 +26,6 @@ widget: headers: # optional, or username/password Authorization: client_id client_token wan: igb0 + version: 2 # optional, defaults to 1 for api v1 fields: ["load", "memory", "temp", "wanStatus"] # optional ``` diff --git a/docs/widgets/services/stocks.md b/docs/widgets/services/stocks.md new file mode 100644 index 00000000..5d64c9ac --- /dev/null +++ b/docs/widgets/services/stocks.md @@ -0,0 +1,50 @@ +--- +title: Stocks +description: Stocks Service Widget Configuration +--- + +_(Find the Stocks information widget [here](../info/stocks.md))_ + +The widget includes: + +- US stock market status +- Current price of provided stock symbol +- Change in price of stock symbol for the day. + +Finnhub.io is currently the only supported provider for the stocks widget. +You can sign up for a free api key at [finnhub.io](https://finnhub.io). +You are encouraged to read finnhub.io's +[terms of service/privacy policy](https://finnhub.io/terms-of-service) before +signing up. + +Allowed fields: no configurable fields for this widget. + +You must set `finnhub` as a provider in your `settings.yaml`: + +```yaml +providers: + finnhub: yourfinnhubapikeyhere +``` + +Next, configure the stocks widget in your `services.yaml`: + +The service widget allows for up to 28 items in the watchlist. You may get rate +limited if using the information and service widgets together. + +```yaml +widget: + type: stocks + provider: finnhub + showUSMarketStatus: true # optional, defaults to true + watchlist: + - GME + - AMC + - NVDA + - TSM + - BRK.A + - TSLA + - AAPL + - MSFT + - AMZN + - BRK.B +``` diff --git a/docs/widgets/services/unifi-controller.md b/docs/widgets/services/unifi-controller.md index 6aa48969..e33b6113 100644 --- a/docs/widgets/services/unifi-controller.md +++ b/docs/widgets/services/unifi-controller.md @@ -11,9 +11,11 @@ You can display general connectivity status from your Unifi (Network) Controller An optional 'site' parameter can be supplied, if it is not the widget will use the default site for the controller. -Allowed fields: `["uptime", "wan", "lan", "lan_users", "lan_devices", "wlan", "wlan_users", "wlan_devices"]` (maximum of four). +Allowed fields: `["uptime", "wan", "lan", "lan_users", "lan_devices", "wlan", "wlan_users", "wlan_devices"]` (maximum of four). Fields unsupported by the unifi device will not be shown. -Note that fields unsupported by the unifi device will not be shown. +!!! hint + + If you enter e.g. incorrect credentials and receive an "API Error", you may need to recreate the container to clear the cache. ```yaml widget: diff --git a/mkdocs.yml b/mkdocs.yml index 0f440f8d..4d6524b3 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: homepage +site_name: Homepage # Project information site_url: https://gethomepage.dev/ @@ -55,6 +55,7 @@ nav: - widgets/services/fileflows.md - widgets/services/flood.md - widgets/services/freshrss.md + - widgets/services/frigate.md - widgets/services/fritzbox.md - widgets/services/gamedig.md - widgets/services/gatus.md @@ -88,6 +89,7 @@ nav: - widgets/services/mjpeg.md - widgets/services/moonraker.md - widgets/services/mylar.md + - widgets/services/myspeed.md - widgets/services/navidrome.md - widgets/services/netdata.md - widgets/services/netalertx.md @@ -129,6 +131,7 @@ nav: - widgets/services/sonarr.md - widgets/services/speedtest-tracker.md - widgets/services/stash.md + - widgets/services/stocks.md - widgets/services/swagdashboard.md - widgets/services/syncthing-relay-server.md - widgets/services/tailscale.md @@ -144,6 +147,7 @@ nav: - widgets/services/uptimerobot.md - widgets/services/urbackup.md - widgets/services/watchtower.md + - widgets/services/wgeasy.md - widgets/services/whatsupdocker.md - widgets/services/xteve.md - "Information Widgets": @@ -158,21 +162,27 @@ nav: - widgets/info/openweathermap.md - widgets/info/resources.md - widgets/info/search.md + - widgets/info/stocks.md - widgets/info/unifi_controller.md - widgets/info/weather.md - - "Guides": + - "Learn": - widgets/authoring/index.md - - widgets/authoring/guide.md - - widgets/authoring/component.md - - widgets/authoring/widget.md - - widgets/authoring/proxies.md - - widgets/authoring/api.md - - widgets/authoring/translations.md - - more/troubleshooting.md + - "Getting Started": widgets/authoring/getting-started.md + - "Tutorials": + - widgets/authoring/tutorial.md + - "Guides": + - widgets/authoring/component.md + - widgets/authoring/metadata.md + - widgets/authoring/proxies.md + - widgets/authoring/api.md + - widgets/authoring/translations.md + - "Troubleshooting": + - troubleshooting/index.md - "More": - more/index.md - - more/development.md - more/translations.md + - more/coverage.md + - more/sponsors.md - more/homepage-move.md theme: @@ -198,7 +208,8 @@ theme: toggle: icon: material/brightness-4 name: Switch to system preference - logo: assets/light_squircle@2x.png + logo: assets/banner_light@2x.webp + favicon: assets/favicon.ico features: - navigation.instant @@ -215,8 +226,6 @@ theme: extra_css: - "stylesheets/extra.css" -extra_javascript: - - "scripts/extra.js" extra: version: @@ -224,10 +233,12 @@ extra: social: - icon: fontawesome/brands/discord link: https://discord.gg/k4ruYNrudu - - icon: fontawesome/regular/message - link: https://github.com/gethomepage/homepage/discussions - icon: fontawesome/brands/github link: https://github.com/gethomepage/homepage + - icon: simple/opencollective + link: https://opencollective.com/homepage + - icon: simple/patreon + link: https://www.patreon.com/gethomepage markdown_extensions: - pymdownx.highlight: @@ -256,17 +267,21 @@ plugins: - group: enabled: !ENV MKINSIDERS plugins: - - optimize - typeset - social: - cards_layout: default/variant + cards_layout: default cards_layout_options: - background_image: docs/assets/BlossomValley.jpg + background_image: docs/assets/blossom_valley_blur.jpg background_color: "rgba(13, 29, 41, 128)" color: "#ffffff" + logo: docs/assets/light_squircle@2x.webp - tags - search: pipeline: - stemmer - stopWordFilter - trimmer + - redirects: + redirect_maps: + "more/troubleshooting.md": "troubleshooting/index.md" + "more/development.md": "widgets/authoring/getting-started.md" diff --git a/public/locales/af/common.json b/public/locales/af/common.json index 7884acdd..87ecefc8 100644 --- a/public/locales/af/common.json +++ b/public/locales/af/common.json @@ -884,9 +884,26 @@ "total": "Totaal" }, "swagdashboard": { - "proxied": "Proxied", - "auth": "With Auth", - "outdated": "Outdated", - "banned": "Banned" + "proxied": "Gevolmagtig", + "auth": "Met Aut", + "outdated": "Verouderd", + "banned": "Verban" + }, + "myspeed": { + "ping": "Pieng", + "download": "Aflaai", + "upload": "Laai Op" + }, + "stocks": { + "stocks": "Aandele", + "loading": "Laai", + "open": "Oop - VS Mark", + "closed": "Toe - VS Mark", + "invalidConfiguration": "Ongeldige opstelling" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Optyd", + "version": "Weergawe" } } diff --git a/public/locales/ar/common.json b/public/locales/ar/common.json index 3bb2acfc..0f1eb3bc 100644 --- a/public/locales/ar/common.json +++ b/public/locales/ar/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "بينغ", + "download": "التنزيل", + "upload": "التحميل" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "مدة التشغيل", + "version": "الإصدار" } } diff --git a/public/locales/bg/common.json b/public/locales/bg/common.json index 443c28b8..849bb7f7 100644 --- a/public/locales/bg/common.json +++ b/public/locales/bg/common.json @@ -16,7 +16,7 @@ "uptime": "{{value, uptime}}", "months": "mo", "days": "d", - "hours": "h", + "hours": "ч", "minutes": "m", "seconds": "s" }, @@ -412,7 +412,7 @@ "free": "Свободни", "used": "Заети", "days": "d", - "hours": "h", + "hours": "ч", "crit": "Crit", "read": "Read", "write": "Write", @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Download", + "upload": "Upload" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Uptime", + "version": "Version" } } diff --git a/public/locales/ca/common.json b/public/locales/ca/common.json index 78a32c0d..4fb07bad 100644 --- a/public/locales/ca/common.json +++ b/public/locales/ca/common.json @@ -36,7 +36,7 @@ "wait": "Si us plau, espereu" }, "search": { - "placeholder": "Cercar…" + "placeholder": "Cerca…" }, "resources": { "cpu": "CPU", @@ -125,8 +125,8 @@ "flood": { "download": "Descarregar", "upload": "Pujada", - "leech": "Company", - "seed": "Llavor" + "leech": "Sangonera", + "seed": "Llavors" }, "freshrss": { "subscriptions": "Subcripcions", @@ -203,14 +203,14 @@ "transmission": { "download": "Descarregar", "upload": "Pujada", - "leech": "Company", - "seed": "Llavor" + "leech": "Sangonera", + "seed": "Llavors" }, "qbittorrent": { "download": "Descarregar", "upload": "Pujada", - "leech": "Company", - "seed": "Llavor" + "leech": "Sangonera", + "seed": "Llavors" }, "qnap": { "cpuUsage": "Ús de CPU", @@ -223,14 +223,14 @@ "deluge": { "download": "Descarregar", "upload": "Pujada", - "leech": "Company", - "seed": "Llavor" + "leech": "Sangonera", + "seed": "Llavors" }, "downloadstation": { "download": "Descarregar", "upload": "Pujada", - "leech": "Company", - "seed": "Llavor" + "leech": "Sangonera", + "seed": "Llavors" }, "sonarr": { "wanted": "Volgut", @@ -241,7 +241,7 @@ }, "radarr": { "wanted": "Volgut", - "missing": "Faltant", + "missing": "Falten", "queued": "En cua", "movies": "Pel·lícules", "queue": "Cua", @@ -386,7 +386,7 @@ "down": "Fora de línia" }, "miniflux": { - "read": "Llegir", + "read": "Llegit", "unread": "Sense llegir" }, "authentik": { @@ -414,8 +414,8 @@ "days": "d", "hours": "h", "crit": "Crític", - "read": "Llegir", - "write": "Escriure", + "read": "Llegit", + "write": "Escriptura", "gpu": "GPU", "mem": "Mem", "swap": "Intercanvi" @@ -423,9 +423,9 @@ "quicklaunch": { "bookmark": "Marcador", "service": "Servei", - "search": "Cercar", + "search": "Cerca", "custom": "Personalitzat", - "visit": "Visitar", + "visit": "Visita", "url": "URL", "searchsuggestion": "Suggeriment" }, @@ -581,7 +581,7 @@ "numberOfLeases": "IPs assignades" }, "xteve": { - "streams_all": "Tots els fluxos", + "streams_all": "Tots els streams", "streams_active": "Transmissions actives", "streams_xepg": "Canals XEPG" }, @@ -600,7 +600,7 @@ "moonraker": { "printer_state": "Estat de l'impressora", "print_status": "Estat de l'impressió", - "print_progress": "Progress", + "print_progress": "Progrés", "layers": "Capes" }, "octoprint": { @@ -614,14 +614,14 @@ "status": "Estat" }, "pfsense": { - "load": "Promig Càrrega", + "load": "Càrrega mitjana", "memory": "Ús Memòria", "wanStatus": "Estat WAN", "up": "Actiu", "down": "Inactiu", "temp": "Temp", "disk": "Ús Disc", - "wanIP": "WAN IP" + "wanIP": "IP WAN" }, "proxmoxbackupserver": { "datastore_usage": "Datastore", @@ -677,7 +677,7 @@ }, "grafana": { "dashboards": "Taulells", - "datasources": "Origen de dades", + "datasources": "Orígens de dades", "totalalerts": "Alertes Totals", "alertstriggered": "Alertes disparades" }, @@ -718,10 +718,10 @@ "ghostfolio": { "gross_percent_today": "Avui", "gross_percent_1y": "Un any", - "gross_percent_max": "Tot" + "gross_percent_max": "Sempre" }, "audiobookshelf": { - "podcasts": "Podcasts", + "podcasts": "Pòdcasts", "books": "Llibres", "podcastsDuration": "Durada", "booksDuration": "Durada" @@ -760,8 +760,8 @@ "failed": "Error", "canceled": "Cancel·lat", "inProgress": "En curs", - "totalPrs": "RP Totals", - "myPrs": "Els meus RP", + "totalPrs": "PRs Totals", + "myPrs": "Les meves PRs", "approved": "Aprovat" }, "gamedig": { @@ -798,7 +798,7 @@ }, "openwrt": { "uptime": "Temps actiu", - "cpuLoad": "Càrrega promig de CPU (5m)", + "cpuLoad": "Càrrega mitjana de CPU (5min)", "up": "Actiu", "down": "Inactiu", "bytesTx": "Enviat", @@ -849,10 +849,10 @@ "scenesPlayed": "Escenes reproduïdes", "playCount": "Total reproduccions", "playDuration": "Temps visionat", - "sceneSize": "Tamany Escena", + "sceneSize": "Tamany d'escenes", "sceneDuration": "Duració Escenes", "images": "Imatges", - "imageSize": "Mida Imatges", + "imageSize": "Tamany d'imatges", "galleries": "Biblioteques", "performers": "Intèrprets", "studios": "Estudis", @@ -884,9 +884,26 @@ "total": "Total" }, "swagdashboard": { - "proxied": "Proxied", - "auth": "With Auth", - "outdated": "Outdated", - "banned": "Banned" + "proxied": "Intermediat", + "auth": "Amb autentificació", + "outdated": "Obsolet", + "banned": "Bloquejat" + }, + "myspeed": { + "ping": "Latència", + "download": "Descarregar", + "upload": "Pujada" + }, + "stocks": { + "stocks": "Accions", + "loading": "Carregant", + "open": "Obert - Mercat EEUU", + "closed": "Tancat - Mercat EEUU", + "invalidConfiguration": "Configuració no vàlida" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Temps actiu", + "version": "Versió" } } diff --git a/public/locales/cs/common.json b/public/locales/cs/common.json index 48030d62..4d9e3c98 100644 --- a/public/locales/cs/common.json +++ b/public/locales/cs/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Odezva", + "download": "Stahování", + "upload": "Nahrávání" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Doba spuštění", + "version": "Verze" } } diff --git a/public/locales/da/common.json b/public/locales/da/common.json index e4c2e0a9..839eaed4 100644 --- a/public/locales/da/common.json +++ b/public/locales/da/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Download", + "upload": "Upload" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Oppetid", + "version": "Version" } } diff --git a/public/locales/de/common.json b/public/locales/de/common.json index 4a188956..3383fe6e 100644 --- a/public/locales/de/common.json +++ b/public/locales/de/common.json @@ -888,5 +888,22 @@ "auth": "Mit Auth", "outdated": "Veraltet", "banned": "Gebannt" + }, + "myspeed": { + "ping": "Ping", + "download": "Download", + "upload": "Upload" + }, + "stocks": { + "stocks": "Aktien", + "loading": "Wird geladen", + "open": "Offen - US-Markt", + "closed": "Geschlossen - US-Markt", + "invalidConfiguration": "Ungültige Konfiguration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Betriebszeit", + "version": "Version" } } diff --git a/public/locales/el/common.json b/public/locales/el/common.json index 2ffcd522..d9f24d0d 100644 --- a/public/locales/el/common.json +++ b/public/locales/el/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Λήξη", + "upload": "Μεταφόρτωση" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Χρόνος Λειτουργίας", + "version": "Έκδοση" } } diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 03b4325b..6a5166e2 100755 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -919,5 +919,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Download", + "upload": "Upload" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Uptime", + "version": "Version" } } \ No newline at end of file diff --git a/public/locales/eo/common.json b/public/locales/eo/common.json index de28af1b..21c11c64 100644 --- a/public/locales/eo/common.json +++ b/public/locales/eo/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Sondaĵo", + "download": "Elŝuti", + "upload": "Alŝuti" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Uptime", + "version": "Version" } } diff --git a/public/locales/es/common.json b/public/locales/es/common.json index 075a4c56..4615db74 100644 --- a/public/locales/es/common.json +++ b/public/locales/es/common.json @@ -31,7 +31,7 @@ }, "weather": { "current": "Ubicación actual", - "allow": "Clic para permitir", + "allow": "Pulsa para permitir", "updating": "Actualizando", "wait": "Espera, por favor" }, @@ -77,9 +77,9 @@ "unknown": "Desconocido", "healthy": "Saludable", "starting": "Comenzando", - "unhealthy": "Insalubre", + "unhealthy": "No saludable", "not_found": "No encontrado", - "exited": "Salida", + "exited": "Terminado", "partial": "Parcial" }, "ping": { @@ -884,9 +884,26 @@ "total": "Total" }, "swagdashboard": { - "proxied": "Proxied", - "auth": "With Auth", - "outdated": "Outdated", - "banned": "Banned" + "proxied": "Proxy activado", + "auth": "Con Autenticación", + "outdated": "Desactualizado", + "banned": "Baneado" + }, + "myspeed": { + "ping": "Ping", + "download": "Descarga", + "upload": "Subida" + }, + "stocks": { + "stocks": "Acciones", + "loading": "Cargando", + "open": "Abierto - Mercado EEUU", + "closed": "Cerrado - Mercado EEUU", + "invalidConfiguration": "Configuración no válida" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Tiempo activo", + "version": "Versión" } } diff --git a/public/locales/eu/common.json b/public/locales/eu/common.json index a4aba203..29bd5c6d 100644 --- a/public/locales/eu/common.json +++ b/public/locales/eu/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Download", + "upload": "Upload" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Uptime", + "version": "Version" } } diff --git a/public/locales/fi/common.json b/public/locales/fi/common.json index 09639a20..a3e44039 100644 --- a/public/locales/fi/common.json +++ b/public/locales/fi/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Download", + "upload": "Upload" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Uptime", + "version": "Version" } } diff --git a/public/locales/fr/common.json b/public/locales/fr/common.json index beb8420c..aafbdd6f 100644 --- a/public/locales/fr/common.json +++ b/public/locales/fr/common.json @@ -888,5 +888,22 @@ "auth": "Avec authentification", "outdated": "Obsolète", "banned": "Banni" + }, + "myspeed": { + "ping": "Ping", + "download": "Récep.", + "upload": "Envoi" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Démarré depuis", + "version": "Version" } } diff --git a/public/locales/he/common.json b/public/locales/he/common.json index fa310603..fe621152 100644 --- a/public/locales/he/common.json +++ b/public/locales/he/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Download", + "upload": "Upload" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Uptime", + "version": "Version" } } diff --git a/public/locales/hi/common.json b/public/locales/hi/common.json index 745ed8b4..c78dc146 100644 --- a/public/locales/hi/common.json +++ b/public/locales/hi/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Download", + "upload": "Upload" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Uptime", + "version": "Version" } } diff --git a/public/locales/hr/common.json b/public/locales/hr/common.json index 6ffef12f..2e869778 100644 --- a/public/locales/hr/common.json +++ b/public/locales/hr/common.json @@ -888,5 +888,22 @@ "auth": "S autentifikacijom", "outdated": "Zastarjelo", "banned": "Zabranjen pristup" + }, + "myspeed": { + "ping": "Ping", + "download": "Preuzimanje", + "upload": "Prijenos" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Vrijeme rada", + "version": "Verzija" } } diff --git a/public/locales/hu/common.json b/public/locales/hu/common.json index aed09199..1d8023c3 100644 --- a/public/locales/hu/common.json +++ b/public/locales/hu/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Letöltés", + "upload": "Feltöltés" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Üzemidő", + "version": "Verzió" } } diff --git a/public/locales/id/common.json b/public/locales/id/common.json index 9c7a0ec8..07ccf743 100644 --- a/public/locales/id/common.json +++ b/public/locales/id/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Unduh", + "upload": "Unggah" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Waktu Aktif", + "version": "Versi" } } diff --git a/public/locales/it/common.json b/public/locales/it/common.json index 1c4115f7..4f7a7feb 100644 --- a/public/locales/it/common.json +++ b/public/locales/it/common.json @@ -545,11 +545,11 @@ "channels": "Canali", "hd": "HD", "tunerCount": "Tuners", - "channelNumber": "Channel", + "channelNumber": "Canale", "channelNetwork": "Rete", "signalStrength": "Intensità", - "signalQuality": "Quality", - "symbolQuality": "Quality", + "signalQuality": "Qualità", + "symbolQuality": "Qualità", "networkRate": "Bitrate", "clientIP": "Client" }, @@ -564,11 +564,11 @@ }, "peanut": { "battery_charge": "Battery Charge", - "ups_load": "UPS Load", - "ups_status": "UPS Status", + "ups_load": "Carico UPS", + "ups_status": "Stato UPS", "online": "Online", - "on_battery": "On Battery", - "low_battery": "Low Battery" + "on_battery": "Alimentazione a batteria", + "low_battery": "Batteria Quasi Scarica" }, "nextdns": { "wait": "Attendere prego", @@ -798,10 +798,10 @@ }, "openwrt": { "uptime": "Tempo di attività", - "cpuLoad": "CPU Load Avg (5m)", + "cpuLoad": "Media Carico Cpu (5m)", "up": "Up", "down": "Down", - "bytesTx": "Transmitted", + "bytesTx": "Trasmessi", "bytesRx": "Ricevuti" }, "uptimerobot": { @@ -826,7 +826,7 @@ "noEventsFound": "Nessun evento trovato" }, "romm": { - "platforms": "Platforms", + "platforms": "Piattaforme", "totalRoms": "Total ROMs" }, "netdata": { @@ -834,7 +834,7 @@ "criticals": "Criticals" }, "plantit": { - "events": "Events", + "events": "Eventi", "plants": "Plants", "photos": "Foto", "species": "Specie" @@ -852,7 +852,7 @@ "sceneSize": "Dimensione Delle Scene", "sceneDuration": "Durata Delle Scene", "images": "Immagini", - "imageSize": "Images Size", + "imageSize": "Dimensioni immagine", "galleries": "Galleries", "performers": "Esecutori", "studios": "Studi", @@ -863,19 +863,19 @@ "tandoor": { "users": "Utenti", "recipes": "Ricette", - "keywords": "Keywords" + "keywords": "Parole chiave" }, "homebox": { - "items": "Items", - "totalWithWarranty": "With Warranty", - "locations": "Locations", - "labels": "Labels", + "items": "Elementi", + "totalWithWarranty": "Con Garanzia", + "locations": "Luoghi", + "labels": "Etichette", "users": "Utenti", - "totalValue": "Total Value" + "totalValue": "Valore totale" }, "crowdsec": { "alerts": "Allarmi", - "bans": "Bans" + "bans": "Bannati" }, "wgeasy": { "connected": "Connesso", @@ -886,7 +886,24 @@ "swagdashboard": { "proxied": "Proxied", "auth": "With Auth", - "outdated": "Outdated", - "banned": "Banned" + "outdated": "Obsoleto", + "banned": "Bannato" + }, + "myspeed": { + "ping": "Ping", + "download": "Download", + "upload": "Upload" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Tempo di attività", + "version": "Versione" } } diff --git a/public/locales/ja/common.json b/public/locales/ja/common.json index 80bb4506..c14a78e9 100644 --- a/public/locales/ja/common.json +++ b/public/locales/ja/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "ダウンロード", + "upload": "アップロード" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "稼働時間", + "version": "バージョン" } } diff --git a/public/locales/ko/common.json b/public/locales/ko/common.json index 342d1e37..eb26c0ac 100644 --- a/public/locales/ko/common.json +++ b/public/locales/ko/common.json @@ -21,7 +21,7 @@ "seconds": "s" }, "widget": { - "missing_type": "Missing Widget Type: {{type}}", + "missing_type": "없는 위젯 유형: {{type}}", "api_error": "API 오류", "information": "정보", "status": "상태", @@ -87,15 +87,15 @@ "ping": "Ping", "down": "Down", "up": "Up", - "not_available": "Not Available" + "not_available": "사용할 수 없음" }, "siteMonitor": { - "http_status": "HTTP status", + "http_status": "HTTP 상태", "error": "오류", - "response": "Response", + "response": "응답", "down": "Down", "up": "Up", - "not_available": "Not Available" + "not_available": "사용할 수 없음" }, "emby": { "playing": "재생 중", @@ -116,7 +116,7 @@ }, "evcc": { "pv_power": "Production", - "battery_soc": "Battery", + "battery_soc": "배터리", "grid_power": "Grid", "home_power": "Consumption", "charge_power": "Charger", @@ -130,24 +130,24 @@ }, "freshrss": { "subscriptions": "Subscriptions", - "unread": "Unread" + "unread": "읽지 않음" }, "fritzbox": { "connectionStatus": "상태", - "connectionStatusUnconfigured": "Unconfigured", - "connectionStatusConnecting": "Connecting", - "connectionStatusAuthenticating": "Authenticating", + "connectionStatusUnconfigured": "구성되지 않음", + "connectionStatusConnecting": "연결중", + "connectionStatusAuthenticating": "인증", "connectionStatusPendingDisconnect": "Pending Disconnect", - "connectionStatusDisconnecting": "Disconnecting", - "connectionStatusDisconnected": "Disconnected", + "connectionStatusDisconnecting": "연결을 끊는 중...", + "connectionStatusDisconnected": "연결 끊김", "connectionStatusConnected": "Connected", "uptime": "Uptime", "maxDown": "Max. Down", "maxUp": "Max. Up", "down": "Down", "up": "Up", - "received": "Received", - "sent": "Sent", + "received": "수신됨", + "sent": "전송됨", "externalIPAddress": "Ext. IP" }, "caddy": { @@ -160,9 +160,9 @@ "diffsDetected": "변경 감지됨" }, "channelsdvrserver": { - "shows": "Shows", + "shows": "보기", "recordings": "Recordings", - "scheduled": "Scheduled", + "scheduled": "예정됨", "passes": "Passes" }, "tautulli": { @@ -306,18 +306,18 @@ "total": "총합" }, "tailscale": { - "address": "Address", - "expires": "Expires", + "address": "주소", + "expires": "만료", "never": "Never", "last_seen": "Last Seen", "now": "Now", - "years": "{{number}}y", - "weeks": "{{number}}w", - "days": "{{number}}d", - "hours": "{{number}}h", - "minutes": "{{number}}m", - "seconds": "{{number}}s", - "ago": "{{value}} Ago" + "years": "{{number}}년", + "weeks": "{{number}}월", + "days": "{{number}}일", + "hours": "{{number}}시", + "minutes": "{{number}}분", + "seconds": "{{number}}초", + "ago": "{{value}} 전" }, "tdarr": { "queue": "대기열", @@ -380,14 +380,14 @@ }, "minecraft": { "players": "Players", - "version": "Version", + "version": "버전", "status": "상태", "up": "Online", "down": "중지" }, "miniflux": { "read": "Read", - "unread": "Unread" + "unread": "읽지 않음" }, "authentik": { "users": "사용자", @@ -802,7 +802,7 @@ "up": "Up", "down": "Down", "bytesTx": "Transmitted", - "bytesRx": "Received" + "bytesRx": "수신됨" }, "uptimerobot": { "status": "상태", @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "다운로드", + "upload": "업로드" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Uptime", + "version": "버전" } } diff --git a/public/locales/lv/common.json b/public/locales/lv/common.json index e9b8b20a..f45f17e1 100644 --- a/public/locales/lv/common.json +++ b/public/locales/lv/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Lejupielāde", + "upload": "Augšupielāde" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Uptime", + "version": "Version" } } diff --git a/public/locales/ms/common.json b/public/locales/ms/common.json index c05b7079..4fc9de89 100644 --- a/public/locales/ms/common.json +++ b/public/locales/ms/common.json @@ -174,8 +174,8 @@ }, "omada": { "connectedAp": "Connected APs", - "activeUser": "Active devices", - "alerts": "Alerts", + "activeUser": "Peranti aktif", + "alerts": "Perhatian", "connectedGateway": "Connected gateways", "connectedSwitches": "Connected switches" }, @@ -186,7 +186,7 @@ }, "plex": { "streams": "Strim Aktif", - "albums": "Albums", + "albums": "Album", "movies": "Filem", "tv": "Rancangan TV" }, @@ -250,7 +250,7 @@ "lidarr": { "wanted": "Mahu", "queued": "Dibaris Gilir", - "artists": "Artists" + "artists": "Artis" }, "readarr": { "wanted": "Mahu", @@ -310,7 +310,7 @@ "expires": "Expires", "never": "Never", "last_seen": "Last Seen", - "now": "Now", + "now": "Sekarang", "years": "{{number}}y", "weeks": "{{number}}w", "days": "{{number}}d", @@ -528,7 +528,7 @@ "truenas": { "load": "Beban Sistem", "uptime": "Masa Hidup", - "alerts": "Alerts" + "alerts": "Perhatian" }, "pyload": { "speed": "Kelajuan", @@ -600,7 +600,7 @@ "moonraker": { "printer_state": "Printer State", "print_status": "Print Status", - "print_progress": "Progress", + "print_progress": "Kemajuan", "layers": "Layers" }, "octoprint": { @@ -631,7 +631,7 @@ }, "immich": { "users": "Pengguna", - "photos": "Photos", + "photos": "Gambar", "videos": "Video", "storage": "Storage" }, @@ -646,7 +646,7 @@ "series": "Siri", "archives": "Archives", "chapters": "Chapters", - "categories": "Categories" + "categories": "Memori" }, "komga": { "libraries": "Libraries", @@ -664,8 +664,8 @@ "wanted": "Mahu" }, "photoprism": { - "albums": "Albums", - "photos": "Photos", + "albums": "Album", + "photos": "Gambar", "videos": "Video", "people": "People" }, @@ -738,7 +738,7 @@ "calibreweb": { "books": "Buku", "authors": "Pengarang/Penulis", - "categories": "Categories", + "categories": "Memori", "series": "Siri" }, "jdownloader": { @@ -785,7 +785,7 @@ "mealie": { "recipes": "Resipi", "users": "Pengguna", - "categories": "Categories", + "categories": "Memori", "tags": "Tanda nama" }, "openmediavault": { @@ -836,7 +836,7 @@ "plantit": { "events": "Events", "plants": "Plants", - "photos": "Photos", + "photos": "Gambar", "species": "Species" }, "gitea": { @@ -845,7 +845,7 @@ "pulls": "Pull Requests" }, "stash": { - "scenes": "Scenes", + "scenes": "Adegan", "scenesPlayed": "Scenes Played", "playCount": "Total Plays", "playDuration": "Time Watched", @@ -868,13 +868,13 @@ "homebox": { "items": "Items", "totalWithWarranty": "With Warranty", - "locations": "Locations", + "locations": "Lokasi", "labels": "Labels", "users": "Pengguna", - "totalValue": "Total Value" + "totalValue": "Jumlah nilai" }, "crowdsec": { - "alerts": "Alerts", + "alerts": "Perhatian", "bans": "Bans" }, "wgeasy": { @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Muat turun", + "upload": "Muat naik" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Masa Hidup", + "version": "Versi" } } diff --git a/public/locales/nl/common.json b/public/locales/nl/common.json index 6910c07a..4f0c4f90 100644 --- a/public/locales/nl/common.json +++ b/public/locales/nl/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Download", + "upload": "Upload" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Online", + "version": "Versie" } } diff --git a/public/locales/no/common.json b/public/locales/no/common.json index 74f97249..c25d583e 100644 --- a/public/locales/no/common.json +++ b/public/locales/no/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Responstid", + "download": "Last ned", + "upload": "Opplastning" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Oppetid", + "version": "Versjon" } } diff --git a/public/locales/pl/common.json b/public/locales/pl/common.json index eddd0a5a..14297dd7 100644 --- a/public/locales/pl/common.json +++ b/public/locales/pl/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Pobieranie", + "upload": "Wysyłanie" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Czas działania", + "version": "Wersja" } } diff --git a/public/locales/pt/common.json b/public/locales/pt/common.json index 558e9867..18de2c0b 100644 --- a/public/locales/pt/common.json +++ b/public/locales/pt/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Tempo de resposta", + "download": "Descarregar", + "upload": "Carregar" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Ligado", + "version": "Versão" } } diff --git a/public/locales/pt_BR/common.json b/public/locales/pt_BR/common.json index e622ddeb..3fe50516 100644 --- a/public/locales/pt_BR/common.json +++ b/public/locales/pt_BR/common.json @@ -317,7 +317,7 @@ "hours": "{{number}}h", "minutes": "{{number}}m", "seconds": "{{number}}s", - "ago": "{{value}} Ago" + "ago": "{{value}} Atrás" }, "tdarr": { "queue": "Fila", @@ -328,7 +328,7 @@ "traefik": { "routers": "Roteadores", "services": "Serviços", - "middleware": "Middleware" + "middleware": "" }, "navidrome": { "nothing_streaming": "Sem Streams Ativos", @@ -884,9 +884,26 @@ "total": "Total" }, "swagdashboard": { - "proxied": "Proxied", - "auth": "With Auth", - "outdated": "Outdated", - "banned": "Banned" + "proxied": "Com proxy", + "auth": "Com Autenticação", + "outdated": "Desatualizado", + "banned": "Banido" + }, + "myspeed": { + "ping": "Tempo de resposta", + "download": "Descarregar", + "upload": "Carregar" + }, + "stocks": { + "stocks": "Ações", + "loading": "Carregando", + "open": "Abrir - Mercado Americano", + "closed": "Fechado - Mercado americano", + "invalidConfiguration": "Configuração Inválida" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Ligado", + "version": "Versão" } } diff --git a/public/locales/ro/common.json b/public/locales/ro/common.json index 5b5187d3..41767d02 100644 --- a/public/locales/ro/common.json +++ b/public/locales/ro/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Descarcă", + "upload": "Încarcă" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Uptime", + "version": "Version" } } diff --git a/public/locales/ru/common.json b/public/locales/ru/common.json index 5c7c771a..a723634f 100644 --- a/public/locales/ru/common.json +++ b/public/locales/ru/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Пинг", + "download": "Скачивание", + "upload": "Загрузка" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Время работы", + "version": "Версия" } } diff --git a/public/locales/sk/common.json b/public/locales/sk/common.json index 42afe41a..fa98f6bb 100644 --- a/public/locales/sk/common.json +++ b/public/locales/sk/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Zastarané", "banned": "Zabanovaný" + }, + "myspeed": { + "ping": "Odozva", + "download": "Sťahovanie", + "upload": "Nahrávanie" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Prevádzka", + "version": "Verzia" } } diff --git a/public/locales/sl/common.json b/public/locales/sl/common.json index 6dcd5415..02d15ec6 100644 --- a/public/locales/sl/common.json +++ b/public/locales/sl/common.json @@ -888,5 +888,22 @@ "auth": "Z Auth", "outdated": "Zastarelo", "banned": "Prepovedan" + }, + "myspeed": { + "ping": "Ping", + "download": "Prenos", + "upload": "Nalaganje" + }, + "stocks": { + "stocks": "Delnice", + "loading": "Nalaganje", + "open": "Odprto - US trg", + "closed": "Zaprto - US trg", + "invalidConfiguration": "Neveljavna konfiguracija" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Čas delovanja", + "version": "Verzija" } } diff --git a/public/locales/sr/common.json b/public/locales/sr/common.json index 62714000..b53935ca 100644 --- a/public/locales/sr/common.json +++ b/public/locales/sr/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Download", + "upload": "Upload" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Uptime", + "version": "Version" } } diff --git a/public/locales/sv/common.json b/public/locales/sv/common.json index 53fe576c..fd8c0e6a 100644 --- a/public/locales/sv/common.json +++ b/public/locales/sv/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Download", + "upload": "Upload" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Uptime", + "version": "Version" } } diff --git a/public/locales/te/common.json b/public/locales/te/common.json index 1dd640f2..301090a9 100644 --- a/public/locales/te/common.json +++ b/public/locales/te/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Download", + "upload": "Upload" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Uptime", + "version": "Version" } } diff --git a/public/locales/th/common.json b/public/locales/th/common.json index 682451b4..74f7ab26 100644 --- a/public/locales/th/common.json +++ b/public/locales/th/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "ปิง", + "download": "ดาวน์โหลด", + "upload": "อัพโหลด" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Uptime", + "version": "Version" } } diff --git a/public/locales/tr/common.json b/public/locales/tr/common.json index a44ec8f0..118821bb 100644 --- a/public/locales/tr/common.json +++ b/public/locales/tr/common.json @@ -884,9 +884,26 @@ "total": "Toplam" }, "swagdashboard": { - "proxied": "Proxied", - "auth": "With Auth", - "outdated": "Outdated", - "banned": "Banned" + "proxied": "Proxy Üzerinden", + "auth": "Kimlik Doğrulamalı", + "outdated": "Eskimiş", + "banned": "Yasaklı" + }, + "myspeed": { + "ping": "Gecikme", + "download": "İndirme", + "upload": "Yükleme" + }, + "stocks": { + "stocks": "Hisse Senetleri", + "loading": "Yükleniyor", + "open": "Açık - ABD Pazarı", + "closed": "Kapalı - ABD Pazarı", + "invalidConfiguration": "Geçersiz Yapılandırma" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Çalışma Süresi", + "version": "Versiyon" } } diff --git a/public/locales/uk/common.json b/public/locales/uk/common.json index 239de674..779cd9af 100644 --- a/public/locales/uk/common.json +++ b/public/locales/uk/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Пінг", + "download": "Завантаження", + "upload": "Відправлення" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Час роботи", + "version": "Версія" } } diff --git a/public/locales/vi/common.json b/public/locales/vi/common.json index 7eeab113..e717988b 100644 --- a/public/locales/vi/common.json +++ b/public/locales/vi/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "Ping", + "download": "Download", + "upload": "Upload" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "Uptime", + "version": "Version" } } diff --git a/public/locales/yue/common.json b/public/locales/yue/common.json index 4d425c45..02d95d33 100644 --- a/public/locales/yue/common.json +++ b/public/locales/yue/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "延遲", + "download": "下載速率", + "upload": "上傳速率" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "運行時間", + "version": "版本" } } diff --git a/public/locales/zh-Hans/common.json b/public/locales/zh-Hans/common.json index f82495b9..160a8a1c 100644 --- a/public/locales/zh-Hans/common.json +++ b/public/locales/zh-Hans/common.json @@ -888,5 +888,22 @@ "auth": "使用认证", "outdated": "已过期", "banned": "已禁止" + }, + "myspeed": { + "ping": "Ping", + "download": "下载速率", + "upload": "上传速率" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "运行时间", + "version": "版本" } } diff --git a/public/locales/zh-Hant/common.json b/public/locales/zh-Hant/common.json index e88ac2bb..558ac2aa 100644 --- a/public/locales/zh-Hant/common.json +++ b/public/locales/zh-Hant/common.json @@ -888,5 +888,22 @@ "auth": "With Auth", "outdated": "Outdated", "banned": "Banned" + }, + "myspeed": { + "ping": "延遲", + "download": "下載速率", + "upload": "上傳速率" + }, + "stocks": { + "stocks": "Stocks", + "loading": "Loading", + "open": "Open - US Market", + "closed": "Closed - US Market", + "invalidConfiguration": "Invalid Configuration" + }, + "frigate": { + "cameras": "Cameras", + "uptime": "運行時間", + "version": "版本" } } diff --git a/requirements.txt b/requirements.txt index b4716522..3e2b4c7a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -28,3 +28,4 @@ urllib3==2.0.5 watchdog==3.0.0 pre-commit==3.5.0 mkdocs-material[imaging]==9.5.26 +mkdocs-redirects==1.2.1 diff --git a/src/components/widgets/stocks/stocks.jsx b/src/components/widgets/stocks/stocks.jsx new file mode 100644 index 00000000..8c2c03fd --- /dev/null +++ b/src/components/widgets/stocks/stocks.jsx @@ -0,0 +1,91 @@ +import useSWR from "swr"; +import { useState } from "react"; +import { useTranslation } from "next-i18next"; +import { FaChartLine } from "react-icons/fa6"; + +import Error from "../widget/error"; +import Container from "../widget/container"; +import PrimaryText from "../widget/primary_text"; +import WidgetIcon from "../widget/widget_icon"; +import Raw from "../widget/raw"; + +export default function Widget({ options }) { + const { t, i18n } = useTranslation(); + + const [viewingPercentChange, setViewingPercentChange] = useState(false); + + const { color } = options; + + const { data, error } = useSWR( + `/api/widgets/stocks?${new URLSearchParams({ lang: i18n.language, ...options }).toString()}`, + ); + + if (error || data?.error) { + return ; + } + + if (!data) { + return ( + + + {t("stocks.loading")}... + + ); + } + + if (data) { + return ( + + + + + + ); + } +} diff --git a/src/components/widgets/widget.jsx b/src/components/widgets/widget.jsx index b4fdb143..c7f0bf4d 100644 --- a/src/components/widgets/widget.jsx +++ b/src/components/widgets/widget.jsx @@ -15,6 +15,7 @@ const widgetMappings = { openmeteo: dynamic(() => import("components/widgets/openmeteo/openmeteo")), longhorn: dynamic(() => import("components/widgets/longhorn/longhorn")), kubernetes: dynamic(() => import("components/widgets/kubernetes/kubernetes")), + stocks: dynamic(() => import("components/widgets/stocks/stocks")), }; export default function Widget({ widget, style }) { diff --git a/src/pages/api/kubernetes/status/[...service].js b/src/pages/api/kubernetes/status/[...service].js index 7d950038..e50d726c 100644 --- a/src/pages/api/kubernetes/status/[...service].js +++ b/src/pages/api/kubernetes/status/[...service].js @@ -48,8 +48,8 @@ export default async function handler(req, res) { logger.error(`no pods found with namespace=${namespace} and labelSelector=${labelSelector}`); return; } - const someReady = pods.find((pod) => pod.status.phase === "Running"); - const allReady = pods.every((pod) => pod.status.phase === "Running"); + const someReady = pods.find((pod) => ["Succeeded", "Running"].includes(pod.status.phase)); + const allReady = pods.every((pod) => ["Succeeded", "Running"].includes(pod.status.phase)); let status = "down"; if (allReady) { status = "running"; diff --git a/src/pages/api/widgets/stocks.js b/src/pages/api/widgets/stocks.js new file mode 100644 index 00000000..d80842e1 --- /dev/null +++ b/src/pages/api/widgets/stocks.js @@ -0,0 +1,76 @@ +import cachedFetch from "utils/proxy/cached-fetch"; +import { getSettings } from "utils/config/config"; + +export default async function handler(req, res) { + const { watchlist, provider, cache } = req.query; + + if (!watchlist) { + return res.status(400).json({ error: "Missing watchlist" }); + } + + const watchlistArr = watchlist.split(",") || [watchlist]; + + if (!watchlistArr.length || watchlistArr[0] === "null" || !watchlistArr[0]) { + return res.status(400).json({ error: "Missing watchlist" }); + } + + if (watchlistArr.length > 8) { + return res.status(400).json({ error: "Max items in watchlist is 8" }); + } + + const hasDuplicates = new Set(watchlistArr).size !== watchlistArr.length; + + if (hasDuplicates) { + return res.status(400).json({ error: "Watchlist contains duplicates" }); + } + + if (!provider) { + return res.status(400).json({ error: "Missing provider" }); + } + + if (provider !== "finnhub") { + return res.status(400).json({ error: "Invalid provider" }); + } + + const providersInConfig = getSettings()?.providers; + + let apiKey; + Object.entries(providersInConfig).forEach(([key, val]) => { + if (key === provider) apiKey = val; + }); + + if (typeof apiKey === "undefined") { + return res.status(400).json({ error: "Missing or invalid API Key for provider" }); + } + + if (provider === "finnhub") { + // Finnhub allows up to 30 calls/second + // https://finnhub.io/docs/api/rate-limit + const results = await Promise.all( + watchlistArr.map(async (ticker) => { + if (!ticker) { + return { ticker: null, currentPrice: null, percentChange: null }; + } + // https://finnhub.io/docs/api/quote + const apiUrl = `https://finnhub.io/api/v1/quote?symbol=${ticker}&token=${apiKey}`; + // Finnhub free accounts allow up to 60 calls/minute + // https://finnhub.io/pricing + const { c, dp } = await cachedFetch(apiUrl, cache || 1); + + // API sometimes returns 200, but values returned are `null` + if (c === null || dp === null) { + return { ticker, currentPrice: null, percentChange: null }; + } + + // Rounding percentage, but we want it back to a number for comparison + return { ticker, currentPrice: c.toFixed(2), percentChange: parseFloat(dp.toFixed(2)) }; + }), + ); + + return res.send({ + stocks: results, + }); + } + + return res.status(400).json({ error: "Invalid configuration" }); +} diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 75674c30..dd0df95f 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -393,7 +393,7 @@ function Home({ initialSettings }) {
{showDateColumn && ( - + {(showDate || showTime) && event.date diff --git a/src/widgets/components.js b/src/widgets/components.js index 2a2dca72..9a60cdbe 100644 --- a/src/widgets/components.js +++ b/src/widgets/components.js @@ -30,6 +30,7 @@ const components = { fileflows: dynamic(() => import("./fileflows/component")), flood: dynamic(() => import("./flood/component")), freshrss: dynamic(() => import("./freshrss/component")), + frigate: dynamic(() => import("./frigate/component")), fritzbox: dynamic(() => import("./fritzbox/component")), gamedig: dynamic(() => import("./gamedig/component")), gatus: dynamic(() => import("./gatus/component")), @@ -64,6 +65,7 @@ const components = { mjpeg: dynamic(() => import("./mjpeg/component")), moonraker: dynamic(() => import("./moonraker/component")), mylar: dynamic(() => import("./mylar/component")), + myspeed: dynamic(() => import("./myspeed/component")), navidrome: dynamic(() => import("./navidrome/component")), netalertx: dynamic(() => import("./netalertx/component")), netdata: dynamic(() => import("./netdata/component")), @@ -105,6 +107,7 @@ const components = { sonarr: dynamic(() => import("./sonarr/component")), speedtest: dynamic(() => import("./speedtest/component")), stash: dynamic(() => import("./stash/component")), + stocks: dynamic(() => import("./stocks/component")), strelaysrv: dynamic(() => import("./strelaysrv/component")), swagdashboard: dynamic(() => import("./swagdashboard/component")), tailscale: dynamic(() => import("./tailscale/component")), diff --git a/src/widgets/frigate/component.jsx b/src/widgets/frigate/component.jsx new file mode 100644 index 00000000..43b566e8 --- /dev/null +++ b/src/widgets/frigate/component.jsx @@ -0,0 +1,70 @@ +import { useTranslation } from "next-i18next"; + +import Container from "components/services/widget/container"; +import Block from "components/services/widget/block"; +import useWidgetAPI from "utils/proxy/use-widget-api"; + +export default function Component({ service }) { + const { t } = useTranslation(); + const { widget } = service; + + const { data, error } = useWidgetAPI(widget, "stats"); + const { data: eventsData, error: eventsError } = useWidgetAPI(widget, "events"); + + if (error) { + return ; + } + + if (eventsError) { + return ; + } + + if (!data || !eventsData) { + return ( + + + + + + ); + } + + return ( + <> + + + + + + {widget.enableRecentEvents && + eventsData?.map((event) => ( +
+
+
+ {event.camera} ({event.label} {t("common.percent", { value: event.score * 100 })}) +
+
+
+ {t("common.date", { + value: event.start_time, + formatParams: { value: { timeStyle: "short", dateStyle: "medium" } }, + })} +
+
+ ))} + + ); +} diff --git a/src/widgets/frigate/widget.js b/src/widgets/frigate/widget.js new file mode 100644 index 00000000..62327c4e --- /dev/null +++ b/src/widgets/frigate/widget.js @@ -0,0 +1,38 @@ +import { asJson } from "utils/proxy/api-helpers"; +import genericProxyHandler from "utils/proxy/handlers/generic"; + +const widget = { + api: "{url}/api/{endpoint}", + proxyHandler: genericProxyHandler, + + mappings: { + stats: { + endpoint: "stats", + map: (data) => { + const jsonData = asJson(data); + return { + num_cameras: jsonData?.cameras !== undefined ? Object.keys(jsonData?.cameras).length : 0, + uptime: jsonData?.service?.uptime, + version: jsonData?.service.version, + }; + }, + }, + events: { + endpoint: "events", + map: (data) => + asJson(data) + .slice(0, 5) + .map((event) => ({ + id: event.id, + camera: event.camera, + label: event.label, + start_time: new Date(event.start_time * 1000), + thumbnail: event.thumbnail, + score: event.data.score, + type: event.data.type, + })), + }, + }, +}; + +export default widget; diff --git a/src/widgets/glances/components/container.jsx b/src/widgets/glances/components/container.jsx index 8a72a1b3..ebbe3d98 100644 --- a/src/widgets/glances/components/container.jsx +++ b/src/widgets/glances/components/container.jsx @@ -1,4 +1,21 @@ -export default function Container({ children, chart = true, className = "" }) { +import { useContext } from "react"; + +import Error from "./error"; + +import { SettingsContext } from "utils/contexts/settings"; + +export default function Container({ children, widget, error = null, chart = true, className = "" }) { + const { settings } = useContext(SettingsContext); + const hideErrors = settings.hideErrors || widget?.hideErrors; + + if (error) { + if (hideErrors) { + return null; + } + + return ; + } + return (
{children} diff --git a/src/widgets/glances/metrics/cpu.jsx b/src/widgets/glances/metrics/cpu.jsx index 553517ba..e993fca9 100644 --- a/src/widgets/glances/metrics/cpu.jsx +++ b/src/widgets/glances/metrics/cpu.jsx @@ -2,7 +2,6 @@ import dynamic from "next/dynamic"; import { useState, useEffect } from "react"; import { useTranslation } from "next-i18next"; -import Error from "../components/error"; import Container from "../components/container"; import Block from "../components/block"; @@ -39,11 +38,7 @@ export default function Component({ service }) { }, [data, pointsLimit]); if (error) { - return ( - - - - ); + return ; } if (!data) { diff --git a/src/widgets/glances/metrics/disk.jsx b/src/widgets/glances/metrics/disk.jsx index 04a5071f..0a459e07 100644 --- a/src/widgets/glances/metrics/disk.jsx +++ b/src/widgets/glances/metrics/disk.jsx @@ -2,7 +2,6 @@ import dynamic from "next/dynamic"; import { useState, useEffect } from "react"; import { useTranslation } from "next-i18next"; -import Error from "../components/error"; import Container from "../components/container"; import Block from "../components/block"; @@ -35,7 +34,7 @@ export default function Component({ service }) { })); useEffect(() => { - if (data) { + if (data && !data.error) { const diskData = data.find((item) => item.disk_name === diskName); setDataPoints((prevDataPoints) => { @@ -52,12 +51,9 @@ export default function Component({ service }) { setRatePoints(calculateRates(dataPoints)); }, [dataPoints]); - if (error) { - return ( - - - - ); + if (error || (data && data.error)) { + const finalError = error || data.error; + return ; } if (!data) { diff --git a/src/widgets/glances/metrics/fs.jsx b/src/widgets/glances/metrics/fs.jsx index 3ec7eb6c..1fae5800 100644 --- a/src/widgets/glances/metrics/fs.jsx +++ b/src/widgets/glances/metrics/fs.jsx @@ -1,6 +1,5 @@ import { useTranslation } from "next-i18next"; -import Error from "../components/error"; import Container from "../components/container"; import Block from "../components/block"; @@ -20,11 +19,7 @@ export default function Component({ service }) { }); if (error) { - return ( - - - - ); + return ; } if (!data) { diff --git a/src/widgets/glances/metrics/gpu.jsx b/src/widgets/glances/metrics/gpu.jsx index 174ae2e0..37b06ce3 100644 --- a/src/widgets/glances/metrics/gpu.jsx +++ b/src/widgets/glances/metrics/gpu.jsx @@ -2,7 +2,6 @@ import dynamic from "next/dynamic"; import { useState, useEffect } from "react"; import { useTranslation } from "next-i18next"; -import Error from "../components/error"; import Container from "../components/container"; import Block from "../components/block"; @@ -26,7 +25,7 @@ export default function Component({ service }) { }); useEffect(() => { - if (data) { + if (data && !data.error) { // eslint-disable-next-line eqeqeq const gpuData = data.find((item) => item[item.key] == gpuName); @@ -42,12 +41,9 @@ export default function Component({ service }) { } }, [data, gpuName, pointsLimit]); - if (error) { - return ( - - - - ); + if (error || (data && data.error)) { + const finalError = error || data.error; + return ; } if (!data) { diff --git a/src/widgets/glances/metrics/info.jsx b/src/widgets/glances/metrics/info.jsx index 1ee47b98..3a4b565f 100644 --- a/src/widgets/glances/metrics/info.jsx +++ b/src/widgets/glances/metrics/info.jsx @@ -1,6 +1,5 @@ import { useTranslation } from "next-i18next"; -import Error from "../components/error"; import Container from "../components/container"; import Block from "../components/block"; @@ -84,20 +83,13 @@ export default function Component({ service }) { refreshInterval: defaultSystemInterval, }); - if (quicklookError) { - return ( - - - - ); + if (quicklookError || (quicklookData && quicklookData.error)) { + const qlError = quicklookError || quicklookData.error; + return ; } if (systemError) { - return ( - - - - ); + return ; } const dataCharts = []; diff --git a/src/widgets/glances/metrics/memory.jsx b/src/widgets/glances/metrics/memory.jsx index 49046a5f..8cfddb66 100644 --- a/src/widgets/glances/metrics/memory.jsx +++ b/src/widgets/glances/metrics/memory.jsx @@ -2,7 +2,6 @@ import dynamic from "next/dynamic"; import { useState, useEffect } from "react"; import { useTranslation } from "next-i18next"; -import Error from "../components/error"; import Container from "../components/container"; import Block from "../components/block"; @@ -38,11 +37,7 @@ export default function Component({ service }) { }, [data, pointsLimit]); if (error) { - return ( - - - - ); + return ; } if (!data) { diff --git a/src/widgets/glances/metrics/net.jsx b/src/widgets/glances/metrics/net.jsx index c1ec937e..372c4ec6 100644 --- a/src/widgets/glances/metrics/net.jsx +++ b/src/widgets/glances/metrics/net.jsx @@ -2,7 +2,6 @@ import dynamic from "next/dynamic"; import { useState, useEffect } from "react"; import { useTranslation } from "next-i18next"; -import Error from "../components/error"; import Container from "../components/container"; import Block from "../components/block"; @@ -31,7 +30,7 @@ export default function Component({ service }) { }); useEffect(() => { - if (data) { + if (data && !data.error) { const interfaceData = data.find((item) => item[item.key] === interfaceName); if (interfaceData) { @@ -52,12 +51,9 @@ export default function Component({ service }) { } }, [data, interfaceName, pointsLimit, rxKey, txKey]); - if (error) { - return ( - - - - ); + if (error || (data && data.error)) { + const finalError = error || data.error; + return ; } if (!data) { diff --git a/src/widgets/glances/metrics/process.jsx b/src/widgets/glances/metrics/process.jsx index b242535e..b997a568 100644 --- a/src/widgets/glances/metrics/process.jsx +++ b/src/widgets/glances/metrics/process.jsx @@ -1,6 +1,5 @@ import { useTranslation } from "next-i18next"; -import Error from "../components/error"; import Container from "../components/container"; import Block from "../components/block"; @@ -31,11 +30,7 @@ export default function Component({ service }) { }); if (error) { - return ( - - - - ); + return ; } if (!data) { diff --git a/src/widgets/glances/metrics/sensor.jsx b/src/widgets/glances/metrics/sensor.jsx index e0f679c1..3cb38c1c 100644 --- a/src/widgets/glances/metrics/sensor.jsx +++ b/src/widgets/glances/metrics/sensor.jsx @@ -2,7 +2,6 @@ import dynamic from "next/dynamic"; import { useState, useEffect } from "react"; import { useTranslation } from "next-i18next"; -import Error from "../components/error"; import Container from "../components/container"; import Block from "../components/block"; @@ -26,24 +25,25 @@ export default function Component({ service }) { }); useEffect(() => { - if (data) { + if (data && !data.error) { const sensorData = data.find((item) => item.label === sensorName); - setDataPoints((prevDataPoints) => { - const newDataPoints = [...prevDataPoints, { value: sensorData.value }]; - if (newDataPoints.length > pointsLimit) { - newDataPoints.shift(); - } - return newDataPoints; - }); + if (sensorData) { + setDataPoints((prevDataPoints) => { + const newDataPoints = [...prevDataPoints, { value: sensorData.value }]; + if (newDataPoints.length > pointsLimit) { + newDataPoints.shift(); + } + return newDataPoints; + }); + } else { + data.error = true; + } } }, [data, sensorName, pointsLimit]); - if (error) { - return ( - - - - ); + if (error || (data && data.error)) { + const finalError = error || data.error; + return ; } if (!data) { diff --git a/src/widgets/myspeed/component.jsx b/src/widgets/myspeed/component.jsx new file mode 100644 index 00000000..e4c481c7 --- /dev/null +++ b/src/widgets/myspeed/component.jsx @@ -0,0 +1,60 @@ +import { useTranslation } from "next-i18next"; + +import Container from "components/services/widget/container"; +import Block from "components/services/widget/block"; +import useWidgetAPI from "utils/proxy/use-widget-api"; + +export default function Component({ service }) { + const { t } = useTranslation(); + const { widget } = service; + const { data, error } = useWidgetAPI(widget, "info"); + + if (error || (data && data.message) || (data && data[0] && data[0].error)) { + let finalError = error ?? data; + if (data && data[0] && data[0].error) { + try { + finalError = JSON.parse(data[0].error); + } catch (e) { + finalError = data[0].error; + } + } + return ; + } + + if (!data || (data && data.length === 0)) { + return ( + + + + + + ); + } + + return ( + + + + + + ); +} diff --git a/src/widgets/myspeed/widget.js b/src/widgets/myspeed/widget.js new file mode 100644 index 00000000..c9cf3856 --- /dev/null +++ b/src/widgets/myspeed/widget.js @@ -0,0 +1,14 @@ +import credentialedProxyHandler from "utils/proxy/handlers/credentialed"; + +const widget = { + api: "{url}/api/{endpoint}", + proxyHandler: credentialedProxyHandler, + + mappings: { + info: { + endpoint: "speedtests?limit=1", + }, + }, +}; + +export default widget; diff --git a/src/widgets/pfsense/component.jsx b/src/widgets/pfsense/component.jsx index 0e961dbc..8e02c590 100644 --- a/src/widgets/pfsense/component.jsx +++ b/src/widgets/pfsense/component.jsx @@ -9,8 +9,12 @@ export default function Component({ service }) { const { widget } = service; - const { data: systemData, error: systemError } = useWidgetAPI(widget, "system"); - const { data: interfaceData, error: interfaceError } = useWidgetAPI(widget, "interface"); + const version = widget.version ?? 1; + const { data: systemData, error: systemError } = useWidgetAPI(widget, version === 1 ? "system" : "systemv2"); + const { data: interfaceData, error: interfaceError } = useWidgetAPI( + widget, + version === 1 ? "interface" : "interfacev2", + ); const showWanIP = widget.fields?.filter((f) => f !== "wanIP").length <= 4 && widget.fields?.includes("wanIP"); const showDiskUsage = widget.fields?.filter((f) => f !== "disk").length <= 4 && widget.fields?.includes("disk"); @@ -34,14 +38,20 @@ export default function Component({ service }) { } const wan = interfaceData.data.filter((l) => l.hwif === widget.wan)[0]; + let memUsage = systemData?.data.mem_usage; + let diskUsage = systemData.data.disk_usage; + if (version === 1) { + memUsage *= 100; + diskUsage *= 100; + } return ( - + {showWanIP && } - {showDiskUsage && ( - - )} + {showDiskUsage && } ); } diff --git a/src/widgets/pfsense/widget.js b/src/widgets/pfsense/widget.js index a8e38950..feaafeb8 100644 --- a/src/widgets/pfsense/widget.js +++ b/src/widgets/pfsense/widget.js @@ -1,16 +1,24 @@ import genericProxyHandler from "utils/proxy/handlers/generic"; const widget = { - api: "{url}/api/v1/{endpoint}", + api: "{url}/api/{endpoint}", proxyHandler: genericProxyHandler, mappings: { system: { - endpoint: "status/system", + endpoint: "v1/status/system", validate: ["data"], }, interface: { - endpoint: "status/interface", + endpoint: "v1/status/interface", + validate: ["data"], + }, + systemv2: { + endpoint: "v2/status/system", + validate: ["data"], + }, + interfacev2: { + endpoint: "v2/status/interfaces?limit=0&offset=0", validate: ["data"], }, }, diff --git a/src/widgets/pyload/proxy.js b/src/widgets/pyload/proxy.js index 4d7cd116..9cdd5231 100644 --- a/src/widgets/pyload/proxy.js +++ b/src/widgets/pyload/proxy.js @@ -37,7 +37,7 @@ async function fetchFromPyloadAPI(url, sessionId, params, service) { try { returnData = JSON.parse(Buffer.from(data).toString()); } catch (e) { - logger.error(`Error logging into pyload API: ${JSON.stringify(data)}`); + logger.error(`Error communicating with pyload API at ${url}, returned: ${JSON.stringify(data)}`); returnData = data; } return [status, returnData, responseHeaders]; diff --git a/src/widgets/stocks/component.jsx b/src/widgets/stocks/component.jsx new file mode 100644 index 00000000..844365cb --- /dev/null +++ b/src/widgets/stocks/component.jsx @@ -0,0 +1,110 @@ +import { useTranslation } from "next-i18next"; +import classNames from "classnames"; + +import Container from "components/services/widget/container"; +import Block from "components/services/widget/block"; +import useWidgetAPI from "utils/proxy/use-widget-api"; + +function MarketStatus({ service }) { + const { t } = useTranslation(); + const { widget } = service; + + const { data, error } = useWidgetAPI(widget, "status", { + exchange: "US", + }); + + if (error || data?.error) { + return ; + } + + if (!data) { + return ( + + + + ); + } + + const { isOpen } = data; + + if (isOpen) { + return ( + + {t("stocks.open")} + + ); + } + + return ( + + {t("stocks.closed")} + + ); +} + +function StockItem({ service, ticker }) { + const { t } = useTranslation(); + const { widget } = service; + + const { data, error } = useWidgetAPI(widget, "quote", { symbol: ticker }); + + if (error || data?.error) { + return ; + } + + if (!data) { + return ( + + + + ); + } + + return ( +
+ {ticker} +
+ 0 ? "text-emerald-300" : "text-rose-300"}`}> + {data.dp?.toFixed(2) ? `${data.dp?.toFixed(2)}%` : t("widget.api_error")} + + + {data.c + ? t("common.number", { + value: data?.c, + style: "currency", + currency: "USD", + }) + : t("widget.api_error")} + +
+
+ ); +} + +export default function Component({ service }) { + const { t } = useTranslation(); + const { widget } = service; + const { watchlist, showUSMarketStatus } = widget; + + if (!watchlist || !watchlist.length || watchlist.length > 28 || new Set(watchlist).size !== watchlist.length) { + return ( + + + + ); + } + + return ( + +
+ {showUSMarketStatus === true && } +
+ +
+ {watchlist.map((ticker) => ( + + ))} +
+
+ ); +} diff --git a/src/widgets/stocks/widget.js b/src/widgets/stocks/widget.js new file mode 100644 index 00000000..c26274ed --- /dev/null +++ b/src/widgets/stocks/widget.js @@ -0,0 +1,21 @@ +import credentialedProxyHandler from "utils/proxy/handlers/credentialed"; + +const widget = { + api: `https://finnhub.io/api/{endpoint}`, + proxyHandler: credentialedProxyHandler, + + mappings: { + quote: { + // https://finnhub.io/docs/api/quote + endpoint: "v1/quote", + params: ["symbol"], + }, + status: { + // https://finnhub.io/docs/api/market-status + endpoint: "v1/stock/market-status", + params: ["exchange"], + }, + }, +}; + +export default widget; diff --git a/src/widgets/truenas/component.jsx b/src/widgets/truenas/component.jsx index 10d45bf6..4c8e77f4 100644 --- a/src/widgets/truenas/component.jsx +++ b/src/widgets/truenas/component.jsx @@ -39,17 +39,19 @@ export default function Component({ service }) {
{enablePools && - poolsData.map((pool) => ( - - ))} + poolsData + .sort((a, b) => a.name.localeCompare(b.name)) + .map((pool) => ( + + ))} ); } diff --git a/src/widgets/widgets.js b/src/widgets/widgets.js index a412cc67..f4d4b28a 100644 --- a/src/widgets/widgets.js +++ b/src/widgets/widgets.js @@ -23,6 +23,7 @@ import evcc from "./evcc/widget"; import fileflows from "./fileflows/widget"; import flood from "./flood/widget"; import freshrss from "./freshrss/widget"; +import frigate from "./frigate/widget"; import fritzbox from "./fritzbox/widget"; import gamedig from "./gamedig/widget"; import gatus from "./gatus/widget"; @@ -54,6 +55,7 @@ import mikrotik from "./mikrotik/widget"; import mjpeg from "./mjpeg/widget"; import moonraker from "./moonraker/widget"; import mylar from "./mylar/widget"; +import myspeed from "./myspeed/widget"; import navidrome from "./navidrome/widget"; import netalertx from "./netalertx/widget"; import netdata from "./netdata/widget"; @@ -95,6 +97,7 @@ import scrutiny from "./scrutiny/widget"; import sonarr from "./sonarr/widget"; import speedtest from "./speedtest/widget"; import stash from "./stash/widget"; +import stocks from "./stocks/widget"; import strelaysrv from "./strelaysrv/widget"; import swagdashboard from "./swagdashboard/widget"; import tailscale from "./tailscale/widget"; @@ -145,6 +148,7 @@ const widgets = { fileflows, flood, freshrss, + frigate, fritzbox, gamedig, gatus, @@ -179,6 +183,7 @@ const widgets = { mjpeg, moonraker, mylar, + myspeed, navidrome, netalertx, netdata, @@ -221,6 +226,7 @@ const widgets = { sonarr, speedtest, stash, + stocks, strelaysrv, swagdashboard, tailscale,