Compare commits
No commits in common. "main" and "1.0.0" have entirely different histories.
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
build/*
|
|
8
Makefile
8
Makefile
@ -1,8 +0,0 @@
|
|||||||
APP_NAME=minimalprofile
|
|
||||||
VERSION=$(shell grep '<version>' appinfo/info.xml | sed -E 's/.*<version>(.*)<\/version>.*/\1/')
|
|
||||||
|
|
||||||
.PHONY: appstore
|
|
||||||
|
|
||||||
appstore:
|
|
||||||
mkdir -p build
|
|
||||||
tar --exclude-vcs --exclude='build' --exclude='*.tar.gz' -czf build/$(APP_NAME)-$(VERSION).tar.gz -C .. $(notdir $(CURDIR))
|
|
23
README.md
23
README.md
@ -1,23 +1,2 @@
|
|||||||
# Minimal Profile Display for Nextcloud
|
# nextcloud_minimalprofile
|
||||||
|
|
||||||
**Minimal Profile Display** is a lightweight Nextcloud app that allows users and administrators to simplify user profile pages by hiding certain optional fields, such as pronouns.
|
|
||||||
|
|
||||||
This app is perfect for those who prefer a cleaner, distraction-free interface without altering the underlying user data.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## ✨ Features
|
|
||||||
|
|
||||||
- Hide the Pronouns field from user profiles
|
|
||||||
- Lightweight: No database changes or backend processing
|
|
||||||
- Fully reversible: Simply disable the app to restore default profiles
|
|
||||||
- Compatible with Nextcloud 26 to 31
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📥 Installation
|
|
||||||
|
|
||||||
1. Download the latest release from the [Releases page](https://code.taurix.net/TaurixIT/nextcloud_minimalprofile/releases).
|
|
||||||
2. Extract the archive into your Nextcloud `custom_apps/` directory:
|
|
||||||
```bash
|
|
||||||
tar -xvzf minimalprofile-*.tar.gz -C /var/www/nextcloud/custom_apps/
|
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
<?php
|
|
||||||
namespace OCA\MinimalProfile\AppInfo;
|
|
||||||
|
|
||||||
use OCP\Util;
|
|
||||||
|
|
||||||
Util::addStyle("minimalprofile", "style");
|
|
||||||
Util::addScript("minimalprofile", "hidePronouns");
|
|
@ -1,21 +0,0 @@
|
|||||||
<?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>Guy Van Sanden</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>
|
|
@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "nextcloud/minimalprofile",
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"OCA\\MinimalProfile\\": "lib/"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,5 +0,0 @@
|
|||||||
|
|
||||||
/* Hide pronouns field in user profile UI */
|
|
||||||
#user-pronouns, [for="user-pronouns"], [data-profile-field="pronouns"] {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
document.addEventListener("DOMContentLoaded", function () {
|
|
||||||
function tryToHidePronouns() {
|
|
||||||
const sections = document.querySelectorAll("section");
|
|
||||||
|
|
||||||
for (const section of sections) {
|
|
||||||
const label = section.querySelector("label");
|
|
||||||
if (label && label.textContent.trim().toLowerCase() === "pronouns") {
|
|
||||||
console.log("Found Pronouns field, hiding section...");
|
|
||||||
section.style.display = "none";
|
|
||||||
clearInterval(checkInterval); // stop checking
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const checkInterval = setInterval(tryToHidePronouns, 500); // retry every half second
|
|
||||||
|
|
||||||
console.log("Started polling to find Pronouns field...");
|
|
||||||
});
|
|
Loading…
x
Reference in New Issue
Block a user