diff --git a/app.py b/app.py index a8ebdc9..0e964ee 100644 --- a/app.py +++ b/app.py @@ -8,7 +8,7 @@ app.secret_key = 'asdf' app.debug = True with open('config.yaml') as f: - yaml_data = yaml.load(f) + yaml_data = yaml.load(f, Loader=yaml.SafeLoader) search = yaml_data['search'] account_url = yaml_data['accounts']['account_url'] diff --git a/config.yaml b/config.yaml index 608a54f..43a663c 100644 --- a/config.yaml +++ b/config.yaml @@ -8,21 +8,26 @@ accounts: apps: chat: name: "Rocket Chat" - description: "It's rocket chat" - link: "https://rocketchat.tia.moe" + description: "
Stay in touch with your friends, family, and people you've never even met with Technical Incompetence's amazing chat service. Experience the joy's of late-1990s AIM all over again." + link: "https://rocketchat.technicalincompetence.club" + image: "rocketchat.png" cloud: name: "Nextcloud" - description: "It's a cloud" - link: "https://cloud.tia.moe" + description: "
What would Technical Incompetence be without the ability to give up ownership of all your data and store it on our servers. Don't worry though, our servers will probably never crash or lose data so all you care about is safe with us." + link: "https://cloud.technicalincompetence.club" + image: "nextcloud.png" gitea: name: "Gitea" - description: "It's git" - link: "https://git.tia.moe" + description: "
It's git" + link: "https://git.technicalincompetence.club" + image: "gitea.png" jellyfin: name: "Jellyfin" - description: "It's a jellyfin" - link: "https://jellyfin.tia.moe" + description: "
It's a jellyfin" + link: "https://jellyfin.technicalincompetence.club" + image: "jellyfin.png" rss: name: "FreshRSS" - description: "It's rss" - link: "https://rss.tia.moe" \ No newline at end of file + description: "
It's rss" + link: "https://rss.technicalincompetence.club" + image: "freshrss.png" \ No newline at end of file diff --git a/static/images/freshrss.png b/static/images/freshrss.png new file mode 100644 index 0000000..d1a7511 Binary files /dev/null and b/static/images/freshrss.png differ diff --git a/static/images/gitea.png b/static/images/gitea.png new file mode 100644 index 0000000..cbc3712 Binary files /dev/null and b/static/images/gitea.png differ diff --git a/static/images/jellyfin.png b/static/images/jellyfin.png new file mode 100644 index 0000000..29a8a1f Binary files /dev/null and b/static/images/jellyfin.png differ diff --git a/static/images/nextcloud.png b/static/images/nextcloud.png new file mode 100644 index 0000000..6dc6f00 Binary files /dev/null and b/static/images/nextcloud.png differ diff --git a/static/images/rocketchat.png b/static/images/rocketchat.png new file mode 100644 index 0000000..f575da3 Binary files /dev/null and b/static/images/rocketchat.png differ diff --git a/templates/card.j2 b/templates/card.j2 index 8c831fc..18237fe 100644 --- a/templates/card.j2 +++ b/templates/card.j2 @@ -1,9 +1,11 @@
-
+
+ {% if app['image'] is defined %} + + {% endif %}
{{ app['name'] }}

{{ app['description'] }}

- {{ app['link'] }}
\ No newline at end of file diff --git a/templates/index.j2 b/templates/index.j2 index b5627fe..1247108 100644 --- a/templates/index.j2 +++ b/templates/index.j2 @@ -25,6 +25,7 @@


{% endif %} +

It turns out dCloud's amazingness is just too great for this lame internet - we need a new one to maximize our full potential. Welcome to the Technical Incompetence internet. Population - US.

{% for app in apps %} {% include "card.j2" %} @@ -50,5 +51,9 @@ $( ".card" ).hover( $(this).removeClass('shadow-lg'); $(this).removeClass('card-hover'); }); + +function goToLink(link) { + window.location = link; +} {% endblock %} \ No newline at end of file