Add newTab to bookmarks

This commit is contained in:
Bastian Meissner 2022-01-30 12:35:46 +01:00
parent 3d0efe36cd
commit 420d95c6b5
2 changed files with 11 additions and 6 deletions

View file

@ -71,6 +71,7 @@ $ yarn serve:production
``` ```
### Manual install ### Manual install
```bash ```bash
$ git clone https://github.com/phntxx/dashboard.git $ git clone https://github.com/phntxx/dashboard.git
$ cd dashboard/ $ cd dashboard/
@ -80,6 +81,7 @@ $ cp -R build/* .
``` ```
#### `/etc/nginx/conf.d/dashboard.conf` #### `/etc/nginx/conf.d/dashboard.conf`
``` ```
server { server {
server_name localhost; server_name localhost;
@ -101,8 +103,6 @@ $ chown -R www-data:www-data
$ systemctl nginx reload $ systemctl nginx reload
``` ```
## Configuration ## 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. There's a couple of things you can / need to configure to get Dashboard to look and behave just as you want it to.
@ -125,7 +125,8 @@ To show the apps you want to show, change `apps.json` to resemble the following:
"name": "[Name of the app]", "name": "[Name of the app]",
"displayURL": "[URL you want to show]", "displayURL": "[URL you want to show]",
"url": "[URL to redirect to]", "url": "[URL to redirect to]",
"icon": "[Icon code]" "icon": "[Icon code]",
"newTab": true
}, },
... ...
] ]
@ -137,7 +138,8 @@ To show the apps you want to show, change `apps.json` to resemble the following:
"name": "[Name of the app]", "name": "[Name of the app]",
"displayURL": "[URL you want to show]", "displayURL": "[URL you want to show]",
"url": "[URL to redirect to]", "url": "[URL to redirect to]",
"icon": "[Icon code]" "icon": "[Icon code]",
"newTab": false
}, },
... ...
] ]
@ -145,6 +147,7 @@ To show the apps you want to show, change `apps.json` to resemble the following:
``` ```
Wherein either `apps` or `categories` can be omitted as needed. 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](https://material.io/icons/) and copy one of the codes for an icon there. To find icons, simply go to the [Material Design Icon Library](https://material.io/icons/) and copy one of the codes for an icon there.
@ -160,7 +163,8 @@ To show bookmarks, `bookmarks.json` needs to resemble the following:
"items": [ "items": [
{ {
"name": "[Bookmark Name]", "name": "[Bookmark Name]",
"url": "[Bookmark URL]" "url": "[Bookmark URL]",
"newTab": true
}, },
... ...
] ]
@ -170,6 +174,8 @@ To show bookmarks, `bookmarks.json` needs to resemble the following:
} }
``` ```
`newTab` is optional and defaults to `false`.
### Themes ### Themes
In order to customize theming, `themes.json` needs to resemble this: In order to customize theming, `themes.json` needs to resemble this:

View file

@ -1,4 +1,3 @@
import { link } from "fs";
import styled from "styled-components"; import styled from "styled-components";
import { import {
Headline, Headline,