App src code

This commit is contained in:
2023-02-14 17:27:01 -03:00
parent ab6c7fa9dd
commit 5eec0d93b0
26 changed files with 525 additions and 0 deletions

View 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']);
});

View File

@ -0,0 +1,4 @@
<?php
use ProVM\Common\Controller\Base;
$app->get('[/]', Base::class);

View 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

View File

@ -0,0 +1,5 @@
<!DOCTYPE html>
<html lang="es">
@include('layout.head')
@include('layout.body')
</html>

View File

@ -0,0 +1,6 @@
<body>
@include('layout.body.header')
@yield('page_content')
@include('layout.body.footer')
@include('layout.body.scripts')
</body>

View File

@ -0,0 +1,5 @@
<nav class="ui menu">
<div class="ui container">
<a class="item" href="/">Home</a>
</div>
</nav>

View 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')

View 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>

View 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')