mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
feat: 版本机制; fix: fix: 绑定设备提示
This commit is contained in:
parent
d34c1d8be1
commit
8425503797
16 changed files with 820 additions and 59 deletions
141
resources/help/commit.css
Normal file
141
resources/help/commit.css
Normal file
|
|
@ -0,0 +1,141 @@
|
|||
@charset "UTF-8";
|
||||
.special-title {
|
||||
padding: 0;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.card {
|
||||
margin: 0 1em;
|
||||
padding: 1em 0;
|
||||
}
|
||||
.card .list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5em;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
.card .list .item {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
padding: 0.5em 1em;
|
||||
border-radius: 0.5em;
|
||||
border: 0.1em solid rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(0.5em);
|
||||
position: relative;
|
||||
}
|
||||
.card .list .item .version {
|
||||
filter: drop-shadow(0 0 0.05em #f0d480);
|
||||
position: relative;
|
||||
margin-bottom: 0.5em;
|
||||
font-size: 0.8em;
|
||||
display: flex;
|
||||
}
|
||||
.card .list .item .version .id {
|
||||
background: linear-gradient(90deg, #ffe6b4, #f2c94c);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
position: relative;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
.card .list .item .version .id::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 0.2em;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: linear-gradient(0deg, #f2c94c, #ffe6b4);
|
||||
z-index: -1;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
.card .list .item .version .time {
|
||||
background: linear-gradient(90deg, #ffe6b4, #f2c94c);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
.card .list .item.current {
|
||||
background-color: rgba(255, 255, 255, 0.15);
|
||||
backdrop-filter: blur(1.5em);
|
||||
}
|
||||
.card .list .item.current::after {
|
||||
content: "当前版本";
|
||||
font-size: 0.8em;
|
||||
position: absolute;
|
||||
right: 0.5em;
|
||||
top: 0.5em;
|
||||
color: #f2c94c;
|
||||
opacity: 0.5;
|
||||
}
|
||||
.card .list .item.current .version {
|
||||
filter: drop-shadow(0 0 0.1em rgba(231, 241, 35, 0.3));
|
||||
font-size: 1em;
|
||||
}
|
||||
.card .list .item.current .version .id {
|
||||
color: #f2784c;
|
||||
background: none;
|
||||
background-clip: unset;
|
||||
-webkit-text-fill-color: unset;
|
||||
font-size: 0.8em;
|
||||
padding-top: 0.3em;
|
||||
}
|
||||
.card .list .item.current .version .id::before {
|
||||
background: #f2784c;
|
||||
}
|
||||
.card .list .item.current .version .time {
|
||||
background: linear-gradient(90deg, #f2784c, #ffbca4);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
.card .list .item.newc::after {
|
||||
content: "NEW";
|
||||
font-size: 0.4em;
|
||||
background: linear-gradient(90deg, #f2c94c, #ffe6b4);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
filter: drop-shadow(0 0 0.05em #f0d480);
|
||||
top: 1em;
|
||||
right: 1em;
|
||||
position: absolute;
|
||||
border: 0.1em solid #f2c94c;
|
||||
padding: 0.1em 0.3em 0.2em 0.3em;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
.card .list .item .content {
|
||||
font-size: 0.8em;
|
||||
margin: 0 1em;
|
||||
}
|
||||
.card .list .item .cmd {
|
||||
font-size: 0.8em;
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
padding: 0.2em 0.4em;
|
||||
border-radius: 0.5em;
|
||||
margin: 0em 0.3em;
|
||||
border: 0.1em solid rgba(255, 255, 255, 0.1);
|
||||
color: #cadc9e;
|
||||
}
|
||||
.card .list .item .strong {
|
||||
color: #f2c94c;
|
||||
}
|
||||
.card .list .item .new {
|
||||
position: relative;
|
||||
}
|
||||
.card .list .item .new::before {
|
||||
content: "new";
|
||||
font-size: 0.4em;
|
||||
background: linear-gradient(90deg, #f2c94c, #ffe6b4);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
filter: drop-shadow(0 0 0.05em #f0d480);
|
||||
bottom: 1.8em;
|
||||
left: 0em;
|
||||
position: relative;
|
||||
border: 0.1em solid #f2c94c;
|
||||
padding: 0em 0.3em 0.2em 0.3em;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=commit.css.map */
|
||||
27
resources/help/commit.html
Normal file
27
resources/help/commit.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{{extend defaultLayout}}
|
||||
|
||||
{{block 'css'}}
|
||||
<link rel="stylesheet" href="{{@sys.currentPath}}/commit.css">
|
||||
{{/block}}
|
||||
|
||||
{{block 'main'}}
|
||||
<div class="card">
|
||||
<% include(sys.specialTitle, {en: 'COMMIT' , cn: '更新日志' }) %>
|
||||
|
||||
<div class="list">
|
||||
{{each commitData commit i}}
|
||||
<div class="item {{commit.current ? 'current' : ''}} {{!commit.local ? 'newc' : ''}}">
|
||||
<div class="version">
|
||||
<div class="id no-zzz-font">{{commit.commit}}</div>
|
||||
<div class="time">{{commit.date}}</div>
|
||||
</div>
|
||||
<div class="content no-zzz-font">
|
||||
{{@commit.msg}}
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
{{/block}}
|
||||
139
resources/help/commit.scss
Normal file
139
resources/help/commit.scss
Normal file
|
|
@ -0,0 +1,139 @@
|
|||
.special-title {
|
||||
padding: 0;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
.card {
|
||||
margin: 0 1em;
|
||||
padding: 1em 0;
|
||||
.list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5em;
|
||||
font-size: 0.9em;
|
||||
.item {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
padding: 0.5em 1em;
|
||||
border-radius: 0.5em;
|
||||
border: 0.1em solid rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(0.5em);
|
||||
position: relative;
|
||||
.version {
|
||||
filter: drop-shadow(0 0 0.05em #f0d480);
|
||||
position: relative;
|
||||
margin-bottom: 0.5em;
|
||||
font-size: 0.8em;
|
||||
display: flex;
|
||||
.id {
|
||||
background: linear-gradient(90deg, #ffe6b4, #f2c94c);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
position: relative;
|
||||
margin-right: 0.5em;
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 0.2em;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: linear-gradient(0deg, #f2c94c, #ffe6b4);
|
||||
z-index: -1;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
}
|
||||
.time {
|
||||
background: linear-gradient(90deg, #ffe6b4, #f2c94c);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
}
|
||||
&.current {
|
||||
background-color: rgba(255, 255, 255, 0.15);
|
||||
backdrop-filter: blur(1.5em);
|
||||
&::after {
|
||||
content: '当前版本';
|
||||
font-size: 0.8em;
|
||||
position: absolute;
|
||||
right: 0.5em;
|
||||
top: 0.5em;
|
||||
color: #f2c94c;
|
||||
opacity: 0.5;
|
||||
}
|
||||
.version {
|
||||
filter: drop-shadow(0 0 0.1em rgba(231, 241, 35, 0.3));
|
||||
font-size: 1em;
|
||||
.id {
|
||||
color: #f2784c;
|
||||
background: none;
|
||||
background-clip: unset;
|
||||
-webkit-text-fill-color: unset;
|
||||
font-size: 0.8em;
|
||||
padding-top: 0.3em;
|
||||
&::before {
|
||||
background: #f2784c;
|
||||
}
|
||||
}
|
||||
.time {
|
||||
background: linear-gradient(90deg, #f2784c, #ffbca4);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.newc {
|
||||
&::after {
|
||||
content: 'NEW';
|
||||
font-size: 0.4em;
|
||||
background: linear-gradient(90deg, #f2c94c, #ffe6b4);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
filter: drop-shadow(0 0 0.05em #f0d480);
|
||||
top: 1em;
|
||||
right: 1em;
|
||||
position: absolute;
|
||||
border: 0.1em solid #f2c94c;
|
||||
padding: 0.1em 0.3em 0.2em 0.3em;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
}
|
||||
.content {
|
||||
font-size: 0.8em;
|
||||
margin: 0 1em;
|
||||
}
|
||||
.cmd {
|
||||
font-size: 0.8em;
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
padding: 0.2em 0.4em;
|
||||
border-radius: 0.5em;
|
||||
margin: 0em 0.3em;
|
||||
border: 0.1em solid rgba(255, 255, 255, 0.1);
|
||||
color: #cadc9e;
|
||||
}
|
||||
.strong {
|
||||
color: #f2c94c;
|
||||
}
|
||||
.new {
|
||||
position: relative;
|
||||
&::before {
|
||||
content: 'new';
|
||||
font-size: 0.4em;
|
||||
background: linear-gradient(90deg, #f2c94c, #ffe6b4);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
filter: drop-shadow(0 0 0.05em #f0d480);
|
||||
bottom: 1.8em;
|
||||
left: 0em;
|
||||
position: relative;
|
||||
border: 0.1em solid #f2c94c;
|
||||
padding: 0em 0.3em 0.2em 0.3em;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
122
resources/help/version.css
Normal file
122
resources/help/version.css
Normal file
|
|
@ -0,0 +1,122 @@
|
|||
@charset "UTF-8";
|
||||
.special-title {
|
||||
padding: 0;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.card {
|
||||
margin: 0 1em;
|
||||
padding: 1em 0;
|
||||
}
|
||||
.card .list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5em;
|
||||
}
|
||||
.card .list .item {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
padding: 0.5em 1em;
|
||||
border-radius: 0.5em;
|
||||
border: 0.1em solid rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(0.5em);
|
||||
position: relative;
|
||||
}
|
||||
.card .list .item .version {
|
||||
width: fit-content;
|
||||
background: linear-gradient(90deg, #ffe6b4, #f2c94c);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
filter: drop-shadow(0 0 0.05em #f0d480);
|
||||
position: relative;
|
||||
margin-bottom: 0.5em;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
.card .list .item .version::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 2em;
|
||||
height: 0.2em;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: linear-gradient(0deg, #f2c94c, #ffe6b4);
|
||||
z-index: -1;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
.card .list .item:nth-child(1) {
|
||||
background-color: rgba(255, 255, 255, 0.15);
|
||||
backdrop-filter: blur(1.5em);
|
||||
}
|
||||
.card .list .item:nth-child(1)::after {
|
||||
content: "当前版本";
|
||||
font-size: 0.8em;
|
||||
position: absolute;
|
||||
right: 0.5em;
|
||||
top: 0.5em;
|
||||
color: #f2c94c;
|
||||
opacity: 0.5;
|
||||
}
|
||||
.card .list .item:nth-child(1) .version {
|
||||
background: linear-gradient(90deg, #f2784c, #ffbca4);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
filter: drop-shadow(0 0 0.1em rgba(231, 241, 35, 0.3));
|
||||
font-size: 1em;
|
||||
}
|
||||
.card .list .item:nth-child(1) .version::before {
|
||||
background: #f2784c;
|
||||
}
|
||||
.card .list .item:nth-child(1) .version::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-style: solid;
|
||||
border-width: 0.3em 0.3em 0 0.3em;
|
||||
border-color: #f2784c transparent transparent transparent;
|
||||
bottom: -0.3em;
|
||||
left: 0.7em;
|
||||
}
|
||||
.card .list .item .content {
|
||||
font-size: 0.8em;
|
||||
margin: 0 1em;
|
||||
}
|
||||
.card .list .item .content ul {
|
||||
padding-left: 1em;
|
||||
}
|
||||
.card .list .item .content ul li {
|
||||
margin: 0.1em 0;
|
||||
}
|
||||
.card .list .item .cmd {
|
||||
font-size: 0.8em;
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
padding: 0.2em 0.4em;
|
||||
border-radius: 0.5em;
|
||||
margin: 0em 0.3em;
|
||||
border: 0.1em solid rgba(255, 255, 255, 0.1);
|
||||
color: #cadc9e;
|
||||
}
|
||||
.card .list .item .strong {
|
||||
color: #f2c94c;
|
||||
}
|
||||
.card .list .item .new {
|
||||
position: relative;
|
||||
}
|
||||
.card .list .item .new::before {
|
||||
content: "new";
|
||||
font-size: 0.4em;
|
||||
background: linear-gradient(90deg, #f2c94c, #ffe6b4);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
filter: drop-shadow(0 0 0.05em #f0d480);
|
||||
bottom: 1.8em;
|
||||
left: 0em;
|
||||
position: relative;
|
||||
border: 0.1em solid #f2c94c;
|
||||
padding: 0em 0.3em 0.2em 0.3em;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=version.css.map */
|
||||
28
resources/help/version.html
Normal file
28
resources/help/version.html
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{{extend defaultLayout}}
|
||||
|
||||
{{block 'css'}}
|
||||
<link rel="stylesheet" href="{{@sys.currentPath}}/version.css">
|
||||
{{/block}}
|
||||
|
||||
{{block 'main'}}
|
||||
<div class="card">
|
||||
<% include(sys.specialTitle, {en: 'VERSION' , cn: '版本日志' }) %>
|
||||
<div class="list">
|
||||
{{each versionData version i}}
|
||||
<div class="item">
|
||||
<div class="version">ver {{version.version}}</div>
|
||||
<div class="content no-zzz-font">
|
||||
<ul>
|
||||
{{each version.logs log1 j}}
|
||||
<li>{{@log1.title}}</li>
|
||||
{{each log1.logs log2 k}}
|
||||
<li>{{@log2.title}}</li>
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
{{/block}}
|
||||
118
resources/help/version.scss
Normal file
118
resources/help/version.scss
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
.special-title {
|
||||
padding: 0;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
.card {
|
||||
margin: 0 1em;
|
||||
padding: 1em 0;
|
||||
.list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5em;
|
||||
.item {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
padding: 0.5em 1em;
|
||||
border-radius: 0.5em;
|
||||
border: 0.1em solid rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(0.5em);
|
||||
position: relative;
|
||||
.version {
|
||||
width: fit-content;
|
||||
background: linear-gradient(90deg, #ffe6b4, #f2c94c);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
filter: drop-shadow(0 0 0.05em #f0d480);
|
||||
position: relative;
|
||||
margin-bottom: 0.5em;
|
||||
font-size: 0.8em;
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 2em;
|
||||
height: 0.2em;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: linear-gradient(0deg, #f2c94c, #ffe6b4);
|
||||
z-index: -1;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
}
|
||||
&:nth-child(1) {
|
||||
background-color: rgba(255, 255, 255, 0.15);
|
||||
backdrop-filter: blur(1.5em);
|
||||
&::after {
|
||||
content: '当前版本';
|
||||
font-size: 0.8em;
|
||||
position: absolute;
|
||||
right: 0.5em;
|
||||
top: 0.5em;
|
||||
color: #f2c94c;
|
||||
opacity: 0.5;
|
||||
}
|
||||
.version {
|
||||
background: linear-gradient(90deg, #f2784c, #ffbca4);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
filter: drop-shadow(0 0 0.1em rgba(231, 241, 35, 0.3));
|
||||
font-size: 1em;
|
||||
&::before {
|
||||
background: #f2784c;
|
||||
}
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-style: solid;
|
||||
border-width: 0.3em 0.3em 0 0.3em;
|
||||
border-color: #f2784c transparent transparent transparent;
|
||||
bottom: -0.3em;
|
||||
left: 0.7em;
|
||||
}
|
||||
}
|
||||
}
|
||||
.content {
|
||||
font-size: 0.8em;
|
||||
margin: 0 1em;
|
||||
ul {
|
||||
padding-left: 1em;
|
||||
li {
|
||||
margin: 0.1em 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
.cmd {
|
||||
font-size: 0.8em;
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
padding: 0.2em 0.4em;
|
||||
border-radius: 0.5em;
|
||||
margin: 0em 0.3em;
|
||||
border: 0.1em solid rgba(255, 255, 255, 0.1);
|
||||
color: #cadc9e;
|
||||
}
|
||||
.strong {
|
||||
color: #f2c94c;
|
||||
}
|
||||
.new {
|
||||
position: relative;
|
||||
&::before {
|
||||
content: 'new';
|
||||
font-size: 0.4em;
|
||||
background: linear-gradient(90deg, #f2c94c, #ffe6b4);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
filter: drop-shadow(0 0 0.05em #f0d480);
|
||||
bottom: 1.8em;
|
||||
left: 0em;
|
||||
position: relative;
|
||||
border: 0.1em solid #f2c94c;
|
||||
padding: 0em 0.3em 0.2em 0.3em;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue