Feature: Tenant Short Name and Branding Implementation
- Added short_name to Tenant model and controller - Updated Landlord/Tenant pages (Create, Edit, Show, Index) - Implemented branding customization (Favicon, Login Copyright, Sidebar Title) - Updated HandleInertiaRequests to share branding data
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Head, useForm } from "@inertiajs/react";
|
||||
import { Head, useForm, usePage } from "@inertiajs/react";
|
||||
import { PageProps } from "@/types/global";
|
||||
import { FormEventHandler, useEffect } from "react";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { Button } from "@/Components/ui/button";
|
||||
@@ -8,6 +9,7 @@ import InputError from "../../Components/InputError";
|
||||
import ApplicationLogo from "../../Components/ApplicationLogo";
|
||||
|
||||
export default function Login() {
|
||||
const { props } = usePage<PageProps>();
|
||||
const { data, setData, post, processing, errors, reset } = useForm({
|
||||
username: localStorage.getItem("saved_username") || "",
|
||||
password: "",
|
||||
@@ -134,7 +136,7 @@ export default function Login() {
|
||||
</div>
|
||||
|
||||
<p className="text-center text-gray-400 text-sm mt-8">
|
||||
© 2026 小小冰室. All rights reserved.
|
||||
© {new Date().getFullYear()} {props.branding?.name || '小小冰室'}. All rights reserved.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user