Clean up working version
This commit is contained in:
60
README.md
60
README.md
@@ -2,11 +2,6 @@
|
|||||||
|
|
||||||
A Nextcloud 33 app that hides profile fields to create a minimal user profile.
|
A Nextcloud 33 app that hides profile fields to create a minimal user profile.
|
||||||
|
|
||||||
## Features
|
|
||||||
|
|
||||||
- Hide profile fields like pronouns, social links, and more
|
|
||||||
- Works on personal settings page
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
1. Copy the `minimalprofile` folder to your Nextcloud `apps/` directory
|
1. Copy the `minimalprofile` folder to your Nextcloud `apps/` directory
|
||||||
@@ -17,27 +12,20 @@ A Nextcloud 33 app that hides profile fields to create a minimal user profile.
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### Set hidden fields using OCC config command
|
Open browser console (F12) on the settings page and run:
|
||||||
|
|
||||||
Hide the pronouns field:
|
```javascript
|
||||||
```bash
|
// Hide pronouns
|
||||||
occ config:app:set minimalprofile hidden_fields --value='["pronouns"]'
|
localStorage.setItem('minimalprofile_hidden', JSON.stringify(['pronouns']))
|
||||||
|
|
||||||
|
// Hide multiple fields
|
||||||
|
localStorage.setItem('minimalprofile_hidden', JSON.stringify(['pronouns','role','headline']))
|
||||||
|
|
||||||
|
// Show all fields
|
||||||
|
localStorage.removeItem('minimalprofile_hidden')
|
||||||
```
|
```
|
||||||
|
|
||||||
Hide multiple fields:
|
Then refresh the page.
|
||||||
```bash
|
|
||||||
occ config:app:set minimalprofile hidden_fields --value='["pronouns","role","headline"]'
|
|
||||||
```
|
|
||||||
|
|
||||||
### View hidden fields
|
|
||||||
```bash
|
|
||||||
occ config:app:get minimalprofile hidden_fields
|
|
||||||
```
|
|
||||||
|
|
||||||
### Show all fields (reset)
|
|
||||||
```bash
|
|
||||||
occ config:app:delete minimalprofile hidden_fields
|
|
||||||
```
|
|
||||||
|
|
||||||
## Available Fields
|
## Available Fields
|
||||||
|
|
||||||
@@ -46,32 +34,6 @@ occ config:app:delete minimalprofile hidden_fields
|
|||||||
| `pronouns` | User pronouns (e.g., she/her) |
|
| `pronouns` | User pronouns (e.g., she/her) |
|
||||||
| `role` | Job title / role |
|
| `role` | Job title / role |
|
||||||
| `headline` | Personal tagline |
|
| `headline` | Personal tagline |
|
||||||
| `biography` | User bio |
|
|
||||||
| `organisation` | Organization |
|
|
||||||
| `phone` | Phone number |
|
|
||||||
| `address` | Physical address |
|
|
||||||
| `birthdate` | Birthdate |
|
|
||||||
| `website` | Website URL |
|
|
||||||
| `twitter` | Twitter handle |
|
|
||||||
| `fediverse` | Fediverse handle |
|
|
||||||
| `location` | Location |
|
|
||||||
|
|
||||||
## Examples
|
|
||||||
|
|
||||||
Hide just pronouns:
|
|
||||||
```bash
|
|
||||||
occ config:app:set minimalprofile hidden_fields --value='["pronouns"]'
|
|
||||||
```
|
|
||||||
|
|
||||||
Hide pronouns, role, and headline:
|
|
||||||
```bash
|
|
||||||
occ config:app:set minimalprofile hidden_fields --value='["pronouns","role","headline"]'
|
|
||||||
```
|
|
||||||
|
|
||||||
Hide all extra social fields:
|
|
||||||
```bash
|
|
||||||
occ config:app:set minimalprofile hidden_fields --value='["pronouns","role","headline","biography","website","twitter","fediverse"]'
|
|
||||||
```
|
|
||||||
|
|
||||||
## Compatibility
|
## Compatibility
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user