Browse Source

Cambio en estructura de carpetas, ahora con carpeta src, se separan los archivos docker-compose y se mejora la el readme

main
jirho 1 year ago
parent
commit
819517e9d8
  1. 6
      .gitignore
  2. 4
      Dockerfile
  3. 94
      README.md
  4. 29
      docker-compose-desarrollo.yml
  5. 16
      docker-compose-produccion.yml
  6. 35
      docker-compose.yml
  7. 0
      src/.editorconfig
  8. 0
      src/.env.example
  9. 0
      src/app/Console/Kernel.php
  10. 0
      src/app/Constants/HttpStatus.php
  11. 0
      src/app/Exceptions/Handler.php
  12. 0
      src/app/Http/Controllers/ApiController.php
  13. 0
      src/app/Http/Controllers/ApiFamilliaresController.php
  14. 0
      src/app/Http/Controllers/ApiPersonaController.php
  15. 0
      src/app/Http/Controllers/AuthController.php
  16. 0
      src/app/Http/Controllers/Controller.php
  17. 0
      src/app/Http/Kernel.php
  18. 0
      src/app/Http/Middleware/Authenticate.php
  19. 0
      src/app/Http/Middleware/EncryptCookies.php
  20. 0
      src/app/Http/Middleware/JwtMiddleware.php
  21. 0
      src/app/Http/Middleware/PreventRequestsDuringMaintenance.php
  22. 0
      src/app/Http/Middleware/RedirectIfAuthenticated.php
  23. 0
      src/app/Http/Middleware/TrimStrings.php
  24. 0
      src/app/Http/Middleware/TrustHosts.php
  25. 0
      src/app/Http/Middleware/TrustProxies.php
  26. 0
      src/app/Http/Middleware/ValidateSignature.php
  27. 0
      src/app/Http/Middleware/VerifyCsrfToken.php
  28. 0
      src/app/Models/MapucheCiudades.php
  29. 0
      src/app/Models/MapucheProvincias.php
  30. 0
      src/app/Models/UaderCargosGrupo.php
  31. 0
      src/app/Models/UaderDjPersona.php
  32. 0
      src/app/Models/UaderGrupoCargoHora.php
  33. 0
      src/app/Models/UaderHorariosComunes.php
  34. 0
      src/app/Models/UaderMapucheFamiliares.php
  35. 0
      src/app/Models/UaderMapuchePersona.php
  36. 0
      src/app/Models/UaderUnidadAcademica.php
  37. 0
      src/app/Models/User.php
  38. 0
      src/app/Providers/AppServiceProvider.php
  39. 0
      src/app/Providers/AuthServiceProvider.php
  40. 0
      src/app/Providers/BroadcastServiceProvider.php
  41. 0
      src/app/Providers/EventServiceProvider.php
  42. 0
      src/app/Providers/RouteServiceProvider.php
  43. 0
      src/artisan
  44. 0
      src/bootstrap/app.php
  45. 0
      src/bootstrap/cache/.gitignore
  46. 0
      src/composer.json
  47. 0
      src/composer.lock
  48. 0
      src/config/app.php
  49. 0
      src/config/auth.php
  50. 0
      src/config/broadcasting.php
  51. 0
      src/config/cache.php
  52. 0
      src/config/cors.php
  53. 0
      src/config/database.php
  54. 0
      src/config/filesystems.php
  55. 0
      src/config/hashing.php
  56. 0
      src/config/logging.php
  57. 0
      src/config/mail.php
  58. 0
      src/config/queue.php
  59. 0
      src/config/sanctum.php
  60. 0
      src/config/services.php
  61. 0
      src/config/session.php
  62. 0
      src/config/view.php
  63. 0
      src/database/.gitignore
  64. 0
      src/database/factories/UserFactory.php
  65. 0
      src/database/migrations/2014_10_12_000000_create_users_table.php
  66. 0
      src/database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php
  67. 0
      src/database/migrations/2019_08_19_000000_create_failed_jobs_table.php
  68. 0
      src/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php
  69. 0
      src/database/migrations/2023_10_30_150127_create_uader_dj_personas_table.php
  70. 0
      src/database/seeders/DatabaseSeeder.php
  71. 0
      src/package.json
  72. 0
      src/phpunit.xml
  73. 0
      src/public/.htaccess
  74. 0
      src/public/favicon.ico
  75. 0
      src/public/index.php
  76. 0
      src/public/robots.txt
  77. 0
      src/resources/css/app.css
  78. 0
      src/resources/js/app.js
  79. 0
      src/resources/js/bootstrap.js
  80. 0
      src/resources/lang/es/api.php
  81. 0
      src/resources/lang/es/persona.php
  82. 0
      src/resources/views/vendor/l5-swagger/.gitkeep
  83. 164
      src/resources/views/vendor/l5-swagger/index.blade.php
  84. 0
      src/resources/views/welcome.blade.php
  85. 0
      src/routes/api.php
  86. 0
      src/routes/channels.php
  87. 0
      src/routes/console.php
  88. 0
      src/routes/web.php
  89. 0
      src/storage/app/.gitignore
  90. 0
      src/storage/app/public/.gitignore
  91. 0
      src/storage/framework/.gitignore
  92. 0
      src/storage/framework/cache/.gitignore
  93. 0
      src/storage/framework/cache/data/.gitignore
  94. 0
      src/storage/framework/sessions/.gitignore
  95. 0
      src/storage/framework/testing/.gitignore
  96. 0
      src/storage/framework/views/.gitignore
  97. 0
      src/storage/logs/.gitignore
  98. 0
      src/tests/CreatesApplication.php
  99. 0
      src/tests/Feature/ExampleTest.php
  100. 0
      src/tests/TestCase.php
  101. Some files were not shown because too many files have changed in this diff Show More

6
.gitignore vendored

@ -1,8 +1,8 @@
/.phpunit.cache /.phpunit.cache
/node_modules /node_modules
/public/build /public/build/*
/public/hot /public/hot/*
/public/storage /public/storage/*
/storage/*.key /storage/*.key
/resources/views/vendor* /resources/views/vendor*
/vendor /vendor

4
Dockerfile

@ -18,7 +18,8 @@ COPY --from=composer /usr/bin/composer /usr/bin/composer
ENV COMPOSER_ALLOW_SUPERUSER 1 ENV COMPOSER_ALLOW_SUPERUSER 1
COPY . /var/www/ddjj COPY ./src/ /var/www/ddjj
COPY ./docker/000-default.conf /etc/apache2/sites-enabled/000-default.conf
WORKDIR /var/www/ddjj WORKDIR /var/www/ddjj
RUN chown -R www-data:www-data /var/www/ddjj \ RUN chown -R www-data:www-data /var/www/ddjj \
@ -28,5 +29,4 @@ RUN cd /var/www/ddjj/storage/ \
&& mkdir -p framework/sessions framework/views framework/cache/data \ && mkdir -p framework/sessions framework/views framework/cache/data \
&& chmod -R 775 framework \ && chmod -R 775 framework \
&& chown -R www-data:www-data framework \ && chown -R www-data:www-data framework \
&& cp -f ../docker/000-default.conf /etc/apache2/sites-enabled/000-default.conf \
&& chown -R www-data:www-data logs && chown -R www-data:www-data logs

94
README.md

@ -1,66 +1,70 @@
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p> # FCyT UADER Sistema API de Declaraciones Juradas
<p align="center"> [Documentación de las rutas de la API](https://documenter.getpostman.com/view/28160221/2sA3JDh5PC#c1acf864-e310-4856-a2f8-17ba05a5b88a)
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
</p>
## About Laravel ## Intrucciones puesta en funcionamiento:
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: ### Configuración inicial
- [Simple, fast routing engine](https://laravel.com/docs/routing). Existen 2 archivos docker-compose, desarrollo y producción, la principal diferencia estre ambos es que produccion no tiene un contenedor de base de datos, ya que debe conectarse a la de el sistema en producción de Declaraciones Juradas; además no tiene puertos para acceder tanto a la base de datos como a la API.
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
Laravel is accessible, powerful, and provides tools required for large, robust applications. En el archivo docker-compose-{xxxxx}.yml pueden modificarse varias cosas según la version:
## Learning Laravel #### Desarrollo:
- Los puertos hacia afuera de la base de datos (para testing puede usarse un backup) y la web.
- Las credenciales de la base de datos (repetir luego en .env del contenedor de la api).
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. #### Producción:
You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch. Es recomendable que para facilitar la configuración del .env de web realice una copia del archivo src/.env.example y complete con las credenciales que correspondan según como lo indica cada variable (es importante comprender que ingresar en cada variable para que el sistema funcione como se espera).
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. Asegurese también de que las credenciales de la base de datos que ingresa en este archivo sean las misma que definio en el archivo docker-compose-{xxxxx}.yml
## Laravel Sponsors ### Intrucciones:
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell). ```bash
$ https://github.com/fcyt-sistemas/api_ddjj
$ cd api_ddjj
$ docker-compose -f {nombre_archivo_docker_compose} up -d
```
### Premium Partners Si usa la opción de desarrollo puede ocurrir que los volumenes de su repositorio clonado tengan permisos incompatibles con el usuario de apache.
- **[Vehikl](https://vehikl.com/)** Si sale el siguiente error:
- **[Tighten Co.](https://tighten.co)**
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
- **[64 Robots](https://64robots.com)**
- **[Cubet Techno Labs](https://cubettech.com)**
- **[Cyber-Duck](https://cyber-duck.co.uk)**
- **[Many](https://www.many.co.uk)**
- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
- **[DevSquad](https://devsquad.com)**
- **[Curotec](https://www.curotec.com/services/technologies/laravel/)**
- **[OP.GG](https://op.gg)**
- **[WebReinvent](https://webreinvent.com/?utm_source=laravel&utm_medium=github&utm_campaign=patreon-sponsors)**
- **[Lendio](https://lendio.com)**
## Contributing ```bash
The stream or file "/var/www/ddjj/storage/logs/laravel.log" could not be opened in append mode: failed to open stream
```
Ejecute:
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). ```bash
$ chown -R www-data:www-data /var/www/ddjj/storage &&
$ chmod -R 775 /var/www/ddjj/storage
## Code of Conduct ```
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). ### Configuraciones dentro del contenedor:
## Security Vulnerabilities Para ingresar al contenedor:
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. ```bash
$ docker exec -it -u root api_ddjj-ddjj-1
```
## License Coloque las credenciales indicadas modificando el archivo .env o copiando el contenido del archivo que creo previamente copiando el .env.example:
#### Base de Datos:
Se espera que se la API a la base de datos de Declaraciones Juradas en producción, debe ingresar las credenciales en el .env.
#### Configuración final:
Dentro del contenedor ejecute lo siguiente para que el sistema funcione correctamente
```bash
$ cd /var/www/ddjj
$ php artisan optimize
$ php artisan key:generate
$ php artisan optimize
```
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

29
docker-compose-desarrollo.yml

@ -0,0 +1,29 @@
services:
ddjj:
build:
context: .
dockerfile: Dockerfile
volumes:
- /etc/localtime:/etc/localtime:ro
depends_on:
- pgsql
ports:
- 5556:80
- 5557:443
expose:
- 80
- 443
restart: always
pgsql:
image: postgres:11.6
ports:
- 5555:5432
environment:
TZ: America/Argentina/Buenos_Aires
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ddjj
PGDATA: /var/lib/postgresql/data/pgdata
restart: always

16
docker-compose-produccion.yml

@ -0,0 +1,16 @@
services:
ddjj:
build:
context: .
dockerfile: Dockerfile
volumes:
- /etc/localtime:/etc/localtime:ro
depends_on:
- pgsql
expose:
- 80
- 443
restart: always

35
docker-compose.yml

@ -1,35 +0,0 @@
services:
ddjj:
image: jirho/ddjj:v0.7
volumes:
- "./app/:/var/www/ddjj/app:rw"
- "./config/:/var/www/ddjj/config:rw"
- "./database/:/var/www/ddjj/database:rw"
- "./public/:/var/www/ddjj/public:rw"
- "./resources/:/var/www/ddjj/resources:rw"
- "./routes/:/var/www/ddjj/routes:rw"
- "./tests/:/var/www/ddjj/tests:rw"
- ./composer.json:/var/www/ddjj/composer.json:rw
- ./composer.lock:/var/www/ddjj/composer.lock:rw
- /etc/localtime:/etc/localtime:ro
depends_on:
- pgsql
ports:
- 5556:80
- 5557:443
expose:
- 80
- 443
restart: always
pgsql:
image: postgres:11.6
ports:
- 5555:5432
environment:
TZ: America/Argentina/Buenos_Aires
POSTGRES_PASSWORD: fcytadmin01
POSTGRES_DB: ddjj
PGDATA: /var/lib/postgresql/data/pgdata
restart: always

0
.editorconfig → src/.editorconfig

0
.env.example → src/.env.example

0
app/Console/Kernel.php → src/app/Console/Kernel.php

0
app/Constants/HttpStatus.php → src/app/Constants/HttpStatus.php

0
app/Exceptions/Handler.php → src/app/Exceptions/Handler.php

0
app/Http/Controllers/ApiController.php → src/app/Http/Controllers/ApiController.php

0
app/Http/Controllers/ApiFamilliaresController.php → src/app/Http/Controllers/ApiFamilliaresController.php

0
app/Http/Controllers/ApiPersonaController.php → src/app/Http/Controllers/ApiPersonaController.php

0
app/Http/Controllers/AuthController.php → src/app/Http/Controllers/AuthController.php

0
app/Http/Controllers/Controller.php → src/app/Http/Controllers/Controller.php

0
app/Http/Kernel.php → src/app/Http/Kernel.php

0
app/Http/Middleware/Authenticate.php → src/app/Http/Middleware/Authenticate.php

0
app/Http/Middleware/EncryptCookies.php → src/app/Http/Middleware/EncryptCookies.php

0
app/Http/Middleware/JwtMiddleware.php → src/app/Http/Middleware/JwtMiddleware.php

0
app/Http/Middleware/PreventRequestsDuringMaintenance.php → src/app/Http/Middleware/PreventRequestsDuringMaintenance.php

0
app/Http/Middleware/RedirectIfAuthenticated.php → src/app/Http/Middleware/RedirectIfAuthenticated.php

0
app/Http/Middleware/TrimStrings.php → src/app/Http/Middleware/TrimStrings.php

0
app/Http/Middleware/TrustHosts.php → src/app/Http/Middleware/TrustHosts.php

0
app/Http/Middleware/TrustProxies.php → src/app/Http/Middleware/TrustProxies.php

0
app/Http/Middleware/ValidateSignature.php → src/app/Http/Middleware/ValidateSignature.php

0
app/Http/Middleware/VerifyCsrfToken.php → src/app/Http/Middleware/VerifyCsrfToken.php

0
app/Models/MapucheCiudades.php → src/app/Models/MapucheCiudades.php

0
app/Models/MapucheProvincias.php → src/app/Models/MapucheProvincias.php

0
app/Models/UaderCargosGrupo.php → src/app/Models/UaderCargosGrupo.php

0
app/Models/UaderDjPersona.php → src/app/Models/UaderDjPersona.php

0
app/Models/UaderGrupoCargoHora.php → src/app/Models/UaderGrupoCargoHora.php

0
app/Models/UaderHorariosComunes.php → src/app/Models/UaderHorariosComunes.php

0
app/Models/UaderMapucheFamiliares.php → src/app/Models/UaderMapucheFamiliares.php

0
app/Models/UaderMapuchePersona.php → src/app/Models/UaderMapuchePersona.php

0
app/Models/UaderUnidadAcademica.php → src/app/Models/UaderUnidadAcademica.php

0
app/Models/User.php → src/app/Models/User.php

0
app/Providers/AppServiceProvider.php → src/app/Providers/AppServiceProvider.php

0
app/Providers/AuthServiceProvider.php → src/app/Providers/AuthServiceProvider.php

0
app/Providers/BroadcastServiceProvider.php → src/app/Providers/BroadcastServiceProvider.php

0
app/Providers/EventServiceProvider.php → src/app/Providers/EventServiceProvider.php

0
app/Providers/RouteServiceProvider.php → src/app/Providers/RouteServiceProvider.php

0
artisan → src/artisan

0
bootstrap/app.php → src/bootstrap/app.php

0
bootstrap/cache/.gitignore → src/bootstrap/cache/.gitignore vendored

0
composer.json → src/composer.json

0
composer.lock → src/composer.lock generated

0
config/app.php → src/config/app.php

0
config/auth.php → src/config/auth.php

0
config/broadcasting.php → src/config/broadcasting.php

0
config/cache.php → src/config/cache.php

0
config/cors.php → src/config/cors.php

0
config/database.php → src/config/database.php

0
config/filesystems.php → src/config/filesystems.php

0
config/hashing.php → src/config/hashing.php

0
config/logging.php → src/config/logging.php

0
config/mail.php → src/config/mail.php

0
config/queue.php → src/config/queue.php

0
config/sanctum.php → src/config/sanctum.php

0
config/services.php → src/config/services.php

0
config/session.php → src/config/session.php

0
config/view.php → src/config/view.php

0
database/.gitignore → src/database/.gitignore vendored

0
database/factories/UserFactory.php → src/database/factories/UserFactory.php

0
database/migrations/2014_10_12_000000_create_users_table.php → src/database/migrations/2014_10_12_000000_create_users_table.php

0
database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php → src/database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php

0
database/migrations/2019_08_19_000000_create_failed_jobs_table.php → src/database/migrations/2019_08_19_000000_create_failed_jobs_table.php

0
database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php → src/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php

0
database/migrations/2023_10_30_150127_create_uader_dj_personas_table.php → src/database/migrations/2023_10_30_150127_create_uader_dj_personas_table.php

0
database/seeders/DatabaseSeeder.php → src/database/seeders/DatabaseSeeder.php

0
package.json → src/package.json

0
phpunit.xml → src/phpunit.xml

0
public/.htaccess → src/public/.htaccess

0
public/favicon.ico → src/public/favicon.ico

0
public/index.php → src/public/index.php

0
public/robots.txt → src/public/robots.txt

0
resources/css/app.css → src/resources/css/app.css

0
resources/js/app.js → src/resources/js/app.js

0
resources/js/bootstrap.js → src/resources/js/bootstrap.js vendored

0
resources/lang/es/api.php → src/resources/lang/es/api.php

0
resources/lang/es/persona.php → src/resources/lang/es/persona.php

0
src/resources/views/vendor/l5-swagger/.gitkeep vendored

164
src/resources/views/vendor/l5-swagger/index.blade.php vendored

@ -0,0 +1,164 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{config('l5-swagger.documentations.'.$documentation.'.api.title')}}</title>
<link rel="stylesheet" type="text/css" href="{{ l5_swagger_asset($documentation, 'swagger-ui.css') }}">
<link rel="icon" type="image/png" href="{{ l5_swagger_asset($documentation, 'favicon-32x32.png') }}" sizes="32x32"/>
<link rel="icon" type="image/png" href="{{ l5_swagger_asset($documentation, 'favicon-16x16.png') }}" sizes="16x16"/>
<style>
html
{
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}
*,
*:before,
*:after
{
box-sizing: inherit;
}
body {
margin:0;
background: #fafafa;
}
</style>
@if(config('l5-swagger.defaults.ui.display.dark_mode'))
<style>
body#dark-mode,
#dark-mode .scheme-container {
background: #1b1b1b;
}
#dark-mode .scheme-container,
#dark-mode .opblock .opblock-section-header{
box-shadow: 0 1px 2px 0 rgba(255, 255, 255, 0.15);
}
#dark-mode .operation-filter-input,
#dark-mode .dialog-ux .modal-ux,
#dark-mode input[type=email],
#dark-mode input[type=file],
#dark-mode input[type=password],
#dark-mode input[type=search],
#dark-mode input[type=text],
#dark-mode textarea{
background: #343434;
color: #e7e7e7;
}
#dark-mode .title,
#dark-mode li,
#dark-mode p,
#dark-mode table,
#dark-mode label,
#dark-mode .opblock-tag,
#dark-mode .opblock .opblock-summary-operation-id,
#dark-mode .opblock .opblock-summary-path,
#dark-mode .opblock .opblock-summary-path__deprecated,
#dark-mode h1,
#dark-mode h2,
#dark-mode h3,
#dark-mode h4,
#dark-mode h5,
#dark-mode .btn,
#dark-mode .tab li,
#dark-mode .parameter__name,
#dark-mode .parameter__type,
#dark-mode .prop-format,
#dark-mode .loading-container .loading:after{
color: #e7e7e7;
}
#dark-mode .opblock-description-wrapper p,
#dark-mode .opblock-external-docs-wrapper p,
#dark-mode .opblock-title_normal p,
#dark-mode .response-col_status,
#dark-mode table thead tr td,
#dark-mode table thead tr th,
#dark-mode .response-col_links,
#dark-mode .swagger-ui{
color: wheat;
}
#dark-mode .parameter__extension,
#dark-mode .parameter__in,
#dark-mode .model-title{
color: #949494;
}
#dark-mode table thead tr td,
#dark-mode table thead tr th{
border-color: rgba(120,120,120,.2);
}
#dark-mode .opblock .opblock-section-header{
background: transparent;
}
#dark-mode .opblock.opblock-post{
background: rgba(73,204,144,.25);
}
#dark-mode .opblock.opblock-get{
background: rgba(97,175,254,.25);
}
#dark-mode .opblock.opblock-put{
background: rgba(252,161,48,.25);
}
#dark-mode .opblock.opblock-delete{
background: rgba(249,62,62,.25);
}
#dark-mode .loading-container .loading:before{
border-color: rgba(255,255,255,10%);
border-top-color: rgba(255,255,255,.6);
}
#dark-mode svg:not(:root){
fill: #e7e7e7;
}
</style>
@endif
</head>
<body @if(config('l5-swagger.defaults.ui.display.dark_mode')) id="dark-mode" @endif>
<div id="swagger-ui"></div>
<script src="{{ l5_swagger_asset($documentation, 'swagger-ui-bundle.js') }}"></script>
<script src="{{ l5_swagger_asset($documentation, 'swagger-ui-standalone-preset.js') }}"></script>
<script>
window.onload = function() {
// Build a system
const ui = SwaggerUIBundle({
dom_id: '#swagger-ui',
url: "{!! $urlToDocs !!}",
operationsSorter: {!! isset($operationsSorter) ? '"' . $operationsSorter . '"' : 'null' !!},
configUrl: {!! isset($configUrl) ? '"' . $configUrl . '"' : 'null' !!},
validatorUrl: {!! isset($validatorUrl) ? '"' . $validatorUrl . '"' : 'null' !!},
oauth2RedirectUrl: "{{ route('l5-swagger.'.$documentation.'.oauth2_callback', [], $useAbsolutePath) }}",
requestInterceptor: function(request) {
request.headers['X-CSRF-TOKEN'] = '{{ csrf_token() }}';
return request;
},
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout",
docExpansion : "{!! config('l5-swagger.defaults.ui.display.doc_expansion', 'none') !!}",
deepLinking: true,
filter: {!! config('l5-swagger.defaults.ui.display.filter') ? 'true' : 'false' !!},
persistAuthorization: "{!! config('l5-swagger.defaults.ui.authorization.persist_authorization') ? 'true' : 'false' !!}",
})
window.ui = ui
@if(in_array('oauth2', array_column(config('l5-swagger.defaults.securityDefinitions.securitySchemes'), 'type')))
ui.initOAuth({
usePkceWithAuthorizationCodeGrant: "{!! (bool)config('l5-swagger.defaults.ui.authorization.oauth2.use_pkce_with_authorization_code_grant') !!}"
})
@endif
}
</script>
</body>
</html>

0
resources/views/welcome.blade.php → src/resources/views/welcome.blade.php

0
routes/api.php → src/routes/api.php

0
routes/channels.php → src/routes/channels.php

0
routes/console.php → src/routes/console.php

0
routes/web.php → src/routes/web.php

0
storage/app/.gitignore → src/storage/app/.gitignore vendored

0
storage/app/public/.gitignore → src/storage/app/public/.gitignore vendored

0
storage/framework/.gitignore → src/storage/framework/.gitignore vendored

0
storage/framework/cache/.gitignore → src/storage/framework/cache/.gitignore vendored

0
storage/framework/cache/data/.gitignore → src/storage/framework/cache/data/.gitignore vendored

0
storage/framework/sessions/.gitignore → src/storage/framework/sessions/.gitignore vendored

0
storage/framework/testing/.gitignore → src/storage/framework/testing/.gitignore vendored

0
storage/framework/views/.gitignore → src/storage/framework/views/.gitignore vendored

0
storage/logs/.gitignore → src/storage/logs/.gitignore vendored

0
tests/CreatesApplication.php → src/tests/CreatesApplication.php

0
tests/Feature/ExampleTest.php → src/tests/Feature/ExampleTest.php

0
tests/TestCase.php → src/tests/TestCase.php

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save