Skip to content

Commit

Permalink
Release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Hill-98 committed Oct 29, 2019
1 parent 898a0e3 commit a368e1a
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 63 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "PHP opcache panel",
"type": "project",
"license": "MIT",
"version": "1.0.2",
"version": "1.1.0",
"homepage": "https://github.com/Hill-98/opcache-panel",
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
18 changes: 9 additions & 9 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion define.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
define('BASEDIR', __DIR__);
define('APP_DIR', __DIR__ . '/OpcachePanel');
define('OPP_VERSION', '1.0.2');
define('OPP_VERSION', '1.1.0');
define('OPP_INC', true);
define('AUTH_POST_KEY', ['password', 'logout']);
define('TITLE', 'Opcache Panel');
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "opcache-panel",
"version": "1.0.2",
"version": "1.1.0",
"description": "PHP opcache panel",
"author": "Zhong Lufan",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
Expand Down
2 changes: 1 addition & 1 deletion resources/components/opp-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
try {
await apiClient("resetCache");
} catch (e) {
// continue regardless of error
//
}
await opcacheData.getInfo()
},
Expand Down
11 changes: 2 additions & 9 deletions resources/components/status-tile-box.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
name: "status-tile-box",
computed: {
max_progress() {
if (!this.maxProgress) {
return 100;
}
return this.maxProgress
return this.maxProgress ? this.maxProgress : 100
},
show_value() {
return this.showValue || this.progressText !== undefined;
Expand All @@ -42,11 +39,7 @@
methods: {
conversion(name, value) {
if (name !== null) {
try {
return conversion[`${name}Conversion`](value);
} catch (e) {
//
}
return conversion[`${name}Conversion`](value);
}
return value;
}
Expand Down
6 changes: 2 additions & 4 deletions resources/views/CacheFiles.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<template v-if="scripts.length !== 0 || search_path !== ''">
<template v-if="scriptsNum !== 0 || search_path !== ''">
<!-- 缓存文件操作按钮 -->
<div class="level">
<div class="level-left">
Expand Down Expand Up @@ -138,9 +138,7 @@
})
.catch(window.EMPTY_FUNC)
},
refreshData(name) {
return opcacheData[name]();
},
refreshData: name => opcacheData[name](),
}
}
</script>
15 changes: 3 additions & 12 deletions resources/views/Status.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@
<b-tag type="is-dark">
Enable
</b-tag>
<b-tag type="is-success" v-if="opcache_enabled">
True
</b-tag>
<b-tag type="is-warning" v-else>
False
<b-tag :type="opcache_enabled ? 'is-success' : 'is-warning'">
{{ opcache_enabled ? 'True' : 'False' }}
</b-tag>
</b-taglist>
</div>
Expand Down Expand Up @@ -211,13 +208,7 @@
statusTileBox
},
methods: {
refreshData(name) {
try {
opcacheDataUtils[name]();
} catch (e) {
//
}
}
refreshData: name => opcacheDataUtils[name]()
}
}
</script>
43 changes: 18 additions & 25 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1938,9 +1938,9 @@ caniuse-api@^3.0.0:
lodash.uniq "^4.5.0"

caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001004:
version "1.0.30001004"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001004.tgz#d879b73981b255488316da946c39327d8c00a586"
integrity sha512-3nfOR4O8Wa2RWoYfJkMtwRVOsK96TQ+eq57wd0iKaEWl8dwG4hKZ/g0MVBfCvysFvMLi9fQGR/DvozMdkEPl3g==
version "1.0.30001005"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001005.tgz#823054210be638c725521edcb869435dae46728d"
integrity sha512-g78miZm1Z5njjYR216a5812oPiLgV1ssndgGxITHWUopmjUrCswMisA0a2kSB7a0vZRox6JOKhM51+efmYN8Mg==

case-sensitive-paths-webpack-plugin@^2.2.0:
version "2.2.0"
Expand Down Expand Up @@ -2235,11 +2235,9 @@ connect-history-api-fallback@^1.6.0:
integrity sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==

console-browserify@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10"
integrity sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=
dependencies:
date-now "^0.1.4"
version "1.2.0"
resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.2.0.tgz#67063cef57ceb6cf4993a2ab3a55840ae8c49336"
integrity sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==

console-control-strings@^1.0.0, console-control-strings@~1.1.0:
version "1.1.0"
Expand Down Expand Up @@ -2323,22 +2321,22 @@ copy-webpack-plugin@^5.0.3:
webpack-log "^2.0.0"

core-js-compat@^3.1.1, core-js-compat@^3.3.2:
version "3.3.4"
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.3.4.tgz#a151c6cd754edbfe6a4a2a66b9382df2ae74fbcd"
integrity sha512-7OK3/LPP8R3Ovasf3GilEOp+o1w0ZKJ75FMou2RDfTwIV69G5RkKCGFnqgBv/ZhR6xo9GCzlfVALyHmydbE7DA==
version "3.3.5"
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.3.5.tgz#7abf70778b73dc74aa99d4075aefcd99b76f2c3a"
integrity sha512-44ZORuapx0MUht0MUk0p9lcQPh7n/LDXehimTmjCs0CYblpKZcqVd5w0OQDUDq5OQjEbazWObHDQJWvvHYPNTg==
dependencies:
browserslist "^4.7.2"
semver "^6.3.0"

core-js-pure@^3.0.0:
version "3.3.4"
resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.3.4.tgz#01d2842f552a866265dc77ededb2ccd668ff2879"
integrity sha512-hqxt6XpR4zIMNUY920oNyAtwaq4yg8IScmXumnfyRWF9+ur7wtjr/4eCdfTJzY64jmi8WRCwIqNBKzYeOKdvnw==
version "3.3.5"
resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.3.5.tgz#23dc7e44bb946bf1752b377709e8591faffb0bac"
integrity sha512-njLfaPe3tS+8Swgx/itYgJ1jiizCWtNXrK1VzMoXbT6LhiYbIAQioukPmZlB2wTieJY2g4fLRUh96WfXpN61oA==

core-js@^3.3.2:
version "3.3.4"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.3.4.tgz#6b0a23392958317bfb46e40b090529a923add669"
integrity sha512-BtibooaAmSOptGLRccsuX/dqgPtXwNgqcvYA6kOTTMzonRxZ+pJS4e+6mvVutESfXMeTnK8m3M+aBu3bkJbR+w==
version "3.3.5"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.3.5.tgz#58d20f48a95a07304b62ff752742b82b56431ed8"
integrity sha512-0J3K+Par/ZydhKg8pEiTcK/9d65/nqJOzY62uMkjeBmt05fDOt/khUVjDdh8TpeIuGQDy1yLDDCjiWN/8pFIuw==

core-util-is@1.0.2, core-util-is@~1.0.0:
version "1.0.2"
Expand Down Expand Up @@ -2616,11 +2614,6 @@ dashdash@^1.12.0:
dependencies:
assert-plus "^1.0.0"

date-now@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b"
integrity sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=

de-indent@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/de-indent/-/de-indent-1.0.2.tgz#b2038e846dc33baa5796128d0804b455b8c1e21d"
Expand Down Expand Up @@ -7109,9 +7102,9 @@ source-map-resolve@^0.5.0:
urix "^0.1.0"

source-map-support@~0.5.12:
version "0.5.13"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932"
integrity sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==
version "0.5.15"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.15.tgz#20fe16f16e74644e21a396c78c841fa66e35df6c"
integrity sha512-wYF5aX1J0+V51BDT3Om7uXNn0ct2FWiV4bvwiGVefxkm+1S1o5jsecE5lb2U28DDblzxzxeIDbTVpXHI9D/9hA==
dependencies:
buffer-from "^1.0.0"
source-map "^0.6.0"
Expand Down

0 comments on commit a368e1a

Please sign in to comment.