App src code
This commit is contained in:
9
app/resources/routes/01_logs.php
Normal file
9
app/resources/routes/01_logs.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
use ProVM\Common\Controller\Logs;
|
||||
|
||||
$app->group('/logs', function($app) {
|
||||
$app->get('[/]', Logs::class);
|
||||
});
|
||||
$app->group('/log/{log_file}', function($app) {
|
||||
$app->get('[/]', [Logs::class, 'get']);
|
||||
});
|
4
app/resources/routes/99_base.php
Normal file
4
app/resources/routes/99_base.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
use ProVM\Common\Controller\Base;
|
||||
|
||||
$app->get('[/]', Base::class);
|
11
app/resources/views/home.blade.php
Normal file
11
app/resources/views/home.blade.php
Normal file
@ -0,0 +1,11 @@
|
||||
@extends('layout.base')
|
||||
|
||||
@section('page_content')
|
||||
<div class="ui container">
|
||||
<div class="ui list">
|
||||
@foreach ($files as $file)
|
||||
<a class="item" href="{{$urls->base}}/log/{{urlencode($file->getBasename())}}">{{$file->getBasename()}}</a>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
5
app/resources/views/layout/base.blade.php
Normal file
5
app/resources/views/layout/base.blade.php
Normal file
@ -0,0 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="es">
|
||||
@include('layout.head')
|
||||
@include('layout.body')
|
||||
</html>
|
6
app/resources/views/layout/body.blade.php
Normal file
6
app/resources/views/layout/body.blade.php
Normal file
@ -0,0 +1,6 @@
|
||||
<body>
|
||||
@include('layout.body.header')
|
||||
@yield('page_content')
|
||||
@include('layout.body.footer')
|
||||
@include('layout.body.scripts')
|
||||
</body>
|
0
app/resources/views/layout/body/footer.blade.php
Normal file
0
app/resources/views/layout/body/footer.blade.php
Normal file
5
app/resources/views/layout/body/header.blade.php
Normal file
5
app/resources/views/layout/body/header.blade.php
Normal file
@ -0,0 +1,5 @@
|
||||
<nav class="ui menu">
|
||||
<div class="ui container">
|
||||
<a class="item" href="/">Home</a>
|
||||
</div>
|
||||
</nav>
|
4
app/resources/views/layout/body/scripts.blade.php
Normal file
4
app/resources/views/layout/body/scripts.blade.php
Normal file
@ -0,0 +1,4 @@
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js" integrity="sha512-STof4xm1wgkfm7heWqFJVn58Hm3EtS31XFaagaa8VMReCXAkQnJZ+jEy8PCC/iT18dFy95WcExNHFTqLyp72eQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.9.2/semantic.min.js" integrity="sha512-5cguXwRllb+6bcc2pogwIeQmQPXEzn2ddsqAexIBhh7FO1z5Hkek1J9mrK2+rmZCTU6b6pERxI7acnp1MpAg4Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
|
||||
@stack('page_scripts')
|
10
app/resources/views/layout/head.blade.php
Normal file
10
app/resources/views/layout/head.blade.php
Normal file
@ -0,0 +1,10 @@
|
||||
<head>
|
||||
<meta charset="utf8" />
|
||||
@hasSection('page_title')
|
||||
<title>Logs - @yield('page_title')</title>
|
||||
@else
|
||||
<title>Logs</title>
|
||||
@endif
|
||||
|
||||
@include('layout.head.styles')
|
||||
</head>
|
3
app/resources/views/layout/head/styles.blade.php
Normal file
3
app/resources/views/layout/head/styles.blade.php
Normal file
@ -0,0 +1,3 @@
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.9.2/semantic.min.css" integrity="sha512-n//BDM4vMPvyca4bJjZPDh7hlqsQ7hqbP9RH18GF2hTXBY5amBwM2501M0GPiwCU/v9Tor2m13GOTFjk00tkQA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||
|
||||
@stack('page_styles')
|
Reference in New Issue
Block a user