change namespace and composer.json

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2022-11-27 18:33:56 +10:00
parent b1d5a6c37b
commit fc2a1f2cca
66 changed files with 127 additions and 112 deletions

View File

@ -1,26 +1,41 @@
{
"name": "mirzaev/calculator",
"description": "Калькулятор рассчетов затрат для предприятия по резке металла",
"type": "project",
"license": "AGPL-3.0-or-later",
"homepage": "https://git.hood.su/mirzaev/calculator",
"name": "mirzaev/tordv-calculator",
"description": "Калькулятор стоимости услуг по обработке металла",
"readme": "README.md",
"keywords": [
"site",
"calculator"
],
"type": "site",
"homepage": "https://git.mirzaev.sexy/mirzaev/tordv-calculator",
"license": "WTFPL",
"authors": [
{
"name": "Arsen Mirzaev Tatyano-Muradovich",
"email": "arsen@mirzaev.sexy",
"homepage": "https://mirzaev.sexy",
"role": "Developer"
"role": "Programmer"
}
],
"require": {
"php": "^8.0.0",
"mirzaev/minimal": "^2.0.x-dev",
"twig/twig": "^3.3",
"phpoffice/phpspreadsheet": "^1.20"
"support": {
"email": "arsen@mirzaev.sexy",
"wiki": "https://git.mirzaev.sexy/mirzaev/tordv-calculator/wiki",
"issues": "https://git.mirzaev.sexy/mirzaev/tordv-calculator/issues"
},
"autoload": {
"psr-4": {
"mirzaev\\calculator\\": "mirzaev/calculator/system"
"funding": [
{
"type": "funding",
"url": "https://fund.mirzaev.sexy"
],
"require": {
"php": "^8.0.0",
"mirzaev/minimal": "^2.0.x-dev",
"twig/twig": "^3.3",
"phpoffice/phpspreadsheet": "^1.20"
},
"autoload": {
"psr-4": {
"mirzaev\\tordv\\calculator\\": "mirzaev/tordv/calculator/system"
}
}
}
}

View File

@ -2,16 +2,16 @@
declare(strict_types=1);
namespace mirzaev\calculator\controllers;
namespace mirzaev\tordv\calculator\controllers;
use mirzaev\calculator\controllers\core;
use mirzaev\tordv\calculator\controllers\core;
use mirzaev\calculator\models\accounts_model as accounts;
use mirzaev\tordv\calculator\models\accounts_model as accounts;
/**
* Контроллер пользователей
*
* @package mirzaev\calculator\controllers
* @package mirzaev\tordv\calculator\controllers
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class accounts_controller extends core

View File

@ -2,13 +2,13 @@
declare(strict_types=1);
namespace mirzaev\calculator\controllers;
namespace mirzaev\tordv\calculator\controllers;
use Exception;
use mirzaev\calculator\controllers\core;
use mirzaev\calculator\models\calculators_model as calculators;
use mirzaev\calculator\models\settings_model as settings;
use mirzaev\calculator\models\metals_model as metals;
use mirzaev\tordv\calculator\controllers\core;
use mirzaev\tordv\calculator\models\calculators_model as calculators;
use mirzaev\tordv\calculator\models\settings_model as settings;
use mirzaev\tordv\calculator\models\metals_model as metals;
use Twig\Loader\FilesystemLoader;
use Twig\Environment as view;
@ -16,7 +16,7 @@ use Twig\Environment as view;
/**
* Контроллер основной страницы
*
* @package mirzaev\calculator\controllers
* @package mirzaev\tordv\calculator\controllers
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class calculator_controller extends core

View File

@ -2,15 +2,15 @@
declare(strict_types=1);
namespace mirzaev\calculator\controllers;
namespace mirzaev\tordv\calculator\controllers;
use mirzaev\calculator\controllers\core;
use mirzaev\calculator\models\accounts_model as accounts;
use mirzaev\tordv\calculator\controllers\core;
use mirzaev\tordv\calculator\models\accounts_model as accounts;
/**
* Контроллер контактов
*
* @package mirzaev\calculator\controllers
* @package mirzaev\tordv\calculator\controllers
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class contacts_controller extends core

View File

@ -2,17 +2,17 @@
declare(strict_types=1);
namespace mirzaev\calculator\controllers;
namespace mirzaev\tordv\calculator\controllers;
use mirzaev\calculator\views\manager;
use mirzaev\calculator\models\core as models;
use mirzaev\tordv\calculator\views\manager;
use mirzaev\tordv\calculator\models\core as models;
use mirzaev\minimal\controller;
/**
* Менеджер представлений
*
* @package mirzaev\calculator\controllers
* @package mirzaev\tordv\calculator\controllers
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
class core extends controller

View File

@ -2,9 +2,9 @@
declare(strict_types=1);
namespace mirzaev\calculator\controllers;
namespace mirzaev\tordv\calculator\controllers;
use mirzaev\calculator\controllers\core;
use mirzaev\tordv\calculator\controllers\core;
use Twig\Loader\FilesystemLoader;
use Twig\Environment as view;
@ -12,7 +12,7 @@ use Twig\Environment as view;
/**
* Контроллер основной страницы
*
* @package mirzaev\calculator\controllers
* @package mirzaev\tordv\calculator\controllers
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class errors_controller extends core

View File

@ -2,15 +2,15 @@
declare(strict_types=1);
namespace mirzaev\calculator\controllers;
namespace mirzaev\tordv\calculator\controllers;
use mirzaev\calculator\controllers\core;
use mirzaev\calculator\models\accounts_model as accounts;
use mirzaev\tordv\calculator\controllers\core;
use mirzaev\tordv\calculator\models\accounts_model as accounts;
/**
* Контроллер журналов
*
* @package mirzaev\calculator\controllers
* @package mirzaev\tordv\calculator\controllers
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class journal_controller extends core

View File

@ -2,10 +2,10 @@
declare(strict_types=1);
namespace mirzaev\calculator\controllers;
namespace mirzaev\tordv\calculator\controllers;
use mirzaev\calculator\controllers\core;
use mirzaev\calculator\models\accounts_model as accounts;
use mirzaev\tordv\calculator\controllers\core;
use mirzaev\tordv\calculator\models\accounts_model as accounts;
use Twig\Loader\FilesystemLoader;
use Twig\Environment as view;
@ -13,7 +13,7 @@ use Twig\Environment as view;
/**
* Контроллер основной страницы
*
* @package mirzaev\calculator\controllers
* @package mirzaev\tordv\calculator\controllers
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class main_controller extends core

View File

@ -2,16 +2,16 @@
declare(strict_types=1);
namespace mirzaev\calculator\controllers;
namespace mirzaev\tordv\calculator\controllers;
use mirzaev\calculator\controllers\core;
use mirzaev\calculator\models\accounts_model as accounts;
use mirzaev\calculator\models\settings_model as settings;
use mirzaev\tordv\calculator\controllers\core;
use mirzaev\tordv\calculator\models\accounts_model as accounts;
use mirzaev\tordv\calculator\models\settings_model as settings;
/**
* Контроллер настроек
*
* @package mirzaev\calculator\controllers
* @package mirzaev\tordv\calculator\controllers
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class settings_controller extends core

View File

@ -2,25 +2,25 @@
declare(strict_types=1);
namespace mirzaev\calculator\controllers;
namespace mirzaev\tordv\calculator\controllers;
use mirzaev\calculator\controllers\core;
use mirzaev\calculator\models\accounts_model as accounts;
use mirzaev\calculator\models\supplies_model as supplies;
use mirzaev\tordv\calculator\controllers\core;
use mirzaev\tordv\calculator\models\accounts_model as accounts;
use mirzaev\tordv\calculator\models\supplies_model as supplies;
use mirzaev\calculator\models\filters\import_aluminum_filter;
use mirzaev\calculator\models\filters\import_brass_filter;
use mirzaev\calculator\models\filters\import_copper_filter;
use mirzaev\calculator\models\filters\import_stainless_steel_filter;
use mirzaev\calculator\models\filters\import_steel_filter;
use mirzaev\calculator\models\filters\import_galvanized_steel_filter;
use mirzaev\tordv\calculator\models\filters\import_aluminum_filter;
use mirzaev\tordv\calculator\models\filters\import_brass_filter;
use mirzaev\tordv\calculator\models\filters\import_copper_filter;
use mirzaev\tordv\calculator\models\filters\import_stainless_steel_filter;
use mirzaev\tordv\calculator\models\filters\import_steel_filter;
use mirzaev\tordv\calculator\models\filters\import_galvanized_steel_filter;
use Exception;
/**
* Контроллер поставок
*
* @package mirzaev\calculator\controllers
* @package mirzaev\tordv\calculator\controllers
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class supplies_controller extends core

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace mirzaev\calculator\models;
namespace mirzaev\tordv\calculator\models;
use pdo;
use exception;
@ -10,7 +10,7 @@ use exception;
/**
* Модель регистрации, аутентификации и авторизации
*
* @package mirzaev\calculator\models
* @package mirzaev\tordv\calculator\models
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class accounts_model extends core

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace mirzaev\calculator\models;
namespace mirzaev\tordv\calculator\models;
use exception;
use pdo;
@ -10,7 +10,7 @@ use pdo;
/**
* Модель баллонов
*
* @package mirzaev\calculator\models
* @package mirzaev\tordv\calculator\models
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*
* @todo

View File

@ -2,18 +2,18 @@
declare(strict_types=1);
namespace mirzaev\calculator\models;
namespace mirzaev\tordv\calculator\models;
use mirzaev\calculator\models\settings_model as settings;
use mirzaev\calculator\models\metals_model as metals;
use mirzaev\calculator\models\baloons_model as baloons;
use mirzaev\tordv\calculator\models\settings_model as settings;
use mirzaev\tordv\calculator\models\metals_model as metals;
use mirzaev\tordv\calculator\models\baloons_model as baloons;
use exception;
/**
* Модель калькуляторов
*
* @package mirzaev\calculator\models
* @package mirzaev\tordv\calculator\models
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class calculators_model extends core

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace mirzaev\calculator\models;
namespace mirzaev\tordv\calculator\models;
use mirzaev\minimal\model;
@ -14,7 +14,7 @@ use exception;
/**
* Ядро моделей
*
* @package mirzaev\calculator\models
* @package mirzaev\tordv\calculator\models
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
class core extends model

View File

@ -2,14 +2,14 @@
declare(strict_types=1);
namespace mirzaev\calculator\models\filters;
namespace mirzaev\tordv\calculator\models\filters;
use mirzaev\calculator\models\filters\import_filter_noname_1;
use mirzaev\tordv\calculator\models\filters\import_filter_noname_1;
/**
* Фильтр импорта цен на алюминий от неизвестного поставщика под номером 1
*
* @package mirzaev\calculator\models\filters
* @package mirzaev\tordv\calculator\models\filters
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class import_aluminum_filter extends import_filter_noname_1

View File

@ -2,14 +2,14 @@
declare(strict_types=1);
namespace mirzaev\calculator\models\filters;
namespace mirzaev\tordv\calculator\models\filters;
use mirzaev\calculator\models\filters\import_filter_noname_1;
use mirzaev\tordv\calculator\models\filters\import_filter_noname_1;
/**
* Фильтр импорта цен на латунь от неизвестного поставщика под номером 1
*
* @package mirzaev\calculator\models\filters
* @package mirzaev\tordv\calculator\models\filters
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class import_brass_filter extends import_filter_noname_1

View File

@ -2,14 +2,14 @@
declare(strict_types=1);
namespace mirzaev\calculator\models\filters;
namespace mirzaev\tordv\calculator\models\filters;
use mirzaev\calculator\models\filters\import_filter_noname_1;
use mirzaev\tordv\calculator\models\filters\import_filter_noname_1;
/**
* Фильтр импорта цен на медь от неизвестного поставщика под номером 1
*
* @package mirzaev\calculator\models\filters
* @package mirzaev\tordv\calculator\models\filters
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class import_copper_filter extends import_filter_noname_1

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace mirzaev\calculator\models\filters;
namespace mirzaev\tordv\calculator\models\filters;
use PhpOffice\PhpSpreadsheet\Reader\IReadFilter as filter;
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
@ -10,7 +10,7 @@ use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
/**
* Интерфейс фильтра импорта
*
* @package mirzaev\calculator\models\filters
* @package mirzaev\tordv\calculator\models\filters
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
interface import_filter extends filter

View File

@ -2,17 +2,17 @@
declare(strict_types=1);
namespace mirzaev\calculator\models\filters;
namespace mirzaev\tordv\calculator\models\filters;
use mirzaev\calculator\models\filters\import_filter as filter;
use mirzaev\calculator\models\metals_model as metals;
use mirzaev\tordv\calculator\models\filters\import_filter as filter;
use mirzaev\tordv\calculator\models\metals_model as metals;
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
/**
* Фильтр импорта для документов от "МЕТАЛЛСЕРВИС"
*
* @package mirzaev\calculator\models\filters
* @package mirzaev\tordv\calculator\models\filters
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
class import_filter_mc implements filter

View File

@ -2,10 +2,10 @@
declare(strict_types=1);
namespace mirzaev\calculator\models\filters;
namespace mirzaev\tordv\calculator\models\filters;
use mirzaev\calculator\models\filters\import_filter as filter;
use mirzaev\calculator\models\metals_model as metals;
use mirzaev\tordv\calculator\models\filters\import_filter as filter;
use mirzaev\tordv\calculator\models\metals_model as metals;
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
use PhpOffice\PhpSpreadsheet\Cell\Coordinate;
@ -13,7 +13,7 @@ use PhpOffice\PhpSpreadsheet\Cell\Coordinate;
/**
* Фильтр импорта для документов от неизвестного поставщика под номером 1
*
* @package mirzaev\calculator\models\filters
* @package mirzaev\tordv\calculator\models\filters
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
class import_filter_noname_1 implements filter

View File

@ -2,14 +2,14 @@
declare(strict_types=1);
namespace mirzaev\calculator\models\filters;
namespace mirzaev\tordv\calculator\models\filters;
use mirzaev\calculator\models\filters\import_filter_noname_1;
use mirzaev\tordv\calculator\models\filters\import_filter_noname_1;
/**
* Фильтр импорта цен на оцинкованную сталь от "МЕТАЛЛСЕРВИС"
*
* @package mirzaev\calculator\models\filters
* @package mirzaev\tordv\calculator\models\filters
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*
* @todo 1. Доделать 982 до 992 строки

View File

@ -2,14 +2,14 @@
declare(strict_types=1);
namespace mirzaev\calculator\models\filters;
namespace mirzaev\tordv\calculator\models\filters;
use mirzaev\calculator\models\filters\import_filter_noname_1;
use mirzaev\tordv\calculator\models\filters\import_filter_noname_1;
/**
* Фильтр импорта цен на нержавеющую сталь от неизвестного поставщика под номером 1
*
* @package mirzaev\calculator\models\filters
* @package mirzaev\tordv\calculator\models\filters
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*
* @todo 1. Доделать 982 до 992 строки

View File

@ -2,14 +2,14 @@
declare(strict_types=1);
namespace mirzaev\calculator\models\filters;
namespace mirzaev\tordv\calculator\models\filters;
use mirzaev\calculator\models\filters\import_filter_mc;
use mirzaev\tordv\calculator\models\filters\import_filter_mc;
/**
* Фильтр импорта цен на чёрную сталь от "МЕТАЛЛСЕРВИС"
*
* @package mirzaev\calculator\models\filters
* @package mirzaev\tordv\calculator\models\filters
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class import_steel_filter extends import_filter_mc

View File

@ -2,10 +2,10 @@
declare(strict_types=1);
namespace mirzaev\calculator\models;
namespace mirzaev\tordv\calculator\models;
use mirzaev\calculator\models\settings_model as settings;
use mirzaev\calculator\models\accounts_model as accounts;
use mirzaev\tordv\calculator\models\settings_model as settings;
use mirzaev\tordv\calculator\models\accounts_model as accounts;
use pdo;
use exception;
@ -13,7 +13,7 @@ use exception;
/**
* Модель металла
*
* @package mirzaev\calculator\models
* @package mirzaev\tordv\calculator\models
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class metals_model extends core

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace mirzaev\calculator\models;
namespace mirzaev\tordv\calculator\models;
use pdo;
use exception;
@ -10,7 +10,7 @@ use exception;
/**
* Модель настроек
*
* @package mirzaev\calculator\models
* @package mirzaev\tordv\calculator\models
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class settings_model extends core

View File

@ -2,10 +2,10 @@
declare(strict_types=1);
namespace mirzaev\calculator\models;
namespace mirzaev\tordv\calculator\models;
use mirzaev\calculator\models\accounts_model as accounts;
use mirzaev\calculator\models\filters\import_filter as filter;
use mirzaev\tordv\calculator\models\accounts_model as accounts;
use mirzaev\tordv\calculator\models\filters\import_filter as filter;
use PhpOffice\PhpSpreadsheet\Reader\Xls as reader;
@ -15,7 +15,7 @@ use exception;
/**
* Модель поставки
*
* @package mirzaev\calculator\models
* @package mirzaev\tordv\calculator\models
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class supplies_model extends core

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View File

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace mirzaev\calculator;
namespace mirzaev\tordv\calculator;
use mirzaev\minimal\core;
use mirzaev\minimal\router;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace mirzaev\calculator\views;
namespace mirzaev\tordv\calculator\views;
use mirzaev\minimal\controller;
@ -12,7 +12,7 @@ use Twig\Environment as view;
/**
* Менеджер представлений
*
* @package mirzaev\calculator\controllers
* @package mirzaev\tordv\calculator\controllers
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class manager extends controller