mirror of
https://github.com/nidebr/as-stats-gui.git
synced 2025-02-20 11:23:18 +08:00
save
This commit is contained in:
parent
08a8ea8bd6
commit
9093099603
1
.env
1
.env
@ -14,5 +14,6 @@
|
|||||||
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
|
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
|
||||||
|
|
||||||
APP_ENV=prod
|
APP_ENV=prod
|
||||||
|
APP_SECRET=644192852c93fabc1bb219ad6458fe25
|
||||||
|
|
||||||
CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
|
CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -10,7 +10,7 @@ composer.lock
|
|||||||
yarn.lock
|
yarn.lock
|
||||||
###< symfony/framework-bundle ###
|
###< symfony/framework-bundle ###
|
||||||
|
|
||||||
/.env.dev
|
/.env.local
|
||||||
/.dev.yml
|
/.dev.yml
|
||||||
|
|
||||||
###> symfony/webpack-encore-bundle ###
|
###> symfony/webpack-encore-bundle ###
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
twig:
|
twig:
|
||||||
default_path: '%kernel.project_dir%/templates'
|
default_path: '%kernel.project_dir%/templates'
|
||||||
|
date:
|
||||||
when@test:
|
format: d/m/Y
|
||||||
twig:
|
timezone: Europe/Paris
|
||||||
strict_variables: true
|
number_format:
|
||||||
|
decimals: 2
|
||||||
|
decimal_point: ','
|
||||||
|
thousands_separator: ' '
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
controllers:
|
|
||||||
resource:
|
|
||||||
path: ../src/Controller/
|
|
||||||
namespace: App\Controller
|
|
||||||
type: attribute
|
|
7
config/routes/annotations.yaml
Normal file
7
config/routes/annotations.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
controllers:
|
||||||
|
resource: ../../src/Controller/
|
||||||
|
type: attribute
|
||||||
|
|
||||||
|
kernel:
|
||||||
|
resource: ../../src/Kernel.php
|
||||||
|
type: attribute
|
@ -20,5 +20,6 @@ services:
|
|||||||
- '../src/Entity/'
|
- '../src/Entity/'
|
||||||
- '../src/Kernel.php'
|
- '../src/Kernel.php'
|
||||||
|
|
||||||
# add more service definitions when explicit configuration is needed
|
App\Controller\:
|
||||||
# please note that last definitions always *replace* previous ones
|
resource: '../src/Controller/'
|
||||||
|
tags: [ 'controller.service_arguments' ]
|
||||||
|
25
src/Controller/IndexController.php
Normal file
25
src/Controller/IndexController.php
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace App\Controller;
|
||||||
|
|
||||||
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||||
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
use Symfony\Component\Routing\Annotation\Route;
|
||||||
|
|
||||||
|
class IndexController extends AbstractController
|
||||||
|
{
|
||||||
|
#[Route(
|
||||||
|
path: '/',
|
||||||
|
name: 'index',
|
||||||
|
methods: ['GET'],
|
||||||
|
)]
|
||||||
|
public function index(): Response
|
||||||
|
{
|
||||||
|
return $this->render('pages/index.html.twig', [
|
||||||
|
/*'base_data' => $this->base_data,
|
||||||
|
'changelog' => $changelog,*/
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
@ -1,16 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>{% block title %}Welcome!{% endblock %}</title>
|
|
||||||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
|
|
||||||
{% block stylesheets %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block javascripts %}
|
|
||||||
{% endblock %}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{% block body %}{% endblock %}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
20
templates/base/_footer.html.twig
Normal file
20
templates/base/_footer.html.twig
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<footer class="footer footer-transparent d-print-none">
|
||||||
|
<div class="container-xl">
|
||||||
|
<div class="row text-center align-items-center flex-row-reverse">
|
||||||
|
<div class="col-lg-auto ms-lg-auto">
|
||||||
|
<ul class="list-inline list-inline-dots mb-0">
|
||||||
|
<li class="list-inline-item">
|
||||||
|
<b>Version</b> N/A
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 col-lg-auto mt-3 mt-lg-0">
|
||||||
|
<ul class="list-inline list-inline-dots mb-0">
|
||||||
|
<li class="list-inline-item">
|
||||||
|
Copyright © {{ 'now'|date('Y') }}
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
22
templates/base/_header.html.twig
Normal file
22
templates/base/_header.html.twig
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<header class="navbar navbar-expand-md navbar-light d-print-none">
|
||||||
|
<div class="container-xl">
|
||||||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-menu">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
<h1 class="navbar-brand navbar-brand-autodark d-none-navbar-horizontal pe-0 pe-md-3">
|
||||||
|
<a href="/">
|
||||||
|
<span class="text-uppercase">AS-Stats</span>
|
||||||
|
</a>
|
||||||
|
</h1>
|
||||||
|
<div class="navbar-nav flex-row order-md-last">
|
||||||
|
<div class="nav-item">
|
||||||
|
<span class="nav-link text-danger fw-bold" id="branch"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="navbar-nav flex-row order-md-last">
|
||||||
|
<div class="d-none d-md-flex">
|
||||||
|
{#% include "navigation/menu/_user_menu.html.twig" %#}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
41
templates/base/_layout.html.twig
Normal file
41
templates/base/_layout.html.twig
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
|
||||||
|
<title>AS-Stats | {% block title %}{{ title|default('') }}{% endblock %}</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/core@latest/dist/css/tabler.min.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css" />
|
||||||
|
|
||||||
|
{% block css %}{% endblock %}
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="layout-fluid">
|
||||||
|
<div class="page">
|
||||||
|
<!-- /.header -->
|
||||||
|
{% include 'base/_header.html.twig' %}
|
||||||
|
|
||||||
|
<div class="page-wrapper">
|
||||||
|
<div class="container-xl">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="page-body">
|
||||||
|
<div class="container-xl">
|
||||||
|
{% block content %}{% endblock %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- /.footer -->
|
||||||
|
{% include 'base/_footer.html.twig' %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% block js %}{% endblock %}
|
||||||
|
|
||||||
|
<!-- Tabler Core -->
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/@tabler/core@latest/dist/js/tabler.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
11
templates/pages/index.html.twig
Normal file
11
templates/pages/index.html.twig
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{% extends "base/_layout.html.twig" %}
|
||||||
|
|
||||||
|
{% block title %}dede{% endblock %}
|
||||||
|
|
||||||
|
{% block css %}
|
||||||
|
{{ parent() }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
sqsq
|
||||||
|
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user