From c732a9b0257c744861e981d9d802c680276f0d0b Mon Sep 17 00:00:00 2001 From: Guy Van Sanden Date: Wed, 9 Apr 2025 11:49:01 +0200 Subject: [PATCH] First release and rebranding --- appinfo/app.php | 7 +++++++ appinfo/info.xml | 21 +++++++++++++++++++++ composer.json | 8 ++++++++ css/style.css | 5 +++++ js/script.js | 7 +++++++ 5 files changed, 48 insertions(+) create mode 100644 appinfo/app.php create mode 100644 appinfo/info.xml create mode 100644 composer.json create mode 100644 css/style.css create mode 100644 js/script.js diff --git a/appinfo/app.php b/appinfo/app.php new file mode 100644 index 0000000..0bc7662 --- /dev/null +++ b/appinfo/app.php @@ -0,0 +1,7 @@ + + + minimalprofile + Minimal Profile Display + Optionally hide additional user profile details from the interface for a simpler view. + + This app provides an option to hide certain user profile elements — such as pronouns and custom fields — for a more minimal, distraction-free interface. + Users or administrators can choose to enable this setting for a cleaner experience. + + 1.0.0 + agpl + Your Name + MinimalProfile + + + + Customization + https://code.taurix.net/TaurixIT/nextcloud_minimalprofile + https://code.taurix.net/TaurixIT/nextcloud_minimalprofile/issues + https://code.taurix.net/TaurixIT/nextcloud_minimalprofile + diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..6d48aec --- /dev/null +++ b/composer.json @@ -0,0 +1,8 @@ +{ + "name": "nextcloud/minimalprofile", + "autoload": { + "psr-4": { + "OCA\\MinimalProfile\\": "lib/" + } + } +} diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..86639ea --- /dev/null +++ b/css/style.css @@ -0,0 +1,5 @@ + +/* Hide pronouns field in user profile UI */ +#user-pronouns, [for="user-pronouns"], [data-profile-field="pronouns"] { + display: none !important; +} diff --git a/js/script.js b/js/script.js new file mode 100644 index 0000000..98b2ea0 --- /dev/null +++ b/js/script.js @@ -0,0 +1,7 @@ + +document.addEventListener('DOMContentLoaded', function () { + const pronounField = document.querySelector('[data-profile-field="pronouns"]'); + if (pronounField) { + pronounField.style.display = 'none'; + } +});