Marketing Hub: RBAC, i18n (AR/EN), tasks overhaul, team/user merge, tutorial
Features: - Full RBAC with 3 roles (superadmin/manager/contributor) - Ownership tracking on posts, tasks, campaigns, projects - Task system: assign to anyone, filter combobox, visibility scoping - Team members merged into users table (single source of truth) - Post thumbnails on kanban cards from attachments - Publication link validation before publishing - Interactive onboarding tutorial with Settings restart - Full Arabic/English i18n with RTL layout support - Language toggle in sidebar, IBM Plex Sans Arabic font - Brand-based visibility filtering for non-superadmins - Manager can only create contributors - Profile completion flow for new users - Cookie-based sessions (express-session + SQLite)
This commit is contained in:
9
client/update-inputs.sh
Executable file
9
client/update-inputs.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script to add dir="auto" to all input and textarea elements
|
||||
# This enables automatic RTL/LTR detection for mixed content
|
||||
|
||||
find ./src -name "*.jsx" -type f -exec sed -i 's/<input\([^>]*\)\(type="text"\|type="email"\|type="url"\|type="search"\)\([^>]*\)>/<input\1\2\3 dir="auto">/g' {} \;
|
||||
find ./src -name "*.jsx" -type f -exec sed -i 's/<textarea\([^>]*\)>/<textarea\1 dir="auto">/g' {} \;
|
||||
|
||||
echo "Updated all text inputs and textareas with dir='auto'"
|
||||
Reference in New Issue
Block a user