Find a file
Renovate Bot 0f77b108b0
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
Update dependency @types/node to v22.9.3
2024-11-23 05:03:52 +00:00
.woodpecker .woodpecker/.deploy.yaml: add a random message to PR 2024-10-09 14:09:13 +02:00
data remove DroneCI from dashboard 2024-10-17 22:36:39 +02:00
public add favicon 2023-10-23 18:12:37 +02:00
src set default theme 2023-10-23 16:28:29 +02:00
.dockerignore Add dockerignore 2020-05-24 22:31:38 +02:00
.drone.yml change build pipeline to kubernetes 2024-05-29 21:49:39 +02:00
.eslintrc.js Make the build not fail 2022-04-10 21:31:40 +02:00
.gitignore remove snapshots from .gitignore 2021-06-14 11:33:13 +02:00
.prettierrc.js Added tests 2021-06-14 11:29:03 +02:00
codecov.yml add icon and theme tests 2021-06-14 21:10:28 +02:00
CONTRIBUTING.md Update CONTRIBUTING, add Docker to Pipeline 2021-11-22 20:55:10 +01:00
docker-compose.yml docker-compose: tabs → spaces 2021-09-17 14:20:27 +00:00
Dockerfile add docker healthcheck 2024-01-29 20:44:55 +01:00
LICENSE Make the build not fail 2022-04-10 21:31:40 +02:00
nginx.conf Update 2021-03-05 22:00:32 +01:00
package.json Update dependency eslint-plugin-react-hooks to v5 2024-10-11 14:02:20 +00:00
README.md change README.md 2024-07-28 10:21:44 +02:00
renovate.json enable platformAutomerge and backdate one dependency to check if it works 2023-10-23 16:46:43 +02:00
screenshot.png Changed screenshot, updated readme, fixed categories 2020-06-26 17:30:29 +02:00
tsconfig.json Revert "Refactor" 2021-07-16 11:00:15 +02:00
yarn.lock Update dependency @types/node to v22.9.3 2024-11-23 05:03:52 +00:00

Dashboard

Prod:

App Status Website

Staging:

App Status Website

Alt text

Dashboard is just that - a dashboard. It's inspired by SUI and has all the same features as SUI, such as simple customization through JSON-files and a handy search bar to search the internet more efficiently.

Features

So what makes this project different from (or even better than) SUI?

  • "Display URL" functionality (The URL displayed for apps can differ from the actual URL)
  • Categorization for apps
  • Themes and search providers can be changed using JSON
  • Imprint functionality

Installation

The recommended way of installation is using Docker. You could also build your own version from source, but do proceed at your own risk.

Docker

The Docker image is built on top of this image, as it's based on Nginx and also provides functionality to purge the Cloudflare cache every time the container restarts (though this functionality is entirely optional).

The Docker image is available on both DockerHub and the GitHub Container Repository (GHCR, see "packages").

  1. Using the Docker CLI:
$ docker run -d \
  -e CLOUDFLARE_ZONE_ID=[OPTIONAL CLOUDFLARE V4 ZONE ID] \
  -e CLOUDFLARE_PURGE_TOKEN=[OPTIONAL CLOUDFLARE PURGE TOKEN] \
  -v $(pwd)/data:/app/data \
  -p 8080:8080 \
  --name=dashboard \
  phntxx/dashboard
  1. Using Docker-Compose:
version: "3"

services:
  dashboard:
    image: phntxx/dashboard:latest
    restart: unless-stopped
    environment:
      - CLOUDFLARE_ZONE_ID=[OPTIONAL CLOUDFLARE V4 ZONE ID]
      - CLOUDFLARE_PURGE_TOKEN=[OPTIONAL CLOUDFLARE PURGE TOKEN]
    volumes:
      - [path to data directory]:/app/data
    ports:
      - 8080:8080

Compile from source

I really don't anticipate people to use this, so go forth at your own risk.

$ git clone https://github.com/phntxx/dashboard.git
$ cd dashboard/
$ yarn
$ yarn build
$ yarn serve:production

Manual install

$ git clone https://github.com/phntxx/dashboard.git
$ cd dashboard/
$ yarn
$ yarn build
$ cp -R build/* .

/etc/nginx/conf.d/dashboard.conf

server {
        server_name localhost;
        listen 8080;
        root /var/www/dashboard/html/;

        location / {
                index index.html index.htm;
        }
}
$ cd ..
$ mkdir /var/www/dashboard
$ mv dashboard/ html
$ mv html/ /var/www/dashboard
$ chown -R www-data:www-data
$ systemctl nginx reload

Configuration

There's a couple of things you can / need to configure to get Dashboard to look and behave just as you want it to.

If you don't require a specific component, just remove the file from your data-directory. Dashboard won't render the components whose files are not present. With no files present, only the greeter will be shown.

If you're running into problems with configuring your files and you can't seem to get them to work, feel free to open an issue, I'd be happy to help! 😄

Apps

To show the apps you want to show, change apps.json to resemble the following:

{
  "categories": [
    {
      "name": "[Name of the category]",
      "items": [
        {
          "name": "[Name of the app]",
          "displayURL": "[URL you want to show]",
          "url": "[URL to redirect to]",
          "icon": "[Icon code]",
          "newTab": true
        },
        ...
      ]
    },
    ...
  ],
  "apps": [
    {
      "name": "[Name of the app]",
      "displayURL": "[URL you want to show]",
      "url": "[URL to redirect to]",
      "icon": "[Icon code]",
      "newTab": false
    },
    ...
  ]
}

Wherein either apps or categories can be omitted as needed. newTab is optional and defaults to false.

To find icons, simply go to the Material Design Icon Library and copy one of the codes for an icon there.

Bookmarks

To show bookmarks, bookmarks.json needs to resemble the following:

{
  "groups": [
    {
      "name": "[Group Name]",
      "items": [
        {
          "name": "[Bookmark Name]",
          "url": "[Bookmark URL]",
          "newTab": true
        },
        ...
      ]
    },
    ...
  ]
}

newTab is optional and defaults to false.

Themes

In order to customize theming, themes.json needs to resemble this:

{
  "themes": [
    {
      "label": "[Theme Name]",
      "value": "[Number of the theme]",
      "mainColor": "[Main Color as 6-character hex code]",
      "accentColor": "[Accent Color as 6-character hex code]",
      "backgroundColor": "[Background Color as 6-character hex code]"
    },
    ...
  ]
}

Search Providers

For search providers to work, make sure your search.json resembles the following:

{
  "providers": [
    {
      "name": "[Name of the website]",
      "url": "[Link that processes searches on that website]",
      "prefix": "[A custom prefix (e.g. '/test')]"
    },
    ...
  ]
}

You can also customize whether or not the search bar automatically focusses on render by adding the following to search.json, on the same level where properties like providers are located:

  "autoFocus": true,

Imprint

In order for the imprint-modal to show up, make sure your imprint.json resembles the following:

{
  "imprint": {
    "name": {
      "text": "[Name]",
      "link": "[Link to the name (to e.g. a portfolio)]"
    },
    "address": {
      "text": "[Address]",
      "link": "[Link for the address (to e.g. Google Maps)]"
    },
    "phone": {
      "text": "[Phone number]",
      "link": "[Link for the phone number]"
    },
    "email": {
      "text": "[Email address]",
      "link": "[Link for the email address (e.g. for 'mailto')]"
    },
    "url": {
      "text": "[URL]",
      "link": "[Link for the URL]"
    },
    "text": "[Text for the imprint]"
  }
}

I haven't quite tested this. I'm not a lawyer and I'm not responsible if you're sued for using this incorrectly.