Skip to content

Commit 2939054

Browse files
committed
publish 2.0.8
1 parent 888ebe5 commit 2939054

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ FeehiCMS没有对yii2做任何的修改、封装,但是把yii2的一些优秀
1212

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

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

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

backend/web/static/js/feehi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ $(document).ready(function(){
257257
type: this.getAttribute('dateType'),
258258
range: this.getAttribute('range') === 'true' ? true : ( this.getAttribute('range') === 'false' ? false : this.getAttribute('range') ),
259259
format: this.getAttribute('format'),
260-
value: this.getAttribute('value') === 'new Date()' ? new Date() : this.getAttribute('value'),
260+
value: this.getAttribute('val') === 'new Date()' ? new Date() : this.getAttribute('val'),
261261
isInitValue: this.getAttribute('isInitValue') != 'false',
262262
min: this.getAttribute('min'),
263263
max: this.getAttribute('max'),
@@ -283,7 +283,7 @@ $(document).ready(function(){
283283
},100)
284284
}
285285
}
286-
delete config['value'];
286+
delete config['val'];
287287

288288
laydate.render(config);
289289
});

backend/widgets/ActiveField.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public function ueditor($options = [])
353353
* 时间/日期输入框
354354
*
355355
* @param array $options
356-
*
356+
* - val: string 值,替代html的value属性,设置此val会在页面加载完成后由js把value改为val,此处与laydate不同之处,需要注意
357357
* - type: string,输入框类型,默认date。可选值:
358358
year 年选择器 只提供年列表选择
359359
month 年月选择器 只提供年、月选择
@@ -373,7 +373,7 @@ public function date($options=[])
373373
$options['range'] === true && $options['range'] = '~';
374374
$options['range'] === false && $options['range'] = 'false';
375375
!isset($options['format']) && $options['format'] = 'yyyy-MM-dd HH:mm:ss';
376-
!isset($options['value']) && $options['value'] = $this->model->{$this->attribute} ? $this->model->{$this->attribute} : ( strpos(get_class($this->model), 'Search' ) !== false ? '' : 'new Date()' );
376+
!isset($options['val']) && $options['val'] = $this->model->{$this->attribute} ? $this->model->{$this->attribute} : ( strpos(get_class($this->model), 'Search' ) !== false ? '' : 'new Date()' );
377377
!isset($options['isInitValue']) && $options['isInitValue'] = false;
378378
$options['isInitValue'] === true && $options['isInitValue'] = 'true';
379379
$options['isInitValue'] === false && $options['isInitValue'] = 'false';

common/config/main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
return [
33
'name' => 'Feehi CMS',
4-
'version' => '2.0.7.1',
4+
'version' => '2.0.8',
55
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
66
'aliases' => [
77
'@bower' => '@vendor/bower-asset',

console/controllers/FileController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ public function actionPublish()
112112
$temp . 'frontend' . DIRECTORY_SEPARATOR . 'web' . DIRECTORY_SEPARATOR . 'uploads',
113113
$temp . 'frontend' . DIRECTORY_SEPARATOR . 'web' . DIRECTORY_SEPARATOR . 'admin' . DIRECTORY_SEPARATOR . 'assets',
114114
$temp . 'frontend' . DIRECTORY_SEPARATOR . 'web' . DIRECTORY_SEPARATOR . 'admin' . DIRECTORY_SEPARATOR . 'uploads',
115-
$temp . 'common' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR .'conf',
116115
$temp . 'api' . DIRECTORY_SEPARATOR . 'runtime',
117116
];
118117
FileHelper::copyDirectory($origin, $publishDir);
@@ -123,8 +122,7 @@ public function actionPublish()
123122
}
124123
FileHelper::removeDirectory($publishDir . DIRECTORY_SEPARATOR . '.git');
125124
FileHelper::removeDirectory($publishDir . DIRECTORY_SEPARATOR . '.idea');
126-
FileHelper::createDirectory($publishDir . DIRECTORY_SEPARATOR . 'common' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR .'conf', 0777);
127-
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');
125+
if( file_exists($publishDir . DIRECTORY_SEPARATOR . 'install' . DIRECTORY_SEPARATOR . 'install.lock') ) unlink($publishDir . DIRECTORY_SEPARATOR . 'install' . DIRECTORY_SEPARATOR . 'install.lock');
128126
file_put_contents($temp . 'common' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'main-local.php', "<?php return [];?>" );
129127
//passthru("composer archive --dir=$publishDir --format=zip");
130128
$this->stdout('Copy Success' . "\n", Console::FG_GREEN);

frontend/views/layouts/main.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
<select onchange="location.href=this.options[this.selectedIndex].value;" style="height: 30px">
134134
<option <?php if (Yii::$app->language == 'zh-CN') {echo 'selected';} ?> value="<?= Url::to(['site/language', 'lang' => 'zh-CN']) ?>">简体中文</option>
135135
<option <?php if (Yii::$app->language == 'en-US') {echo "selected";} ?> value="<?= Url::to(['site/language', 'lang' => 'en-US']) ?>">English</option>
136+
<option <?php if (Yii::$app->language == 'pt-BR') {echo "selected";} ?> value="<?= Url::to(['site/language', 'lang' => 'pt-BR']) ?>">Português</option>
136137
</select>
137138
</p>
138139
<p><?=Yii::$app->feehi->website_icp?> Powered by Feehi CMS <a title="飞嗨" target="_blank" href="http://blog.feehi.com">飞嗨</a></p>

0 commit comments

Comments
 (0)