Compare commits

...

3 Commits

Author SHA1 Message Date
b1ek 0e4b763c2f
fix: stupid typo 2024-08-21 18:08:20 +10:00
b1ek e4d11a2231
fix: commit missing dep 2024-08-21 18:07:25 +10:00
b1ek 9ef34d486a
refactor: remove useless commented out code 2024-08-21 18:03:27 +10:00
4 changed files with 61 additions and 4 deletions

View File

@ -18,7 +18,8 @@
"yiisoft/yii2": "~2.0.45", "yiisoft/yii2": "~2.0.45",
"yiisoft/yii2-bootstrap5": "~2.0.2", "yiisoft/yii2-bootstrap5": "~2.0.2",
"yiisoft/yii2-symfonymailer": "~2.0.3", "yiisoft/yii2-symfonymailer": "~2.0.3",
"yiithings/yii2-dotenv": "^1.1" "yiithings/yii2-dotenv": "^1.1",
"anper/iuliia": "^1.2"
}, },
"require-dev": { "require-dev": {
"yiisoft/yii2-debug": "~2.1.0", "yiisoft/yii2-debug": "~2.1.0",

58
composer.lock generated
View File

@ -4,8 +4,64 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "63a71971a5e6c01233ab35accc25836c", "content-hash": "178f60e2c261d5014e5d89ce798b23b9",
"packages": [ "packages": [
{
"name": "anper/iuliia",
"version": "v1.2.0",
"source": {
"type": "git",
"url": "https://github.com/perevoshchikov/iuliia-php.git",
"reference": "bda7352dbd80254dc63d7a6bb612462923b2c52d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/perevoshchikov/iuliia-php/zipball/bda7352dbd80254dc63d7a6bb612462923b2c52d",
"reference": "bda7352dbd80254dc63d7a6bb612462923b2c52d",
"shasum": ""
},
"require": {
"ext-mbstring": "*",
"php": "^7.3||^8.0"
},
"require-dev": {
"ext-json": "*",
"phpstan/phpstan": "^1.4",
"phpunit/phpunit": "^7.0||^8.0||^9.0",
"squizlabs/php_codesniffer": "^3.6"
},
"type": "library",
"autoload": {
"psr-4": {
"Anper\\Iuliia\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Anton Perevoshchikov",
"email": "anper3.5@gmail.com"
}
],
"description": "Transliterate Cyrillic → Latin in every possible way.",
"homepage": "https://github.com/perevoshchikov/iuliia-php",
"keywords": [
"cyrillic",
"iuliia",
"latin",
"translate",
"translit",
"transliterate"
],
"support": {
"issues": "https://github.com/perevoshchikov/iuliia-php/issues",
"source": "https://github.com/perevoshchikov/iuliia-php/tree/v1.2.0"
},
"time": "2022-02-28T11:19:41+00:00"
},
{ {
"name": "bower-asset/bootstrap", "name": "bower-asset/bootstrap",
"version": "v5.2.3", "version": "v5.2.3",

View File

@ -60,7 +60,7 @@ class Image extends \yii\db\ActiveRecord
{ {
return [ return [
[['sha256', 'original_name'], 'required'], [['sha256', 'original_name'], 'required'],
[['original_name'], 'match', '/^[a-z0-9-_]+(|\.[\w\d]+)$/i'], [['original_name'], 'match', 'pattern' => '/^[a-z0-9-_]+(|\.[\w\d]+)$/i'],
]; ];
} }

View File

@ -24,7 +24,7 @@ class ParameterSearch extends Parameter
public function search($params): ActiveDataProvider public function search($params): ActiveDataProvider
{ {
$query = Parameter::find();//->with(['icon', 'iconGray']); $query = Parameter::find();
$dataProvider = new ActiveDataProvider([ $dataProvider = new ActiveDataProvider([
'query' => $query, 'query' => $query,