This commit is contained in:
Richard Dern
2022-01-12 00:35:37 +01:00
commit 400e3d01f1
1363 changed files with 57778 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
@extends('layouts.auth')
@section('menu')
<a href="{{ route('home') }}" class="mb-6">{{ __('Back') }}</a>
<a href="{{ route('account') }}"
class="{{ url()->current() === route('account') ? 'selected' : '' }}">{{ __('My account') }}</a>
<a href="{{ route('account.password') }}"
class="{{ url()->current() === route('account.password') ? 'selected' : '' }}">{{ __('Update password') }}</a>
<a href="{{ route('account.groups') }}"
class="{{ url()->current() === route('account.groups') ? 'selected' : '' }}">{{ __('Groups') }}</a>
<a href="{{ route('account.highlights') }}"
class="{{ url()->current() === route('account.highlights') ? 'selected' : '' }}">{{ __('Highlights') }}</a>
<a href="{{ route('account.import.form') }}"
class="{{ url()->current() === route('account.import.form') ? 'selected' : '' }}">{{ __('Import data') }}</a>
<a href="{{ route('account.export') }}"
class="{{ url()->current() === route('account.export') ? 'selected' : '' }}">{{ __('Export my data') }}</a>
<a href="{{ route('account.about') }}"
class="{{ url()->current() === route('account.about') ? 'selected' : '' }}">{{ __('About Cyca') }}</a>
<a href="{{ route('logout') }}" onclick="document.forms.logout_form.submit();return false;">{{ __('Logout') }}</a>
@endsection

View File

@@ -0,0 +1,78 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<base href="{{ env('APP_URL') }}" />
<meta charset="utf-8" />
<meta name="application-name" content="Cyca" />
<meta name="author" content="Richard Dern" />
<meta name="description" content="Bookmarks and feeds manager" />
<meta name="robots" content="noindex,nofollow" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="csrf-token" content="{{ csrf_token() }}" />
<meta name="icons-file-url" content="{{ asset('images/icons.svg') }}" />
@auth
<meta name="user-id" content="{{ auth()->user()->id }}" />
<meta name="theme" content="{{ auth()->user()->theme }}" />
@else
<meta name="theme" content="auto" />
@endauth
<link rel="icon" href="{{ asset('images/favicon.png') }}" />
<link rel="stylesheet" href="{{ mix('css/app.css') }}" id="main-stylesheet" />
<title>{{ config('app.name', 'Cyca') }}</title>
<script>
const lang = @json($langStrings);
function setTheme() {
if (
localStorage.theme === "dark" ||
(!("theme" in localStorage) &&
window.matchMedia("(prefers-color-scheme: dark)").matches)
) {
document.querySelector("html").classList.add("dark");
} else {
document.querySelector("html").classList.remove("dark");
}
}
const theme = document
.querySelector('meta[name="theme"]')
.getAttribute("content");
if (!theme || theme === "auto") {
localStorage.removeItem("theme");
} else {
localStorage.theme = theme;
}
setTheme();
window.matchMedia("(prefers-color-scheme: dark)").addListener(setTheme);
</script>
@auth
<script>
const highlights = @json($highlights);
</script>
@endauth
@stack('scripts')
</head>
<body class="bg-white text-gray-500 dark:bg-gray-900 dark:text-gray-400">
<main id="app" class="flex flex-row absolute top-0 left-0 right-0 bottom-0" role="main">
@yield('main_content')
</main>
@auth
<form id="logout_form" class="hidden" action="{{ route('logout') }}" method="POST">
@csrf
</form>
@endauth
</body>
</html>

View File

@@ -0,0 +1,25 @@
@extends('layouts.app')
@section('menu')
<a href="{{ route('login') }}" class="{{ url()->current() === route('login') ? 'selected' : '' }}">{{ __('Login') }}</a>
<a href="{{ route('register') }}"
class="{{ url()->current() === route('register') ? 'selected' : '' }}">{{ __('Register') }}</a>
<a href="{{ route('password.request') }}"
class="{{ url()->current() === route('password.request') ? 'selected' : '' }}">{{ __('Password lost') }}</a>
@endsection
@section('main_content')
<div class="w-1/4 p-6 bg-gray-200 dark:bg-gray-900 text-right flex h-screen overflow-auto">
<div class="m-auto w-full">
<h1 class="tracking-wide text-4xl text-gray-600 dark:text-white">
{{ config('app.name') }}
</h1>
<div class="vertical list mt-6 items-rounded spaced">
@yield('menu')
</div>
</div>
</div>
<div class="w-3/4 bg-gray-100 dark:bg-gray-800 flex h-screen overflow-auto">
@yield('content')
</div>
@endsection