From f83748cc76c67d03f5b82085adb5d05863c89167 Mon Sep 17 00:00:00 2001 From: tracer Date: Mon, 29 Dec 2025 19:32:26 +0100 Subject: [PATCH] Update ACP UI copy, accents, and defaults --- CHANGELOG.md | 4 +++ README.md | 60 +++------------------------------ resources/js/index.css | 46 +++++++++++++++++++++++++ resources/js/pages/Acp.jsx | 69 ++++++++++++++++++++++++++++---------- resources/lang/de.json | 8 +++++ resources/lang/en.json | 8 +++++ 6 files changed, 121 insertions(+), 74 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2367a2..dd6c644 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,3 +35,7 @@ - Moved the Laravel app to the repo root and removed the separate `api/` and `frontend/` folders. - Serve the SPA shell via Blade with Vite-managed React assets. - Dropped Tailwind tooling to keep the frontend Bootstrap-only. +- Replaced the default Laravel README with a forum placeholder. +- Updated ACP forum tools with accent-tinted buttons and larger action spacing. +- Defaulted the ACP forum tree to collapsed on page load. +- Improved ACP create/edit dialog copy based on forum vs category and hid type selection during creation. diff --git a/README.md b/README.md index 0165a77..de9b1a3 100644 --- a/README.md +++ b/README.md @@ -1,59 +1,7 @@ -

Laravel Logo

+# SpeedBB Forum -

-Build Status -Total Downloads -Latest Stable Version -License -

+Placeholder README for the forum application. -## About Laravel +## Status -Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: - -- [Simple, fast routing engine](https://laravel.com/docs/routing). -- [Powerful dependency injection container](https://laravel.com/docs/container). -- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. -- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). -- Database agnostic [schema migrations](https://laravel.com/docs/migrations). -- [Robust background job processing](https://laravel.com/docs/queues). -- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). - -Laravel is accessible, powerful, and provides tools required for large, robust applications. - -## Learning Laravel - -Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. You can also check out [Laravel Learn](https://laravel.com/learn), where you will be guided through building a modern Laravel application. - -If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. - -## Laravel Sponsors - -We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com). - -### Premium Partners - -- **[Vehikl](https://vehikl.com)** -- **[Tighten Co.](https://tighten.co)** -- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** -- **[64 Robots](https://64robots.com)** -- **[Curotec](https://www.curotec.com/services/technologies/laravel)** -- **[DevSquad](https://devsquad.com/hire-laravel-developers)** -- **[Redberry](https://redberry.international/laravel-development)** -- **[Active Logic](https://activelogic.com)** - -## Contributing - -Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). - -## Code of Conduct - -In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). - -## Security Vulnerabilities - -If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. - -## License - -The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). +Work in progress. diff --git a/resources/js/index.css b/resources/js/index.css index 6ff9647..26411f7 100644 --- a/resources/js/index.css +++ b/resources/js/index.css @@ -199,6 +199,52 @@ a { color: #fff; } +.bb-acp-action.btn-outline-dark { + --bs-btn-color: var(--bb-accent, #f29b3f); + --bs-btn-border-color: var(--bb-accent, #f29b3f); + --bs-btn-hover-color: #0f1218; + --bs-btn-hover-bg: var(--bb-accent, #f29b3f); + --bs-btn-hover-border-color: var(--bb-accent, #f29b3f); + --bs-btn-active-color: #0f1218; + --bs-btn-active-bg: var(--bb-accent, #f29b3f); + --bs-btn-active-border-color: var(--bb-accent, #f29b3f); + --bs-btn-focus-shadow-rgb: 242, 155, 63; + color: var(--bb-accent, #f29b3f) !important; + border-color: var(--bb-accent, #f29b3f) !important; +} + +.bb-acp-action--active.btn-outline-dark { + background-color: var(--bb-accent, #f29b3f); + border-color: var(--bb-accent, #f29b3f); + color: #0f1218; +} + +.bb-acp-action.btn-outline-dark:hover, +.bb-acp-action.btn-outline-dark:focus { + background-color: var(--bb-accent, #f29b3f) !important; + border-color: var(--bb-accent, #f29b3f) !important; + color: #0f1218 !important; +} + +[data-bs-theme="dark"] .bb-acp-action.btn-outline-dark { + --bs-btn-color: var(--bb-accent, #f29b3f); + --bs-btn-border-color: var(--bb-accent, #f29b3f); + --bs-btn-hover-color: #0f1218; + --bs-btn-hover-bg: var(--bb-accent, #f29b3f); + --bs-btn-hover-border-color: var(--bb-accent, #f29b3f); + --bs-btn-active-color: #0f1218; + --bs-btn-active-bg: var(--bb-accent, #f29b3f); + --bs-btn-active-border-color: var(--bb-accent, #f29b3f); + color: var(--bb-accent, #f29b3f) !important; + border-color: var(--bb-accent, #f29b3f) !important; +} + +[data-bs-theme="dark"] .bb-acp-action--active.btn-outline-dark { + background-color: var(--bb-accent, #f29b3f); + border-color: var(--bb-accent, #f29b3f); + color: #0f1218; +} + .bb-load-time { font-weight: 600; } diff --git a/resources/js/pages/Acp.jsx b/resources/js/pages/Acp.jsx index 31e4688..41badf7 100644 --- a/resources/js/pages/Acp.jsx +++ b/resources/js/pages/Acp.jsx @@ -1,4 +1,4 @@ -import { useEffect, useMemo, useState } from 'react' +import { useEffect, useMemo, useRef, useState } from 'react' import { Button, ButtonGroup, Col, Container, Form, Modal, Row, Tab, Tabs } from 'react-bootstrap' import DataTable, { createTheme } from 'react-data-table-component' import { useTranslation } from 'react-i18next' @@ -218,6 +218,7 @@ export default function Acp({ isAdmin }) { ) } const [collapsed, setCollapsed] = useState(() => new Set()) + const hasInitializedCollapse = useRef(false) const [showModal, setShowModal] = useState(false) const [form, setForm] = useState({ name: '', @@ -245,6 +246,16 @@ export default function Acp({ isAdmin }) { } }, [isAdmin]) + useEffect(() => { + if (!hasInitializedCollapse.current && forums.length > 0) { + const ids = forums + .filter((forum) => forum.type === 'category') + .map((forum) => String(forum.id)) + setCollapsed(new Set(ids)) + hasInitializedCollapse.current = true + } + }, [forums]) + const refreshUsers = async () => { setUsersLoading(true) setUsersError('') @@ -602,7 +613,7 @@ export default function Acp({ isAdmin }) {
{node.description || t('forum.no_description')}
-
+
{t('acp.forums_tree')}
-