Version produccion

This commit is contained in:
2023-06-16 00:53:21 +00:00
parent 4806784b68
commit 15dfefe517
38 changed files with 848 additions and 0 deletions

14
resources/routes/api.php Normal file
View File

@ -0,0 +1,14 @@
<?php
$folder = implode(DIRECTORY_SEPARATOR, [
__DIR__,
'api'
]);
if (file_exists($folder)) {
$files = new DirectoryIterator($folder);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
}

View File

@ -0,0 +1,16 @@
<?php
$app->group('/uf', function($app) {
$folder = implode(DIRECTORY_SEPARATOR, [
__DIR__,
'uf'
]);
if (file_exists($folder)) {
$files = new DirectoryIterator($folder);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
}
});

View File

@ -0,0 +1,7 @@
<?php
use Aldarien\Money\Common\Controller\API\UF\Value;
$app->group('/value', function($app) {
$app->get('/{fecha}', [Value::class, 'fecha']);
$app->get('[/]', Value::class);
});

View File

@ -0,0 +1,10 @@
<?php
if (isset($__environment)) {
$filename = implode(DIRECTORY_SEPARATOR, [
__DIR__,
$__environment . '.php'
]);
if (file_exists($filename)) {
include_once $filename;
}
}

18
resources/routes/web.php Normal file
View File

@ -0,0 +1,18 @@
<?php
use Aldarien\Money\Common\Controller\Web\Base;
$folder = implode(DIRECTORY_SEPARATOR, [
__DIR__,
'web'
]);
if (file_exists($folder)) {
$files = new DirectoryIterator($folder);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
}
$app->get('/', Base::class);

View File

@ -0,0 +1,14 @@
@extends('layout.base')
@section('page_content')
<div class="ui center aligned container">
<div class="ui statistic">
<div class="value">
$ {{number_format($valor, 2, ',', '.')}}
</div>
<div class="label">
{{$fecha->format('d/m/Y')}}
</div>
</div>
</div>
@endsection

View File

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

View File

@ -0,0 +1,3 @@
<body>
@yield('page_content')
</body>

View File

@ -0,0 +1,5 @@
<head>
<meta charset="utf-8" />
<title>Money</title>
@include('layout.styles')
</head>

View File

@ -0,0 +1,14 @@
@if (isset($assets->styles))
@foreach ($assets->styles as $style)
<link rel="stylesheet" type="text/css" href="{{$style}}" />
@endforeach
@endif
@if (isset($assets->fonts))
@foreach ($assets->fonts as $type => $fonts)
@foreach ($fonts as $font)
<link type="{{$type}}" href="{{$font}}" />
@endforeach
@endforeach
@endif
@stack('styles')