Skip to content

Commit

Permalink
📚 library update
Browse files Browse the repository at this point in the history
  • Loading branch information
Belikhun committed Jul 27, 2020
1 parent 7a0000e commit e66c24d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"ecmaVersion": 2018
},
"rules": {
"strict": "off",
"indent": "off",
"spaced-comment": "off"
}
}
3 changes: 2 additions & 1 deletion assets/css/spinner.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
animation: simple-rotate 0.75s linear 0s infinite;
}

body.dark .simpleSpinner {
body.dark .simpleSpinner,
.simpleSpinner.light {
border-color: rgb(214, 214, 214);
border-right-color: transparent;
}
Expand Down
24 changes: 12 additions & 12 deletions lib/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
define("CONFIG_EXCLUDE_TYPE", Array());

if (!defined("CONFIG_STRUCTURE"))
define("CONFIG_STRUCTURE", Array(
"system" => Array(
"__icon" => "server",
"__title" => "Config",

"emptyNote" => Array(
"type" => "note",
"level" => "info",
"text" => "Đây là template mặc định của config. Thay đổi tại /module/config.php"
define("CONFIG_STRUCTURE", Array(
"system" => Array(
"__icon" => "server",
"__title" => "Config",

"emptyNote" => Array(
"type" => "note",
"level" => "info",
"text" => "Đây là template mặc định của config. Thay đổi tại /module/config.php"
)
)
)
));
));

function generateDefaultConfig($child = CONFIG_STRUCTURE) {
$parent = Array();
Expand Down Expand Up @@ -105,7 +105,7 @@ function getConfig($path) {
return $value;
}

trigger_error("getConfig(): Không tìm thấy cài đặt ". implode(".", $path));
throw new BLibException(-1, "getConfig(): Không tìm thấy cài đặt ". implode(".", $path), 500, Array( "path" => $path ));
}

function saveConfig(Array $newConfig) {
Expand Down

0 comments on commit e66c24d

Please sign in to comment.