mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-04-05 08:16:16 +02:00
feat(Settings): add legal notices page
This commit is contained in:
parent
5cdb0096bb
commit
5244fed549
|
|
@ -26,6 +26,10 @@ export default class SettingsController {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async legal({ inertia }: HttpContext) {
|
||||||
|
return inertia.render('settings/legal');
|
||||||
|
}
|
||||||
|
|
||||||
async zim({ inertia }: HttpContext) {
|
async zim({ inertia }: HttpContext) {
|
||||||
return inertia.render('settings/zim/index')
|
return inertia.render('settings/zim/index')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,12 @@ import {
|
||||||
FolderIcon,
|
FolderIcon,
|
||||||
MagnifyingGlassIcon,
|
MagnifyingGlassIcon,
|
||||||
} from '@heroicons/react/24/outline'
|
} from '@heroicons/react/24/outline'
|
||||||
|
import { IconGavel } from '@tabler/icons-react'
|
||||||
import StyledSidebar from '~/components/StyledSidebar'
|
import StyledSidebar from '~/components/StyledSidebar'
|
||||||
|
|
||||||
const navigation = [
|
const navigation = [
|
||||||
{ name: 'Apps', href: '/settings/apps', icon: CommandLineIcon, current: false },
|
{ name: 'Apps', href: '/settings/apps', icon: CommandLineIcon, current: false },
|
||||||
|
{ name: 'Legal Notices', href: '/settings/legal', icon: IconGavel, current: false },
|
||||||
{ name: 'ZIM Manager', href: '/settings/zim', icon: FolderIcon, current: false },
|
{ name: 'ZIM Manager', href: '/settings/zim', icon: FolderIcon, current: false },
|
||||||
{
|
{
|
||||||
name: 'Zim Remote Explorer',
|
name: 'Zim Remote Explorer',
|
||||||
|
|
|
||||||
34
admin/inertia/pages/settings/legal.tsx
Normal file
34
admin/inertia/pages/settings/legal.tsx
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
import { Head } from '@inertiajs/react'
|
||||||
|
import SettingsLayout from '~/layouts/SettingsLayout'
|
||||||
|
|
||||||
|
export default function SettingsPage() {
|
||||||
|
return (
|
||||||
|
<SettingsLayout>
|
||||||
|
<Head title="Legal Notices | Project N.O.M.A.D." />
|
||||||
|
<div className="xl:pl-72 w-full">
|
||||||
|
<main className="px-12 py-6">
|
||||||
|
<h1 className="text-4xl font-semibold mb-6">Legal Notices</h1>
|
||||||
|
<h2 className="text-2xl font-semibold mb-2">License Agreement & Terms of Use</h2>
|
||||||
|
<p className="text-gray-900 mb-2">Copyright 2025 Crosstalk Solutions, LLC</p>
|
||||||
|
<p className="text-gray-900 mb-2">
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
||||||
|
software and associated documentation files (the “Software”), to deal in the Software
|
||||||
|
without restriction, including without limitation the rights to use, copy, modify,
|
||||||
|
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to the following
|
||||||
|
conditions: The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
</p>
|
||||||
|
<p className="text-gray-900 mb-2">
|
||||||
|
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||||
|
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
|
||||||
|
OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
</p>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</SettingsLayout>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
@ -23,6 +23,7 @@ router.on('/about').renderInertia('about')
|
||||||
router.group(() => {
|
router.group(() => {
|
||||||
router.get('/system', [SettingsController, 'system'])
|
router.get('/system', [SettingsController, 'system'])
|
||||||
router.get('/apps', [SettingsController, 'apps'])
|
router.get('/apps', [SettingsController, 'apps'])
|
||||||
|
router.get('/legal', [SettingsController, 'legal'])
|
||||||
router.get('/zim', [SettingsController, 'zim'])
|
router.get('/zim', [SettingsController, 'zim'])
|
||||||
router.get('/zim/remote-explorer', [SettingsController, 'zimRemote'])
|
router.get('/zim/remote-explorer', [SettingsController, 'zimRemote'])
|
||||||
}).prefix('/settings')
|
}).prefix('/settings')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user