21 Commits
2.4.0 ... 3.7.0

Author SHA1 Message Date
1261738c3d languages support + deleted @author tags 2025-10-26 18:06:27 +07:00
9718bec887 languages and currencies 2025-10-26 17:34:50 +07:00
7f8525789e update minimal 2025-10-11 16:35:55 +07:00
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
8c777e72c7 $ to $$ 2025-03-30 00:37:01 +07:00
19 changed files with 108 additions and 135 deletions

View File

@@ -6,9 +6,10 @@ namespace ${REPO_OWNER}\${REPO_NAME}\controllers;
// Files of the project
use ${REPO_OWNER}\${REPO_NAME}\views\templater,
${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\core as models;
// Library for languages support
use mirzaev\languages\language;
// Framework for PHP
use mirzaev\minimal\core as minimal,
@@ -29,7 +30,6 @@ use mirzaev\minimal\core as minimal,
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
* @author ${REPO_OWNER} <mail@domain.zone>
*/
class core extends controller
{
@@ -74,6 +74,9 @@ class core extends controller
// 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;
// Initializing the view template engine instance
$$this->view = new templater();
// For the extends system
parent::__construct(core: $$core);
}

View File

@@ -22,7 +22,6 @@ use mirzaev\minimal\http\enumerations\content,
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
* @author ${REPO_OWNER} <mail@domain.zone>
*/
final class index extends core
{

View File

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

View File

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

View File

@@ -20,7 +20,6 @@ use exception;
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
* @author ${REPO_OWNER} <mail@domain.zone>
*/
class core extends model
{

View File

@@ -1,62 +0,0 @@
<?php
declare(strict_types=1);
namespace ${REPO_OWNER}\${REPO_NAME}\models\enumerations;
/**
* Language
*
* Types of languages by ISO 639-1 standart
*
* @package ${REPO_OWNER}\${REPO_NAME}\models\enumerations
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
* @author ${REPO_OWNER} <mail@domain.zone>
*/
enum language
{
case en;
case ru;
/**
* Label
*
* Initialize label of the language
*
* @param language|null $language Language into which to translate
*
* @return string Translated label of the language
*/
public function label(?language $language = language::en): string
{
// Exit (success)
return match ($this) {
language::en => match ($language) {
language::en => 'English',
language::ru => 'Английский'
},
language::ru => match ($language) {
language::en => 'Russian',
language::ru => 'Русский'
}
};
}
/**
* Flag
*
* Initialize the flag emoji of the language
*
* @return string The flag emoji of the language
*/
public function flag(): string
{
// Exit (success)
return match ($this) {
language::en => '🇺🇸',
language::ru => '🇷🇺'
};
}
}

View File

@@ -18,7 +18,6 @@ use exception;
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
* @author ${REPO_OWNER} <mail@domain.zone>
*/
trait files
{

View File

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

View File

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

View File

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

View File

@@ -1,6 +1,11 @@
@charset "UTF-8";
body {
margin: unset;
}
main {
flex-grow: 1;
display: flex;
flex-direction: column;
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

@@ -4,8 +4,8 @@ declare(strict_types=1);
namespace ${REPO_OWNER}\${REPO_NAME}\views;
// Files of the project
use ${REPO_OWNER}\${REPO_NAME}\models\enumerations\language;
// Library for languages support
use mirzaev\languages\language;
// Framework for PHP
use mirzaev\minimal\controller;
@@ -34,7 +34,6 @@ use ArrayAccess as array_access,
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
* @author ${REPO_OWNER} <mail@domain.zone>
*/
final class templater extends controller implements array_access
{

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/main.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/themes/default/colors.css" />
<link type="text/css" rel="stylesheet" href="/themes/default/css/footer.css" />
<style id="theme">
@import url('/themes/default/css/themes/default/colorscheme.css');
</style>
{% endblock %}

View File

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

View File

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