17 Commits

Author SHA1 Message Date
c6f7f65360 deleting when empty 2025-07-06 13:22:05 +07:00
c65f7d4055 deleting when empty 2025-07-06 13:21:53 +07:00
bdef194b68 deleting when empty 2025-07-06 13:21:38 +07:00
a3eeacc4b4 flex-grow: 1; 2025-07-06 13:20:42 +07:00
da69b20491 colorscheme 2025-07-06 13:19:30 +07:00
1d4d3e5f24 updated and renamed 2025-07-06 13:18:26 +07:00
2b417f1649 fixed paths 2025-07-06 13:16:42 +07:00
1ee4c9a7dd deleted session 2025-07-06 11:59:42 +07:00
ece40a8644 added tabs 2025-07-06 11:28:56 +07:00
6e5339a7d9 added russian 2025-07-06 10:41:28 +07:00
b989a89e2b fixed 2025-07-06 10:41:04 +07:00
fbcb72a47b deleted arangodb 2025-07-06 10:35:42 +07:00
485ac59c69 english localization 2025-07-06 10:28:46 +07:00
315f9bb7e3 added localizations 2025-07-06 10:27:23 +07:00
9baf88d93c updated dependencies 2025-07-05 22:37:42 +07:00
d3a47b04fb body margin unset 2025-04-10 22:47:34 +07:00
1a05a0413d returned templater 2025-04-10 22:33:05 +07:00
14 changed files with 100 additions and 64 deletions

View File

@@ -7,7 +7,6 @@ namespace ${REPO_OWNER}\${REPO_NAME}\controllers;
// Files of the project // Files of the project
use ${REPO_OWNER}\${REPO_NAME}\views\templater, use ${REPO_OWNER}\${REPO_NAME}\views\templater,
${REPO_OWNER}\${REPO_NAME}\models\core as models, ${REPO_OWNER}\${REPO_NAME}\models\core as models,
${REPO_OWNER}\${REPO_NAME}\models\session,
${REPO_OWNER}\${REPO_NAME}\models\enumerations\language; ${REPO_OWNER}\${REPO_NAME}\models\enumerations\language;
// Framework for PHP // Framework for PHP
@@ -74,6 +73,9 @@ class core extends controller
// Blocking requests from CloudFlare (better to write this blocking into nginx config file) // Blocking requests from CloudFlare (better to write this blocking into nginx config file)
if (isset($$_SERVER['HTTP_USER_AGENT']) && $$_SERVER['HTTP_USER_AGENT'] === 'nginx-ssl early hints') return status::bruh->label; if (isset($$_SERVER['HTTP_USER_AGENT']) && $$_SERVER['HTTP_USER_AGENT'] === 'nginx-ssl early hints') return status::bruh->label;
// Initializing the view template engine instance
$$this->view = new templater();
// For the extends system // For the extends system
parent::__construct(core: $$core); parent::__construct(core: $$core);
} }

View File

@@ -0,0 +1,6 @@
<?php
// Exit (success)
return [
'' => ''
]

View File

@@ -0,0 +1,6 @@
<?php
// Exit (success)
return [
'' => ''
]

View File

@@ -34,6 +34,9 @@ define('STORAGE', INDEX . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'st
// Initializing path to the databases directory // Initializing path to the databases directory
define('DATABASES', INDEX . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'databases'); define('DATABASES', INDEX . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'databases');
// Initializing path to the localizations directory
define('LOCALIZATIONS', INDEX . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'localizations');
// Initializing dependencies // Initializing dependencies
require ROOT . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'; require ROOT . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

View File

@@ -1,4 +1,7 @@
@charset "UTF-8"; @charset "UTF-8";
aside { aside {
&:not(:has(*)) {
display: none;
}
} }

View File

@@ -1,37 +0,0 @@
@charset "UTF-8";
@media (prefers-color-scheme: dark) {
:root {
--text-color: initial;
--text-color-hover: initial;
--text-color-active: initial;
--text-notice-color: initial;
--text-warning-color: initial;
--text-selected-color: initial;
--text-selected-background-color: initial;
--link-color: initial;
--link-color-hover: initial;
--link-color-active: initial;
color: var(--text-color);
}
}
@media (prefers-color-scheme: light) {
:root {
--text-color: initial;
--text-color-hover: initial;
--text-color-active: initial;
--text-notice-color: initial;
--text-warning-color: initial;
--text-selected-color: initial;
--text-selected-background-color: initial;
--link-color: initial;
--link-color-hover: initial;
--link-color-active: initial;
color: var(--text-color);
}
}

View File

@@ -0,0 +1,45 @@
@charset "UTF-8";
@media (prefers-color-scheme: dark) {
:root {
--text-color: #fff;
--text-color-inverted: #000;
--button-background-color-inverted: #fff;
--button-background-color: #000;
--section-background-color-inverted: #fff;
--section-background-color: #000;
--background-color: #000;
--background-color-inverted: #fff;
--interface-top-background-color: var(--background-color, #000);
--interface-background-color: var(--background-color, #000);
--interface-bottom-background-color: var(--background-color, #000);
--red: red;
--white: #fff;
--paper: var(--white);
}
}
@media (prefers-color-scheme: light) {
:root {
--text-color: #fff;
--text-color-inverted: #000;
--button-background-color-inverted: #fff;
--button-background-color: #000;
--section-background-color-inverted: #fff;
--section-background-color: #000;
--background-color: #000;
--background-color-inverted: #fff;
--interface-top-background-color: var(--background-color, #000);
--interface-background-color: var(--background-color, #000);
--interface-bottom-background-color: var(--background-color, #000);
--red: red;
--white: #fff;
--paper: var(--white);
}
}

View File

@@ -1,4 +1,7 @@
@charset "UTF-8"; @charset "UTF-8";
footer { footer {
&:not(:has(*)) {
display: none;
}
} }

View File

@@ -1,4 +1,7 @@
@charset "UTF-8"; @charset "UTF-8";
header { header {
&:not(:has(*)) {
display: none;
}
} }

View File

@@ -1,6 +1,11 @@
@charset "UTF-8"; @charset "UTF-8";
body {
margin: unset;
}
main { main {
flex-grow: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;

View File

@@ -1,8 +0,0 @@
<?php
return [
'endpoint' => 'unix:///var/run/arangodb3/arango.sock',
'database' => '${REPO_NAME}',
'name' => '${REPO_NAME}',
'password' => ''
];

View File

@@ -19,6 +19,8 @@
<link type="text/css" rel="stylesheet" href="/themes/default/css/header.css" /> <link type="text/css" rel="stylesheet" href="/themes/default/css/header.css" />
<link type="text/css" rel="stylesheet" href="/themes/default/css/main.css" /> <link type="text/css" rel="stylesheet" href="/themes/default/css/main.css" />
<link type="text/css" rel="stylesheet" href="/themes/default/css/aside.css" /> <link type="text/css" rel="stylesheet" href="/themes/default/css/aside.css" />
<link type="text/css" rel="stylesheet" href="/themes/default/css/themes/default/footer.css" /> <link type="text/css" rel="stylesheet" href="/themes/default/css/footer.css" />
<link type="text/css" rel="stylesheet" href="/themes/default/css/themes/default/colors.css" /> <style id="theme">
@import url('/themes/default/css/themes/default/colorscheme.css');
</style>
{% endblock %} {% endblock %}

View File

@@ -5,24 +5,27 @@
{% use "/themes/default/footer.html" with css as footer_css, body as footer, js as footer_js %} {% use "/themes/default/footer.html" with css as footer_css, body as footer, js as footer_js %}
{% block css %} {% block css %}
{{ block('header_css') }} {{ block('header_css') }}
{{ block('aside_css') }} {{ block('aside_css') }}
{{ block('footer_css') }} {{ block('footer_css') }}
{% endblock %} {% endblock %}
{% block body %} {% block body %}
{{ block('header') }} {{ block('header') }}
{{ block('aside') }}
<main> {{ block('aside') }}
{% block main %}
{{ main|raw }} <main>
{% endblock %} {% block main %}
</main> {{ main|raw }}
{{ block('footer') }} {% endblock %}
</main>
{{ block('footer') }}
{% endblock %} {% endblock %}
{% block js %} {% block js %}
{{ block('footer_js') }} {{ block('header_js') }}
{{ block('header_js') }} {{ block('aside_js') }}
{{ block('aside_js') }} {{ block('footer_js') }}
{% endblock %} {% endblock %}

View File

@@ -23,9 +23,9 @@
}, },
"require": { "require": {
"php": "^8.4", "php": "^8.4",
"mirzaev/minimal": "^3.4", "mirzaev/minimal": "^3.6",
"mirzaev/baza": "^3.3", "mirzaev/baza": "^3.3",
"twig/twig": "^3.10", "twig/twig": "^3.2",
"twig/extra-bundle": "^3.7", "twig/extra-bundle": "^3.7",
"twig/intl-extra": "^3.10" "twig/intl-extra": "^3.10"
}, },