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'; + } +});