From c53f3adff5632424a2e7217a8683d5137c4fca94 Mon Sep 17 00:00:00 2001 From: Marcus Kimpenhaus Date: Mon, 12 Jul 2021 08:59:43 +0200 Subject: [PATCH 1/2] Added optional target attributes to handlbars template an apps/links collection --- apps.json | 2 +- index.html | 16 ++++++++-------- links.json | 9 ++++++--- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/apps.json b/apps.json index 9186d2d..8958e0e 100755 --- a/apps.json +++ b/apps.json @@ -1,6 +1,6 @@ { "apps" : [ - {"name":"Bazarr","url":"subs.example.com","icon":"message-video"}, + {"name":"Bazarr","url":"subs.example.com","icon":"message-video", "target": "_blank"}, {"name":"CloudCMD","url":"files.example.com","icon":"folder-multiple-outline"}, {"name":"Cockpit","url":"cp.example.com","icon":"airplane"}, {"name":"Feedbin","url":"rss.example.com","icon":"rss"}, diff --git a/index.html b/index.html index 8e5a748..67d11ef 100755 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ - + +
- + @@ -102,11 +102,11 @@ {{/bookmarks}} - +
@@ -121,6 +121,6 @@ - + diff --git a/links.json b/links.json index 9c29431..f4b1272 100755 --- a/links.json +++ b/links.json @@ -13,7 +13,8 @@ }, { "name": "Slack", - "url": "https://slack.com/signin" + "url": "https://slack.com/signin", + "target": "_blank" } ] }, @@ -22,11 +23,13 @@ "links": [ { "name": "Box", - "url": "https://box.com" + "url": "https://box.com", + "target": "sui" }, { "name": "Dropbox", - "url": "https://dropbox.com" + "url": "https://dropbox.com", + "target": "sui" }, { "name": "Drive", From 93b20aa5df56bcb6d983d3880bf6f4601a54bb7b Mon Sep 17 00:00:00 2001 From: Marcus Kimpenhaus Date: Mon, 12 Jul 2021 09:14:21 +0200 Subject: [PATCH 2/2] updated readme.md to reflect changes on target attribute --- README.md | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index e4a918e..5ba434e 100755 --- a/README.md +++ b/README.md @@ -9,13 +9,13 @@ #### Prerequisites: - Docker: [Linux](https://docs.docker.com/install/linux/docker-ce/debian/), [Mac](https://hub.docker.com/editions/community/docker-ce-desktop-mac), [Windows](https://hub.docker.com/editions/community/docker-ce-desktop-windows) - - [Docker-compose](https://docs.docker.com/compose/install/) + - [Docker-compose](https://docs.docker.com/compose/install/) #### Install: - `git clone` this repository - Build and bring up with `docker-compose up -d` - - The page should be available at `http://localhost:4000` + - The page should be available at `http://localhost:4000` To run at a different port open edit docker-compose.yml: @@ -33,7 +33,7 @@ Add your apps by editing apps.json: { "apps" : [ {"name":"Name of app 1","url":"sub1.example.com","icon":"icon-name"}, - {"name":"Name of app 2","url":"sub2.example.com","icon":"icon-name"} + {"name":"Name of app 2","url":"sub2.example.com","icon":"icon-name","target":"optionals"} ] } @@ -47,29 +47,30 @@ Please note: Add your bookmarks by editing links.json: ``` -{ - "bookmarks":[ - { +{ + "bookmarks":[ + { "category":"Category1", - "links":[ - { + "links":[ + { "name":"Link1", "url":"http://example.com" }, - { + { "name":"Link2", - "url":"http://example.com" + "url":"http://example.com", + "target":"optionals" } ] }, - { + { "category":"Category2", - "links":[ - { + "links":[ + { "name":"Link1", "url":"http://example.com" }, - { + { "name":"Link2", "url":"http://example.com" }