mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 修复部分问题
1. 强制更新无法强制问题 2. 帮助页面无法显示版本号
This commit is contained in:
parent
5d3aec4326
commit
6e4a175d3a
@ -57,11 +57,9 @@ export class update extends plugin {
|
|||||||
|
|
||||||
const pluginName = "rconsole-plugin";
|
const pluginName = "rconsole-plugin";
|
||||||
|
|
||||||
let command = "";
|
let command = `git -C ./plugins/${pluginName}/ pull --no-rebase`;
|
||||||
if (isForce) {
|
if (isForce) {
|
||||||
command = `git checkout . && git -C ./plugins/${pluginName}/ pull --no-rebase`;
|
command = `git reset --hard origin/master && ${command}`;
|
||||||
} else {
|
|
||||||
command = `git -C ./plugins/${pluginName}/ pull --no-rebase`;
|
|
||||||
}
|
}
|
||||||
this.oldCommitId = await this.getCommitId(pluginName);
|
this.oldCommitId = await this.getCommitId(pluginName);
|
||||||
await e.reply("正在执行更新操作,请稍等");
|
await e.reply("正在执行更新操作,请稍等");
|
||||||
|
@ -27,7 +27,7 @@ export default class Help extends base {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
let versionData = config.getConfig('version')
|
const versionData = config.getConfig('version')
|
||||||
|
|
||||||
const version =
|
const version =
|
||||||
(versionData && versionData.length && versionData[0].version) || '1.0.0'
|
(versionData && versionData.length && versionData[0].version) || '1.0.0'
|
||||||
|
@ -4,12 +4,14 @@
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
@ -18,12 +20,14 @@ body {
|
|||||||
transform: scale(1.5);
|
transform: scale(1.5);
|
||||||
transform-origin: 0 0;
|
transform-origin: 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: 788px;
|
width: 788px;
|
||||||
padding: 20px 15px 10px 15px;
|
padding: 20px 15px 10px 15px;
|
||||||
background-image: url(../../img/bg.jpeg);
|
background-image: url(../../img/bg.jpeg);
|
||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.head_box {
|
.head_box {
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
font-family: 'tttgbnumber';
|
font-family: 'tttgbnumber';
|
||||||
@ -32,22 +36,27 @@ body {
|
|||||||
color: white;
|
color: white;
|
||||||
box-shadow: 0 5px 10px 0 rgb(0 0 0 / 15%);
|
box-shadow: 0 5px 10px 0 rgb(0 0 0 / 15%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.head_box .id_text {
|
.head_box .id_text {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.head_box .day_text {
|
.head_box .day_text {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.head_box .genshin_logo {
|
.head_box .genshin_logo {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -10px;
|
top: -10px;
|
||||||
right: 15px;
|
right: 15px;
|
||||||
width: 97px;
|
width: 97px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.base_info {
|
.base_info {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uid {
|
.uid {
|
||||||
font-family: tttgbnumber;
|
font-family: tttgbnumber;
|
||||||
}
|
}
|
||||||
@ -61,6 +70,7 @@ body {
|
|||||||
box-shadow: 0 0 1px 0 #ccc, 2px 2px 4px 0 rgba(50, 50, 50, 0.8);
|
box-shadow: 0 0 1px 0 #ccc, 2px 2px 4px 0 rgba(50, 50, 50, 0.8);
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab_lable {
|
.tab_lable {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -10px;
|
top: -10px;
|
||||||
@ -73,20 +83,24 @@ body {
|
|||||||
border-radius: 15px 0px 15px 15px;
|
border-radius: 15px 0px 15px 15px;
|
||||||
z-index: 20;
|
z-index: 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
.data_line {
|
.data_line {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
margin-bottom: 14px;
|
margin-bottom: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.data_line_item {
|
.data_line_item {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
/*margin: 0 20px;*/
|
/*margin: 0 20px;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.num {
|
.num {
|
||||||
font-family: tttgbnumber;
|
font-family: tttgbnumber;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.data_box .lable {
|
.data_box .lable {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #7f858a;
|
color: #7f858a;
|
||||||
@ -111,6 +125,7 @@ body {
|
|||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
margin: 0 0px 10px 10px;
|
margin: 0 0px 10px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list .item .icon {
|
.list .item .icon {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
@ -119,11 +134,13 @@ body {
|
|||||||
position: relative;
|
position: relative;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list .item .title {
|
.list .item .title {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .list .item .title .text{
|
/* .list .item .title .text{
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
} */
|
} */
|
||||||
@ -132,6 +149,7 @@ body {
|
|||||||
color: #999;
|
color: #999;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||||
<link
|
<link rel="stylesheet" type="text/css" href="{{pluResPath}}html/help/help.css" />
|
||||||
rel="stylesheet"
|
|
||||||
type="text/css"
|
|
||||||
href="{{pluResPath}}html/help/help.css"
|
|
||||||
/>
|
|
||||||
<link rel="preload" href="{{resPath}}font/tttgbnumber.ttf" as="font" />
|
<link rel="preload" href="{{resPath}}font/tttgbnumber.ttf" as="font" />
|
||||||
<link rel="preload" href="{{pluResPath}}img/bg.jpeg" as="image" />
|
<link rel="preload" href="{{pluResPath}}img/bg.jpeg" as="image" />
|
||||||
<link rel="preload" href="{{pluResPath}}img/rank/top.png" as="image" />
|
<link rel="preload" href="{{pluResPath}}img/rank/top.png" as="image" />
|
||||||
@ -18,7 +15,7 @@
|
|||||||
<div class="container" id="container">
|
<div class="container" id="container">
|
||||||
<div class="head_box">
|
<div class="head_box">
|
||||||
<div class="id_text">R-Plugin</div>
|
<div class="id_text">R-Plugin</div>
|
||||||
<h2 class="day_text">使用说明-v{{update}}</h2>
|
<h2 class="day_text">使用说明-当前版本:v{{version}}</h2>
|
||||||
<img class="genshin_logo" src="{{pluResPath}}img/rank/top.png" />
|
<img class="genshin_logo" src="{{pluResPath}}img/rank/top.png" />
|
||||||
</div>
|
</div>
|
||||||
{{each helpData val}}
|
{{each helpData val}}
|
||||||
@ -42,4 +39,5 @@
|
|||||||
<div class="logo">Created By Yunzai-Bot & R-Plugin</div>
|
<div class="logo">Created By Yunzai-Bot & R-Plugin</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
x
Reference in New Issue
Block a user