diff --git a/config/packages/security.yaml b/config/packages/security.yaml index ac8c830..8d142bc 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -33,6 +33,8 @@ security: - { path: ^/og-repository/webhook, roles: PUBLIC_ACCESS } - { path: ^/og-lives/install/webhook, roles: PUBLIC_ACCESS } - { path: ^/auth/refresh, roles: PUBLIC_ACCESS } + - { path: ^/menu-browser, roles: PUBLIC_ACCESS } + - { path: ^/menu/, roles: PUBLIC_ACCESS } - { path: ^/, roles: IS_AUTHENTICATED_FULLY } when@test: diff --git a/public/images/img.png b/public/images/img.png new file mode 100644 index 0000000..9beadc3 Binary files /dev/null and b/public/images/img.png differ diff --git a/src/Controller/MenuBrowserController.php b/src/Controller/MenuBrowserController.php new file mode 100644 index 0000000..6468950 --- /dev/null +++ b/src/Controller/MenuBrowserController.php @@ -0,0 +1,23 @@ +getHost(); + + return $this->render('test.html.twig', [ + 'ip' => $host, + ]); + } +} diff --git a/templates/browser/main.html.twig b/templates/browser/main.html.twig new file mode 100644 index 0000000..dccdd4e --- /dev/null +++ b/templates/browser/main.html.twig @@ -0,0 +1,200 @@ + + + + + + + Menú de Opciones + + + + + + +
+ +
+

Particiones del sistema

+ {% if partitions|length > 0 %} + {% for partition in partitions %} +
+ Disco: {{ partition.diskNumber }} + Partición: {{ partition.partitionNumber }} + Tamaño: {{ (partition.size / 1024)|number_format(2) }} MB + Tipo: {{ partition.filesystem }} + SO: {{ partition.operativeSystem ? partition.operativeSystem.name : '-' }} + {% if partition.operativeSystem %} + Arrancar {{ partition.operativeSystem.name }} + {% endif %} +
+ {% endfor %} + {% else %} +

No hay particiones disponibles.

+ {% endif %} +
+
+ +