[INDEV] Admin pages.
This commit is contained in:
parent
d7c9a1b908
commit
4f2eaadd92
|
|
@ -39,6 +39,16 @@ class Kernel extends HttpKernel
|
|||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
],
|
||||
|
||||
'admin' => [
|
||||
\App\Http\Middleware\EncryptCookies::class,
|
||||
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
||||
\Illuminate\Session\Middleware\StartSession::class,
|
||||
// \Illuminate\Session\Middleware\AuthenticateSession::class,
|
||||
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
||||
\App\Http\Middleware\VerifyCsrfToken::class,
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
],
|
||||
|
||||
'api' => [
|
||||
// \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
|
||||
\App\Http\Middleware\PreventRequestsDuringMaintenance::class,
|
||||
|
|
|
|||
|
|
@ -45,6 +45,11 @@ class RouteServiceProvider extends ServiceProvider
|
|||
->namespace($this->namespace)
|
||||
->group(base_path('routes/apis.php'));
|
||||
|
||||
Route::domain('impulse.' . env('APP_URL'))
|
||||
->middleware('admin')
|
||||
->namespace($this->namespace)
|
||||
->group(base_path('routes/admin.php'));
|
||||
|
||||
Route::domain('www.' . env('APP_URL'))
|
||||
->middleware('web')
|
||||
->namespace($this->namespace)
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 1.0 MiB |
|
|
@ -165,6 +165,13 @@ html {
|
|||
background-position: center;
|
||||
}
|
||||
|
||||
.graphictoria-admin {
|
||||
background-image: url("/Images/Backgrounds/stars.jpg");
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
// Home Page
|
||||
|
||||
.graphictoria-homepage-header {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
@extends('admin.layouts.app', ['title' => 'layout example'])
|
||||
|
||||
@section('content')
|
||||
|
||||
@endsection
|
||||
|
|
@ -0,0 +1,110 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="gtoria-light" lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<title>Graphictoria{{ isset($title) ? ' | ' . $title : '' }}</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<meta name="theme-color" content="#348AFF"/>
|
||||
<meta name="author" content="Graphictoria"/>
|
||||
<meta name="description" content="Graphictoria is an online social platform for those looking to relive the classic Roblox experience. So what are you waiting for? Join 1.7k+ other users in reliving the good ol' days! Graphictoria is not affiliated with or sponsored by Roblox Corporation, all Roblox related indica and slogans belong to Roblox Corporation."/>
|
||||
<meta name="keywords" content="Graphictoria, XDiscuss, nostalgia, roblox, gtoria, private server"/>
|
||||
<meta property="og:title" content="Graphictoria{{ isset($title) ? ' | ' . $title : '' }}"/>
|
||||
<meta property="og:site_name" content="Graphictoria"/>
|
||||
<meta property="og:description" content="Graphictoria is an online social platform for those looking to relive the classic Roblox experience. So what are you waiting for? Join 1.7k+ other users in reliving the good ol' days! Graphictoria is not affiliated with or sponsored by Roblox Corporation, all Roblox related indica and slogans belong to Roblox Corporation."/>
|
||||
<meta property="og:type" content="website"/>
|
||||
<meta property="og:image" content="{{ asset('images/banner.png') }}">
|
||||
<meta name="twitter:image" content="{{ asset('images/banner.png') }}">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
@once
|
||||
<link href="{{ asset('favicon.ico') }}" rel="icon" integrity="{{ Sri::hash('favicon.ico') }}" crossorigin="anonymous" />
|
||||
<link href="{{ asset('images/logo.png') }}" rel="apple-touch-icon" integrity="{{ Sri::hash('images/logo.png') }}" crossorigin="anonymous" />
|
||||
<link href="{{ asset('manifest.json') }}" rel="manifest" integrity="{{ Sri::hash('manifest.json') }}" crossorigin="anonymous" />
|
||||
<link href="{{ asset('css/graphictoria.css') }}" rel="stylesheet" integrity="{{ Sri::hash('css/graphictoria.css') }}" crossorigin="anonymous" />
|
||||
@endonce
|
||||
@yield('extra-headers')
|
||||
</head>
|
||||
<body>
|
||||
<div id="gtoria-root">
|
||||
<nav class="navbar graphictoria-navbar fixed-top shadow-sm">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="/">Customer Service & Moderation</a>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="graphictoria-nav-margin"></div>
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
<div class="card mb-4">
|
||||
<div class="card-header bg-primary text-white">
|
||||
Customer Service
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="mb-2 d-flex flex-column">
|
||||
<p class="fw-bold">User Admin</p>
|
||||
<hr class="my-1" />
|
||||
<a class="text-decoration-none fw-normal" href="/Users/LookupTool">Find user</a>
|
||||
<a class="text-decoration-none fw-normal" href="/Users/AssetTransfer">User Asset Transfer</a>
|
||||
<a class="text-decoration-none fw-normal" href="/AssetTransfer">Asset Transfer</a>
|
||||
<a class="text-decoration-none fw-normal" href="/Users/GroupTransactions">User/Group Transactions</a>
|
||||
<a class="text-decoration-none fw-normal" href="/Users/Trades">User Trades</a>
|
||||
<a class="text-decoration-none fw-normal" href="/Users/SendMessage">Send Personal Message</a>
|
||||
<a class="text-decoration-none fw-normal" href="/Users/Messages">User Messages</a>
|
||||
<a class="text-decoration-none fw-normal" href="/PresetMessages">Preset Message</a>
|
||||
</div>
|
||||
<div class="mb-2 d-flex flex-column">
|
||||
<p class="fw-bold">Groups</p>
|
||||
<hr class="my-1" />
|
||||
<a class="text-decoration-none fw-normal" href="/Groups/Admin">Group Admin</a>
|
||||
</div>
|
||||
<div class="mb-2 d-flex flex-column">
|
||||
<p class="fw-bold">Asset</p>
|
||||
<hr class="my-1" />
|
||||
<a class="text-decoration-none fw-normal" href="/Users/Scrub">Asset Scrub</a>
|
||||
<a class="text-decoration-none fw-normal" href="/Users/Inventory">Inventory</a>
|
||||
<a class="text-decoration-none fw-normal" href="/Users/CollectiblesAudit">Collectibles Audit</a>
|
||||
</div>
|
||||
<div class="mb-2 d-flex flex-column">
|
||||
<p class="fw-bold">Misc</p>
|
||||
<hr class="my-1" />
|
||||
<a class="text-decoration-none fw-normal" href="/Users/Adjust">Adjust Assets, Credit & Currency</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card mb-4">
|
||||
<div class="card-header bg-info text-white">
|
||||
Moderator
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="mb-2 d-flex flex-column">
|
||||
<p class="fw-bold">Review</p>
|
||||
<hr class="my-1" />
|
||||
<a class="text-decoration-none fw-normal" href="/AssetQueue">Asset Queue</a>
|
||||
<a class="text-decoration-none fw-normal" href="/ReportQueue">Report Queue</a>
|
||||
<a class="text-decoration-none fw-normal" href="/Perfmon">Performance</a>
|
||||
</div>
|
||||
<div class="mb-2 d-flex flex-column">
|
||||
<p class="fw-bold">Moderation</p>
|
||||
<hr class="my-1" />
|
||||
<a class="text-decoration-none fw-normal" href="/Moderation/AuditLog">Audit Log</a>
|
||||
<a class="text-decoration-none fw-normal" href="/Moderation/EditFilter">Content Filter</a>
|
||||
<a class="text-decoration-none fw-normal" href="/Moderation/MachineConfig">Machine Config</a>
|
||||
<a class="text-decoration-none fw-normal" href="/Moderation/Alert">Site-wide alert</a>
|
||||
</div>
|
||||
<div class="mb-2 d-flex flex-column">
|
||||
<p class="fw-bold">Configuration</p>
|
||||
<hr class="my-1" />
|
||||
<a class="text-decoration-none fw-normal" href="/Moderation/EditSettings">Client App Settings</a>
|
||||
<a class="text-decoration-none fw-normal" href="/Moderation/EditKeys">Security Keys</a>
|
||||
<a class="text-decoration-none fw-normal" href="/Moderation/EditIps">Whitelisted Arbiter IPs</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-9">
|
||||
</div>
|
||||
</div>
|
||||
<div class="graphictoria-nav-margin"></div>
|
||||
@yield('content')
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
@extends('layouts.app', ['title' => 'Secure', 'adminPage' => true])
|
||||
|
||||
@section('content')
|
||||
<form class="mx-auto my-auto d-flex flex-column">
|
||||
<input type="email" class="form-control mb-3" id="email" placeholder="Email" />
|
||||
<input type="password" class="form-control mb-3" id="password" placeholder="Password" />
|
||||
<button type="submit" class="btn btn-primary">Login</button>
|
||||
</form>
|
||||
@endsection
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="{{ isset($jsPage) ? 'gtoria-dark graphictoria-nojs' : 'gtoria-light' }}" lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<html class="{{ isset($jsPage) ? 'gtoria-dark graphictoria-nojs' : (isset($adminPage) ? 'gtoria-dark graphictoria-admin' : 'gtoria-light') }}" lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<title>Graphictoria{{ isset($title) ? ' | ' . $title : '' }}</title>
|
||||
<meta charset="utf-8" />
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Web Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register web routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::get('/login', function(){
|
||||
return view('admin.login');
|
||||
});
|
||||
|
||||
Route::get('/test', function(){
|
||||
return view('admin.example');
|
||||
});
|
||||
Loading…
Reference in New Issue