6 Commits
1.0.0 ... 1.5.0

502 changed files with 1941 additions and 1132 deletions

13
.gitmodules vendored
View File

@@ -2,14 +2,15 @@
path = hotline.mjs
url = https://git.svoboda.works/mirzaev/hotline.mjs
branch = stable
[submodule "womb3-simplex.mjs"]
path = womb3-simplex.mjs
url = https://git.svoboda.works/mirzaev/womb3-simplex.mjs
[submodule "damper.mjs"]
path = damper.mjs
url = https://git.svoboda.works/mirzaev/damper.mjs.git
branch = stable
[submodule "icons"]
path = icons
url = https://git.svoboda.works/mirzaev/icons
branch = stable
[submodule "three.js"]
path = three.js
url = https://github.com/mrdoob/three.js.git
[submodule "womb3-simplex.mjs"]
path = womb3-simplex.mjs
url = https://git.svoboda.works/mirzaev/womb3-simplex.mjs
branch = stable

View File

@@ -1,13 +1,13 @@
{
"name": "kodorvan/perm",
"description": "Лендинг для Перми от Ксении",
"homepage": "https://git.svoboda.works/kodorvan/perm",
"name": "kodorvan/site",
"description": "The kodorvan team main site",
"homepage": "https://git.svoboda.works/kodorvan/site",
"type": "site",
"keywords": [
"minimal",
"baza",
"landing",
"perm"
"site"
],
"readme": "README.md",
"license": "WTFPL",
@@ -20,8 +20,8 @@
}
],
"support": {
"wiki": "https://git.svoboda.works/kodorvan/perm/wiki",
"issues": "https://git.svoboda.works/kodorvan/perm/issues"
"wiki": "https://git.svoboda.works/kodorvan/site/wiki",
"issues": "https://git.svoboda.works/kodorvan/site/issues"
},
"require": {
"php": "^8.5",
@@ -32,7 +32,9 @@
"twig/twig": "^3.2",
"twig/extra-bundle": "^3.7",
"twig/intl-extra": "^3.10",
"phpmailer/phpmailer": "^7.0"
"phpmailer/phpmailer": "^7.0",
"mirzaev/record": "^2.2",
"svoboda/time": "^1.0"
},
"suggest": {
"mirzaev/files": "Easy working with files",
@@ -41,12 +43,12 @@
},
"autoload": {
"psr-4": {
"kodorvan\\perm\\": "kodorvan/perm/system"
"kodorvan\\site\\": "kodorvan/site/system"
}
},
"autoload-dev": {
"psr-4": {
"kodorvan\\perm\\tests\\": "kodorvan/perm/tests"
"kodorvan\\site\\tests\\": "kodorvan/site/tests"
}
},
"scripts": {

77
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "7f073bad5c03fc54b0098f63afbc0cd9",
"content-hash": "15ac0ce9a39edb330d95b578175d5636",
"packages": [
{
"name": "mirzaev/baza",
@@ -141,6 +141,48 @@
},
"time": "2026-04-17T06:08:04+00:00"
},
{
"name": "mirzaev/record",
"version": "2.2.0",
"source": {
"type": "git",
"url": "https://git.svoboda.works/mirzaev/record",
"reference": "71360614d6cbab0fe33ec0feca15005ca913397a"
},
"require": {
"mirzaev/baza": "^3.4",
"php": "^8.4",
"svoboda/time": "^1.0"
},
"type": "pattern",
"autoload": {
"psr-4": {
"mirzaev\\record\\": "mirzaev/record/system"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"WTFPL"
],
"authors": [
{
"name": "Arsen Mirzaev Tatyano-Muradovich",
"email": "arsen@mirzaev.sexy",
"homepage": "https://mirzaev.sexy",
"role": "Creator"
}
],
"description": "Active Record pattern for Baza",
"homepage": "https://git.svoboda.works/mirzaev/record",
"keywords": [
"baza"
],
"support": {
"issues": "https://git.svoboda.works/mirzaev/record/issues",
"wiki": "https://git.svoboda.works/mirzaev/record/wiki"
},
"time": "2026-03-08T18:23:49+00:00"
},
{
"name": "mobiledetect/mobiledetectlib",
"version": "4.8.10",
@@ -540,6 +582,39 @@
},
"time": "2021-10-29T13:26:27+00:00"
},
{
"name": "svoboda/time",
"version": "1.0.0",
"source": {
"type": "git",
"url": "https://git.svoboda.works/svoboda/time",
"reference": "0764960606d56a9f0865ebb07671d30a7d232b6a"
},
"require": {
"php": "^8.4"
},
"type": "library",
"autoload": {
"psr-4": {
"svoboda\\time\\": "svoboda/time/system"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"WTFPL"
],
"authors": [
{
"name": "Arsen Mirzaev Tatyano-Muradovich",
"email": "arsen@mirzaev.sexy",
"homepage": "https://mirzaev.sexy",
"role": "Programmer"
}
],
"description": "Time since Svoboda was created",
"homepage": "https://git.svoboda.works/svoboda/time",
"time": "2025-02-02T11:04:25+00:00"
},
{
"name": "symfony/cache",
"version": "v8.0.8",

View File

@@ -1,14 +1,16 @@
#!/bin/bash
git submodule update --init --recursive
if [ -d author/project ]; then
mv author/project author/perm
mv author/project author/site
fi
if [ -d author ]; then
mv author kodorvan
fi
for i in kodorvan/perm/system/settings/*.sample; do
for i in kodorvan/site/system/settings/*.sample; do
echo $i;
if [ ! -f "${i/.sample/}" ]; then
cp -n "$i" "${i/.sample/}";
@@ -16,26 +18,26 @@ for i in kodorvan/perm/system/settings/*.sample; do
fi
done
if ! [ -d kodorvan/perm/system/public/js/modules ]; then
mkdir kodorvan/perm/system/public/js/modules -p
if ! [ -d kodorvan/site/system/public/js/modules ]; then
mkdir kodorvan/site/system/public/js/modules -p
fi
if ! [ -L kodorvan/perm/system/public/js/modules/damper.mjs ]; then
ln -s ../../../../../../damper.mjs/damper.mjs kodorvan/perm/system/public/js/modules/damper.mjs;
if ! [ -L kodorvan/site/system/public/js/modules/damper.mjs ]; then
ln -s ../../../../../../damper.mjs/damper.mjs kodorvan/site/system/public/js/modules/damper.mjs;
fi
if ! [ -L kodorvan/perm/system/public/js/modules/hotline.mjs ]; then
ln -s ../../../../../../hotline.mjs/hotline.mjs kodorvan/perm/system/public/js/modules/hotline.mjs;
if ! [ -L kodorvan/site/system/public/js/modules/hotline.mjs ]; then
ln -s ../../../../../../hotline.mjs/hotline.mjs kodorvan/site/system/public/js/modules/hotline.mjs;
fi
if ! [ -L kodorvan/perm/system/public/js/modules/womb3-simplex.mjs ]; then
ln -s ../../../../../../womb3-simplex.mjs/womb3-simplex.mjs kodorvan/perm/system/public/js/modules/womb3-simplex.mjs;
if ! [ -L kodorvan/site/system/public/js/modules/womb3-simplex.mjs ]; then
ln -s ../../../../../../womb3-simplex.mjs/womb3-simplex.mjs kodorvan/site/system/public/js/modules/womb3-simplex.mjs;
fi
if ! [ -L kodorvan/perm/system/public/js/modules/simplex-noise.mjs ]; then
ln -s ../../../../../../womb3-simplex.mjs/simplex-noise.mjs kodorvan/perm/system/public/js/modules/simplex-noise.mjs;
if ! [ -L kodorvan/site/system/public/js/modules/simplex-noise.mjs ]; then
ln -s ../../../../../../womb3-simplex.mjs/simplex-noise.mjs kodorvan/site/system/public/js/modules/simplex-noise.mjs;
fi
if ! [ -d kodorvan/perm/system/public/css/icons ]; then
ln -s ../../../../../icons/css kodorvan/perm/system/public/css/icons;
if ! [ -L kodorvan/site/system/public/css/icons ]; then
ln -s ../../../../../icons/css kodorvan/site/system/public/css/icons;
fi

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 893 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 364 KiB

View File

@@ -1,71 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="129.54482mm"
height="125.09652mm"
viewBox="0 0 129.54482 125.09652"
version="1.1"
id="svg1"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1">
<linearGradient
id="linearGradient3">
<stop
style="stop-color:#0060c6;stop-opacity:1;"
offset="0.20645721"
id="stop3" />
<stop
style="stop-color:#000356;stop-opacity:1;"
offset="0.9989059"
id="stop4" />
</linearGradient>
<linearGradient
id="linearGradient1">
<stop
style="stop-color:#6fc4ff;stop-opacity:1;"
offset="0.17076893"
id="stop1" />
<stop
style="stop-color:#0adf70;stop-opacity:0.63586265;"
offset="1"
id="stop2" />
</linearGradient>
<radialGradient
xlink:href="#linearGradient3"
id="radialGradient4"
cx="69.684677"
cy="90.595695"
fx="69.684677"
fy="90.595695"
r="49.385239"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.4657787,-0.63256258,0.71685408,1.6610996,-96.020968,-9.4714476)" />
<radialGradient
xlink:href="#linearGradient1"
id="radialGradient8"
cx="133.0006"
cy="106.39822"
fx="133.0006"
fy="106.39822"
r="64.772408"
gradientTransform="matrix(-2.5562072,0.53679846,-0.45438206,-2.1637443,446.93777,196.26702)"
gradientUnits="userSpaceOnUse" />
</defs>
<path
style="display:inline;fill:url(#radialGradient4);fill-opacity:0.983988;fill-rule:nonzero;stroke-width:2.22122;paint-order:stroke fill markers"
id="path2"
d="M 114.14959,66.009985 A 49.385239,49.385239 0 0 1 65.162476,115.39362 49.385239,49.385239 0 0 1 15.38553,66.806211 49.385239,49.385239 0 0 1 63.570075,16.639189 49.385239,49.385239 0 0 1 114.12391,64.41774" />
<path
id="path1"
style="display:inline;fill:url(#radialGradient8);stroke-width:2.64583;paint-order:stroke fill markers"
d="m 129.54482,60.324142 c 0,35.56901 -28.68229,64.483468 -64.250152,64.770218 C 29.72681,125.38111 0.58206084,96.932842 0.00858984,61.368452 -0.27814616,43.586256 6.6315828,27.351873 18.057823,15.455519 L 32.789578,50.834474 64.751888,64.645522 63.781478,106.2899 99.850468,58.627162 73.743498,34.999493 88.406328,0 c 7.79332,3.057143 14.862732,7.58429 20.856772,13.249271 5.99404,5.664982 10.91271,12.467797 14.40455,20.076274 3.49183,7.608477 5.55683,16.022617 5.84353,24.910247" />
<path
id="path5"
style="display:none;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;stroke-dasharray:none;stroke-opacity:1;paint-order:markers fill stroke"
d="m 156.03189,48.675988 c 0,0 -0.48124,1.149734 -0.48124,1.149734 7.47158,3.127366 13.76035,8.757556 18.60133,15.033917 3.47372,4.503708 5.77328,8.679785 8.08747,12.343411 1.02716,1.626109 1.99256,3.317001 2.88786,5.073729 5.57385,10.936769 8.27496,24.254811 6.33597,38.307871 -1.81681,13.16752 -7.63944,25.96117 -17.4307,35.65948 -5.03375,4.98596 -10.97996,9.0142 -17.69827,11.85196 -7.22782,3.05296 -15.1235,4.63388 -23.42167,4.73245 -0.85262,0.0108 -1.69223,0.004 -2.51863,-0.0189 -14.1633,-0.39672 -25.57791,-5.05285 -34.17105,-11.0133 C 85.038155,154.03818 77.884734,143.64417 73.765338,134.02513 68.088136,120.76851 67.595266,108.31489 69.031333,98.509565 70.913466,85.658549 76.262275,76.52398 79.737684,71.524371 c 3.696594,-5.317797 5.945701,-7.392864 5.945701,-7.392864 0,0 -2.33932,1.972559 -6.214586,7.199789 -3.636021,4.904518 -9.303495,13.993979 -11.461258,27.018426 -1.64637,9.937638 -1.344521,22.656968 4.328486,36.278968 4.114552,9.87985 11.373099,20.61326 22.855995,28.64738 8.830228,6.17816 20.582878,10.99648 35.149578,11.4045 0.84878,0.0238 1.71085,0.0347 2.58621,0.0316 8.48799,-0.0368 16.67375,-1.34049 24.38977,-4.07858 7.17719,-2.54687 13.78867,-6.28188 19.64994,-11.14174 11.39583,-9.44885 19.35723,-22.68375 22.78331,-37.34635 3.64637,-15.60541 1.86385,-31.494338 -4.58101,-44.839852 -1.02738,-2.127422 -2.16303,-4.170709 -3.39713,-6.124429 -2.75251,-4.35753 -6.99513,-8.511352 -12.19307,-12.129511 -7.56806,-5.267932 -15.28231,-8.267232 -23.06649,-11.525444 0,0 -0.48124,1.149734 -0.48124,1.149734 z"
transform="translate(-67.625562,-48.675988)" />
</svg>

Before

Width:  |  Height:  |  Size: 4.4 KiB

View File

@@ -1 +0,0 @@
../../../../../three.js/build/three.core.js

View File

@@ -1 +0,0 @@
../../../../../three.js/build/three.module.js

View File

@@ -1,249 +0,0 @@
@charset "UTF-8";
footer {
z-index: 4000;
position: relative;
height: var(--footer-height, 200px);
padding: 2rem 10vw;
display: flex;
align-items: self-end;
justify-content: space-between;
gap: 3rem;
/* overflow: hidden; */
color: #fff;
background-color: #000;
>div.sector {
height: 100%;
display: flex;
flex-direction: column;
justify-content: end;
gap: 1rem;
&.company {
justify-content: space-between;
align-items: end;
>article#contacts {
display: flex;
flex-direction: column;
align-items: end;
}
}
>article#office {
width: 250px;
height: 100%;
display: flex;
>div.map {
width: 100%;
height: 100%;
overflow: hidden;
border-radius: 0.75rem;
border: 2px solid #474023;
background-color: #0c110c;
>div.loading {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
filter: brigtless(0.8) blur(1px);
&:before {
margin-top: 50px;
position: absolute;
content: var(--map-loading, "Loading");
width: max-content;
text-align: center;
font-family: "Geologica";
font-style: normal;
font-weight: 400;
font-size: 0.6rem;
color: #533a3a;
}
>i.icon.loading.spinner {
color: #fff;
}
}
}
}
nav#links {
flex-grow: 1;
display: inline-flex;
justify-content: center;
gap: 1rem;
>a {
text-decoration: none;
font-family: "Geologica";
font-weight: 400;
font-size: 0.85rem;
color: #807f7f;
transition: color 0.1s ease-out;
&:is(:hover, :focus) {
color: #d5d5d5;
transition: color 0s;
}
&:active {
color: #4b4b4b;
transition: color 0s;
}
}
}
>article#contacts {
>h1.sim {
margin: unset;
display: flex;
gap: 0.4em;
font-size: 1.4em;
>span.country:before {
content: '+';
}
>span.operator:before {
content: '(';
}
>span.operator:after {
content: ')';
}
}
>p.worktime {
margin: unset;
margin-top: 0.6em;
display: flex;
gap: 0.5em;
>span.time.from {
display: flex;
gap: 0.2em;
&:before {
content: var(--contacts-worktime-from, 'from');
}
}
>span.time.to {
display: flex;
gap: 0.2em;
&:before {
content: var(--contacts-worktime-to, 'to');
}
}
}
}
>article#company {
justify-self: end;
width: 160px;
display: flex;
flex-direction: column;
gap: 0.5rem;
font-family: "Bahnschrift";
>h1.name {
margin: unset;
display: block;
text-align: right;
font-weight: 600;
font-size: 1rem;
}
>p.column {
margin: unset;
display: inline-flex;
flex-direction: column;
text-align: right;
gap: 0.2em;
font-size: 0.8rem;
color: grey;
>span.row {
display: inline-flex;
justify-content: end;
font-weight: 400;
&:before {
margin-right: auto;
font-weight: 600;
color: #fff;
}
}
>span.tax {
&:before {
content: var(--company-tax) ":";
}
}
>span.identifier {
&:before {
content: var(--company-identifier) ":";
}
}
}
}
}
>strong.background {
z-index: -100;
position: absolute;
bottom: -0.18em;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
font-size: 18em;
font-family: "Cascadia Code";
font-weight: 900;
/* opacity: 0.052; */
opacity: 0.042;
color: #00ffe7;
}
}
@media (width < 1200px) {
footer {
height: unset;
flex-direction: column;
align-items: center;
>div.sector {
width: 100%;
>article#office {
width: 100%;
height: 100px;
}
nav#links {
display: inline-flex;
justify-content: space-between;
gap: 1rem;
flex-flow: wrap row;
align-items: center;
}
&:is(.company) {
flex-direction: row;
>article#contacts {
align-items: start;
}
}
}
}
}

View File

@@ -1,71 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="129.54482mm"
height="125.09652mm"
viewBox="0 0 129.54482 125.09652"
version="1.1"
id="svg1"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1">
<linearGradient
id="linearGradient3">
<stop
style="stop-color:#0060c6;stop-opacity:1;"
offset="0.20645721"
id="stop3" />
<stop
style="stop-color:#000356;stop-opacity:1;"
offset="0.9989059"
id="stop4" />
</linearGradient>
<linearGradient
id="linearGradient1">
<stop
style="stop-color:#6fc4ff;stop-opacity:1;"
offset="0.17076893"
id="stop1" />
<stop
style="stop-color:#0adf70;stop-opacity:0.63586265;"
offset="1"
id="stop2" />
</linearGradient>
<radialGradient
xlink:href="#linearGradient3"
id="radialGradient4"
cx="69.684677"
cy="90.595695"
fx="69.684677"
fy="90.595695"
r="49.385239"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.4657787,-0.63256258,0.71685408,1.6610996,-96.020968,-9.4714476)" />
<radialGradient
xlink:href="#linearGradient1"
id="radialGradient8"
cx="133.0006"
cy="106.39822"
fx="133.0006"
fy="106.39822"
r="64.772408"
gradientTransform="matrix(-2.5562072,0.53679846,-0.45438206,-2.1637443,446.93777,196.26702)"
gradientUnits="userSpaceOnUse" />
</defs>
<path
style="display:inline;fill:url(#radialGradient4);fill-opacity:0.983988;fill-rule:nonzero;stroke-width:2.22122;paint-order:stroke fill markers"
id="path2"
d="M 114.14959,66.009985 A 49.385239,49.385239 0 0 1 65.162476,115.39362 49.385239,49.385239 0 0 1 15.38553,66.806211 49.385239,49.385239 0 0 1 63.570075,16.639189 49.385239,49.385239 0 0 1 114.12391,64.41774" />
<path
id="path1"
style="display:inline;fill:url(#radialGradient8);stroke-width:2.64583;paint-order:stroke fill markers"
d="m 129.54482,60.324142 c 0,35.56901 -28.68229,64.483468 -64.250152,64.770218 C 29.72681,125.38111 0.58206084,96.932842 0.00858984,61.368452 -0.27814616,43.586256 6.6315828,27.351873 18.057823,15.455519 L 32.789578,50.834474 64.751888,64.645522 63.781478,106.2899 99.850468,58.627162 73.743498,34.999493 88.406328,0 c 7.79332,3.057143 14.862732,7.58429 20.856772,13.249271 5.99404,5.664982 10.91271,12.467797 14.40455,20.076274 3.49183,7.608477 5.55683,16.022617 5.84353,24.910247" />
<path
id="path5"
style="display:none;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;stroke-dasharray:none;stroke-opacity:1;paint-order:markers fill stroke"
d="m 156.03189,48.675988 c 0,0 -0.48124,1.149734 -0.48124,1.149734 7.47158,3.127366 13.76035,8.757556 18.60133,15.033917 3.47372,4.503708 5.77328,8.679785 8.08747,12.343411 1.02716,1.626109 1.99256,3.317001 2.88786,5.073729 5.57385,10.936769 8.27496,24.254811 6.33597,38.307871 -1.81681,13.16752 -7.63944,25.96117 -17.4307,35.65948 -5.03375,4.98596 -10.97996,9.0142 -17.69827,11.85196 -7.22782,3.05296 -15.1235,4.63388 -23.42167,4.73245 -0.85262,0.0108 -1.69223,0.004 -2.51863,-0.0189 -14.1633,-0.39672 -25.57791,-5.05285 -34.17105,-11.0133 C 85.038155,154.03818 77.884734,143.64417 73.765338,134.02513 68.088136,120.76851 67.595266,108.31489 69.031333,98.509565 70.913466,85.658549 76.262275,76.52398 79.737684,71.524371 c 3.696594,-5.317797 5.945701,-7.392864 5.945701,-7.392864 0,0 -2.33932,1.972559 -6.214586,7.199789 -3.636021,4.904518 -9.303495,13.993979 -11.461258,27.018426 -1.64637,9.937638 -1.344521,22.656968 4.328486,36.278968 4.114552,9.87985 11.373099,20.61326 22.855995,28.64738 8.830228,6.17816 20.582878,10.99648 35.149578,11.4045 0.84878,0.0238 1.71085,0.0347 2.58621,0.0316 8.48799,-0.0368 16.67375,-1.34049 24.38977,-4.07858 7.17719,-2.54687 13.78867,-6.28188 19.64994,-11.14174 11.39583,-9.44885 19.35723,-22.68375 22.78331,-37.34635 3.64637,-15.60541 1.86385,-31.494338 -4.58101,-44.839852 -1.02738,-2.127422 -2.16303,-4.170709 -3.39713,-6.124429 -2.75251,-4.35753 -6.99513,-8.511352 -12.19307,-12.129511 -7.56806,-5.267932 -15.28231,-8.267232 -23.06649,-11.525444 0,0 -0.48124,1.149734 -0.48124,1.149734 z"
transform="translate(-67.625562,-48.675988)" />
</svg>

Before

Width:  |  Height:  |  Size: 4.4 KiB

View File

@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="1000px" height="1000px" viewBox="0 0 1000 1000" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 53.2 (72643) - https://sketchapp.com -->
<title>Artboard</title>
<desc>Created with Sketch.</desc>
<defs>
<linearGradient x1="50%" y1="0%" x2="50%" y2="99.2583404%" id="linearGradient-1">
<stop stop-color="#2AABEE" offset="0%"></stop>
<stop stop-color="#229ED9" offset="100%"></stop>
</linearGradient>
</defs>
<g id="Artboard" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<circle id="Oval" fill="url(#linearGradient-1)" cx="500" cy="500" r="500"></circle>
<path d="M226.328419,494.722069 C372.088573,431.216685 469.284839,389.350049 517.917216,369.122161 C656.772535,311.36743 685.625481,301.334815 704.431427,301.003532 C708.567621,300.93067 717.815839,301.955743 723.806446,306.816707 C728.864797,310.92121 730.256552,316.46581 730.922551,320.357329 C731.588551,324.248848 732.417879,333.113828 731.758626,340.040666 C724.234007,419.102486 691.675104,610.964674 675.110982,699.515267 C668.10208,736.984342 654.301336,749.547532 640.940618,750.777006 C611.904684,753.448938 589.856115,731.588035 561.733393,713.153237 C517.726886,684.306416 492.866009,666.349181 450.150074,638.200013 C400.78442,605.66878 432.786119,587.789048 460.919462,558.568563 C468.282091,550.921423 596.21508,434.556479 598.691227,424.000355 C599.00091,422.680135 599.288312,417.758981 596.36474,415.160431 C593.441168,412.561881 589.126229,413.450484 586.012448,414.157198 C581.598758,415.158943 511.297793,461.625274 375.109553,553.556189 C355.154858,567.258623 337.080515,573.934908 320.886524,573.585046 C303.033948,573.199351 268.692754,563.490928 243.163606,555.192408 C211.851067,545.013936 186.964484,539.632504 189.131547,522.346309 C190.260287,513.342589 202.659244,504.134509 226.328419,494.722069 Z" id="Path-3" fill="#FFFFFF"></path>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -1,15 +0,0 @@
<?php
// Initializing default theme for the views templater
define('THEME', 'default');
define('TELEGRAM_ROBOT', [
'domain' => 'kodorvan_bot'
]);
define('PROJECT_CONTACTS_SIM_REQUESTS', '79005004010');
define('PROJECT_CONTACTS_SIM_REQUESTS_COUNTRY', '7');
define('PROJECT_CONTACTS_SIM_REQUESTS_OPERATOR', '900');
define('PROJECT_CONTACTS_SIM_REQUESTS_NUMBER_1', '500');
define('PROJECT_CONTACTS_SIM_REQUESTS_NUMBER_2', '40');
define('PROJECT_CONTACTS_SIM_REQUESTS_NUMBER_3', '10');

View File

@@ -1,27 +0,0 @@
<section id="companies" class="unselectable">
{% for alt, file in integrations %}
<img class="{{ file }}" src="/themes/{{ theme }}/images/logotypes/{{ file }}.svg" alt="{{ alt }}" ondragstart="return false"/>
{% endfor %}
</section>
<script>
document.addEventListener('core.initialized', () =>
core.modules.connect(["hotline"]).then((connected) => {
// Imported the hotline.mjs module
// Initializing an instance of the hotline.mjs
const instance = new connected.hotline(document.getElementById("companies"));
// Initializing settings of the hotline instance
instance.alive = true;
instance.wheel = false;
instance.movable = false;
instance.hover = false;
instance.delta = 3;
instance.step = 0.2;
// Starting the hotline instance
instance.start();
})
);
</script>

View File

@@ -1,11 +0,0 @@
<section id="cookies" class="unselectable">
<div class="popup">
<div>
<p>ИСПОЛЬЗУЕТСЯ ТЕХНОЛОГИЯ COOKIES</p>
<small>№152-ФЗ «О персональных данных»</small>
</div>
</div>
<button onclick="let date = new Date(); document.cookie = 'cookies_popup_closed=true; expires=' + date.setDate(date.getDate() + 7) + '; path=/'; setTimeout(() => this.parentElement.remove(), 700); this.parentElement.style.opacity = 0">
<img class="cookie" src="/themes/default/images/cookie.png" alt="kodorvan cookies" ondragstart="return false" />
</button>
</section>

View File

@@ -1,52 +0,0 @@
{% block css %}
<style>
:root {
--map-loading: "Загрузка карты";
--map-loading: "Карта не загрузится :(";
--contacts-worktime-from: "{{ language.name == 'ru' or true ? 'с' : 'from' }}";
--contacts-worktime-to: "{{ language.name == 'ru' or true ? 'до' : 'to' }}";
--company-identifier: "{{ language.name == 'ru' or true ? 'ОГРН' : 'ID' }}";
--company-tax: "{{ language.name == 'ru' or true ? 'ИНН' : 'TAX' }}";
}
</style>
{% endblock %}
{% block body %}
<footer>
<div class="sector">
<article id="office">
<div class="map">
<div class="loading">
<i class="icon loading spinner animated"></i>
</div>
</div>
</article>
<nav id="links" class="unselectable">
<a href="/offer">ПУБЛИЧНАЯ ОФЕРТА</a>
<a href="https://ru.wikipedia.org/wiki/WTFPL">ЛИЦЕНЗИЯ</a>
<a href="https://t.me/kodorvan">КОДОРВАНЬ</a>
<a href="https://t.me/from_mirzaev">МИРЗАЕВ</a>
<a href="https://git.svoboda.works/kodorvan">РЕПОЗИТОРИЙ</a>
</nav>
</div>
<div class="sector company">
<article id="contacts">
<h1 class="sim"><span class="country">7</span><span class="operator">901</span><span>592</span><span>4211</span></h1>
<span class="mail support">support@kodorvan.tech</span>
<p class="worktime unselectable">Пермь, <span class="time from">10:00</span><span class="time to">19:00</span></p>
</article>
<article id="company">
<h1 class="name">ИП Мирзаев</h1>
<p class="column"><span class="tax row">271103176488</span><span class="identifier row">322270000004691</span></p>
</article>
</div>
<!-- <strong class="background unselectable">КОДОРВАНЬ</strong> -->
</footer>
{% endblock %}
{% block js %}
{% endblock %}

View File

@@ -1,4 +0,0 @@
{% block js %}
<script src="/js/modules/damper.mjs" type="module"></script>
<script src="/js/core.js"></script>
{% endblock %}

View File

@@ -1,135 +0,0 @@
{% extends "/themes/default/index.html" %}
{% block css %}
{{ parent() }}
<link type="text/css" rel="stylesheet" href="/css/icons/loading_spinner.css" />
<link type="text/css" rel="stylesheet" href="/themes/default/css/pages/offer.css" />
<link type="text/css" rel="stylesheet" href="/themes/default/css/elements/cookies.css" />
{% endblock %}
{% block before %}
{% endblock %}
{% block main %}
<h1 id="title" class="unselectable">
<span class="slogan">ВСЕХ ШАБЛОНОВ</span>
<a href="/" class="kodorvan">КОДОРВАНЬ</a>
</h1>
<article id="offer" aria-label="Публичная оферта">
<h1>Согласие на обработку электронных пользовательских данных</h1>
<div class="text">
<p>Я даю согласие на&nbsp;обработку моих электронных пользовательских данных АО&nbsp;«ПФ «СКБ&nbsp;Контур»&nbsp;(ИНН
6663003127)&nbsp;и&nbsp;его дочерним обществам (далее вместе&nbsp;— СКБ&nbsp;Контур, группа компаний),
в&nbsp;соответствии с&nbsp;разделом 6&nbsp;<a class="external-link" href="https://kontur.ru/about/policy"
rel="nofollow noopener">Политики&nbsp;обработки персональных данных</a>&nbsp;(далее&nbsp;— Политика),
в&nbsp;следующих целях:</p>
<ul>
<li>обеспечение корректной работы сайтов и&nbsp;программных продуктов СКБ&nbsp;Контур, персонализация, сохранение
настроек пользователя, повышение удобства работы;</li>
<li>сбор, обработка аналитических и&nbsp;статистических данных по&nbsp;тематике деятельности СКБ&nbsp;Контур,
использования информационных ресурсов, программных продуктов, товаров, работ и&nbsp;услуг СКБ&nbsp;Контур
для&nbsp;разработки новых программных продуктов, расширения спектра оказываемых услуг, контроля качества,
противодействия незаконным или&nbsp;несанкционированным действиям, мошенничеству при&nbsp;использовании
программных продуктов, товаров, работ и&nbsp;услуг СКБ&nbsp;Контур, обеспечение информационной безопасности.
</li>
</ul>
<p>Перечень электронных пользовательских данных, которые могут обрабатываться в&nbsp;соответствии с&nbsp;указанными
целями обработки:</p>
<ul>
<li>идентификаторы пользователя;</li>
<li>сетевые адреса;</li>
<li>файлы cookies;</li>
<li>идентификаторы устройств;</li>
<li>размеры и&nbsp;разрешение экрана;</li>
<li>сведения об&nbsp;аппаратном и&nbsp;программном обеспечении, например, браузерах, операционной системе,
установленных приложениях;</li>
<li>геолокация;</li>
<li>языковые настройки;</li>
<li>часовой пояс;</li>
<li>время и&nbsp;статистика использования приложений и&nbsp;информационных ресурсов СКБ&nbsp;Контур;</li>
<li>действия в&nbsp;сервисах СКБ&nbsp;Контур, источники переходов на&nbsp;веб-страницы, отправленные поисковые
и&nbsp;иные запросы, созданный пользователем контент.</li>
</ul>
<p>Кроме обработки данных cookies, установленных самими сайтами СКБ&nbsp;Контур, на&nbsp;моем устройстве могут
устанавливаться cookies, относящиеся к&nbsp;сайтам сторонних организаций, например, в&nbsp;случаях, когда
на&nbsp;сайтах СКБ&nbsp;Контур используются сторонние компоненты и&nbsp;программное обеспечение. Обработка таких
cookies регулируется политиками соответствующих сайтов, к&nbsp;которым они относятся, и&nbsp;может изменяться
без&nbsp;моего предварительного уведомления. К&nbsp;таким случаям может относиться размещение на&nbsp;сайтах:</p>
<ul>
<li><span>счетчиков посещений, аналитических и&nbsp;статистических сервисов для&nbsp;сбора статистики посещаемости
общедоступных страниц сайтов (Яндекс.Метрика, Яндекс.Аудитории, VK.com, Mail.ru);</span></li>
<li><span>виджетов вспомогательных сервисов для&nbsp;сбора обратной связи, организации чатов и&nbsp;иных видов
коммуникаций с&nbsp;пользователями (Carrot Quest, Callibri);</span></li>
<li><span>систем контекстной рекламы, баннерных и&nbsp;иных маркетинговых сетей (VK Ads);</span></li>
<li><span>кнопок авторизации на&nbsp;сайтах с&nbsp;помощью учетных записей в&nbsp;социальных сетях (VK ID, Яндекс
ID, Alfa ID);</span></li>
<li><span>иных сторонних компонент, используемых СКБ&nbsp;Контур на&nbsp;своих сайтах.</span></li>
</ul>
<p>Действия, на&nbsp;которые дается согласие: сбор, запись, систематизация, накопление, хранение, уточнение
(обновление, изменение), извлечение, использование, передача (предоставление, доступ,&nbsp;без&nbsp;осуществления
трансграничной передачи), обезличивание, блокирование, удаление, уничтожение, осуществляемые с&nbsp;использованием
средств автоматизации.</p>
<p>В&nbsp;случае если я не&nbsp;согласен с&nbsp;обработкой cookies, я принимаю на&nbsp;себя риск того,
что&nbsp;в&nbsp;таком случае функции и&nbsp;возможности сайта могут не&nbsp;быть доступны в&nbsp;полном объеме,
и&nbsp;могу выбрать один из&nbsp;следующих вариантов:</p>
<ul>
<li>произвести самостоятельную настройку своего браузера в&nbsp;соответствии с&nbsp;документацией
или&nbsp;справкой к&nbsp;нему таким образом, чтобы он на&nbsp;постоянной основе не&nbsp;разрешал принимать
и&nbsp;отправлять данные cookies для&nbsp;любых сайтов либо для&nbsp;конкретного сайта СКБ&nbsp;Контур
или&nbsp;сайта стороннего компонента;</li>
<li>переключиться в&nbsp;специальный режим «инкогнито» браузера для&nbsp;использования сайтом cookies
до&nbsp;закрытия окна браузера или&nbsp;до&nbsp;переключения обратно в&nbsp;обычный режим;</li>
<li>покинуть сайт во&nbsp;избежание дальнейшей обработки cookies.</li>
</ul>
<p>Я понимаю, что&nbsp;могу самостоятельно через&nbsp;встроенные в&nbsp;браузеры средства работы с&nbsp;данными
cookies управлять сохраненными данными, в&nbsp;том числе, удалять или&nbsp;просматривать сведения
об&nbsp;установленных сайтами cookies, включая:</p>
<ul>
<li>адреса сайтов и&nbsp;пути на&nbsp;них, куда будут отправляться cookies;</li>
<li>названия и&nbsp;значения параметров, хранящихся в&nbsp;cookies;</li>
<li>сроки действия cookies.</li>
</ul>
<p>Срок обработки электронных пользовательских данных&nbsp;— до&nbsp;наступления условий:</p>
<ul>
<li>достижение целей обработки персональных данных или&nbsp;максимальных сроков хранения;</li>
<li>утрата необходимости в&nbsp;достижении целей обработки персональных данных;</li>
<li>предоставление субъектом персональных данных или&nbsp;его законным представителем подтверждения того,
что&nbsp;персональные данные являются незаконно полученными или&nbsp;не&nbsp;являются необходимыми
для&nbsp;заявленной цели обработки;</li>
<li>отзыв согласия на&nbsp;обработку персональных данных, если сохранение персональных данных более
не&nbsp;требуется для&nbsp;целей обработки персональных данных;</li>
<li>законное требование о&nbsp;прекращении обработки персональных данных;</li>
<li>ликвидация (реорганизация) отдельно взятого общества, входящего в&nbsp;СКБ&nbsp;Контур, если обработка
осуществлялась исключительно в&nbsp;интересах данного общества и&nbsp;отсутствует какой-либо правопреемник
общества в&nbsp;СКБ&nbsp;Контур.</li>
</ul>
<p>Я уведомлен, что&nbsp;при&nbsp;необходимости я могу ознакомиться с&nbsp;актуальной версией Политики обработки
персональных данных СКБ&nbsp;Контур по&nbsp;адресу&nbsp;<a class="external-link"
href="https://kontur.ru/about/policy" rel="nofollow noopener">https://kontur.ru/about/policy</a>.</p>
</div>
</article>
{% endblock %}
{% block after %}
<div class="vignette"></div>
<div class="dots"></div>
{% endblock %}
{% block js %}
{{ parent() }}
{% endblock %}

View File

@@ -2,11 +2,11 @@
declare(strict_types=1);
namespace kodorvan\perm\controllers;
namespace kodorvan\site\controllers;
// Files of the project
use kodorvan\perm\views\templater,
kodorvan\perm\models\core as models;
use kodorvan\site\views\templater,
kodorvan\site\models\core as models;
// Library for languages support
use mirzaev\languages\language;
@@ -20,7 +20,7 @@ use mirzaev\minimal\core as minimal,
/**
* Controllers core
*
* @package kodorvan\perm\controllers
* @package kodorvan\site\controllers
*
* @param language $language Language
* @param response $response Response

View File

@@ -2,10 +2,10 @@
declare(strict_types=1);
namespace kodorvan\perm\controllers;
namespace kodorvan\site\controllers;
// Files of the project
use kodorvan\perm\controllers\core;
use kodorvan\site\controllers\core;
// Framework for PHP
use mirzaev\minimal\http\enumerations\content,
@@ -14,7 +14,7 @@ use mirzaev\minimal\http\enumerations\content,
/**
* Index
*
* @package kodorvan\perm\controllers
* @package kodorvan\site\controllers
*
* @param array $errors Registry of errors
*
@@ -195,78 +195,60 @@ final class index extends core
'site' => 'Сайт',
'chat_robot' => 'Чат-робот',
'program' => 'Программа',
'module' => 'Модуль',
'parser' => 'Парсер',
'script' => 'Скрипт',
'game' => 'Видеоигра',
/* 'site' => 'Сайты и браузерные расширения',
'chat_robot' => 'Чат-роботы (любой мессенджер)',
'program' => 'Программа (Android, iOS, Windows)',
'module' => 'Модуль для любой программы',
'parser' => 'Парсер данных API, HTTP и эмуляция',
'script' => 'Скрипт (автоматизация процессов)',
'game' => 'Видеоигра (Android, iOS, Windows)' */
'script' => 'Скрипт, парсер, макрос',
'module' => 'Модуль, плагин, расширение',
],
'purposes' => [
'funnel' => 'Воронка',
'contacts' => 'Контакты',
'neural_network' => 'Нейросети',
'gallery' => 'Галерея',
'crm' => 'CRM',
'landing' => 'Лендинг',
'marketplace' => 'Маркетплейс',
'search' => 'Поиск',
'calculate' => 'Расчёты',
'logic' => 'Логика',
'game' => гра',
'special' => 'Особенный',
'funnel' => 'Воронка (обработка пользователя)',
'contacts' => 'Контакты (сбор данных)',
'ai' => 'Внедрение ИИ',
'archive' => 'Архив (галерея, библиотека, реестр)',
'crm' => 'Индивидуальная CRM',
'landing' => 'Лендинг (посадочная страница)',
'marketplace' => 'Маркетплейс, магазин, витрина',
'saas' => 'SaaS проект',
'search' => 'Поиск и анализ',
'calculate' => 'Вычисления (калькулятор)',
'individual' => ндивидуальная разработка',
],
'integrations' => [
'one_c' => '1C',
'bitrix24' => 'Битрикс24',
'moy_sklad' => 'Мой Склад',
'telegram' => 'Телеграм',
'mail' => 'Почта',
'excel' => 'Excel'
]
];
// Initializing contacts data
$this->view->contacts = [
'sim' => [
'requests' => [
'full' => PROJECT_CONTACTS_SIM_REQUESTS ?? 'Ошибка',
'country' => PROJECT_CONTACTS_SIM_REQUESTS_COUNTRY ?? 'Ошибка',
'operator' => PROJECT_CONTACTS_SIM_REQUESTS_OPERATOR ?? 'Ошибка',
'number' => [
PROJECT_CONTACTS_SIM_REQUESTS_NUMBER_1 ?? 'Ошибка',
PROJECT_CONTACTS_SIM_REQUESTS_NUMBER_2 ?? 'Ошибка',
PROJECT_CONTACTS_SIM_REQUESTS_NUMBER_3 ?? 'Ошибка'
]
]
'excel' => 'Excel',
'ozon' => 'OZON',
'wildberries' => 'Wildberries',
'yandex_market' => 'Яндекс Маркет',
'avito' => 'Авито',
'vk' => 'ВКонтакте',
'max' => 'МАКС',
'telegram' => 'Телеграм',
'neural_networks' => 'Нейросети'
]
];
// Initializing contacts data
$this->view->integrations = [
'Вайлдберриз' => 'wildberries',
'ОЗОН' => 'ozon',
'Мой Склад' => 'moy_sklad',
'1С Предприятие' => '1c',
'Битрикс 24' => 'bitrix24',
'ВКонтакте' => 'vk',
'МАКС' => 'max',
/* 'yandex_direct', */
'Яндекс Директ' => 'yandex_market',
'ОЗОН' => 'ozon',
'Вайлдберриз' => 'wildberries',
'Авито' => 'avito',
'YClients' => 'yclients',
'ЮКасса' => 'yookassa',
'OpenAI' => 'openai'
'OpenAI' => 'openai',
/* 'yandex_direct', */
'Яндекс Директ' => 'yandex_market',
];
// Render page
$page = $this->view->render(
'main/index.html',
'pages/index.html',
[
'smartphone' => $this->request->smartphone,
'tablet' => $this->request->tablet

View File

@@ -2,10 +2,10 @@
declare(strict_types=1);
namespace kodorvan\perm\controllers;
namespace kodorvan\site\controllers;
// Files of the project
use kodorvan\perm\controllers\core;
use kodorvan\site\controllers\core;
// Framework for PHP
use mirzaev\minimal\http\enumerations\content,
@@ -14,7 +14,7 @@ use mirzaev\minimal\http\enumerations\content,
/**
* Offer
*
* @package kodorvan\perm\controllers
* @package kodorvan\site\controllers
*
* @param array $errors Registry of errors
*
@@ -44,25 +44,9 @@ final class offer extends core
if (str_contains($this->request->headers['accept'] ?? '', content::html->value)) {
// Request for HTML response
// Initializing contacts data
$this->view->contacts = [
'sim' => [
'requests' => [
'full' => PROJECT_CONTACTS_SIM_REQUESTS ?? 'Ошибка',
'country' => PROJECT_CONTACTS_SIM_REQUESTS_COUNTRY ?? 'Ошибка',
'operator' => PROJECT_CONTACTS_SIM_REQUESTS_OPERATOR ?? 'Ошибка',
'number' => [
PROJECT_CONTACTS_SIM_REQUESTS_NUMBER_1 ?? 'Ошибка',
PROJECT_CONTACTS_SIM_REQUESTS_NUMBER_2 ?? 'Ошибка',
PROJECT_CONTACTS_SIM_REQUESTS_NUMBER_3 ?? 'Ошибка'
]
]
]
];
// Render page
$page = $this->view->render(
'main/offer.html',
'pages/offer.html',
[
'smartphone' => $this->request->smartphone,
'tablet' => $this->request->tablet

View File

@@ -2,10 +2,10 @@
declare(strict_types=1);
namespace kodorvan\perm\controllers;
namespace kodorvan\site\controllers;
// Files of the project
use kodorvan\perm\controllers\core;
use kodorvan\site\controllers\core;
// PHP framework
use mirzaev\minimal\http\enumerations\content,
@@ -19,7 +19,7 @@ use PHPMailer\PHPMailer\PHPMailer as mail,
/**
* Index
*
* @package kodorvan\perm\controllers
* @package kodorvan\site\controllers
*
* @param array $errors Registry of errors
*
@@ -83,20 +83,20 @@ final class project extends core
$mail->setLanguage('ru');
$mail->CharSet = mail::CHARSET_UTF8;
$mail->isSMTP();
$mail->Host = 'smtp.mail.ru';
$mail->Host = MAIL['host'];
$mail->SMTPAuth = true;
$mail->Username = 'system@kodorvan.tech';
$mail->Password = 'c6oQF2nY0javI312eDS0';
$mail->Username = MAIL['sender']['mail'];
$mail->Password = MAIL['sender']['password'];
$mail->SMTPSecure = mail::ENCRYPTION_SMTPS;
$mail->Port = 465;
$mail->setFrom('system@kodorvan.tech', 'Система');
$mail->addAddress('request@kodorvan.tech', 'Заявки');
$mail->setFrom(MAIL['sender']['mail'], MAIL['sender']['name']);
$mail->addAddress(MAIL['receiver']['mail'], MAIL['receiver']['name']);
// The message
$mail->isHTML(true);
$mail->Subject = empty($request['project']['name']) ? 'Заказ' : 'Заказ: ' . $request['project']['name'];
$mail->Body = $this->view->render('messages/request.html', $request);
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
/* $mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; */
// Attachments
foreach ($files as $name => $file) {

View File

@@ -0,0 +1,98 @@
<?php
declare(strict_types=1);
namespace kodorvan\site\controllers;
// Files of the project
use kodorvan\site\controllers\core,
kodorvan\site\models\superpack;
// Framework for PHP
use mirzaev\minimal\http\enumerations\content,
mirzaev\minimal\http\enumerations\status;
// Baza database
use mirzaev\baza\database,
mirzaev\baza\column,
mirzaev\baza\record,
mirzaev\baza\enumerations\encoding,
mirzaev\baza\enumerations\type;
/**
* Offer
*
* @package kodorvan\site\controllers
*
* @param array $errors Registry of errors
*
* @method null index() Main page
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class superpack extends core
{
/**
* Errors
*
* @var array $errors Registry of errors
*/
protected array $errors = [
'system' => []
];
/**
* Page: superpack
*
* @return null
*/
public function index(string $urn): null
{
if (str_contains($this->request->headers['accept'] ?? '', content::html->value)) {
// Request for HTML response
// Initializing the superpack
$superpack = new superpack()->read(filter: fn(record $record) => $record->urn === $urn && $record->active === 1);
if ($superpack instanceof superpack) {
// Initialized the superpack
// Render page
$page = $this->view->render(
'pages/article.html',
[
'article' => [
'urn' => $urn,
'title' => $superpack->title,
'html' => $superpack->html
],
'smartphone' => $this->request->smartphone,
'tablet' => $this->request->tablet
]
);
} else {
// Not initialized the superpack
}
// Sending response
$this->response
->start()
->clean()
->sse()
->write($page)
->validate($this->request)
?->body()
->end();
// Deinitializing rendered page
unset($page);
// Exit (success)
return null;
}
// Exit (fail)
return null;
}
}

View File

@@ -2,7 +2,7 @@
declare(strict_types=1);
namespace kodorvan\perm\models;
namespace kodorvan\site\models;
// Framework for PHP
use mirzaev\minimal\model,
@@ -14,7 +14,7 @@ use exception;
/**
* Models core
*
* @package kodorvan\perm\models
* @package kodorvan\site\models
*
* @method void __construct() Constructor
*

View File

@@ -0,0 +1,215 @@
<?php
declare(strict_types=1);
namespace kodorvan\site\models;
// Files of the project
use kodorvan\site\models\core;
// Baza database
use mirzaev\baza\database,
mirzaev\baza\column,
mirzaev\baza\record,
mirzaev\baza\enumerations\encoding,
mirzaev\baza\enumerations\type;
// Active Record pattern
use mirzaev\record\interfaces\record as record_interface,
mirzaev\record\traits\record as record_trait;
// Svoboda time
use svoboda\time\statement as svoboda;
// Built-in libraries
use Exception as exception,
LogicException as exception_logic,
RuntimeException as exception_runtime;
/**
* Project
*
* @package kodorvan\site\models
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class superpack extends core implements record_interface
{
use record_trait;
/**
* File
*
* @var string $file Path to the database file
*/
protected string $file = DATABASES . DIRECTORY_SEPARATOR . 'superpacks.baza';
/**
* Database
*
* @var database $database The database
*/
public protected(set) database $database;
/**
* Serialized
*
* @var bool $serialized Is the implementator object serialized?
*/
private bool $serialized = true;
/**
* Constructor
*
* @method record|null $record The record
*
* @return void
*/
public function __construct(?record $record = null)
{
// Initializing the database
$this->database = new database()
->encoding(encoding::utf8)
->columns(
new column('identifier', type::long_long_unsigned),
/* new column('account', type::long_long_unsigned), */
new column('urn', type::long_long_unsigned),
new column('title', type::string, ['length' => 64]),
new column('html', type::string, ['length' => 8192]),
new column('text', type::string, ['length' => 8192]),
new column('supercost', type::integer_unsigned),
new column('active', type::char),
new column('updated', type::integer_unsigned),
new column('created', type::integer_unsigned)
)
->connect($this->file);
// Initializing the record
$record instanceof record and $this->record = $record;
}
/**
* Write
*
* @throws exception_logic when failed to process project integration
*
* @param int $account The account identifier
* @param string $urn URN
* @param string $title Title
* @param string|null $html Content (HTML)
* @param string|null $html Content (text)
* @param int $supercost Cost
* @param int $active Is the record active?
*
* @return record|false The record, if created
*/
public function write(
/* int $account, */
string $urn,
string $title,
?string $html = null,
?string $text = null,
?int $supercost = null,
bool $active = true,
): record|false {
if (!empty($html) || !empty($text)) {
// Initializing the record
$record = $this->database->record(
$this->database->count() + 1,
/* $account, */
$urn,
$title,
(string) $html,
(string) $text,
(int) $supercost,
(int) $active,
svoboda::timestamp(),
svoboda::timestamp()
);
// Writing the record into the database
$created = $this->database->write($record);
// Exit (success)
return $created ? $record : false;
}
// Exit (fail)
return false;
}
/**
* Serialize
*
* @return self The instance from which the method was called (fluent interface)
*/
public function serialize(): self
{
if ($this->serialized) {
// The record implementor is serialized
// Exit (fail)
throw new exception_runtime('The record implementor is already serialized');
}
// Serializing the record parameters
$this->record->active = (int) $this->record->active;
// Writing the status of serializing
$this->serialized = true;
// Exit (success)
return $this;
}
/**
* Deserialize
*
* @return self The instance from which the method was called (fluent interface)
*/
public function deserialize(): self
{
if (!$this->serialized) {
// The record implementor is deserialized
// Exit (fail)
throw new exception_runtime('The record implementor is already deserialized');
}
// Deserializing the record parameters
$this->record->active = (bool) $this->record->active;
// Writing the status of serializing
$this->serialized = false;
// Exit (success)
return $this;
}
/**
* Account
*
* Search for the account
*
* @return account|null The account
*/
/* public function account(): ?account
{
// Search for the account
$account = new account()->read(filter: fn(record $record) => $record->identifier === $this->account && $record->active === 1);
if ($account instanceof account) {
// Found the account account
// Deserializing the record
$account->deserialize();
// Exit (success)
return $account;
}
// Exit (fail)
return null;
} */
}

Some files were not shown because too many files have changed in this diff Show More