Skip to content

Commit

Permalink
fixed aliased paths to real
Browse files Browse the repository at this point in the history
  • Loading branch information
strorch authored and hiqsol committed Jul 7, 2020
1 parent 4d981c9 commit 172cf68
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions config/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@
'translations' => [
'hipanel' => [
'class' => \yii\i18n\PhpMessageSource::class,
'basePath' => '@hipanel/messages',
'basePath' => dirname(__DIR__) . '/src/messages',
],
'hipanel:synt' => [
'class' => \yii\i18n\PhpMessageSource::class,
'basePath' => '@hipanel/messages',
'basePath' => dirname(__DIR__) . '/src/messages',
],
'hipanel:block-reasons' => [
'class' => \yii\i18n\PhpMessageSource::class,
'basePath' => '@hipanel/messages',
'basePath' => dirname(__DIR__) . '/src/messages',
],
'hipanel.object-combo' => [
'class' => \yii\i18n\PhpMessageSource::class,
'basePath' => '@hipanel/messages',
'basePath' => dirname(__DIR__) . '/src/messages',
],
],
],
Expand Down
4 changes: 2 additions & 2 deletions config/i18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

return [
'languages' => ['ru'],
'sourcePath' => dirname(__DIR__),
'messagePath' => dirname(__DIR__) . '/messages',
'sourcePath' => dirname(__DIR__) . '/src',
'messagePath' => dirname(__DIR__) . '/src/messages',
'sort' => true,
'removeUnused' => true,
];
6 changes: 3 additions & 3 deletions config/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'id' => 'hipanel',
'name' => 'HiPanel',
'basePath' => dirname(__DIR__),
'viewPath' => '@hisite/views',
'viewPath' => '@vendor/hiqdev/hisite/src/views',
'vendorPath' => '@root/vendor',
'runtimePath' => '@root/runtime',
'controllerNamespace' => 'hipanel\controllers',
Expand All @@ -31,7 +31,7 @@
],
'mailer' => [
'class' => \yii\swiftmailer\Mailer::class,
'viewPath' => '@hipanel/mail',
'viewPath' => dirname(__DIR__) . '/src/mail',
],
'orientationStorage' => [
'class' => \hipanel\components\OrientationStorage::class,
Expand Down Expand Up @@ -102,7 +102,7 @@
\hipanel\assets\AppAsset::class,
],
'pathMap' => [
'$themedViewPaths' => ['@hipanel/views'],
'$themedViewPaths' => [dirname(__DIR__) . '/src/views'],
],
],
'fileStorage' => [
Expand Down
2 changes: 1 addition & 1 deletion src/assets/AppAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

class AppAsset extends AssetBundle
{
public $sourcePath = '@hipanel/assets/AppAssetFiles';
public $sourcePath = __DIR__ . '/AppAssetFiles';
public $css = [
'//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css',
'css/panel.css',
Expand Down
2 changes: 1 addition & 1 deletion src/assets/ApplyToAllAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ApplyToAllAsset extends AssetBundle
/**
* {@inheridoc}
*/
public $sourcePath = '@hipanel/assets';
public $sourcePath = __DIR__;

/**
* {@inheridoc}
Expand Down
2 changes: 1 addition & 1 deletion src/assets/CheckboxStyleAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CheckboxStyleAsset extends \yii\web\AssetBundle
/**
* {@inheritdoc}
*/
public $sourcePath = '@hipanel/assets/css';
public $sourcePath = __DIR__ . '/css';

/**
* {@inheritdoc}
Expand Down
2 changes: 1 addition & 1 deletion src/assets/HipanelAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class HipanelAsset extends AssetBundle
{
public $sourcePath = '@hipanel/assets/js';
public $sourcePath = __DIR__ . '/js';

public $js = [
'hipanel.js',
Expand Down
2 changes: 1 addition & 1 deletion src/assets/IsotopeAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class IsotopeAsset extends AssetBundle
{
public $sourcePath = '@hipanel/assets/js';
public $sourcePath = __DIR__ . '/js';

public $js = [
'//cdnjs.cloudflare.com/ajax/libs/jquery.isotope/2.2.2/isotope.pkgd.min.js',
Expand Down
2 changes: 1 addition & 1 deletion src/assets/PincodePromptAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PincodePromptAsset extends AssetBundle
/**
* @var string
*/
public $sourcePath = '@hipanel/assets/js';
public $sourcePath = __DIR__ . '/js';

/**
* @var array
Expand Down
2 changes: 1 addition & 1 deletion src/console/TranslateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
class TranslateController extends MessageController
{
public $configFile = '@hipanel/config/i18n.php';
public $configFile = __DIR__ . '/../../config/i18n.php';

public function actionIndex($message = 'hello {world} apple beta {gamma {horse, cat}} this {mysite} this is a draw {apple {beta,{cat,dog} dog} house} farm')
{
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/RequestStateAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class RequestStateAsset extends \yii\web\AssetBundle
/**
* @var string
*/
public $sourcePath = '@hipanel/assets';
public $sourcePath = __DIR__ . '/../assets';

/**
* @var array
Expand Down

0 comments on commit 172cf68

Please sign in to comment.