Skip to content

Commit

Permalink
publish 2.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
liufee committed Oct 14, 2019
1 parent 888ebe5 commit 2939054
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -12,9 +12,11 @@ FeehiCMS没有对yii2做任何的修改、封装,但是把yii2的一些优秀

更新记录
-------
2.0.7 增加后台多图上传;增加文章分类和文章及单页html模版选择;优化前台一些html标签;
2.0.8 增加更多restful示例;后台crud生成适应联合联合主键;优化编辑后页面跳转;优化安装锁定;前台增加葡萄牙语

2.0.6 后台管理适配手机;增加后台代码注释操作运行命令自动生成权限;优化代码;
2.0.7 增加后台多图上传;增加文章分类和文章及单页html模版选择;优化前台一些html标签

2.0.6 后台管理适配手机;增加后台代码注释操作运行命令自动生成权限;优化代码

2.0.5 优化gii生成后台curd;增加列表页搜索框区域;增加form表单laydate、chosenSelect;修复其他bug

Expand Down
4 changes: 2 additions & 2 deletions backend/web/static/js/feehi.js
Expand Up @@ -257,7 +257,7 @@ $(document).ready(function(){
type: this.getAttribute('dateType'),
range: this.getAttribute('range') === 'true' ? true : ( this.getAttribute('range') === 'false' ? false : this.getAttribute('range') ),
format: this.getAttribute('format'),
value: this.getAttribute('value') === 'new Date()' ? new Date() : this.getAttribute('value'),
value: this.getAttribute('val') === 'new Date()' ? new Date() : this.getAttribute('val'),
isInitValue: this.getAttribute('isInitValue') != 'false',
min: this.getAttribute('min'),
max: this.getAttribute('max'),
Expand All @@ -283,7 +283,7 @@ $(document).ready(function(){
},100)
}
}
delete config['value'];
delete config['val'];

laydate.render(config);
});
Expand Down
4 changes: 2 additions & 2 deletions backend/widgets/ActiveField.php
Expand Up @@ -353,7 +353,7 @@ public function ueditor($options = [])
* 时间/日期输入框
*
* @param array $options
*
* - val: string 值,替代html的value属性,设置此val会在页面加载完成后由js把value改为val,此处与laydate不同之处,需要注意
* - type: string,输入框类型,默认date。可选值:
year 年选择器 只提供年列表选择
month 年月选择器 只提供年、月选择
Expand All @@ -373,7 +373,7 @@ public function date($options=[])
$options['range'] === true && $options['range'] = '~';
$options['range'] === false && $options['range'] = 'false';
!isset($options['format']) && $options['format'] = 'yyyy-MM-dd HH:mm:ss';
!isset($options['value']) && $options['value'] = $this->model->{$this->attribute} ? $this->model->{$this->attribute} : ( strpos(get_class($this->model), 'Search' ) !== false ? '' : 'new Date()' );
!isset($options['val']) && $options['val'] = $this->model->{$this->attribute} ? $this->model->{$this->attribute} : ( strpos(get_class($this->model), 'Search' ) !== false ? '' : 'new Date()' );
!isset($options['isInitValue']) && $options['isInitValue'] = false;
$options['isInitValue'] === true && $options['isInitValue'] = 'true';
$options['isInitValue'] === false && $options['isInitValue'] = 'false';
Expand Down
2 changes: 1 addition & 1 deletion common/config/main.php
@@ -1,7 +1,7 @@
<?php
return [
'name' => 'Feehi CMS',
'version' => '2.0.7.1',
'version' => '2.0.8',
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'aliases' => [
'@bower' => '@vendor/bower-asset',
Expand Down
4 changes: 1 addition & 3 deletions console/controllers/FileController.php
Expand Up @@ -112,7 +112,6 @@ public function actionPublish()
$temp . 'frontend' . DIRECTORY_SEPARATOR . 'web' . DIRECTORY_SEPARATOR . 'uploads',
$temp . 'frontend' . DIRECTORY_SEPARATOR . 'web' . DIRECTORY_SEPARATOR . 'admin' . DIRECTORY_SEPARATOR . 'assets',
$temp . 'frontend' . DIRECTORY_SEPARATOR . 'web' . DIRECTORY_SEPARATOR . 'admin' . DIRECTORY_SEPARATOR . 'uploads',
$temp . 'common' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR .'conf',
$temp . 'api' . DIRECTORY_SEPARATOR . 'runtime',
];
FileHelper::copyDirectory($origin, $publishDir);
Expand All @@ -123,8 +122,7 @@ public function actionPublish()
}
FileHelper::removeDirectory($publishDir . DIRECTORY_SEPARATOR . '.git');
FileHelper::removeDirectory($publishDir . DIRECTORY_SEPARATOR . '.idea');
FileHelper::createDirectory($publishDir . DIRECTORY_SEPARATOR . 'common' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR .'conf', 0777);
if( file_exists($publishDir . DIRECTORY_SEPARATOR . 'common' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR .'conf' . DIRECTORY_SEPARATOR . 'install.lock') ) unlink($publishDir . DIRECTORY_SEPARATOR . 'common' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR .'conf' . DIRECTORY_SEPARATOR . 'install.lock');
if( file_exists($publishDir . DIRECTORY_SEPARATOR . 'install' . DIRECTORY_SEPARATOR . 'install.lock') ) unlink($publishDir . DIRECTORY_SEPARATOR . 'install' . DIRECTORY_SEPARATOR . 'install.lock');
file_put_contents($temp . 'common' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'main-local.php', "<?php return [];?>" );
//passthru("composer archive --dir=$publishDir --format=zip");
$this->stdout('Copy Success' . "\n", Console::FG_GREEN);
Expand Down
1 change: 1 addition & 0 deletions frontend/views/layouts/main.php
Expand Up @@ -133,6 +133,7 @@
<select onchange="location.href=this.options[this.selectedIndex].value;" style="height: 30px">
<option <?php if (Yii::$app->language == 'zh-CN') {echo 'selected';} ?> value="<?= Url::to(['site/language', 'lang' => 'zh-CN']) ?>">简体中文</option>
<option <?php if (Yii::$app->language == 'en-US') {echo "selected";} ?> value="<?= Url::to(['site/language', 'lang' => 'en-US']) ?>">English</option>
<option <?php if (Yii::$app->language == 'pt-BR') {echo "selected";} ?> value="<?= Url::to(['site/language', 'lang' => 'pt-BR']) ?>">Português</option>
</select>
</p>
<p><?=Yii::$app->feehi->website_icp?> Powered by Feehi CMS <a title="飞嗨" target="_blank" href="http://blog.feehi.com">飞嗨</a></p>
Expand Down

0 comments on commit 2939054

Please sign in to comment.