mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 01:26:01 -08:00
Compare commits
34 Commits
v1.0.4
...
feature/te
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1c1c3343f | ||
|
|
1c6820428d | ||
|
|
fa8ebc56ef | ||
|
|
b04ed9d628 | ||
|
|
954ab54493 | ||
|
|
30cb893354 | ||
|
|
4567427b9c | ||
|
|
ee7e8fab61 | ||
|
|
313835c0e6 | ||
|
|
999dade861 | ||
|
|
2cabe77b55 | ||
|
|
0a50d5a6aa | ||
|
|
e19dcc2729 | ||
|
|
cadf1433af | ||
|
|
6bae078a8d | ||
|
|
77bbdc6a04 | ||
|
|
1f8fd1c69d | ||
|
|
5d557844cc | ||
|
|
a4b07b91fe | ||
|
|
d853bbfe44 | ||
|
|
7fd5e6ccb1 | ||
|
|
aed602ad70 | ||
|
|
fa28a11658 | ||
|
|
a3b693e2b6 | ||
|
|
708c4e64d1 | ||
|
|
11a6b5d0b8 | ||
|
|
ce0102eb6f | ||
|
|
42f1ed3c47 | ||
|
|
dca23e8547 | ||
|
|
8d20f22932 | ||
|
|
071b5275bc | ||
|
|
de9c015f7f | ||
|
|
b4dc53c7c0 | ||
|
|
934ad3a6f1 |
@@ -16,11 +16,11 @@
|
||||
**/compose*
|
||||
**/Dockerfile*
|
||||
**/node_modules
|
||||
!.next/standalone/node_modules
|
||||
**/npm-debug.log
|
||||
**/obj
|
||||
**/secrets.dev.yaml
|
||||
**/values.dev.yaml
|
||||
**/.next
|
||||
README.md
|
||||
config/
|
||||
k3d/
|
||||
|
||||
131
.github/workflows/docker-publish.yml
vendored
131
.github/workflows/docker-publish.yml
vendored
@@ -1,9 +1,4 @@
|
||||
name: Docker
|
||||
|
||||
# This workflow uses actions that are not certified by GitHub.
|
||||
# They are provided by a third-party and are governed by
|
||||
# separate terms of service, privacy policy, and support
|
||||
# documentation.
|
||||
name: Docker CI
|
||||
|
||||
on:
|
||||
schedule:
|
||||
@@ -13,7 +8,6 @@ on:
|
||||
- main
|
||||
- feature/**
|
||||
- dev
|
||||
# Publish semver tags as releases.
|
||||
tags: [ 'v*.*.*' ]
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
@@ -26,89 +20,56 @@ on:
|
||||
merge_group:
|
||||
|
||||
env:
|
||||
# github.repository as <account>/<repo>
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
|
||||
jobs:
|
||||
pre-commit:
|
||||
name: Linting Checks
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
-
|
||||
name: Checkout repository
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
-
|
||||
name: Install python
|
||||
|
||||
- name: Install python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.x
|
||||
-
|
||||
name: Check files
|
||||
|
||||
- name: Check files
|
||||
uses: pre-commit/action@v3.0.1
|
||||
-
|
||||
name: Install pnpm
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10
|
||||
run_install: false
|
||||
-
|
||||
name: Install Node.js
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
-
|
||||
name: Install dependencies
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
-
|
||||
name: Lint frontend
|
||||
|
||||
- name: Lint frontend
|
||||
run: pnpm run lint
|
||||
|
||||
build:
|
||||
name: Docker Build & Push
|
||||
if: github.repository == 'gethomepage/homepage'
|
||||
if: github.repository == 'gethomepage/homepage'
|
||||
runs-on: self-hosted
|
||||
needs:
|
||||
- pre-commit
|
||||
needs: [ pre-commit ]
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
# This is used to complete the identity challenge
|
||||
# with sigstore/fulcio when running outside of PRs.
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# Login to Docker Registry
|
||||
# https://github.com/docker/login-action
|
||||
- name: Log into registry ${{ env.REGISTRY }}
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Login to Docker Hub
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
# Setup QEMU
|
||||
# https://github.com/marketplace/actions/docker-setup-buildx#with-qemu
|
||||
- name: Setup QEMU
|
||||
uses: docker/setup-qemu-action@v3.6.0
|
||||
|
||||
# Workaround: https://github.com/docker/build-push-action/issues/461
|
||||
- name: Setup Docker buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
# Extract metadata (tags, labels) for Docker
|
||||
# https://github.com/docker/metadata-action
|
||||
- name: Extract Docker metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
@@ -119,8 +80,57 @@ jobs:
|
||||
flavor: |
|
||||
latest=auto
|
||||
|
||||
# Build and push Docker image with Buildx (don't push on PR)
|
||||
# https://github.com/docker/build-push-action
|
||||
- name: Next.js build cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: .next/cache
|
||||
key: nextjs-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx') }}
|
||||
restore-keys: |
|
||||
nextjs-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10
|
||||
run_install: false
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Build app
|
||||
run: |
|
||||
NEXT_PUBLIC_BUILDTIME="${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}" \
|
||||
NEXT_PUBLIC_VERSION="${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}" \
|
||||
NEXT_PUBLIC_REVISION="${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}" \
|
||||
pnpm run build
|
||||
|
||||
- name: Log into registry ${{ env.REGISTRY }}
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Login to Docker Hub
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Setup QEMU
|
||||
uses: docker/setup-qemu-action@v3.6.0
|
||||
|
||||
- name: Setup Docker buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build and push Docker image
|
||||
id: build-and-push
|
||||
uses: docker/build-push-action@v6
|
||||
@@ -130,18 +140,15 @@ jobs:
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
build-args: |
|
||||
CI=true
|
||||
BUILDTIME=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
|
||||
VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
|
||||
REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
|
||||
# https://github.com/docker/setup-qemu-action#about
|
||||
# platforms: linux/amd64,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/mips64,linux/arm/v7,linux/arm/v6
|
||||
platforms: linux/amd64,linux/arm64
|
||||
cache-from: type=local,src=/tmp/.buildx-cache
|
||||
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
|
||||
|
||||
# Temp fix
|
||||
# https://github.com/docker/build-push-action/issues/252
|
||||
# https://github.com/moby/buildkit/issues/1896
|
||||
# https://github.com/docker/build-push-action/issues/252 / https://github.com/moby/buildkit/issues/1896
|
||||
- name: Move cache
|
||||
run: |
|
||||
rm -rf /tmp/.buildx-cache
|
||||
|
||||
2
.github/workflows/docs-publish.yml
vendored
2
.github/workflows/docs-publish.yml
vendored
@@ -55,7 +55,7 @@ jobs:
|
||||
run: MKINSIDERS=false mkdocs build
|
||||
deploy:
|
||||
name: Build & Deploy
|
||||
if: github.repository == 'gethomepage/homepage' && github.event_name != 'pull_request'
|
||||
if: github.repository == 'gethomepage/homepage' && github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- pre-commit
|
||||
|
||||
72
Dockerfile
72
Dockerfile
@@ -1,67 +1,63 @@
|
||||
# Install dependencies only when needed
|
||||
FROM docker.io/node:22-alpine AS deps
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --link package.json pnpm-lock.yaml* ./
|
||||
|
||||
SHELL ["/bin/ash", "-xeo", "pipefail", "-c"]
|
||||
RUN apk add --no-cache libc6-compat \
|
||||
&& apk add --no-cache --virtual .gyp python3 make g++ \
|
||||
&& npm install -g pnpm
|
||||
|
||||
RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store pnpm fetch | grep -v "cross-device link not permitted\|Falling back to copying packages from store"
|
||||
|
||||
RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store pnpm install -r --offline
|
||||
|
||||
# Rebuild the source code only when needed
|
||||
FROM docker.io/node:22-alpine AS builder
|
||||
# =========================
|
||||
# Builder Stage
|
||||
# =========================
|
||||
FROM node:22-slim AS builder
|
||||
WORKDIR /app
|
||||
|
||||
# Setup
|
||||
RUN mkdir config
|
||||
COPY . .
|
||||
|
||||
ARG CI
|
||||
ARG BUILDTIME
|
||||
ARG VERSION
|
||||
ARG REVISION
|
||||
ENV CI=$CI
|
||||
|
||||
COPY --link --from=deps /app/node_modules ./node_modules/
|
||||
COPY . .
|
||||
# Install and build only outside CI
|
||||
RUN if [ "$CI" != "true" ]; then \
|
||||
corepack enable && corepack prepare pnpm@latest --activate && \
|
||||
pnpm install --frozen-lockfile --prefer-offline && \
|
||||
NEXT_TELEMETRY_DISABLED=1 \
|
||||
NEXT_PUBLIC_BUILDTIME=$BUILDTIME \
|
||||
NEXT_PUBLIC_VERSION=$VERSION \
|
||||
NEXT_PUBLIC_REVISION=$REVISION \
|
||||
pnpm run build; \
|
||||
else \
|
||||
echo "✅ Using prebuilt app from CI context"; \
|
||||
fi
|
||||
|
||||
SHELL ["/bin/ash", "-xeo", "pipefail", "-c"]
|
||||
RUN npm install -g pnpm \
|
||||
&& pnpm run telemetry \
|
||||
&& NEXT_PUBLIC_BUILDTIME=$BUILDTIME NEXT_PUBLIC_VERSION=$VERSION NEXT_PUBLIC_REVISION=$REVISION pnpm run build
|
||||
|
||||
# Production image, copy all the files and run next
|
||||
FROM docker.io/node:22-alpine AS runner
|
||||
LABEL org.opencontainers.image.title "Homepage"
|
||||
LABEL org.opencontainers.image.description "A self-hosted services landing page, with docker and service integrations."
|
||||
# =========================
|
||||
# Runtime Stage
|
||||
# =========================
|
||||
FROM node:22-alpine AS runner
|
||||
LABEL org.opencontainers.image.title="Homepage"
|
||||
LABEL org.opencontainers.image.description="A self-hosted services landing page, with docker and service integrations."
|
||||
LABEL org.opencontainers.image.url="https://github.com/gethomepage/homepage"
|
||||
LABEL org.opencontainers.image.documentation='https://github.com/gethomepage/homepage/wiki'
|
||||
LABEL org.opencontainers.image.source='https://github.com/gethomepage/homepage'
|
||||
LABEL org.opencontainers.image.licenses='Apache-2.0'
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
# Setup
|
||||
WORKDIR /app
|
||||
|
||||
# Copy files from context (this allows the files to copy before the builder stage is done).
|
||||
COPY --link --chown=1000:1000 package.json next.config.js ./
|
||||
# Copy some files from context
|
||||
COPY --link --chown=1000:1000 /public ./public/
|
||||
|
||||
# Copy files from builder
|
||||
COPY --link --from=builder --chown=1000:1000 /app/.next/standalone ./
|
||||
COPY --link --from=builder --chown=1000:1000 /app/.next/static/ ./.next/static/
|
||||
COPY --link --chmod=755 docker-entrypoint.sh /usr/local/bin/
|
||||
|
||||
# Copy only necessary files from the build stage
|
||||
COPY --link --from=builder --chown=1000:1000 /app/.next/standalone/ ./
|
||||
COPY --link --from=builder --chown=1000:1000 /app/.next/static/ ./.next/static
|
||||
|
||||
RUN apk add --no-cache su-exec
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV HOSTNAME=0.0.0.0
|
||||
ENV PORT=3000
|
||||
EXPOSE $PORT
|
||||
|
||||
HEALTHCHECK --interval=10s --timeout=3s --start-period=20s \
|
||||
CMD wget --no-verbose --tries=1 --spider --no-check-certificate http://127.0.0.1:$PORT/api/healthcheck || exit 1
|
||||
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:$PORT/api/healthcheck || exit 1
|
||||
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
CMD ["node", "server.js"]
|
||||
|
||||
@@ -15,7 +15,7 @@ export HOMEPAGE_BUILDTIME=$(date +%s)
|
||||
# Set privileges for /app but only if pid 1 user is root and we are dropping privileges.
|
||||
# If container is run as an unprivileged user, it means owner already handled ownership setup on their own.
|
||||
# Running chown in that case (as non-root) will cause error
|
||||
[ "$(id -u)" == "0" ] && [ "${PUID}" != "0" ] && chown -R ${PUID}:${PGID} /app
|
||||
[ "$(id -u)" == "0" ] && [ "${PUID}" != "0" ] && chown -R ${PUID}:${PGID} /app/config /app/public
|
||||
|
||||
# Drop privileges (when asked to) if root, otherwise run as current user
|
||||
if [ "$(id -u)" == "0" ] && [ "${PUID}" != "0" ]; then
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
.md-typeset[data-page-id="landing"] .md-header-anchor {
|
||||
display: none;
|
||||
}
|
||||
@@ -78,7 +78,7 @@ background:
|
||||
You can apply a blur filter to the service & bookmark cards. Note this option is incompatible with the background blur, saturate and brightness filters.
|
||||
|
||||
```yaml
|
||||
cardBlur: sm # sm, "", md, etc... see https://tailwindcss.com/docs/backdrop-blur
|
||||
cardBlur: xs # xs, md, etc... see https://tailwindcss.com/docs/backdrop-blur
|
||||
```
|
||||
|
||||
## Favicon
|
||||
@@ -254,15 +254,29 @@ layout:
|
||||
columns: 4
|
||||
```
|
||||
|
||||
### Five Columns
|
||||
### Full Width
|
||||
|
||||
You can add a fifth column to services (when `style: columns` which is default) by adding:
|
||||
You can make homepage take up the entire window width by adding:
|
||||
|
||||
```yaml
|
||||
fiveColumns: true
|
||||
fullWidth: true
|
||||
```
|
||||
|
||||
By default homepage will max out at 4 columns for services with `columns` style
|
||||
### Maximum Group Columns
|
||||
|
||||
You can set the maximum number of columns of groups on larger screen sizes (note this is only for groups with the default `style: columns`, not groups with `stle: row`) by adding:
|
||||
|
||||
```yaml
|
||||
maxGroupColumns: 8 # default is 4 for services, 6 for bookmarks, max 8
|
||||
```
|
||||
|
||||
By default homepage will max out at 4 columns for services and 6 for bookmarks, thus the minimum for this setting is _5_. Of course, if you're setting this to higher numbers, you may want to consider enabling the [fullWidth](#full-width) option as well.
|
||||
|
||||
If you want to set the maximum columns for bookmark groups separately, you can do so by adding:
|
||||
|
||||
```yaml
|
||||
maxBookmarkGroupColumns: 6 # default is 6, max 8
|
||||
```
|
||||
|
||||
### Collapsible sections
|
||||
|
||||
|
||||
@@ -13,16 +13,16 @@ You have a few options for deploying homepage, depending on your needs. We offer
|
||||
<br>
|
||||
|
||||
<div class="grid cards" style="margin: 0 auto;" markdown>
|
||||
:simple-docker: [ Install on Docker :octicons-arrow-right-24:](docker.md)
|
||||
[:simple-docker: Install on Docker :octicons-arrow-right-24:](docker.md)
|
||||
{ .card }
|
||||
|
||||
:simple-kubernetes: [ Install on Kubernetes :octicons-arrow-right-24:](k8s.md)
|
||||
[:simple-kubernetes: Install on Kubernetes :octicons-arrow-right-24:](k8s.md)
|
||||
{ .card }
|
||||
|
||||
:simple-unraid: [ Install on UNRAID :octicons-arrow-right-24:](unraid.md)
|
||||
[:simple-unraid: Install on UNRAID :octicons-arrow-right-24:](unraid.md)
|
||||
{ .card }
|
||||
|
||||
:simple-nextdotjs: [ Building from source :octicons-arrow-right-24:](source.md)
|
||||
[:simple-nextdotjs: Building from source :octicons-arrow-right-24:](source.md)
|
||||
{ .card }
|
||||
|
||||
</div>
|
||||
|
||||
@@ -9,7 +9,13 @@ First, clone the repository:
|
||||
git clone https://github.com/gethomepage/homepage.git
|
||||
```
|
||||
|
||||
Then install dependencies and build the production bundle (I'm using pnpm here, you can use npm or yarn if you like):
|
||||
If `pnpm` is not installed, install it:
|
||||
|
||||
```bash
|
||||
npm install -g pnpm
|
||||
```
|
||||
|
||||
Then install dependencies and build the production bundle:
|
||||
|
||||
```bash
|
||||
pnpm install
|
||||
|
||||
@@ -286,3 +286,13 @@ body[data-md-color-scheme="default"] {
|
||||
.md-tabs__link {
|
||||
transform: translateZ(0);
|
||||
}
|
||||
|
||||
.grid.cards .card {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.grid.cards .card a {
|
||||
display: block;
|
||||
padding: 0.8rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -70,7 +70,9 @@ If, after correctly adding and mapping your custom icons via the [Icons](../conf
|
||||
|
||||
## Disabling IPv6
|
||||
|
||||
If you are having issues with certain widgets that are unable to reach public APIs (e.g. weather), you may need to disable IPv6 on your host machine. This can be done by adding the following to your `docker-compose.yml` file (or for docker run, the equivalent flag):
|
||||
If you are having issues with certain widgets that are unable to reach public APIs (e.g. weather), in certain setups you may need to disable IPv6. You can set the environment variable `HOMEPAGE_PROXY_DISABLE_IPV6` to `true` to disable IPv6 for the homepage proxy.
|
||||
|
||||
Alternatively, you can use the `sysctls` option in your docker-compose file to disable IPv6 for the homepage container completely:
|
||||
|
||||
```yaml
|
||||
services:
|
||||
@@ -79,12 +81,3 @@ services:
|
||||
sysctls:
|
||||
- net.ipv6.conf.all.disable_ipv6=1
|
||||
```
|
||||
|
||||
or disable IPv6 for the docker network:
|
||||
|
||||
```yaml
|
||||
networks:
|
||||
some_network:
|
||||
driver: bridge
|
||||
enable_ipv6: false
|
||||
```
|
||||
|
||||
@@ -19,27 +19,22 @@ widget:
|
||||
requestBody: # optional, can be string or object, see below
|
||||
display: # optional, default to block, see below
|
||||
mappings:
|
||||
- field: key # needs to be YAML string or object
|
||||
- field: key
|
||||
label: Field 1
|
||||
format: text # optional - defaults to text
|
||||
- field: # needs to be YAML string or object
|
||||
path:
|
||||
to: key2
|
||||
- field: path.to.key2
|
||||
format: number # optional - defaults to text
|
||||
label: Field 2
|
||||
- field: # needs to be YAML string or object
|
||||
path:
|
||||
to:
|
||||
another: key3
|
||||
- field: path.to.another.key3
|
||||
label: Field 3
|
||||
format: percent # optional - defaults to text
|
||||
- field: key # needs to be YAML string or object
|
||||
- field: key
|
||||
label: Field 4
|
||||
format: date # optional - defaults to text
|
||||
locale: nl # optional
|
||||
dateStyle: long # optional - defaults to "long". Allowed values: `["full", "long", "medium", "short"]`.
|
||||
timeStyle: medium # optional - Allowed values: `["full", "long", "medium", "short"]`.
|
||||
- field: key # needs to be YAML string or object
|
||||
- field: key
|
||||
label: Field 5
|
||||
format: relativeDate # optional - defaults to text
|
||||
locale: nl # optional
|
||||
@@ -49,9 +44,7 @@ widget:
|
||||
label: Field 6
|
||||
format: text
|
||||
additionalField: # optional
|
||||
field:
|
||||
hourly:
|
||||
time: other key
|
||||
field: hourly.time.key
|
||||
color: theme # optional - defaults to "". Allowed values: `["theme", "adaptive", "black", "white"]`.
|
||||
format: date # optional
|
||||
- field: key
|
||||
@@ -103,9 +96,16 @@ mappings:
|
||||
label: Name
|
||||
- field: status # Alive
|
||||
label: Status
|
||||
- field:
|
||||
origin: name # Earth (C-137)
|
||||
- field: origin.name # Earth (C-137)
|
||||
label: Origin
|
||||
- field: locations.1.name # Citadel of Ricks
|
||||
label: Location
|
||||
```
|
||||
|
||||
Note that older versions of the widget accepted fields as a yaml object, which is still supported. E.g.:
|
||||
|
||||
```yaml
|
||||
mappings:
|
||||
- field:
|
||||
locations:
|
||||
1: name # Citadel of Ricks
|
||||
@@ -138,7 +138,15 @@ You can manipulate data with the following tools `remap`, `scale`, `prefix` and
|
||||
prefix: "$"
|
||||
```
|
||||
|
||||
## List View
|
||||
## Display Options
|
||||
|
||||
The widget supports different display modes that can be set using the `display` property.
|
||||
|
||||
### Block View (Default)
|
||||
|
||||
The default display mode is `block`, which shows fields in a block format.
|
||||
|
||||
### List View
|
||||
|
||||
You can change the default block view to a list view by setting the `display` option to `list`.
|
||||
|
||||
@@ -162,13 +170,53 @@ The list view can optionally display an additional field next to the primary fie
|
||||
- any: true # will map all other values
|
||||
to: Unknown
|
||||
additionalField:
|
||||
field:
|
||||
hourly:
|
||||
time: key
|
||||
field: hourly.time.key
|
||||
color: theme
|
||||
format: date
|
||||
```
|
||||
|
||||
### Dynamic List View
|
||||
|
||||
To display a list of items from an array in the API response, set the `display` property to `dynamic-list` and configure the `mappings` object with the following properties:
|
||||
|
||||
```yaml
|
||||
widget:
|
||||
type: customapi
|
||||
url: https://example.com/api/servers
|
||||
display: dynamic-list
|
||||
mappings:
|
||||
items: data # optional, the path to the array in the API response. Omit this option if the array is at the root level
|
||||
name: id # required, field in each item to use as the item name (left side)
|
||||
label: ip_address # required, field in each item to use as the item label (right side)
|
||||
limit: 5 # optional, limit the number of items to display
|
||||
target: https://example.com/server/{id} # optional, makes items clickable with template support
|
||||
```
|
||||
|
||||
This configuration would work with an API that returns a response like:
|
||||
|
||||
```json
|
||||
{
|
||||
"data": [
|
||||
{ "id": "server1", "name": "Server 1", "ip_address": "192.168.0.1" },
|
||||
{ "id": "server2", "name": "Server 2", "ip_address": "192.168.0.2" }
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
The widget would display a list with two items:
|
||||
|
||||
- "Server 1" on the left and "192.168.0.1" on the right, clickable to "https://example.com/server/server1"
|
||||
- "Server 2" on the left and "192.168.0.2" on the right, clickable to "https://example.com/server/server2"
|
||||
|
||||
For nested fields in the items, you can use dot notation:
|
||||
|
||||
```yaml
|
||||
mappings:
|
||||
items: data.results.servers
|
||||
name: details.id
|
||||
label: details.name
|
||||
```
|
||||
|
||||
## Custom Headers
|
||||
|
||||
Pass custom headers using the `headers` option, for example:
|
||||
|
||||
@@ -7,7 +7,7 @@ Learn more about [Gitea](https://gitea.com).
|
||||
|
||||
API token requires `notifications`, `repository` and `issue` permissions. See the [gitea documentation](https://docs.gitea.com/development/api-usage#generating-and-listing-api-tokens) for details on generating tokens.
|
||||
|
||||
Allowed fields: `["notifications", "issues", "pulls"]`.
|
||||
Allowed fields: `["repositories", "notifications", "issues", "pulls"]`.
|
||||
|
||||
```yaml
|
||||
widget:
|
||||
|
||||
@@ -117,6 +117,7 @@ You can also find a list of all available service widgets in the sidebar navigat
|
||||
- [ruTorrent](rutorrent.md)
|
||||
- [SABnzbd](sabnzbd.md)
|
||||
- [Scrutiny](scrutiny.md)
|
||||
- [Slskd](slskd.md)
|
||||
- [Sonarr](sonarr.md)
|
||||
- [Speedtest Tracker](speedtest-tracker.md)
|
||||
- [Stash](stash.md)
|
||||
|
||||
25
docs/widgets/services/slskd.md
Normal file
25
docs/widgets/services/slskd.md
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
title: Slskd
|
||||
description: Slskd Widget Configuration
|
||||
---
|
||||
|
||||
Learn more about [Slskd](https://github.com/slskd/slskd).
|
||||
|
||||
Generate an API key for slskd with `openssl rand -base64 48`.
|
||||
Add it to your `path/to/config/slskd.yml` in `web > authentication > api_keys`:
|
||||
|
||||
```yaml
|
||||
homepage_widget:
|
||||
key: <generated key>
|
||||
role: readonly
|
||||
cidr: <homepage subnet>
|
||||
```
|
||||
|
||||
Allowed fields: `["slskStatus", "updateStatus", "downloads", "uploads", "sharedFiles"]` (maximum of 4).
|
||||
|
||||
```yaml
|
||||
widget:
|
||||
type: slskd
|
||||
url: http[s]://slskd.host.or.ip[:5030]
|
||||
key: generatedapikey
|
||||
```
|
||||
21
jest.config.js
Normal file
21
jest.config.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const nextJest = require("next/jest");
|
||||
|
||||
const createJestConfig = nextJest({ dir: "./" });
|
||||
|
||||
const customJestConfig = {
|
||||
testEnvironment: "jsdom",
|
||||
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
|
||||
moduleDirectories: ["node_modules"],
|
||||
moduleNameMapper: {
|
||||
"^components/(.*)$": "<rootDir>/src/components/$1",
|
||||
"^utils/(.*)$": "<rootDir>/src/utils/$1",
|
||||
"^widgets/(.*)$": "<rootDir>/src/widgets/$1",
|
||||
},
|
||||
transformIgnorePatterns: ["/node_modules/"],
|
||||
testPathIgnorePatterns: ["<rootDir>/node_modules/", "config/"],
|
||||
// collectCoverage: true,
|
||||
// coverageDirectory: "coverage",
|
||||
clearMocks: true,
|
||||
};
|
||||
|
||||
module.exports = createJestConfig(customJestConfig);
|
||||
45
jest.i18n.js
Normal file
45
jest.i18n.js
Normal file
@@ -0,0 +1,45 @@
|
||||
import i18n from "i18next";
|
||||
import { initReactI18next, setI18n } from "react-i18next";
|
||||
import rawTranslationEN from "./public/locales/en/common.json";
|
||||
import i18nConfig from "./next-i18next.config.js";
|
||||
|
||||
const translationEN = {
|
||||
common: rawTranslationEN,
|
||||
};
|
||||
|
||||
// Set up formatter service
|
||||
i18n.services = i18n.services || {};
|
||||
i18n.services.formatter = {
|
||||
add: (name, fn) => {
|
||||
i18n.formatters = i18n.formatters || {};
|
||||
i18n.formatters[name] = fn;
|
||||
},
|
||||
format: (value, format, lng, options) => {
|
||||
return i18n.formatters?.[format]?.(value, lng, options) ?? value;
|
||||
},
|
||||
};
|
||||
|
||||
// Register custom formatters
|
||||
i18nConfig.use[0].init(i18n);
|
||||
|
||||
// Initialize i18n
|
||||
i18n.use(initReactI18next).init({
|
||||
lng: "en",
|
||||
fallbackLng: "en",
|
||||
debug: false,
|
||||
initImmediate: false, // make sure init is synchronous in tests
|
||||
interpolation: {
|
||||
escapeValue: false,
|
||||
format: (value, format, lng, options) => i18n.services.formatter.format(value, format, lng, options),
|
||||
},
|
||||
resources: {
|
||||
en: translationEN,
|
||||
},
|
||||
ns: ["common"],
|
||||
defaultNS: "common",
|
||||
returnNull: false,
|
||||
});
|
||||
|
||||
setI18n(i18n);
|
||||
|
||||
export default i18n;
|
||||
20
jest.setup.js
Normal file
20
jest.setup.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import "@testing-library/jest-dom";
|
||||
import "./jest.i18n.js";
|
||||
|
||||
jest.mock("utils/proxy/use-widget-api");
|
||||
|
||||
jest.mock("next-i18next", () => {
|
||||
const reactI18next = require("react-i18next");
|
||||
const i18n = require("./jest.i18n").default;
|
||||
|
||||
return {
|
||||
useTranslation: () => reactI18next.useTranslation("", { i18n }),
|
||||
Trans: reactI18next.Trans,
|
||||
I18nextProvider: reactI18next.I18nextProvider,
|
||||
appWithTranslation: (Component) => (props) => (
|
||||
<reactI18next.I18nextProvider i18n={i18n}>
|
||||
<Component {...props} />
|
||||
</reactI18next.I18nextProvider>
|
||||
),
|
||||
};
|
||||
});
|
||||
15
package.json
15
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "homepage",
|
||||
"version": "1.0.4",
|
||||
"version": "1.1.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
@@ -8,7 +8,8 @@
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
"telemetry": "next telemetry disable"
|
||||
"telemetry": "next telemetry disable",
|
||||
"test": "jest"
|
||||
},
|
||||
"dependencies": {
|
||||
"@headlessui/react": "^1.7.19",
|
||||
@@ -25,7 +26,7 @@
|
||||
"luxon": "^3.5.0",
|
||||
"memory-cache": "^0.2.0",
|
||||
"minecraftstatuspinger": "^1.2.2",
|
||||
"next": "^15.1.7",
|
||||
"next": "^15.2.3",
|
||||
"next-i18next": "^12.1.0",
|
||||
"ping": "^0.4.4",
|
||||
"pretty-bytes": "^6.1.1",
|
||||
@@ -46,6 +47,10 @@
|
||||
"devDependencies": {
|
||||
"@tailwindcss/forms": "^0.5.10",
|
||||
"@tailwindcss/postcss": "^4.0.9",
|
||||
"@testing-library/dom": "^10.4.0",
|
||||
"@testing-library/jest-dom": "^6.6.3",
|
||||
"@testing-library/react": "^16.2.0",
|
||||
"babel-jest": "^29.7.0",
|
||||
"eslint": "^9.21.0",
|
||||
"eslint-config-next": "^15.1.7",
|
||||
"eslint-config-prettier": "^10.0.2",
|
||||
@@ -54,10 +59,14 @@
|
||||
"eslint-plugin-prettier": "^5.2.3",
|
||||
"eslint-plugin-react": "^7.37.4",
|
||||
"eslint-plugin-react-hooks": "^5.1.0",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"jest": "^29.7.0",
|
||||
"jest-environment-jsdom": "^29.7.0",
|
||||
"postcss": "^8.5.2",
|
||||
"prettier": "^3.5.2",
|
||||
"tailwind-scrollbar": "^4.0.1",
|
||||
"tailwindcss": "^4.0.9",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.7.3"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
|
||||
2709
pnpm-lock.yaml
generated
2709
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Kennisgewings",
|
||||
"issues": "Kwessies",
|
||||
"pulls": "Trek Versoeke"
|
||||
"pulls": "Trek Versoeke",
|
||||
"repositories": "Bewaarplekke"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Tonele",
|
||||
@@ -1024,11 +1025,22 @@
|
||||
"timeleft": "Oorblywende Tyd"
|
||||
},
|
||||
"hoarder": {
|
||||
"bookmarks": "Bookmarks",
|
||||
"favorites": "Favorites",
|
||||
"archived": "Archived",
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"bookmarks": "Boekmerke",
|
||||
"favorites": "Gunstelinge",
|
||||
"archived": "Geargiveer",
|
||||
"highlights": "Hoogtepunte",
|
||||
"lists": "Lyste",
|
||||
"tags": "Merkers"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Netwerk",
|
||||
"connected": "Gekoppel",
|
||||
"disconnected": "Ontkoppel",
|
||||
"updateStatus": "Opdateer",
|
||||
"update_yes": "Beskikbaar",
|
||||
"update_no": "Op Datum",
|
||||
"downloads": "Aflaaie",
|
||||
"uploads": "Oplaaie",
|
||||
"sharedFiles": "Lêers"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "الإشعارات",
|
||||
"issues": "المُشكِلات",
|
||||
"pulls": "طلبات السحب"
|
||||
"pulls": "طلبات السحب",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "المشاهد",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "التصنيفات"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "الشبكة",
|
||||
"connected": "متصل",
|
||||
"disconnected": "غير متصل",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "متاح",
|
||||
"update_no": "حتى الآن",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "ملفات"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Известия",
|
||||
"issues": "Издания",
|
||||
"pulls": "Заявки за сливане"
|
||||
"pulls": "Заявки за сливане",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Сцени",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Тагове"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Мрежа",
|
||||
"connected": "Свързан",
|
||||
"disconnected": "Не е свързан",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Наличен",
|
||||
"update_no": "Актуално",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Файлове"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notificacions",
|
||||
"issues": "Problemes",
|
||||
"pulls": "Sol·licitud de Canvis"
|
||||
"pulls": "Sol·licitud de Canvis",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Escenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Etiquetes"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Xarxa",
|
||||
"connected": "Connectat",
|
||||
"disconnected": "Desconnectat",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Disponible",
|
||||
"update_no": "Actualitzat",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Fitxers"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Problémy",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tags"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Network",
|
||||
"connected": "",
|
||||
"disconnected": "Odpojeno",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Dostupné",
|
||||
"update_no": "Žádné",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Soubory"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Problemer",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tags"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Network",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Tilgængelig",
|
||||
"update_no": "Opdateret",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Filer"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -447,7 +447,7 @@
|
||||
"write": "Schreiben",
|
||||
"gpu": "GPU",
|
||||
"mem": "RAM",
|
||||
"swap": "Swap"
|
||||
"swap": "Auslagerung"
|
||||
},
|
||||
"quicklaunch": {
|
||||
"bookmark": "Lesezeichen",
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Benachrichtigungen",
|
||||
"issues": "Probleme",
|
||||
"pulls": "Pull-Requests"
|
||||
"pulls": "Pull-Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Szenen",
|
||||
@@ -1024,11 +1025,22 @@
|
||||
"timeleft": "Verbleibende Zeit"
|
||||
},
|
||||
"hoarder": {
|
||||
"bookmarks": "Bookmarks",
|
||||
"favorites": "Favorites",
|
||||
"archived": "Archived",
|
||||
"bookmarks": "Lesezeichen",
|
||||
"favorites": "Favoriten",
|
||||
"archived": "Archiviert",
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"lists": "Listen",
|
||||
"tags": "Schlagwörter"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Netzwerk",
|
||||
"connected": "Verbunden",
|
||||
"disconnected": "Getrennt",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Verfügbar",
|
||||
"update_no": "Aktuell",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Dateien"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Issues",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Ετικέτες"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Δίκτυο",
|
||||
"connected": "Συνδέθηκε",
|
||||
"disconnected": "Αποσυνδέθηκε",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Διαθέσιμο",
|
||||
"update_no": "Ενημερωμένο",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Αρχεία"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -883,9 +883,10 @@
|
||||
"species": "Species"
|
||||
},
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Issues",
|
||||
"pulls": "Pull Requests"
|
||||
"notifications": "Notifications",
|
||||
"issues": "Issues",
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tags"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Network",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Available",
|
||||
"update_no": "Up to Date",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Issues",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tags"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Network",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Havebla",
|
||||
"update_no": "Up to Date",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notificaciones",
|
||||
"issues": "Números",
|
||||
"pulls": "Solicitudes de cambios"
|
||||
"pulls": "Solicitudes de cambios",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Escenas",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Etiquetas"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Red",
|
||||
"connected": "Conectado",
|
||||
"disconnected": "Desconectado",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Disponible",
|
||||
"update_no": "Actualizado",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Archivos"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Jakinarazpenak",
|
||||
"issues": "Arazoak",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Zerrendak",
|
||||
"tags": "Etiketak"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Network",
|
||||
"connected": "Konektatuta",
|
||||
"disconnected": "Deskonektatuta",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Available",
|
||||
"update_no": "Up to Date",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Issues",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tags"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Network",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Saatavilla",
|
||||
"update_no": "Up to Date",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -149,8 +149,8 @@
|
||||
"received": "Reçu",
|
||||
"sent": "Envoyé",
|
||||
"externalIPAddress": "IP externe",
|
||||
"externalIPv6Address": "Ext. IPv6",
|
||||
"externalIPv6Prefix": "Ext. IPv6-Prefix"
|
||||
"externalIPv6Address": "IPv6 externe",
|
||||
"externalIPv6Prefix": "Préfixe IPv6 externe"
|
||||
},
|
||||
"caddy": {
|
||||
"upstreams": "En amont",
|
||||
@@ -178,7 +178,7 @@
|
||||
"connectedAp": "AP connectés",
|
||||
"activeUser": "Périphériques actifs",
|
||||
"alerts": "Alertes",
|
||||
"connectedGateways": "Connected gateways",
|
||||
"connectedGateways": "Passerelles connectées",
|
||||
"connectedSwitches": "Switchs connectés"
|
||||
},
|
||||
"nzbget": {
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Anomalies",
|
||||
"pulls": "Demandes de tirage"
|
||||
"pulls": "Demandes de tirage",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scènes",
|
||||
@@ -1024,11 +1025,22 @@
|
||||
"timeleft": "Temps restant"
|
||||
},
|
||||
"hoarder": {
|
||||
"bookmarks": "Bookmarks",
|
||||
"favorites": "Favorites",
|
||||
"archived": "Archived",
|
||||
"bookmarks": "Marque-pages",
|
||||
"favorites": "Favoris",
|
||||
"archived": "Archivé",
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"lists": "Listes",
|
||||
"tags": "Étiquettes"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Réseau",
|
||||
"connected": "Connecté",
|
||||
"disconnected": "Déconnecté",
|
||||
"updateStatus": "Mise à jour",
|
||||
"update_yes": "Disponible",
|
||||
"update_no": "À jour",
|
||||
"downloads": "Téléchargements",
|
||||
"uploads": "Téléversements",
|
||||
"sharedFiles": "Fichiers"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Issues",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tags"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Network",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "זמין",
|
||||
"update_no": "Up to Date",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Issues",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tags"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Network",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Available",
|
||||
"update_no": "Up to Date",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Obavijesti",
|
||||
"issues": "Problemi",
|
||||
"pulls": "Zahtjevi za povlačenje"
|
||||
"pulls": "Zahtjevi za povlačenje",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scene",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Oznake"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Mreža",
|
||||
"connected": "Povezano",
|
||||
"disconnected": "Odspojeno",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Dostupno",
|
||||
"update_no": "Aktualno",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Datoteke"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Üzenetek",
|
||||
"issues": "Problémák",
|
||||
"pulls": "Pull request-ek"
|
||||
"pulls": "Pull request-ek",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Jelenetek",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Címkék"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Hálózat",
|
||||
"connected": "Csatlakozva",
|
||||
"disconnected": "Kapcsolat bontva",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Elérhető",
|
||||
"update_no": "Naprakész",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Fájlok"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -342,7 +342,7 @@
|
||||
"totalNxDomain": "Domain NX",
|
||||
"totalRefused": "Ditolak",
|
||||
"totalAuthoritative": "Authoritative",
|
||||
"totalRecursive": "Recursive",
|
||||
"totalRecursive": "Rekursif",
|
||||
"totalCached": "Cached",
|
||||
"totalBlocked": "Terblokir",
|
||||
"totalDropped": "Dropped",
|
||||
@@ -705,8 +705,8 @@
|
||||
"time": "Waktu"
|
||||
},
|
||||
"firefly": {
|
||||
"networth": "Net Worth",
|
||||
"budget": "Budget"
|
||||
"networth": "Kekayaan Bersih",
|
||||
"budget": "Anggaran"
|
||||
},
|
||||
"grafana": {
|
||||
"dashboards": "Dasbor",
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifikasi",
|
||||
"issues": "Isu",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Adegan",
|
||||
@@ -965,7 +966,7 @@
|
||||
"lubelogger": {
|
||||
"vehicle": "Kendaraan",
|
||||
"vehicles": "Kendaraan",
|
||||
"serviceRecords": "Service Records",
|
||||
"serviceRecords": "Catatan Servis",
|
||||
"reminders": "Pengingat",
|
||||
"nextReminder": "Pengingat Berikutnya",
|
||||
"none": "Tidak ada"
|
||||
@@ -1024,11 +1025,22 @@
|
||||
"timeleft": "Sisa Waktu"
|
||||
},
|
||||
"hoarder": {
|
||||
"bookmarks": "Bookmarks",
|
||||
"favorites": "Favorites",
|
||||
"archived": "Archived",
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"bookmarks": "Markah",
|
||||
"favorites": "Favorit",
|
||||
"archived": "Diarsipkan",
|
||||
"highlights": "Sorotan",
|
||||
"lists": "Daftar",
|
||||
"tags": "Tag"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Jaringan",
|
||||
"connected": "Tersambung",
|
||||
"disconnected": "Terputus",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Tersedia",
|
||||
"update_no": "Terbaru",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "File"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifiche",
|
||||
"issues": "Problemi",
|
||||
"pulls": "Richieste di Pull"
|
||||
"pulls": "Richieste di Pull",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scene",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tag"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Rete",
|
||||
"connected": "Connesso",
|
||||
"disconnected": "Disconnesso",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Disponibili",
|
||||
"update_no": "Aggiornato",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "File"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "通知",
|
||||
"issues": "課題",
|
||||
"pulls": "プルリクエスト"
|
||||
"pulls": "プルリクエスト",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "シーン",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "タグ"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "ネットワーク",
|
||||
"connected": "接続済",
|
||||
"disconnected": "切断されました",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "利用可",
|
||||
"update_no": "最新",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "ファイル"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "알림",
|
||||
"issues": "Issues",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "장면",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "태그"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "네트워크",
|
||||
"connected": "연결됨",
|
||||
"disconnected": "연결 끊김",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "이용 가능",
|
||||
"update_no": "최신 상태",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "파일"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Issues",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tags"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Network",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Available",
|
||||
"update_no": "Up to Date",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Issues",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Adegan",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tanda nama"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Rangkaian",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Sambungan Terputus",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Sudah Ada",
|
||||
"update_no": "Terkemaskini",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notificaties",
|
||||
"issues": "Problemen",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scènes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Label"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Netwerk",
|
||||
"connected": "Verbonden",
|
||||
"disconnected": "Verbinding verbroken",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Beschikbaar",
|
||||
"update_no": "Bijgewerkt",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Bestanden"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Varslinger",
|
||||
"issues": "Issues",
|
||||
"pulls": "Forespørsel"
|
||||
"pulls": "Forespørsel",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scener",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Stikkord"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Nettverk",
|
||||
"connected": "Tilkoblet",
|
||||
"disconnected": "Frakoblet",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Tilgjengelig",
|
||||
"update_no": "Oppdatert",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Powiadomienia",
|
||||
"issues": "Zgłoszenia",
|
||||
"pulls": "Żądania Pull"
|
||||
"pulls": "Żądania Pull",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Sceny",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tagi"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Sieć",
|
||||
"connected": "Połączono",
|
||||
"disconnected": "Rozłączono",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Dostępne",
|
||||
"update_no": "Aktualny",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Pliki"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notificações",
|
||||
"issues": "Problemas",
|
||||
"pulls": "Solicitar pull"
|
||||
"pulls": "Solicitar pull",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Cenas",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Etiquetas"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Rede",
|
||||
"connected": "Conectado",
|
||||
"disconnected": "Desconectado",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Disponível",
|
||||
"update_no": "Atualizado",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Ficheiros"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
"load": "Carga",
|
||||
"temp": "TEMP",
|
||||
"max": "Máximo",
|
||||
"uptime": "CIMA"
|
||||
"uptime": "ATIVO"
|
||||
},
|
||||
"unifi": {
|
||||
"users": "Usuários",
|
||||
@@ -61,7 +61,7 @@
|
||||
"wlan_devices": "Dispositivos WLAN",
|
||||
"lan_users": "Usuários de LAN",
|
||||
"wlan_users": "Usuários de WLAN",
|
||||
"up": "CIMA",
|
||||
"up": "ATIVO",
|
||||
"down": "Desligado",
|
||||
"wait": "Por favor, aguarde",
|
||||
"empty_data": "Status do Subsistema desconhecido"
|
||||
@@ -149,8 +149,8 @@
|
||||
"received": "Recebido",
|
||||
"sent": "Enviado",
|
||||
"externalIPAddress": "IP Externo",
|
||||
"externalIPv6Address": "Ext. IPv6",
|
||||
"externalIPv6Prefix": "Ext. IPv6-Prefix"
|
||||
"externalIPv6Address": "IPv6 Externo",
|
||||
"externalIPv6Prefix": "Prefixo IPv6 Externo"
|
||||
},
|
||||
"caddy": {
|
||||
"upstreams": "Streams de Envio",
|
||||
@@ -178,7 +178,7 @@
|
||||
"connectedAp": "APs Ligados",
|
||||
"activeUser": "Dispositivos ativos",
|
||||
"alerts": "Alertas",
|
||||
"connectedGateways": "Connected gateways",
|
||||
"connectedGateways": "Gateways conectados",
|
||||
"connectedSwitches": "Switches conectados"
|
||||
},
|
||||
"nzbget": {
|
||||
@@ -229,8 +229,8 @@
|
||||
"seed": "Semente"
|
||||
},
|
||||
"develancacheui": {
|
||||
"cachehitbytes": "Cache Hit Bytes",
|
||||
"cachemissbytes": "Cache Miss Bytes"
|
||||
"cachehitbytes": "Bytes de Acerto de Cache",
|
||||
"cachemissbytes": "Bytes de Falha de Cache"
|
||||
},
|
||||
"downloadstation": {
|
||||
"download": "Descarregar",
|
||||
@@ -313,13 +313,13 @@
|
||||
},
|
||||
"suwayomi": {
|
||||
"download": "Baixado",
|
||||
"nondownload": "Non-Downloaded",
|
||||
"nondownload": "Não Baixado",
|
||||
"read": "Lido",
|
||||
"unread": "Não lida",
|
||||
"downloadedread": "Downloaded & Read",
|
||||
"downloadedunread": "Downloaded & Unread",
|
||||
"nondownloadedread": "Non-Downloaded & Read",
|
||||
"nondownloadedunread": "Non-Downloaded & Unread"
|
||||
"downloadedread": "Baixado e Lido",
|
||||
"downloadedunread": "Baixado e Não Lido",
|
||||
"nondownloadedread": "Não Baixado e Lido",
|
||||
"nondownloadedunread": "Não Baixado e Não Lido"
|
||||
},
|
||||
"tailscale": {
|
||||
"address": "Endereço",
|
||||
@@ -337,15 +337,15 @@
|
||||
},
|
||||
"technitium": {
|
||||
"totalQueries": "Consultas",
|
||||
"totalNoError": "Success",
|
||||
"totalServerFailure": "Failures",
|
||||
"totalNxDomain": "NX Domains",
|
||||
"totalRefused": "Refused",
|
||||
"totalAuthoritative": "Authoritative",
|
||||
"totalRecursive": "Recursive",
|
||||
"totalCached": "Cached",
|
||||
"totalNoError": "Sucesso",
|
||||
"totalServerFailure": "Falhas",
|
||||
"totalNxDomain": "Domínios NX",
|
||||
"totalRefused": "Recusado",
|
||||
"totalAuthoritative": "Autoritativo",
|
||||
"totalRecursive": "Recursivo",
|
||||
"totalCached": "Em cache",
|
||||
"totalBlocked": "Bloqueado",
|
||||
"totalDropped": "Dropped",
|
||||
"totalDropped": "Perdidos",
|
||||
"totalClients": "Clientes"
|
||||
},
|
||||
"tdarr": {
|
||||
@@ -436,7 +436,7 @@
|
||||
"temp": "TEMP",
|
||||
"_temp": "Temperatura",
|
||||
"warn": "Aviso",
|
||||
"uptime": "CIMA",
|
||||
"uptime": "ATIVO",
|
||||
"total": "Total",
|
||||
"free": "Livre",
|
||||
"used": "Utilizado",
|
||||
@@ -705,8 +705,8 @@
|
||||
"time": "Hora"
|
||||
},
|
||||
"firefly": {
|
||||
"networth": "Net Worth",
|
||||
"budget": "Budget"
|
||||
"networth": "Valor Líquido",
|
||||
"budget": "Orçamento"
|
||||
},
|
||||
"grafana": {
|
||||
"dashboards": "Painéis",
|
||||
@@ -860,16 +860,16 @@
|
||||
},
|
||||
"romm": {
|
||||
"platforms": "Plataformas",
|
||||
"totalRoms": "Games",
|
||||
"totalRoms": "Jogos",
|
||||
"saves": "Saves",
|
||||
"states": "States",
|
||||
"screenshots": "Screenshots",
|
||||
"totalfilesize": "Total Size"
|
||||
"states": "Estados",
|
||||
"screenshots": "Capturas de Tela",
|
||||
"totalfilesize": "Tamanho total"
|
||||
},
|
||||
"mailcow": {
|
||||
"domains": "Domínios",
|
||||
"mailboxes": "Mailboxes",
|
||||
"mails": "Mails",
|
||||
"mailboxes": "Caixas de e-mail",
|
||||
"mails": "Mensagens",
|
||||
"storage": "Armazenamento"
|
||||
},
|
||||
"netdata": {
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notificações",
|
||||
"issues": "Problemas",
|
||||
"pulls": "Solicitações de Envio"
|
||||
"pulls": "Solicitações de Envio",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Cenas",
|
||||
@@ -951,30 +952,30 @@
|
||||
},
|
||||
"linkwarden": {
|
||||
"links": "Links",
|
||||
"collections": "Collections",
|
||||
"collections": "Coleções",
|
||||
"tags": "Marcadores"
|
||||
},
|
||||
"zabbix": {
|
||||
"unclassified": "Not classified",
|
||||
"unclassified": "Não classificado",
|
||||
"information": "Informação",
|
||||
"warning": "Warning",
|
||||
"average": "Average",
|
||||
"high": "High",
|
||||
"disaster": "Disaster"
|
||||
"warning": "Aviso",
|
||||
"average": "Médio",
|
||||
"high": "Alto",
|
||||
"disaster": "Desastre"
|
||||
},
|
||||
"lubelogger": {
|
||||
"vehicle": "Vehicle",
|
||||
"vehicles": "Vehicles",
|
||||
"serviceRecords": "Service Records",
|
||||
"reminders": "Reminders",
|
||||
"nextReminder": "Next Reminder",
|
||||
"none": "None"
|
||||
"vehicle": "Veículo",
|
||||
"vehicles": "Veículos",
|
||||
"serviceRecords": "Registros de Serviço",
|
||||
"reminders": "Lembretes",
|
||||
"nextReminder": "Próximo Lembrete",
|
||||
"none": "Nenhum"
|
||||
},
|
||||
"vikunja": {
|
||||
"projects": "Active Projects",
|
||||
"tasks7d": "Tasks Due This Week",
|
||||
"tasksOverdue": "Overdue Tasks",
|
||||
"tasksInProgress": "Tasks In Progress"
|
||||
"projects": "Projetos Ativos",
|
||||
"tasks7d": "Tarefas que vencem nesta semana",
|
||||
"tasksOverdue": "Tarefas Atrasadas",
|
||||
"tasksInProgress": "Tarefas em Andamento"
|
||||
},
|
||||
"headscale": {
|
||||
"name": "Nome",
|
||||
@@ -986,7 +987,7 @@
|
||||
},
|
||||
"beszel": {
|
||||
"name": "Nome",
|
||||
"systems": "Systems",
|
||||
"systems": "Sistemas",
|
||||
"up": "Ativo",
|
||||
"down": "Inativo",
|
||||
"paused": "Pausado",
|
||||
@@ -995,27 +996,27 @@
|
||||
"updated": "Atualizado",
|
||||
"cpu": "CPU",
|
||||
"memory": "MEM",
|
||||
"disk": "Disk",
|
||||
"network": "NET"
|
||||
"disk": "Disco",
|
||||
"network": "Rede"
|
||||
},
|
||||
"argocd": {
|
||||
"apps": "Apps",
|
||||
"synced": "Synced",
|
||||
"outOfSync": "Out Of Sync",
|
||||
"apps": "Aplicativos",
|
||||
"synced": "Sincronizado",
|
||||
"outOfSync": "Fora de sincronia",
|
||||
"healthy": "Saudável",
|
||||
"degraded": "Degraded",
|
||||
"progressing": "Progressing",
|
||||
"degraded": "Degradado",
|
||||
"progressing": "Progredindo",
|
||||
"missing": "Faltando",
|
||||
"suspended": "Suspended"
|
||||
"suspended": "Suspenso"
|
||||
},
|
||||
"spoolman": {
|
||||
"loading": "Carregando"
|
||||
},
|
||||
"gitlab": {
|
||||
"groups": "Groups",
|
||||
"groups": "Grupos",
|
||||
"issues": "Problemas",
|
||||
"merges": "Merge Requests",
|
||||
"projects": "Projects"
|
||||
"merges": "Solicitações de mesclagem",
|
||||
"projects": "Projetos"
|
||||
},
|
||||
"apcups": {
|
||||
"status": "Status",
|
||||
@@ -1024,11 +1025,22 @@
|
||||
"timeleft": "Tempo restante"
|
||||
},
|
||||
"hoarder": {
|
||||
"bookmarks": "Bookmarks",
|
||||
"favorites": "Favorites",
|
||||
"archived": "Archived",
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"bookmarks": "Favoritos",
|
||||
"favorites": "Favoritos",
|
||||
"archived": "Arquivados",
|
||||
"highlights": "Destaques",
|
||||
"lists": "Listas",
|
||||
"tags": "Marcadores"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Rede",
|
||||
"connected": "Conectado",
|
||||
"disconnected": "Desconectado",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Disponível",
|
||||
"update_no": "Atualizado",
|
||||
"downloads": "Transferências",
|
||||
"uploads": "Envios",
|
||||
"sharedFiles": "Arquivos"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Issues",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tags"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Network",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Disponibile",
|
||||
"update_no": "Up to Date",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -149,8 +149,8 @@
|
||||
"received": "Получено",
|
||||
"sent": "Отправлено",
|
||||
"externalIPAddress": "Внеш. IP",
|
||||
"externalIPv6Address": "Ext. IPv6",
|
||||
"externalIPv6Prefix": "Ext. IPv6-Prefix"
|
||||
"externalIPv6Address": "Внешний IPv6",
|
||||
"externalIPv6Prefix": "Внешний IPv6 префикс"
|
||||
},
|
||||
"caddy": {
|
||||
"upstreams": "Входящие каналы",
|
||||
@@ -178,7 +178,7 @@
|
||||
"connectedAp": "Подключенные точки доступа",
|
||||
"activeUser": "Активные устройства",
|
||||
"alerts": "Предупреждения",
|
||||
"connectedGateways": "Connected gateways",
|
||||
"connectedGateways": "Подключенные шлюзы",
|
||||
"connectedSwitches": "Подключенные коммутаторы"
|
||||
},
|
||||
"nzbget": {
|
||||
@@ -705,8 +705,8 @@
|
||||
"time": "Время"
|
||||
},
|
||||
"firefly": {
|
||||
"networth": "Net Worth",
|
||||
"budget": "Budget"
|
||||
"networth": "Общая средства",
|
||||
"budget": "Бюджет"
|
||||
},
|
||||
"grafana": {
|
||||
"dashboards": "Панели",
|
||||
@@ -861,7 +861,7 @@
|
||||
"romm": {
|
||||
"platforms": "Платформы",
|
||||
"totalRoms": "Игры",
|
||||
"saves": "Сейвы",
|
||||
"saves": "Сохранения",
|
||||
"states": "Состояния",
|
||||
"screenshots": "Скриншоты",
|
||||
"totalfilesize": "Общий объем"
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Уведомления",
|
||||
"issues": "Вопросы",
|
||||
"pulls": "Запросы на слияние (Pull Request)"
|
||||
"pulls": "Запросы на слияние (Pull Request)",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Сцены",
|
||||
@@ -927,7 +928,7 @@
|
||||
"total": "Всего"
|
||||
},
|
||||
"swagdashboard": {
|
||||
"proxied": "Прокси",
|
||||
"proxied": "Проксировано",
|
||||
"auth": "С Авторизацией",
|
||||
"outdated": "Устаревшие",
|
||||
"banned": "Заблокированные"
|
||||
@@ -958,17 +959,17 @@
|
||||
"unclassified": "Не классифицировано",
|
||||
"information": "Информация",
|
||||
"warning": "Предупреждение",
|
||||
"average": "Средняя",
|
||||
"average": "Среднее",
|
||||
"high": "Высокая",
|
||||
"disaster": "Чрезвычайная"
|
||||
"disaster": "Чрезвычайное"
|
||||
},
|
||||
"lubelogger": {
|
||||
"vehicle": "Автомобиль",
|
||||
"vehicles": "Автомобили",
|
||||
"serviceRecords": "Сервисные работы",
|
||||
"vehicle": "Транспорт",
|
||||
"vehicles": "Транспорты",
|
||||
"serviceRecords": "Сервисные записи",
|
||||
"reminders": "Напоминания",
|
||||
"nextReminder": "Следующее напоминание",
|
||||
"none": "Нет"
|
||||
"none": "Отсутствует"
|
||||
},
|
||||
"vikunja": {
|
||||
"projects": "Активные Проекты",
|
||||
@@ -1024,11 +1025,22 @@
|
||||
"timeleft": "Осталось"
|
||||
},
|
||||
"hoarder": {
|
||||
"bookmarks": "Bookmarks",
|
||||
"favorites": "Favorites",
|
||||
"archived": "Archived",
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"bookmarks": "Закладки",
|
||||
"favorites": "Избранное",
|
||||
"archived": "Архивированное",
|
||||
"highlights": "События",
|
||||
"lists": "Список",
|
||||
"tags": "Теги"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Сеть",
|
||||
"connected": "Подключено",
|
||||
"disconnected": "Отключено",
|
||||
"updateStatus": "Обновление",
|
||||
"update_yes": "Доступно",
|
||||
"update_no": "Последняя версия",
|
||||
"downloads": "Скачивания",
|
||||
"uploads": "Загрузки",
|
||||
"sharedFiles": "Файлов"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Oznámenia",
|
||||
"issues": "Problémy",
|
||||
"pulls": "Pull requesty"
|
||||
"pulls": "Pull requesty",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scény",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Štítky"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Sieť",
|
||||
"connected": "Pripojené",
|
||||
"disconnected": "Odpojené",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Dostupné",
|
||||
"update_no": "Aktuálny",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Súborov"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Obvestila",
|
||||
"issues": "Težave",
|
||||
"pulls": "Zahteve za prenos"
|
||||
"pulls": "Zahteve za prenos",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scene",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Značke"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Omrežje",
|
||||
"connected": "Povezan",
|
||||
"disconnected": "Prekinjeno",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Na voljo",
|
||||
"update_no": "Posodobljeno",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Datotek"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Issues",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tags"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Network",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Available",
|
||||
"update_no": "Up to Date",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Issues",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tags"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Network",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Tillgänglig",
|
||||
"update_no": "Up to Date",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Issues",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tags"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Network",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "అందుబాటులో వున్నవి",
|
||||
"update_no": "తాజాగా",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Issues",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tags"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Network",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Available",
|
||||
"update_no": "Up to Date",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Bildirimler",
|
||||
"issues": "Sorunlar",
|
||||
"pulls": "Değişiklik İstekleri"
|
||||
"pulls": "Değişiklik İstekleri",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Sahneler",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Etiketler"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Ağ",
|
||||
"connected": "Bağlandı",
|
||||
"disconnected": "Bağlantı kesildi",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Kullanılabilir",
|
||||
"update_no": "Güncel",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Dosyalar"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Сповіщення",
|
||||
"issues": "Питання",
|
||||
"pulls": "Pull-запити"
|
||||
"pulls": "Pull-запити",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Сцени",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Теги"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Мережа",
|
||||
"connected": "З'єднано",
|
||||
"disconnected": "Відключено",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Доступно",
|
||||
"update_no": "Актуально",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Файли"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "Notifications",
|
||||
"issues": "Issues",
|
||||
"pulls": "Pull Requests"
|
||||
"pulls": "Pull Requests",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "Scenes",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tags"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "Network",
|
||||
"connected": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "Available",
|
||||
"update_no": "Up to Date",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "信息",
|
||||
"issues": "出版",
|
||||
"pulls": "提取請求"
|
||||
"pulls": "提取請求",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "場景",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "標籤"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "網絡",
|
||||
"connected": "Connected",
|
||||
"disconnected": "連接已中斷",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "可用",
|
||||
"update_no": "已更新至最新",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "檔案"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "通知",
|
||||
"issues": "问题",
|
||||
"pulls": "PR"
|
||||
"pulls": "PR",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "场景",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "Tags"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "网络",
|
||||
"connected": "已连接",
|
||||
"disconnected": "未连接",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "可用",
|
||||
"update_no": "Up to Date",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "Files"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -885,7 +885,8 @@
|
||||
"gitea": {
|
||||
"notifications": "信息",
|
||||
"issues": "出版",
|
||||
"pulls": "提取請求"
|
||||
"pulls": "提取請求",
|
||||
"repositories": "Repositories"
|
||||
},
|
||||
"stash": {
|
||||
"scenes": "場景",
|
||||
@@ -1030,5 +1031,16 @@
|
||||
"highlights": "Highlights",
|
||||
"lists": "Lists",
|
||||
"tags": "標籤"
|
||||
},
|
||||
"slskd": {
|
||||
"slskStatus": "網絡",
|
||||
"connected": "Connected",
|
||||
"disconnected": "連接已中斷",
|
||||
"updateStatus": "Update",
|
||||
"update_yes": "可觀看",
|
||||
"update_no": "已更新至最新",
|
||||
"downloads": "Downloads",
|
||||
"uploads": "Uploads",
|
||||
"sharedFiles": "檔案"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ export default function BookmarksGroup({
|
||||
disableCollapse,
|
||||
groupsInitiallyCollapsed,
|
||||
bookmarksStyle,
|
||||
maxGroupColumns,
|
||||
}) {
|
||||
const panel = useRef();
|
||||
|
||||
@@ -25,6 +26,9 @@ export default function BookmarksGroup({
|
||||
className={classNames(
|
||||
"bookmark-group flex-1 overflow-hidden",
|
||||
layout?.style === "row" ? "basis-full" : "basis-full md:basis-1/4 lg:basis-1/5 xl:basis-1/6",
|
||||
layout?.style !== "row" && maxGroupColumns && parseInt(maxGroupColumns, 10) > 6
|
||||
? `3xl:basis-1/${maxGroupColumns}`
|
||||
: "",
|
||||
layout?.header === false ? "px-1" : "p-1 pb-0",
|
||||
)}
|
||||
>
|
||||
|
||||
@@ -10,7 +10,7 @@ import { columnMap } from "../../utils/layout/columns";
|
||||
export default function ServicesGroup({
|
||||
group,
|
||||
layout,
|
||||
fiveColumns,
|
||||
maxGroupColumns,
|
||||
disableCollapse,
|
||||
useEqualHeights,
|
||||
groupsInitiallyCollapsed,
|
||||
@@ -31,7 +31,7 @@ export default function ServicesGroup({
|
||||
className={classNames(
|
||||
"services-group flex-1",
|
||||
layout?.style === "row" ? "basis-full" : "basis-full md:basis-1/2 lg:basis-1/3 xl:basis-1/4",
|
||||
layout?.style !== "row" && fiveColumns ? "3xl:basis-1/5" : "",
|
||||
layout?.style !== "row" && maxGroupColumns ? `3xl:basis-1/${maxGroupColumns}` : "",
|
||||
groupPadding,
|
||||
isSubgroup ? "subgroup" : "",
|
||||
)}
|
||||
@@ -97,7 +97,7 @@ export default function ServicesGroup({
|
||||
key={subgroup.name}
|
||||
group={subgroup}
|
||||
layout={layout?.[subgroup.name]}
|
||||
fiveColumns={fiveColumns}
|
||||
maxGroupColumns={maxGroupColumns}
|
||||
disableCollapse={disableCollapse}
|
||||
useEqualHeights={useEqualHeights}
|
||||
groupsInitiallyCollapsed={groupsInitiallyCollapsed}
|
||||
|
||||
@@ -16,6 +16,7 @@ import nextI18nextConfig from "../../next-i18next.config";
|
||||
const tailwindSafelist = [
|
||||
// TODO: remove pending https://github.com/tailwindlabs/tailwindcss/pull/17147
|
||||
"backdrop-blur",
|
||||
"backdrop-blur-xs",
|
||||
"backdrop-blur-sm",
|
||||
"backdrop-blur-md",
|
||||
"backdrop-blur-xl",
|
||||
@@ -52,6 +53,11 @@ const tailwindSafelist = [
|
||||
"dark:bg-white",
|
||||
"bg-orange-400",
|
||||
"dark:bg-orange-400",
|
||||
// maxGroupColumns
|
||||
"3xl:basis-1/5",
|
||||
"3xl:basis-1/6",
|
||||
"3xl:basis-1/7",
|
||||
"3xl:basis-1/8",
|
||||
// yep
|
||||
"h-0 h-1 h-2 h-3 h-4 h-5 h-6 h-7 h-8 h-9 h-10 h-11 h-12 h-13 h-14 h-15 h-16 h-17 h-18 h-19 h-20 h-21 h-22 h-23 h-24 h-25 h-26 h-27 h-28 h-29 h-30 h-31 h-32 h-33 h-34 h-35 h-36 h-37 h-38 h-39 h-40 h-41 h-42 h-43 h-44 h-45 h-46 h-47 h-48 h-49 h-50 h-51 h-52 h-53 h-54 h-55 h-56 h-57 h-58 h-59 h-60 h-61 h-62 h-63 h-64 h-65 h-66 h-67 h-68 h-69 h-70 h-71 h-72 h-73 h-74 h-75 h-76 h-77 h-78 h-79 h-80 h-81 h-82 h-83 h-84 h-85 h-86 h-87 h-88 h-89 h-90 h-91 h-92 h-93 h-94 h-95 h-96",
|
||||
"sm:h-0 sm:h-1 sm:h-2 sm:h-3 sm:h-4 sm:h-5 sm:h-6 sm:h-7 sm:h-8 sm:h-9 sm:h-10 sm:h-11 sm:h-12 sm:h-13 sm:h-14 sm:h-15 sm:h-16 sm:h-17 sm:h-18 sm:h-19 sm:h-20 sm:h-21 sm:h-22 sm:h-23 sm:h-24 sm:h-25 sm:h-26 sm:h-27 sm:h-28 sm:h-29 sm:h-30 sm:h-31 sm:h-32 sm:h-33 sm:h-34 sm:h-35 sm:h-36 sm:h-37 sm:h-38 sm:h-39 sm:h-40 sm:h-41 sm:h-42 sm:h-43 sm:h-44 sm:h-45 sm:h-46 sm:h-47 sm:h-48 sm:h-49 sm:h-50 sm:h-51 sm:h-52 sm:h-53 sm:h-54 sm:h-55 sm:h-56 sm:h-57 sm:h-58 sm:h-59 sm:h-60 sm:h-61 sm:h-62 sm:h-63 sm:h-64 sm:h-65 sm:h-66 sm:h-67 sm:h-68 sm:h-69 sm:h-70 sm:h-71 sm:h-72 sm:h-73 sm:h-74 sm:h-75 sm:h-76 sm:h-77 sm:h-78 sm:h-79 sm:h-80 sm:h-81 sm:h-82 sm:h-83 sm:h-84 sm:h-85 sm:h-86 sm:h-87 sm:h-88 sm:h-89 sm:h-90 sm:h-91 sm:h-92 sm:h-93 sm:h-94 sm:h-95 sm:h-96",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import cachedFetch from "utils/proxy/cached-fetch";
|
||||
import { cachedRequest } from "utils/proxy/http";
|
||||
import createLogger from "utils/logger";
|
||||
|
||||
const logger = createLogger("releases");
|
||||
@@ -6,7 +6,7 @@ const logger = createLogger("releases");
|
||||
export default async function handler(req, res) {
|
||||
const releasesURL = "https://api.github.com/repos/gethomepage/homepage/releases";
|
||||
try {
|
||||
return res.send(await cachedFetch(releasesURL, 5));
|
||||
return res.send(await cachedRequest(releasesURL, 5));
|
||||
} catch (e) {
|
||||
logger.error(`Error checking GitHub releases: ${e}`);
|
||||
return res.send([]);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { searchProviders } from "components/widgets/search/search";
|
||||
|
||||
import { getSettings } from "utils/config/config";
|
||||
import cachedFetch from "utils/proxy/cached-fetch";
|
||||
import { cachedRequest } from "utils/proxy/http";
|
||||
import { widgetsFromConfig } from "utils/config/widget-helpers";
|
||||
|
||||
export default async function handler(req, res) {
|
||||
@@ -29,5 +29,5 @@ export default async function handler(req, res) {
|
||||
return res.json([query, []]); // Responde with the same array format but with no suggestions.
|
||||
}
|
||||
|
||||
return res.send(await cachedFetch(`${provider.suggestionUrl}${encodeURIComponent(query)}`, 5, "Mozilla/5.0"));
|
||||
return res.send(await cachedRequest(`${provider.suggestionUrl}${encodeURIComponent(query)}`, 5, "Mozilla/5.0"));
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import cachedFetch from "utils/proxy/cached-fetch";
|
||||
import { cachedRequest } from "utils/proxy/http";
|
||||
|
||||
export default async function handler(req, res) {
|
||||
const { latitude, longitude, units, cache, timezone } = req.query;
|
||||
const degrees = units === "metric" ? "celsius" : "fahrenheit";
|
||||
const timezeone = timezone ?? "auto";
|
||||
const apiUrl = `https://api.open-meteo.com/v1/forecast?latitude=${latitude}&longitude=${longitude}&daily=sunrise,sunset¤t_weather=true&temperature_unit=${degrees}&timezone=${timezeone}`;
|
||||
return res.send(await cachedFetch(apiUrl, cache));
|
||||
return res.send(await cachedRequest(apiUrl, cache));
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import cachedFetch from "utils/proxy/cached-fetch";
|
||||
import { cachedRequest } from "utils/proxy/http";
|
||||
import { getSettings } from "utils/config/config";
|
||||
import { getPrivateWidgetOptions } from "utils/config/widget-helpers";
|
||||
|
||||
@@ -26,5 +26,5 @@ export default async function handler(req, res) {
|
||||
|
||||
const apiUrl = `https://api.openweathermap.org/data/2.5/weather?lat=${latitude}&lon=${longitude}&appid=${apiKey}&units=${units}&lang=${lang}`;
|
||||
|
||||
return res.send(await cachedFetch(apiUrl, cache));
|
||||
return res.send(await cachedRequest(apiUrl, cache));
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import cachedFetch from "utils/proxy/cached-fetch";
|
||||
import { cachedRequest } from "utils/proxy/http";
|
||||
import { getSettings } from "utils/config/config";
|
||||
import createLogger from "utils/logger";
|
||||
|
||||
@@ -60,7 +60,7 @@ export default async function handler(req, res) {
|
||||
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);
|
||||
const { c, dp } = await cachedRequest(apiUrl, cache || 1);
|
||||
logger.debug("Finnhub API response for %s: %o", ticker, { c, dp });
|
||||
|
||||
// API sometimes returns 200, but values returned are `null`
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import cachedFetch from "utils/proxy/cached-fetch";
|
||||
import { cachedRequest } from "utils/proxy/http";
|
||||
import { getSettings } from "utils/config/config";
|
||||
import { getPrivateWidgetOptions } from "utils/config/widget-helpers";
|
||||
|
||||
@@ -26,5 +26,5 @@ export default async function handler(req, res) {
|
||||
|
||||
const apiUrl = `http://api.weatherapi.com/v1/current.json?q=${latitude},${longitude}&key=${apiKey}&lang=${lang}`;
|
||||
|
||||
return res.send(await cachedFetch(apiUrl, cache));
|
||||
return res.send(await cachedRequest(apiUrl, cache));
|
||||
}
|
||||
|
||||
@@ -323,7 +323,7 @@ function Home({ initialSettings }) {
|
||||
key={group.name}
|
||||
group={group}
|
||||
layout={settings.layout?.[group.name]}
|
||||
fiveColumns={settings.fiveColumns}
|
||||
maxGroupColumns={settings.fiveColumns ? 5 : settings.maxGroupColumns}
|
||||
disableCollapse={settings.disableCollapse}
|
||||
useEqualHeights={settings.useEqualHeights}
|
||||
groupsInitiallyCollapsed={settings.groupsInitiallyCollapsed}
|
||||
@@ -334,6 +334,7 @@ function Home({ initialSettings }) {
|
||||
bookmarks={group}
|
||||
layout={settings.layout?.[group.name]}
|
||||
disableCollapse={settings.disableCollapse}
|
||||
maxGroupColumns={settings.maxBookmarkGroupColumns ?? settings.maxGroupColumns}
|
||||
groupsInitiallyCollapsed={settings.groupsInitiallyCollapsed}
|
||||
/>
|
||||
),
|
||||
@@ -347,7 +348,7 @@ function Home({ initialSettings }) {
|
||||
key={group.name}
|
||||
group={group}
|
||||
layout={settings.layout?.[group.name]}
|
||||
fiveColumns={settings.fiveColumns}
|
||||
maxGroupColumns={settings.fiveColumns ? 5 : settings.maxGroupColumns}
|
||||
disableCollapse={settings.disableCollapse}
|
||||
groupsInitiallyCollapsed={settings.groupsInitiallyCollapsed}
|
||||
/>
|
||||
@@ -362,6 +363,7 @@ function Home({ initialSettings }) {
|
||||
bookmarks={group}
|
||||
layout={settings.layout?.[group.name]}
|
||||
disableCollapse={settings.disableCollapse}
|
||||
maxGroupColumns={settings.maxBookmarkGroupColumns ?? settings.maxGroupColumns}
|
||||
groupsInitiallyCollapsed={settings.groupsInitiallyCollapsed}
|
||||
bookmarksStyle={settings.bookmarksStyle}
|
||||
/>
|
||||
@@ -377,6 +379,8 @@ function Home({ initialSettings }) {
|
||||
bookmarks,
|
||||
settings.layout,
|
||||
settings.fiveColumns,
|
||||
settings.maxGroupColumns,
|
||||
settings.maxBookmarkGroupColumns,
|
||||
settings.disableCollapse,
|
||||
settings.useEqualHeights,
|
||||
settings.cardBlur,
|
||||
@@ -417,7 +421,12 @@ function Home({ initialSettings }) {
|
||||
|
||||
<Script src="/api/config/custom.js" />
|
||||
|
||||
<div className="relative container m-auto flex flex-col justify-start z-10 h-full">
|
||||
<div
|
||||
className={classNames(
|
||||
settings.fullWidth ? "" : "container",
|
||||
"relative m-auto flex flex-col justify-start z-10 h-full",
|
||||
)}
|
||||
>
|
||||
<QuickLaunch
|
||||
servicesAndBookmarks={servicesAndBookmarks}
|
||||
searchString={searchString}
|
||||
|
||||
@@ -56,21 +56,22 @@ export async function cleanWidgetGroups(widgets) {
|
||||
export async function getPrivateWidgetOptions(type, widgetIndex) {
|
||||
const widgets = await widgetsFromConfig();
|
||||
|
||||
const privateOptions = widgets.map((widget) => {
|
||||
const { index, url, username, password, key, apiKey } = widget.options;
|
||||
const privateOptions =
|
||||
widgets.map((widget) => {
|
||||
const { index, url, username, password, key, apiKey } = widget.options;
|
||||
|
||||
return {
|
||||
type: widget.type,
|
||||
options: {
|
||||
index,
|
||||
url,
|
||||
username,
|
||||
password,
|
||||
key,
|
||||
apiKey,
|
||||
},
|
||||
};
|
||||
});
|
||||
return {
|
||||
type: widget.type,
|
||||
options: {
|
||||
index,
|
||||
url,
|
||||
username,
|
||||
password,
|
||||
key,
|
||||
apiKey,
|
||||
},
|
||||
};
|
||||
}) || {};
|
||||
|
||||
return type !== undefined && widgetIndex !== undefined
|
||||
? privateOptions.find((o) => o.type === type && o.options.index === parseInt(widgetIndex, 10))?.options
|
||||
|
||||
13
src/utils/proxy/__mocks__/use-widget-api.js
Normal file
13
src/utils/proxy/__mocks__/use-widget-api.js
Normal file
@@ -0,0 +1,13 @@
|
||||
let mockResponses = {};
|
||||
|
||||
export function __setEndpointMockData(endpoint, response) {
|
||||
mockResponses[endpoint] = response;
|
||||
}
|
||||
|
||||
export function __clearMocks() {
|
||||
mockResponses = {};
|
||||
}
|
||||
|
||||
export default function useWidgetAPI(widget, endpoint) {
|
||||
return mockResponses[endpoint] ?? { data: undefined, error: undefined };
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
import cache from "memory-cache";
|
||||
|
||||
const defaultDuration = 5;
|
||||
|
||||
export default async function cachedFetch(url, duration, ua) {
|
||||
const cached = cache.get(url);
|
||||
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
duration = duration || defaultDuration;
|
||||
|
||||
if (cached) {
|
||||
return cached;
|
||||
}
|
||||
|
||||
// wrapping text in JSON.parse to handle utf-8 issues
|
||||
const options = {};
|
||||
if (ua) {
|
||||
options.headers = {
|
||||
"User-Agent": ua,
|
||||
};
|
||||
}
|
||||
const data = await fetch(url, options).then((res) => res.json());
|
||||
cache.put(url, data, duration * 1000 * 60);
|
||||
return data;
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
import { createUnzip, constants as zlibConstants } from "node:zlib";
|
||||
|
||||
import { http, https } from "follow-redirects";
|
||||
import cache from "memory-cache";
|
||||
|
||||
import { addCookieToJar, setCookieHeader } from "./cookie-jar";
|
||||
import { sanitizeErrorURL } from "./api-helpers";
|
||||
@@ -81,20 +82,46 @@ export function httpRequest(url, params) {
|
||||
return handleRequest(http, url, params);
|
||||
}
|
||||
|
||||
export async function cachedRequest(url, duration = 5, ua = "homepage") {
|
||||
const cached = cache.get(url);
|
||||
|
||||
if (cached) {
|
||||
return cached;
|
||||
}
|
||||
|
||||
const options = {
|
||||
headers: {
|
||||
"User-Agent": ua,
|
||||
Accept: "application/json",
|
||||
},
|
||||
};
|
||||
let [, , data] = await httpProxy(url, options);
|
||||
if (Buffer.isBuffer(data)) {
|
||||
try {
|
||||
data = JSON.parse(Buffer.from(data).toString());
|
||||
} catch (e) {
|
||||
logger.debug("Error parsing cachedRequest data for %s: %s %s", url, Buffer.from(data).toString(), e);
|
||||
data = Buffer.from(data).toString();
|
||||
}
|
||||
}
|
||||
cache.put(url, data, duration * 1000 * 60);
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function httpProxy(url, params = {}) {
|
||||
const constructedUrl = new URL(url);
|
||||
const disableIpv6 = process.env.HOMEPAGE_PROXY_DISABLE_IPV6 === "true";
|
||||
const agentOptions = disableIpv6 ? { family: 4, autoSelectFamily: false } : {};
|
||||
|
||||
let request = null;
|
||||
if (constructedUrl.protocol === "https:") {
|
||||
request = httpsRequest(constructedUrl, {
|
||||
agent: new https.Agent({
|
||||
rejectUnauthorized: false,
|
||||
}),
|
||||
agent: new https.Agent({ ...agentOptions, rejectUnauthorized: false }),
|
||||
...params,
|
||||
});
|
||||
} else {
|
||||
request = httpRequest(constructedUrl, {
|
||||
agent: new http.Agent(),
|
||||
agent: new http.Agent(agentOptions),
|
||||
...params,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -113,6 +113,7 @@ const components = {
|
||||
rutorrent: dynamic(() => import("./rutorrent/component")),
|
||||
sabnzbd: dynamic(() => import("./sabnzbd/component")),
|
||||
scrutiny: dynamic(() => import("./scrutiny/component")),
|
||||
slskd: dynamic(() => import("./slskd/component")),
|
||||
sonarr: dynamic(() => import("./sonarr/component")),
|
||||
speedtest: dynamic(() => import("./speedtest/component")),
|
||||
spoolman: dynamic(() => import("./spoolman/component")),
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import { useTranslation } from "next-i18next";
|
||||
import Container from "components/services/widget/container";
|
||||
import Block from "components/services/widget/block";
|
||||
import classNames from "classnames";
|
||||
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
import * as shvl from "utils/config/shvl";
|
||||
|
||||
function getValue(field, data) {
|
||||
let value = data;
|
||||
@@ -14,6 +16,11 @@ function getValue(field, data) {
|
||||
return value;
|
||||
}
|
||||
|
||||
// shvl is easier, everything else is kept for backwards compatibility.
|
||||
if (typeof field === "string") {
|
||||
return shvl.get(data, field, null) ?? data[field] ?? null;
|
||||
}
|
||||
|
||||
while (typeof lastField === "object") {
|
||||
key = Object.keys(lastField)[0] ?? null;
|
||||
|
||||
@@ -165,6 +172,16 @@ export default function Component({ service }) {
|
||||
|
||||
if (!customData) {
|
||||
switch (display) {
|
||||
case "dynamic-list":
|
||||
return (
|
||||
<Container service={service}>
|
||||
<div className="flex flex-col w-full">
|
||||
<div className="bg-theme-200/50 dark:bg-theme-900/20 rounded-sm m-1 flex-1 flex flex-row items-center justify-between p-1 text-xs animate-pulse">
|
||||
<div className="font-thin pl-2">Loading...</div>
|
||||
</div>
|
||||
</div>
|
||||
</Container>
|
||||
);
|
||||
case "list":
|
||||
return (
|
||||
<Container service={service}>
|
||||
@@ -196,6 +213,76 @@ export default function Component({ service }) {
|
||||
}
|
||||
|
||||
switch (display) {
|
||||
case "dynamic-list":
|
||||
let listItems = customData;
|
||||
if (mappings.items) listItems = shvl.get(customData, mappings.items, null);
|
||||
let error;
|
||||
if (!listItems || !Array.isArray(listItems)) {
|
||||
error = { message: "Unable to find items" };
|
||||
}
|
||||
const name = mappings.name;
|
||||
const label = mappings.label;
|
||||
if (!name || !label) {
|
||||
error = { message: "Name and label properties are required" };
|
||||
}
|
||||
if (error) {
|
||||
return <Container service={service} error={error}></Container>;
|
||||
}
|
||||
|
||||
const target = mappings.target;
|
||||
if (mappings.limit && parseInt(mappings.limit, 10) > 0) {
|
||||
listItems.splice(mappings.limit);
|
||||
}
|
||||
|
||||
return (
|
||||
<Container service={service}>
|
||||
<div className="flex flex-col w-full">
|
||||
{listItems.length === 0 ? (
|
||||
<div className="bg-theme-200/50 dark:bg-theme-900/20 rounded-sm m-1 flex-1 flex flex-row items-center justify-between p-1 text-xs">
|
||||
<div className="font-thin pl-2">No items found</div>
|
||||
</div>
|
||||
) : (
|
||||
listItems.map((item, index) => {
|
||||
const itemName = shvl.get(item, name, item[name]) ?? "";
|
||||
const itemLabel = shvl.get(item, label, item[label]) ?? "";
|
||||
|
||||
const itemUrl = target
|
||||
? [...target.matchAll(/\{(.*?)\}/g)]
|
||||
.map((match) => match[1])
|
||||
.reduce((url, targetTemplate) => {
|
||||
const value = shvl.get(item, targetTemplate, item[targetTemplate]) ?? "";
|
||||
return url.replaceAll(`{${targetTemplate}}`, value);
|
||||
}, target)
|
||||
: null;
|
||||
const className =
|
||||
"bg-theme-200/50 dark:bg-theme-900/20 rounded-sm m-1 flex-1 flex flex-row items-center justify-between p-1 text-xs";
|
||||
|
||||
return itemUrl ? (
|
||||
<a
|
||||
key={`${itemName}-${index}`}
|
||||
className={classNames(className, "hover:bg-theme-300/50 dark:hover:bg-theme-800/20")}
|
||||
href={itemUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<div className="font-thin pl-2">{itemName}</div>
|
||||
<div className="flex flex-row text-right">
|
||||
<div className="font-bold mr-2">{itemLabel}</div>
|
||||
</div>
|
||||
</a>
|
||||
) : (
|
||||
<div key={`${itemName}-${index}`} className={className}>
|
||||
<div className="font-thin pl-2">{itemName}</div>
|
||||
<div className="flex flex-row text-right">
|
||||
<div className="font-bold mr-2">{itemLabel}</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})
|
||||
)}
|
||||
</div>
|
||||
</Container>
|
||||
);
|
||||
case "list":
|
||||
return (
|
||||
<Container service={service}>
|
||||
|
||||
@@ -8,17 +8,21 @@ export default function Component({ service }) {
|
||||
|
||||
const { data: giteaNotifications, error: giteaNotificationsError } = useWidgetAPI(widget, "notifications");
|
||||
const { data: giteaIssues, error: giteaIssuesError } = useWidgetAPI(widget, "issues");
|
||||
const { data: giteaRepositories, error: giteaRepositoriesError } = useWidgetAPI(widget, "repositories");
|
||||
|
||||
if (giteaNotificationsError || giteaIssuesError) {
|
||||
return <Container service={service} error={giteaNotificationsError ?? giteaIssuesError} />;
|
||||
if (giteaNotificationsError || giteaIssuesError || giteaRepositoriesError) {
|
||||
return (
|
||||
<Container service={service} error={giteaNotificationsError ?? giteaIssuesError ?? giteaRepositoriesError} />
|
||||
);
|
||||
}
|
||||
|
||||
if (!giteaNotifications || !giteaIssues) {
|
||||
if (!giteaNotifications || !giteaIssues || !giteaRepositories) {
|
||||
return (
|
||||
<Container service={service}>
|
||||
<Block label="gitea.notifications" />
|
||||
<Block label="gitea.issues" />
|
||||
<Block label="gitea.pulls" />
|
||||
<Block label="gitea.repositories" />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
@@ -28,6 +32,7 @@ export default function Component({ service }) {
|
||||
<Block label="gitea.notifications" value={giteaNotifications.length} />
|
||||
<Block label="gitea.issues" value={giteaIssues.issues.length} />
|
||||
<Block label="gitea.pulls" value={giteaIssues.pulls.length} />
|
||||
<Block label="gitea.repositories" value={giteaRepositories.data.length} />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,9 @@ const widget = {
|
||||
issues: asJson(data).filter((issue) => !issue.pull_request),
|
||||
}),
|
||||
},
|
||||
repositories: {
|
||||
endpoint: "repos/search",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
60
src/widgets/gitlab/__tests__/component.test.jsx
Normal file
60
src/widgets/gitlab/__tests__/component.test.jsx
Normal file
@@ -0,0 +1,60 @@
|
||||
import { render, screen } from "@testing-library/react";
|
||||
import Component from "widgets/gitlab/component";
|
||||
import { SettingsContext } from "utils/contexts/settings";
|
||||
import React from "react";
|
||||
|
||||
import { __setEndpointMockData, __clearMocks } from "utils/proxy/use-widget-api";
|
||||
|
||||
const mockSettings = {
|
||||
hideErrors: false,
|
||||
};
|
||||
|
||||
const service = {
|
||||
name: "Gitlab",
|
||||
widget: {
|
||||
type: "gitlab",
|
||||
key: "gitlabapikey",
|
||||
url: "https://127.0.0.1",
|
||||
},
|
||||
};
|
||||
|
||||
describe("Gitlab Service Widget", () => {
|
||||
beforeEach(() => {
|
||||
__clearMocks();
|
||||
});
|
||||
|
||||
it("renders while data is pending", () => {
|
||||
render(
|
||||
<SettingsContext.Provider value={{ settings: mockSettings }}>
|
||||
<Component service={service} />
|
||||
</SettingsContext.Provider>,
|
||||
);
|
||||
|
||||
expect(screen.getByText("Groups")).toBeInTheDocument();
|
||||
expect(screen.getByText("Issues")).toBeInTheDocument();
|
||||
expect(screen.getByText("Merge Requests")).toBeInTheDocument();
|
||||
expect(screen.getByText("Projects")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("renders with sample data", () => {
|
||||
__setEndpointMockData("counts", {
|
||||
data: {
|
||||
groups_count: 3,
|
||||
issues_count: 7,
|
||||
merge_requests_count: 2,
|
||||
projects_count: 5,
|
||||
},
|
||||
});
|
||||
|
||||
render(
|
||||
<SettingsContext.Provider value={{ settings: {} }}>
|
||||
<Component service={service} />
|
||||
</SettingsContext.Provider>,
|
||||
);
|
||||
|
||||
expect(screen.getByText("3")).toBeInTheDocument();
|
||||
expect(screen.getByText("7")).toBeInTheDocument();
|
||||
expect(screen.getByText("2")).toBeInTheDocument();
|
||||
expect(screen.getByText("5")).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
@@ -1,5 +1,4 @@
|
||||
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
||||
import { asJson } from "utils/proxy/api-helpers";
|
||||
|
||||
const widget = {
|
||||
api: `{url}/api/v1/{endpoint}`,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import genericProxyHandler from "utils/proxy/handlers/generic";
|
||||
|
||||
const widget = {
|
||||
api: "{url}/api/v1/{key}/{endpoint}/",
|
||||
api: "{url}/api/v1/{key}/{endpoint}",
|
||||
proxyHandler: genericProxyHandler,
|
||||
|
||||
mappings: {
|
||||
|
||||
@@ -18,7 +18,7 @@ export default async function minecraftProxyHandler(req, res) {
|
||||
res.status(200).send({
|
||||
version: pingResponse.status.version.name,
|
||||
online: true,
|
||||
players: pingResponse.status.players.online,
|
||||
players: pingResponse.status.players,
|
||||
});
|
||||
} catch (e) {
|
||||
if (e) logger.error(e);
|
||||
|
||||
@@ -36,14 +36,16 @@ export default function Component({ service }) {
|
||||
|
||||
const printStatsInfo = printStats.result.status.print_stats.info ?? {};
|
||||
const { current_layer: currentLayer = "-", total_layer: totalLayer = "-" } = printStatsInfo;
|
||||
const layers = printStats.result.status.print_stats.state === "standby" ? "- / -" : `${currentLayer} / ${totalLayer}`;
|
||||
const progress =
|
||||
printStats.result.status.print_stats.state === "standby"
|
||||
? "-"
|
||||
: t("common.percent", { value: displayStatus.result.status.display_status.progress * 100 });
|
||||
|
||||
return (
|
||||
<Container service={service}>
|
||||
<Block label="moonraker.layers" value={`${currentLayer} / ${totalLayer}`} />
|
||||
<Block
|
||||
label="moonraker.print_progress"
|
||||
value={t("common.percent", { value: displayStatus.result.status.display_status.progress * 100 })}
|
||||
/>
|
||||
<Block label="moonraker.layers" value={layers} />
|
||||
<Block label="moonraker.print_progress" value={progress} />
|
||||
<Block label="moonraker.print_status" value={printStats.result.status.print_stats.state} />
|
||||
</Container>
|
||||
);
|
||||
|
||||
55
src/widgets/slskd/component.jsx
Normal file
55
src/widgets/slskd/component.jsx
Normal file
@@ -0,0 +1,55 @@
|
||||
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";
|
||||
|
||||
const slskdDefaultFields = ["slskStatus", "downloads", "uploads", "sharedFiles"];
|
||||
const MAX_ALLOWED_FIELDS = 4;
|
||||
|
||||
export default function Component({ service }) {
|
||||
const { t } = useTranslation();
|
||||
const { widget } = service;
|
||||
|
||||
const { data: appData, error: appError } = useWidgetAPI(widget, "application");
|
||||
const { data: downData, error: downError } = useWidgetAPI(widget, "downloads");
|
||||
const { data: upData, error: upError } = useWidgetAPI(widget, "uploads");
|
||||
|
||||
if (appError || downError || upError) {
|
||||
return <Container service={service} error={appError ?? downError ?? upError} />;
|
||||
}
|
||||
|
||||
if (!widget.fields || widget.fields.length === 0) {
|
||||
widget.fields = slskdDefaultFields;
|
||||
} else if (widget.fields?.length > MAX_ALLOWED_FIELDS) {
|
||||
widget.fields = widget.fields.slice(0, MAX_ALLOWED_FIELDS);
|
||||
}
|
||||
|
||||
if (!appData || !downData || !upData) {
|
||||
return (
|
||||
<Container service={service}>
|
||||
<Block label="slskd.slskStatus" />
|
||||
<Block label="slskd.updateStatus" />
|
||||
<Block label="slskd.downloads" />
|
||||
<Block label="slskd.uploads" />
|
||||
<Block label="slskd.sharedFiles" />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<Container service={service}>
|
||||
<Block
|
||||
label="slskd.slskStatus"
|
||||
value={appData.server?.isConnected ? t("slskd.connected") : t("slskd.disconnected")}
|
||||
/>
|
||||
<Block
|
||||
label="slskd.updateStatus"
|
||||
value={appData.version?.isUpdateAvailable ? t("slskd.update_yes") : t("slskd.update_no")}
|
||||
/>
|
||||
<Block label="slskd.downloads" value={t("common.number", { value: downData.length ?? 0 })} />
|
||||
<Block label="slskd.uploads" value={t("common.number", { value: upData.length ?? 0 })} />
|
||||
<Block label="slskd.sharedFiles" value={t("common.number", { value: appData.shares?.files ?? 0 })} />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
21
src/widgets/slskd/widget.js
Normal file
21
src/widgets/slskd/widget.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
||||
import { asJson } from "utils/proxy/api-helpers";
|
||||
|
||||
const widget = {
|
||||
api: `{url}/api/v0/{endpoint}`,
|
||||
proxyHandler: credentialedProxyHandler,
|
||||
|
||||
mappings: {
|
||||
application: {
|
||||
endpoint: "application",
|
||||
},
|
||||
downloads: {
|
||||
endpoint: "transfers/downloads",
|
||||
},
|
||||
uploads: {
|
||||
endpoint: "transfers/uploads",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default widget;
|
||||
@@ -104,6 +104,7 @@ import readarr from "./readarr/widget";
|
||||
import rutorrent from "./rutorrent/widget";
|
||||
import sabnzbd from "./sabnzbd/widget";
|
||||
import scrutiny from "./scrutiny/widget";
|
||||
import slskd from "./slskd/widget";
|
||||
import sonarr from "./sonarr/widget";
|
||||
import speedtest from "./speedtest/widget";
|
||||
import spoolman from "./spoolman/widget";
|
||||
@@ -244,6 +245,7 @@ const widgets = {
|
||||
rutorrent,
|
||||
sabnzbd,
|
||||
scrutiny,
|
||||
slskd,
|
||||
sonarr,
|
||||
speedtest,
|
||||
spoolman,
|
||||
|
||||
Reference in New Issue
Block a user