Skip to content

Commit

Permalink
big change
Browse files Browse the repository at this point in the history
  • Loading branch information
yidashi committed Jul 16, 2016
1 parent a6fb9b6 commit 128bf99
Show file tree
Hide file tree
Showing 494 changed files with 19,150 additions and 1,158 deletions.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ YII_ENV = dev

# App
# ---------
APP_NAME = 饮水思源
APP_NAME = yidashicms

# Databases
# ---------
Expand Down Expand Up @@ -51,6 +51,8 @@ BACKEND_COOKIE_VALIDATION_KEY = c0AXETckg6V4dYDAPlp0iQNgQHYhKXqM
ADMIN_EMAIL = [email protected]
ROBOT_EMAIL = [email protected]

EDITOR_TYPE = redactor

# Webuploader
# -------

Expand Down
Empty file modified api/README.MD
100644 → 100755
Empty file.
Empty file modified api/common/behaviors/ValidateBehavior.php
100644 → 100755
Empty file.
Empty file modified api/common/controllers/Controller.php
100644 → 100755
Empty file.
Empty file modified api/config/bootstrap.php
100644 → 100755
Empty file.
Empty file modified api/config/main-local.php
100644 → 100755
Empty file.
Empty file modified api/config/main.php
100644 → 100755
Empty file.
Empty file modified api/config/params.php
100644 → 100755
Empty file.
Empty file modified api/modules/v1/Module.php
100644 → 100755
Empty file.
Empty file modified api/modules/v1/controllers/ArticleController.php
100644 → 100755
Empty file.
Empty file modified api/modules/v1/controllers/NavController.php
100644 → 100755
Empty file.
Empty file modified api/modules/v1/models/Article.php
100644 → 100755
Empty file.
50 changes: 35 additions & 15 deletions backend/assets/AppAsset.php
Original file line number Diff line number Diff line change
@@ -1,31 +1,51 @@
<?php
/**
* @link http:https://www.yiiframework.com/
*
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http:https://www.yiiframework.com/license/
*/
namespace backend\assets;

use yii\base\Exception;
use yii\web\AssetBundle;

/**
* @author Qiang Xue <[email protected]>
*
* @since 2.0
* AdminLte AssetBundle
* @since 0.1
*/
class AppAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $sourcePath = '@backend/assets';
public $css = [
'css/site.css',
'css/AdminLTE.min.css',
'css/site.css'
];
public $js = [
// 'js/site.js'
'js/app.min.js',
'plugins/slimScroll/jquery.slimscroll.min.js'
];
public $depends = [
// 'yii\web\YiiAsset',
// 'yii\bootstrap\BootstrapAsset',
'common\assets\FontAwesomeAsset',
'yii\web\YiiAsset',
'yii\bootstrap\BootstrapAsset',
'yii\bootstrap\BootstrapPluginAsset',
];

/**
* @var string|bool Choose skin color, eg. `'skin-blue'` or set `false` to disable skin loading
* @see https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html#layout
*/
public $skin = '_all-skins';

/**
* @inheritdoc
*/
public function init()
{
// Append skin color file if specified
if ($this->skin) {
if (('_all-skins' !== $this->skin) && (strpos($this->skin, 'skin-') !== 0)) {
throw new Exception('Invalid skin specified');
}

$this->css[] = sprintf('css/skins/%s.min.css', $this->skin);
}

parent::init();
}
}
7 changes: 7 additions & 0 deletions backend/assets/css/AdminLTE.min.css

Large diffs are not rendered by default.

File renamed without changes.
1 change: 1 addition & 0 deletions backend/assets/css/skins/_all-skins.min.css

Large diffs are not rendered by default.

142 changes: 142 additions & 0 deletions backend/assets/css/skins/skin-blue.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
/*
* Skin: Blue
* ----------
*/
.skin-blue .main-header .navbar {
background-color: #526bbe;
}
.skin-blue .main-header .navbar .nav > li > a {
color: #ffffff;
}
.skin-blue .main-header .navbar .nav > li > a:hover,
.skin-blue .main-header .navbar .nav > li > a:active,
.skin-blue .main-header .navbar .nav > li > a:focus,
.skin-blue .main-header .navbar .nav .open > a,
.skin-blue .main-header .navbar .nav .open > a:hover,
.skin-blue .main-header .navbar .nav .open > a:focus,
.skin-blue .main-header .navbar .nav > .active > a {
background: rgba(0, 0, 0, 0.1);
color: #f6f6f6;
}
.skin-blue .main-header .navbar .sidebar-toggle {
color: #ffffff;
}
.skin-blue .main-header .navbar .sidebar-toggle:hover {
color: #f6f6f6;
background: rgba(0, 0, 0, 0.1);
}
.skin-blue .main-header .navbar .sidebar-toggle {
color: #fff;
}
.skin-blue .main-header .navbar .sidebar-toggle:hover {
background-color: #384d94;
}
@media (max-width: 767px) {
.skin-blue .main-header .navbar .dropdown-menu li.divider {
background-color: rgba(255, 255, 255, 0.1);
}
.skin-blue .main-header .navbar .dropdown-menu li a {
color: #fff;
}
.skin-blue .main-header .navbar .dropdown-menu li a:hover {
background: #384d94;
}
}
.skin-blue .main-header .logo {
background-color: #384d94;
color: #ffffff;
border-bottom: 0 solid transparent;
}
.skin-blue .main-header .logo:hover {
background-color: #526bbe;
}
.skin-blue .main-header li.user-header {
background-color: #526bbe;
}
.skin-blue .content-header {
background: transparent;
}
.skin-blue .wrapper,
.skin-blue .main-sidebar,
.skin-blue .left-side {
background-color: #222d32;
}
.skin-blue .user-panel > .info,
.skin-blue .user-panel > .info > a {
color: #fff;
}
.skin-blue .sidebar-menu > li.header {
color: #4b646f;
background: #1a2226;
}
.skin-blue .sidebar-menu > li > a {
border-left: 3px solid transparent;
}
.skin-blue .sidebar-menu > li:hover > a,
.skin-blue .sidebar-menu > li.active > a {
color: #ffffff;
background: #1e282c;
border-left-color: #526bbe;
}
.skin-blue .sidebar-menu > li > .treeview-menu {
margin: 0 1px;
background: #2c3b41;
}
.skin-blue .sidebar a {
color: #b8c7ce;
}
.skin-blue .sidebar a:hover {
text-decoration: none;
}
.skin-blue .treeview-menu > li > a {
color: #8aa4af;
}
.skin-blue .treeview-menu > li.active > a,
.skin-blue .treeview-menu > li > a:hover {
color: #ffffff;
}
.skin-blue .sidebar-form {
border-radius: 3px;
border: 1px solid #374850;
margin: 10px 10px;
}
.skin-blue .sidebar-form input[type="text"],
.skin-blue .sidebar-form .btn {
box-shadow: none;
background-color: #374850;
border: 1px solid transparent;
height: 35px;
-webkit-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.skin-blue .sidebar-form input[type="text"] {
color: #666;
border-top-left-radius: 2px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 2px;
}
.skin-blue .sidebar-form input[type="text"]:focus,
.skin-blue .sidebar-form input[type="text"]:focus + .input-group-btn .btn {
background-color: #fff;
color: #666;
}
.skin-blue .sidebar-form input[type="text"]:focus + .input-group-btn .btn {
border-left-color: #fff;
}
.skin-blue .sidebar-form .btn {
color: #999;
border-top-left-radius: 0;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 0;
}
.skin-blue.layout-top-nav .main-header > .logo {
background-color:#384d94;
color: #ffffff;
border-bottom: 0 solid transparent;
}
.skin-blue.layout-top-nav .main-header > .logo:hover {
background-color:#526bbe;
}
Loading

0 comments on commit 128bf99

Please sign in to comment.