From 44fdeb7848060f745a8b7253cdc1f329a5ba0d5f Mon Sep 17 00:00:00 2001 From: klmhsb42 Date: Sat, 26 Oct 2024 11:48:27 +0200 Subject: [PATCH 1/5] feat: add settings and detail page to apps --- app-categories.json | 12 + app-detail.html | 209 ++++++++++++++ apps.html | 44 +-- apps.json | 648 +++++++++++++++++++++++++++++++++----------- css/apps.css | 155 +++++++++++ js/app-detail.js | 158 +++++++++++ js/apps.js | 124 +++++++++ 7 files changed, 1181 insertions(+), 169 deletions(-) create mode 100644 app-categories.json create mode 100644 app-detail.html create mode 100644 css/apps.css create mode 100644 js/app-detail.js create mode 100644 js/apps.js diff --git a/app-categories.json b/app-categories.json new file mode 100644 index 0000000..ede43dc --- /dev/null +++ b/app-categories.json @@ -0,0 +1,12 @@ +{ + "all": "All apps", + "file-sharing": "File Sharing & Synchronization", + "social-networks": "Social Networks & Communication", + "mail-messaging": "Mail & Messaging", + "media-entertainment": "Media & Entertainment", + "productivity-collaboration": "Productivity & Collaboration", + "security-privacy": "Security & Privacy", + "development-version-control": "Development & Version Control", + "home-automation": "Home Automation & Management", + "utilities-others": "Utilities & Others" +} diff --git a/app-detail.html b/app-detail.html new file mode 100644 index 0000000..93ae92c --- /dev/null +++ b/app-detail.html @@ -0,0 +1,209 @@ + + + + + Apps | Syncloud + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

Apps

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps.html b/apps.html index 12a1fd1..fb31b68 100644 --- a/apps.html +++ b/apps.html @@ -22,6 +22,9 @@ + + + @@ -34,25 +37,40 @@

Apps

+ + @@ -66,15 +84,9 @@

Apps

- - + + + - + + + - +
About the project @@ -126,9 +129,12 @@

Apps



Repository
<%= app.projectcode %> 

License +

<%= app.projectlicense %> 

Bug reporting
<%= app.projectissues %>  +

Stars +
About the app @@ -138,6 +144,8 @@

Apps


<%= app.appdocs %> 

Bug reporting
<%= app.appissues %>  +

Version +
@@ -152,7 +160,7 @@

Apps

Embed - @@ -165,6 +173,7 @@

Apps

<a href="#" target="_blank"> <img src="https://github.com/syncloud/syncloud.org/raw/master/images/badge_bright.svg" alt="Syncloud App"> </a> +
diff --git a/apps.html b/apps.html index fb31b68..f67e131 100644 --- a/apps.html +++ b/apps.html @@ -37,19 +37,32 @@

Apps

diff --git a/apps.json b/apps.json index 61061a9..be8c716 100644 --- a/apps.json +++ b/apps.json @@ -6,6 +6,7 @@ "description": "Access & share your files from any device", "appcode": "https://github.com/syncloud/nextcloud", "appdocs": "https://github.com/syncloud/platform/wiki/Nextcloud", + "appdronefile": "https://raw.githubusercontent.com/syncloud/nextcloud/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/nextcloud/server", "projectwebsite": "https://nextcloud.com/", "projectreadme": "https://github.com/nextcloud/server/blob/master/README.md", @@ -13,6 +14,7 @@ "projectlicense": "https://github.com/nextcloud/server/blob/master/COPYING", "projectimgs": ["https://raw.githubusercontent.com/nextcloud/screenshots/refs/heads/master/files/Contacts%20Menu.png", "https://raw.githubusercontent.com/nextcloud/screenshots/refs/heads/master/files/Files%20Overview.png", "https://raw.githubusercontent.com/nextcloud/screenshots/refs/heads/master/files/Welcome%20screen.png"], "projectissues": "https://github.com/nextcloud/server/issues", + "projectrepoapi": "https://api.github.com/repositories/60243197", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "file-sharing" }, @@ -22,13 +24,15 @@ "description": "A privacy-aware, distributed, open source social network", "appcode": "https://github.com/syncloud/diaspora", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/diaspora/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/diaspora/diaspora", "projectwebsite": "https://diasporafoundation.org/", "projectreadme": "https://github.com/diaspora/diaspora/blob/main/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/diaspora/diaspora/refs/heads/main/README.md", "projectlicense": "https://github.com/diaspora/diaspora/blob/main/LICENSE.md", - "projectimgs": [], + "projectimgs": ["https://upload.wikimedia.org/wikipedia/commons/5/58/Diaspora_latest.png","https://upload.wikimedia.org/wikipedia/commons/archive/5/58/20170831022234!Diaspora_latest.png"], "projectissues": "https://github.com/diaspora/diaspora/issues", + "projectrepoapi": "https://api.github.com/repositories/911765", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "social-networks" }, @@ -38,13 +42,15 @@ "description": "Mail with Web interface and compatible with popular mail apps", "appcode": "https://github.com/syncloud/mail", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/mail/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/roundcube/roundcubemail", "projectwebsite": "https://roundcube.net/", "projectreadme": "https://github.com/roundcube/roundcubemail/blob/master/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/roundcube/roundcubemail/refs/heads/master/README.md", "projectlicense": "https://github.com/roundcube/roundcubemail/blob/master/LICENSE", - "projectimgs": [], + "projectimgs": ["https://roundcube.net/screens/skins/elastic/desktop/screens/mailbox_widescreen.png","https://roundcube.net/screens/skins/elastic/desktop/screens/contacts.png"], "projectissues": "https://github.com/roundcube/roundcubemail/issues", + "projectrepoapi": "https://api.github.com/repositories/4224042", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "mail-messaging" }, @@ -54,6 +60,7 @@ "description": "Simple file browser", "appcode": "https://github.com/syncloud/files", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/files/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/syncloud/files", "projectwebsite": "https://github.com/syncloud/files", "projectreadme": "", @@ -61,6 +68,7 @@ "projectlicense": "https://github.com/syncloud/files/blob/main/LICENSE", "projectimgs": [], "projectissues": "https://github.com/syncloud/files/issues", + "projectrepoapi": "https://api.github.com/repositories/55784707", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "file-sharing" }, @@ -70,13 +78,15 @@ "description": "Text, voice and video chat", "appcode": "https://github.com/syncloud/rocketchat", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/rocketchat/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/RocketChat/Rocket.Chat", "projectwebsite": "https://rocket.chat/", "projectreadme": "https://github.com/RocketChat/Rocket.Chat/blob/develop/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/RocketChat/Rocket.Chat/refs/heads/develop/README.md", "projectlicense": "https://github.com/RocketChat/Rocket.Chat/blob/develop/LICENSE", - "projectimgs": [], + "projectimgs": ["https://camo.githubusercontent.com/fcecafb4fdb35d736ae202333079097c2e9f337b84844ef8674ccbc6ecaf4acf/68747470733a2f2f676c6f62616c2d75706c6f6164732e776562666c6f772e636f6d2f3631316131396239383533623734313461306636623366362f3633313963373262626438616635633863323265666162365f6865726f496d6167652e77656270"], "projectissues": "https://github.com/RocketChat/Rocket.Chat/issues", + "projectrepoapi": "https://api.github.com/repositories/35866694", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "social-networks" }, @@ -86,13 +96,15 @@ "description": "Distributed version control system", "appcode": "https://github.com/syncloud/gogs", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/gogs/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/gogs/gogs", "projectwebsite": "https://gogs.io/", "projectreadme": "https://gogs.io/docs/intro", "projectreadmeraw": "", "projectlicense": "https://github.com/gogs/gogs/blob/master/LICENSE", - "projectimgs": [], + "projectimgs": ["https://gogs.io/img/screenshots/1.png","https://gogs.io/img/screenshots/2.png","https://gogs.io/img/screenshots/3.png","https://gogs.io/img/screenshots/4.png"], "projectissues": "https://github.com/gogs/gogs/issues", + "projectrepoapi": "https://api.github.com/repositories/16752620", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "development-version-control" }, @@ -102,13 +114,15 @@ "description": "Continuous File Synchronization", "appcode": "https://github.com/syncloud/syncthing", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/syncthing/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/syncthing/syncthing", "projectwebsite": "https://syncthing.net/", "projectreadme": "https://github.com/syncthing/syncthing/blob/main/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/syncthing/syncthing/refs/heads/main/README.md", "projectlicense": "https://github.com/syncthing/syncthing/blob/main/LICENSE", - "projectimgs": [], + "projectimgs": ["https://docs.syncthing.net/_images/gui1.png"], "projectissues": "https://github.com/syncthing/syncthing/issues", + "projectrepoapi": "https://api.github.com/repositories/14712850", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "file-sharing" }, @@ -118,13 +132,15 @@ "description": "Blogging, mailing lists and forums, media galleries, and online stores", "appcode": "https://github.com/syncloud/wordpress", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/wordpress/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/WordPress/WordPress", "projectwebsite": "https://wordpress.org/", "projectreadme": "https://wordpress.org/about/readme.html", "projectreadmeraw": "https://raw.githubusercontent.com/WordPress/WordPress/refs/heads/master/readme.html", "projectlicense": "https://github.com/WordPress/WordPress/blob/trunk/LICENSE", - "projectimgs": [], + "projectimgs": ["https://upload.wikimedia.org/wikipedia/commons/c/c6/WordPress_PostEdit.png","https://upload.wikimedia.org/wikipedia/commons/a/a2/WordPress_MP6_dashboard.png"], "projectissues": "https://github.com/WordPress/WordPress/issues", + "projectrepoapi": "https://api.github.com/repositories/2889328", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "productivity-collaboration" }, @@ -134,13 +150,15 @@ "description": "Standard Notes is an easy-to-use encrypted note-taking app", "appcode": "https://github.com/syncloud/standardnotes", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/standardnotes/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/standardnotes/server", "projectwebsite": "https://standardnotes.org/", "projectreadme": "https://github.com/standardnotes/server/blob/main/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/standardnotes/server/refs/heads/main/README.md", "projectlicense": "https://github.com/standardnotes/server/blob/main/LICENSE", "projectimgs": [], - "projectissues": "https://github.com/standardnotes/standardnotes/issues", + "projectissues": "https://github.com/standardnotes/server/issues", + "projectrepoapi": "https://api.github.com/repositories/504488350", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "productivity-collaboration" }, @@ -150,6 +168,7 @@ "description": "User management app", "appcode": "https://github.com/syncloud/users", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/users/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/syncloud/users", "projectwebsite": "https://github.com/syncloud/users", "projectreadme": "", @@ -157,6 +176,7 @@ "projectlicense": "https://github.com/syncloud/users/blob/main/LICENSE", "projectimgs": [], "projectissues": "https://github.com/syncloud/users/issues", + "projectrepoapi": "https://api.github.com/repositories/156185918", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "utilities-others" }, @@ -166,13 +186,15 @@ "description": "Network-wide Ad Blocking", "appcode": "https://github.com/syncloud/pihole", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/pihole/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/pi-hole/pi-hole", "projectwebsite": "https://pi-hole.net/", "projectreadme": "https://github.com/pi-hole/pi-hole/blob/master/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/pi-hole/pi-hole/refs/heads/master/README.md", "projectlicense": "https://github.com/pi-hole/pi-hole/blob/master/LICENSE", - "projectimgs": [], + "projectimgs": ["https://wp-cdn.pi-hole.net/wp-content/uploads/2020/04/Dashboard.png","https://wp-cdn.pi-hole.net/wp-content/uploads/2018/12/Screenshot-2018-12-19-17.39.58.png"], "projectissues": "https://github.com/pi-hole/pi-hole/issues", + "projectrepoapi": "https://api.github.com/repositories/20619036", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "security-privacy" }, @@ -182,6 +204,7 @@ "description": "Secure connection to your Syncloud device over the Internet", "appcode": "https://github.com/syncloud/openvpn", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/openvpn/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/OpenVPN/openvpn", "projectwebsite": "https://openvpn.net/", "projectreadme": "https://github.com/OpenVPN/openvpn/blob/master/README", @@ -189,6 +212,7 @@ "projectlicense": "https://github.com/OpenVPN/openvpn/blob/master/COPYING", "projectimgs": [], "projectissues": "https://github.com/OpenVPN/openvpn/issues", + "projectrepoapi": "https://api.github.com/repositories/4151993", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "security-privacy" }, @@ -198,13 +222,15 @@ "description": "Free movies and TV plus all your personal media libraries on every device. Master your Mediaverse", "appcode": "https://github.com/syncloud/plex", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/plex/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/plexinc/pms-docker", "projectwebsite": "https://www.plex.tv/", "projectreadme": "https://github.com/plexinc/pms-docker/blob/master/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/plexinc/pms-docker/refs/heads/master/README.md", - "projectlicense": "https://github.com/plexinc/plex-media-server/blob/master/LICENSE", + "projectlicense": "https://github.com/plexinc/pms-docker/blob/master/LICENSE", "projectimgs": [], - "projectissues": "https://github.com/plexinc/plex-media-server/issues", + "projectissues": "https://github.com/plexinc/pms-docker/issues", + "projectrepoapi": "https://api.github.com/repositories/75842869", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "media-entertainment" }, @@ -214,13 +240,15 @@ "description": "Password Manager", "appcode": "https://github.com/syncloud/bitwarden", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/bitwarden/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/bitwarden/server", "projectwebsite": "https://bitwarden.com/", "projectreadme": "https://github.com/bitwarden/server/blob/main/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/bitwarden/server/refs/heads/main/README.md", "projectlicense": "https://github.com/bitwarden/server/blob/master/LICENSE", - "projectimgs": [], + "projectimgs": ["https://raw.githubusercontent.com/bitwarden/brand/refs/heads/main/screenshots/apps-combo-logo.png","https://raw.githubusercontent.com/bitwarden/brand/refs/heads/main/screenshots/web-vault.png"], "projectissues": "https://github.com/bitwarden/server/issues", + "projectrepoapi": "https://api.github.com/repositories/46755185", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "security-privacy" }, @@ -230,13 +258,15 @@ "description": "Home automation software designed to be the central control system for smart home devices", "appcode": "https://github.com/syncloud/home-assistant", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/home-assistant/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/home-assistant/core", "projectwebsite": "https://www.home-assistant.io/", "projectreadme": "https://github.com/home-assistant/core/blob/dev/README.rst", "projectreadmeraw": "https://raw.githubusercontent.com/home-assistant/core/refs/heads/dev/README.rst", "projectlicense": "https://github.com/home-assistant/core/blob/master/LICENSE", - "projectimgs": [], + "projectimgs": ["https://raw.githubusercontent.com/home-assistant/core/dev/.github/assets/screenshot-states.png"], "projectissues": "https://github.com/home-assistant/core/issues", + "projectrepoapi": "https://api.github.com/repositories/12888993", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "home-automation" }, @@ -246,13 +276,15 @@ "description": "The Free Software Media System", "appcode": "https://github.com/syncloud/jellyfin", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/jellyfin/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/jellyfin/jellyfin", "projectwebsite": "https://jellyfin.org/", "projectreadme": "https://github.com/jellyfin/jellyfin/blob/master/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/jellyfin/jellyfin/master/README.md", "projectlicense": "https://github.com/jellyfin/jellyfin/blob/master/LICENSE", - "projectimgs": [], + "projectimgs": ["https://jellyfin.org/assets/images/10.8-home-4a73a92bf90d1eeffa5081201ca9c7bb.png","https://jellyfin.org/assets/images/10.8-library-9c07ba46877a03e749c0c8b5ed157e53.png"], "projectissues": "https://github.com/jellyfin/jellyfin/issues", + "projectrepoapi": "https://api.github.com/repositories/161012019", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "media-entertainment" }, @@ -262,13 +294,15 @@ "description": "Collabora Online to edit your Nextcloud Office documents", "appcode": "https://github.com/syncloud/collabora", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/collabora/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/CollaboraOnline/online", "projectwebsite": "https://www.collaboraoffice.com/", "projectreadme": "https://github.com/CollaboraOnline/online/blob/master/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/CollaboraOnline/online/master/README.md", "projectlicense": "https://github.com/CollaboraOnline/online/blob/master/LICENSE", - "projectimgs": [], + "projectimgs": ["https://raw.githubusercontent.com/CollaboraOnline/CollaboraOnline.github.io/master/static/images/homepage-image.png"], "projectissues": "https://github.com/CollaboraOnline/online/issues", + "projectrepoapi": "https://api.github.com/repositories/300155217", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "productivity-collaboration" }, @@ -278,13 +312,15 @@ "description": "Social Network", "appcode": "https://github.com/syncloud/mastodon", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/mastodon/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/mastodon/mastodon", "projectwebsite": "https://joinmastodon.org/", "projectreadme": "https://github.com/mastodon/mastodon/blob/main/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/mastodon/mastodon/main/README.md", "projectlicense": "https://github.com/mastodon/mastodon/blob/main/LICENSE", - "projectimgs": [], + "projectimgs": ["https://upload.wikimedia.org/wikipedia/commons/1/13/Mastodon_Single-column-layout.png"], "projectissues": "https://github.com/mastodon/mastodon/issues", + "projectrepoapi": "https://api.github.com/repositories/52281283", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "social-networks" }, @@ -294,13 +330,15 @@ "description": "Groceries & household management", "appcode": "https://github.com/syncloud/grocy", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/grocy/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/grocy/grocy", "projectwebsite": "https://grocy.info/", "projectreadme": "https://github.com/grocy/grocy/blob/master/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/grocy/grocy/master/README.md", "projectlicense": "https://github.com/grocy/grocy/blob/master/LICENSE", - "projectimgs": [], + "projectimgs": ["https://raw.githubusercontent.com/grocy/grocy/master/.github/publication_assets/stock.png","https://raw.githubusercontent.com/grocy/grocy/master/.github/publication_assets/shoppinglist.png","https://raw.githubusercontent.com/grocy/grocy/master/.github/publication_assets/mealplan.png","https://raw.githubusercontent.com/grocy/grocy/master/.github/publication_assets/chores.png"], "projectissues": "https://github.com/grocy/grocy/issues", + "projectrepoapi": "https://api.github.com/repositories/88370518", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "home-automation" }, @@ -310,13 +348,15 @@ "description": "An open network for secure, decentralized communication", "appcode": "https://github.com/syncloud/matrix", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/matrix/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/element-hq/synapse", - "projectwebsite": "https://matrix.org/", + "projectwebsite": "https://element.io/", "projectreadme": "https://github.com/element-hq/synapse/blob/develop/README.rst", "projectreadmeraw": "https://raw.githubusercontent.com/element-hq/synapse/refs/heads/develop/README.rst", - "projectlicense": "https://github.com/matrix-org/synapse/blob/master/LICENSE", - "projectimgs": [], - "projectissues": "https://github.com/matrix-org/synapse/issues", + "projectlicense": "https://github.com/element-hq/synapse/blob/master/LICENSE", + "projectimgs": ["https://element.io/blog/content/images/2020/07/Screenshot-2020-07-15-at-00.54.45.png"], + "projectissues": "https://github.com/element-hq/synapse/issues", + "projectrepoapi": "https://api.github.com/repositories/731190011", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "social-networks" }, @@ -326,6 +366,7 @@ "description": "Intrusion prevention system", "appcode": "https://github.com/syncloud/crowdsec", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/crowdsec/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/crowdsecurity/crowdsec", "projectwebsite": "https://crowdsec.net/", "projectreadme": "https://github.com/crowdsecurity/crowdsec/blob/master/README.md", @@ -333,6 +374,7 @@ "projectlicense": "https://github.com/crowdsecurity/crowdsec/blob/main/LICENSE", "projectimgs": [], "projectissues": "https://github.com/crowdsecurity/crowdsec/issues", + "projectrepoapi": "https://api.github.com/repositories/264154402", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "security-privacy" }, @@ -342,13 +384,15 @@ "description": "Browsing, reading and downloading eBooks", "appcode": "https://github.com/syncloud/calibre", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/calibre/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/janeczku/calibre-web", "projectwebsite": "https://github.com/janeczku/calibre-web", "projectreadme": "https://github.com/janeczku/calibre-web/blob/master/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/janeczku/calibre-web/master/README.md", "projectlicense": "https://github.com/janeczku/calibre-web/blob/master/LICENSE", - "projectimgs": [], + "projectimgs": ["https://raw.githubusercontent.com/wiki/janeczku/calibre-web/images/main_screen.png"], "projectissues": "https://github.com/janeczku/calibre-web/issues", + "projectrepoapi": "https://api.github.com/repositories/40089578", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "utilities-others" }, @@ -358,6 +402,7 @@ "description": "AirPlay audio player", "appcode": "https://github.com/syncloud/shairport", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/shairport/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/mikebrady/shairport-sync", "projectwebsite": "https://github.com/mikebrady/shairport-sync", "projectreadme": "https://github.com/mikebrady/shairport-sync/blob/master/README.md", @@ -365,6 +410,7 @@ "projectlicense": "https://github.com/mikebrady/shairport-sync/blob/master/LICENSE", "projectimgs": [], "projectissues": "https://github.com/mikebrady/shairport-sync/issues", + "projectrepoapi": "https://api.github.com/repositories/19316865", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "media-entertainment" }, @@ -374,13 +420,15 @@ "description": "AI-Powered Photos App for the Decentralized Web. We are on a mission to protect your freedom and privacy", "appcode": "https://github.com/syncloud/photoprism", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/photoprism/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/photoprism/photoprism", "projectwebsite": "https://photoprism.app/", "projectreadme": "https://github.com/photoprism/photoprism/blob/develop/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/photoprism/photoprism/refs/heads/develop/README.md", "projectlicense": "https://github.com/photoprism/photoprism/blob/main/LICENSE", - "projectimgs": [], + "projectimgs": ["https://camo.githubusercontent.com/baaeaca838da42c0087dcb2617311e8c342d0c244007d24d9bffc16a1225a746/68747470733a2f2f646c2e70686f746f707269736d2e6170702f696d672f75692f7365617263682d63617264732d766965772e6a7067"], "projectissues": "https://github.com/photoprism/photoprism/issues", + "projectrepoapi": "https://api.github.com/repositories/119160553", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "media-entertainment" }, @@ -390,6 +438,7 @@ "description": "Generative artificial intelligence (generative AI) model that produces unique photorealistic images from text and image prompts", "appcode": "https://github.com/syncloud/stable-diffusion", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/stable-diffusion/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/CompVis/stable-diffusion", "projectwebsite": "https://stability.ai/", "projectreadme": "https://github.com/CompVis/stable-diffusion/blob/main/README.md", @@ -397,6 +446,7 @@ "projectlicense": "https://github.com/CompVis/stable-diffusion/blob/main/LICENSE", "projectimgs": [], "projectissues": "https://github.com/CompVis/stable-diffusion/issues", + "projectrepoapi": "https://api.github.com/repositories/523379232", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "development-version-control" }, @@ -406,6 +456,7 @@ "description": "A Fast, Easy and Free Bittorrent Client", "appcode": "https://github.com/syncloud/transmission", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/transmission/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/transmission/transmission", "projectwebsite": "https://transmissionbt.com/", "projectreadme": "https://github.com/transmission/transmission/blob/master/README.md", @@ -413,6 +464,7 @@ "projectlicense": "https://github.com/transmission/transmission/blob/master/LICENSE", "projectimgs": [], "projectissues": "https://github.com/transmission/transmission/issues", + "projectrepoapi": "https://api.github.com/repositories/35129809", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "utilities-others" }, @@ -422,13 +474,15 @@ "description": "NVR With Realtime Object Detection for IP Cameras", "appcode": "https://github.com/syncloud/frigate", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/frigate/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/blakeblackshear/frigate", "projectwebsite": "https://frigate.video/", "projectreadme": "https://github.com/blakeblackshear/frigate/blob/master/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/blakeblackshear/frigate/master/README.md", "projectlicense": "https://github.com/blakeblackshear/frigate/blob/master/LICENSE", - "projectimgs": [], + "projectimgs": ["https://private-user-images.githubusercontent.com/569905/337930841-5e713cb9-9db5-41dc-947a-6937c3bc376e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzE4NjU4NjcsIm5iZiI6MTczMTg2NTU2NywicGF0aCI6Ii81Njk5MDUvMzM3OTMwODQxLTVlNzEzY2I5LTlkYjUtNDFkYy05NDdhLTY5MzdjM2JjMzc2ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQxMTE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MTExN1QxNzQ2MDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yZTM1ZTMwMTk1YWE0OWMzMThlNDVhMjM5ZmFjMTQyNGE3ZjQ1MjQ4Njg4N2RjMzVmN2U2NDkyZmMwZmQzY2ZjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.dpueZckhY6b5JjlqM_7SxZx5K862cNQzNA2Ew-U8z4Q","https://private-user-images.githubusercontent.com/569905/337930862-6fed96e8-3b18-40e5-9ddc-31e6f3c9f2ff.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzE4NjU4NjcsIm5iZiI6MTczMTg2NTU2NywicGF0aCI6Ii81Njk5MDUvMzM3OTMwODYyLTZmZWQ5NmU4LTNiMTgtNDBlNS05ZGRjLTMxZTZmM2M5ZjJmZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQxMTE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MTExN1QxNzQ2MDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01Nzk4Y2Q4NmJjNjU1ZmM4MjNjNjU0ZmIxODU4YzM4YjQzOGY1NDU5YjgzMjVmZTg2ZTBkOTZmZDFkNTkzYzNmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.CW2pITXkfTkNVJPyi5hZp5_EgtkHTlxRODT6ysAe7Wc","https://private-user-images.githubusercontent.com/569905/337930873-d6788a15-0eeb-4427-a8d4-80b93cae3d74.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzE4NjU4NjcsIm5iZiI6MTczMTg2NTU2NywicGF0aCI6Ii81Njk5MDUvMzM3OTMwODczLWQ2Nzg4YTE1LTBlZWItNDQyNy1hOGQ0LTgwYjkzY2FlM2Q3NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQxMTE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MTExN1QxNzQ2MDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00MTVhNWJmNmUxYWVkMWMzZmU5MzY3ODJmNDdhNGIyMzE1ZDFjNDkyMDhiNTUzMDkzOWQ3NDQ4ZDk1YmY0YWRiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.bIYOz7lSTBsti_qbhJqufHk6Tm4w6oylG0T0fCDhsac"], "projectissues": "https://github.com/blakeblackshear/frigate/issues", + "projectrepoapi": "https://api.github.com/repositories/167694194", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "utilities-others" }, @@ -438,6 +492,7 @@ "description": "Download videos from YouTube", "appcode": "https://github.com/syncloud/youtube", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/youtube/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/yt-dlp/yt-dlp", "projectwebsite": "https://github.com/yt-dlp/yt-dlp", "projectreadme": "https://github.com/yt-dlp/yt-dlp/blob/master/README.md", @@ -445,6 +500,7 @@ "projectlicense": "https://github.com/yt-dlp/yt-dlp/blob/master/LICENSE", "projectimgs": [], "projectissues": "https://github.com/yt-dlp/yt-dlp/issues", + "projectrepoapi": "https://api.github.com/repositories/307260205", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "media-entertainment" }, @@ -454,13 +510,15 @@ "description": "Decentralized video platform", "appcode": "https://github.com/syncloud/peertube", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/peertube/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/Chocobozzz/PeerTube", "projectwebsite": "https://joinpeertube.org/", "projectreadme": "https://github.com/Chocobozzz/PeerTube/blob/develop/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/Chocobozzz/PeerTube/develop/README.md", "projectlicense": "https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE", - "projectimgs": [], + "projectimgs": ["https://camo.githubusercontent.com/af4fce67518f837f1e6e6362109af867d5ad8252b352ddda156404341a69633b/68747470733a2f2f6c7574696d2e6370792e72652f39434c58683059732e706e67"], "projectissues": "https://github.com/Chocobozzz/PeerTube/issues", + "projectrepoapi": "https://api.github.com/repositories/45213667", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "media-entertainment" }, @@ -470,13 +528,15 @@ "description": "Secure and high quality meetings", "appcode": "https://github.com/syncloud/jitsimeet", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/jitsimeet/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/jitsi/jitsi-meet", "projectwebsite": "https://jitsi.org/jitsi-meet/", "projectreadme": "https://github.com/jitsi/jitsi-meet/blob/master/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/jitsi/jitsi-meet/refs/heads/master/README.md", "projectlicense": "https://github.com/jitsi/jitsi-meet/blob/master/LICENSE", - "projectimgs": [], + "projectimgs": ["https://raw.githubusercontent.com/jitsi/jitsi-meet/master/readme-img1.png"], "projectissues": "https://github.com/jitsi/jitsi-meet/issues", + "projectrepoapi": "https://api.github.com/repositories/15225670", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "social-networks" }, @@ -486,13 +546,15 @@ "description": "Scan, index and archive all your physical documents", "appcode": "https://github.com/syncloud/paperless", "appdocs": "https://github.com/syncloud/platform/wiki", + "appdronefile": "https://raw.githubusercontent.com/syncloud/paperless/refs/heads/master/.drone.jsonnet", "projectcode": "https://github.com/paperless-ngx/paperless-ngx", "projectwebsite": "https://paperless-ngx.readthedocs.io/", "projectreadme": "https://github.com/paperless-ngx/paperless-ngx/blob/dev/README.md", "projectreadmeraw": "https://raw.githubusercontent.com/paperless-ngx/paperless-ngx/refs/heads/dev/README.md", "projectlicense": "https://github.com/paperless-ngx/paperless-ngx/blob/main/LICENSE", - "projectimgs": [], + "projectimgs": ["https://raw.githubusercontent.com/paperless-ngx/paperless-ngx/main/docs/assets/screenshots/documents-smallcards.png","https://docs.paperless-ngx.com/assets/screenshots/documents-table.png","https://docs.paperless-ngx.com/assets/screenshots/documents-smallcards-dark.png"], "projectissues": "https://github.com/paperless-ngx/paperless-ngx/issues", + "projectrepoapi": "https://api.github.com/repositories/458648791", "appissues": "https://github.com/syncloud/platform/issues", "appcategory": "productivity-collaboration" } diff --git a/css/apps.css b/css/apps.css index 5722071..27e879e 100644 --- a/css/apps.css +++ b/css/apps.css @@ -1,11 +1,105 @@ -.list-view { - text-align: left; + + + +.buttonblock { + padding-bottom: 1%; +} + +@media (min-width: 768px) { + .app-settings-row { + display: flex; + } + + + .col-vert { + display: flex; + align-items: center; + flex-direction: column; + justify-content: center; /* Center content vertically */ + } + + .col-md-3.label, + .col-md-6.input { + display: block; + width: 100%; + } + + .col-md-6.input { + margin-bottom: 0; + } + + .col-md-3.text-right { + text-align: right; + } + #mdcontent2container { left: 17%; width: 66%; } +} + +@media (max-width: 767.98px) { + .col-vert { + margin-bottom: 10px; + flex-direction: column; + justify-content: center; /* Center content vertically */ + } + + #apps-detail { +margin: 0px 1% 0px 1%; +display: flex; +flex-wrap: wrap; +justify-content: center; +} + #mdcontent2container { left: 2%; width: 96%; } +} + + + + + +.rowthree-wrapper { +box-shadow: inset 0 8px 6px -6px rgba(0, 0, 0, 0.1), +inset 0 -8px 6px -6px rgba(0, 0, 0, 0.1); +height: 600px; +overflow: auto; +padding: 20px 0 20px 0; +} + + +@media (min-width: 767.98px) { +.grid-view .threeblock { + display: inline-block; + width: 30%; + padding: 0px 0px 15px 0px; + } + .list-view .threeblock { + display: block; + width: 100%; + padding: 0px 0px 0px 0px; + } + .app-detail { + padding: 2%; + } +} + +@media (max-width: 767.98px) { +.grid-view .threeblock { + display: inline-block; + width: 80% !important; + padding: 0px 0px 15px 0px; } .list-view .threeblock { display: block; width: 100%; padding: 0px 0px 0px 0px; + margin-bottom: 25px; + } + .app-detail { + padding: 4%; + } +} + +.list-view { + text-align: left; } + .list-view .threeblock .app-image { width: 7%; } @@ -14,11 +108,7 @@ vertical-align:top; text-align:left } - .grid-view .threeblock { - display: inline-block; - width: 30%; - padding: 0px 0px 15px 0px; - } + .grid-view .threeblock .app-image { width: 30%; } @@ -27,7 +117,6 @@ } .app-detail { - padding: 2%; text-align: left; background-color: #F8F8F8; border-radius: 25px; @@ -63,48 +152,24 @@ } } - #overlay { - display: none; - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: rgba(0, 0, 0, 0.5); - z-index: 1000; -} - #mdcontent2container{ - position: absolute; - top: 0%; - left: 17%; - width: 66%; - background-color: white; - border: 1px solid #ccc; - box-shadow: 0 4px 8px rgba(0, 0, 0, 1); - padding: 20px; - - overflow: auto; - height: 100vh; - } - #mdcontent2 { - width: 100%; - max-width: 100%; - } - #mdcontent2 img { - max-width: 100%; - } - #closebtn { - position: absolute; - top: 10px; - right: 10px; - } + #overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(248, 248, 248, 0.8); z-index: 1000; } + #mdcontent2container { position: absolute; top: 0; background-color: white; border: 1px solid #ccc; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); padding: 20px; overflow: auto; height: 100vh; } + #mdcontent2 { width: 100%; max-width: 100%; position: relative; } + #mdcontent2 img { max-width: 100%; } + #mdcontent2::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)); } + .button_border_small { padding: 1px 4px; width: auto; } + .fadeout { height: 33vh; /* Show first 1/3 of the content */ overflow: hidden; position: relative; } + #code-box { border: 1px solid #ccc; padding: 50px 10px 10px 10px; - margin: 20px; + margin-top: 20px; background-color: #f9f9f9; position: relative; - width: fit-content; +} + +#code-content { +overflow: auto; } #copy-button { @@ -139,7 +204,7 @@ left: 0%; width: 100%; height: 100%; - background-color: rgba(0, 0, 0, 0.8); + background-color: rgba(248, 248, 248, 0.8); z-index: 9999; } @@ -147,9 +212,20 @@ position: relative; } - #zoomButton { + .zoom-in { + position: absolute; + top: 10px; + right: 10px; + z-index: 1; + font-size: 140%; + } + + .zoom-out { position: absolute; top: 10px; right: 10px; z-index: 10000; + font-size: 140%; } + + diff --git a/js/app-detail.js b/js/app-detail.js index f665292..3979b4c 100644 --- a/js/app-detail.js +++ b/js/app-detail.js @@ -9,6 +9,10 @@ $.getJSON("apps.json").done(function(data) { const filteredApps = appName ? data.apps.filter(app => app.id === appName) : data.apps; + const appId = filteredApps.length > 0 ? filteredApps[0].id : null; + const appdronefileurl = filteredApps.length > 0 ? filteredApps[0].appdronefile : null; + const getprojectrepoapi = filteredApps.length > 0 ? filteredApps[0].projectrepoapi : null; + $("#apps-detail").html(_.template($("#app-template-detail").html())({ apps: filteredApps })); // Initialize the theme selection script after the content is loaded @@ -58,13 +62,17 @@ function updateCodeContent() { carousel.classList.add('expanded'); carouselwrapper.classList.add('expanded2'); carouselWrapper.style.position = 'fixed'; - zoomButton.textContent = '-'; + zoomButton.innerHTML = ''; + zoomButton.classList.remove('zoom-in'); + zoomButton.classList.add('zoom-out'); isExpanded = true; } else { carousel.classList.remove('expanded'); carouselwrapper.classList.remove('expanded2'); carouselWrapper.style.position = 'relative'; - zoomButton.textContent = '+'; + zoomButton.innerHTML = ''; + zoomButton.classList.remove('zoom-out'); + zoomButton.classList.add('zoom-in'); isExpanded = false; } }); @@ -86,21 +94,27 @@ var contentDiv2 = document.getElementById('mdcontent2'); console.error('contentDiv2 is null'); } - // Toggle visibility of the content div - document.getElementById('toggleButton').addEventListener('click', function() { - var contentDiv2 = document.getElementById('overlay'); - if (contentDiv2.style.display === 'none' || contentDiv2.style.display === '') { - contentDiv2.style.display = 'block'; - } else { - contentDiv2.style.display = 'none'; - } - }); - - // Close button functionality - document.getElementById('closebtn').addEventListener('click', function() { - document.getElementById('overlay').style.display = 'none'; - }); - + // Function to copy content + function copyContent() { var originalContent = document.getElementById('mdcontent2').innerHTML; + document.getElementById('mdcontent2-overlay').innerHTML = originalContent; } + // Toggle visibility of the overlay div + document.getElementById('toggleButton').addEventListener('click', function() { var overlay = document.getElementById('overlay'); + var fadeoutContent = document.getElementById('mdcontent2'); + copyContent(); + // Copy content when the button is clicked + if (overlay.style.display === 'none' || overlay.style.display === '') { overlay.style.display = 'block'; + fadeoutContent.style.display = 'none'; + // Hide the default shown content + } else { overlay.style.display = 'none'; fadeoutContent.style.display = 'block'; + // Show the default shown content + } }); + // Close button functionality + document.getElementById('closebtn').addEventListener('click', function() { + document.getElementById('overlay').style.display = 'none'; + document.getElementById('mdcontent2').style.display = 'block'; + // Show the default shown content + }); + function replaceCategoryNames2(categories) { var categoryText = $('#fixedCategory').text().trim(); if (categories[categoryText]) { @@ -114,6 +128,23 @@ var contentDiv2 = document.getElementById('mdcontent2'); $.getJSON("app-categories.json").done(function (categories) { replaceCategoryNames2(categories); }); + + //Get drone jsonnet data + function getAppVersion(url, appName) { + $.get(url, function(data) { + var regex = new RegExp('local ' + appName + ' = "(\\d+\\.\\d+\\.\\d+)"'); + var match = data.match(regex); + if (match) { $('#app_version').text(match[1]); } + else { $('#app_version').text('Version not found'); } }); } + getAppVersion(appdronefileurl, appId); + + //Get git data + $.get(getprojectrepoapi, function(data) { + const stargazersCount = data.stargazers_count; + $('#stargazers-count').text(stargazersCount); + const license_name = data.license.name; + $('#license-name').text(license_name); + }); }); diff --git a/js/apps.js b/js/apps.js index e2e39a8..03018a8 100644 --- a/js/apps.js +++ b/js/apps.js @@ -14,8 +14,6 @@ // Replace the content of each div with the corresponding category name appCategoryDivs.forEach(div => { const categoryValue = div.textContent.trim(); // Get the text content of the div - console.log(categoryValue); - console.log(categoryMap[categoryValue]); if (categoryMap[categoryValue]) { div.textContent = categoryMap[categoryValue]; // Replace with the corresponding name } @@ -122,3 +120,20 @@ }); + + + + document.getElementById('search-bar').addEventListener('input', function() { + const searchValue = this.value.toLowerCase(); + console.log(searchValue); + const allDivs = document.querySelectorAll('.threeblock'); + allDivs.forEach(div => { + const appName = div.querySelector('.appnametext').innerText.toLowerCase(); + if (appName.includes(searchValue) || searchValue === '') { div.style.display = 'inline-block'; } + else { div.style.display = 'none'; } + }); + }); + + + + From 3c4ed3c3c809337f2c6b4040c794e3576b59805a Mon Sep 17 00:00:00 2001 From: klmhsb42 Date: Sun, 24 Nov 2024 17:48:03 +0100 Subject: [PATCH 3/5] adjust css --- app-detail.html | 8 ++++---- apps.html | 11 ++++------- css/apps.css | 32 ++++++++++++++++++++------------ 3 files changed, 28 insertions(+), 23 deletions(-) diff --git a/app-detail.html b/app-detail.html index efd1d7a..75f5828 100644 --- a/app-detail.html +++ b/app-detail.html @@ -65,7 +65,7 @@

Apps

- +