First release and rebranding
This commit is contained in:
parent
d270f9b846
commit
c732a9b025
7
appinfo/app.php
Normal file
7
appinfo/app.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
namespace OCA\MinimalProfile\AppInfo;
|
||||
|
||||
use OCP\Util;
|
||||
|
||||
Util::addStyle('minimalprofile', 'style');
|
||||
Util::addScript('minimalprofile', 'script');
|
21
appinfo/info.xml
Normal file
21
appinfo/info.xml
Normal file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0"?>
|
||||
<info>
|
||||
<id>minimalprofile</id>
|
||||
<name>Minimal Profile Display</name>
|
||||
<summary>Optionally hide additional user profile details from the interface for a simpler view.</summary>
|
||||
<description>
|
||||
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.
|
||||
</description>
|
||||
<version>1.0.0</version>
|
||||
<licence>agpl</licence>
|
||||
<author>Your Name</author>
|
||||
<namespace>MinimalProfile</namespace>
|
||||
<dependencies>
|
||||
<nextcloud min-version="26" max-version="31" />
|
||||
</dependencies>
|
||||
<category>Customization</category>
|
||||
<website>https://code.taurix.net/TaurixIT/nextcloud_minimalprofile</website>
|
||||
<bugs>https://code.taurix.net/TaurixIT/nextcloud_minimalprofile/issues</bugs>
|
||||
<repository>https://code.taurix.net/TaurixIT/nextcloud_minimalprofile</repository>
|
||||
</info>
|
8
composer.json
Normal file
8
composer.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "nextcloud/minimalprofile",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"OCA\\MinimalProfile\\": "lib/"
|
||||
}
|
||||
}
|
||||
}
|
5
css/style.css
Normal file
5
css/style.css
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
/* Hide pronouns field in user profile UI */
|
||||
#user-pronouns, [for="user-pronouns"], [data-profile-field="pronouns"] {
|
||||
display: none !important;
|
||||
}
|
7
js/script.js
Normal file
7
js/script.js
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
const pronounField = document.querySelector('[data-profile-field="pronouns"]');
|
||||
if (pronounField) {
|
||||
pronounField.style.display = 'none';
|
||||
}
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user