精简css,js依赖
No files matched your search
@@ -95,12 +95,10 @@
|
||||
<script src="/js/iconfont.js"></script>
|
||||
<script src="/js/lightgallery.umd.min.js"></script>
|
||||
<script src="/js/uikit.min.js"></script>
|
||||
<script src="/js/message.min.js"></script>
|
||||
<script src="/js/EasyLazyload.min.js"></script>
|
||||
<script src="/js/view-image.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/memos/js/memos.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,667 +0,0 @@
|
||||
.OwO {
|
||||
position: relative;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
@media (max-width: 767.98px){
|
||||
.OwO {
|
||||
position: relative;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
left: 0%!important;
|
||||
}
|
||||
}
|
||||
.OwO:hover .OwO-logo {
|
||||
color: #444
|
||||
}
|
||||
|
||||
.OwO.OwO-open .OwO-logo {
|
||||
border-radius: 4px 4px 0 0;
|
||||
border-bottom: none;
|
||||
color: #444
|
||||
}
|
||||
|
||||
.OwO.OwO-open .OwO-body {
|
||||
display: block
|
||||
}
|
||||
|
||||
.OwO.OwO-up .OwO-body {
|
||||
top: inherit;
|
||||
bottom: 21px;
|
||||
border-radius: 4px 4px 4px 0
|
||||
}
|
||||
|
||||
.OwO.OwO-up .OwO-body .OwO-bar .OwO-packages li:nth-child(1) {
|
||||
border-radius: 0
|
||||
}
|
||||
|
||||
.OwO.OwO-up.OwO-open .OwO-logo {
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 0 0 4px 4px;
|
||||
border-top: none
|
||||
}
|
||||
|
||||
.OwO .OwO-logo {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
color: #888;
|
||||
background: #fff;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
padding: 2px 5px;
|
||||
cursor: pointer;
|
||||
height: 22px;
|
||||
box-sizing: border-box;
|
||||
z-index: 2;
|
||||
line-height: 16px
|
||||
}
|
||||
|
||||
.OwO .OwO-logo:hover span {
|
||||
display: inline-block;
|
||||
-webkit-animation: a 5s infinite ease-in-out;
|
||||
animation: a 5s infinite ease-in-out
|
||||
}
|
||||
|
||||
.OwO .OwO-body {
|
||||
display: none;
|
||||
position: absolute;
|
||||
width: 400px;
|
||||
background: #fff;
|
||||
border: 1px solid #ddd;
|
||||
z-index: 1;
|
||||
top: 21px;
|
||||
border-radius: 0 4px 4px 4px
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-items {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
display: none;
|
||||
padding: 10px;
|
||||
margin: 0;
|
||||
overflow: scroll;
|
||||
font-size: 0
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-items .OwO-item {
|
||||
list-style-type: none;
|
||||
background: #f7f7f7;
|
||||
padding: 5px 10px;
|
||||
border-radius: 5px;
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
margin: 0 10px 12px 0;
|
||||
cursor: pointer;
|
||||
-webkit-transition: .3s;
|
||||
transition: .3s
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-items .OwO-item:hover {
|
||||
background: #eee;
|
||||
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
|
||||
-webkit-animation: a 5s infinite ease-in-out;
|
||||
animation: a 5s infinite ease-in-out
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-items-emoji .OwO-item {
|
||||
font-size: 20px;
|
||||
line-height: 19px
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-items-image .OwO-item {
|
||||
max-width: calc(25% - 10px);
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-items-image .OwO-item img {
|
||||
max-width: 100%
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-items-show {
|
||||
display: block
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-bar {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
border-top: 1px solid #ddd;
|
||||
background: #fff;
|
||||
border-radius: 0 0 4px 4px;
|
||||
color: #444
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-bar .OwO-packages {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 0
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-bar .OwO-packages li {
|
||||
list-style-type: none;
|
||||
display: inline-block;
|
||||
line-height: 30px;
|
||||
font-size: 14px;
|
||||
padding: 0 10px;
|
||||
cursor: pointer;
|
||||
margin-right: 3px
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-bar .OwO-packages li:nth-child(1) {
|
||||
border-radius: 0 0 0 3px
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-bar .OwO-packages li:hover {
|
||||
background: #eee
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-bar .OwO-packages .OwO-package-active {
|
||||
background: #eee;
|
||||
-webkit-transition: .3s;
|
||||
transition: .3s
|
||||
}
|
||||
|
||||
@-webkit-keyframes a {
|
||||
2% {
|
||||
-webkit-transform: translateY(1.5px) rotate(1.5deg);
|
||||
transform: translateY(1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
4% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-.5deg);
|
||||
transform: translateY(-1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
6% {
|
||||
-webkit-transform: translateY(1.5px) rotate(-1.5deg);
|
||||
transform: translateY(1.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
8% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-1.5deg);
|
||||
transform: translateY(-1.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
10% {
|
||||
-webkit-transform: translateY(2.5px) rotate(1.5deg);
|
||||
transform: translateY(2.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
12% {
|
||||
-webkit-transform: translateY(-.5px) rotate(1.5deg);
|
||||
transform: translateY(-.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
14% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(1.5deg);
|
||||
transform: translateY(-1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
16% {
|
||||
-webkit-transform: translateY(-.5px) rotate(-1.5deg);
|
||||
transform: translateY(-.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
18% {
|
||||
-webkit-transform: translateY(.5px) rotate(-1.5deg);
|
||||
transform: translateY(.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
20% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(2.5deg);
|
||||
transform: translateY(-1.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
22% {
|
||||
-webkit-transform: translateY(.5px) rotate(-1.5deg);
|
||||
transform: translateY(.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
24% {
|
||||
-webkit-transform: translateY(1.5px) rotate(1.5deg);
|
||||
transform: translateY(1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
26% {
|
||||
-webkit-transform: translateY(.5px) rotate(.5deg);
|
||||
transform: translateY(.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
28% {
|
||||
-webkit-transform: translateY(.5px) rotate(1.5deg);
|
||||
transform: translateY(.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
30% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
32%,
|
||||
34% {
|
||||
-webkit-transform: translateY(1.5px) rotate(-.5deg);
|
||||
transform: translateY(1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
36% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(2.5deg);
|
||||
transform: translateY(-1.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
38% {
|
||||
-webkit-transform: translateY(1.5px) rotate(-1.5deg);
|
||||
transform: translateY(1.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
40% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
42% {
|
||||
-webkit-transform: translateY(2.5px) rotate(-1.5deg);
|
||||
transform: translateY(2.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
44% {
|
||||
-webkit-transform: translateY(1.5px) rotate(.5deg);
|
||||
transform: translateY(1.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
46% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(2.5deg);
|
||||
transform: translateY(-1.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
48% {
|
||||
-webkit-transform: translateY(-.5px) rotate(.5deg);
|
||||
transform: translateY(-.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
50% {
|
||||
-webkit-transform: translateY(.5px) rotate(.5deg);
|
||||
transform: translateY(.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
52% {
|
||||
-webkit-transform: translateY(2.5px) rotate(2.5deg);
|
||||
transform: translateY(2.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
54% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(1.5deg);
|
||||
transform: translateY(-1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
56% {
|
||||
-webkit-transform: translateY(2.5px) rotate(2.5deg);
|
||||
transform: translateY(2.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
58% {
|
||||
-webkit-transform: translateY(.5px) rotate(2.5deg);
|
||||
transform: translateY(.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
60% {
|
||||
-webkit-transform: translateY(2.5px) rotate(2.5deg);
|
||||
transform: translateY(2.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
62% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
64% {
|
||||
-webkit-transform: translateY(-.5px) rotate(1.5deg);
|
||||
transform: translateY(-.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
66% {
|
||||
-webkit-transform: translateY(1.5px) rotate(-.5deg);
|
||||
transform: translateY(1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
68% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-.5deg);
|
||||
transform: translateY(-1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
70% {
|
||||
-webkit-transform: translateY(1.5px) rotate(.5deg);
|
||||
transform: translateY(1.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
72% {
|
||||
-webkit-transform: translateY(2.5px) rotate(1.5deg);
|
||||
transform: translateY(2.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
74% {
|
||||
-webkit-transform: translateY(-.5px) rotate(.5deg);
|
||||
transform: translateY(-.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
76% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
78% {
|
||||
-webkit-transform: translateY(-.5px) rotate(1.5deg);
|
||||
transform: translateY(-.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
80% {
|
||||
-webkit-transform: translateY(1.5px) rotate(1.5deg);
|
||||
transform: translateY(1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
82% {
|
||||
-webkit-transform: translateY(-.5px) rotate(.5deg);
|
||||
transform: translateY(-.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
84% {
|
||||
-webkit-transform: translateY(1.5px) rotate(2.5deg);
|
||||
transform: translateY(1.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
86% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-1.5deg);
|
||||
transform: translateY(-1.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
88% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
90% {
|
||||
-webkit-transform: translateY(2.5px) rotate(-.5deg);
|
||||
transform: translateY(2.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
92% {
|
||||
-webkit-transform: translateY(.5px) rotate(-.5deg);
|
||||
transform: translateY(.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
94% {
|
||||
-webkit-transform: translateY(2.5px) rotate(.5deg);
|
||||
transform: translateY(2.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
96% {
|
||||
-webkit-transform: translateY(-.5px) rotate(1.5deg);
|
||||
transform: translateY(-.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
98% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-.5deg);
|
||||
transform: translateY(-1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
0%,
|
||||
to {
|
||||
-webkit-transform: translate(0) rotate(0deg);
|
||||
transform: translate(0) rotate(0deg)
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes a {
|
||||
2% {
|
||||
-webkit-transform: translateY(1.5px) rotate(1.5deg);
|
||||
transform: translateY(1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
4% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-.5deg);
|
||||
transform: translateY(-1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
6% {
|
||||
-webkit-transform: translateY(1.5px) rotate(-1.5deg);
|
||||
transform: translateY(1.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
8% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-1.5deg);
|
||||
transform: translateY(-1.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
10% {
|
||||
-webkit-transform: translateY(2.5px) rotate(1.5deg);
|
||||
transform: translateY(2.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
12% {
|
||||
-webkit-transform: translateY(-.5px) rotate(1.5deg);
|
||||
transform: translateY(-.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
14% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(1.5deg);
|
||||
transform: translateY(-1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
16% {
|
||||
-webkit-transform: translateY(-.5px) rotate(-1.5deg);
|
||||
transform: translateY(-.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
18% {
|
||||
-webkit-transform: translateY(.5px) rotate(-1.5deg);
|
||||
transform: translateY(.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
20% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(2.5deg);
|
||||
transform: translateY(-1.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
22% {
|
||||
-webkit-transform: translateY(.5px) rotate(-1.5deg);
|
||||
transform: translateY(.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
24% {
|
||||
-webkit-transform: translateY(1.5px) rotate(1.5deg);
|
||||
transform: translateY(1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
26% {
|
||||
-webkit-transform: translateY(.5px) rotate(.5deg);
|
||||
transform: translateY(.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
28% {
|
||||
-webkit-transform: translateY(.5px) rotate(1.5deg);
|
||||
transform: translateY(.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
30% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
32%,
|
||||
34% {
|
||||
-webkit-transform: translateY(1.5px) rotate(-.5deg);
|
||||
transform: translateY(1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
36% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(2.5deg);
|
||||
transform: translateY(-1.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
38% {
|
||||
-webkit-transform: translateY(1.5px) rotate(-1.5deg);
|
||||
transform: translateY(1.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
40% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
42% {
|
||||
-webkit-transform: translateY(2.5px) rotate(-1.5deg);
|
||||
transform: translateY(2.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
44% {
|
||||
-webkit-transform: translateY(1.5px) rotate(.5deg);
|
||||
transform: translateY(1.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
46% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(2.5deg);
|
||||
transform: translateY(-1.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
48% {
|
||||
-webkit-transform: translateY(-.5px) rotate(.5deg);
|
||||
transform: translateY(-.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
50% {
|
||||
-webkit-transform: translateY(.5px) rotate(.5deg);
|
||||
transform: translateY(.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
52% {
|
||||
-webkit-transform: translateY(2.5px) rotate(2.5deg);
|
||||
transform: translateY(2.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
54% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(1.5deg);
|
||||
transform: translateY(-1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
56% {
|
||||
-webkit-transform: translateY(2.5px) rotate(2.5deg);
|
||||
transform: translateY(2.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
58% {
|
||||
-webkit-transform: translateY(.5px) rotate(2.5deg);
|
||||
transform: translateY(.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
60% {
|
||||
-webkit-transform: translateY(2.5px) rotate(2.5deg);
|
||||
transform: translateY(2.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
62% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
64% {
|
||||
-webkit-transform: translateY(-.5px) rotate(1.5deg);
|
||||
transform: translateY(-.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
66% {
|
||||
-webkit-transform: translateY(1.5px) rotate(-.5deg);
|
||||
transform: translateY(1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
68% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-.5deg);
|
||||
transform: translateY(-1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
70% {
|
||||
-webkit-transform: translateY(1.5px) rotate(.5deg);
|
||||
transform: translateY(1.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
72% {
|
||||
-webkit-transform: translateY(2.5px) rotate(1.5deg);
|
||||
transform: translateY(2.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
74% {
|
||||
-webkit-transform: translateY(-.5px) rotate(.5deg);
|
||||
transform: translateY(-.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
76% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
78% {
|
||||
-webkit-transform: translateY(-.5px) rotate(1.5deg);
|
||||
transform: translateY(-.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
80% {
|
||||
-webkit-transform: translateY(1.5px) rotate(1.5deg);
|
||||
transform: translateY(1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
82% {
|
||||
-webkit-transform: translateY(-.5px) rotate(.5deg);
|
||||
transform: translateY(-.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
84% {
|
||||
-webkit-transform: translateY(1.5px) rotate(2.5deg);
|
||||
transform: translateY(1.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
86% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-1.5deg);
|
||||
transform: translateY(-1.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
88% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
90% {
|
||||
-webkit-transform: translateY(2.5px) rotate(-.5deg);
|
||||
transform: translateY(2.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
92% {
|
||||
-webkit-transform: translateY(.5px) rotate(-.5deg);
|
||||
transform: translateY(.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
94% {
|
||||
-webkit-transform: translateY(2.5px) rotate(.5deg);
|
||||
transform: translateY(2.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
96% {
|
||||
-webkit-transform: translateY(-.5px) rotate(1.5deg);
|
||||
transform: translateY(-.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
98% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-.5deg);
|
||||
transform: translateY(-1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
0%,
|
||||
to {
|
||||
-webkit-transform: translate(0) rotate(0deg);
|
||||
transform: translate(0) rotate(0deg)
|
||||
}
|
||||
}
|
||||
@@ -1,143 +0,0 @@
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
#app {
|
||||
margin: 0 auto;
|
||||
width: 640px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.YEmotion {
|
||||
position: relative;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
.YEmotion .YEmotion-face {
|
||||
display: inline-block;
|
||||
outline: 0;
|
||||
border: 1px solid black;
|
||||
border-radius: 5px;
|
||||
padding: 5px 8px;
|
||||
line-height: 1rem;
|
||||
font-size: 0.9rem;
|
||||
background-color: #fff;
|
||||
transition: 0.3s ease background-color, 0.3s ease color;
|
||||
}
|
||||
.YEmotion .YEmotion-face:hover,
|
||||
.YEmotion .YEmotion-face:focus,
|
||||
.YEmotion .YEmotion-face.show {
|
||||
background-color: black;
|
||||
color: white;
|
||||
}
|
||||
.YEmotion .YEmotion-container {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
width: var(--mWidth);
|
||||
max-height: 0;
|
||||
transform: translateY(50px);
|
||||
border-radius: 5px;
|
||||
transition: 0.3s ease transform;
|
||||
overflow: hidden;
|
||||
}
|
||||
.YEmotion .YEmotion-container.show {
|
||||
height: var(--mHeight);
|
||||
max-height: var(--mHeight);
|
||||
transform: translateY(0px);
|
||||
background-color: #eee;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-coverbox {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background-color: #eee;
|
||||
color: #333;
|
||||
font-size: 0.9rem;
|
||||
border-radius: 5px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist {
|
||||
padding: 8px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist.top {
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist.bottom {
|
||||
border-top: 1px solid #ddd;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
height: 5px;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist::-webkit-scrollbar-button {
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist::-webkit-scrollbar-thumb {
|
||||
min-width: 28px;
|
||||
background-color: rgba(0, 0, 0, 0.2);
|
||||
-webkit-background-clip: padding-box;
|
||||
background-clip: padding-box;
|
||||
border-radius: 5px;
|
||||
-webkit-box-shadow: inset 1px 1px 0 rgb(0 0 0%), inset 0 -1px 0 rgb(0 0 0%);
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist .YEmotion-type-select {
|
||||
display: inline-block;
|
||||
background-color: transparent;
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
line-height: 1;
|
||||
padding: 5px 8px;
|
||||
border-radius: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist .YEmotion-type-select:hover,
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist .YEmotion-type-selectfocus,
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist .YEmotion-type-select.current {
|
||||
background-color: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-emolist-container {
|
||||
position: relative;
|
||||
height: var(--mHeight);
|
||||
background-color: white;
|
||||
overflow: hiddent;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-emolist-container .YEmotion-emolist {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
transform: translateX(calc(0 - var(--mWidth)));
|
||||
overflow-y: auto;
|
||||
padding: 8px;
|
||||
transition: 0.3s ease transform;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-emolist-container .YEmotion-emolist:not(.current) {
|
||||
transform: translateX(var(--mWidth));
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-emolist-container .YEmotion-emolist .YEmotion-emo-button {
|
||||
padding: 5px 8px;
|
||||
margin-bottom: 5px;
|
||||
margin-right: 5px;
|
||||
border-radius: 5px;
|
||||
text-decoration: none;
|
||||
color: #666;
|
||||
background-color: #eee;
|
||||
transition: 0.3s ease all;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-emolist-container .YEmotion-emolist .YEmotion-emo-button:hover,
|
||||
.YEmotion .YEmotion-container .YEmotion-emolist-container .YEmotion-emolist .YEmotion-emo-button:focus {
|
||||
text-decoration: none;
|
||||
background-color: #333;
|
||||
color: white;
|
||||
}
|
||||
#showResult {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
#showResult .biaoqing {
|
||||
width: 24px;
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
@charset "UTF-8";.artalk,.atk-layer-wrap{--at-color-font: #2a2e2e;--at-color-deep: #2a2e2e;--at-color-sub: #757575;--at-color-grey: #747474;--at-color-meta: #697182;--at-color-border: #eceff2;--at-color-light: #000000;--at-color-bg: #FFF;--at-color-bg-transl: rgba(255, 255, 255, .94);--at-color-bg-grey: #f3f4f5;--at-color-bg-grey-transl: rgba(244, 244, 244, .75);--at-color-bg-light: rgba(29, 161, 242, .1);--at-color-main: #000000;--at-color-red: #ff5652;--at-color-pink: #fa5a57;--at-color-yellow: #ff7c37;--at-color-green: #4caf50;--at-color-gradient: linear-gradient(180deg, transparent, rgba(255, 255, 255))}.artalk.atk-dark-mode,.atk-layer-wrap.atk-dark-mode{--at-color-font: #fff;--at-color-deep: #e7e7e7;--at-color-sub: #e7e7e7;--at-color-grey: #fff;--at-color-meta: #fff;--at-color-border: #2d3235;--at-color-light: #687a86;--at-color-bg: #1e2224;--at-color-bg-transl: rgba(30, 34, 36, .95);--at-color-bg-grey: #46494e;--at-color-bg-grey-transl: rgba(8, 8, 8, .95);--at-color-bg-light: rgba(29, 161, 242, .1);--at-color-main: #0083ff;--at-color-red: #ff5652;--at-color-pink: #fa5a57;--at-color-yellow: #ff7c37;--at-color-green: #4caf50;--at-color-gradient: linear-gradient(180deg, transparent, rgba(30, 34, 36, 1))}.atk-comment-wrap{overflow:hidden;position:relative;border-bottom:1px solid transparent}.atk-comment-wrap.atk-flash-once{animation:atkFlashOnce 1s ease-in-out 0s}@keyframes atkFlashOnce{0%{background:rgba(0,131,255,.2)}to{background:transparent}}.atk-comment-wrap.atk-unread:before{content:" ";position:absolute;left:0;top:10%;width:3px;height:80%;background:var(--at-color-main)}.atk-comment-wrap.atk-openable{cursor:pointer}.atk-comment-wrap.atk-openable:hover{background:var(--at-color-bg-grey)}.atk-comment-wrap.atk-openable .atk-height-limit:after{background:transparent!important}.atk-comment-wrap:last-child{border-bottom:none}.atk-comment{display:block;padding:12px 10px}.atk-comment>.atk-avatar{display:block;padding:2px 0;float:left}.atk-comment>.atk-avatar img{width:50px;height:50px;border-radius:3px}.atk-comment>.atk-main{display:block;margin-left:63px}.atk-comment>.atk-main>.atk-header{line-height:1.5;font-size:13px;margin-bottom:.5em;overflow:hidden;position:relative;display:flex;flex-wrap:wrap;align-items:center}.atk-comment>.atk-main>.atk-header .atk-item{display:flex;align-items:center;margin-top:2px;margin-bottom:2px;color:var(--at-color-meta)}.atk-comment>.atk-main>.atk-header .atk-item:not(:last-child){margin-right:6px}.atk-comment>.atk-main>.atk-header .atk-item.atk-nick,.atk-comment>.atk-main>.atk-header .atk-item.atk-nick a{font-size:14px;color:var(--at-color-main);text-decoration:none}.atk-comment>.atk-main>.atk-header .atk-item.atk-reply-at{margin-left:2px}.atk-comment>.atk-main>.atk-header .atk-item.atk-reply-at>.atk-arrow:before{content:"";vertical-align:middle;transform:rotate(90deg);border-bottom:4px solid var(--at-color-grey);border-left:3px solid transparent;border-right:3px solid transparent;display:inline-block;margin-top:-1px}.atk-comment>.atk-main>.atk-header .atk-item.atk-reply-at>.atk-nick{color:var(--at-color-main);cursor:pointer;margin-left:6px}.atk-comment>.atk-main>.atk-header .badge,.atk-comment>.atk-main>.atk-header .atk-ua,.atk-comment>.atk-main>.atk-header .atk-pinned-badge,.atk-comment>.atk-main>.atk-header .atk-region-badge,.atk-comment>.atk-main>.atk-header .atk-badge{display:inline-block;color:var(--at-color-meta);background:var(--at-color-bg-grey);padding:0 6px;line-height:17px;border-radius:3px}.atk-comment>.atk-main>.atk-header .badge:not(:last-child),.atk-comment>.atk-main>.atk-header .atk-ua:not(:last-child),.atk-comment>.atk-main>.atk-header .atk-pinned-badge:not(:last-child),.atk-comment>.atk-main>.atk-header .atk-region-badge:not(:last-child),.atk-comment>.atk-main>.atk-header .atk-badge:not(:last-child){margin-right:6px}.atk-comment>.atk-main>.atk-header .atk-badge-wrap>*:last-child{margin-right:6px}.atk-comment>.atk-main>.atk-header .atk-badge{color:#fff}.atk-comment>.atk-main>.atk-header .atk-pinned-badge{color:#fff;background:#f44336}@media only screen and (max-width: 768px){.atk-comment>.atk-main>.atk-header .atk-ua-wrap{display:block}}.atk-comment>.atk-main>.atk-body{display:block;overflow:hidden;position:relative}.atk-comment>.atk-main>.atk-body img{max-width:100%}.atk-comment>.atk-main>.atk-body>.atk-content{word-break:break-all}.atk-comment>.atk-main>.atk-body>.atk-content.atk-type-collapsed{border:3px solid var(--at-color-bg-grey);border-bottom:0;padding:5px 10px;border-radius:6px 6px 0 0;margin-bottom:-5px}.atk-comment>.atk-main>.atk-body>.atk-content>*:first-child{margin-top:0}.atk-comment>.atk-main>.atk-body>.atk-content>*:last-child{margin-bottom:0}.atk-comment>.atk-main>.atk-body>.atk-content .atk-height-limit-btn{bottom:5px}.atk-comment>.atk-main>.atk-body>.atk-pending{color:var(--at-color-meta);margin:3px 0;font-size:13px;padding:10px 18px;display:block;background:var(--at-color-bg-grey);border-left:4px solid #f44336}.atk-comment>.atk-main>.Line truncated
|
||||
@@ -1,12 +0,0 @@
|
||||
.barrage{position: fixed;bottom:70px;right:-500px;display: inline-block;width: 500px;z-index: 1}
|
||||
.barrage_box{background-color: rgba(0,0,0,.5);padding-right: 8px; height: 40px;display: inline-block;border-radius: 25px;transition: all .3s;}
|
||||
.barrage_box .portrait{ display: inline-block;margin-top: 4px; margin-left: 4px; width: 32px;height: 32px;border-radius: 50%;overflow: hidden;}
|
||||
.barrage_box .portrait img{width: 100%;height: 100%;}
|
||||
.barrage_box div.p a{ margin-right: 2px; font-size: 14px;color: #fff;line-height: 40px;margin-left: 18px; }
|
||||
.barrage_box div.p a:hover{text-decoration: underline;}
|
||||
.barrage_box .close{visibility: hidden;opacity: 0; text-align: center; width:25px;height: 25px;margin-left: 20px;border-radius: 50%;background:rgba(255,255,255,.1);margin-top:8px; background-image: url(close.png);}
|
||||
.barrage_box:hover .close{visibility:visible;opacity: 1;}
|
||||
.barrage_box .close a{display:block;}
|
||||
.barrage_box .close .icon-close{font-size: 14px;color:rgba(255,255,255,.5);display: inline-block;margin-top: 5px; }
|
||||
.barrage .z {float: left !important;}
|
||||
.barrage a{text-decoration:none;}
|
||||
@@ -1,153 +0,0 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
:root{
|
||||
--heo-white: #fff;
|
||||
--heo-white-op: rgba(255,255,255,0.2);
|
||||
--heo-black: #000;
|
||||
--heo-black-op: rgba(0,0,0,0.2);
|
||||
--heo-none: #00000000;
|
||||
--heo-gray: #999999;
|
||||
--heo-gray-op: #9999992b;
|
||||
--heo-vip: #e5a80d;
|
||||
--heo-main: var(--heo-theme);
|
||||
--heo-main-op: var(--heo-theme-op);
|
||||
--heo-main-op-deep: var(--heo-theme-op-deep);
|
||||
--heo-main-none: var(--heo-theme-none);
|
||||
--heo-shadow-theme: 0 8px 12px -3px var(--heo-theme-op);
|
||||
--heo-shadow-blackdeep: 0 2px 16px -3px rgba(0, 0, 0,.15);
|
||||
--heo-shadow-main: 0 8px 12px -3px var(--heo-main-op);
|
||||
--heo-shadow-blue: 0 8px 12px -3px rgba(40, 109, 234,.20);
|
||||
--heo-shadow-white: 0 8px 12px -3px rgba(255, 255, 255,.20);
|
||||
--heo-shadow-black: 0 0 12px 4px rgba(0, 0, 0,.05);
|
||||
--heo-shadow-yellow: 0px 38px 77px -26px rgba(255, 201, 62,.12);
|
||||
--heo-shadow-red: 0 8px 12px -3px #ee7d7936;
|
||||
--heo-shadow-green: 0 8px 12px -3px #87ee7936;
|
||||
--heo-logo-color: linear-gradient(215deg,#4584ff 0%,#cf0db9 100%);
|
||||
--heo-snackbar-time: 5s;
|
||||
--style-border: 1px solid var(--heo-card-border);
|
||||
--style-border-always: 1px solid var(--heo-card-border);
|
||||
--style-border-hover: 1px solid var(--heo-main);
|
||||
--style-border-hover-always: 1px solid var(--heo-main);
|
||||
--style-border-dashed: 1px dashed var(--heo-theme-op);
|
||||
|
||||
--heo-theme: #425AEF;
|
||||
--heo-theme-op: #4259ef23;
|
||||
--heo-theme-op-deep: #4259efdd;
|
||||
--heo-theme-none: #4259ef01;
|
||||
--heo-blue: #425AEF;
|
||||
--heo-red: #D8213C;
|
||||
--heo-pink: #FF7C7C;
|
||||
--heo-green: #28a63f;
|
||||
--heo-yellow: #c28b00;
|
||||
--heo-yellow-op: #d99c001a;
|
||||
--heo-orange: #e38100;
|
||||
--heo-fontcolor: #363636;
|
||||
--heo-background: #f7f9fe;
|
||||
--heo-reverse: #000;
|
||||
--heo-maskbg: rgba(255, 255, 255, 0.6);
|
||||
--heo-maskbgdeep: rgba(255, 255, 255, 0.85);
|
||||
--heo-hovertext: var(--heo-main);
|
||||
--heo-ahoverbg: #F7F7FA;
|
||||
--heo-lighttext: var(--heo-main);
|
||||
--heo-secondtext: rgba(60, 60, 67, 0.6);
|
||||
--heo-scrollbar: rgba(60, 60, 67, 0.4);
|
||||
--heo-card-btn-bg: #edf0f7;
|
||||
--heo-post-blockquote-bg: #fafcff;
|
||||
--heo-post-tabs-bg: #f2f5f8;
|
||||
--heo-secondbg: #f1f3f8;
|
||||
--heo-shadow-nav:0 5px 12px -5px rgba(102, 68, 68, 0.05);
|
||||
--heo-card-bg: #fff;
|
||||
--heo-card-bg-op: var(--heo-black-op);
|
||||
--heo-card-bg-none: rgba(255, 255, 255, 0);
|
||||
--heo-shadow-lightblack:0 5px 12px -5px rgba(102, 68, 68, 0.00);
|
||||
--heo-shadow-light2black:0 5px 12px -5px rgba(102, 68, 68, 0.00);
|
||||
--heo-card-border: #e3e8f7;
|
||||
--heo-shadow-border: 0 8px 16px -4px #2c2d300c;
|
||||
--style-border-forever: 2px solid var(--heo-main);
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: var(--heo-fontcolor);
|
||||
color: var(--heo-background);
|
||||
}
|
||||
|
||||
[data-theme=light] {
|
||||
--heo-theme: #425AEF;
|
||||
--heo-theme-op: #4259ef23;
|
||||
--heo-theme-op-deep: #4259efdd;
|
||||
--heo-theme-none: #4259ef01;
|
||||
--heo-blue: #425AEF;
|
||||
--heo-red: #D8213C;
|
||||
--heo-pink: #FF7C7C;
|
||||
--heo-green: #28a63f;
|
||||
--heo-yellow: #c28b00;
|
||||
--heo-yellow-op: #d99c001a;
|
||||
--heo-orange: #e38100;
|
||||
--heo-fontcolor: #363636;
|
||||
--heo-background: #f7f9fe;
|
||||
--heo-reverse: #000;
|
||||
--heo-maskbg: rgba(255, 255, 255, 0.6);
|
||||
--heo-maskbgdeep: rgba(255, 255, 255, 0.85);
|
||||
--heo-hovertext: var(--heo-main);
|
||||
--heo-ahoverbg: #F7F7FA;
|
||||
--heo-lighttext: var(--heo-main);
|
||||
--heo-secondtext: rgba(60, 60, 67, 0.6);
|
||||
--heo-scrollbar: rgba(60, 60, 67, 0.4);
|
||||
--heo-card-btn-bg: #edf0f7;
|
||||
--heo-post-blockquote-bg: #fafcff;
|
||||
--heo-post-tabs-bg: #f2f5f8;
|
||||
--heo-secondbg: #f1f3f8;
|
||||
--heo-shadow-nav:0 5px 12px -5px rgba(102, 68, 68, 0.05);
|
||||
--heo-card-bg: #fff;
|
||||
--heo-card-bg-op: var(--heo-black-op);
|
||||
--heo-card-bg-none: rgba(255, 255, 255, 0);
|
||||
--heo-shadow-lightblack:0 5px 12px -5px rgba(102, 68, 68, 0.00);
|
||||
--heo-shadow-light2black:0 5px 12px -5px rgba(102, 68, 68, 0.00);
|
||||
--heo-card-border: #e3e8f7;
|
||||
--heo-shadow-border: 0 8px 16px -4px #2c2d300c;
|
||||
--style-border-forever: 2px solid var(--heo-main);
|
||||
}
|
||||
|
||||
[data-theme=dark] {
|
||||
--heo-theme: #0084FF;
|
||||
--heo-theme-op: #0084FF23;
|
||||
--heo-theme-op-deep: #0084ffdd;
|
||||
--heo-theme-none: #0084FF00;
|
||||
--heo-blue: #0084FF;
|
||||
--heo-red: #FF3842;
|
||||
--heo-pink: #FF7C7C;
|
||||
--heo-green: #57bd6a;
|
||||
--heo-yellow: #ffc93e;
|
||||
--heo-yellow-op: #ffc93e30;
|
||||
--heo-orange: #ff953e;
|
||||
--heo-fontcolor: #F7F7FA;
|
||||
--heo-background: #18171d;
|
||||
--heo-reverse: #fff;
|
||||
--heo-maskbg: rgba(0,0,0, 0.6);
|
||||
--heo-maskbgdeep: rgba(0,0,0, 0.85);
|
||||
--heo-hovertext: #0A84FF;
|
||||
--heo-ahoverbg: #fff;
|
||||
--heo-lighttext: #f2b94b;
|
||||
--heo-secondtext: #a1a2b8;
|
||||
--heo-scrollbar: rgba(200, 200, 223, 0.4);
|
||||
--heo-card-btn-bg: #30343f;
|
||||
--heo-post-blockquote-bg: #000;
|
||||
--heo-post-tabs-bg: #121212;
|
||||
--heo-secondbg: #30343f;
|
||||
--heo-shadow-nav:0 5px 20px 0px rgba(28, 28, 28, 0.4);
|
||||
--heo-card-bg: #1d1e22;
|
||||
--heo-card-bg-op: var(--heo-white-op);
|
||||
--heo-card-bg-none: #1d1b2600;
|
||||
--heo-shadow-lightblack:0 5px 12px -5px rgba(102, 68, 68, 0.0);
|
||||
--heo-shadow-light2black:0 5px 12px -5px rgba(102, 68, 68, 0.0);
|
||||
--heo-card-border: #282829;
|
||||
--heo-shadow-border: 0 8px 16px -4px #00000050;
|
||||
--style-border-forever: 2px solid var(--heo-lighttext);
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px){
|
||||
:root{
|
||||
--style-border: 0px solid var(--heo-card-border);
|
||||
--style-border-hover: 0px solid var(--heo-main);
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
.qmsg.qmsg-wrapper{position:fixed;top:20px;left:0;z-index:1010;width:100%;pointer-events:none;color:rgba(0,0,0,0.55);font-size:13px;font-variant:tabular-nums;font-feature-settings:"tnum"}.qmsg .qmsg-item{padding:8px;text-align:center;animation-duration:.3s}.qmsg .qmsg-item .qmsg-content{text-align:left;position:relative;display:inline-block;padding:10px 12px;background:#fff;border-radius:4px;box-shadow:0 4px 12px rgba(0,0,0,0.15);pointer-events:all;max-width:80%;min-width:80px}.qmsg .qmsg-item .qmsg-content [class^=qmsg-content-]{display:flex;align-items:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qmsg .qmsg-item .qmsg-content [class^=qmsg-content-] .qmsg-icon{display:inline-block;height:16px}.qmsg .qmsg-item .qmsg-content [class^=qmsg-content-] .qmsg-icon:first-child{margin-right:8px}.qmsg .qmsg-item .qmsg-content [class^=qmsg-content-] .qmsg-icon-close{cursor:pointer;color:rgba(0,0,0,0.45);transition:color .3s;margin-left:6px}.qmsg .qmsg-item .qmsg-content [class^=qmsg-content-] .qmsg-icon-close:hover>svg path{stroke:#555}.qmsg .qmsg-item .qmsg-content [class^=qmsg-content-] .qmsg-count{display:inline-block;position:absolute;left:-8px;top:-8px;color:#fff;font-size:12px;text-align:center;height:16px;line-height:16px;border-radius:3px;min-width:16px;animation-duration:.3s}.qmsg .qmsg-item .qmsg-content-info{color:#909399}.qmsg .qmsg-item .qmsg-content-info .qmsg-count{background-color:#909399}.qmsg .qmsg-item .qmsg-content-warning{color:#e6a23c}.qmsg .qmsg-item .qmsg-content-warning .qmsg-count{background-color:#e6a23c}.qmsg .qmsg-item .qmsg-content-error{color:#f56c6c}.qmsg .qmsg-item .qmsg-content-error .qmsg-count{background-color:#f56c6c}.qmsg .qmsg-item .qmsg-content-success{color:#67c23a}.qmsg .qmsg-item .qmsg-content-success .qmsg-count{background-color:#67c23a}.qmsg .qmsg-item .qmsg-content-loading{color:#409eff}.qmsg .qmsg-item .qmsg-content-loading .qmsg-count{background-color:#409eff}.qmsg .animate-turn{animation:MessageTurn 1s linear infinite}@keyframes MessageTurn{0%{transform:rotate(0deg)}25%{transform:rotate(90deg)}50%{transform:rotate(180deg)}75%{transform:rotate(270deg)}100%{transform:rotate(360deg)}}@keyframes MessageMoveOut{0%{max-height:150px;padding:8px;opacity:1}to{max-height:0;padding:0;opacity:0}}@keyframes MessageMoveIn{0%{transform:translateY(-100%);transform-origin:0 0;opacity:0}to{transform:translateY(0);transform-origin:0 0;opacity:1}}@keyframes MessageShake{0%,100%{transform:translateX(0px);opacity:1}25%,75%{transform:translateX(-4px);opacity:.75}50%{transform:translateX(4px);opacity:.25}}
|
||||
@@ -1,504 +0,0 @@
|
||||
.user_info {
|
||||
position: absolute;
|
||||
bottom: 10%;
|
||||
right: 8%;
|
||||
}
|
||||
|
||||
.user_info .top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.user_info .name {
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.user_info .avatar {
|
||||
width: 58px;
|
||||
height: 58px;
|
||||
}
|
||||
|
||||
.user_info .avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.user_info .left {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-content: flex-end;
|
||||
align-items: flex-end;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.user_info .des {
|
||||
font-size: 13px;
|
||||
text-align: right;
|
||||
color: #d6d6d6;
|
||||
}
|
||||
|
||||
.user-info {
|
||||
display: flex;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.user-info .avatar {
|
||||
max-height: 45px;
|
||||
max-width: 45px;
|
||||
float: left;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.user-info .intro {
|
||||
/* float:left;
|
||||
*/
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.user-info .intro div:nth-child(2) {
|
||||
word-break: break-all;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.content-item {
|
||||
padding-left: 49px;
|
||||
padding-right: 30px;
|
||||
}
|
||||
|
||||
.user-info .intro .name {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin-top: 2px;
|
||||
border-width: 0;
|
||||
border-top-width: 0px;
|
||||
border-top: 1px dashed;
|
||||
border-top-color: currentcolor;
|
||||
border-color: #ebf2ed;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.header-nav-ul-li-a2 {
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
border: 0;
|
||||
background: #000;
|
||||
color: #fff !important;
|
||||
padding: 3px 5px;
|
||||
border-radius: 3px;
|
||||
font-size: 0.6rem;
|
||||
align-items: center;
|
||||
line-height: 0.9rem;
|
||||
position: relative;
|
||||
left: 70%;
|
||||
}
|
||||
|
||||
.topimage {
|
||||
padding-top: 64px;
|
||||
background-position: 50%;
|
||||
background-size: cover;
|
||||
min-height: 200px;
|
||||
text-align: center;
|
||||
/* border-radius:0 0 0.5rem 0.5rem;
|
||||
*/
|
||||
box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
|
||||
border-radius: 1rem 1rem 0rem 0rem;
|
||||
/* margin-bottom:30px;
|
||||
*/
|
||||
}
|
||||
|
||||
.foot-menu {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background: #fff;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 1;
|
||||
max-width: 1150px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
img {
|
||||
border-radius: 3px
|
||||
}
|
||||
|
||||
.text {
|
||||
font-size: 1.1em;
|
||||
color: #4d4d4d;
|
||||
white-space: pre-wrap
|
||||
}
|
||||
|
||||
.desc {
|
||||
color: #9b9b9b;
|
||||
/* font-family:LXGW WenKai Screen,monospace;
|
||||
*/
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.loadbtn {
|
||||
width: 100%;
|
||||
height: 35px;
|
||||
cursor: pointer;
|
||||
border: 0px;
|
||||
color: #9b9b9b;
|
||||
/* font-family:LXGW WenKai Screen,monospace;
|
||||
*/
|
||||
font-size: 0.8em;
|
||||
background-color: white;
|
||||
border-radius: 5px 5px 0px 0px;
|
||||
border: 1px dashed #e0dfdf;
|
||||
}
|
||||
|
||||
#back-top-button {
|
||||
position: fixed;
|
||||
bottom: 36px;
|
||||
right: 10px;
|
||||
z-index: 99;
|
||||
border: none;
|
||||
outline: none;
|
||||
background-color: #d1d1d1;
|
||||
color: #2157ad;
|
||||
opacity: .35;
|
||||
cursor: pointer;
|
||||
padding: 6px;
|
||||
border-radius: 4px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.atk-main-editor>.atk-bottom .atk-send-btn {
|
||||
background: #000 !important;
|
||||
}
|
||||
|
||||
.atk-copyright {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.artalk {
|
||||
margin-top: 10px !important;
|
||||
width: 88% !important;
|
||||
margin-left: 46px !important;
|
||||
}
|
||||
|
||||
a img {
|
||||
display: block;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
a video {
|
||||
display: block;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.time {
|
||||
color: #9b9b9b;
|
||||
font-size: 0.8em
|
||||
}
|
||||
|
||||
.location {
|
||||
/* font-size:0.8em*/
|
||||
}
|
||||
|
||||
.tag {
|
||||
color: #9b9b9b;
|
||||
text-align: right;
|
||||
font-size: 0.9em;
|
||||
/* font-family:LXGW WenKai Screen,monospace;
|
||||
*/
|
||||
}
|
||||
|
||||
.location {
|
||||
color: #576b95;
|
||||
}
|
||||
|
||||
.single-pic {
|
||||
object-fit: cover;
|
||||
width: 100%;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.pic {
|
||||
object-fit: cover;
|
||||
height: 100px;
|
||||
/* width:100px;
|
||||
*/
|
||||
width: 100%;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.pic-group {
|
||||
/* flex:0;
|
||||
*/
|
||||
margin: 0px 4px 4px 0px;
|
||||
}
|
||||
|
||||
.pic-group-in {
|
||||
margin: 0.1rem;
|
||||
}
|
||||
|
||||
.text p {
|
||||
margin: 0 0;
|
||||
}
|
||||
|
||||
.text img {
|
||||
max-height: 168px;
|
||||
max-width: 255px;
|
||||
margin-bottom: 5px;
|
||||
animation: fadeIn 1s;
|
||||
transition: all .4s ease-in-out;
|
||||
}
|
||||
|
||||
.atk-link{
|
||||
display: none!important;
|
||||
}
|
||||
|
||||
.atk-main-editor>.atk-header {
|
||||
padding: 0px 0px 0!important;
|
||||
}
|
||||
|
||||
.atk-main-editor>.atk-textarea-wrap>.atk-textarea {
|
||||
padding: 10px 5px!important;
|
||||
}
|
||||
|
||||
@media screen and (max-width:300px) {
|
||||
|
||||
|
||||
|
||||
.topimage {
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.pic {
|
||||
object-fit: cover;
|
||||
height: 92px;
|
||||
width: 92px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.single-pic {
|
||||
object-fit: cover;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media screen and (min-width:301px) and (max-width:500px) {
|
||||
|
||||
|
||||
|
||||
|
||||
.topimage {
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
|
||||
.pic {
|
||||
object-fit: cover;
|
||||
height: 92px;
|
||||
width: 92px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.single-pic {
|
||||
object-fit: cover;
|
||||
height: 220px;
|
||||
width: 220px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
#shuoshuo_btn{
|
||||
/*margin-left: 58%;*/
|
||||
position: absolute;
|
||||
/*position: fixed;*/
|
||||
margin-left: 190px!important;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width:501px) and (max-width:700px) {
|
||||
|
||||
.topimage {
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
|
||||
.pic {
|
||||
object-fit: cover;
|
||||
height: 120px;
|
||||
width: 120px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.single-pic {
|
||||
object-fit: cover;
|
||||
height: 250px;
|
||||
width: 250px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media screen and (min-width:701px) and (max-width:900px) {
|
||||
|
||||
|
||||
|
||||
.pic {
|
||||
object-fit: cover;
|
||||
height: 125px;
|
||||
width: 125px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.single-pic {
|
||||
object-fit: cover;
|
||||
height: 280px;
|
||||
width: 280px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
#shuoshuo_btn{
|
||||
margin-left: 48%;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media screen and (min-width:901px) and (max-width:1200px) {
|
||||
|
||||
|
||||
|
||||
.pic {
|
||||
object-fit: cover;
|
||||
height: 192px;
|
||||
width: 192px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.single-pic {
|
||||
object-fit: cover;
|
||||
/* height:320px;
|
||||
width:320px;*/
|
||||
height: 330px;
|
||||
width: 330px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@media screen and (min-width:1201px) {
|
||||
|
||||
|
||||
.header-nav-ul-li-a2 {
|
||||
left: 85% !important;
|
||||
}
|
||||
|
||||
|
||||
.pic {
|
||||
object-fit: cover;
|
||||
height: 180px;
|
||||
width: 180px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.single-pic {
|
||||
object-fit: cover;
|
||||
height: 380px;
|
||||
width: 380px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*相册css*/
|
||||
.memos-photo-wrapper {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
margin-top: .5rem;
|
||||
display: grid;
|
||||
width: 100%;
|
||||
gap: .5rem;
|
||||
}
|
||||
|
||||
.memos-photo {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-radius: .25rem;
|
||||
height: 194px;
|
||||
}
|
||||
|
||||
.memos-photo>img {
|
||||
min-height: 100%;
|
||||
width: auto;
|
||||
min-width: 100%;
|
||||
cursor: pointer;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
height: auto;
|
||||
animation: fadeIn 1s;
|
||||
transition: all .4s ease-in-out;
|
||||
}
|
||||
|
||||
.memos-photo span.photo-title,
|
||||
.memos-photo span.photo-time {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
padding: 0px 8px;
|
||||
font-size: 0.9rem;
|
||||
color: #fff;
|
||||
display: none;
|
||||
animation: fadeIn 1s;
|
||||
}
|
||||
|
||||
.memos-photo span.photo-title {
|
||||
position: absolute;
|
||||
bottom: 4px;
|
||||
left: 4px;
|
||||
}
|
||||
|
||||
.memos-photo span.photo-time {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
left: 4px;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.memos-photo:hover span.photo-title,
|
||||
.memos-photo:hover span.photo-time {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width:480px) and (max-width: 899px) {
|
||||
.memos-photo-wrapper {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.memos-photo {
|
||||
height: 201px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 479px) {
|
||||
.memos-photo-wrapper {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.memos-photo {
|
||||
height: 171px;
|
||||
}
|
||||
}
|
||||
@@ -125,12 +125,10 @@
|
||||
<script src="/js/iconfont.js"></script>
|
||||
<script src="/js/lightgallery.umd.min.js"></script>
|
||||
<script src="/js/uikit.min.js"></script>
|
||||
<script src="/js/message.min.js"></script>
|
||||
<script src="/js/EasyLazyload.min.js"></script>
|
||||
<script src="/js/view-image.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/memos/js/memos.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,99 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _classCallCheck(a, b) {
|
||||
if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
|
||||
}
|
||||
var _createClass = function () {
|
||||
function a(a, b) {
|
||||
for (var c = 0; c < b.length; c++) {
|
||||
var d = b[c];
|
||||
d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(a, d.key, d)
|
||||
}
|
||||
}
|
||||
return function (b, c, d) {
|
||||
return c && a(b.prototype, c), d && a(b, d), b
|
||||
}
|
||||
}();
|
||||
! function () {
|
||||
var a = function () {
|
||||
function a(b) {
|
||||
var c = this;
|
||||
_classCallCheck(this, a);
|
||||
var d = {
|
||||
logo: "OwO表情",
|
||||
container: document.getElementsByClassName("OwO")[0],
|
||||
target: document.getElementsByTagName("textarea")[0],
|
||||
position: "down",
|
||||
width: "100%",
|
||||
maxHeight: "235px",
|
||||
api: `${static_url}/emotion/OwO.json`
|
||||
};
|
||||
for (var e in d) d.hasOwnProperty(e) && !b.hasOwnProperty(e) && (b[e] = d[e]);
|
||||
this.container = b.container, this.target = b.target, "up" === b.position && this.container.classList.add("OwO-up");
|
||||
var f = new XMLHttpRequest;
|
||||
f.onreadystatechange = function () {
|
||||
4 === f.readyState && (f.status >= 200 && f.status < 300 || 304 === f.status ? (c.odata = JSON.parse(f.responseText), c.init(b)) : console.log("OwO data request was unsuccessful: " + f.status))
|
||||
}, f.open("get", b.api, !0), f.send(null)
|
||||
}
|
||||
return _createClass(a, [{
|
||||
key: "init",
|
||||
value: function (a) {
|
||||
var b = this;
|
||||
this.area = a.target, this.packages = Object.keys(this.odata);
|
||||
for (var c = '\n <div class="OwO-logo"><i class="fontello fontello-emo-tongue face"></i><span class="OwOlogotext">' + a.logo + '</span></div>\n <div class="OwO-body" style="width: ' + a.width + '">', d = 0; d < this.packages.length; d++) {
|
||||
c += '\n <ul class="OwO-items OwO-' + this.odata[this.packages[d]].name + " OwO-items-" + this.odata[this.packages[d]].type + '" style="max-height: ' + (parseInt(a.maxHeight) - 53) + 'px;">';
|
||||
for (var e = this.odata[this.packages[d]].container, f = 0; f < e.length; f++) "image" === this.odata[this.packages[d]].type ? c += '\n <li class="OwO-item" title="' + e[f].text + '" data-input="' + this.odata[this.packages[d]].name + ":" + e[f].icon + '"><img no-view src="' + static_url + "emotion/" + this.odata[this.packages[d]].name + "/" + e[f].icon + '.png" icon="' + e[f].text + '"></li>' : c += '\n <li class="OwO-item" title="' + e[f].text + '">' + e[f].icon + "</li>";
|
||||
c += "\n </ul>"
|
||||
}
|
||||
c += '\n <div class="OwO-bar">\n <ul class="OwO-packages">';
|
||||
for (var g = 0; g < this.packages.length; g++) c += "\n <li><span>" + this.packages[g] + "</span></li>";
|
||||
c += "\n </ul>\n </div>\n </div>\n ", this.container.innerHTML = c, this.logo = this.container.getElementsByClassName("OwO-logo")[0], this.logo.addEventListener("click", function () {
|
||||
b.toggle()
|
||||
}), this.container.getElementsByClassName("OwO-body")[0].addEventListener("click", function (a) {
|
||||
var c = null;
|
||||
if (a.target.classList.contains("OwO-item") ? c = a.target : a.target.parentNode.classList.contains("OwO-item") && (c = a.target.parentNode), c) {
|
||||
var d, e = b.area.selectionStart,
|
||||
f = b.area.selectionEnd,
|
||||
g = b.area.value;
|
||||
d = c.dataset.hasOwnProperty("input") ? " ::" + c.dataset.input + ":: " : c.innerHTML, b.area.value = g.slice(0, e) + d + g.slice(f), b.area.selectionStart = e + d.length, b.area.selectionEnd = e + d.length, b.area.focus(), b.toggle()
|
||||
}
|
||||
}), this.packagesEle = this.container.getElementsByClassName("OwO-packages")[0];
|
||||
for (var h = 0; h < this.packagesEle.children.length; h++) ! function (a) {
|
||||
! function (c) {
|
||||
b.packagesEle.children[a].addEventListener("click", function () {
|
||||
b.tab(c)
|
||||
})
|
||||
}(a)
|
||||
}(h);
|
||||
this.tab(0)
|
||||
}
|
||||
}, {
|
||||
key: "toggle",
|
||||
value: function () {
|
||||
this.container.classList.contains("OwO-open") ? this.container.classList.remove("OwO-open") : this.container.classList.add("OwO-open")
|
||||
}
|
||||
}, {
|
||||
key: "tab",
|
||||
value: function (a) {
|
||||
var b = this.container.getElementsByClassName("OwO-items-show")[0];
|
||||
b && b.classList.remove("OwO-items-show"), this.container.getElementsByClassName("OwO-items")[a].classList.add("OwO-items-show");
|
||||
var c = this.container.getElementsByClassName("OwO-package-active")[0];
|
||||
c && c.classList.remove("OwO-package-active"), this.packagesEle.getElementsByTagName("li")[a].classList.add("OwO-package-active");
|
||||
try {
|
||||
$("img").lazyload({
|
||||
effect: "fadeIn"
|
||||
})
|
||||
} catch (a) {
|
||||
if (this.container.classList.contains("OwO-open")) {
|
||||
var d = this.container.querySelectorAll(".OwO-items.OwO-items-show>li img");
|
||||
[].forEach.call(d, function (a) {
|
||||
var b = a.dataset.original;
|
||||
b && (a.src = b, a.removeAttribute("data-original"))
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}]), a
|
||||
}();
|
||||
"undefined" != typeof module && void 0 !== module.exports ? module.exports = a : window.OwO = a
|
||||
}();
|
||||
@@ -1,64 +0,0 @@
|
||||
$(function() {
|
||||
init();
|
||||
});
|
||||
function init() {
|
||||
$("article img:not(.noImageLightBox)").each(function(i) {
|
||||
if (!this.parentNode.href) {
|
||||
$(this).wrap('<a class="post-imgLink" href="' + this.src + '" data-caption="' + this.alt + '"></a>');
|
||||
}
|
||||
});
|
||||
$("article .photosets").each(function() {
|
||||
var count = $(this).find("a.post-imgLink").length;
|
||||
switch (count) {
|
||||
case 1:
|
||||
$(this).addClass("photosets-1");
|
||||
break;
|
||||
case 2:
|
||||
$(this).addClass("photosets-2");
|
||||
break;
|
||||
case 4:
|
||||
$(this).addClass("photosets-4");
|
||||
break;
|
||||
default:
|
||||
$(this).addClass("photosets-3");
|
||||
}
|
||||
});
|
||||
if ($(".post-imgLink").length > 0) {
|
||||
lightGallery(document.getElementsByTagName('article')[0], {
|
||||
selector: '.post-imgLink',
|
||||
share: false,
|
||||
showThumbByDefault: false,
|
||||
autoplayControls: false
|
||||
});
|
||||
}
|
||||
if($("#tcomment").length > 0){
|
||||
twikoo.init({
|
||||
envId: 'https://xiaoblog.vercel.app/',
|
||||
el: '#tcomment'
|
||||
})
|
||||
}
|
||||
// to-top
|
||||
$(document).ready((function (_this) {
|
||||
return function () {
|
||||
let bt
|
||||
bt = $('#to_top')
|
||||
if ($(document).width() > 480) {
|
||||
$(window).scroll(function () {
|
||||
let st
|
||||
st = $(window).scrollTop()
|
||||
if (st > 30) {
|
||||
return bt.css('display', 'block')
|
||||
} else {
|
||||
return bt.css('display', 'none')
|
||||
}
|
||||
})
|
||||
return bt.click(function () {
|
||||
$('body,html').animate({
|
||||
scrollTop: 0,
|
||||
}, 800)
|
||||
return false
|
||||
})
|
||||
}
|
||||
}
|
||||
})(this))
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Artalk=t()}(this,(function(){"use strict";var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,a=(t,n,i)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,o=(e,t)=>{for(var n in t||(t={}))s.call(t,n)&&a(e,n,t[n]);if(i)for(var n of i(t))r.call(t,n)&&a(e,n,t[n]);return e},l=(e,i)=>t(e,n(i)),c=(e,t,n)=>(a(e,"symbol"!=typeof t?t+"":t,n),n),d=(e,t,n)=>new Promise(((i,s)=>{var r=e=>{try{o(n.next(e))}catch(t){s(t)}},a=e=>{try{o(n.throw(e))}catch(t){s(t)}},o=e=>e.done?i(e.value):Promise.resolve(e.value).then(r,a);o((n=n.apply(e,t)).next())}));function h(e=""){const t=document.createElement("div");return t.innerHTML=e.trim(),t.firstElementChild||t}function u(e){return parseFloat(getComputedStyle(e,null).height.replace("px",""))}function p(e){const t=RegExp(`[?&]${e}=([^&]*)`).exec(window.location.search);return t&&decodeURIComponent(t[1].replace(/\+/g," "))}function m(e){const t=e.getBoundingClientRect();return{top:t.top+window.scrollY,left:t.left+window.scrollX}}function g(e,t){let n=e.toString();for(;n.length<t;)n=`0${n}`;return n}function f(e,t){try{const n=e.getTime(),i=(new Date).getTime()-n,s=Math.floor(i/864e5);if(0===s){const e=i%864e5,n=Math.floor(e/36e5);if(0===n){const n=e%36e5,i=Math.floor(n/6e4);if(0===i){const e=n%6e4,i=Math.round(e/1e3);return i<10?t.$t("now"):`${i} ${t.$t("seconds")}`}return`${i} ${t.$t("minutes")}`}return`${n} ${t.$t("hours")}`}return s<0?t.$t("now"):s<8?`${s} ${t.$t("days")}`:function(e){const t=g(e.getDate(),2),n=g(e.getMonth()+1,2);return`${g(e.getFullYear(),2)}-${n}-${t}`}(e)}catch(n){return console.error(n)," - "}}function k(){return d(this,null,(function*(){const e=navigator.userAgent;if(!navigator.userAgentData||!navigator.userAgentData.getHighEntropyValues)return e;const t=navigator.userAgentData;let n=null;try{n=yield t.getHighEntropyValues(["platformVersion"])}catch(s){return console.error(s),e}const i=Number(n.platformVersion.split(".")[0]);return"Windows"===t.platform&&i>=13?e.replace(/Windows NT 10.0/,"Windows NT 11.0"):"macOS"===t.platform&&i>=11?e.replace(/(Mac OS X \d+_\d+_\d+|Mac OS X)/,`Mac OS X ${n.platformVersion.replace(/\./g,"_")}`):e}))}function y(e){let t;try{t=new URL(e)}catch(n){return!1}return"http:"===t.protocol||"https:"===t.protocol}function $(e,t){return function(e,t){return`${e.replace(/\/$/,"")}/${t.replace(/^\//,"")}`}(e.conf.server,t)}function x(e,t){const n=e=>e&&"object"==typeof e;return n(e)&&n(t)?(Object.keys(t).forEach((i=>{const s=e[i],r=t[i];Array.isArray(s)&&Array.isArray(r)?e[i]=s.concat(r):n(s)&&n(r)?e[i]=x(o({},s),r):e[i]=r})),e):t}class v{constructor(e){c(this,"$el"),c(this,"ctx"),c(this,"conf"),this.ctx=e,this.conf=e.conf}$t(e,t={}){return this.ctx.$t(e,t)}}function b(e,t){let n=e.querySelector(":scope > .atk-loading");n||(n=h('<div class="atk-loading atk-fade-in" style="display: none;">\n <div class="atk-loading-spinner">\n <svg viewBox="25 25 50 50"><circle cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>\n </div>\n </div>'),(null==t?void 0:t.transparentBg)&&(n.style.background="transparent"),e.appendChild(n)),n.style.display="";const i=n.querySelector(".atk-loading-spinner");i&&(i.style.display="none",window.setTimeout((()=>{i.style.display=""}),500))}function w(e){const t=e.querySelector(":scope > .atk-loading");t&&(t.style.display="none")}function C(e,t=!0){const n=m(e).top+u(e)/2-document.documentElement.clientHeight/2;t?window.scroll({top:n>0?n:0,left:0}):window.scroll(0,n>0?n:0)}function S(e,t,n){const i=h(`<div class="atk-notify atk-fade-in" style="background-color: ${{s:"#57d59f",e:"#ff6f6c",w:"#ffc721",i:"#2ebcfc"}[n]}"><span class="atk-notify-content"></span></div>`);i.querySelector(".atk-notify-content").innerHTML=function(e){const t=document.createElement("div");return t.innerText=e,t.innerHTML}(t).replace("\n","<br/>"),e.appendChild(i);const s=()=>{i.classList.add("atk-fade-out"),setTimeout((()=>{i.remove()}),200)};let r;r=window.setTimeout((()=>{s()}),3e3),i.addEventListener("click",(()=>{s(),window.clearTimeout(r)}))}function T(e,t){!function(e,t,n="in"){e.classList.add(`atk-fade-${n}`);const i=()=>{e.classList.remove(`atk-fade-${n}`),e.removeEventListener("animationend",i),t&&t()};e.addEventListener("animationend",i)}(e,t,"in")}function E(e,t,n='<span class="atk-error-title">Artalk Error</span>'){let i=e.querySelector(".atk-error-layer");if(null===t)return void(null!==i&&i.remove());i||(i=h(`<div class="atk-error-layer">${n}<span class="atk-error-text"></span></div>`),e.appendChild(i));const s=i.querySelector(".atk-error-text");s.innerHTML="",null!==t&&(t instanceof HTMLElement?s.appendChild(t):s.innerText=t)Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
(function(e){function t(t){for(var c,n,r=t[0],i=t[1],s=t[2],p=0,b=[];p<r.length;p++)n=r[p],Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&b.push(o[n][0]),o[n]=0;for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&(e[c]=i[c]);d&&d(t);while(b.length)b.shift()();return l.push.apply(l,s||[]),a()}function a(){for(var e,t=0;t<l.length;t++){for(var a=l[t],c=!0,r=1;r<a.length;r++){var i=a[r];0!==o[i]&&(c=!1)}c&&(l.splice(t--,1),e=n(n.s=a[0]))}return e}var c={},o={app:0},l=[];function n(t){if(c[t])return c[t].exports;var a=c[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=c,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(a,c,function(t){return e[t]}.bind(null,c));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],i=r.push.bind(r);r.push=t,r=r.slice();for(var s=0;s<r.length;s++)t(r[s]);var d=i;l.push([0,"chunk-vendors"]),a()})({0:function(e,t,a){e.exports=a("56d7")},1799:function(e,t,a){var c=a("4ec8");c.__esModule&&(c=c.default),"string"===typeof c&&(c=[[e.i,c,""]]),c.locals&&(e.exports=c.locals);var o=a("499e").default;o("4b3a8dae",c,!0,{sourceMap:!1,shadowMode:!1})},"1b92":function(e,t,a){var c=a("2313");c.__esModule&&(c=c.default),"string"===typeof c&&(c=[[e.i,c,""]]),c.locals&&(e.exports=c.locals);var o=a("499e").default;o("220edc25",c,!0,{sourceMap:!1,shadowMode:!1})},"1feb":function(e,t,a){var c=a("24fb");t=c(!1),t.push([e.i,"#cf-change{font-size:14px;display:block;padding:12px 0 4px;width:100%;text-align:center}#cf-container{width:100%;height:auto;margin:auto;background:var(--pyq-background);max-width:1500px;border-radius:12px}#cf-container a{text-decoration:none;line-height:1.3;color:var(--pyq-fontcolor);transition:.3s}#cf-container a:hover{color:var(--heo-main)}.cf-time-created,.cf-time-updated{display:inline-block;text-align:left;white-space:nowrap}.cf-time-created i.far,.cf-time-updated i.fas{padding-right:8px}#cf-footer{margin-right:8px;margin-bottom:8px;text-align:right;font-size:13px}.cf-data-lastupdated{font-size:13px;text-align:right;display:block}#cf-footer-info{display:flex}#cf-footer-info div{margin-left:.5rem}.cf-article .cf-article-title:hover{color:var(--heo-main)!important}#cf-more,#cf-state{background:var(--pyq-backgroundplus)}#cf-change,#cf-more,#cf-state,.cf-article-author,.cf-article-floor,.cf-article:hover .cf-article-floor,.cf-article a.cf-article-title,.cf-time-created,.cf-time-updated{color:var(--pyq-fontcolor)}.cf-article{background:var(--pyq-backgroundplus)}#cf-change span:hover{color:var(--heo-main);cursor:pointer}.cf-overshow p a:hover{color:var(--heo-main)!important}.cf-overshow p span{color:var(--pyq-secondtext)}.cf-setting-btn{color:var(--pyq-fontcolor);cursor:pointer;transition:.3s}.cf-setting-btn:hover{color:var(--heo-main)}.dark-theme #cf-overlay,.theme-dark #cf-overlay{background-color:rgba(59,61,66,.42)}.dark-theme .cf-overshow,.theme-dark .cf-overshow{background:#292a2d}.dark-theme .cf-overshow p a,.theme-dark .cf-overshow p a{color:var(--pyq-fontcolor)}.dark-theme .cf-overshow .cf-overshow-content,.theme-dark .cf-overshow .cf-overshow-content{background:#eaeaea}.dark-theme #cf-more,.dark-theme #cf-state,.theme-dark #cf-more,.theme-dark #cf-state{background:var(--lmm-dack-background);color:var(--lmm-dark-fontcolor)}.dark-theme #cf-change,.dark-theme .cf-article-floor,.dark-theme .cf-time-created,.dark-theme .cf-time-updated,.theme-dark #cf-change,.theme-dark .cf-article-floor,.theme-dark .cf-time-created,.theme-dark .cf-time-updated{color:var(--lmm-dark-floorcolor)}.dark-theme .cf-article-author,.dark-theme .cf-article a.cf-article-title,.theme-dark .cf-article-author,.theme-dark .cf-article a.cf-article-title{color:var(--lmm-dark-fontcolor)}.dark-theme .cf-article,.theme-dark .cf-article{background:var(--lmm-dack-background)}.dark-theme .cf-article:hover .cf-article-floor,.dark-theme .cf-article:hover .cf-time-created,.dark-theme .cf-article:hover .cf-time-updated,.dark-theme .cf-overshow p span,.theme-dark .cf-article:hover .cf-article-floor,.theme-dark .cf-article:hover .cf-time-created,.theme-dark .cf-article:hover .cf-time-updated,.theme-dark .cf-overshow p span{color:var(--lmm-dark-fontcolor)}@media screen and (max-width:400px){#cf-state{font-size:14px}.cf-article-time i{display:none}}@media screen and (max-width:300px){#cf-state,.cf-article-time{display:none}}",""]),e.exports=Line truncated
|
||||
@@ -1,27 +0,0 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"0388":function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r("f2bf"),o=r("0898");const l=Object(o["b"])({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}});var a=r("2711"),i=r("304f"),c=r("461c");const s=["textContent"],u={name:"ElBadge"},d=Object(n["defineComponent"])({...u,props:l,setup(e,{expose:t}){const r=e,o=Object(i["b"])("badge"),l=Object(n["computed"])(()=>r.isDot?"":Object(c["isNumber"])(r.value)&&Object(c["isNumber"])(r.max)&&r.max<r.value?r.max+"+":""+r.value);return t({content:l}),(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:Object(n["normalizeClass"])(Object(n["unref"])(o).b())},[Object(n["renderSlot"])(e.$slots,"default"),Object(n["createVNode"])(n["Transition"],{name:Object(n["unref"])(o).namespace.value+"-zoom-in-center",persisted:""},{default:Object(n["withCtx"])(()=>[Object(n["withDirectives"])(Object(n["createElementVNode"])("sup",{class:Object(n["normalizeClass"])([Object(n["unref"])(o).e("content"),Object(n["unref"])(o).em("content",e.type),Object(n["unref"])(o).is("fixed",!!e.$slots.default),Object(n["unref"])(o).is("dot",e.isDot)]),textContent:Object(n["toDisplayString"])(Object(n["unref"])(l))},null,10,s),[[n["vShow"],!e.hidden&&(Object(n["unref"])(l)||e.isDot)]])]),_:1},8,["name"])],2))}});var p=Object(a["a"])(d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]),f=r("0c24");const b=Object(f["a"])(p)},"04f8":function(e,t,r){var n=r("2d00"),o=r("d039");e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},"0512":function(e,t,r){var n=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,c=function(e,t){for(var r in t)o(e,r,{get:t[r],enumerable:!0})},s=function(e,t,r,n){var c=!0,s=!1,u=void 0;if(t&&"object"==typeof t||"function"==typeof t)try{for(var d,p=function(a,c){var s=c.value;!i.call(e,s)&&s!==r&&o(e,s,{get:function(){return t[s]},enumerable:!(n=l(t,s))||n.enumerable})},f=a(t)[Symbol.iterator]();!(c=(d=f.next()).done);c=!0)p(f,d)}catch(b){s=!0,u=b}finally{try{c||null==f.return||f.return()}finally{if(s)throw u}}return e},u=function(e){return s(o({},"__esModule",{value:!0}),e)},d={};c(d,{default:function(){return I}}),e.exports=u(d);var p,f,b,m,h,v,g,O,j,w,y,x,k,_,C,z=!1;function E(){if(!z){z=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(x=/\b(iPhone|iP[ao]d)/.exec(e),k=/\b(iP[ao]d)/.exec(e),w=/Android/i.exec(e),_=/FBAN\/\w+;/i.exec(e),C=/Mobile/i.exec(e),y=!!/Win64/.exec(e),t){p=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,p&&document&&document.documentMode&&(p=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);v=n?parseFloat(n[1])+4:p,f=t[2]?parseFloat(t[2]):NaN,b=t[3]?parseFloat(t[3]):NaN,m=t[4]?parseFloat(t[4]):NaN,m?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),h=t&&t[1]?parseFloat(t[1]):NaN):h=NaN}else p=f=b=h=m=NaN;if(r){if(r[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);g=!o||parseFloat(o[1].replace("_","."))}else g=!1;O=!!r[2],j=!!r[3]}else g=O=j=!1}}var B,S={ie:function(){return E()||p},ieCompatibilityMode:function(){return E()||v>p},ie64:function(){return S.ie()&&y},firefox:function(){return E()||f},opera:function(){return E()||b},webkit:function(){return E()||m},safari:function(){return S.webkit()},chrome:function(){return E()||h},windows:function(){return E()||O},osx:function(){return E()||g},linux:function(){return E()||j},iphone:function(){return E()||x},mobile:function(){return E()||x||k||w||C},nativeApp:function(){return E()||_},android:function(){return E()||w},ipad:function(){return E()||k}},V=S,N=!!(("undefined"===typeof window?"undefined":n(window))<"u"&&window.document&&window.document.createElement),M={canUseDOM:N,canUseWorkers:("undefined"===typeof Worker?"undefined":n(Worker))<"u",canUseEventListeners:N&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:N&&!!window.screen,isInWorker:!N},A=M;function T(e,t){if(!A.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,n=r in document;if(!n){var o=document.createElement("div");o.setAttribute(r,"return;"),n="function"==typeof o[r]}return!n&&B&&"wheel"===e&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}A.canUseDOM&&(B=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var H=T,R=10,L=40,D=800;function P(e){var t=0,r=0,n=0,o=0;return"Line truncated
|
||||
/**
|
||||
* @license
|
||||
* Lodash <https://lodash.com/>
|
||||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||
* Released under MIT license <https://lodash.com/license>
|
||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
*/(function(){var l,a="4.17.21",i=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,f="__lodash_placeholder__",b=1,m=2,h=4,v=1,g=2,O=1,j=2,w=4,y=8,x=16,k=32,_=64,C=128,z=256,E=512,B=30,S="...",V=800,N=16,M=1,A=2,T=3,H=1/0,R=9007199254740991,L=17976931348623157e292,D=NaN,P=4294967295,I=P-1,F=P>>>1,$=[["ary",C],["bind",O],["bindKey",j],["curry",y],["curryRight",x],["flip",E],["partial",k],["partialRight",_],["rearg",z]],q="[object Arguments]",W="[object Array]",U="[object AsyncFunction]",K="[object Boolean]",Y="[object Date]",G="[object DOMException]",X="[object Error]",J="[object Function]",Z="[object GeneratorFunction]",Q="[object Map]",ee="[object Number]",te="[object Null]",re="[object Object]",ne="[object Promise]",oe="[object Proxy]",le="[object RegExp]",ae="[object Set]",ie="[object String]",ce="[object Symbol]",se="[object Undefined]",ue="[object WeakMap]",de="[object WeakSet]",pe="[object ArrayBuffer]",fe="[object DataView]",be="[object Float32Array]",me="[object Float64Array]",he="[object Int8Array]",ve="[object Int16Array]",ge="[object Int32Array]",Oe="[object Uint8Array]",je="[object Uint8ClampedArray]",we="[object Uint16Array]",ye="[object Uint32Array]",xe=/\b__p \+= '';/g,ke=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ce=/&(?:amp|lt|gt|quot|#39);/g,ze=/[&<>"']/g,Ee=RegExp(Ce.source),Be=RegExp(ze.source),Se=/<%-([\s\S]+?)%>/g,Ve=/<%([\s\S]+?)%>/g,Ne=/<%=([\s\S]+?)%>/g,Me=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ae=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,He=/[\\^$.*+?()[\]{}|]/g,Re=RegExp(He.source),Le=/^\s+/,De=/\s/,Pe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ie=/\{\n\/\* \[wrapped with (.+)\] \*/,Fe=/,? & /,$e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qe=/[()=,{}\[\]\/\s]/,We=/\\(\\)?/g,Ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,Xe=/^\[object .+?Constructor\]$/,Je=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,et=/($^)/,tt=/['\n\r\u2028\u2029\\]/g,rt="\\ud800-\\udfff",nt="\\u0300-\\u036f",ot="\\ufe20-\\ufe2f",lt="\\u20d0-\\u20ff",at=nt+ot+lt,it="\\u2700-\\u27bf",ct="a-z\\xdf-\\xf6\\xf8-\\xff",st="\\xac\\xb1\\xd7\\xf7",ut="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dt="\\u2000-\\u206f",pt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ft="A-Z\\xc0-\\xd6\\xd8-\\xde",bt="\\ufe0e\\ufe0f",mt=st+ut+dt+pt,ht="['’]",vt="["+rt+"]",gt="["+mt+"]",Ot="["+at+"]",jt="\\d+",wt="["+it+"]",yt="["+ct+"]",xt="[^"+rt+mt+jt+it+ct+ft+"]",kt="\\ud83c[\\udffb-\\udfff]",_t="(?:"+Ot+"|"+kt+")",Ct="[^"+rt+"]",zt="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+ft+"]",St="\\u200d",Vt="(?:"+yt+"|"+xt+")",Nt="(?:"+Bt+"|"+xt+")",Mt="(?:"+ht+"(?:d|ll|m|re|s|t|ve))?",At="(?:"+ht+"(?:D|LL|M|RE|S|T|VE))?",Tt=_t+"?",Ht="["+bt+"]?",Rt="(?:"+St+"(?:"+[Ct,zt,Et].join("|")+")"+Ht+Tt+")*",Lt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Pt=Ht+Tt+Rt,It="(?:"+[wt,zt,Et].join("|")+")"+Pt,Ft="(?:"+[Ct+Ot+"?",Ot,zt,Et,vt].join("|")+")",$t=RegExp(ht,"g"),qt=RegExp(Ot,"g"),Wt=RegExp(kt+"(?="+kt+")|"+Ft+Pt,"g"),Ut=RegExp([Bt+"?"+yt+"+"+Mt+"(?="+[gt,Bt,"$"].join("|")+")",Nt+"+"+At+"(?="+[gt,Bt+Vt,"$"].join("|")+")",Bt+"?"+Vt+"+"+Mt,Bt+"+"+At,Dt,Lt,jt,It].join("|"),"g"),Kt=RegExp("["+St+rt+at+bt+"]"),Yt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xt=-1,Jt={};Jt[be]=Jt[me]=Jt[he]=Jt[ve]=Jt[ge]=Jt[Oe]=Jt[je]=Jt[we]=Jt[ye]=!0,Jt[q]=Jt[W]=Jt[pe]=Jt[K]=Jt[fe]=Jt[Y]=Jt[X]=Jt[J]=Jt[Q]=Jt[ee]=Jt[re]=Jt[le]=Jt[ae]=Jt[ie]=Jt[ue]=!1;var Zt={};Zt[q]=Zt[W]=Zt[pe]=Zt[fe]=Zt[K]=Zt[Y]=Zt[be]=Zt[me]=Zt[he]=Zt[ve]=Zt[ge]=Zt[Q]=Zt[ee]=Zt[re]=Zt[le]=Zt[ae]=Zt[ie]=Zt[ce]=Zt[Oe]=Zt[je]=Zt[we]=Zt[ye]=!0,Zt[X]=Zt[J]=Zt[ue]=!1;var Qt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Line truncated
|
||||
/*!
|
||||
* escape-html
|
||||
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||||
* Copyright(c) 2015 Andreas Lubbe
|
||||
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||||
* MIT Licensed
|
||||
*/var n=/["'&<>]/;function o(e){var t,r=""+e,o=n.exec(r);if(!o)return r;var l="",a=0,i=0;for(a=o.index;a<r.length;a++){switch(r.charCodeAt(a)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==a&&(l+=r.substring(i,a)),i=a+1,l+=t}return i!==a?l+r.substring(i,a):l}e.exports=o},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7917:function(e,t,r){"use strict";var n=r("c532");function o(e,t,r,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}n.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var l=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(l,"isAxiosError",{value:!0}),o.from=function(e,t,r,a,i,c){var s=Object.create(l);return n.toFlatObject(e,s,(function(e){return e!==Error.prototype})),o.call(s,e.message,t,r,a,i),s.name=e.name,c&&Object.assign(s,c),s},e.exports=o},"7aac":function(e,t,r){"use strict";var n=r("c532");e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,r,o,l,a){var i=[];i.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),n.isString(o)&&i.push("path="+o),n.isString(l)&&i.push("domain="+l),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,r){var n=r("1d80"),o=Object;e.exports=function(e){return o(n(e))}},"7d20":function(e,t,r){"use strict";e.exports=r("eafd")},"825a":function(e,t,r){var n=r("861d"),o=String,l=TypeError;e.exports=function(e){if(n(e))return e;throw l(o(e)+" is not an object")}},"83ab":function(e,t,r){var n=r("d039");e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,r){"use strict";var n=r("d925"),o=r("e683");e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},"83ec":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return c})),r.d(t,"d",(function(){return l}));var n=r("7d20"),o=r("d095");r("f2bf");const l=e=>void 0===e,a=e=>!e&&0!==e||Object(n["isArray"])(e)&&0===e.length||Object(n["isObject"])(e)&&!Object.keys(e).length,i=e=>"undefined"!==typeof Element&&e instanceof Element,c=e=>Object(o["isNil"])(e)},"848b":function(e,t,r){"use strict";var n=r("5cce").version,o=r("7917"),l={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){l[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var a={};function i(e,t,r){if("object"!==typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);var n=Object.keys(e),l=n.length;while(l-- >0){var a=n[l],i=t[a];if(i){var c=e[a],s=void 0===c||i(c,a,e);if(!0!==s)throw new o("option "+a+" must be "+s,o.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}}l.transitional=function(e,t,r){function l(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,i){if(!1===e)throw new o(l(n," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(l(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,i)}},e.exports={assertOptions:i,validators:l}},"861d":function(e,t,r){var n=r("1626"),o=r("8ea1"),l=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===l}:function(e){return"object"==typeof e?null!==e:n(e)}},8925:function(e,t,r){var n=r("e330"),o=r("1626"),l=r("c6cd"),a=n(Function.toString);o(l.inspectSource)||(l.inspectSource=function(e){return a(e)}),e.exports=l.inspectSource},"89d4":function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r("7d20");const o=e=>{if(!e)return{onClick:n["NOOP"],onMousedown:n["NOOP"],onMouseup:n["NOOP"]};let t=!1,r=!1;const o=n=>{t&&r&&e(n),t=r=!1},l=e=>{t=e.target===e.currentTarget},a=e=>{r=e.target===e.currentTarget};return{onClick:o,onMousedown:l,onMouseup:a}}},"8afb":function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return o}));class n extends Error{constructor(e){super(e),this.name="ElementPLine truncated
|
||||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||||
t.read=function(e,t,r,n,o){var l,a,i=8*o-n-1,c=(1<<i)-1,s=c>>1,u=-7,d=r?o-1:0,p=r?-1:1,f=e[t+d];for(d+=p,l=f&(1<<-u)-1,f>>=-u,u+=i;u>0;l=256*l+e[t+d],d+=p,u-=8);for(a=l&(1<<-u)-1,l>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===l)l=1-s;else{if(l===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),l-=s}return(f?-1:1)*a*Math.pow(2,l-n)},t.write=function(e,t,r,n,o,l){var a,i,c,s=8*l-o-1,u=(1<<s)-1,d=u>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:l-1,b=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),t+=a+d>=1?p/c:p*Math.pow(2,1-d),t*c>=2&&(a++,c/=2),a+d>=u?(i=0,a=u):a+d>=1?(i=(t*c-1)*Math.pow(2,o),a+=d):(i=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+f]=255&i,f+=b,i/=256,o-=8);for(a=a<<o|i,s+=o;s>0;e[r+f]=255&a,f+=b,a/=256,s-=8);e[r+f-b]|=128*m}},9215:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return p})),r.d(t,"c",(function(){return f})),r.d(t,"d",(function(){return d})),r.d(t,"e",(function(){return c})),r.d(t,"f",(function(){return u}));var n=r("f2bf"),o=r("7d20"),l=r("8afb");const a="utils/vue/vnode";var i=(e=>(e[e["TEXT"]=1]="TEXT",e[e["CLASS"]=2]="CLASS",e[e["STYLE"]=4]="STYLE",e[e["PROPS"]=8]="PROPS",e[e["FULL_PROPS"]=16]="FULL_PROPS",e[e["HYDRATE_EVENTS"]=32]="HYDRATE_EVENTS",e[e["STABLE_FRAGMENT"]=64]="STABLE_FRAGMENT",e[e["KEYED_FRAGMENT"]=128]="KEYED_FRAGMENT",e[e["UNKEYED_FRAGMENT"]=256]="UNKEYED_FRAGMENT",e[e["NEED_PATCH"]=512]="NEED_PATCH",e[e["DYNAMIC_SLOTS"]=1024]="DYNAMIC_SLOTS",e[e["HOISTED"]=-1]="HOISTED",e[e["BAIL"]=-2]="BAIL",e))(i||{});function c(e){return Object(n["isVNode"])(e)&&e.type===n["Fragment"]}function s(e){return Object(n["isVNode"])(e)&&e.type===n["Comment"]}function u(e){return Object(n["isVNode"])(e)&&!c(e)&&!s(e)}const d=e=>{if(!Object(n["isVNode"])(e))return Object(l["a"])(a,"[getNormalizedProps] must be a VNode"),{};const t=e.props||{},r=(Object(n["isVNode"])(e.type)?e.type.props:void 0)||{},i={};return Object.keys(r).forEach(e=>{Object(o["hasOwn"])(r[e],"default")&&(i[e]=r[e].default)}),Object.keys(t).forEach(e=>{i[Object(o["camelize"])(e)]=t[e]}),i},p=e=>{if(!Object(o["isArray"])(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},f=e=>{const t=Object(o["isArray"])(e)?e:[e],r=[];return t.forEach(e=>{Object(o["isArray"])(e.children)?r.push(...f(e.children)):r.push(e)}),r}},"93b2":function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return i}));var n=r("f2bf"),o=r("0898"),l=r("c23a"),a=r("c083");const i={},c=Object(o["b"])({a11y:{type:Boolean,default:!0},locale:{type:Object(o["c"])(Object)},size:l["c"],button:{type:Object(o["c"])(Object)},experimentalFeatures:{type:Object(o["c"])(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Object(o["c"])(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),s=Object(n["defineComponent"])({name:"ElConfigProvider",props:c,setup(e,{slots:t}){Object(n["watch"])(()=>e.message,e=>{Object.assign(i,null!=e?e:{})},{immediate:!0,deep:!0});const r=Object(a["a"])(e);return()=>Object(n["renderSlot"])(t,"default",{config:null==r?void 0:r.value})}})},"94ca":function(e,t,r){var n=r("d039"),o=r("1626"),l=/#|\.prototype\./,a=function(e,t){var r=c[i(e)];return r==u||r!=s&&(o(t)?n(t):!!t)},i=a.normalize=function(e){return String(e).replace(l,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},9885:function(e,t,r){"use strict";r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return c})),r.d(t,"d",(function(){return l})),r.d(t,"e",(function(){return i}));const n='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',o=e=>{const t=getComputedStyle(e);return"fixed"!==t.position&&null!==e.offsetParent},l=e=>Array.from(e.querySelectorAll(n)).filter(e=>a(e)&&o(e)),a=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},i=function(e,t,...r){let n;n=t.includes("mouse")||t.includes("click")?"MouseEvents":t.includes("key")?"KeyboardEvent":"HTMLEvents";const o=document.createEvent(n);return o.initEvent(t,...r),e.dispatchEvent(o),e},c=e=>!e.getAttribute("aria-owns"),s=(e,t,r)=>{const{parentNode:n}=e;if(!n)return null;const o=n.querySelectorAll(r),l=Array.prototype.indexOf.call(o,e);return o[l+t]||null},u=e=>{e&&(e.focus(),!c(e)&&e.click())}},"9ad7":function(e,t,r){"use strict";
|
||||
/*! Element Plus Icons Vue v2.0.9 */var n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,i=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},c=(e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of l(t))!a.call(e,c)&&c!==r&&n(e,c,{get:()=>t[c],enumerable:!(i=o(t,c))||i.enumerable});return e},s=e=>c(n({},"__esModule",{value:!0}),e),u={};i(u,{AddLocation:()=>j,Aim:()=>E,AlarmClock:()=>H,Apple:()=>$,ArrowDown:()=>ne,ArrowDownBold:()=>X,ArrowLeft:()=>ve,ArrowLeftBold:()=>ue,ArrowRight:()=>Ve,ArrowRightBold:()=>ke,ArrowUp:()=>We,ArrowUpBold:()=>Le,Avatar:()=>Ze,Back:()=>at,Baseball:()=>bt,Basketball:()=>wt,Bell:()=>Rt,BellFilled:()=>Et,Bicycle:()=>qt,Bottom:()=>fr,BottomLeft:()=>Zt,BottomRight:()=>ar,Bowl:()=>jr,Box:()=>Br,Briefcase:()=>Hr,Brush:()=>Xr,BrushFilled:()=>$r,Burger:()=>nn,Calendar:()=>dn,Camera:()=>_n,CameraFilled:()=>gn,CaretBottom:()=>Nn,CaretLeft:()=>Dn,CaretRight:()=>Un,CaretTop:()=>Qn,Cellphone:()=>ao,ChatDotRound:()=>mo,ChatDotSquare:()=>xo,ChatLineRound:()=>Vo,ChatLineSquare:()=>Do,ChatRound:()=>Uo,ChatSquare:()=>Qo,Check:()=>al,Checked:()=>fl,Cherry:()=>jl,Chicken:()=>zl,ChromeFilled:()=>Hl,CircleCheck:()=>Jl,CircleCheckFilled:()=>$l,CircleClose:()=>pa,CircleCloseFilled:()=>oa,CirclePlus:()=>Ea,CirclePlusFilled:()=>Oa,Clock:()=>Ra,Close:()=>Ja,CloseBold:()=>qa,Cloudy:()=>oi,Coffee:()=>gi,CoffeeCup:()=>di,Coin:()=>zi,ColdDrink:()=>Ai,Collection:()=>Gi,CollectionTag:()=>Ii,Comment:()=>rc,Compass:()=>uc,Connection:()=>gc,Coordinate:()=>Cc,CopyDocument:()=>Ac,Cpu:()=>Fc,CreditCard:()=>Xc,Crop:()=>os,DArrowLeft:()=>ds,DArrowRight:()=>gs,DCaret:()=>_s,DataAnalysis:()=>Ns,DataBoard:()=>Is,DataLine:()=>Ys,Delete:()=>vu,DeleteFilled:()=>tu,DeleteLocation:()=>uu,Dessert:()=>ku,Discount:()=>Nu,Dish:()=>Uu,DishDot:()=>Du,Document:()=>Ad,DocumentAdd:()=>Qu,DocumentChecked:()=>ad,DocumentCopy:()=>fd,DocumentDelete:()=>jd,DocumentRemove:()=>zd,Download:()=>Id,Drizzling:()=>Yd,Edit:()=>sp,EditPen:()=>tp,Eleme:()=>xp,ElemeFilled:()=>hp,ElementPlus:()=>Sp,Expand:()=>Rp,Failed:()=>qp,Female:()=>Qp,Files:()=>af,Film:()=>mf,Filter:()=>yf,Finished:()=>Bf,FirstAidKit:()=>Rf,Flag:()=>qf,Fold:()=>Jf,Folder:()=>Db,FolderAdd:()=>ob,FolderChecked:()=>db,FolderDelete:()=>gb,FolderOpened:()=>_b,FolderRemove:()=>Nb,Food:()=>Ub,Football:()=>em,ForkSpoon:()=>im,Fries:()=>bm,FullScreen:()=>wm,Goblet:()=>Gm,GobletFull:()=>Em,GobletSquare:()=>Fm,GobletSquareFull:()=>Tm,GoldMedal:()=>nh,Goods:()=>vh,GoodsFilled:()=>uh,Grape:()=>kh,Grid:()=>Vh,Guide:()=>Dh,Handbag:()=>Uh,Headset:()=>Qh,Help:()=>fv,HelpFilled:()=>av,Hide:()=>wv,Histogram:()=>Ev,HomeFilled:()=>Tv,HotWater:()=>Fv,House:()=>Gv,IceCream:()=>hg,IceCreamRound:()=>rg,IceCreamSquare:()=>sg,IceDrink:()=>xg,IceTea:()=>Sg,InfoFilled:()=>Rg,Iphone:()=>qg,Key:()=>Jg,KnifeFork:()=>oO,Lightning:()=>pO,Link:()=>OO,List:()=>CO,Loading:()=>MO,Location:()=>nj,LocationFilled:()=>PO,LocationInformation:()=>GO,Lock:()=>dj,Lollipop:()=>gj,MagicStick:()=>_j,Magnet:()=>Nj,Male:()=>Ij,Management:()=>Yj,MapLocation:()=>rw,Medal:()=>uw,Memo:()=>Ow,Menu:()=>Cw,Message:()=>Iw,MessageBox:()=>Mw,Mic:()=>Yw,Microphone:()=>ty,MilkTea:()=>cy,Minus:()=>my,Money:()=>ky,Monitor:()=>Vy,Moon:()=>Uy,MoonNight:()=>Dy,More:()=>ax,MoreFilled:()=>Qy,MostlyCloudy:()=>fx,Mouse:()=>wx,Mug:()=>Ex,Mute:()=>qx,MuteNotification:()=>Hx,NoSmoking:()=>Jx,Notebook:()=>lk,Notification:()=>fk,Odometer:()=>yk,OfficeBuilding:()=>Vk,Open:()=>Dk,Operation:()=>Uk,Opportunity:()=>Qk,Orange:()=>a_,Paperclip:()=>f_,PartlyCloudy:()=>w_,Pear:()=>E_,Phone:()=>F_,PhoneFilled:()=>T_,Picture:()=>dC,PictureFilled:()=>G_,PictureRounded:()=>nC,PieChart:()=>OC,Place:()=>EC,Platform:()=>TC,Plus:()=>FC,Pointer:()=>GC,Position:()=>rz,Postcard:()=>uz,Pouring:()=>vz,Present:()=>zz,PriceTag:()=>Tz,Printer:()=>Fz,Promotion:()=>Gz,QuartzWatch:()=>oE,QuestionFilled:()=>dE,Rank:()=>gE,Reading:()=>AE,ReadingLamp:()=>CE,Refresh:()=>tB,RefreshLeft:()=>IE,RefreshRight:()=>YE,Refrigerator:()=>cB,Remove:()=>xB,RemoveFilled:()=>mB,Right:()=>SB,ScaleToOriginal:()=>RB,School:()=>UB,Scissor:()=>QB,Search:()=>aS,Select:()=>fS,Sell:()=>jS,SemiSelect:()=>zS,Service:()=>AS,SetUp:()=>qS,Setting:()=>JS,Share:()=>oV,Ship:()=>dV,Shop:()=>gV,ShoppingBag:()=>CV,ShoppingCart:()=>IV,ShoppingCartFull:()=>AV,ShoppingTrolley:()=>YV,Smoking:()=>rN,Soccer:()=>sN,SoldOut:()=>hN,Sort:()=>RN,SortDown:()=>xN,SortUp:()=>SN,Stamp:()=>qN,Star:()=>oM,StarFilled:()=>JN,Stopwatch:()=>pM,SuccessFilled:()=>OM,Sugar:()=>CM,Suitcase:()=>IM,SuitcaseLine:()=>MM,Sunny:()=>YM,Sunrise:()=>tA,Sunset:()=>cA,Switch:()=>VA,SwitchButton:()=>hA,SwitchFilled:()=>kA,TakeawayBox:()=>LA,Ticket:()=>WA,Tickets:()=>ZA,Timer:()=>iT,ToiletPaper:()=>mT,Tools:()=>yT,Top:()=>WT,TopLeft:()=>ST,TopRight:()=>LT,TrendCharts:()=>ZT,Trophy:()=>pH,TrophyBase:()=>lH,TurnOff:()=>jH,Umbrella:()=>zH,Unlock:()=>TH,Upload:()=>GH,UploadFilled:()=>FH,User:()=>sR,UserFilled:()=>rR,Van:()=>hR,VideoCamera:()=>SR,VideoCameraFilled:()=Line truncated
|
||||
/*!
|
||||
* The buffer module from node.js, for the browser.
|
||||
*
|
||||
* @author Feross Aboukhadijeh <http://feross.org>
|
||||
* @license MIT
|
||||
*/
|
||||
var n=r("1fb5"),o=r("9152"),l=r("e3db");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function i(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(i()<t)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=s.prototype):(null===e&&(e=new s(t)),e.length=t),e}function s(e,t,r){if(!s.TYPED_ARRAY_SUPPORT&&!(this instanceof s))return new s(e,t,r);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,r)}function u(e,t,r,n){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?h(e,t,r,n):"string"===typeof t?b(e,t,r):v(e,t)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t,r,n){return d(t),t<=0?c(e,t):void 0!==r?"string"===typeof n?c(e,t).fill(r,n):c(e,t).fill(r):c(e,t)}function f(e,t){if(d(t),e=c(e,t<0?0:0|g(t)),!s.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function b(e,t,r){if("string"===typeof r&&""!==r||(r="utf8"),!s.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|j(t,r);e=c(e,n);var o=e.write(t,r);return o!==n&&(e=e.slice(0,o)),e}function m(e,t){var r=t.length<0?0:0|g(t.length);e=c(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),s.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=s.prototype):e=m(e,t),e}function v(e,t){if(s.isBuffer(t)){var r=0|g(t.length);return e=c(e,r),0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?c(e,0):m(e,t);if("Buffer"===t.type&&l(t.data))return m(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function O(e){return+e!=e&&(e=0),s.alloc(+e)}function j(e,t){if(s.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(e).length;default:if(n)return X(e).length;t=(""+t).toLowerCase(),n=!0}}function w(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return N(this,t,r);case"ascii":return T(this,t,r);case"latin1":case"binary":return H(this,t,r);case"base64":return V(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function x(e,t,r,n,o){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"===typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:k(e,t,r,n,o);if("number"===typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):k(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function k(e,t,r,n,o){var l,a=1,i=e.length,c=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,i/=2,c/=2,r/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(l=r;l<i;l++)if(s(e,l)===s(t,-1===u?0:l-u)){if(-1===u&&(u=l),l-u+1===c)return u*a}else-1!==u&&(l-=l-u),u=-1}else for(r+c>i&&(r=i-c),l=r;l>=0;l--){for(var d=!0,p=0;p<c;p++)if(s(e,l+p)!==s(t,p)){d=!1;break}if(d)return l}return-1}function _(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var l=t.lenLine truncated
|
||||
/*! Element Plus Icons Vue v2.0.9 */function d(e,t,r,o,l,i){return Object(n["openBlock"])(),Object(n["createElementBlock"])("svg",a,u)}var p=o(l,[["render",d],["__file","add-location.vue"]]),f={name:"Aim"},b={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},m=Object(n["createElementVNode"])("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),h=Object(n["createElementVNode"])("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32zm0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32zM96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32zm576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32z"},null,-1),v=[m,h];function g(e,t,r,o,l,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("svg",b,v)}var O=o(f,[["render",g],["__file","aim.vue"]]),j={name:"AlarmClock"},w={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},y=Object(n["createElementVNode"])("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z"},null,-1),x=Object(n["createElementVNode"])("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32l48-83.136zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32l-48-83.136zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0v192zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128l46.912 46.912z"},null,-1),k=[y,x];function _(e,t,r,o,l,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("svg",w,k)}var C=o(j,[["render",_],["__file","alarm-clock.vue"]]),z={name:"Apple"},E={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},B=Object(n["createElementVNode"])("path",{fill:"currentColor",d:"M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z"},null,-1),S=[B];function V(e,t,r,o,l,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("svg",E,S)}var N=o(z,[["render",V],["__file","apple.vue"]]),M={name:"ArrowDownBold"},A={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},T=Object(n["createElementVNode"])("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"},null,-1),H=[T];function R(e,t,r,o,l,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("svg",A,H)}var L=o(M,[["render",R],["__file","arrow-down-bold.vue"]]),D={name:"ArrowDown"},P={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},I=Object(n["createElementVNode"])("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),F=[I];function $(e,t,r,o,l,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("svg",P,F)}var q=o(D,[["render",$],["__file","arrow-down.vue"]]),W={name:"ArrowLeftBold"},U={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},K=Object(n["createElementVNode"])("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"},null,-1),Y=[K];function G(e,t,r,o,l,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("svg",U,Y)}var X=o(W,[["render",G],["__file","arrow-left-bold.vue"]]),J={name:"ArrowLeft"},Z={vLine truncated
|
||||
@@ -1,323 +0,0 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
const t$1=window,e$2=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$3=Symbol(),n$3=new WeakMap;let o$3 = class o{constructor(t,e,n){if(this._$cssResult$=!0,n!==s$3)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$2&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=n$3.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&n$3.set(s,t));}return t}toString(){return this.cssText}};const r$2=t=>new o$3("string"==typeof t?t:t+"",void 0,s$3),i$1=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,s,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[n+1]),t[0]);return new o$3(n,t,s$3)},S$1=(s,n)=>{e$2?s.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((e=>{const n=document.createElement("style"),o=t$1.litNonce;void 0!==o&&n.setAttribute("nonce",o),n.textContent=e.cssText,s.appendChild(n);}));},c$1=e$2?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2(e)})(t):t;
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/var s$2;const e$1=window,r$1=e$1.trustedTypes,h$1=r$1?r$1.emptyScript:"",o$2=e$1.reactiveElementPolyfillSupport,n$2={toAttribute(t,i){switch(i){case Boolean:t=t?h$1:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,i){let s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t);}catch(t){s=null;}}return s}},a$1=(t,i)=>i!==t&&(i==i||t==t),l$2={attribute:!0,type:String,converter:n$2,reflect:!1,hasChanged:a$1},d$1="finalized";let u$1 = class u extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u();}static addInitializer(t){var i;this.finalize(),(null!==(i=this.h)&&void 0!==i?i:this.h=[]).push(t);}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,s)=>{const e=this._$Ep(s,i);void 0!==e&&(this._$Ev.set(e,s),t.push(e));})),t}static createProperty(t,i=l$2){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,e=this.getPropertyDescriptor(t,s,i);void 0!==e&&Object.defineProperty(this.prototype,t,e);}}static getPropertyDescriptor(t,i,s){return {get(){return this[i]},set(e){const r=this[t];this[i]=e,this.requestUpdate(t,r,s);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l$2}static finalize(){if(this.hasOwnProperty(d$1))return !1;this[d$1]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s]);}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(i){const s=[];if(Array.isArray(i)){const e=new Set(i.flat(1/0).reverse());for(const i of e)s.unshift(c$1(i));}else void 0!==i&&s.push(c$1(i));return s}static _$Ep(t,i){const s=i.attribute;return !1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)));}addController(t){var i,s;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t));}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1);}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i]);}));}createRenderRoot(){var t;const s=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return S$1(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}));}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}));}attributeChangedCallback(t,i,s){this._$AK(t,s);}_$EO(t,i,s=l$2){var e;const r=this.constructor._$Ep(t,s);if(void 0!==r&&!0===s.reflect){const h=(void 0!==(null===(e=s.converter)||void 0===e?void 0:e.toAttribute)?s.converter:n$2).toAttribute(i,s.type);this._$El=t,null==h?this.removeAttribute(r):this.setAttribute(r,h),this._$El=null;}}_$AK(t,i){var s;const e=this.constructor,r=e._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=e.getPropertyOptions(r),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:n$2;this._$El=r,this[r]=h.fromAttribute(i,t.type),this._$El=null;}}requestUpdate(t,i,s){let e=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||a$1)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):e=!1),!this.isUpdatePending&&e&&(this._$E_=this._$Ej());}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(s)):this._$Ek();}catch(t){throw i=!1,this._$Ek(),t}i&&thiLine truncated
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
var t;const i=window,s$1=i.trustedTypes,e=s$1?s$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,o$1="$lit$",n$1=`lit$${(Math.random()+"").slice(9)}$`,l$1="?"+n$1,h=`<${l$1}>`,r=document,u=()=>r.createComment(""),d=t=>null===t||"object"!=typeof t&&"function"!=typeof t,c=Array.isArray,v=t=>c(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),a="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${a}(?:([^\\s"'>=/]+)(${a}*=${a}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,w=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=w(1),T=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),E=new WeakMap,C=r.createTreeWalker(r,129,null,!1);function P(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e?e.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,e=[];let l,r=2===i?"<svg>":"",u=f;for(let i=0;i<s;i++){const s=t[i];let d,c,v=-1,a=0;for(;a<s.length&&(u.lastIndex=a,c=u.exec(s),null!==c);)a=u.lastIndex,u===f?"!--"===c[1]?u=_:void 0!==c[1]?u=m:void 0!==c[2]?(y.test(c[2])&&(l=RegExp("</"+c[2],"g")),u=p):void 0!==c[3]&&(u=p):u===p?">"===c[0]?(u=null!=l?l:f,v=-1):void 0===c[1]?v=-2:(v=u.lastIndex-c[2].length,d=c[1],u=void 0===c[3]?p:'"'===c[3]?$:g):u===$||u===g?u=p:u===_||u===m?u=f:(u=p,l=void 0);const w=u===p&&t[i+1].startsWith("/>")?" ":"";r+=u===f?s+h:v>=0?(e.push(d),s.slice(0,v)+o$1+s.slice(v)+n$1+w):s+n$1+(-2===v?(e.push(void 0),i):w);}return [P(t,r+(t[s]||"<?>")+(2===i?"</svg>":"")),e]};class N{constructor({strings:t,_$litType$:i},e){let h;this.parts=[];let r=0,d=0;const c=t.length-1,v=this.parts,[a,f]=V(t,i);if(this.el=N.createElement(a,e),C.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes);}for(;null!==(h=C.nextNode())&&v.length<c;){if(1===h.nodeType){if(h.hasAttributes()){const t=[];for(const i of h.getAttributeNames())if(i.endsWith(o$1)||i.startsWith(n$1)){const s=f[d++];if(t.push(i),void 0!==s){const t=h.getAttribute(s.toLowerCase()+o$1).split(n$1),i=/([.?@])?(.*)/.exec(s);v.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?H:"?"===i[1]?L:"@"===i[1]?z:k});}else v.push({type:6,index:r});}for(const i of t)h.removeAttribute(i);}if(y.test(h.tagName)){const t=h.textContent.split(n$1),i=t.length-1;if(i>0){h.textContent=s$1?s$1.emptyScript:"";for(let s=0;s<i;s++)h.append(t[s],u()),C.nextNode(),v.push({type:2,index:++r});h.append(t[i],u());}}}else if(8===h.nodeType)if(h.data===l$1)v.push({type:2,index:r});else {let t=-1;for(;-1!==(t=h.data.indexOf(n$1,t+1));)v.push({type:7,index:r}),t+=n$1.length-1;}r++;}}static createElement(t,i){const s=r.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){var o,n,l,h;if(i===T)return i;let r=void 0!==e?null===(o=s._$Co)||void 0===o?void 0:o[e]:s._$Cl;const u=d(i)?void 0:i._$litDirective$;return (null==r?void 0:r.constructor)!==u&&(null===(n=null==r?void 0:r._$AO)||void 0===n||n.call(r,!1),void 0===u?r=void 0:(r=new u(t),r._$AT(t,s,e)),void 0!==e?(null!==(l=(h=s)._$Co)&&void 0!==l?l:h._$Co=[])[e]=r:s._$Cl=r),void 0!==r&&(i=S(t,r._$AS(t,i.values),r,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:r).importNode(s,!0);C.currentNode=o;let n=C.nextNode(),l=0,h=0,u=e[0];for(;void 0!==u;){if(l===u.index){let i;2===u.type?i=new R(n,n.nextSibling,this,t):1===u.type?i=new u.ctor(n,u.name,u.strings,this,t):6===u.type&&(i=new Z(n,this,t)),this._$AV.push(i),u=e[++h];}l!==(null==u?void 0:u.index)&&(n=C.nextNode(),l++);}return C.currentNode=r,o}v(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{constructor(t,i,s,e){var o;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cp=null===(o=null==e?void 0:e.isConnected)||void 0===o||o;}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),d(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):v(t)?this.T(t):this._(t);}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t));}_(t){this._$AH!==A&&d(this._$AH)?this._$AA.nextSibling.data=t:this.$(r.createTextNode(t)),this._$AH=t;}g(t){var i;const{values:s,_$litType$:e}=t,o="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=N.createElement(P(e.h,e.h[0]),this.optiLine truncated
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/var l,o;class s extends u$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=D(i,this.renderRoot,this.renderOptions);}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0);}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1);}render(){return T}}s.finalized=!0,s._$litElement$=!0,null===(l=globalThis.litElementHydrateSupport)||void 0===l||l.call(globalThis,{LitElement:s});const n=globalThis.litElementPolyfillSupport;null==n||n({LitElement:s});(null!==(o=globalThis.litElementVersions)&&void 0!==o?o:globalThis.litElementVersions=[]).push("3.3.2");
|
||||
|
||||
const DEFAULT_EMOJIS = '👍,thumbs-up;😄,smile-face;🎉,party-popper;😕,confused-face;❤️,red-heart;🚀,rocket;👀,eyes;👎,thumbs-down;';
|
||||
|
||||
class EmojiReaction extends s {
|
||||
static properties = {
|
||||
showAvailable: {attribute: false},
|
||||
availableReactions: { attribute: false },
|
||||
availableArrayString: {},
|
||||
endpoint: {},
|
||||
reactTargetId: {},
|
||||
theme: {},
|
||||
};
|
||||
// Define scoped styles right with your component, in plain CSS
|
||||
static styles = i$1`
|
||||
/* default light */
|
||||
.container {
|
||||
--start-smile-border-color-default: #d0d7de;
|
||||
--start-smile-border-color-hover-default: #1f232826;
|
||||
--start-smile-bg-color-default: #f6f8fa;
|
||||
--start-smile-svg-fill-color-default: #656d76;
|
||||
--reaction-got-not-reacted-bg-color-default: #fff;
|
||||
--reaction-got-not-reacted-bg-color-hover-default: #eaeef2;
|
||||
--reaction-got-not-reacted-border-color-default: #d0d7de;
|
||||
--reaction-got-not-reacted-text-color-default: #656d76;
|
||||
--reaction-got-reacted-bg-color-default: #ddf4ff;
|
||||
--reaction-got-reacted-bg-color-hover-default: #b6e3ff;
|
||||
--reaction-got-reacted-border-color-default: #0969da;
|
||||
--reaction-got-reacted-text-color-default: #0969da;
|
||||
--reaction-available-popup-bg-color-default: #fff;
|
||||
--reaction-available-popup-border-color-default: #d0d7de;
|
||||
--reaction-available-popup-box-shadow-default: #8c959f33 0px 8px 24px 0px;
|
||||
--reaction-available-emoji-reacted-bg-color-default: #ddf4ff;
|
||||
--reaction-available-emoji-bg-color-hover-default: #f3f4f6;
|
||||
--reaction-available-emoji-z-index-default: 100;
|
||||
--reaction-available-mask-z-index-default: 80;
|
||||
}
|
||||
/* default dark */
|
||||
.container-dark {
|
||||
--start-smile-border-color-default: #21262d;
|
||||
--start-smile-border-color-hover-default: #8b949e;
|
||||
--start-smile-bg-color-default: #30363d;
|
||||
--start-smile-svg-fill-color-default: #7d8590;
|
||||
--reaction-got-not-reacted-bg-color-default: #00000000;
|
||||
--reaction-got-not-reacted-bg-color-hover-default: #21262d;
|
||||
--reaction-got-not-reacted-border-color-default: #30363d;
|
||||
--reaction-got-not-reacted-text-color-default: #7d8590;
|
||||
--reaction-got-reacted-bg-color-default: #388bfd1a;
|
||||
--reaction-got-reacted-bg-color-hover-default: #0c2d6b;
|
||||
--reaction-got-reacted-border-color-default: #1f6feb;
|
||||
--reaction-got-reacted-text-color-default: #2f81f7;
|
||||
--reaction-available-popup-bg-color-default: #161b22;
|
||||
--reaction-available-popup-border-color-default: #30363d;
|
||||
--reaction-available-popup-box-shadow-default: #010409 0px 8px 24px 0px;
|
||||
--reaction-available-emoji-reacted-bg-color-default: #388bfd1a;
|
||||
--reaction-available-emoji-bg-color-hover-default: #30363d;
|
||||
--reaction-available-emoji-z-index-default: 100;
|
||||
--reaction-available-mask-z-index-default: 80;
|
||||
}
|
||||
.anim-scale-in {
|
||||
animation-name: scale-in;
|
||||
animation-duration: .15s;
|
||||
animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);
|
||||
}
|
||||
|
||||
@keyframes scale-in {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale(0.5);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
// Render the UI as a function of component state
|
||||
render() {
|
||||
const system_theme = window.matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark";
|
||||
return x`
|
||||
<style>
|
||||
#start-smile {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: var(--start-smile-border-color, var(--start-smile-border-color-default));
|
||||
background-color: var(--start-smile-bg-color, var(--start-smile-bg-color-default));
|
||||
}
|
||||
#start-smile:hover {
|
||||
border-color: var(--start-smile-border-color-hover, var(--start-smile-border-color-hover-default)) !important;
|
||||
}
|
||||
#start-smile-svg {
|
||||
fill: var(--start-smile-svg-fill-color, var(--start-smile-svg-fill-color-default));
|
||||
}
|
||||
.reaction-got-not-reacted {
|
||||
background-color: var(--reaction-got-not-reacted-bg-color, var(--reaction-got-not-reacted-bg-color-default));
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: var(--reaction-got-not-reacted-border-color, var(--reaction-got-not-reacted-border-color-default));
|
||||
color: var(--reaction-got-not-reacted-text-color, var(--reaction-got-not-reacted-text-color-default));
|
||||
}
|
||||
.reaction-got-not-reacted:hover {
|
||||
background-color: var(--reaction-got-not-reacted-bg-color-hover, var(--reaction-got-not-reacted-bg-color-hover-default));
|
||||
}
|
||||
.reaction-got-reacted {
|
||||
background-color: var(--reaction-got-reacted-bg-color, var(--reaction-got-reacted-bg-color-default));
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: var(--reaction-got-reacted-border-color, var(--reaction-got-reacted-border-color-default));
|
||||
color: var(--reaction-got-reacted-text-color, var(--reaction-got-reacted-text-color-default));
|
||||
}
|
||||
.reaction-got-reacted:hover {
|
||||
background-color: var(--reaction-got-reacted-bg-color-hover, var(--reaction-got-reacted-bg-color-hover-default));
|
||||
}
|
||||
.reaction-available-popup {
|
||||
background-color: var(--reaction-available-popup-bg-color, var(--reaction-available-popup-bg-color-default));
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: var(--reaction-available-popup-border-color, var(--reaction-available-popup-border-color-default));
|
||||
box-shadow: var(--reaction-available-popup-box-shadow, var(--reaction-available-popup-box-shadow-default));
|
||||
}
|
||||
.reaction-available-emoji {
|
||||
z-index: var(--reaction-available-emoji-z-index, var(--reaction-available-emoji-z-index-default));
|
||||
}
|
||||
.reaction-available-emoji:hover {
|
||||
background-color: var(--reaction-available-emoji-bg-color-hover, var(--reaction-available-emoji-bg-color-hover-default));
|
||||
}
|
||||
.reaction-available-emoji-reacted {
|
||||
background-color: var(--reaction-available-emoji-reacted-bg-color, var(--reaction-available-emoji-reacted-bg-color-default));
|
||||
}
|
||||
.reaction-available-popup::before {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: var(--reaction-available-mask-z-index, var(--reaction-available-mask-z-index-default));
|
||||
display: block;
|
||||
cursor: default;
|
||||
content: " ";
|
||||
background: transparent;
|
||||
}
|
||||
</style>
|
||||
<!-- container -->
|
||||
<div style="flex-wrap: nowrap; max-width: 100%; display: flex; gap: 0.375rem;" class="${this?.theme === 'dark' || (this?.theme === 'system' && system_theme === 'dark') ? 'container-dark' : 'container'}">
|
||||
<!-- 灰色笑脸 -->
|
||||
<div style="position: relative; user-select: none;">
|
||||
<div id="start-smile" @click="${this._showAvailable}"
|
||||
style="border-radius: 800px; width: 1rem; height: 1rem; line-height: 1rem; padding: 0.25rem;">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="1rem" height="1rem" id="start-smile-svg" style="cursor: pointer;">
|
||||
<path
|
||||
d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm3.82 1.636a.75.75 0 0 1 1.038.175l.007.009c.103.118.22.222.35.31.264.178.683.37 1.285.37.602 0 1.02-.192 1.285-.371.13-.088.247-.192.35-.31l.007-.008a.75.75 0 0 1 1.222.87l-.022-.015c.02.013.021.015.021.015v.001l-.001.002-.002.003-.005.007-.014.019a2.066 2.066 0 0 1-.184.213c-.16.166-.338.316-.53.445-.63.418-1.37.638-2.127.629-.946 0-1.652-.308-2.126-.63a3.331 3.331 0 0 1-.715-.657l-.014-.02-.005-.006-.002-.003v-.002h-.001l.613-.432-.614.43a.75.75 0 0 1 .183-1.044ZM12 7a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM5 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5.25 2.25.592.416a97.71 97.71 0 0 0-.592-.416Z">
|
||||
</path>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="anim-scale-in reaction-available-popup" @click=${this._closePopup} style="display: ${this.showAvailable ? 'flex' : 'none'}; user-select: none; position: absolute; top: -3rem; font-size: 0.875rem; border-radius: 0.375rem; padding: 0 0.125rem;">
|
||||
<!-- reactions available -->
|
||||
${this.availableReactions.map(item => x`
|
||||
<span @click=${this._react} data-name="${item.reaction_name}" class="reaction-available-emoji ${item.meReacted ? 'reaction-available-emoji-reacted' : ''}" style="cursor: pointer; margin: 0.25rem 0.125rem; padding: 0.25rem; border-radius: 0.375rem;">${item.emoji}</span>
|
||||
`)}
|
||||
</div>
|
||||
</div>
|
||||
<!-- reactions got -->
|
||||
<div style="display: flex; overflow-x: auto; gap: 0.375rem;">
|
||||
${this.availableReactions.map(item => x`
|
||||
<div @click=${this._react} data-name="${item.reaction_name}" class="${item.meReacted ? 'reaction-got-reacted' : 'reaction-got-not-reacted'}" style="display: ${item?.count && item.count > 0 ? 'flex' : 'none'}; user-select: none; cursor: pointer; justify-content: center; align-items: center; border-radius: 108px; padding: 0 0.25rem; font-size: 0.75rem;">
|
||||
<span style="pointer-events: none;">${item.emoji}</span><span style="padding:0 0.375rem; pointer-events: none;">${item.count}</span>
|
||||
</div>
|
||||
`)}
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
// Declare reactive properties
|
||||
this.showAvailable = false;
|
||||
this.availableReactions = [];
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
super.connectedCallback();
|
||||
this.initReactions();
|
||||
}
|
||||
|
||||
async initReactions() {
|
||||
let arr_string = this?.availableArrayString;
|
||||
if (!arr_string) {
|
||||
arr_string = DEFAULT_EMOJIS;
|
||||
}
|
||||
const arr = arr_string.split(';').map(val => {
|
||||
const [emoji, reaction_name] = val.split(',');
|
||||
if (!emoji || !reaction_name) {
|
||||
return null
|
||||
}
|
||||
return { emoji, reaction_name }
|
||||
}).filter(val => val);
|
||||
// 初始化 endpoint
|
||||
if (!this?.endpoint) {
|
||||
this.endpoint = 'https://api.emaction.cool';
|
||||
}
|
||||
// 请求接口,获取哪些 emoji 有 reaction 数量
|
||||
let url_2_generate_id = '';
|
||||
const canonical = document.head.querySelector("link[rel='canonical']");
|
||||
url_2_generate_id = canonical && canonical.href ? canonical.href : window.location.href;
|
||||
const urlObj = new URL(url_2_generate_id);
|
||||
const url_without_hash = urlObj.origin + urlObj.pathname + urlObj.search;
|
||||
if (!this?.reactTargetId) {
|
||||
this.reactTargetId = await this._sha256(url_without_hash);
|
||||
}
|
||||
const { data: { reactionsGot } } = await fetch(this.endpoint + '/reactions?' + new URLSearchParams({
|
||||
targetId: this.reactTargetId,
|
||||
}), {
|
||||
method: 'GET',
|
||||
})
|
||||
.then(resp => resp.json())
|
||||
.then(resp => {
|
||||
if (!resp?.data || !Array.isArray(resp?.data?.reactionsGot)) {
|
||||
throw new Error("获取 reactions 出错!")
|
||||
}
|
||||
return resp;
|
||||
});
|
||||
// 获得的 reactions 数量放到 arr 里
|
||||
reactionsGot.forEach(reaction => {
|
||||
arr.forEach(availableReaction => {
|
||||
if (reaction.reaction_name === availableReaction.reaction_name) {
|
||||
availableReaction.count = reaction.count;
|
||||
}
|
||||
});
|
||||
});
|
||||
// 读取 localStorage,获取当前用户点击过的 emoji
|
||||
const storageKey = `meReactedReactions_${this.reactTargetId}`;
|
||||
const meReactedReactions = JSON.parse(window.localStorage.getItem(storageKey) || "[]");
|
||||
// 当前用户点击状态放到 arr
|
||||
meReactedReactions.forEach(reaction_name => {
|
||||
arr.forEach(availableReaction => {
|
||||
if (reaction_name === availableReaction.reaction_name) {
|
||||
availableReaction.meReacted = true;
|
||||
}
|
||||
});
|
||||
});
|
||||
// 初始化 avaiableArray
|
||||
this.availableReactions = arr;
|
||||
}
|
||||
|
||||
_closePopup(e) {
|
||||
console.log(e.target);
|
||||
this.showAvailable = false;
|
||||
}
|
||||
|
||||
async _react(e) {
|
||||
const { name: reaction_name } = e.target.dataset;
|
||||
const reaction = this.availableReactions.find(ele => ele.reaction_name === reaction_name);
|
||||
if (!reaction) {
|
||||
console.error("未知的 reaction!");
|
||||
return
|
||||
}
|
||||
const cancel = reaction?.meReacted ? true : false;
|
||||
const count = Math.max(0, reaction?.count ? reaction.count + (cancel ? -1 : 1) : (cancel ? 0 : 1));
|
||||
const meReacted = !reaction.meReacted;
|
||||
this.availableReactions = this.availableReactions.map(val => {
|
||||
if (val.reaction_name === reaction_name) {
|
||||
val.count = count;
|
||||
val.meReacted = meReacted;
|
||||
}
|
||||
return val
|
||||
});
|
||||
this.showAvailable = false;
|
||||
// 请求接口,更新 react 数量
|
||||
await fetch(this.endpoint + '/reaction?' + new URLSearchParams({
|
||||
targetId: this.reactTargetId,
|
||||
reaction_name,
|
||||
diff: cancel ? -1 : 1
|
||||
}), { method: "PATCH"});
|
||||
// 更新 localStorage
|
||||
const storageKey = `meReactedReactions_${this.reactTargetId}`;
|
||||
const meReactedReactionsSet = new Set(JSON.parse(window.localStorage.getItem(storageKey) || "[]"));
|
||||
if (cancel) {
|
||||
meReactedReactionsSet.delete(reaction_name);
|
||||
} else {
|
||||
meReactedReactionsSet.add(reaction_name);
|
||||
}
|
||||
window.localStorage.setItem(storageKey, JSON.stringify(Array.from(meReactedReactionsSet)));
|
||||
}
|
||||
_showAvailable(e) {
|
||||
e.preventDefault();
|
||||
this.showAvailable = !this.showAvailable;
|
||||
}
|
||||
async _sha256(string) {
|
||||
return Array.from(new Uint8Array(
|
||||
await crypto.subtle.digest('sha-256', new TextEncoder().encode(string))
|
||||
))
|
||||
.map(b => b.toString(16).padStart(2, "0")).join("")
|
||||
}
|
||||
}
|
||||
customElements.define('emoji-reaction', EmojiReaction);
|
||||
|
||||
export { EmojiReaction };
|
||||
@@ -1,95 +0,0 @@
|
||||
/*!
|
||||
*@name jquery.barrager.js
|
||||
*@author yaseng@uauc.net
|
||||
*@url https://github.com/yaseng/jquery.barrager.js
|
||||
*/
|
||||
(function($) {
|
||||
$.fn.barrager = function(barrage) {
|
||||
barrage = $.extend({
|
||||
close:true,
|
||||
bottom: 0,
|
||||
max: 10,
|
||||
speed: 6,
|
||||
color: '#fff',
|
||||
old_ie_color : '#000000'
|
||||
}, barrage || {});
|
||||
|
||||
var time = new Date().getTime();
|
||||
var barrager_id = 'barrage_' + time;
|
||||
var id = '#' + barrager_id;
|
||||
var div_barrager = $("<div class='barrage' id='" + barrager_id + "'></div>").appendTo($(this));
|
||||
var window_height = $(window).height() - 100;
|
||||
var bottom = (barrage.bottom == 0) ? Math.floor(Math.random() * window_height + 40) : barrage.bottom;
|
||||
div_barrager.css("bottom", bottom + "px");
|
||||
div_barrager_box = $("<div class='barrage_box cl'></div>").appendTo(div_barrager);
|
||||
if(barrage.img){
|
||||
|
||||
div_barrager_box.append("<a class='portrait z' href='javascript:;'></a>");
|
||||
var img = $("<img src='' >").appendTo(id + " .barrage_box .portrait");
|
||||
img.attr('src', barrage.img);
|
||||
}
|
||||
|
||||
div_barrager_box.append(" <div class='z p'></div>");
|
||||
if(barrage.close){
|
||||
|
||||
div_barrager_box.append(" <div class='close z'></div>");
|
||||
|
||||
}
|
||||
|
||||
var content = $("<a class='text-overflow'></a>").appendTo(id + " .barrage_box .p");
|
||||
content.attr({
|
||||
'id': barrage.id
|
||||
}).empty().append(barrage.info);
|
||||
if(navigator.userAgent.indexOf("MSIE 6.0")>0 || navigator.userAgent.indexOf("MSIE 7.0")>0 || navigator.userAgent.indexOf("MSIE 8.0")>0 ){
|
||||
|
||||
content.css('color', barrage.old_ie_color);
|
||||
|
||||
}else{
|
||||
|
||||
content.css('color', barrage.color);
|
||||
|
||||
}
|
||||
|
||||
var i = 0;
|
||||
div_barrager.css('margin-right', i);
|
||||
var looper = setInterval(barrager, barrage.speed);
|
||||
|
||||
function barrager() {
|
||||
|
||||
|
||||
var window_width = $(window).width() + 500;
|
||||
if (i < window_width) {
|
||||
i += 1;
|
||||
|
||||
$(id).css('margin-right', i);
|
||||
} else {
|
||||
|
||||
$(id).remove();
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
div_barrager_box.mouseover(function() {
|
||||
clearInterval(looper);
|
||||
});
|
||||
|
||||
div_barrager_box.mouseout(function() {
|
||||
looper = setInterval(barrager, barrage.speed);
|
||||
});
|
||||
|
||||
$(id+'.barrage .barrage_box .close').click(function(){
|
||||
|
||||
$(id).remove();
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
$.fn.barrager.removeAll=function(){
|
||||
$('.barrage').remove();
|
||||
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
@@ -1,93 +0,0 @@
|
||||
var fdata = {
|
||||
apiurl: 'https://circle.usj.cc/',
|
||||
defaultFish: 500,
|
||||
hungryFish: 500,
|
||||
}
|
||||
var randomPostTimes = 0;
|
||||
var randomPostWorking = false;
|
||||
var randomPostTips = ["钓到了绝世好文!", "在河边打了个喷嚏,吓跑了", "你和小伙伴抢夺着", "你击败了巨龙,在巢穴中发现了", "挖掘秦始皇坟时找到了", "在路边闲逛的时候随手买了一个", "从学校班主任那拿来了孩子上课偷偷看的", "你的同桌无情的从你的语文书中撕下了那篇你最喜欢的", "考古学家近日发现了", "外星人降临地球学习地球文化,落地时被你塞了", "从图书馆顶层的隐秘角落里发现了闪着金光的", "徒弟修炼走火入魔,为师立刻掏出了", "在大山中唱山歌,隔壁的阿妹跑来了,带着", "隔壁家的孩子数学考了满分,都是因为看了", "隔壁家的孩子英语考了满分,都是因为看了", "小米研发了全新一代MIX手机,据说灵感", "修炼渡劫成功,还好提前看了", "库克坐上了苹果CEO的宝座,因为他面试的时候看了", "阿里巴巴大喊芝麻开门,映入眼帘的就是", "师傅说练武要先炼心,然后让我好生研读", "科考队在南极大陆发现了被冰封的", "飞机窗户似乎被一张纸糊上了,仔细一看是", "历史上满写的仁义道德四个字,透过字缝里却全是", "十几年前的录音机似乎还能够使用,插上电发现正在播的是", "新版语文书拟增加一篇熟读并背诵的", "经调查,99%的受访者都没有背诵过", "今年的高考满分作文是", "唐僧揭开了佛祖压在五指山上的", "科学家发现能够解决衰老的秘密,就是每日研读", "英特尔发布了全新的至强处理器,其芯片的制造原理都是", "新的iPhone产能很足,新的进货渠道是", "今年亩产突破了八千万斤,多亏了", "陆隐一统天上宗,在无数祖境高手的目光下宣读了", "黑钻风跟白钻风说道,吃了唐僧肉能长生不老,他知道是因为看了", "上卫生间没带纸,直接提裤跑路也不愿意玷污手中", "种下一篇文章就会产生很多很多文章,我种下了", "三十年河东,三十年河西,莫欺我没有看过", "踏破铁血无觅处,得来全靠", "今日双色球中了两千万,预测全靠", "因为卷子上没写名字,老师罚抄", "为了抗议世间的不公,割破手指写下了", "在艺术大街上被贴满了相同的纸,走近一看是", "这区区迷阵岂能难得住我?其实能走出来多亏了", "今日被一篇文章顶上了微博热搜,它是", "你送给乞丐一个暴富秘籍,它是", "UZI一个走A拿下五杀,在事后采访时说他当时回想起了", "科学家解刨了第一个感染丧尸病毒的人,发现丧尸抗体存在于"];
|
||||
var randomPostClick = 0;
|
||||
function fetchRandomPost() {
|
||||
// console.log(fdata.apiurl)
|
||||
|
||||
if (randomPostWorking == false) {
|
||||
randomPostWorking = true;
|
||||
//获取旋转角度
|
||||
let randomRotate = randomPostTimes * 360;
|
||||
let randomPostTipsItem = randomPostTips[Math.floor(Math.random() * randomPostTips.length)];
|
||||
let randomPostLevel = "";
|
||||
if (randomPostTimes > 10000) {
|
||||
randomPostLevel = "愿者上钩";
|
||||
} else if (randomPostTimes > 1000) {
|
||||
randomPostLevel = "俯览天下";
|
||||
} else if (randomPostTimes > 1000) {
|
||||
randomPostLevel = "超越神了";
|
||||
} else if (randomPostTimes > 100) {
|
||||
randomPostLevel = "绝世渔夫";
|
||||
} else if (randomPostTimes > 75) {
|
||||
randomPostLevel = "钓鱼王者";
|
||||
} else if (randomPostTimes > 50) {
|
||||
randomPostLevel = "钓鱼宗师";
|
||||
} else if (randomPostTimes > 20) {
|
||||
randomPostLevel = "钓鱼专家";
|
||||
} else if (randomPostTimes > 5) {
|
||||
randomPostLevel = "钓鱼高手";
|
||||
} else {
|
||||
randomPostLevel = "钓鱼新手";
|
||||
}
|
||||
if (randomPostTimes > 0) {
|
||||
document.querySelector("#random-post").innerHTML = "钓鱼中...";
|
||||
}
|
||||
|
||||
$(".random-post-start").css("transform", "rotate(" + randomRotate + "deg)")
|
||||
// window.setTimeout(function () {
|
||||
// //判断是否饥饿
|
||||
// if (((randomPostClick * fdata.hungryFish + fdata.defaultFish) < randomPostTimes) && (Math.round(Math.random()) == 0)) {
|
||||
// document.getElementById("random-post").innerHTML = "因为只钓鱼不吃鱼,过分饥饿导致本次钓鱼失败..."
|
||||
// randomPostWorking = false;
|
||||
// } else {
|
||||
// var fetchUrl = fdata.apiurl + 'randompost';
|
||||
// document.querySelector("#random-post").innerHTML = "钓鱼中...";
|
||||
// fetch(fetchUrl)
|
||||
// .then(res => res.json())
|
||||
// .then(json => {
|
||||
// var title = json.title;
|
||||
// var link = json.link;
|
||||
// var author = json.author;
|
||||
// if (document.querySelector('#random-post')) {
|
||||
// document.getElementById("random-post").innerHTML = randomPostTipsItem + `来自友链 <b>` + author + `</b> 的文章:<a class="random-friends-post" onclick="randomClickLink()" target="_blank" href="` + link + `" rel="external nofollow">` + title + `</a>`;
|
||||
// }
|
||||
// })
|
||||
// randomPostWorking = false;
|
||||
// }
|
||||
// randomPostTimes += 1;
|
||||
// }, 2000)
|
||||
// 判断是否饿不饿
|
||||
//判断是否饥饿
|
||||
if (((randomPostClick * fdata.hungryFish + fdata.defaultFish) < randomPostTimes) && (Math.round(Math.random()) == 0)) {
|
||||
document.getElementById("random-post").innerHTML = "因为只钓鱼不吃鱼,过分饥饿导致本次钓鱼失败..."
|
||||
randomPostWorking = false;
|
||||
} else {
|
||||
var fetchUrl = fdata.apiurl + 'randompost';
|
||||
document.querySelector("#random-post").innerHTML = "钓鱼中...";
|
||||
fetch(fetchUrl)
|
||||
.then(res => res.json())
|
||||
.then(json => {
|
||||
var title = json.title;
|
||||
var link = json.link;
|
||||
var author = json.author;
|
||||
if (document.querySelector('#random-post')) {
|
||||
document.getElementById("random-post").innerHTML = randomPostTipsItem + `来自友链 <b>` + author + `</b> 的文章:<a class="random-friends-post" onclick="randomClickLink()" target="_blank" href="` + link + `" rel="external nofollow">` + title + `</a>`;
|
||||
}
|
||||
})
|
||||
randomPostWorking = false;
|
||||
}
|
||||
randomPostTimes += 1;
|
||||
// 结束
|
||||
}
|
||||
}
|
||||
|
||||
//添加点击统计
|
||||
function randomClickLink() {
|
||||
randomPostClick += 1;
|
||||
}
|
||||
@@ -1,706 +0,0 @@
|
||||
//首页调用
|
||||
.momos-sswrap {
|
||||
margin-top: 20px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
||||
grid-gap: 15px; /* 中间空10px间距 */
|
||||
}
|
||||
.memos_diaoyong,.bb-list-li,.memos-random-background,.memos-search-all{
|
||||
border-radius:4px;
|
||||
background: var(--bankuai-color) !important;
|
||||
padding:20px;
|
||||
transition: all .3s cubic-bezier(0,0,.5,1);
|
||||
}
|
||||
.memos_diaoyong:hover,.bb-list-li:hover{
|
||||
box-shadow: 2px 4px 16px rgba(0,0,0,.05);
|
||||
}
|
||||
.memos-diaoyong-tag .memos-tag-dg{
|
||||
cursor: auto;
|
||||
}
|
||||
.memos-diaoyong-tag .memos-tag-dg:hover{
|
||||
text-decoration: none;
|
||||
}
|
||||
.memos_diaoyong_from a{
|
||||
color: #666;
|
||||
font-family: var(--font-family-code);
|
||||
}
|
||||
.memos-logo,.memos-logo2{
|
||||
padding-top: 7px;
|
||||
}
|
||||
.memos-logo img,.memos-logo2 img{
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.talks_comments{
|
||||
margin-left: auto;
|
||||
}
|
||||
.talks_comments a{
|
||||
display: flex;
|
||||
font-size: 14px;
|
||||
color: #999;
|
||||
text-decoration: none;
|
||||
cursor:pointer;
|
||||
}
|
||||
.talks_comments a:hover{
|
||||
text-decoration: underline;
|
||||
}
|
||||
.comment-s{
|
||||
margin-right: 4px;
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
}
|
||||
.talks_comments svg {
|
||||
fill: #c0c0c0;
|
||||
margin-left: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 5.5px;
|
||||
}
|
||||
.memos_diaoyong_top{
|
||||
margin-top: 15px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.memos_diaoyong_from,.memos_diaoyong_time,.memos_diaoyong_laiz{
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
}
|
||||
.memos_diaoyong_laiz a{
|
||||
color: #999;
|
||||
}
|
||||
.memos_diaoyong_info p{
|
||||
font-size: 16px;
|
||||
color: var(--text-content-color);
|
||||
line-height:1.8;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
//唠叨页
|
||||
#bber,.memos-header,.bb-load{
|
||||
max-width: 800px;
|
||||
margin: auto;
|
||||
}
|
||||
.bb-list-li,.memos-search-all{
|
||||
box-shadow: 2px 4px 16px rgba(0,0,0,.05);
|
||||
}
|
||||
.bb-list-ul{
|
||||
display: grid;
|
||||
gap: 20px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.datacont p{
|
||||
font-size:16px;
|
||||
line-height:1.6;
|
||||
/*margin:0;*/
|
||||
clear: both;
|
||||
margin-top: 32px!important;
|
||||
/*text-indent: 2em;*/
|
||||
margin-bottom:4px;
|
||||
}
|
||||
.datacont a{
|
||||
color: var(--text-highlight-color);
|
||||
}
|
||||
.resimg figure{
|
||||
margin:0;
|
||||
margin-bottom: -4px;
|
||||
}
|
||||
.resimg{
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
margin-top: 5px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.gallery-thumbnail img{
|
||||
width: 100% !important;
|
||||
height: 170px !important;
|
||||
object-fit: cover;
|
||||
border-radius:4px;
|
||||
transition: transform 0.3s ease;
|
||||
cursor: zoom-in;
|
||||
margin: 0 !important;
|
||||
}
|
||||
.resimg img:hover{
|
||||
transform: scale(1.03);
|
||||
}
|
||||
.grid-3,.grid-5,.grid-6,.grid-7,.grid-8,.grid-9{
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
.grid-3 img,.grid-5 img,.grid-6 img,.grid-7 img,.grid-8 img,.grid-9 img{
|
||||
height: 140px !important;
|
||||
}
|
||||
.memos-tag-wz{
|
||||
float: left;
|
||||
margin-top: 6px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.memos-tag-dg,.memos-tag-sc{
|
||||
display: inline;
|
||||
padding: 1px 2px 2px 4px;
|
||||
margin-right: 8px;
|
||||
color: #999;
|
||||
background: #f2f2f2;
|
||||
font-size: 14px;
|
||||
border-radius: 4px;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
}
|
||||
#tag-list,.memos-search-all {
|
||||
max-width: 800px;
|
||||
margin: auto;
|
||||
padding: 5px;
|
||||
}
|
||||
#tag-list-all{
|
||||
margin-top: 10px;
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.memos-tag-all{
|
||||
padding: 6px;
|
||||
color: #999;
|
||||
background: #f2f2f2;
|
||||
font-size: 16px;
|
||||
border-radius:4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.memos-tag-sc-2{
|
||||
align-items: center;
|
||||
display: flex;
|
||||
margin-top: 20px;
|
||||
font-size: 16px;
|
||||
color: #999;
|
||||
}
|
||||
.memos-tag-sc{
|
||||
margin-left: 10px;
|
||||
font-size: 16px !important;
|
||||
color: #666 !important;
|
||||
background: #e5e5e5 !important;
|
||||
padding: 8px !important;
|
||||
}
|
||||
.memos-tag-sc svg{
|
||||
width: 16px;
|
||||
margin-left: 6px;
|
||||
vertical-align: middle;
|
||||
margin-top: -4px;
|
||||
}
|
||||
.memos-tag-sc:hover{
|
||||
text-decoration: line-through;
|
||||
}
|
||||
.memos-tag-dg:hover,.memos-tag-all:hover{
|
||||
text-decoration: underline;
|
||||
}
|
||||
.memos-pl{
|
||||
display: flex;
|
||||
margin-bottom: -5px;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.bb-load button{
|
||||
border: none;
|
||||
background: #fff;
|
||||
cursor: pointer;
|
||||
color: var(--text-highlight-color);
|
||||
border-radius:4px;
|
||||
margin-top: 20px;
|
||||
padding: 10px 30px;
|
||||
font-family: var(--font-family-title);
|
||||
font-size: 16px;
|
||||
}
|
||||
.bb-load button:hover{
|
||||
opacity: 0.8;
|
||||
transition: opacity .3s ease-in-out;
|
||||
}
|
||||
pre{
|
||||
border-radius: 4px;
|
||||
line-height: 1.8;
|
||||
background: var(--background-color);
|
||||
padding: 20px;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
pre code{
|
||||
background: transparent;
|
||||
font-size: 14px;
|
||||
padding: 0;
|
||||
color: #666;
|
||||
border: none;
|
||||
margin: 0;
|
||||
}
|
||||
code{
|
||||
background: #ffe9ef;
|
||||
border: 1px solid #ffd4de;
|
||||
border-radius: 4px;
|
||||
font-size: 16px;
|
||||
padding: 2px 6px 2px 6px;
|
||||
font-family: var(--font-family-code);
|
||||
margin: 0 4px 0 4px;
|
||||
}
|
||||
.memos_diaoyong code{
|
||||
font-size: 14px;
|
||||
padding: 3px 6px 2px 6px;
|
||||
}
|
||||
blockquote p{
|
||||
background: var(--background-color);
|
||||
border-radius: 0 4px 4px 0;
|
||||
padding: 10px;
|
||||
font-size: 16px !important;
|
||||
line-height: 1.6 !important;
|
||||
border-left: 4px solid #bfbfbf;
|
||||
color: #666 !important;
|
||||
margin: -10px -40px 0 -40px !important;
|
||||
}
|
||||
|
||||
//memos页发布唠叨
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
.load-memos-editor{
|
||||
/*color: var(--text-content-color);*/
|
||||
/*cursor: pointer;*/
|
||||
/*font-size: 40px;*/
|
||||
/*font-family: var(--font-family-title);*/
|
||||
/*margin-bottom: 10px;*/
|
||||
/*display: inline-block;*/
|
||||
}
|
||||
.d-flex {
|
||||
display: -ms-flexbox !important;
|
||||
display: flex !important;
|
||||
}
|
||||
.d-none {
|
||||
display: none !important;
|
||||
}
|
||||
.memos-editor-body{
|
||||
border-radius:4px;
|
||||
background: var(--bankuai-color);
|
||||
transition: all .3s cubic-bezier(0,0,.5,1);
|
||||
padding: 20px;
|
||||
box-shadow: 2px 4px 16px rgba(0,0,0,.05);
|
||||
}
|
||||
.memos-editor-content .memos-editor-textarea{
|
||||
border: transparent;
|
||||
border-radius:4px;
|
||||
line-height:1.6;
|
||||
min-height: 80px;
|
||||
overflow-x:hidden;
|
||||
overflow-y:clip;
|
||||
width:100%;
|
||||
outline:0.5px solid transparent;
|
||||
resize:none;
|
||||
background: transparent;
|
||||
font-family: var(--font-family-paragraph);
|
||||
font-size: 16px;
|
||||
}
|
||||
.memos-editor-tools{
|
||||
margin-top:4px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.memos-editor-tools .action-btn{
|
||||
margin-right: 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.p-2{
|
||||
margin-left: 15px;
|
||||
}
|
||||
.memos-editor-tools .memos-tag-list{
|
||||
display:flex;
|
||||
flex-wrap: wrap;//宽度显示不下自动换行
|
||||
margin-top: 15px;
|
||||
grid-gap: 15px;
|
||||
|
||||
}
|
||||
.memos-editor-tools .memos-tag{
|
||||
cursor: pointer;
|
||||
}
|
||||
.memos-editor-tools .memos-tag a{
|
||||
color: #999;
|
||||
}
|
||||
.editor-selector {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
.editor-selector select {
|
||||
appearance: none; /* 隐藏原生控件样式 */
|
||||
border: 0.5px solid #dadada;
|
||||
border-radius: 4px;
|
||||
padding: 8px 20px 8px 6px;
|
||||
background: transparent;
|
||||
color: #666;
|
||||
font-family: var(--font-family-paragraph);
|
||||
font-size: 14px;
|
||||
outline:0.5px solid transparent;
|
||||
}
|
||||
.editor-selector::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 8px; /* 调整箭头的位置,这里示例将箭头靠右偏移8像素 */
|
||||
width: 0;
|
||||
border-style: solid;
|
||||
border-width: 4px 4px 0 4px; /* 控制箭头的大小和形状 */
|
||||
border-color: #999 transparent transparent transparent; /* 控制箭头的颜色 */
|
||||
transform: translateY(-50%); /* 将箭头垂直居中对齐 */
|
||||
}
|
||||
.submit-memos-btn,.edit-memos-btn{
|
||||
background: transparent;
|
||||
border: 0.5px solid #dadada;
|
||||
cursor: pointer;
|
||||
color: var(--text-highlight-color);
|
||||
border-radius:4px;
|
||||
padding: 6px 15px 6px 15px;
|
||||
}
|
||||
.cancel-edit-btn{
|
||||
padding: 6px 15px 6px 15px;
|
||||
cursor: pointer;
|
||||
border: 0.5px solid #FFF;
|
||||
margin-right: 8px;
|
||||
color: #999;
|
||||
}
|
||||
.submit-memos-btn:hover,.memos-open-api-submit:hover,.edit-memos-btn:hover,.cancel-edit-btn:hover{
|
||||
opacity: 0.8;
|
||||
transition: opacity .3s ease-in-out;
|
||||
}
|
||||
.memos-editor-footer{
|
||||
display:flex;
|
||||
align-items:center;
|
||||
}
|
||||
.justify-content-end {
|
||||
margin-left: auto;
|
||||
}
|
||||
.memos-image-list{
|
||||
cursor: pointer;
|
||||
gap: 15px;
|
||||
color: #999;
|
||||
margin-bottom: 15px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.memos-img-edit{
|
||||
background: #f5f5f5;
|
||||
padding: 6px;
|
||||
border-radius:4px;
|
||||
}
|
||||
.memos-img-edit:hover{
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
//填写api样式
|
||||
.memos-editor-option{
|
||||
display: flex;
|
||||
}
|
||||
.memos-open-api-input{
|
||||
border: transparent;
|
||||
padding:6px 0 6px 0;
|
||||
width:100%;
|
||||
outline:0.5px solid transparent;
|
||||
margin-right: 10px;
|
||||
background: transparent;
|
||||
font-size: 16px;
|
||||
font-family: var(--font-family-code);
|
||||
}
|
||||
.memos-open-api-submit{
|
||||
background: var(--text-highlight-color);
|
||||
cursor: pointer;
|
||||
color: #fff;
|
||||
border-radius:4px;
|
||||
width: 100px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
//随机memos
|
||||
.memos-random-background{
|
||||
margin-top: 15px;
|
||||
}
|
||||
.memos-random{
|
||||
list-style-type: none;
|
||||
}
|
||||
//唠叨编辑
|
||||
.memos-edit{
|
||||
margin-left: auto;
|
||||
}
|
||||
.memos-menu{
|
||||
margin-left: 40px;
|
||||
color: #fff;
|
||||
}
|
||||
.memos-menu-d {
|
||||
width: 60px;
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
background-color: #fff;
|
||||
padding: 8px 0 8px 0;
|
||||
box-shadow: 2px 4px 16px rgba(0,0,0,.15);
|
||||
text-align: center;
|
||||
border-radius:4px;
|
||||
display: none;
|
||||
}
|
||||
.memos-edit:hover .memos-menu-d {
|
||||
display: block;
|
||||
}
|
||||
.edit-btn,.archive-btn,.delete-btn {
|
||||
cursor: pointer;
|
||||
line-height: 1.8;
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
}
|
||||
.edit-btn:hover,.archive-btn:hover,.delete-btn:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.delete-btn{
|
||||
color: #c70000 !important;
|
||||
}
|
||||
.edit-memos{
|
||||
display: flex;
|
||||
}
|
||||
|
||||
// 页面宽度小于700样式
|
||||
@media (max-width:700px){
|
||||
.resimg{
|
||||
width: 100% !important;
|
||||
}
|
||||
.gallery-thumbnail img{
|
||||
height: 140px !important;
|
||||
}
|
||||
.grid-3 img,.grid-5 img,.grid-6 img,.grid-7 img,.grid-8 img,.grid-9 img{
|
||||
height: 100px !important;
|
||||
}
|
||||
.resimg figure{
|
||||
margin-bottom: -8px;
|
||||
}
|
||||
}
|
||||
// 页面宽度大于700样式
|
||||
//首页图片样式
|
||||
@media (min-width:700px){
|
||||
.memos_diaoyong .resimg{
|
||||
width: 100% !important;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
.memos_diaoyong .gallery-thumbnail img{
|
||||
height: 90px !important;
|
||||
}
|
||||
.memos_diaoyong .grid-3,.memos_diaoyong .grid-5,.memos_diaoyong .grid-6,.memos_diaoyong .grid-7,.memos_diaoyong grid-8,.memos_diaoyong .grid-9{
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
.memos_diaoyong .grid-3 img,.memos_diaoyong .grid-5 img,.memos_diaoyong .grid-6 img,.memos_diaoyong .grid-7 img,.memos_diaoyong .grid-8 img,.memos_diaoyong .grid-9 img{
|
||||
height: 80px !important;
|
||||
}
|
||||
.memos_diaoyong .resimg figure{
|
||||
margin-bottom: -8px;
|
||||
}
|
||||
}
|
||||
// 夜间模式页面样式
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.bb-timeline ul li {
|
||||
background: var(--background-dark-color) !important;
|
||||
}
|
||||
.memos-tag-dg,.memos-tag-sc,.memos-tag-all{
|
||||
background: #332E2F;
|
||||
}
|
||||
.memos-tag-sc-2{
|
||||
color: #666;
|
||||
}
|
||||
.memos-tag-sc{
|
||||
color: #999 !important;
|
||||
background: #332E2F !important;
|
||||
}
|
||||
.bb-load button{
|
||||
background:var(--background-dark-color);
|
||||
}
|
||||
.memos_diaoyong,.bb-list-li,.memos-random-background,.memos-search-all{
|
||||
background: var(--background-dark-color) !important;
|
||||
}
|
||||
.memos_diaoyong_from a{
|
||||
color: #999;
|
||||
}
|
||||
.memos_diaoyong_time, .memos_diaoyong_laiz a,.memos_diaoyong_from,.talks_comments a,.comment-s{
|
||||
color: #666;
|
||||
}
|
||||
.memos_diaoyong_info p, .memos_diaoyong_info a {
|
||||
color: var(--text-content-dark-color) !important;
|
||||
}
|
||||
.talks_comments svg {
|
||||
fill: #666;
|
||||
}
|
||||
.reactions {
|
||||
--start-smile-svg-fill-color: #666 !important;
|
||||
--start-smile-border-color: #393939;
|
||||
--start-smile-border-color-hover:#535353 !important;
|
||||
--start-smile-bg-color:transparent;
|
||||
}
|
||||
pre,blockquote p{
|
||||
background: #2c2829;
|
||||
}
|
||||
pre code{
|
||||
color: #999;
|
||||
}
|
||||
code{
|
||||
background: #2c2829;
|
||||
border: 1px solid #2c2829;
|
||||
color: var(--text-highlight-color);
|
||||
}
|
||||
blockquote p{
|
||||
border-left: 4px solid #5f5f5f;
|
||||
color: #888 !important;
|
||||
}
|
||||
.memos_diaoyong_info blockquote p{
|
||||
color: #888 !important;
|
||||
}
|
||||
.bb-list-li,.memos-editor-body,.memos-search-all{
|
||||
box-shadow: 2px 4px 16px rgba(0,0,0,.3);
|
||||
}
|
||||
//memos页发布唠叨
|
||||
.load-memos-editor,.memos-open-api-input{
|
||||
color: var(--text-content-dark-color) !important;
|
||||
}
|
||||
.memos-editor-body{
|
||||
background: var(--background-dark-color) !important;
|
||||
}
|
||||
.editor-selector select {
|
||||
border: 0.5px solid #454545 !important;
|
||||
color: #999 !important;
|
||||
}
|
||||
.memos-editor-content .memos-editor-textarea{
|
||||
color: var(--text-content-dark-color);
|
||||
}
|
||||
.submit-memos-btn,.edit-memos-btn{
|
||||
border: solid #454545 0.5px !important;
|
||||
}
|
||||
.memos-open-api-submit{
|
||||
background: #1A1718 !important;
|
||||
color: var(--text-highlight-color) !important;
|
||||
}
|
||||
.edit-btn,.archive-btn,.delete-btn,.cancel-edit-btn,.memos-image-list{
|
||||
color: #666;
|
||||
}
|
||||
.memos-menu{
|
||||
color: #201d1e;
|
||||
}
|
||||
.memos-menu-d,.memos-img-edit{
|
||||
background-color: #282527;
|
||||
}
|
||||
.cancel-edit-btn{
|
||||
border: 0.5px solid #201d1e;
|
||||
}
|
||||
//表情
|
||||
.emoji-item:hover{
|
||||
background: #3a3a3a !important;
|
||||
}
|
||||
// 搜索
|
||||
#memos-search-input{
|
||||
color: var(--text-content-dark-color) !important;
|
||||
}
|
||||
.memos-search ::placeholder {
|
||||
color: #666 !important;
|
||||
}
|
||||
.memos-search svg{
|
||||
color: #666 !important;
|
||||
}
|
||||
|
||||
// 标签自动补全
|
||||
#memos-tag-menu {
|
||||
background-color: #282527 !important;
|
||||
box-shadow: 2px 4px 16px rgba(0,0,0,.3) !important;
|
||||
color: #888 !important;
|
||||
}
|
||||
.tag-option.selected {
|
||||
background-color: #3e3e3e !important;
|
||||
color: #bdbdbd !important;
|
||||
}
|
||||
}
|
||||
|
||||
//表情
|
||||
.emoji-selector{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.emoji-item {
|
||||
padding: 4px;
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
.emoji-item:hover{
|
||||
background: #ebebeb;
|
||||
border-radius:4px;
|
||||
}
|
||||
|
||||
// memoslike
|
||||
.reactions {
|
||||
--start-smile-svg-fill-color: #999;
|
||||
--start-smile-border-color-hover:#afafaf;
|
||||
}
|
||||
|
||||
// memos搜索
|
||||
.memos-search-all{
|
||||
margin-top: 20px;
|
||||
}
|
||||
.memos-search {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
#memos-search-input{
|
||||
border: transparent;
|
||||
background: transparent;
|
||||
/*padding: 10px;*/
|
||||
font-size: 16px;
|
||||
resize: none;
|
||||
outline: 0.5px solid transparent;
|
||||
color: var(--text-content-color);
|
||||
width: 100%;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.memos-search ::placeholder {
|
||||
color: #b8b8b8;
|
||||
}
|
||||
.memos-search svg{
|
||||
width: 20px;
|
||||
color: #b8b8b8;
|
||||
margin-left: 15px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
// 标签自动补全
|
||||
|
||||
#memos-tag-menu {
|
||||
position: absolute;
|
||||
background-color: white;
|
||||
z-index: 100;
|
||||
padding: 5px;
|
||||
box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.15);
|
||||
color: #999;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
column-count: 3; /* 每列显示的数量 */
|
||||
column-gap: 4; /* 列之间的间距 */
|
||||
}
|
||||
#memos-tag-menu:empty{
|
||||
display: none;
|
||||
}
|
||||
.tag-option {
|
||||
padding: 6px 10px 6px 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tag-option:hover{
|
||||
text-decoration: underline;
|
||||
}
|
||||
.tag-option.selected {
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 4px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.artalk.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.single-content ul li {
|
||||
line-height: 100% !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>memos-code-s</title><g fill="#888" fill-rule="evenodd"><path fill-rule="nonzero" d="M12.79 0C17.828 0 20 2.173 20 7.21v5.58c0 5.037-2.173 7.21-7.21 7.21H7.21C2.172 20 0 17.827 0 12.79V7.21C0 2.172 2.173 0 7.21 0h5.58Zm0 1.395H7.21c-4.267 0-5.815 1.548-5.815 5.814v5.582c0 4.266 1.548 5.814 5.814 5.814h5.582c4.266 0 5.814-1.548 5.814-5.814V7.209c0-4.266-1.548-5.814-5.814-5.814Z"/><path d="M11.633 7.356a.575.575 0 0 1 .83.22l2.087 4.135c.166.329.06.73-.248.933a.575.575 0 0 1-.83-.22l-2.087-4.135a.726.726 0 0 1 .248-.933ZM5.698 7.356a.575.575 0 0 1 .83.22l2.087 4.135c.166.329.059.73-.248.933a.575.575 0 0 1-.83-.22L5.45 8.288a.726.726 0 0 1 .248-.933Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 757 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>memos-emoji</title><g fill="none" fill-rule="evenodd"><path fill="#888" fill-rule="nonzero" d="M12.79 0C17.828 0 20 2.173 20 7.21v5.58c0 5.037-2.173 7.21-7.21 7.21H7.21C2.172 20 0 17.827 0 12.79V7.21C0 2.172 2.173 0 7.21 0h5.58Zm0 1.395H7.21c-4.267 0-5.815 1.548-5.815 5.814v5.582c0 4.266 1.548 5.814 5.814 5.814h5.582c4.266 0 5.814-1.548 5.814-5.814V7.209c0-4.266-1.548-5.814-5.814-5.814Z"/><path stroke="#888" stroke-dasharray="0 0" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.3" d="M12.8 7.51c-.663 0-1.2-.562-1.2-1.255 0-.693.537-1.255 1.2-1.255.663 0 1.2.562 1.2 1.255 0 .693-.537 1.255-1.2 1.255ZM7.2 7.51c-.663 0-1.2-.562-1.2-1.255C6 5.562 6.537 5 7.2 5c.663 0 1.2.562 1.2 1.255 0 .693-.537 1.255-1.2 1.255ZM12.88 10.481c.4 0 .72.335.72.753C13.6 13.318 11.992 15 10 15s-3.6-1.682-3.6-3.766c0-.418.32-.753.72-.753h5.76Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 947 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>memos-code</title><g fill="#888" fill-rule="nonzero"><path d="M12.79 0C17.828 0 20 2.173 20 7.21v5.58c0 5.037-2.173 7.21-7.21 7.21H7.21C2.172 20 0 17.827 0 12.79V7.21C0 2.172 2.173 0 7.21 0h5.58Zm0 1.395H7.21c-4.267 0-5.815 1.548-5.815 5.814v5.582c0 4.266 1.548 5.814 5.814 5.814h5.582c4.266 0 5.814-1.548 5.814-5.814V7.209c0-4.266-1.548-5.814-5.814-5.814Z"/><path d="M7.274 6.688a.698.698 0 0 1 .987.987L5.945 9.99l2.316 2.325a.698.698 0 1 1-.987.987l-2.316-2.317a1.41 1.41 0 0 1 0-1.982l2.316-2.316ZM11.74 6.688a.698.698 0 0 1 .986 0l2.316 2.316a1.41 1.41 0 0 1 0 1.982l-2.316 2.317a.698.698 0 0 1-.987-.987L14.056 10l-2.317-2.325a.698.698 0 0 1 0-.987Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 758 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>memos_img_quote</title><g fill="#888" fill-rule="nonzero"><path d="M8 4.25a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5Zm0 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5ZM14.603 9.86c.965-.813 2.482-.813 3.447 0l1.433 1.208a.75.75 0 1 1-.966 1.147l-1.434-1.208c-.407-.343-1.107-.343-1.514 0l-3.658 3.081c-.965.814-2.481.814-3.453-.005l-.284-.245c-.369-.311-1.006-.344-1.426-.068l-4.335 2.856a.75.75 0 1 1-.826-1.252l4.336-2.857c.97-.639 2.338-.568 3.224.18l.284.244c.407.343 1.107.343 1.514 0l3.658-3.08Z"/><path d="M10.93 0a.698.698 0 1 1 0 1.395H7.21c-4.267 0-5.815 1.548-5.815 5.814v5.582c0 4.266 1.548 5.814 5.814 5.814h5.582c4.266 0 5.814-1.548 5.814-5.814V8.14a.698.698 0 0 1 1.395 0v4.65c0 5.037-2.173 7.21-7.21 7.21H7.21C2.172 20 0 17.827 0 12.79V7.21C0 2.172 2.173 0 7.21 0h3.72Z"/><path d="M19.25 2.75a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5Z"/><path d="M16.5 0a.75.75 0 0 1 .75.75v5.5a.75.75 0 0 1-1.5 0V.75A.75.75 0 0 1 16.5 0Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 1.0 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>memos_img_up</title><g fill="#888" fill-rule="nonzero"><path d="M8 4.25a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5Zm0 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5ZM14.603 9.86c.965-.813 2.482-.813 3.447 0l1.433 1.208a.75.75 0 1 1-.966 1.147l-1.434-1.208c-.407-.343-1.107-.343-1.514 0l-3.658 3.081c-.965.814-2.481.814-3.453-.005l-.284-.245c-.369-.311-1.006-.344-1.426-.068l-4.335 2.856a.75.75 0 1 1-.826-1.252l4.336-2.857c.97-.639 2.338-.568 3.224.18l.284.244c.407.343 1.107.343 1.514 0l3.658-3.08Z"/><path d="M10.93 0a.698.698 0 1 1 0 1.395H7.21c-4.267 0-5.815 1.548-5.815 5.814v5.582c0 4.266 1.548 5.814 5.814 5.814h5.582c4.266 0 5.814-1.548 5.814-5.814V8.14a.698.698 0 0 1 1.395 0v4.65c0 5.037-2.173 7.21-7.21 7.21H7.21C2.172 20 0 17.827 0 12.79V7.21C0 2.172 2.173 0 7.21 0h3.72Z"/><path d="M15.406.987c0-.623.734-.935 1.164-.495l1.818 1.867a.713.713 0 0 1 0 .99.67.67 0 0 1-.964 0l-.655-.673v3.91a.694.694 0 0 1-.589.694l-.093.006a.691.691 0 0 1-.681-.7V.987Z"/><path d="M15.605.492a.67.67 0 0 1 .965 0 .713.713 0 0 1 0 .99L14.75 3.35a.67.67 0 0 1-.964 0 .713.713 0 0 1 0-.99L15.605.492Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 1.2 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>memos-link</title><g fill="#888" fill-rule="nonzero"><path d="M12.79 0C17.828 0 20 2.173 20 7.21v5.58c0 5.037-2.173 7.21-7.21 7.21H7.21C2.172 20 0 17.827 0 12.79V7.21C0 2.172 2.173 0 7.21 0h5.58Zm0 1.395H7.21c-4.267 0-5.815 1.548-5.815 5.814v5.582c0 4.266 1.548 5.814 5.814 5.814h5.582c4.266 0 5.814-1.548 5.814-5.814V7.209c0-4.266-1.548-5.814-5.814-5.814Z"/><path d="M10.045 8.969a.698.698 0 0 1 .986 0 3.733 3.733 0 0 1 0 5.286 3.738 3.738 0 0 1-5.284-5.287.698.698 0 0 1 .984.988 2.342 2.342 0 1 0 3.315 3.31 2.337 2.337 0 0 0-.001-3.31.698.698 0 0 1 0-.987Z"/><path d="M8.738 5.787a3.872 3.872 0 0 1 5.475-.003 3.871 3.871 0 0 1 .003 5.476.698.698 0 0 1-.99-.984 2.476 2.476 0 1 0-3.502-.001.698.698 0 0 1-.985.986 3.876 3.876 0 0 1-.001-5.474Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 851 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>memos_user</title><g fill="#888" fill-rule="nonzero"><path d="M12.79 0C17.828 0 20 2.173 20 7.21v5.58c0 5.037-2.173 7.21-7.21 7.21H7.21C2.172 20 0 17.827 0 12.79V7.21C0 2.172 2.173 0 7.21 0h5.58Zm0 1.395H7.21c-4.267 0-5.815 1.548-5.815 5.814v5.582c0 4.266 1.548 5.814 5.814 5.814h5.582c4.266 0 5.814-1.548 5.814-5.814V7.209c0-4.266-1.548-5.814-5.814-5.814Z"/><path d="M9.277 4c1.696 0 3.065 1.418 3.065 3.16 0 1.743-1.369 3.16-3.065 3.16S6.21 8.904 6.21 7.16C6.211 5.418 7.581 4 9.277 4Zm0 1.282c-.991 0-1.8.838-1.8 1.878s.809 1.878 1.8 1.878c.99 0 1.8-.837 1.8-1.878 0-1.04-.81-1.878-1.8-1.878ZM8.812 10.794c.563 0 1.112.083 1.631.245a.643.643 0 0 1 .42.801.631.631 0 0 1-.792.425 4.228 4.228 0 0 0-1.259-.189c-1.981 0-3.546 1.32-3.546 2.886a.637.637 0 0 1-.633.641.637.637 0 0 1-.633-.641c0-2.332 2.178-4.168 4.812-4.168ZM13.39 11.31c.633-.646 1.398-.726 2.105-.006.71.724.635 1.504 0 2.151l-2.024 2.06a1.26 1.26 0 0 1-.689.362l-.776.112c-.671.097-1.2-.442-1.104-1.124l.11-.802c.037-.237.17-.506.339-.677l2.038-2.076Zm1.411.7c-.231-.236-.262-.233-.497.006l-2.303 2.348-.089.595.569-.081c-.01.001.004-.007.012-.01l2.308-2.346c.235-.239.238-.27 0-.512Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 1.2 KiB |
@@ -1 +0,0 @@
|
||||
"use strict";function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}!function(o,t){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(o=o||self,o.cocoMessage=t())}(void 0,function(){function o(o,t){var e=document.createElement("div");for(var n in o){var s=o[n];"className"==n?(n="class",e.setAttribute(n,s)):"_"==n[0]&&e.addEventListener(n.slice(1),s)}if("string"==typeof t)e.innerHTML=t;else if("object"==_typeof(t)&&t.tagName)e.appendChild(t);else if(t)for(var i=0;i<t.length;i++){var r=t[i];e.appendChild(r)}return e}function t(o,t){for(var e in t)o.style[e]=t[e];""===o.getAttribute("style")&&o.removeAttribute("style")}function e(o,t){var e=o.className||"";if(!n(e,t)){var s=e.split(/\s+/);s.push(t),o.className=s.join(" ")}}function n(o,t){return o.indexOf(t)>-1}function s(o,t){var e=o.className||"";if(n(e,t)){var s=e.split(/\s+/),i=s.indexOf(t);s.splice(i,1),o.className=s.join(" ")}""===o.className&&o.removeAttribute("class")}function i(){return r(arguments,"info")}function r(o,t){var e={};for(var n in h)e[n]=h[n];for(var s=0;s<o.length;s++){var i=o[s];void 0!==i&&("string"==typeof i||"object"==_typeof(i)?e.msg=i:"boolean"==typeof i?e.showClose=i:"function"==typeof i?e.onClose=i:"number"==typeof i&&(e.duration=i))}return e.type=t,a(e)}function a(e){var n=e.type,i=e.duration,r=e.msg,a=e.showClose,d=e.onClose,g=0===i,p=l();"loading"==n&&(r=""===r?"正在加载":r,g=a,i=0);var h=o({className:"coco-msg-wrapper"},[o({className:"coco-msg coco-msg-fade-in ".concat(n)},[o({className:"coco-msg-icon"},p[n]),o({className:"coco-msg-content"},r),o({className:"coco-msg-wait ".concat(g?"coco-msg-pointer":"coco-msg-wait-hidden"),_click:function(){f(h,d)}},c(g)||"")])]);return 0!==i&&setTimeout(function(){f(h,d)},i),m.children.length||document.body.appendChild(m),m.appendChild(h),t(h,{height:h.offsetHeight+"px"}),setTimeout(function(){s(h.children[0],"coco-msg-fade-in")},300),function(){f(h,d)}}function c(o){return o?'<svg class="coco-msg-close" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5514"><path d="M810 274l-238 238 238 238-60 60-238-238-238 238-60-60 238-238-238-238 60-60 238 238 238-238z" p-id="5515"></path></svg>':""}function f(o,n){o&&(t(o,{padding:0,height:0}),e(o.children[0],"coco-msg-fade-out"),n&&n(),setTimeout(function(){if(o){for(var t=!1,e=0;e<m.children.length;e++)m.children[e]===o&&(t=!0);t&&d(o),o=null,m.children.length||t&&d(m)}},300))}function l(){return{info:'\n <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3250"><path d="M469.333333 341.333333h85.333334v469.333334H469.333333z" fill="#ffffff" p-id="3251"></path><path d="M469.333333 213.333333h85.333334v85.333334H469.333333z" fill="#ffffff" p-id="3252"></path><path d="M384 341.333333h170.666667v85.333334H384z" fill="#ffffff" p-id="3253"></path><path d="M384 725.333333h256v85.333334H384z" fill="#ffffff" p-id="3254"></path></svg>\n ',success:'\n <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1807"><path d="M455.42 731.04c-8.85 0-17.75-3.05-24.99-9.27L235.14 553.91c-16.06-13.81-17.89-38.03-4.09-54.09 13.81-16.06 38.03-17.89 54.09-4.09l195.29 167.86c16.06 13.81 17.89 38.03 4.09 54.09-7.58 8.83-18.31 13.36-29.1 13.36z" p-id="1808" fill="#ffffff"></path><path d="M469.89 731.04c-8.51 0-17.07-2.82-24.18-8.6-16.43-13.37-18.92-37.53-5.55-53.96L734.1 307.11c13.37-16.44 37.53-18.92 53.96-5.55 16.43 13.37 18.92 37.53 5.55 53.96L499.67 716.89c-7.58 9.31-18.64 14.15-29.78 14.15z" p-id="1809" fill="#ffffff"></path></svg>\n ',warning:'\n <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18912"><path d="M468.114286 621.714286c7.314286 21.942857 21.942857 36.571429 43.885714 36.571428s36.571429-14.628571 43.885714-36.571428L585.142857 219.428571c0-43.885714-36.571429-73.142857-73.142857-73.142857-43.885714 0-73.142857 36.571429-73.142857 80.457143l29.257143 394.971429zM512 731.428571c-43.885714 0-73.142857 29.257143-73.142857 73.142858s29.257143 73.142857 73.142857 73.142857 73.142857-29.257143 73.142857-73.142857-29.257143-73.142857-73.142857-73.142858z" p-id="18913" fill="#ffffff"></path></svg>\n ',error:'\n <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5514"><path d="M810 274l-238 238 238 238-60 60-238-238-238 238-60-60 238-238-238-238 60-60 238 238 238-238z" p-id="5515" fill="#ffffff"></path></svg>\n ',loading:'\n <div class="coco-msg_loading">\n <svg class="coco-msg-circular" viewBox="25 25 50 50">\n <circle class="coco-msg-path" cx="50" cy="50" r="20" fill="none" stroke-width="4" stroke-miterlimit="10"/>\n </svg>\n </div>\n '}}function d(o){oLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).marked={})}(this,(function(e){"use strict";function t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function n(t){e.defaults=t}e.defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};const s=/[&<>"']/,r=new RegExp(s.source,"g"),i=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,l=new RegExp(i.source,"g"),o={"&":"&","<":"<",">":">",'"':""","'":"'"},a=e=>o[e];function c(e,t){if(t){if(s.test(e))return e.replace(r,a)}else if(i.test(e))return e.replace(l,a);return e}const h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;const p=/(^|[^\[])\^/g;function u(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,s)=>(s=(s="object"==typeof s&&"source"in s?s.source:s).replace(p,"$1"),e=e.replace(t,s),n),getRegex:()=>new RegExp(e,t)};return n}function g(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return null}return e}const k={exec:()=>null};function f(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let s=!1,r=t;for(;--r>=0&&"\\"===n[r];)s=!s;return s?"|":" |"})).split(/ \|/);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(/\\\|/g,"|");return n}function d(e,t,n){const s=e.length;if(0===s)return"";let r=0;for(;r<s;){const i=e.charAt(s-r-1);if(i!==t||n){if(i===t||!n)break;r++}else r++}return e.slice(0,s-r)}function x(e,t,n,s){const r=t.href,i=t.title?c(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){s.state.inLink=!0;const e={type:"link",raw:n,href:r,title:i,text:l,tokens:s.inlineTokens(l)};return s.state.inLink=!1,e}return{type:"image",raw:n,href:r,title:i,text:c(l)}}class b{options;rules;lexer;constructor(t){this.options=t||e.defaults}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:d(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const s=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=s.length?e.slice(s.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=d(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:s,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const s=n.length>1,r={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");const i=new RegExp(`^( {0,3}${n})((?:[\t ][^\\n]*)?(?:\\n|$))`);let l="",o="",a=!1;for(;e;){let n=!1;if(!(t=i.exec(e)))break;if(this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let s=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),c=e.split("\n",1)[0],h=0;this.options.pedantic?(h=2,o=s.trimStart()):(h=t[2].search(/[^ ]/),h=h>4?1:h,o=s.slice(h),h+=t[1].length);let p=!1;if(!s&&/^ *$/.test(c)&&(l+=c+"\n",e=e.substring(c.length+1),n=!0),!n){const t=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,h-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),r=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:\`\`\`|~~~)`),i=new RegExp(`^ {0,${Math.min(3,h-1)}}#`);for(;e;){const a=e.split("\n",1)[0];if(c=a,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),r.test(c))break;if(i.test(c))break;if(t.test(c))break;if(n.test(e))break;if(c.search(/[^ ]/)>=h||!c.trim())o+="\n"+c.slice(h);else{if(p)break;if(s.search(/[^ ]/)>=4)break;if(r.test(s))break;if(i.test(s))break;if(n.test(s))break;o+="\n"+c}p||c.trim()||(p=!0),l+=a+"\n",e=e.substring(a.length+1),s=c.slice(h)}}r.loose||(a?r.loose=!0:/\n *\n *$/.test(l)&&(a=!0));let u,g=null;this.options.gfm&&(g=/^\[[ xX]\] /.exec(o),g&&(u="[ ] "!==g[0],o=o.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",Line truncated
|
||||
@@ -1,684 +0,0 @@
|
||||
function initArtalk(){
|
||||
var memosDom = document.querySelector(memosData.dom);
|
||||
var editIcon = "";
|
||||
var memosEditorCont = `
|
||||
<div class="memos-editor animate__animated animate__fadeIn d-none col-12">
|
||||
<div class="memos-editor-body mb-3 p-3">
|
||||
<div class="memos-editor-inner animate__animated animate__fadeIn">
|
||||
<div class="memos-editor-content">
|
||||
<textarea class="memos-editor-textarea text-sm" rows="1" placeholder="唠叨点什么..."></textarea>
|
||||
</div>
|
||||
<div id="memos-tag-menu"></div>
|
||||
<div class="memos-image-list d-flex flex-fill line-xl"></div>
|
||||
<div class="memos-editor-tools pt-3">
|
||||
<div class="d-flex">
|
||||
<div class="button outline action-btn image-btn mr-2" onclick="this.lastElementChild.click()">
|
||||
<img src="${static_url}js/memos/img/memos_img_up.svg">
|
||||
<input class="memos-upload-image-input d-none" type="file" accept="image/*">
|
||||
</div>
|
||||
<div class="button outline p-2 action-btn code-btn mr-2">
|
||||
<img src="${static_url}js/memos/img/memos_code.svg">
|
||||
</div>
|
||||
<div class="button outline action-btn code-single mr-2">
|
||||
<img src="${static_url}js/memos/img/memos-code-s.svg">
|
||||
</div>
|
||||
<div class="button outline action-btn mr-2 link-btn">
|
||||
<img src="${static_url}js/memos/img/memos_link.svg">
|
||||
</div>
|
||||
<div class="button outline action-btn mr-2 link-img">
|
||||
<img src="${static_url}js/memos/img/memos_img_quote.svg">
|
||||
</div>
|
||||
<div class="button outline action-btn biao-qing mr-2">
|
||||
<img src="${static_url}js/memos/img/memos-emoji.svg">
|
||||
</div>
|
||||
<div class="button outline action-btn p-2 switchUser-btn">
|
||||
<img src="${static_url}js/memos/img/memos_user.svg">
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex flex-fill">
|
||||
<div class="memos-tag-list d-none mt-2 animate__animated animate__fadeIn"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="memos-editor-footer border-t pt-3 mt-3">
|
||||
<div class="editor-selector mr-2">
|
||||
<select class="select-memos-value outline px-2 py-1">
|
||||
<option value="PUBLIC">所有人可见</option>
|
||||
<option value="PROTECTED">仅登录可见</option>
|
||||
<option value="PRIVATE">仅自己可见</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="editor-submit d-flex flex-fill justify-content-end">
|
||||
<div class="edit-memos d-none">
|
||||
<div class="primary cancel-edit-btn mr-2 px-3 py-2">取消</div>
|
||||
<div class="primary edit-memos-btn px-3 py-2">修改完成</div>
|
||||
</div>
|
||||
<div class="primary submit-memos-btn px-3 py-1">唠叨一下</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="memos-editor-option animate__animated animate__fadeIn">
|
||||
<input name="memos-api-url" class="memos-open-api-input input-text flex-fill mr-3 px-2 py-1" type="text" value="" maxlength="120" placeholder="OpenAPI">
|
||||
<div class="memos-open-api-submit">
|
||||
<div class="primary submit-openapi-btn px-3 py-1">保存</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="memos-random d-none"></div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
|
||||
const element = document.querySelector('.intro'); // 选择器是你想要操作的元素的选择器
|
||||
element.insertAdjacentHTML('afterend', editIcon);
|
||||
memosDom.insertAdjacentHTML('afterbegin',memosEditorCont);
|
||||
|
||||
|
||||
var memosEditorInner = document.querySelector(".memos-editor-inner");
|
||||
var memosEditorOption = document.querySelector(".memos-editor-option");
|
||||
var memosRadomCont = document.querySelector(".memos-random");
|
||||
|
||||
var taglistBtn = document.querySelector(".tag-btn");
|
||||
var codeBtn = document.querySelector(".code-btn");
|
||||
var codesingle = document.querySelector(".code-single");
|
||||
var linkBtn = document.querySelector(".link-btn");
|
||||
var linkimg = document.querySelector(".link-img");
|
||||
var switchUserBtn = document.querySelector(".switchUser-btn");
|
||||
var loadEditorBtn = document.querySelector(".load-memos-editor");
|
||||
var submitApiBtn = document.querySelector(".submit-openapi-btn");
|
||||
var submitMemoBtn = document.querySelector(".submit-memos-btn");
|
||||
var memosVisibilitySelect = document.querySelector(".select-memos-value");
|
||||
var openApiInput = document.querySelector(".memos-open-api-input");
|
||||
var uploadImageInput = document.querySelector(".memos-upload-image-input");
|
||||
var memosTextarea = document.querySelector(".memos-editor-textarea");
|
||||
var editMemoDom = document.querySelector(".edit-memos");
|
||||
var editMemoBtn = document.querySelector(".edit-memos-btn");
|
||||
var cancelEditBtn = document.querySelector(".cancel-edit-btn");
|
||||
var biaoqing = document.querySelector(".biao-qing");
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
getEditIcon();
|
||||
});
|
||||
|
||||
function getEditIcon() {
|
||||
var memosContent = '',memosVisibility = '',memosResource = [],memosRelation=[];
|
||||
var memosCount = window.localStorage && window.localStorage.getItem("memos-response-count");
|
||||
var memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
|
||||
var memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
var getEditor = window.localStorage && window.localStorage.getItem("memos-editor-display");
|
||||
var isHide = getEditor === "hide";
|
||||
window.localStorage && window.localStorage.setItem("memos-resource-list", JSON.stringify(memosResource));
|
||||
window.localStorage && window.localStorage.setItem("memos-relation-list", JSON.stringify(memosRelation));
|
||||
memosTextarea.addEventListener('input', (e) => {
|
||||
memosTextarea.style.height = 'inherit';
|
||||
memosTextarea.style.height = e.target.scrollHeight + 'px';
|
||||
});
|
||||
|
||||
if (getEditor !== null) {
|
||||
document.querySelector(".memos-editor").classList.toggle("d-none",isHide);
|
||||
getEditor == "show" ? hasMemosOpenId() : ''
|
||||
};
|
||||
|
||||
loadEditorBtn.addEventListener("click", function () {
|
||||
if (typeof getEditor !== "function") {
|
||||
if (getEditor != "show") {
|
||||
hasMemosOpenId();
|
||||
}
|
||||
}
|
||||
document.querySelector(".memos-editor").classList.toggle("d-none");
|
||||
if (window.localStorage) {
|
||||
window.localStorage.setItem("memos-editor-display", document.querySelector(".memos-editor").classList.contains("d-none") ? "hide" : "show");
|
||||
getEditor = window.localStorage.getItem("memos-editor-display");
|
||||
}
|
||||
});
|
||||
|
||||
//标签数据
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
if (memosPath && memosOpenId) {
|
||||
document.querySelector(".memos-tag-list").classList.remove("d-none");
|
||||
}
|
||||
});
|
||||
|
||||
codeBtn.addEventListener("click", function() {
|
||||
const memosPath = window.localStorage?.getItem("memos-access-path");
|
||||
const memosOpenId = window.localStorage?.getItem("memos-access-token");
|
||||
if (memosPath && memosOpenId) {
|
||||
const memoCode = '```\n\n```';
|
||||
const textareaValue = memosTextarea.value;
|
||||
const lastBacktickIndex = textareaValue.lastIndexOf('```');
|
||||
const caretPos = lastBacktickIndex !== -1 ? lastBacktickIndex : textareaValue.length; // 将光标定位到最后一个 ``` 的位置
|
||||
memosTextarea.value = textareaValue.substring(0, caretPos) + memoCode;
|
||||
memosTextarea.style.height = memosTextarea.scrollHeight + 'px';
|
||||
memosTextarea.setSelectionRange(caretPos + 4, caretPos + 4); // 将光标定位到 ``` 中间
|
||||
memosTextarea.focus();
|
||||
}
|
||||
});
|
||||
|
||||
//代码单反引号
|
||||
codesingle.addEventListener("click", function() {
|
||||
const memosPath = window.localStorage?.getItem("memos-access-path");
|
||||
const memosOpenId = window.localStorage?.getItem("memos-access-token");
|
||||
if (memosPath && memosOpenId) {
|
||||
const memoCode = '`'; // 行内代码的起始和结束标记为单个反引号
|
||||
const textareaValue = memosTextarea.value;
|
||||
const selectionStart = memosTextarea.selectionStart;
|
||||
const selectionEnd = memosTextarea.selectionEnd;
|
||||
const selectedText = textareaValue.substring(selectionStart, selectionEnd);
|
||||
const insertCode = `${memoCode}${selectedText}${memoCode}`;
|
||||
const caretPos = selectionStart !== selectionEnd ? selectionEnd + memoCode.length * 2 : selectionStart + memoCode.length;
|
||||
|
||||
memosTextarea.setRangeText(
|
||||
insertCode,
|
||||
selectionStart,
|
||||
selectionEnd,
|
||||
"end"
|
||||
);
|
||||
// 根据是否有选中内容,决定光标位置
|
||||
memosTextarea.setSelectionRange(caretPos, caretPos);
|
||||
|
||||
memosTextarea.style.height = memosTextarea.scrollHeight + 'px';
|
||||
memosTextarea.focus();
|
||||
}
|
||||
});
|
||||
|
||||
linkBtn.addEventListener("click", function() {
|
||||
const memosPath = window.localStorage?.getItem("memos-access-path");
|
||||
const memosOpenId = window.localStorage?.getItem("memos-access-token");
|
||||
if (memosPath && memosOpenId) {
|
||||
const memoLink = '[]()';
|
||||
const selectedText = memosTextarea.value.substring(memosTextarea.selectionStart, memosTextarea.selectionEnd);
|
||||
let caretPos;
|
||||
|
||||
if (selectedText) {
|
||||
// 如果有选中的文本,则插入到 [] 中
|
||||
const startText = memosTextarea.value.substring(0, memosTextarea.selectionStart);
|
||||
const endText = memosTextarea.value.substring(memosTextarea.selectionEnd);
|
||||
caretPos = startText.length + '['.length + selectedText.length + ']'.length + 1;
|
||||
memosTextarea.value = startText + '[' + selectedText + ']' + memoLink.substring(2) + endText;
|
||||
} else {
|
||||
// 如果没有选中文本,则将光标定位在 ()
|
||||
const startText = memosTextarea.value.substring(0, memosTextarea.selectionStart);
|
||||
const endText = memosTextarea.value.substring(memosTextarea.selectionEnd);
|
||||
caretPos = startText.length + memoLink.indexOf("()") + 1;
|
||||
memosTextarea.value = startText + memoLink + endText;
|
||||
}
|
||||
|
||||
memosTextarea.setSelectionRange(caretPos, caretPos);
|
||||
memosTextarea.focus();
|
||||
}
|
||||
});
|
||||
|
||||
linkimg.addEventListener("click", function() {
|
||||
const memosPath = window.localStorage?.getItem("memos-access-path");
|
||||
const memosOpenId = window.localStorage?.getItem("memos-access-token");
|
||||
if (memosPath && memosOpenId) {
|
||||
const memoLink = '![]()';
|
||||
const caretPos = memosTextarea.selectionStart + memoLink.indexOf("()") + 1;
|
||||
memosTextarea.value = memosTextarea.value.substring(0, memosTextarea.selectionStart) + memoLink + memosTextarea.value.substring(memosTextarea.selectionEnd);
|
||||
memosTextarea.setSelectionRange(caretPos, caretPos);
|
||||
memosTextarea.focus();
|
||||
}
|
||||
});
|
||||
|
||||
uploadImageInput.addEventListener('change', () => {
|
||||
memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
if (memosPath && memosOpenId) {
|
||||
let filesData = uploadImageInput.files[0];
|
||||
if (uploadImageInput.files.length !== 0){
|
||||
uploadImage(filesData);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
async function uploadImage(data) {
|
||||
const imageData = new FormData();
|
||||
const blobUrl = memosPath+"/api/v1/resource/blob?openId="+memosOpenId;
|
||||
imageData.append('file', data, data.name)
|
||||
const resp = await fetch(blobUrl, {
|
||||
method: "POST",
|
||||
body: imageData
|
||||
})
|
||||
const res = await resp.json().then(res => {
|
||||
if(res.id){
|
||||
let imageList = "";
|
||||
imageList += '<div data-id="'+res.id+'" class="memos-img-edit d-flex text-xs mt-2 mr-2" onclick="deleteImage(this)"><div class="d-flex px-2 justify-content-center">'+res.filename+'</div></div>'
|
||||
document.querySelector(".memos-image-list").insertAdjacentHTML('afterbegin', imageList);
|
||||
cocoMessage.success(
|
||||
'上传成功',
|
||||
()=>{
|
||||
memosResource.push(res.id);
|
||||
window.localStorage && window.localStorage.setItem("memos-resource-list", JSON.stringify(memosResource));
|
||||
})
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
switchUserBtn.addEventListener("click", function () {
|
||||
memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
if (memosPath && memosOpenId) {
|
||||
memosEditorOption.classList.remove("d-none");
|
||||
memosEditorInner.classList.add("d-none");
|
||||
memosRadomCont.innerHTML = '';
|
||||
openApiInput.value = '';
|
||||
}
|
||||
});
|
||||
|
||||
submitApiBtn.addEventListener("click", function () {
|
||||
if(openApiInput.value == null || openApiInput.value == ''){
|
||||
cocoMessage.info('内容不能为空');
|
||||
}else{
|
||||
getMemosData(openApiInput.value);
|
||||
}
|
||||
});
|
||||
|
||||
submitMemoBtn.addEventListener("click", function () {
|
||||
memosContent = memosTextarea.value;
|
||||
memosVisibility = memosVisibilitySelect.value;
|
||||
memosResource = window.localStorage && JSON.parse(window.localStorage.getItem("memos-resource-list"));
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
let TAG_REG = /(?<=#)([^#\s!.,;:?"'()]+)(?= )/g;
|
||||
let memosTag = memosContent.match(TAG_REG);
|
||||
let hasContent = memosContent.length !== 0;
|
||||
if (memosOpenId && hasContent) {
|
||||
let memoUrl = memosPath+"/api/v1/memo?openId="+memosOpenId;
|
||||
let memoBody = {content:memosContent,relationList:memosRelation,resourceIdList:memosResource,visibility:memosVisibility}
|
||||
fetch(memoUrl, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(memoBody),
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
}).then(function (res) {
|
||||
if (res.status == 200) {
|
||||
if (memosTag !== null) {
|
||||
const memoTagUrl = memosPath + "/api/v1/tag?openId=" + memosOpenId;
|
||||
(async () => {
|
||||
for await (const i of memosTag) {
|
||||
const response = await fetch(memoTagUrl, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({
|
||||
name: i
|
||||
})
|
||||
});
|
||||
}
|
||||
})();
|
||||
}
|
||||
cocoMessage.success(
|
||||
'唠叨成功',
|
||||
() => {
|
||||
location.reload();
|
||||
})
|
||||
}
|
||||
});
|
||||
}else if(!hasContent){
|
||||
cocoMessage.info('内容不能为空');
|
||||
}else{
|
||||
cocoMessage.info(
|
||||
'请设置 Memos Open API',
|
||||
() => {
|
||||
memosEditorInner.classList.add("d-none");
|
||||
memosEditorOption.classList.remove("d-none");
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
function hasMemosOpenId() {
|
||||
if (!memosOpenId) {
|
||||
memosEditorInner.classList.add("d-none");
|
||||
cocoMessage.info('请设置 Memos Open API');
|
||||
}else{
|
||||
memosEditorOption.classList.add("d-none");
|
||||
// cocoMessage.success('准备就绪');
|
||||
let tagUrl = memosPath+"/api/v1/tag?openId="+memosOpenId;
|
||||
let response = fetch(tagUrl).then(response => response.json()).then(resdata => {
|
||||
return resdata
|
||||
}).then(response => {
|
||||
let taglist = "";
|
||||
response.map((t)=>{
|
||||
taglist += '<div class="memos-tag d-flex text-xs mt-2 mr-2"><a class="d-flex px-2 justify-content-center" onclick="setMemoTag(this)">#'+t+'</a></div>'
|
||||
})
|
||||
document.querySelector(".memos-tag-list").innerHTML = taglist;
|
||||
memosRadomCont.classList.remove("d-none");
|
||||
}).catch(err => cocoMessage.error('Memos Open API 有误,请重新输入!'));
|
||||
}
|
||||
}
|
||||
|
||||
function random(a,b) {
|
||||
var choices = b - a + 1;
|
||||
return Math.floor(Math.random() * choices + a);
|
||||
}
|
||||
|
||||
function getMemosData(e) {
|
||||
let apiReg = /openId=([^&]*)/,urlReg = /(.+?)(?:\/api)/;
|
||||
fetch(e).then(res => {
|
||||
if (res.status == 200) {
|
||||
return res.json()
|
||||
}else{
|
||||
cocoMessage.error('出错了,再检查一下吧!')
|
||||
}
|
||||
}).then(resdata => {
|
||||
if(typeof(resdata) !== "undefined"){
|
||||
let apiRes = e.match(apiReg),urlRes = e.match(urlReg)[1];
|
||||
memosOpenId = apiRes[1];
|
||||
memosPath = urlRes;
|
||||
memosCount = resdata.length;
|
||||
window.localStorage && window.localStorage.setItem("memos-access-path", urlRes);
|
||||
window.localStorage && window.localStorage.setItem("memos-access-token", memosOpenId);
|
||||
window.localStorage && window.localStorage.setItem("memos-response-count", memosCount);
|
||||
cocoMessage.success(
|
||||
'保存成功',
|
||||
()=>{
|
||||
memosEditorOption.classList.add("d-none");
|
||||
memosEditorInner.classList.remove("d-none");
|
||||
memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
hasMemosOpenId();
|
||||
})
|
||||
}
|
||||
})
|
||||
};
|
||||
}
|
||||
|
||||
//发布框 TAG
|
||||
function setMemoTag(e){
|
||||
let memoTag = e.textContent + " ";
|
||||
memosTextarea.value += memoTag;
|
||||
}
|
||||
|
||||
function deleteImage(e){
|
||||
if(e){
|
||||
let memoId = e.getAttribute("data-id")
|
||||
let memosResource = window.localStorage && JSON.parse(window.localStorage.getItem("memos-resource-list"));
|
||||
let memosResourceList = memosResource.filter(function(item){ return item != memoId});
|
||||
window.localStorage && window.localStorage.setItem("memos-resource-list", JSON.stringify(memosResourceList));
|
||||
e.remove()
|
||||
}
|
||||
}
|
||||
|
||||
//增加memos编辑功能
|
||||
function editMemo(e) {
|
||||
var memoContent = e.content,memoId = e.id,memoRelationList = e.relationList,memoResourceList = e.resourceList,memoVisibility = e.visibility;
|
||||
getEditor = window.localStorage && window.localStorage.getItem("memos-editor-display"),
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
if(memosOpenId && getEditor == "show"){
|
||||
memosTextarea.value = memoContent;
|
||||
memosTextarea.style.height = memosTextarea.scrollHeight + 'px';
|
||||
submitMemoBtn.classList.add("d-none");
|
||||
editMemoDom.classList.remove("d-none");
|
||||
document.body.scrollIntoView({behavior: 'smooth'});
|
||||
}
|
||||
editMemoBtn.addEventListener("click", function () {
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token"),
|
||||
memoContent = memosTextarea.value;
|
||||
memoResourceList = window.localStorage && JSON.parse(window.localStorage.getItem("memos-resource-list")) ? window.localStorage && JSON.parse(window.localStorage.getItem("memos-resource-list")) : e.resourceList,
|
||||
memoVisibility = memosVisibilitySelect.value;
|
||||
let TAG_REG = /(?<=#)([^#\s!.,;:?"'()]+)(?= )/g;
|
||||
let memosTag = memoContent.match(TAG_REG);
|
||||
let hasContent = memoContent.length !== 0;
|
||||
if (hasContent) {
|
||||
var memoUrl = memosPath+"/api/v1/memo/"+memoId+"?openId="+memosOpenId;
|
||||
var memoBody = {content:memoContent,id:memoId,relationList:memoRelationList,resourceList:memoResourceList,visibility:memoVisibility}
|
||||
fetch(memoUrl, {
|
||||
method: 'PATCH',
|
||||
body: JSON.stringify(memoBody),
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
}).then(function(res) {
|
||||
if (res.status == 200) {
|
||||
if (memosTag !== null) {
|
||||
const memoTagUrl = memosPath + "/api/v1/tag?openId=" + memosOpenId;
|
||||
(async () => {
|
||||
for await (const i of memosTag) {
|
||||
const response = await fetch(memoTagUrl, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({
|
||||
name: i
|
||||
})
|
||||
});
|
||||
}
|
||||
})();
|
||||
}
|
||||
cocoMessage.success(
|
||||
'修改成功',
|
||||
()=>{
|
||||
submitMemoBtn.classList.remove("d-none");
|
||||
editMemoDom.classList.add("d-none");
|
||||
location.reload();
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//增加memo编辑的时候取消功能
|
||||
cancelEditBtn.addEventListener("click", function () {
|
||||
if (!editMemoDom.classList.contains("d-none")) {
|
||||
memosTextarea.value = '';
|
||||
memosTextarea.style.height = 'inherit';
|
||||
editMemoDom.classList.add("d-none");
|
||||
submitMemoBtn.classList.remove("d-none");
|
||||
}
|
||||
})
|
||||
|
||||
//增加memos归档功能
|
||||
function archiveMemo(memoId) { //获取Memos的ID值
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token"); //登录信息
|
||||
if(memosOpenId && memoId){ //判断是否登录以及获取到Memos的ID值
|
||||
var memoUrl = memosPath+"/api/v1/memo/"+memoId+"?openId="+memosOpenId;
|
||||
var memoBody = {id:memoId,rowStatus:"ARCHIVED"};
|
||||
fetch(memoUrl, {
|
||||
method: 'PATCH',
|
||||
body: JSON.stringify(memoBody),
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
}).then(function(res) {
|
||||
if (res.status == 200) {
|
||||
cocoMessage.success(
|
||||
'归档成功',
|
||||
()=>{
|
||||
location.reload();
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
//增加memo删除功能
|
||||
function deleteMemo(memoId) {
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
if(memosOpenId && memoId){
|
||||
var memoUrl = memosPath+"/api/v1/memo/"+memoId+"?openId="+memosOpenId;
|
||||
fetch(memoUrl, {
|
||||
method: 'DELETE',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
}).then(function(res) {
|
||||
if (res.status == 200) {
|
||||
cocoMessage.success(
|
||||
'删除成功',
|
||||
()=>{
|
||||
location.reload();
|
||||
})
|
||||
}
|
||||
}).catch(err => {
|
||||
cocoMessage.error('出错了,再检查一下吧')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Emoji表情选择
|
||||
|
||||
let emojiSelectorVisible = false;
|
||||
let emojiSelector;
|
||||
let emojis = []; // 缓存表情数据
|
||||
|
||||
// 页面加载时获取表情数据
|
||||
window.addEventListener("DOMContentLoaded", async () => {
|
||||
try {
|
||||
emojis = await getEmojisData(); // 获取表情数据
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch emojis data:', error);
|
||||
}
|
||||
});
|
||||
|
||||
// 表情选择器点击事件处理
|
||||
biaoqing.addEventListener("click", function (event) {
|
||||
event.stopPropagation();
|
||||
emojiSelectorVisible = !emojiSelectorVisible;
|
||||
const memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
|
||||
const memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
|
||||
if (emojiSelectorVisible && memosPath && memosOpenId) {
|
||||
displayEmojiSelector();
|
||||
} else {
|
||||
emojiSelector?.remove();
|
||||
}
|
||||
});
|
||||
|
||||
// 显示表情选择器
|
||||
function displayEmojiSelector() {
|
||||
if (!emojiSelector) {
|
||||
emojiSelector = document.createElement('div');
|
||||
emojiSelector.classList.add('emoji-selector');
|
||||
|
||||
// 使用事件代理,将事件监听器添加到父元素上
|
||||
emojiSelector.addEventListener('click', (event) => {
|
||||
const target = event.target;
|
||||
if (target.classList.contains('emoji-item')) {
|
||||
insertEmoji(target.innerHTML); // 直接插入emoji图标
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
emojiSelector.innerHTML = ''; // 清空表情选择器内容
|
||||
|
||||
emojis.forEach(emoji => {
|
||||
const emojiItem = document.createElement('div');
|
||||
emojiItem.classList.add('emoji-item');
|
||||
emojiItem.innerHTML = emoji.icon;
|
||||
emojiItem.title = emoji.text;
|
||||
emojiSelector.appendChild(emojiItem);
|
||||
});
|
||||
|
||||
// 将表情下拉框插入到对应位置
|
||||
const memosEditorTools = document.querySelector(".memos-editor-tools");
|
||||
if (memosEditorTools) {
|
||||
memosEditorTools.insertAdjacentElement('afterend', emojiSelector);
|
||||
}
|
||||
}
|
||||
|
||||
// 获取json文件中的数据
|
||||
async function getEmojisData() {
|
||||
const response = await fetch('/memos/owo.json');
|
||||
const data = await response.json();
|
||||
return data.Emoji.container;
|
||||
}
|
||||
|
||||
// 表情光标位置
|
||||
function insertEmoji(emojiText) {
|
||||
const selectionStart = memosTextarea.selectionStart;
|
||||
const newValue = `${memosTextarea.value.substring(0, selectionStart)}${emojiText}${memosTextarea.value.substring(memosTextarea.selectionEnd)}`;
|
||||
memosTextarea.value = newValue;
|
||||
memosTextarea.dispatchEvent(new Event('input'));
|
||||
const newCursorPosition = selectionStart + emojiText.length;
|
||||
memosTextarea.setSelectionRange(newCursorPosition, newCursorPosition);
|
||||
memosTextarea.focus();
|
||||
}
|
||||
|
||||
|
||||
// 标签自动补全
|
||||
|
||||
const tagListElement = document.querySelector('.memos-tag-list');
|
||||
const tagMenu = document.getElementById('memos-tag-menu');
|
||||
let selectedTagIndex = -1;
|
||||
|
||||
const getMatchingTags = (tagPrefix) => {
|
||||
const allTags = Array.from(tagListElement.querySelectorAll('.memos-tag a')).map(tagLink => tagLink.textContent);
|
||||
return allTags.filter(tag => tag.toLowerCase().includes(tagPrefix.toLowerCase()));
|
||||
};
|
||||
|
||||
const hideTagMenu = () => tagMenu.style.display = 'none';
|
||||
|
||||
const showTagMenu = (matchingTags) => {
|
||||
tagMenu.innerHTML = matchingTags.map(tag => `<div class="tag-option">${tag}</div>`).join('');
|
||||
const { left, bottom } = memosTextarea.getBoundingClientRect();
|
||||
tagMenu.style.cssText = `display: block;`;
|
||||
selectedTagIndex = -1;
|
||||
};
|
||||
|
||||
const insertSelectedTag = (tag) => {
|
||||
const inputValue = memosTextarea.value;
|
||||
const cursorPosition = memosTextarea.selectionStart;
|
||||
|
||||
const textBeforeCursor = inputValue.substring(0, cursorPosition);
|
||||
const wordsBeforeCursor = textBeforeCursor.split(/\s+/);
|
||||
wordsBeforeCursor.pop();
|
||||
const newValue = `${wordsBeforeCursor.join(' ')} ${tag} ${inputValue.substring(cursorPosition)}`;
|
||||
|
||||
memosTextarea.value = newValue;
|
||||
|
||||
const newCursorPosition = newValue.lastIndexOf(tag) + tag.length + 1;
|
||||
|
||||
hideTagMenu();
|
||||
selectedTagIndex = -1;
|
||||
|
||||
memosTextarea.focus();
|
||||
memosTextarea.setSelectionRange(newCursorPosition, newCursorPosition);
|
||||
};
|
||||
|
||||
memosTextarea.addEventListener('input', () => {
|
||||
const inputValue = memosTextarea.value;
|
||||
const cursorPosition = memosTextarea.selectionStart;
|
||||
|
||||
const lastWord = inputValue.substring(0, cursorPosition).split(/\s+/).pop();
|
||||
|
||||
if (lastWord && lastWord.includes('#')) {
|
||||
const matchingTags = getMatchingTags(lastWord);
|
||||
matchingTags.length > 0 ? showTagMenu(matchingTags) : hideTagMenu();
|
||||
} else {
|
||||
hideTagMenu();
|
||||
}
|
||||
});
|
||||
|
||||
memosTextarea.addEventListener('keydown', event => {
|
||||
const keyCode = event.keyCode;
|
||||
|
||||
if (tagMenu.style.display === 'block') {
|
||||
const matchingTags = Array.from(tagMenu.querySelectorAll('.tag-option')).map(tag => tag.textContent);
|
||||
|
||||
if (keyCode === 38 || keyCode === 40 || keyCode === 37 || keyCode === 39) { // 添加左右方向键的处理
|
||||
event.preventDefault();
|
||||
if (keyCode === 37 || keyCode === 39) { // 处理左右方向键
|
||||
const direction = keyCode === 37 ? -1 : 1;
|
||||
selectedTagIndex = (selectedTagIndex + direction + matchingTags.length) % matchingTags.length;
|
||||
} else { // 处理上下方向键
|
||||
selectedTagIndex = (selectedTagIndex + (keyCode === 38 ? -1 : 1) + matchingTags.length) % matchingTags.length;
|
||||
}
|
||||
Array.from(tagMenu.querySelectorAll('.tag-option')).forEach((option, index) => option.classList.toggle('selected', index === selectedTagIndex));
|
||||
} else if (keyCode === 13 && selectedTagIndex !== -1) {
|
||||
event.preventDefault();
|
||||
insertSelectedTag(matchingTags[selectedTagIndex]);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
tagMenu.addEventListener('click', event => {
|
||||
insertSelectedTag(event.target.textContent);
|
||||
});
|
||||
|
||||
}
|
||||
initArtalk()
|
||||
@@ -1,417 +0,0 @@
|
||||
|
||||
var hasLogin = 0 //没登录隐藏编辑归档按钮
|
||||
|
||||
var memosData = {
|
||||
dom:'#memos',
|
||||
}
|
||||
|
||||
var bbMemo = {
|
||||
memos: 'https://memos.koobai.com/',
|
||||
limit: '15',
|
||||
creatorId: '101',
|
||||
domId: '#bber',
|
||||
};
|
||||
if(typeof(bbMemos) !=="undefined"){
|
||||
for(var key in bbMemos) {
|
||||
if(bbMemos[key]){
|
||||
bbMemo[key] = bbMemos[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
function loadCssCode(code){
|
||||
var style = document.createElement('style');
|
||||
style.type = 'text/css';
|
||||
style.rel = 'stylesheet';
|
||||
style.appendChild(document.createTextNode(code));
|
||||
var head = document.getElementsByTagName('head')[0];
|
||||
head.appendChild(style);
|
||||
}
|
||||
|
||||
var limit = bbMemo.limit
|
||||
var memos = bbMemo.memos
|
||||
var mePage = 1,offset = 0,nextLength = 0,nextDom='';
|
||||
var bbDom = document.querySelector(bbMemo.domId);
|
||||
var load = '<div class="bb-load"><button class="load-btn button-load">加载中……</button></div>'
|
||||
// 增加memos编辑及归档
|
||||
var memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
var memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
|
||||
var getEditor = window.localStorage && window.localStorage.getItem("memos-editor-display");
|
||||
|
||||
if(bbDom){
|
||||
getFirstList() //首次加载数据
|
||||
// meNums() //加载总数
|
||||
var btn = document.querySelector("button.button-load");
|
||||
btn.addEventListener("click", function () {
|
||||
btn.textContent= '加载中……';
|
||||
updateHTMl(nextDom)
|
||||
if(nextLength < limit){ //返回数据条数小于限制条数,隐藏
|
||||
document.querySelector("button.button-load").remove()
|
||||
return
|
||||
}
|
||||
getNextList()
|
||||
});
|
||||
}
|
||||
function initCircle(){
|
||||
var limit = bbMemo.limit
|
||||
var memos = bbMemo.memos
|
||||
var mePage = 1,offset = 0,nextLength = 0,nextDom='';
|
||||
var bbDom = document.querySelector(bbMemo.domId);
|
||||
var load = '<div class="bb-load"><button class="load-btn button-load">加载中……</button></div>'
|
||||
// 增加memos编辑及归档
|
||||
var memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
var memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
|
||||
var getEditor = window.localStorage && window.localStorage.getItem("memos-editor-display");
|
||||
|
||||
if(bbDom){
|
||||
getFirstList() //首次加载数据
|
||||
// meNums() //加载总数
|
||||
var btn = document.querySelector("button.button-load");
|
||||
btn.addEventListener("click", function () {
|
||||
btn.textContent= '加载中……';
|
||||
updateHTMl(nextDom)
|
||||
if(nextLength < limit){ //返回数据条数小于限制条数,隐藏
|
||||
document.querySelector("button.button-load").remove()
|
||||
return
|
||||
}
|
||||
getNextList()
|
||||
});
|
||||
}
|
||||
}
|
||||
function getFirstList(){
|
||||
bbDom.insertAdjacentHTML('afterend', load);
|
||||
let tagHtml = `<div class="memos-search-all img-hide">
|
||||
<div class="memos-search">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-auto opacity-30 dark:text-gray-200"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg>
|
||||
<input type="text" id="memos-search-input" placeholder="输入关键词,搜索博主的动态..." onkeydown="searchMemoevent(event)">
|
||||
</div>
|
||||
<div id="tag-list-all"></div>
|
||||
</div>
|
||||
<div id="tag-list"></div>` // TAG筛选 memos搜索
|
||||
bbDom.insertAdjacentHTML('beforebegin', tagHtml); // TAG筛选
|
||||
showTaglist(); // 显示所有 TAG
|
||||
var bbUrl = memos+"api/v1/memo?creatorId="+bbMemo.creatorId+"&rowStatus=NORMAL&limit="+limit;
|
||||
fetch(bbUrl).then(res => res.json()).then( resdata =>{
|
||||
updateHTMl(resdata);
|
||||
var nowLength = resdata.length;
|
||||
if(nowLength < limit){ //返回数据条数小于 limit 则直接移除“加载更多”按钮,中断预加载
|
||||
document.querySelector("button.button-load").remove()
|
||||
return
|
||||
}
|
||||
mePage++
|
||||
offset = limit*(mePage-1)
|
||||
getNextList()
|
||||
});
|
||||
}
|
||||
//预加载下一页数据
|
||||
function getNextList(){
|
||||
var bbUrl = memos+"api/v1/memo?creatorId="+bbMemo.creatorId+"&rowStatus=NORMAL&limit="+limit+"&offset="+offset;
|
||||
fetch(bbUrl).then(res => res.json()).then( resdata =>{
|
||||
nextDom = resdata;
|
||||
nextLength = nextDom.length
|
||||
mePage++
|
||||
offset = limit*(mePage-1)
|
||||
if(nextLength < 1){ //返回数据条数为 0 ,隐藏
|
||||
document.querySelector("button.button-load").remove()
|
||||
return
|
||||
}
|
||||
//在未展开评论时,默认显示评论数
|
||||
Artalk.loadCountWidget({
|
||||
server: 'https://artalk.usj.cc/',
|
||||
site: '优世界',
|
||||
countEl: '#ArtalkCount'
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
//加载总 Memos 数
|
||||
function meNums() {
|
||||
var bbLoad = document.querySelector('.bb-load');
|
||||
var bbUrl = memos + "api/v1/memo/stats?creatorId=" + bbMemo.creatorId;
|
||||
fetch(bbUrl).then(res => res.json()).then(resdata => {
|
||||
if (Array.isArray(resdata)) {
|
||||
var allnums = ' 博主共发布了 ' + resdata.length + ' 条动态🎉 ';
|
||||
bbLoad.insertAdjacentHTML('afterend', allnums);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 插入 html
|
||||
function updateHTMl(data){
|
||||
var result="",resultAll="";
|
||||
//登录显示编辑归档按钮
|
||||
if(memosOpenId && getEditor == "show"){
|
||||
hasLogin = 1
|
||||
}
|
||||
const TAG_REG = /#([^#\s!.,;:?"'()]+)(?= )/g
|
||||
, IMG_REG = /\!\[(.*?)\]\((.*?)\)/g //content 内 md 格式图片
|
||||
, LINK_REG = /\[(.*?)\]\((.*?)\)/g //链接新窗口打开
|
||||
marked.setOptions({
|
||||
breaks: false,
|
||||
smartypants: false,
|
||||
langPrefix: 'language-',
|
||||
headerIds: false,
|
||||
mangle: false
|
||||
});
|
||||
for(var i=0;i < data.length;i++){
|
||||
var memo_id = data[i].id; //评论调用
|
||||
var bbContREG = data[i].content
|
||||
.replace(TAG_REG, "")
|
||||
.replace(IMG_REG, '')
|
||||
.replace(LINK_REG, '<a href="$2" target="_blank">$1</a>')
|
||||
bbContREG = marked.parse(bbContREG)
|
||||
|
||||
//解析 content 内 md 格式图片
|
||||
var IMG_ARR = data[i].content.match(IMG_REG) || '',IMG_ARR_Grid='';
|
||||
if(IMG_ARR){
|
||||
var IMG_ARR_Length = IMG_ARR.length,IMG_ARR_Url = '';
|
||||
if(IMG_ARR_Length !== 1){var IMG_ARR_Grid = " grid grid-"+IMG_ARR_Length}
|
||||
IMG_ARR.forEach(item => {
|
||||
let imgSrc = item.replace(/!\[.*?\]\((.*?)\)/g,'$1')
|
||||
IMG_ARR_Url += '<figure class="gallery-thumbnail"><img loading="lazy" decoding="async" class="img thumbnail-image lazyload" loading="lazy" decoding="async" data-lazy-src="'+imgSrc+'" src="'+imgSrc+'"/></figure>'
|
||||
});
|
||||
bbContREG += '<div class="resimg'+IMG_ARR_Grid+'" uk-scrollspy="target: > img; cls: uk-animation-fade; delay: 600">'+IMG_ARR_Url+'</div>';
|
||||
}
|
||||
//TAG 解析
|
||||
var tagArr = data[i].content.match(TAG_REG);
|
||||
var memosTag = '';
|
||||
|
||||
if (tagArr) {
|
||||
memosTag = tagArr.map(function(tag) {
|
||||
var tagText = String(tag).replace(/[#]/g, '');
|
||||
return '<div class="memos-tag-dg" onclick="getTagNow(this)"># ' + tagText + '</div>';
|
||||
}).join('');
|
||||
} else {
|
||||
memosTag = '<div class="memos-tag-dg">#生活日常</div>';
|
||||
}
|
||||
|
||||
//解析内置资源文件
|
||||
if(data[i].resourceList && data[i].resourceList.length > 0){
|
||||
var resourceList = data[i].resourceList;
|
||||
var imgUrl='',resUrl='',resImgLength = 0;
|
||||
for(var j=0;j < resourceList.length;j++){
|
||||
var restype = resourceList[j].type.slice(0,5)
|
||||
var resexlink = resourceList[j].externalLink
|
||||
var resLink = '',fileId=''
|
||||
if(resexlink){
|
||||
resLink = resexlink
|
||||
}else{
|
||||
fileId = resourceList[j].publicId || resourceList[j].filename
|
||||
resLink = memos+'o/r/'+resourceList[j].id+'/'+fileId
|
||||
}
|
||||
if(restype == 'image'){
|
||||
imgUrl += '<figure class="gallery-thumbnail"><img loading="lazy" decoding="async" class="img thumbnail-image" src="'+resLink+'"/></figure>'
|
||||
resImgLength = resImgLength + 1
|
||||
}
|
||||
if(restype !== 'image'){
|
||||
resUrl += '<a target="_blank" rel="noreferrer" href="'+resLink+'">'+resourceList[j].filename+'</a>'
|
||||
}
|
||||
}
|
||||
if(imgUrl){
|
||||
var resImgGrid = ""
|
||||
if(resImgLength !== 1){var resImgGrid = "grid grid-"+resImgLength}
|
||||
bbContREG += '<div class="resimg '+resImgGrid+'">'+imgUrl+'</div></div>'
|
||||
}
|
||||
if(resUrl){
|
||||
bbContREG += '<p class="datasource">'+resUrl+'</p>'
|
||||
}
|
||||
}
|
||||
result += `
|
||||
<li class="bb-list-li img-hide" id="${memo_id}">
|
||||
<div class="memos-pl">
|
||||
<div class="memos_diaoyong_time">${moment(data[i].createdTs * 1000).twitterLong()}</div>
|
||||
${hasLogin == 0 ? '' : `
|
||||
<div class="memos-edit">
|
||||
<div class="memos-menu">...</div>
|
||||
<div class="memos-menu-d">
|
||||
<div class="edit-btn" onclick="editMemo(${JSON.stringify(data[i]).replace(/"/g, '"')})">修改</div>
|
||||
<div class="archive-btn" onclick="archiveMemo('${data[i].id}')">归档</div>
|
||||
<div class="delete-btn" onclick="deleteMemo('${data[i].id}')">删除</div>
|
||||
</div>
|
||||
</div>
|
||||
`}
|
||||
</div>
|
||||
<div class="memos-tag-wz">${memosTag}</div>
|
||||
<div class="datacont" view-image>${bbContREG}</div>
|
||||
<div class="memos_diaoyong_top">
|
||||
<div class="memos-zan"><emoji-reaction class="reactions" reactTargetId="/m/${memo_id}" theme="system" endpoint="https://e.52ql.cn" availableArrayString="👍,thumbs-up;🎉,party-popper;❤️,red-heart;"></emoji-reaction></div>
|
||||
<div class="talks_comments">
|
||||
<a onclick="loadArtalk('${memo_id}')">
|
||||
<span id="ArtalkCount" data-page-key="/m/${memo_id}" class="comment-s"></span> 条评论 <span id="btn_memo_${memo_id}">
|
||||
<svg width="6px" height="12px" viewBox="0 0 6 12" version="1.1" xmlns="http://www.w3.org/2000/svg"><g><path d="M0.211503518,0.218577027 C0.493508208,-0.072859009 0.95072815,-0.072859009 1.23273284,0.218577027 L5.41780916,4.54361875 C6.19406361,5.34583421 6.19406361,6.65416579 5.41780916,7.45638125 L1.23273284,11.781423 C0.95072815,12.072859 0.493508208,12.072859 0.211503518,11.781423 C-0.0705011726,11.4899869 -0.0705011726,11.0174758 0.211503518,10.7260397 L4.39657984,6.400998 C4.60882491,6.18165462 4.60882491,5.81834538 4.39657984,5.599002 L0.211503518,1.27396027 C-0.0705011726,0.982524238 -0.0705011726,0.510013063 0.211503518,0.218577027 Z"></path></g></svg>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="memo_${memo_id}" class="artalk hidden"></div>
|
||||
</li>`;
|
||||
} // end for
|
||||
|
||||
var bbBefore = "<section class='bb-timeline'><ul class='bb-list-ul' uk-scrollspy='target: > li; cls: uk-animation-fade; delay: 500'>";
|
||||
var bbAfter = "</ul></section>";
|
||||
resultAll = bbBefore + result + bbAfter;
|
||||
bbDom.insertAdjacentHTML('beforeend', resultAll);
|
||||
|
||||
// animateSummaries(); // 在DOM加载完毕后执行滑动加载动画
|
||||
|
||||
if(document.querySelector('button.button-load')) document.querySelector('button.button-load').textContent = '看更多 ...';
|
||||
// 延时加载评论数方法
|
||||
setTimeout(function() {
|
||||
Artalk.loadCountWidget({
|
||||
server: 'https://artalk.usj.cc/',
|
||||
site: '优世界',
|
||||
countEl: '#ArtalkCount'
|
||||
});
|
||||
}, 1000); // 延迟3000毫秒(也就是3秒)执行
|
||||
}
|
||||
|
||||
// TAG 筛选
|
||||
function getTagNow(e){
|
||||
//console.log(e.innerHTML)
|
||||
let tagName = e.innerHTML.replace('# ','')
|
||||
let domClass = document.getElementById("bber")
|
||||
window.scrollTo({
|
||||
top: domClass.offsetTop - 30,
|
||||
behavior: "smooth"
|
||||
});
|
||||
let tagHtmlNow = `<div class='memos-tag-sc-2' onclick='javascript:location.reload();'><div class='memos-tag-sc-1' >标签筛选:</div><div class='memos-tag-sc' >${e.innerHTML}<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-auto ml-1 opacity-40"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg></div></div>`
|
||||
document.querySelector('#tag-list').innerHTML = tagHtmlNow
|
||||
let bbUrl = memos+"api/v1/memo?creatorId="+bbMemo.creatorId+"&tag="+tagName+"&limit=20";
|
||||
fetch(bbUrl).then(res => res.json()).then( resdata =>{
|
||||
document.querySelector(bbMemo.domId).innerHTML = ""
|
||||
if(document.querySelector("button.button-load")) document.querySelector("button.button-load").remove()
|
||||
|
||||
updateHTMl(resdata)
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
// 延时加载评论数方法
|
||||
setTimeout(function() {
|
||||
Artalk.loadCountWidget({
|
||||
server: 'https://artalk.usj.cc/',
|
||||
site: '优世界',
|
||||
countEl: '#ArtalkCount'
|
||||
});
|
||||
}, 1000); // 延迟3000毫秒(也就是3秒)执行
|
||||
// 显示所有 TAG
|
||||
function showTaglist(){
|
||||
let bbUrl = 'https://tag.52ql.cn/'
|
||||
let tagListDom = ""
|
||||
fetch(bbUrl).then(res => res.json()).then( resdata =>{
|
||||
for(let i=0;i < resdata.length;i++){
|
||||
tagListDom += `<div class="memos-tag-all img-hide" onclick='getTagNow(this)'># ${resdata[i]}</div>`
|
||||
}
|
||||
document.querySelector('#tag-list-all').innerHTML = tagListDom
|
||||
|
||||
// animateSummaries(); // 加载完毕后执行滑动加载动画
|
||||
})
|
||||
}
|
||||
|
||||
// 搜索 Memos
|
||||
function searchMemoevent(event) {
|
||||
if (event.key === "Enter") {
|
||||
searchMemo();
|
||||
}
|
||||
}
|
||||
|
||||
function searchMemo() {
|
||||
let searchText = document.querySelector('#memos-search-input').value;
|
||||
let tagHtmlNow = `<div class='memos-tag-sc-2' onclick='javascript:location.reload();'><div class='memos-tag-sc-1' >关键词搜索:</div><div class='memos-tag-sc' >${searchText}<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-auto ml-1 opacity-40"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg></div></div>`
|
||||
document.querySelector('#tag-list').innerHTML = tagHtmlNow;
|
||||
let bbUrl = memos + "api/v1/memo?creatorId=" + bbMemo.creatorId + "&content=" + searchText + "&limit=20";
|
||||
fetchMemoDOM(bbUrl);
|
||||
}
|
||||
|
||||
function fetchMemoDOM(bbUrl) {
|
||||
fetch(bbUrl)
|
||||
.then(res => res.json())
|
||||
.then(resdata => {
|
||||
let arrData = resdata || '';
|
||||
if (resdata.data) {
|
||||
arrData = resdata.data;
|
||||
}
|
||||
if (arrData.length > 0) {
|
||||
// 清空旧的搜索结果和加载按钮
|
||||
document.querySelector(bbMemo.domId).innerHTML = "";
|
||||
if (document.querySelector("button.button-load")) {
|
||||
document.querySelector("button.button-load").remove();
|
||||
// 延时加载评论数方法
|
||||
setTimeout(function() {
|
||||
Artalk.loadCountWidget({
|
||||
server: 'https://artalk.usj.cc/',
|
||||
site: '优世界',
|
||||
countEl: '#ArtalkCount'
|
||||
});
|
||||
}, 1000); // 延迟3000毫秒(也就是3秒)执行
|
||||
}
|
||||
updateHTMl(resdata);
|
||||
} else {
|
||||
alert("搜不到,尝试换一个关键词");
|
||||
setTimeout(() => location.reload(), 1000);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//增加memos评论
|
||||
function loadArtalk(memo_id) {
|
||||
const commentDiv = document.getElementById('memo_' + memo_id);
|
||||
const commentBtn = document.getElementById('btn_memo_' + memo_id);
|
||||
const allCommentDivs = document.querySelectorAll("[id^='memo_']");
|
||||
const allCommentBtns = document.querySelectorAll("[id^='btn_memo_']");
|
||||
|
||||
if (commentDiv.classList.contains('hidden')) {
|
||||
// 收起其他评论
|
||||
for (let i = 0; i < allCommentDivs.length; i++) {
|
||||
if (allCommentDivs[i] !== commentDiv) {
|
||||
allCommentDivs[i].classList.add('hidden');
|
||||
}
|
||||
}
|
||||
// 修改其他评论按钮文字
|
||||
for (let i = 0; i < allCommentBtns.length; i++) {
|
||||
if (allCommentBtns[i] !== commentBtn) {
|
||||
allCommentBtns[i].innerHTML = '<svg width="6px" height="12px" viewBox="0 0 6 12" version="1.1" xmlns="http://www.w3.org/2000/svg"><g><path d="M0.211503518,0.218577027 C0.493508208,-0.072859009 0.95072815,-0.072859009 1.23273284,0.218577027 L5.41780916,4.54361875 C6.19406361,5.34583421 6.19406361,6.65416579 5.41780916,7.45638125 L1.23273284,11.781423 C0.95072815,12.072859 0.493508208,12.072859 0.211503518,11.781423 C-0.0705011726,11.4899869 -0.0705011726,11.0174758 0.211503518,10.7260397 L4.39657984,6.400998 C4.60882491,6.18165462 4.60882491,5.81834538 4.39657984,5.599002 L0.211503518,1.27396027 C-0.0705011726,0.982524238 -0.0705011726,0.510013063 0.211503518,0.218577027 Z"></path></g></svg>';
|
||||
}
|
||||
}
|
||||
|
||||
commentDiv.classList.remove('hidden');
|
||||
commentBtn.innerHTML = '<svg width="14px" height="14px" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><g fill-rule="evenodd"><path d="M256,0 C397.167,0 512,114.853 512,256 C512,397.147 397.167,512 256,512 C114.833,512 0,397.167 0,256 C0,114.833 114.833,0 256,0 Z M256,39.659 C136.725,39.659 39.659,136.705 39.659,256 C39.659,375.295 136.725,472.341 256,472.341 C375.275,472.341 472.341,375.295 472.341,256 C472.341,136.705 375.295,39.659 256,39.659 Z M242.119,184.217 C249.853,176.523 262.345,176.523 270.079,184.217 L369.227,283.365 C376.921,291.098 376.921,303.591 369.227,311.325 C361.493,319.019 349.001,319.019 341.267,311.325 L256,226.256 L170.931,311.324 C162.622,318.443 150.09,317.472 142.971,309.163 C136.606,301.747 136.606,290.781 142.971,283.365 Z" fill-rule="nonzero"></path></g></svg>';
|
||||
//增加评论平滑定位
|
||||
// const commentLi = document.getElementById(memo_id);
|
||||
// const commentLiPosition = commentLi.getBoundingClientRect().top + window.pageYOffset;
|
||||
// const offset = commentLiPosition - 3.5 * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
||||
// if ('scrollBehavior' in document.documentElement.style) {
|
||||
// // 支持平滑滚动的情况下,使用 window.scrollTo
|
||||
// window.scrollTo({
|
||||
// top: offset,
|
||||
// behavior: 'smooth'
|
||||
// });
|
||||
// } else {
|
||||
// // 不支持平滑滚动的情况下,使用滚动容器的平滑滚动方法(如需要滚动到具体的容器内)
|
||||
// // 例如:document.documentElement.scrollTop = offset;
|
||||
// // 或者使用第三方的平滑滚动库
|
||||
// }
|
||||
const artalk = new Artalk({
|
||||
el: '#memo_' + memo_id,
|
||||
pageKey: '/m/' + memo_id,
|
||||
pageTitle: '',
|
||||
server: 'https://artalk.usj.cc/',
|
||||
site: '优世界',
|
||||
darkMode: 'auto'
|
||||
});
|
||||
} else {
|
||||
commentDiv.classList.add('hidden');
|
||||
commentBtn.innerHTML = '<svg width="6px" height="12px" viewBox="0 0 6 12" version="1.1" xmlns="http://www.w3.org/2000/svg"><g><path d="M0.211503518,0.218577027 C0.493508208,-0.072859009 0.95072815,-0.072859009 1.23273284,0.218577027 L5.41780916,4.54361875 C6.19406361,5.34583421 6.19406361,6.65416579 5.41780916,7.45638125 L1.23273284,11.781423 C0.95072815,12.072859 0.493508208,12.072859 0.211503518,11.781423 C-0.0705011726,11.4899869 -0.0705011726,11.0174758 0.211503518,10.7260397 L4.39657984,6.400998 C4.60882491,6.18165462 4.60882491,5.81834538 4.39657984,5.599002 L0.211503518,1.27396027 C-0.0705011726,0.982524238 -0.0705011726,0.510013063 0.211503518,0.218577027 Z"></path></g></svg>';
|
||||
}
|
||||
}
|
||||
|
||||
//调用coco-message插件暗黑模式
|
||||
// const darkModeMatcher = window.matchMedia('(prefers-color-scheme: dark)');
|
||||
// darkModeMatcher.addEventListener('change', handleDarkModeChange);
|
||||
// function handleDarkModeChange(e) {
|
||||
// if (e.matches) {
|
||||
// document.documentElement.classList.add('dark');
|
||||
// } else {
|
||||
// document.documentElement.classList.remove('dark');
|
||||
// }
|
||||
// }
|
||||
// handleDarkModeChange(darkModeMatcher);
|
||||
@@ -1 +0,0 @@
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var H;function f(){return H.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function F(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function L(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(c(e,t))return;return 1}function o(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function V(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function G(e,t){for(var n=[],s=e.length,i=0;i<s;++i)n.push(t(e[i],i));return n}function E(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,n,s){return Pt(e,t,n,s,!0).utc()}function m(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function A(e){if(null==e._isValid){var t=m(e),n=j.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function I(e){var t=l(NaN);return null!=e?E(m(t),e):m(t).userInvalidated=!0,t}var j=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1},Z=f.momentProperties=[],z=!1;function $(e,t){var n,s,i,r=Z.length;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=m(t)),o(t._locale)||(e._locale=t._locale),0<r)for(n=0;n<r;n++)o(i=t[s=Z[n]])||(e[s]=i);return e}function q(e){$(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,f.updateOffset(this),z=!1)}function h(e){return e instanceof q||null!=e&&null!=e._isAMomentObject}function B(e){!1===f.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(r,a){var o=!0;return E(function(){if(null!=f.deprecationHandler&&f.deprecationHandler(null,r),o){for(var e,t,n=[],s=arguments.length,i=0;i<s;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])c(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];n.push(e)}B(r+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),o=!1}return a.apply(this,arguments)},a)}var J={};function Q(e,t){null!=f.deprecationHandler&&f.deprecationHandler(e,t),J[e]||(B(t),J[e]=!0)}function d(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function X(e,t){var n,s=E({},e);for(n in t)c(t,n)&&(F(e[n])&&F(t[n])?(s[n]={},E(s[n],e[n]),E(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)c(e,n)&&!c(t,n)&&F(e[n])&&(s[n]=E({},s[n]));return s}function K(e){null!=e&&this.set(e)}f.suppressDeprecationWarnings=!1,f.deprecationHandler=null;var ee=Object.keys||function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};function r(e,t,n){var s=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-s.length)).toString().substr(1)+s}var te=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,se={},ie={};function s(e,t,n,s){var i="string"==typeof s?function(){return this[s]()}:s;e&&(ie[e]=i),t&&(ie[t[0]]=function(){return r(i.apply(this,arguments),t[1],t[2])}),n&&(ie[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function re(e,t){return e.isValid()?(t=ae(t,e.localeData()),se[t]=se[t]||function(s){for(var e,i=s.match(te),t=0,r=i.length;t<r;t++)ie[i[t]]?i[t]=ie[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<r;n++)t+=d(i[n])?i[n].call(e,s):i[n];return t}}(t),se[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function s(e){return t.longDateFormat(e)||e}for(ne.lastIndLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
moment.updateLocale("zh-cn",{meridiem:function(hour,minute,isLowercase){return hour<6?"凌晨":hour<9?"早上":hour<11&&minute<30?"上午":hour<13&&minute<30?"中午":hour<18?"下午":"晚上"}}),function(){var day,formats,hour,initialize,minute,second,week;second=1e3,minute=6e4,hour=36e5,day=864e5,week=6048e5,year=(new Date).getFullYear(),formats={seconds:{short:" 秒钟前",long:" 秒钟前"},minutes:{short:" 分钟前",long:" 分钟前"},hours:{short:" 小时前",long:" 小时前"},days:{short:" 天前",long:" 天前"}},initialize=function(moment){var twitterFormat;return twitterFormat=function(format){var diff,num,unit,unitStr;if(unit=null,num=null,(diff=Math.abs(this.diff(moment())))<=1e3)unit="seconds",num=1;else if(diff<6e4)unit="seconds";else if(diff<36e5)unit="minutes";else if(diff<day)unit="hours";else{if("long"!==format)return this.format("YYYY年MM月DD日 HH:mm");if(!(diff<week))return this.year()==year?this.format("MM月DD日 HH:mm"):this.format("YYYY年MM月DD日 HH:mm");unit="days"}return num&&unit||(num=moment.duration(diff)[unit]()),unitStr=unit=formats[unit][format],"long"===format&&num>1&&(unitStr+=""),num+unitStr},moment.fn.twitterLong=function(){return twitterFormat.call(this,"long")},moment.fn.twitter=moment.fn.twitterShort=function(){return twitterFormat.call(this,"short")},moment},"function"==typeof define&&define.amd?define("moment-twitter",["moment"],(function(moment){return this.moment=initialize(moment)})):"undefined"!=typeof module?module.exports=initialize(require("moment")):"undefined"!=typeof window&&window.moment&&(this.moment=initialize(this.moment))}.call(this);
|
||||
@@ -1,13 +0,0 @@
|
||||
/**
|
||||
* ViewImage.min.js 2.0.2
|
||||
* MIT License - http://www.opensource.org/licenses/mit-license.php
|
||||
* https://tokinx.github.io/ViewImage/
|
||||
*/
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(b){return b.raw=b};$jscomp.createTemplateTagFirstArgWithRaw=function(b,a){b.raw=a;return b};$jscomp.arrayIteratorImpl=function(b){var a=0;return function(){return a<b.length?{done:!1,value:b[a++]}:{done:!0}}};$jscomp.arrayIterator=function(b){return{next:$jscomp.arrayIteratorImpl(b)}};$jscomp.makeIterator=function(b){var a="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];return a?a.call(b):$jscomp.arrayIterator(b)};
|
||||
$jscomp.arrayFromIterator=function(b){for(var a,d=[];!(a=b.next()).done;)d.push(a.value);return d};$jscomp.arrayFromIterable=function(b){return b instanceof Array?b:$jscomp.arrayFromIterator($jscomp.makeIterator(b))};
|
||||
(function(){window.ViewImage=new function(){var b=this;this.target="[view-image] img";this.listener=function(a){if(!(a.ctrlKey||a.metaKey||a.shiftKey||a.altKey)){var d=String(b.target.split(",").map(function(g){return g.trim()+":not([no-view])"})),c=a.target.closest(d);if(c){var e=c.closest("[view-image]")||document.body;d=[].concat($jscomp.arrayFromIterable(e.querySelectorAll(d))).map(function(g){return g.href||g.src});b.display(d,c.href||c.src);a.stopPropagation();a.preventDefault()}}};this.init=
|
||||
function(a){a&&(b.target=a);["removeEventListener","addEventListener"].forEach(function(d){document[d]("click",b.listener,!1)})};this.display=function(a,d){var c=a.indexOf(d),e=(new DOMParser).parseFromString('\n <div class="view-image">\n <style>.view-image{position:fixed;inset:0;z-index:500;padding:1rem;display:flex;flex-direction:column;animation:view-image-in 300ms;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.view-image__out{animation:view-image-out 300ms}@keyframes view-image-in{0%{opacity:0}}@keyframes view-image-out{100%{opacity:0}}.view-image-btn{width:32px;height:32px;display:flex;justify-content:center;align-items:center;cursor:pointer;border-radius:3px;background-color:rgba(255,255,255,0.2)}.view-image-btn:hover{background-color:rgba(255,255,255,0.5)}.view-image-close__full{position:absolute;inset:0;background-color:rgba(48,55,66,0.3);z-index:unset;cursor:zoom-out;margin:0}.view-image-container{height:0;flex:1;display:flex;align-items:center;justify-content:center;}.view-image-lead{display:contents}.view-image-lead img{position:relative;z-index:1;max-width:100%;max-height:100%;object-fit:contain;border-radius:3px}.view-image-lead__in img{animation:view-image-lead-in 300ms}.view-image-lead__out img{animation:view-image-lead-out 300ms forwards}@keyframes view-image-lead-in{0%{opacity:0;transform:translateY(-20px)}}@keyframes view-image-lead-out{100%{opacity:0;transform:translateY(20px)}}[class*=__out] ~ .view-image-loading{display:block}.view-image-loading{position:absolute;inset:50%;width:8rem;height:2rem;color:#aab2bd;overflow:hidden;text-align:center;margin:-1rem -4rem;z-index:1;display:none}.view-image-loading::after{content:"";position:absolute;inset:50% 0;width:100%;height:3px;background:rgba(255,255,255,0.5);transform:translateX(-100%) translateY(-50%);animation:view-image-loading 800ms -100ms ease-in-out infinite}@keyframes view-image-loading{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}.view-image-tools{position:relative;display:flex;justify-content:space-between;align-content:center;color:#fff;max-width:600px;position: absolute; bottom: 5%; left: 1rem; right: 1rem; backdrop-filter: blur(10px);margin:0 auto;padding:10px;border-radius:5px;background:rgba(0,0,0,0.1);margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom);z-index:1}.view-image-tools__count{width:60px;display:flex;align-items:center;justify-content:center}.view-image-tools__flip{display:flex;gap:10px}.view-image-tools [class*=-close]{margin:0 10px}</style>\n <div class="view-image-container">\n <div class="view-image-lead"></div>\n <div class="view-image-loading"></div>\n <div class="view-image-close view-image-close__full"></div>\n </div>\n <div class="view-image-tools">\n <div class="view-image-tools__count">\n <span><b class="view-image-index">'+
|
||||
(c+1)+"</b>/"+a.length+'</span>\n </div>\n <div class="view-image-tools__flip">\n <div class="view-image-btn view-image-tools__flip-prev">\n <svg width="20" height="20" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" fill="white" fill-opacity="0.01"/><path d="M31 36L19 24L31 12" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>\n </div>\n <div class="view-image-btn view-image-tools__flip-next">\n <svg width="20" height="20" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" fill="white" fill-opacity="0.01"/><path d="M19 12L31 24L19 36" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>\n </div>\n </div>\n <div class="view-image-btn view-image-close">\n <svg width="16" height="16" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" fill="white" fill-opacity="0.01"/><path d="M8 8L40 40" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 40L40 8" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>\n </div>\n </div>\n </div>\n ',
|
||||
"text/html").body.firstChild,g=function(f){var h={Escape:"close",ArrowLeft:"tools__flip-prev",ArrowRight:"tools__flip-next"};h[f.key]&&e.querySelector(".view-image-"+h[f.key]).click()},l=function(f){var h=new Image,k=e.querySelector(".view-image-lead");k.className="view-image-lead view-image-lead__out";setTimeout(function(){k.innerHTML="";h.onload=function(){setTimeout(function(){k.innerHTML='<img src="'+h.src+'" alt="ViewImage" no-view/>';k.className="view-image-lead view-image-lead__in"},100)};
|
||||
h.src=f},300)};document.body.appendChild(e);l(d);window.addEventListener("keydown",g);e.onclick=function(f){f.target.closest(".view-image-close")?(window.removeEventListener("keydown",g),e.onclick=null,e.classList.add("view-image__out"),setTimeout(function(){return e.remove()},290)):f.target.closest(".view-image-tools__flip")&&(c=f.target.closest(".view-image-tools__flip-prev")?0===c?a.length-1:c-1:c===a.length-1?0:c+1,l(a[c]),e.querySelector(".view-image-index").innerHTML=c+1)}}}})();
|
||||
|
||||
@@ -1,243 +0,0 @@
|
||||
{
|
||||
"Emoji": {
|
||||
"type": "emoji",
|
||||
"container":[
|
||||
{
|
||||
"icon": "😂",
|
||||
"text": "哭笑不得"
|
||||
},
|
||||
{
|
||||
"icon": "😎",
|
||||
"text": "酷"
|
||||
},
|
||||
{
|
||||
"icon": "😏",
|
||||
"text": "坏笑"
|
||||
},
|
||||
{
|
||||
"icon": "😄",
|
||||
"text": "笑"
|
||||
},
|
||||
{
|
||||
"icon": "😜",
|
||||
"text": "调皮"
|
||||
},
|
||||
{
|
||||
"icon": "🤣",
|
||||
"text": "笑倒"
|
||||
},
|
||||
{
|
||||
"icon": "😭",
|
||||
"text": "大哭"
|
||||
},
|
||||
{
|
||||
"icon": "🙄",
|
||||
"text": "白眼"
|
||||
},
|
||||
{
|
||||
"icon": "🤐",
|
||||
"text": "嘘"
|
||||
},
|
||||
{
|
||||
"icon": "😋",
|
||||
"text": "美食脸"
|
||||
},
|
||||
{
|
||||
"icon": "🥶",
|
||||
"text": "冰冻"
|
||||
},
|
||||
{
|
||||
"icon": "🥵",
|
||||
"text": "热"
|
||||
},
|
||||
{
|
||||
"icon": "😴",
|
||||
"text": "睡觉"
|
||||
},
|
||||
{
|
||||
"icon": "🤧",
|
||||
"text": "打喷嚏"
|
||||
},
|
||||
{
|
||||
"icon": "🍉",
|
||||
"text": "西瓜"
|
||||
},
|
||||
{
|
||||
"icon": "😱",
|
||||
"text": "惊恐"
|
||||
},
|
||||
{
|
||||
"icon": "👋",
|
||||
"text": "招手"
|
||||
},
|
||||
{
|
||||
"icon": "🔨",
|
||||
"text": "锤子"
|
||||
},
|
||||
{
|
||||
"icon": "🐶",
|
||||
"text": "小狗"
|
||||
},
|
||||
{
|
||||
"icon": "👏",
|
||||
"text": "鼓掌"
|
||||
},
|
||||
{
|
||||
"icon": "🙈",
|
||||
"text": "不看"
|
||||
},
|
||||
{
|
||||
"icon": "😓",
|
||||
"text": "汗"
|
||||
},
|
||||
{
|
||||
"icon": "😍",
|
||||
"text": "爱心眼"
|
||||
},
|
||||
{
|
||||
"icon": "🤝",
|
||||
"text": "握手"
|
||||
},
|
||||
{
|
||||
"icon": "🥺",
|
||||
"text": "求你"
|
||||
},
|
||||
{
|
||||
"icon": "😔",
|
||||
"text": "沮丧"
|
||||
},
|
||||
{
|
||||
"icon": "😪",
|
||||
"text": "困"
|
||||
},
|
||||
{
|
||||
"icon": "😕",
|
||||
"text": "困惑"
|
||||
},
|
||||
{
|
||||
"icon": "🤷♂️",
|
||||
"text": "摊手"
|
||||
},
|
||||
{
|
||||
"icon": "😛",
|
||||
"text": "舌头"
|
||||
},
|
||||
{
|
||||
"icon": "🤭",
|
||||
"text": "偷笑"
|
||||
},
|
||||
{
|
||||
"icon": "🤮",
|
||||
"text": "呕吐"
|
||||
},
|
||||
{
|
||||
"icon": "🥺",
|
||||
"text": "求你"
|
||||
},
|
||||
{
|
||||
"icon": "🙂",
|
||||
"text": "轻松的笑"
|
||||
},
|
||||
{
|
||||
"icon": "😈",
|
||||
"text": "恶魔"
|
||||
},
|
||||
{
|
||||
"icon": "😃",
|
||||
"text": "笑脸"
|
||||
},
|
||||
{
|
||||
"icon": "🤫",
|
||||
"text": "嘘"
|
||||
},
|
||||
{
|
||||
"icon": "😒",
|
||||
"text": "无语"
|
||||
},
|
||||
{
|
||||
"icon": "😵",
|
||||
"text": "晕"
|
||||
},
|
||||
{
|
||||
"icon": "💪",
|
||||
"text": "加油"
|
||||
},
|
||||
{
|
||||
"icon": "👍",
|
||||
"text": "赞"
|
||||
},
|
||||
{
|
||||
"icon": "👎",
|
||||
"text": "踩"
|
||||
},
|
||||
{
|
||||
"icon": "😡",
|
||||
"text": "愤怒"
|
||||
},
|
||||
{
|
||||
"icon": "🤬",
|
||||
"text": "怒骂"
|
||||
},
|
||||
{
|
||||
"icon": "😖",
|
||||
"text": "心烦"
|
||||
},
|
||||
{
|
||||
"icon": "🌹",
|
||||
"text": "玫瑰"
|
||||
},
|
||||
{
|
||||
"icon": "🏃",
|
||||
"text": "跑步"
|
||||
},
|
||||
{
|
||||
"icon": "😆",
|
||||
"text": "大笑"
|
||||
},
|
||||
{
|
||||
"icon": "💵",
|
||||
"text": "钞票"
|
||||
},
|
||||
{
|
||||
"icon": "😘",
|
||||
"text": "飞吻"
|
||||
},
|
||||
{
|
||||
"icon": "😷",
|
||||
"text": "生病"
|
||||
},
|
||||
{
|
||||
"icon": "🤕",
|
||||
"text": "受伤"
|
||||
},
|
||||
{
|
||||
"icon": "🎉",
|
||||
"text": "庆祝"
|
||||
},
|
||||
{
|
||||
"icon": "❤️",
|
||||
"text": "红心"
|
||||
},
|
||||
{
|
||||
"icon": "💔",
|
||||
"text": "心碎"
|
||||
},
|
||||
{
|
||||
"icon": "😣",
|
||||
"text": "无奈"
|
||||
},
|
||||
{
|
||||
"icon": "😘",
|
||||
"text": "飞吻"
|
||||
},
|
||||
{
|
||||
"icon": "💩",
|
||||
"text": "一坨便便"
|
||||
},
|
||||
{
|
||||
"icon": "🤩",
|
||||
"text": "爱慕"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b:"function"==typeof define&&define.amd?define([],function(){return b(a)}):a.Qmsg=b(a)}(this,function(a){"use strict";function h(){var b,a=c;for(b=0;b<arguments.length;++b)a+="-"+arguments[b];return a}function i(a){var g,i,k,l,m,o,p,q,r,s,b=this;b.settings=Object.assign({},e,a||{}),b.id=n.instanceCount,g=b.settings.timeout,g=g&&parseInt(g>=0)&&parseInt(g)<=Math.NEGATIVE_INFINITY?parseInt(g):e.timeout,b.timeout=g,b.settings.timeout=g,b.timer=null,i=document.createElement("div"),k=f[b.settings.type||"info"],l=h("content-"+b.settings.type||"info"),l+=b.settings.showClose?" "+h("content-with-close"):"",m=b.settings.content||"",o=f["close"],p=b.settings.showClose?'<i class="qmsg-icon qmsg-icon-close">'+o+"</i>":"",q=document.createElement("span"),b.settings.html?q.innerHTML=m:q.innerText=m,i.innerHTML='<div class="qmsg-content"> <div class="'+l+'"> <i class="qmsg-icon">'+k+"</i>"+q.outerHTML+p+"</div> </div>",i.classList.add(h("item")),i.style.textAlign=b.settings.position,r=document.querySelector("."+c),r||(r=document.createElement("div"),r.classList.add(c),r.classList.add(h("wrapper")),r.classList.add(h("is-initialized")),document.body.appendChild(r)),r.appendChild(i),b.$wrapper=r,b.$elem=i,j(b,"opening"),b.settings.showClose&&i.querySelector(".qmsg-icon-close").addEventListener("click",function(){b.close()}.bind(i)),i.addEventListener("animationend",function(a){var b=a.target,c=a.animationName;c===d["closing"]&&(clearInterval(this.timer),this.destroy()),b.style.animationName=""}.bind(b)),b.settings.autoClose&&(s=10,b.timer=setInterval(function(){this.timeout-=s,this.timeout<=0&&(clearInterval(this.timer),this.close())}.bind(b),s),b.$elem.addEventListener("mouseover",function(){clearInterval(this.timer)}.bind(b)),b.$elem.addEventListener("mouseout",function(){"closing"!==this.state&&(this.timer=setInterval(function(){this.timeout-=s,this.timeout<=0&&(clearInterval(this.timer),this.close())}.bind(b),s))}.bind(b)))}function j(a,b){b&&d[b]&&(a.state=b,a.$elem.style.animationName=d[b])}function k(a){var b=h("count"),c=a.$elem.querySelector('[class^="qmsg-content-"]'),d=c.querySelector("."+b);d||(d=document.createElement("span"),d.classList.add(b),c.appendChild(d)),d.innerHTML=a.count,d.style.animationName="",d.style.animationName="MessageShake",a.timeout=a.settings.timeout||e.timeout}function l(a,b){var c=Object.assign({},e);return 0===arguments.length?c:a instanceof Object?Object.assign(c,a):(c.content=a.toString(),b instanceof Object?Object.assign(c,b):c)}function m(a){var b,c,d,e,f,g,h,j,l,m;a=a||{},b=JSON.stringify(a),c=-1;for(e in this.oMsgs)if(f=this.oMsgs[e],f.config===b){c=e,d=f.inst;break}if(0>c){if(this.instanceCount++,g={},g.id=this.instanceCount,g.config=b,d=new i(a),d.id=this.instanceCount,d.count="",g.inst=d,this.oMsgs[this.instanceCount]=g,h=this.oMsgs.length,j=this.maxNums,h>j)for(l=0,m=this.oMsgs,l;h-j>l;l++)m[l]&&m[l].inst.settings.autoClose&&m[l].inst.close()}else d.count=d.count?d.count>=99?d.count:d.count+1:2,k(d);return d.$elem.setAttribute("data-count",d.count),d}var b,c,d,e,f,g,n;return"function"!=typeof Object.assign&&(Object.assign=function(a){var b,c,d;if(null==a)throw new TypeError("Cannot convert undefined or null to object");for(a=Object(a),b=1;b<arguments.length;b++)if(c=arguments[b],null!=c)for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d]);return a}),"classList"in document.documentElement||Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){function b(b){return function(c){var d=a.className.split(/\s+/g),e=d.indexOf(c);b(d,e,c),a.className=d.join(" ")}}var a=this;return{add:b(function(a,b,c){~b||a.push(c)}),remove:b(function(a,b){~b&&a.splice(b,1)}),toggle:b(function(a,b,c){~b?a.splice(b,1):a.push(c)}),contains:function(b){return!!~a.className.split(/\s+/g).indexOf(b)},item:function(b){return a.className.split(/\s+/g)[b]||null}}}}),b="qmsg",c=a&&a.QMSG_GLOBALS&&a.QMSG_GLOBALS.NAMESPACE||b,d={opening:"MessageMoveIn",done:"",closing:"MessageMoveOut"},e=Object.assign({position:"center",type:"info",showClose:!1,timeout:2500,animation:!0,autoClose:!0,content:"",onClose:null,maxNums:5,html:!1},a&&a.QMSG_GLOBALS&&a.QMSG_GLOBALS.DEFAULTS),f={info:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M512 64q190.016 4.992 316.512 131.488T960 512q-4.992 190.016-131.488 316.512T512 960q-190.016-4.992-316.512-131.488T64 512q4.992-190.016 131.488-316.512T512 64zm67.008 275.008q26.016 0 43.008-15.488t16.992-41.504-16.992-41.504-42.496-15.488-42.496 15.488-16.992 41.504 16.992 41.504 42.016 15.488zm12 360q0-6.016.992-16T592 664l-52.992 60.992q-8 8.992-16.512 14.016T508 742.016q-8.992-4-8-14.016l88-276.992q4.992-28-8.992-48t-44.992-24q-35.008.992-76.512 29.504t-72.512 72.512v15.008q-.992 10.016 0 19.008l52.992-60.992q8-8.992 16.512-14.016T468 437.024q10.016 4.992 7.008 16l-87.008 276q-7.008 24.992 7.008 44.512T4Line truncated
|
||||
@@ -1,46 +0,0 @@
|
||||
function loadArtalk(memo_id) {
|
||||
const commentDiv = document.getElementById('memo_' + memo_id);
|
||||
const commentBtn = document.getElementById('btn_memo_' + memo_id);
|
||||
if (commentDiv.style.display === 'none') {
|
||||
commentDiv.style.display = 'block';
|
||||
commentBtn.innerHTML = '收起评论';
|
||||
new Artalk({
|
||||
el: '#memo_' + memo_id, // 绑定元素的 Selector
|
||||
pageKey: '/m/' + memo_id, // 固定链接 (留空自动获取)
|
||||
pageTitle: '', // 页面标题 (留空自动获取)
|
||||
server: 'https://artalk.usj.cc', // 后端地址
|
||||
site: '优世界', // 在后端中创建的站点名
|
||||
});
|
||||
} else {
|
||||
commentDiv.style.display = 'none';
|
||||
commentBtn.innerHTML = '点击评论';
|
||||
}
|
||||
}
|
||||
|
||||
Artalk.loadCountWidget({
|
||||
server: 'https://artalk.usj.cc',
|
||||
site: '优世界',
|
||||
pvEl: '#ArtalkPV',
|
||||
countEl: '#ArtalkCount',
|
||||
});
|
||||
|
||||
function getTotal() {
|
||||
var totalUrl = "https://memos.usj.cc/api/memo/stats?creatorId=1"
|
||||
fetch(totalUrl).then(res => res.json()).then(resdata => {
|
||||
if (resdata.data) {
|
||||
var allnums = resdata.data.length
|
||||
var memosCount = document.getElementById('memosCount');
|
||||
memosCount.innerHTML = allnums;
|
||||
}
|
||||
}).catch(err => {
|
||||
// Do something for an error here
|
||||
});
|
||||
};
|
||||
window.onload = getTotal();
|
||||
// Memos Total End
|
||||
// 激活灯箱插件
|
||||
window.ViewImage && ViewImage.init('.text img , .memos-photo img');
|
||||
|
||||
// 将说说页面第一个和最后一个 hr 标签的 display 属性设置为 none
|
||||
$("hr").first().css('display', 'none');
|
||||
$("hr").last().css('display', 'none');
|
||||
@@ -103,12 +103,10 @@
|
||||
<script src="/js/iconfont.js"></script>
|
||||
<script src="/js/lightgallery.umd.min.js"></script>
|
||||
<script src="/js/uikit.min.js"></script>
|
||||
<script src="/js/message.min.js"></script>
|
||||
<script src="/js/EasyLazyload.min.js"></script>
|
||||
<script src="/js/view-image.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/memos/js/memos.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -103,12 +103,10 @@
|
||||
<script src="/js/iconfont.js"></script>
|
||||
<script src="/js/lightgallery.umd.min.js"></script>
|
||||
<script src="/js/uikit.min.js"></script>
|
||||
<script src="/js/message.min.js"></script>
|
||||
<script src="/js/EasyLazyload.min.js"></script>
|
||||
<script src="/js/view-image.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/memos/js/memos.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -105,12 +105,10 @@
|
||||
<script src="/js/iconfont.js"></script>
|
||||
<script src="/js/lightgallery.umd.min.js"></script>
|
||||
<script src="/js/uikit.min.js"></script>
|
||||
<script src="/js/message.min.js"></script>
|
||||
<script src="/js/EasyLazyload.min.js"></script>
|
||||
<script src="/js/view-image.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/memos/js/memos.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -110,12 +110,10 @@
|
||||
<script src="/js/iconfont.js"></script>
|
||||
<script src="/js/lightgallery.umd.min.js"></script>
|
||||
<script src="/js/uikit.min.js"></script>
|
||||
<script src="/js/message.min.js"></script>
|
||||
<script src="/js/EasyLazyload.min.js"></script>
|
||||
<script src="/js/view-image.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/memos/js/memos.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -104,12 +104,10 @@
|
||||
<script src="/js/iconfont.js"></script>
|
||||
<script src="/js/lightgallery.umd.min.js"></script>
|
||||
<script src="/js/uikit.min.js"></script>
|
||||
<script src="/js/message.min.js"></script>
|
||||
<script src="/js/EasyLazyload.min.js"></script>
|
||||
<script src="/js/view-image.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/memos/js/memos.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -115,12 +115,10 @@ Exercitation voluptate irure in irure tempor mollit Lorem nostrud ad officia. Ve
|
||||
<script src="/js/iconfont.js"></script>
|
||||
<script src="/js/lightgallery.umd.min.js"></script>
|
||||
<script src="/js/uikit.min.js"></script>
|
||||
<script src="/js/message.min.js"></script>
|
||||
<script src="/js/EasyLazyload.min.js"></script>
|
||||
<script src="/js/view-image.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/memos/js/memos.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -105,12 +105,10 @@
|
||||
<script src="/js/iconfont.js"></script>
|
||||
<script src="/js/lightgallery.umd.min.js"></script>
|
||||
<script src="/js/uikit.min.js"></script>
|
||||
<script src="/js/message.min.js"></script>
|
||||
<script src="/js/EasyLazyload.min.js"></script>
|
||||
<script src="/js/view-image.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/memos/js/memos.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -100,12 +100,10 @@
|
||||
<script src="/js/iconfont.js"></script>
|
||||
<script src="/js/lightgallery.umd.min.js"></script>
|
||||
<script src="/js/uikit.min.js"></script>
|
||||
<script src="/js/message.min.js"></script>
|
||||
<script src="/js/EasyLazyload.min.js"></script>
|
||||
<script src="/js/view-image.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/memos/js/memos.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -105,12 +105,10 @@
|
||||
<script src="/js/iconfont.js"></script>
|
||||
<script src="/js/lightgallery.umd.min.js"></script>
|
||||
<script src="/js/uikit.min.js"></script>
|
||||
<script src="/js/message.min.js"></script>
|
||||
<script src="/js/EasyLazyload.min.js"></script>
|
||||
<script src="/js/view-image.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/memos/js/memos.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -110,12 +110,10 @@
|
||||
<script src="/js/iconfont.js"></script>
|
||||
<script src="/js/lightgallery.umd.min.js"></script>
|
||||
<script src="/js/uikit.min.js"></script>
|
||||
<script src="/js/message.min.js"></script>
|
||||
<script src="/js/EasyLazyload.min.js"></script>
|
||||
<script src="/js/view-image.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/memos/js/memos.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -110,12 +110,10 @@
|
||||
<script src="/js/iconfont.js"></script>
|
||||
<script src="/js/lightgallery.umd.min.js"></script>
|
||||
<script src="/js/uikit.min.js"></script>
|
||||
<script src="/js/message.min.js"></script>
|
||||
<script src="/js/EasyLazyload.min.js"></script>
|
||||
<script src="/js/view-image.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/memos/js/memos.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -15,12 +15,10 @@
|
||||
<script src="/js/iconfont.js"></script>
|
||||
<script src="/js/lightgallery.umd.min.js"></script>
|
||||
<script src="/js/uikit.min.js"></script>
|
||||
<script src="/js/message.min.js"></script>
|
||||
<script src="/js/EasyLazyload.min.js"></script>
|
||||
<script src="/js/view-image.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/memos/js/memos.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,667 +0,0 @@
|
||||
.OwO {
|
||||
position: relative;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
@media (max-width: 767.98px){
|
||||
.OwO {
|
||||
position: relative;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
left: 0%!important;
|
||||
}
|
||||
}
|
||||
.OwO:hover .OwO-logo {
|
||||
color: #444
|
||||
}
|
||||
|
||||
.OwO.OwO-open .OwO-logo {
|
||||
border-radius: 4px 4px 0 0;
|
||||
border-bottom: none;
|
||||
color: #444
|
||||
}
|
||||
|
||||
.OwO.OwO-open .OwO-body {
|
||||
display: block
|
||||
}
|
||||
|
||||
.OwO.OwO-up .OwO-body {
|
||||
top: inherit;
|
||||
bottom: 21px;
|
||||
border-radius: 4px 4px 4px 0
|
||||
}
|
||||
|
||||
.OwO.OwO-up .OwO-body .OwO-bar .OwO-packages li:nth-child(1) {
|
||||
border-radius: 0
|
||||
}
|
||||
|
||||
.OwO.OwO-up.OwO-open .OwO-logo {
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 0 0 4px 4px;
|
||||
border-top: none
|
||||
}
|
||||
|
||||
.OwO .OwO-logo {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
color: #888;
|
||||
background: #fff;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
padding: 2px 5px;
|
||||
cursor: pointer;
|
||||
height: 22px;
|
||||
box-sizing: border-box;
|
||||
z-index: 2;
|
||||
line-height: 16px
|
||||
}
|
||||
|
||||
.OwO .OwO-logo:hover span {
|
||||
display: inline-block;
|
||||
-webkit-animation: a 5s infinite ease-in-out;
|
||||
animation: a 5s infinite ease-in-out
|
||||
}
|
||||
|
||||
.OwO .OwO-body {
|
||||
display: none;
|
||||
position: absolute;
|
||||
width: 400px;
|
||||
background: #fff;
|
||||
border: 1px solid #ddd;
|
||||
z-index: 1;
|
||||
top: 21px;
|
||||
border-radius: 0 4px 4px 4px
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-items {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
display: none;
|
||||
padding: 10px;
|
||||
margin: 0;
|
||||
overflow: scroll;
|
||||
font-size: 0
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-items .OwO-item {
|
||||
list-style-type: none;
|
||||
background: #f7f7f7;
|
||||
padding: 5px 10px;
|
||||
border-radius: 5px;
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
margin: 0 10px 12px 0;
|
||||
cursor: pointer;
|
||||
-webkit-transition: .3s;
|
||||
transition: .3s
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-items .OwO-item:hover {
|
||||
background: #eee;
|
||||
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
|
||||
-webkit-animation: a 5s infinite ease-in-out;
|
||||
animation: a 5s infinite ease-in-out
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-items-emoji .OwO-item {
|
||||
font-size: 20px;
|
||||
line-height: 19px
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-items-image .OwO-item {
|
||||
max-width: calc(25% - 10px);
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-items-image .OwO-item img {
|
||||
max-width: 100%
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-items-show {
|
||||
display: block
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-bar {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
border-top: 1px solid #ddd;
|
||||
background: #fff;
|
||||
border-radius: 0 0 4px 4px;
|
||||
color: #444
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-bar .OwO-packages {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 0
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-bar .OwO-packages li {
|
||||
list-style-type: none;
|
||||
display: inline-block;
|
||||
line-height: 30px;
|
||||
font-size: 14px;
|
||||
padding: 0 10px;
|
||||
cursor: pointer;
|
||||
margin-right: 3px
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-bar .OwO-packages li:nth-child(1) {
|
||||
border-radius: 0 0 0 3px
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-bar .OwO-packages li:hover {
|
||||
background: #eee
|
||||
}
|
||||
|
||||
.OwO .OwO-body .OwO-bar .OwO-packages .OwO-package-active {
|
||||
background: #eee;
|
||||
-webkit-transition: .3s;
|
||||
transition: .3s
|
||||
}
|
||||
|
||||
@-webkit-keyframes a {
|
||||
2% {
|
||||
-webkit-transform: translateY(1.5px) rotate(1.5deg);
|
||||
transform: translateY(1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
4% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-.5deg);
|
||||
transform: translateY(-1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
6% {
|
||||
-webkit-transform: translateY(1.5px) rotate(-1.5deg);
|
||||
transform: translateY(1.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
8% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-1.5deg);
|
||||
transform: translateY(-1.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
10% {
|
||||
-webkit-transform: translateY(2.5px) rotate(1.5deg);
|
||||
transform: translateY(2.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
12% {
|
||||
-webkit-transform: translateY(-.5px) rotate(1.5deg);
|
||||
transform: translateY(-.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
14% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(1.5deg);
|
||||
transform: translateY(-1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
16% {
|
||||
-webkit-transform: translateY(-.5px) rotate(-1.5deg);
|
||||
transform: translateY(-.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
18% {
|
||||
-webkit-transform: translateY(.5px) rotate(-1.5deg);
|
||||
transform: translateY(.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
20% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(2.5deg);
|
||||
transform: translateY(-1.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
22% {
|
||||
-webkit-transform: translateY(.5px) rotate(-1.5deg);
|
||||
transform: translateY(.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
24% {
|
||||
-webkit-transform: translateY(1.5px) rotate(1.5deg);
|
||||
transform: translateY(1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
26% {
|
||||
-webkit-transform: translateY(.5px) rotate(.5deg);
|
||||
transform: translateY(.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
28% {
|
||||
-webkit-transform: translateY(.5px) rotate(1.5deg);
|
||||
transform: translateY(.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
30% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
32%,
|
||||
34% {
|
||||
-webkit-transform: translateY(1.5px) rotate(-.5deg);
|
||||
transform: translateY(1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
36% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(2.5deg);
|
||||
transform: translateY(-1.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
38% {
|
||||
-webkit-transform: translateY(1.5px) rotate(-1.5deg);
|
||||
transform: translateY(1.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
40% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
42% {
|
||||
-webkit-transform: translateY(2.5px) rotate(-1.5deg);
|
||||
transform: translateY(2.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
44% {
|
||||
-webkit-transform: translateY(1.5px) rotate(.5deg);
|
||||
transform: translateY(1.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
46% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(2.5deg);
|
||||
transform: translateY(-1.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
48% {
|
||||
-webkit-transform: translateY(-.5px) rotate(.5deg);
|
||||
transform: translateY(-.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
50% {
|
||||
-webkit-transform: translateY(.5px) rotate(.5deg);
|
||||
transform: translateY(.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
52% {
|
||||
-webkit-transform: translateY(2.5px) rotate(2.5deg);
|
||||
transform: translateY(2.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
54% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(1.5deg);
|
||||
transform: translateY(-1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
56% {
|
||||
-webkit-transform: translateY(2.5px) rotate(2.5deg);
|
||||
transform: translateY(2.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
58% {
|
||||
-webkit-transform: translateY(.5px) rotate(2.5deg);
|
||||
transform: translateY(.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
60% {
|
||||
-webkit-transform: translateY(2.5px) rotate(2.5deg);
|
||||
transform: translateY(2.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
62% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
64% {
|
||||
-webkit-transform: translateY(-.5px) rotate(1.5deg);
|
||||
transform: translateY(-.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
66% {
|
||||
-webkit-transform: translateY(1.5px) rotate(-.5deg);
|
||||
transform: translateY(1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
68% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-.5deg);
|
||||
transform: translateY(-1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
70% {
|
||||
-webkit-transform: translateY(1.5px) rotate(.5deg);
|
||||
transform: translateY(1.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
72% {
|
||||
-webkit-transform: translateY(2.5px) rotate(1.5deg);
|
||||
transform: translateY(2.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
74% {
|
||||
-webkit-transform: translateY(-.5px) rotate(.5deg);
|
||||
transform: translateY(-.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
76% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
78% {
|
||||
-webkit-transform: translateY(-.5px) rotate(1.5deg);
|
||||
transform: translateY(-.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
80% {
|
||||
-webkit-transform: translateY(1.5px) rotate(1.5deg);
|
||||
transform: translateY(1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
82% {
|
||||
-webkit-transform: translateY(-.5px) rotate(.5deg);
|
||||
transform: translateY(-.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
84% {
|
||||
-webkit-transform: translateY(1.5px) rotate(2.5deg);
|
||||
transform: translateY(1.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
86% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-1.5deg);
|
||||
transform: translateY(-1.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
88% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
90% {
|
||||
-webkit-transform: translateY(2.5px) rotate(-.5deg);
|
||||
transform: translateY(2.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
92% {
|
||||
-webkit-transform: translateY(.5px) rotate(-.5deg);
|
||||
transform: translateY(.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
94% {
|
||||
-webkit-transform: translateY(2.5px) rotate(.5deg);
|
||||
transform: translateY(2.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
96% {
|
||||
-webkit-transform: translateY(-.5px) rotate(1.5deg);
|
||||
transform: translateY(-.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
98% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-.5deg);
|
||||
transform: translateY(-1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
0%,
|
||||
to {
|
||||
-webkit-transform: translate(0) rotate(0deg);
|
||||
transform: translate(0) rotate(0deg)
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes a {
|
||||
2% {
|
||||
-webkit-transform: translateY(1.5px) rotate(1.5deg);
|
||||
transform: translateY(1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
4% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-.5deg);
|
||||
transform: translateY(-1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
6% {
|
||||
-webkit-transform: translateY(1.5px) rotate(-1.5deg);
|
||||
transform: translateY(1.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
8% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-1.5deg);
|
||||
transform: translateY(-1.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
10% {
|
||||
-webkit-transform: translateY(2.5px) rotate(1.5deg);
|
||||
transform: translateY(2.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
12% {
|
||||
-webkit-transform: translateY(-.5px) rotate(1.5deg);
|
||||
transform: translateY(-.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
14% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(1.5deg);
|
||||
transform: translateY(-1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
16% {
|
||||
-webkit-transform: translateY(-.5px) rotate(-1.5deg);
|
||||
transform: translateY(-.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
18% {
|
||||
-webkit-transform: translateY(.5px) rotate(-1.5deg);
|
||||
transform: translateY(.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
20% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(2.5deg);
|
||||
transform: translateY(-1.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
22% {
|
||||
-webkit-transform: translateY(.5px) rotate(-1.5deg);
|
||||
transform: translateY(.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
24% {
|
||||
-webkit-transform: translateY(1.5px) rotate(1.5deg);
|
||||
transform: translateY(1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
26% {
|
||||
-webkit-transform: translateY(.5px) rotate(.5deg);
|
||||
transform: translateY(.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
28% {
|
||||
-webkit-transform: translateY(.5px) rotate(1.5deg);
|
||||
transform: translateY(.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
30% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
32%,
|
||||
34% {
|
||||
-webkit-transform: translateY(1.5px) rotate(-.5deg);
|
||||
transform: translateY(1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
36% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(2.5deg);
|
||||
transform: translateY(-1.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
38% {
|
||||
-webkit-transform: translateY(1.5px) rotate(-1.5deg);
|
||||
transform: translateY(1.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
40% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
42% {
|
||||
-webkit-transform: translateY(2.5px) rotate(-1.5deg);
|
||||
transform: translateY(2.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
44% {
|
||||
-webkit-transform: translateY(1.5px) rotate(.5deg);
|
||||
transform: translateY(1.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
46% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(2.5deg);
|
||||
transform: translateY(-1.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
48% {
|
||||
-webkit-transform: translateY(-.5px) rotate(.5deg);
|
||||
transform: translateY(-.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
50% {
|
||||
-webkit-transform: translateY(.5px) rotate(.5deg);
|
||||
transform: translateY(.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
52% {
|
||||
-webkit-transform: translateY(2.5px) rotate(2.5deg);
|
||||
transform: translateY(2.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
54% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(1.5deg);
|
||||
transform: translateY(-1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
56% {
|
||||
-webkit-transform: translateY(2.5px) rotate(2.5deg);
|
||||
transform: translateY(2.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
58% {
|
||||
-webkit-transform: translateY(.5px) rotate(2.5deg);
|
||||
transform: translateY(.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
60% {
|
||||
-webkit-transform: translateY(2.5px) rotate(2.5deg);
|
||||
transform: translateY(2.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
62% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
64% {
|
||||
-webkit-transform: translateY(-.5px) rotate(1.5deg);
|
||||
transform: translateY(-.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
66% {
|
||||
-webkit-transform: translateY(1.5px) rotate(-.5deg);
|
||||
transform: translateY(1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
68% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-.5deg);
|
||||
transform: translateY(-1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
70% {
|
||||
-webkit-transform: translateY(1.5px) rotate(.5deg);
|
||||
transform: translateY(1.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
72% {
|
||||
-webkit-transform: translateY(2.5px) rotate(1.5deg);
|
||||
transform: translateY(2.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
74% {
|
||||
-webkit-transform: translateY(-.5px) rotate(.5deg);
|
||||
transform: translateY(-.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
76% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
78% {
|
||||
-webkit-transform: translateY(-.5px) rotate(1.5deg);
|
||||
transform: translateY(-.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
80% {
|
||||
-webkit-transform: translateY(1.5px) rotate(1.5deg);
|
||||
transform: translateY(1.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
82% {
|
||||
-webkit-transform: translateY(-.5px) rotate(.5deg);
|
||||
transform: translateY(-.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
84% {
|
||||
-webkit-transform: translateY(1.5px) rotate(2.5deg);
|
||||
transform: translateY(1.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
86% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-1.5deg);
|
||||
transform: translateY(-1.5px) rotate(-1.5deg)
|
||||
}
|
||||
|
||||
88% {
|
||||
-webkit-transform: translateY(-.5px) rotate(2.5deg);
|
||||
transform: translateY(-.5px) rotate(2.5deg)
|
||||
}
|
||||
|
||||
90% {
|
||||
-webkit-transform: translateY(2.5px) rotate(-.5deg);
|
||||
transform: translateY(2.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
92% {
|
||||
-webkit-transform: translateY(.5px) rotate(-.5deg);
|
||||
transform: translateY(.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
94% {
|
||||
-webkit-transform: translateY(2.5px) rotate(.5deg);
|
||||
transform: translateY(2.5px) rotate(.5deg)
|
||||
}
|
||||
|
||||
96% {
|
||||
-webkit-transform: translateY(-.5px) rotate(1.5deg);
|
||||
transform: translateY(-.5px) rotate(1.5deg)
|
||||
}
|
||||
|
||||
98% {
|
||||
-webkit-transform: translateY(-1.5px) rotate(-.5deg);
|
||||
transform: translateY(-1.5px) rotate(-.5deg)
|
||||
}
|
||||
|
||||
0%,
|
||||
to {
|
||||
-webkit-transform: translate(0) rotate(0deg);
|
||||
transform: translate(0) rotate(0deg)
|
||||
}
|
||||
}
|
||||
@@ -1,143 +0,0 @@
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
#app {
|
||||
margin: 0 auto;
|
||||
width: 640px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.YEmotion {
|
||||
position: relative;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
.YEmotion .YEmotion-face {
|
||||
display: inline-block;
|
||||
outline: 0;
|
||||
border: 1px solid black;
|
||||
border-radius: 5px;
|
||||
padding: 5px 8px;
|
||||
line-height: 1rem;
|
||||
font-size: 0.9rem;
|
||||
background-color: #fff;
|
||||
transition: 0.3s ease background-color, 0.3s ease color;
|
||||
}
|
||||
.YEmotion .YEmotion-face:hover,
|
||||
.YEmotion .YEmotion-face:focus,
|
||||
.YEmotion .YEmotion-face.show {
|
||||
background-color: black;
|
||||
color: white;
|
||||
}
|
||||
.YEmotion .YEmotion-container {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
width: var(--mWidth);
|
||||
max-height: 0;
|
||||
transform: translateY(50px);
|
||||
border-radius: 5px;
|
||||
transition: 0.3s ease transform;
|
||||
overflow: hidden;
|
||||
}
|
||||
.YEmotion .YEmotion-container.show {
|
||||
height: var(--mHeight);
|
||||
max-height: var(--mHeight);
|
||||
transform: translateY(0px);
|
||||
background-color: #eee;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-coverbox {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background-color: #eee;
|
||||
color: #333;
|
||||
font-size: 0.9rem;
|
||||
border-radius: 5px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist {
|
||||
padding: 8px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist.top {
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist.bottom {
|
||||
border-top: 1px solid #ddd;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
height: 5px;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist::-webkit-scrollbar-button {
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist::-webkit-scrollbar-thumb {
|
||||
min-width: 28px;
|
||||
background-color: rgba(0, 0, 0, 0.2);
|
||||
-webkit-background-clip: padding-box;
|
||||
background-clip: padding-box;
|
||||
border-radius: 5px;
|
||||
-webkit-box-shadow: inset 1px 1px 0 rgb(0 0 0%), inset 0 -1px 0 rgb(0 0 0%);
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist .YEmotion-type-select {
|
||||
display: inline-block;
|
||||
background-color: transparent;
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
line-height: 1;
|
||||
padding: 5px 8px;
|
||||
border-radius: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist .YEmotion-type-select:hover,
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist .YEmotion-type-selectfocus,
|
||||
.YEmotion .YEmotion-container .YEmotion-typelist .YEmotion-type-select.current {
|
||||
background-color: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-emolist-container {
|
||||
position: relative;
|
||||
height: var(--mHeight);
|
||||
background-color: white;
|
||||
overflow: hiddent;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-emolist-container .YEmotion-emolist {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
transform: translateX(calc(0 - var(--mWidth)));
|
||||
overflow-y: auto;
|
||||
padding: 8px;
|
||||
transition: 0.3s ease transform;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-emolist-container .YEmotion-emolist:not(.current) {
|
||||
transform: translateX(var(--mWidth));
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-emolist-container .YEmotion-emolist .YEmotion-emo-button {
|
||||
padding: 5px 8px;
|
||||
margin-bottom: 5px;
|
||||
margin-right: 5px;
|
||||
border-radius: 5px;
|
||||
text-decoration: none;
|
||||
color: #666;
|
||||
background-color: #eee;
|
||||
transition: 0.3s ease all;
|
||||
}
|
||||
.YEmotion .YEmotion-container .YEmotion-emolist-container .YEmotion-emolist .YEmotion-emo-button:hover,
|
||||
.YEmotion .YEmotion-container .YEmotion-emolist-container .YEmotion-emolist .YEmotion-emo-button:focus {
|
||||
text-decoration: none;
|
||||
background-color: #333;
|
||||
color: white;
|
||||
}
|
||||
#showResult {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
#showResult .biaoqing {
|
||||
width: 24px;
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
@charset "UTF-8";.artalk,.atk-layer-wrap{--at-color-font: #2a2e2e;--at-color-deep: #2a2e2e;--at-color-sub: #757575;--at-color-grey: #747474;--at-color-meta: #697182;--at-color-border: #eceff2;--at-color-light: #000000;--at-color-bg: #FFF;--at-color-bg-transl: rgba(255, 255, 255, .94);--at-color-bg-grey: #f3f4f5;--at-color-bg-grey-transl: rgba(244, 244, 244, .75);--at-color-bg-light: rgba(29, 161, 242, .1);--at-color-main: #000000;--at-color-red: #ff5652;--at-color-pink: #fa5a57;--at-color-yellow: #ff7c37;--at-color-green: #4caf50;--at-color-gradient: linear-gradient(180deg, transparent, rgba(255, 255, 255))}.artalk.atk-dark-mode,.atk-layer-wrap.atk-dark-mode{--at-color-font: #fff;--at-color-deep: #e7e7e7;--at-color-sub: #e7e7e7;--at-color-grey: #fff;--at-color-meta: #fff;--at-color-border: #2d3235;--at-color-light: #687a86;--at-color-bg: #1e2224;--at-color-bg-transl: rgba(30, 34, 36, .95);--at-color-bg-grey: #46494e;--at-color-bg-grey-transl: rgba(8, 8, 8, .95);--at-color-bg-light: rgba(29, 161, 242, .1);--at-color-main: #0083ff;--at-color-red: #ff5652;--at-color-pink: #fa5a57;--at-color-yellow: #ff7c37;--at-color-green: #4caf50;--at-color-gradient: linear-gradient(180deg, transparent, rgba(30, 34, 36, 1))}.atk-comment-wrap{overflow:hidden;position:relative;border-bottom:1px solid transparent}.atk-comment-wrap.atk-flash-once{animation:atkFlashOnce 1s ease-in-out 0s}@keyframes atkFlashOnce{0%{background:rgba(0,131,255,.2)}to{background:transparent}}.atk-comment-wrap.atk-unread:before{content:" ";position:absolute;left:0;top:10%;width:3px;height:80%;background:var(--at-color-main)}.atk-comment-wrap.atk-openable{cursor:pointer}.atk-comment-wrap.atk-openable:hover{background:var(--at-color-bg-grey)}.atk-comment-wrap.atk-openable .atk-height-limit:after{background:transparent!important}.atk-comment-wrap:last-child{border-bottom:none}.atk-comment{display:block;padding:12px 10px}.atk-comment>.atk-avatar{display:block;padding:2px 0;float:left}.atk-comment>.atk-avatar img{width:50px;height:50px;border-radius:3px}.atk-comment>.atk-main{display:block;margin-left:63px}.atk-comment>.atk-main>.atk-header{line-height:1.5;font-size:13px;margin-bottom:.5em;overflow:hidden;position:relative;display:flex;flex-wrap:wrap;align-items:center}.atk-comment>.atk-main>.atk-header .atk-item{display:flex;align-items:center;margin-top:2px;margin-bottom:2px;color:var(--at-color-meta)}.atk-comment>.atk-main>.atk-header .atk-item:not(:last-child){margin-right:6px}.atk-comment>.atk-main>.atk-header .atk-item.atk-nick,.atk-comment>.atk-main>.atk-header .atk-item.atk-nick a{font-size:14px;color:var(--at-color-main);text-decoration:none}.atk-comment>.atk-main>.atk-header .atk-item.atk-reply-at{margin-left:2px}.atk-comment>.atk-main>.atk-header .atk-item.atk-reply-at>.atk-arrow:before{content:"";vertical-align:middle;transform:rotate(90deg);border-bottom:4px solid var(--at-color-grey);border-left:3px solid transparent;border-right:3px solid transparent;display:inline-block;margin-top:-1px}.atk-comment>.atk-main>.atk-header .atk-item.atk-reply-at>.atk-nick{color:var(--at-color-main);cursor:pointer;margin-left:6px}.atk-comment>.atk-main>.atk-header .badge,.atk-comment>.atk-main>.atk-header .atk-ua,.atk-comment>.atk-main>.atk-header .atk-pinned-badge,.atk-comment>.atk-main>.atk-header .atk-region-badge,.atk-comment>.atk-main>.atk-header .atk-badge{display:inline-block;color:var(--at-color-meta);background:var(--at-color-bg-grey);padding:0 6px;line-height:17px;border-radius:3px}.atk-comment>.atk-main>.atk-header .badge:not(:last-child),.atk-comment>.atk-main>.atk-header .atk-ua:not(:last-child),.atk-comment>.atk-main>.atk-header .atk-pinned-badge:not(:last-child),.atk-comment>.atk-main>.atk-header .atk-region-badge:not(:last-child),.atk-comment>.atk-main>.atk-header .atk-badge:not(:last-child){margin-right:6px}.atk-comment>.atk-main>.atk-header .atk-badge-wrap>*:last-child{margin-right:6px}.atk-comment>.atk-main>.atk-header .atk-badge{color:#fff}.atk-comment>.atk-main>.atk-header .atk-pinned-badge{color:#fff;background:#f44336}@media only screen and (max-width: 768px){.atk-comment>.atk-main>.atk-header .atk-ua-wrap{display:block}}.atk-comment>.atk-main>.atk-body{display:block;overflow:hidden;position:relative}.atk-comment>.atk-main>.atk-body img{max-width:100%}.atk-comment>.atk-main>.atk-body>.atk-content{word-break:break-all}.atk-comment>.atk-main>.atk-body>.atk-content.atk-type-collapsed{border:3px solid var(--at-color-bg-grey);border-bottom:0;padding:5px 10px;border-radius:6px 6px 0 0;margin-bottom:-5px}.atk-comment>.atk-main>.atk-body>.atk-content>*:first-child{margin-top:0}.atk-comment>.atk-main>.atk-body>.atk-content>*:last-child{margin-bottom:0}.atk-comment>.atk-main>.atk-body>.atk-content .atk-height-limit-btn{bottom:5px}.atk-comment>.atk-main>.atk-body>.atk-pending{color:var(--at-color-meta);margin:3px 0;font-size:13px;padding:10px 18px;display:block;background:var(--at-color-bg-grey);border-left:4px solid #f44336}.atk-comment>.atk-main>.Line truncated
|
||||
@@ -1,12 +0,0 @@
|
||||
.barrage{position: fixed;bottom:70px;right:-500px;display: inline-block;width: 500px;z-index: 1}
|
||||
.barrage_box{background-color: rgba(0,0,0,.5);padding-right: 8px; height: 40px;display: inline-block;border-radius: 25px;transition: all .3s;}
|
||||
.barrage_box .portrait{ display: inline-block;margin-top: 4px; margin-left: 4px; width: 32px;height: 32px;border-radius: 50%;overflow: hidden;}
|
||||
.barrage_box .portrait img{width: 100%;height: 100%;}
|
||||
.barrage_box div.p a{ margin-right: 2px; font-size: 14px;color: #fff;line-height: 40px;margin-left: 18px; }
|
||||
.barrage_box div.p a:hover{text-decoration: underline;}
|
||||
.barrage_box .close{visibility: hidden;opacity: 0; text-align: center; width:25px;height: 25px;margin-left: 20px;border-radius: 50%;background:rgba(255,255,255,.1);margin-top:8px; background-image: url(close.png);}
|
||||
.barrage_box:hover .close{visibility:visible;opacity: 1;}
|
||||
.barrage_box .close a{display:block;}
|
||||
.barrage_box .close .icon-close{font-size: 14px;color:rgba(255,255,255,.5);display: inline-block;margin-top: 5px; }
|
||||
.barrage .z {float: left !important;}
|
||||
.barrage a{text-decoration:none;}
|
||||
@@ -1,153 +0,0 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
:root{
|
||||
--heo-white: #fff;
|
||||
--heo-white-op: rgba(255,255,255,0.2);
|
||||
--heo-black: #000;
|
||||
--heo-black-op: rgba(0,0,0,0.2);
|
||||
--heo-none: #00000000;
|
||||
--heo-gray: #999999;
|
||||
--heo-gray-op: #9999992b;
|
||||
--heo-vip: #e5a80d;
|
||||
--heo-main: var(--heo-theme);
|
||||
--heo-main-op: var(--heo-theme-op);
|
||||
--heo-main-op-deep: var(--heo-theme-op-deep);
|
||||
--heo-main-none: var(--heo-theme-none);
|
||||
--heo-shadow-theme: 0 8px 12px -3px var(--heo-theme-op);
|
||||
--heo-shadow-blackdeep: 0 2px 16px -3px rgba(0, 0, 0,.15);
|
||||
--heo-shadow-main: 0 8px 12px -3px var(--heo-main-op);
|
||||
--heo-shadow-blue: 0 8px 12px -3px rgba(40, 109, 234,.20);
|
||||
--heo-shadow-white: 0 8px 12px -3px rgba(255, 255, 255,.20);
|
||||
--heo-shadow-black: 0 0 12px 4px rgba(0, 0, 0,.05);
|
||||
--heo-shadow-yellow: 0px 38px 77px -26px rgba(255, 201, 62,.12);
|
||||
--heo-shadow-red: 0 8px 12px -3px #ee7d7936;
|
||||
--heo-shadow-green: 0 8px 12px -3px #87ee7936;
|
||||
--heo-logo-color: linear-gradient(215deg,#4584ff 0%,#cf0db9 100%);
|
||||
--heo-snackbar-time: 5s;
|
||||
--style-border: 1px solid var(--heo-card-border);
|
||||
--style-border-always: 1px solid var(--heo-card-border);
|
||||
--style-border-hover: 1px solid var(--heo-main);
|
||||
--style-border-hover-always: 1px solid var(--heo-main);
|
||||
--style-border-dashed: 1px dashed var(--heo-theme-op);
|
||||
|
||||
--heo-theme: #425AEF;
|
||||
--heo-theme-op: #4259ef23;
|
||||
--heo-theme-op-deep: #4259efdd;
|
||||
--heo-theme-none: #4259ef01;
|
||||
--heo-blue: #425AEF;
|
||||
--heo-red: #D8213C;
|
||||
--heo-pink: #FF7C7C;
|
||||
--heo-green: #28a63f;
|
||||
--heo-yellow: #c28b00;
|
||||
--heo-yellow-op: #d99c001a;
|
||||
--heo-orange: #e38100;
|
||||
--heo-fontcolor: #363636;
|
||||
--heo-background: #f7f9fe;
|
||||
--heo-reverse: #000;
|
||||
--heo-maskbg: rgba(255, 255, 255, 0.6);
|
||||
--heo-maskbgdeep: rgba(255, 255, 255, 0.85);
|
||||
--heo-hovertext: var(--heo-main);
|
||||
--heo-ahoverbg: #F7F7FA;
|
||||
--heo-lighttext: var(--heo-main);
|
||||
--heo-secondtext: rgba(60, 60, 67, 0.6);
|
||||
--heo-scrollbar: rgba(60, 60, 67, 0.4);
|
||||
--heo-card-btn-bg: #edf0f7;
|
||||
--heo-post-blockquote-bg: #fafcff;
|
||||
--heo-post-tabs-bg: #f2f5f8;
|
||||
--heo-secondbg: #f1f3f8;
|
||||
--heo-shadow-nav:0 5px 12px -5px rgba(102, 68, 68, 0.05);
|
||||
--heo-card-bg: #fff;
|
||||
--heo-card-bg-op: var(--heo-black-op);
|
||||
--heo-card-bg-none: rgba(255, 255, 255, 0);
|
||||
--heo-shadow-lightblack:0 5px 12px -5px rgba(102, 68, 68, 0.00);
|
||||
--heo-shadow-light2black:0 5px 12px -5px rgba(102, 68, 68, 0.00);
|
||||
--heo-card-border: #e3e8f7;
|
||||
--heo-shadow-border: 0 8px 16px -4px #2c2d300c;
|
||||
--style-border-forever: 2px solid var(--heo-main);
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: var(--heo-fontcolor);
|
||||
color: var(--heo-background);
|
||||
}
|
||||
|
||||
[data-theme=light] {
|
||||
--heo-theme: #425AEF;
|
||||
--heo-theme-op: #4259ef23;
|
||||
--heo-theme-op-deep: #4259efdd;
|
||||
--heo-theme-none: #4259ef01;
|
||||
--heo-blue: #425AEF;
|
||||
--heo-red: #D8213C;
|
||||
--heo-pink: #FF7C7C;
|
||||
--heo-green: #28a63f;
|
||||
--heo-yellow: #c28b00;
|
||||
--heo-yellow-op: #d99c001a;
|
||||
--heo-orange: #e38100;
|
||||
--heo-fontcolor: #363636;
|
||||
--heo-background: #f7f9fe;
|
||||
--heo-reverse: #000;
|
||||
--heo-maskbg: rgba(255, 255, 255, 0.6);
|
||||
--heo-maskbgdeep: rgba(255, 255, 255, 0.85);
|
||||
--heo-hovertext: var(--heo-main);
|
||||
--heo-ahoverbg: #F7F7FA;
|
||||
--heo-lighttext: var(--heo-main);
|
||||
--heo-secondtext: rgba(60, 60, 67, 0.6);
|
||||
--heo-scrollbar: rgba(60, 60, 67, 0.4);
|
||||
--heo-card-btn-bg: #edf0f7;
|
||||
--heo-post-blockquote-bg: #fafcff;
|
||||
--heo-post-tabs-bg: #f2f5f8;
|
||||
--heo-secondbg: #f1f3f8;
|
||||
--heo-shadow-nav:0 5px 12px -5px rgba(102, 68, 68, 0.05);
|
||||
--heo-card-bg: #fff;
|
||||
--heo-card-bg-op: var(--heo-black-op);
|
||||
--heo-card-bg-none: rgba(255, 255, 255, 0);
|
||||
--heo-shadow-lightblack:0 5px 12px -5px rgba(102, 68, 68, 0.00);
|
||||
--heo-shadow-light2black:0 5px 12px -5px rgba(102, 68, 68, 0.00);
|
||||
--heo-card-border: #e3e8f7;
|
||||
--heo-shadow-border: 0 8px 16px -4px #2c2d300c;
|
||||
--style-border-forever: 2px solid var(--heo-main);
|
||||
}
|
||||
|
||||
[data-theme=dark] {
|
||||
--heo-theme: #0084FF;
|
||||
--heo-theme-op: #0084FF23;
|
||||
--heo-theme-op-deep: #0084ffdd;
|
||||
--heo-theme-none: #0084FF00;
|
||||
--heo-blue: #0084FF;
|
||||
--heo-red: #FF3842;
|
||||
--heo-pink: #FF7C7C;
|
||||
--heo-green: #57bd6a;
|
||||
--heo-yellow: #ffc93e;
|
||||
--heo-yellow-op: #ffc93e30;
|
||||
--heo-orange: #ff953e;
|
||||
--heo-fontcolor: #F7F7FA;
|
||||
--heo-background: #18171d;
|
||||
--heo-reverse: #fff;
|
||||
--heo-maskbg: rgba(0,0,0, 0.6);
|
||||
--heo-maskbgdeep: rgba(0,0,0, 0.85);
|
||||
--heo-hovertext: #0A84FF;
|
||||
--heo-ahoverbg: #fff;
|
||||
--heo-lighttext: #f2b94b;
|
||||
--heo-secondtext: #a1a2b8;
|
||||
--heo-scrollbar: rgba(200, 200, 223, 0.4);
|
||||
--heo-card-btn-bg: #30343f;
|
||||
--heo-post-blockquote-bg: #000;
|
||||
--heo-post-tabs-bg: #121212;
|
||||
--heo-secondbg: #30343f;
|
||||
--heo-shadow-nav:0 5px 20px 0px rgba(28, 28, 28, 0.4);
|
||||
--heo-card-bg: #1d1e22;
|
||||
--heo-card-bg-op: var(--heo-white-op);
|
||||
--heo-card-bg-none: #1d1b2600;
|
||||
--heo-shadow-lightblack:0 5px 12px -5px rgba(102, 68, 68, 0.0);
|
||||
--heo-shadow-light2black:0 5px 12px -5px rgba(102, 68, 68, 0.0);
|
||||
--heo-card-border: #282829;
|
||||
--heo-shadow-border: 0 8px 16px -4px #00000050;
|
||||
--style-border-forever: 2px solid var(--heo-lighttext);
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px){
|
||||
:root{
|
||||
--style-border: 0px solid var(--heo-card-border);
|
||||
--style-border-hover: 0px solid var(--heo-main);
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
.qmsg.qmsg-wrapper{position:fixed;top:20px;left:0;z-index:1010;width:100%;pointer-events:none;color:rgba(0,0,0,0.55);font-size:13px;font-variant:tabular-nums;font-feature-settings:"tnum"}.qmsg .qmsg-item{padding:8px;text-align:center;animation-duration:.3s}.qmsg .qmsg-item .qmsg-content{text-align:left;position:relative;display:inline-block;padding:10px 12px;background:#fff;border-radius:4px;box-shadow:0 4px 12px rgba(0,0,0,0.15);pointer-events:all;max-width:80%;min-width:80px}.qmsg .qmsg-item .qmsg-content [class^=qmsg-content-]{display:flex;align-items:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qmsg .qmsg-item .qmsg-content [class^=qmsg-content-] .qmsg-icon{display:inline-block;height:16px}.qmsg .qmsg-item .qmsg-content [class^=qmsg-content-] .qmsg-icon:first-child{margin-right:8px}.qmsg .qmsg-item .qmsg-content [class^=qmsg-content-] .qmsg-icon-close{cursor:pointer;color:rgba(0,0,0,0.45);transition:color .3s;margin-left:6px}.qmsg .qmsg-item .qmsg-content [class^=qmsg-content-] .qmsg-icon-close:hover>svg path{stroke:#555}.qmsg .qmsg-item .qmsg-content [class^=qmsg-content-] .qmsg-count{display:inline-block;position:absolute;left:-8px;top:-8px;color:#fff;font-size:12px;text-align:center;height:16px;line-height:16px;border-radius:3px;min-width:16px;animation-duration:.3s}.qmsg .qmsg-item .qmsg-content-info{color:#909399}.qmsg .qmsg-item .qmsg-content-info .qmsg-count{background-color:#909399}.qmsg .qmsg-item .qmsg-content-warning{color:#e6a23c}.qmsg .qmsg-item .qmsg-content-warning .qmsg-count{background-color:#e6a23c}.qmsg .qmsg-item .qmsg-content-error{color:#f56c6c}.qmsg .qmsg-item .qmsg-content-error .qmsg-count{background-color:#f56c6c}.qmsg .qmsg-item .qmsg-content-success{color:#67c23a}.qmsg .qmsg-item .qmsg-content-success .qmsg-count{background-color:#67c23a}.qmsg .qmsg-item .qmsg-content-loading{color:#409eff}.qmsg .qmsg-item .qmsg-content-loading .qmsg-count{background-color:#409eff}.qmsg .animate-turn{animation:MessageTurn 1s linear infinite}@keyframes MessageTurn{0%{transform:rotate(0deg)}25%{transform:rotate(90deg)}50%{transform:rotate(180deg)}75%{transform:rotate(270deg)}100%{transform:rotate(360deg)}}@keyframes MessageMoveOut{0%{max-height:150px;padding:8px;opacity:1}to{max-height:0;padding:0;opacity:0}}@keyframes MessageMoveIn{0%{transform:translateY(-100%);transform-origin:0 0;opacity:0}to{transform:translateY(0);transform-origin:0 0;opacity:1}}@keyframes MessageShake{0%,100%{transform:translateX(0px);opacity:1}25%,75%{transform:translateX(-4px);opacity:.75}50%{transform:translateX(4px);opacity:.25}}
|
||||
@@ -1,504 +0,0 @@
|
||||
.user_info {
|
||||
position: absolute;
|
||||
bottom: 10%;
|
||||
right: 8%;
|
||||
}
|
||||
|
||||
.user_info .top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.user_info .name {
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.user_info .avatar {
|
||||
width: 58px;
|
||||
height: 58px;
|
||||
}
|
||||
|
||||
.user_info .avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.user_info .left {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-content: flex-end;
|
||||
align-items: flex-end;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.user_info .des {
|
||||
font-size: 13px;
|
||||
text-align: right;
|
||||
color: #d6d6d6;
|
||||
}
|
||||
|
||||
.user-info {
|
||||
display: flex;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.user-info .avatar {
|
||||
max-height: 45px;
|
||||
max-width: 45px;
|
||||
float: left;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.user-info .intro {
|
||||
/* float:left;
|
||||
*/
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.user-info .intro div:nth-child(2) {
|
||||
word-break: break-all;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.content-item {
|
||||
padding-left: 49px;
|
||||
padding-right: 30px;
|
||||
}
|
||||
|
||||
.user-info .intro .name {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin-top: 2px;
|
||||
border-width: 0;
|
||||
border-top-width: 0px;
|
||||
border-top: 1px dashed;
|
||||
border-top-color: currentcolor;
|
||||
border-color: #ebf2ed;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.header-nav-ul-li-a2 {
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
border: 0;
|
||||
background: #000;
|
||||
color: #fff !important;
|
||||
padding: 3px 5px;
|
||||
border-radius: 3px;
|
||||
font-size: 0.6rem;
|
||||
align-items: center;
|
||||
line-height: 0.9rem;
|
||||
position: relative;
|
||||
left: 70%;
|
||||
}
|
||||
|
||||
.topimage {
|
||||
padding-top: 64px;
|
||||
background-position: 50%;
|
||||
background-size: cover;
|
||||
min-height: 200px;
|
||||
text-align: center;
|
||||
/* border-radius:0 0 0.5rem 0.5rem;
|
||||
*/
|
||||
box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
|
||||
border-radius: 1rem 1rem 0rem 0rem;
|
||||
/* margin-bottom:30px;
|
||||
*/
|
||||
}
|
||||
|
||||
.foot-menu {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background: #fff;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 1;
|
||||
max-width: 1150px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
img {
|
||||
border-radius: 3px
|
||||
}
|
||||
|
||||
.text {
|
||||
font-size: 1.1em;
|
||||
color: #4d4d4d;
|
||||
white-space: pre-wrap
|
||||
}
|
||||
|
||||
.desc {
|
||||
color: #9b9b9b;
|
||||
/* font-family:LXGW WenKai Screen,monospace;
|
||||
*/
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.loadbtn {
|
||||
width: 100%;
|
||||
height: 35px;
|
||||
cursor: pointer;
|
||||
border: 0px;
|
||||
color: #9b9b9b;
|
||||
/* font-family:LXGW WenKai Screen,monospace;
|
||||
*/
|
||||
font-size: 0.8em;
|
||||
background-color: white;
|
||||
border-radius: 5px 5px 0px 0px;
|
||||
border: 1px dashed #e0dfdf;
|
||||
}
|
||||
|
||||
#back-top-button {
|
||||
position: fixed;
|
||||
bottom: 36px;
|
||||
right: 10px;
|
||||
z-index: 99;
|
||||
border: none;
|
||||
outline: none;
|
||||
background-color: #d1d1d1;
|
||||
color: #2157ad;
|
||||
opacity: .35;
|
||||
cursor: pointer;
|
||||
padding: 6px;
|
||||
border-radius: 4px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.atk-main-editor>.atk-bottom .atk-send-btn {
|
||||
background: #000 !important;
|
||||
}
|
||||
|
||||
.atk-copyright {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.artalk {
|
||||
margin-top: 10px !important;
|
||||
width: 88% !important;
|
||||
margin-left: 46px !important;
|
||||
}
|
||||
|
||||
a img {
|
||||
display: block;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
a video {
|
||||
display: block;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.time {
|
||||
color: #9b9b9b;
|
||||
font-size: 0.8em
|
||||
}
|
||||
|
||||
.location {
|
||||
/* font-size:0.8em*/
|
||||
}
|
||||
|
||||
.tag {
|
||||
color: #9b9b9b;
|
||||
text-align: right;
|
||||
font-size: 0.9em;
|
||||
/* font-family:LXGW WenKai Screen,monospace;
|
||||
*/
|
||||
}
|
||||
|
||||
.location {
|
||||
color: #576b95;
|
||||
}
|
||||
|
||||
.single-pic {
|
||||
object-fit: cover;
|
||||
width: 100%;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.pic {
|
||||
object-fit: cover;
|
||||
height: 100px;
|
||||
/* width:100px;
|
||||
*/
|
||||
width: 100%;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.pic-group {
|
||||
/* flex:0;
|
||||
*/
|
||||
margin: 0px 4px 4px 0px;
|
||||
}
|
||||
|
||||
.pic-group-in {
|
||||
margin: 0.1rem;
|
||||
}
|
||||
|
||||
.text p {
|
||||
margin: 0 0;
|
||||
}
|
||||
|
||||
.text img {
|
||||
max-height: 168px;
|
||||
max-width: 255px;
|
||||
margin-bottom: 5px;
|
||||
animation: fadeIn 1s;
|
||||
transition: all .4s ease-in-out;
|
||||
}
|
||||
|
||||
.atk-link{
|
||||
display: none!important;
|
||||
}
|
||||
|
||||
.atk-main-editor>.atk-header {
|
||||
padding: 0px 0px 0!important;
|
||||
}
|
||||
|
||||
.atk-main-editor>.atk-textarea-wrap>.atk-textarea {
|
||||
padding: 10px 5px!important;
|
||||
}
|
||||
|
||||
@media screen and (max-width:300px) {
|
||||
|
||||
|
||||
|
||||
.topimage {
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.pic {
|
||||
object-fit: cover;
|
||||
height: 92px;
|
||||
width: 92px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.single-pic {
|
||||
object-fit: cover;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media screen and (min-width:301px) and (max-width:500px) {
|
||||
|
||||
|
||||
|
||||
|
||||
.topimage {
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
|
||||
.pic {
|
||||
object-fit: cover;
|
||||
height: 92px;
|
||||
width: 92px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.single-pic {
|
||||
object-fit: cover;
|
||||
height: 220px;
|
||||
width: 220px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
#shuoshuo_btn{
|
||||
/*margin-left: 58%;*/
|
||||
position: absolute;
|
||||
/*position: fixed;*/
|
||||
margin-left: 190px!important;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width:501px) and (max-width:700px) {
|
||||
|
||||
.topimage {
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
|
||||
.pic {
|
||||
object-fit: cover;
|
||||
height: 120px;
|
||||
width: 120px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.single-pic {
|
||||
object-fit: cover;
|
||||
height: 250px;
|
||||
width: 250px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media screen and (min-width:701px) and (max-width:900px) {
|
||||
|
||||
|
||||
|
||||
.pic {
|
||||
object-fit: cover;
|
||||
height: 125px;
|
||||
width: 125px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.single-pic {
|
||||
object-fit: cover;
|
||||
height: 280px;
|
||||
width: 280px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
#shuoshuo_btn{
|
||||
margin-left: 48%;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media screen and (min-width:901px) and (max-width:1200px) {
|
||||
|
||||
|
||||
|
||||
.pic {
|
||||
object-fit: cover;
|
||||
height: 192px;
|
||||
width: 192px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.single-pic {
|
||||
object-fit: cover;
|
||||
/* height:320px;
|
||||
width:320px;*/
|
||||
height: 330px;
|
||||
width: 330px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@media screen and (min-width:1201px) {
|
||||
|
||||
|
||||
.header-nav-ul-li-a2 {
|
||||
left: 85% !important;
|
||||
}
|
||||
|
||||
|
||||
.pic {
|
||||
object-fit: cover;
|
||||
height: 180px;
|
||||
width: 180px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.single-pic {
|
||||
object-fit: cover;
|
||||
height: 380px;
|
||||
width: 380px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*相册css*/
|
||||
.memos-photo-wrapper {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
margin-top: .5rem;
|
||||
display: grid;
|
||||
width: 100%;
|
||||
gap: .5rem;
|
||||
}
|
||||
|
||||
.memos-photo {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-radius: .25rem;
|
||||
height: 194px;
|
||||
}
|
||||
|
||||
.memos-photo>img {
|
||||
min-height: 100%;
|
||||
width: auto;
|
||||
min-width: 100%;
|
||||
cursor: pointer;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
height: auto;
|
||||
animation: fadeIn 1s;
|
||||
transition: all .4s ease-in-out;
|
||||
}
|
||||
|
||||
.memos-photo span.photo-title,
|
||||
.memos-photo span.photo-time {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
padding: 0px 8px;
|
||||
font-size: 0.9rem;
|
||||
color: #fff;
|
||||
display: none;
|
||||
animation: fadeIn 1s;
|
||||
}
|
||||
|
||||
.memos-photo span.photo-title {
|
||||
position: absolute;
|
||||
bottom: 4px;
|
||||
left: 4px;
|
||||
}
|
||||
|
||||
.memos-photo span.photo-time {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
left: 4px;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.memos-photo:hover span.photo-title,
|
||||
.memos-photo:hover span.photo-time {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width:480px) and (max-width: 899px) {
|
||||
.memos-photo-wrapper {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.memos-photo {
|
||||
height: 201px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 479px) {
|
||||
.memos-photo-wrapper {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.memos-photo {
|
||||
height: 171px;
|
||||
}
|
||||
}
|
||||
@@ -1,99 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
function _classCallCheck(a, b) {
|
||||
if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
|
||||
}
|
||||
var _createClass = function () {
|
||||
function a(a, b) {
|
||||
for (var c = 0; c < b.length; c++) {
|
||||
var d = b[c];
|
||||
d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(a, d.key, d)
|
||||
}
|
||||
}
|
||||
return function (b, c, d) {
|
||||
return c && a(b.prototype, c), d && a(b, d), b
|
||||
}
|
||||
}();
|
||||
! function () {
|
||||
var a = function () {
|
||||
function a(b) {
|
||||
var c = this;
|
||||
_classCallCheck(this, a);
|
||||
var d = {
|
||||
logo: "OwO表情",
|
||||
container: document.getElementsByClassName("OwO")[0],
|
||||
target: document.getElementsByTagName("textarea")[0],
|
||||
position: "down",
|
||||
width: "100%",
|
||||
maxHeight: "235px",
|
||||
api: `${static_url}/emotion/OwO.json`
|
||||
};
|
||||
for (var e in d) d.hasOwnProperty(e) && !b.hasOwnProperty(e) && (b[e] = d[e]);
|
||||
this.container = b.container, this.target = b.target, "up" === b.position && this.container.classList.add("OwO-up");
|
||||
var f = new XMLHttpRequest;
|
||||
f.onreadystatechange = function () {
|
||||
4 === f.readyState && (f.status >= 200 && f.status < 300 || 304 === f.status ? (c.odata = JSON.parse(f.responseText), c.init(b)) : console.log("OwO data request was unsuccessful: " + f.status))
|
||||
}, f.open("get", b.api, !0), f.send(null)
|
||||
}
|
||||
return _createClass(a, [{
|
||||
key: "init",
|
||||
value: function (a) {
|
||||
var b = this;
|
||||
this.area = a.target, this.packages = Object.keys(this.odata);
|
||||
for (var c = '\n <div class="OwO-logo"><i class="fontello fontello-emo-tongue face"></i><span class="OwOlogotext">' + a.logo + '</span></div>\n <div class="OwO-body" style="width: ' + a.width + '">', d = 0; d < this.packages.length; d++) {
|
||||
c += '\n <ul class="OwO-items OwO-' + this.odata[this.packages[d]].name + " OwO-items-" + this.odata[this.packages[d]].type + '" style="max-height: ' + (parseInt(a.maxHeight) - 53) + 'px;">';
|
||||
for (var e = this.odata[this.packages[d]].container, f = 0; f < e.length; f++) "image" === this.odata[this.packages[d]].type ? c += '\n <li class="OwO-item" title="' + e[f].text + '" data-input="' + this.odata[this.packages[d]].name + ":" + e[f].icon + '"><img no-view src="' + static_url + "emotion/" + this.odata[this.packages[d]].name + "/" + e[f].icon + '.png" icon="' + e[f].text + '"></li>' : c += '\n <li class="OwO-item" title="' + e[f].text + '">' + e[f].icon + "</li>";
|
||||
c += "\n </ul>"
|
||||
}
|
||||
c += '\n <div class="OwO-bar">\n <ul class="OwO-packages">';
|
||||
for (var g = 0; g < this.packages.length; g++) c += "\n <li><span>" + this.packages[g] + "</span></li>";
|
||||
c += "\n </ul>\n </div>\n </div>\n ", this.container.innerHTML = c, this.logo = this.container.getElementsByClassName("OwO-logo")[0], this.logo.addEventListener("click", function () {
|
||||
b.toggle()
|
||||
}), this.container.getElementsByClassName("OwO-body")[0].addEventListener("click", function (a) {
|
||||
var c = null;
|
||||
if (a.target.classList.contains("OwO-item") ? c = a.target : a.target.parentNode.classList.contains("OwO-item") && (c = a.target.parentNode), c) {
|
||||
var d, e = b.area.selectionStart,
|
||||
f = b.area.selectionEnd,
|
||||
g = b.area.value;
|
||||
d = c.dataset.hasOwnProperty("input") ? " ::" + c.dataset.input + ":: " : c.innerHTML, b.area.value = g.slice(0, e) + d + g.slice(f), b.area.selectionStart = e + d.length, b.area.selectionEnd = e + d.length, b.area.focus(), b.toggle()
|
||||
}
|
||||
}), this.packagesEle = this.container.getElementsByClassName("OwO-packages")[0];
|
||||
for (var h = 0; h < this.packagesEle.children.length; h++) ! function (a) {
|
||||
! function (c) {
|
||||
b.packagesEle.children[a].addEventListener("click", function () {
|
||||
b.tab(c)
|
||||
})
|
||||
}(a)
|
||||
}(h);
|
||||
this.tab(0)
|
||||
}
|
||||
}, {
|
||||
key: "toggle",
|
||||
value: function () {
|
||||
this.container.classList.contains("OwO-open") ? this.container.classList.remove("OwO-open") : this.container.classList.add("OwO-open")
|
||||
}
|
||||
}, {
|
||||
key: "tab",
|
||||
value: function (a) {
|
||||
var b = this.container.getElementsByClassName("OwO-items-show")[0];
|
||||
b && b.classList.remove("OwO-items-show"), this.container.getElementsByClassName("OwO-items")[a].classList.add("OwO-items-show");
|
||||
var c = this.container.getElementsByClassName("OwO-package-active")[0];
|
||||
c && c.classList.remove("OwO-package-active"), this.packagesEle.getElementsByTagName("li")[a].classList.add("OwO-package-active");
|
||||
try {
|
||||
$("img").lazyload({
|
||||
effect: "fadeIn"
|
||||
})
|
||||
} catch (a) {
|
||||
if (this.container.classList.contains("OwO-open")) {
|
||||
var d = this.container.querySelectorAll(".OwO-items.OwO-items-show>li img");
|
||||
[].forEach.call(d, function (a) {
|
||||
var b = a.dataset.original;
|
||||
b && (a.src = b, a.removeAttribute("data-original"))
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}]), a
|
||||
}();
|
||||
"undefined" != typeof module && void 0 !== module.exports ? module.exports = a : window.OwO = a
|
||||
}();
|
||||
@@ -1,64 +0,0 @@
|
||||
$(function() {
|
||||
init();
|
||||
});
|
||||
function init() {
|
||||
$("article img:not(.noImageLightBox)").each(function(i) {
|
||||
if (!this.parentNode.href) {
|
||||
$(this).wrap('<a class="post-imgLink" href="' + this.src + '" data-caption="' + this.alt + '"></a>');
|
||||
}
|
||||
});
|
||||
$("article .photosets").each(function() {
|
||||
var count = $(this).find("a.post-imgLink").length;
|
||||
switch (count) {
|
||||
case 1:
|
||||
$(this).addClass("photosets-1");
|
||||
break;
|
||||
case 2:
|
||||
$(this).addClass("photosets-2");
|
||||
break;
|
||||
case 4:
|
||||
$(this).addClass("photosets-4");
|
||||
break;
|
||||
default:
|
||||
$(this).addClass("photosets-3");
|
||||
}
|
||||
});
|
||||
if ($(".post-imgLink").length > 0) {
|
||||
lightGallery(document.getElementsByTagName('article')[0], {
|
||||
selector: '.post-imgLink',
|
||||
share: false,
|
||||
showThumbByDefault: false,
|
||||
autoplayControls: false
|
||||
});
|
||||
}
|
||||
if($("#tcomment").length > 0){
|
||||
twikoo.init({
|
||||
envId: 'https://xiaoblog.vercel.app/',
|
||||
el: '#tcomment'
|
||||
})
|
||||
}
|
||||
// to-top
|
||||
$(document).ready((function (_this) {
|
||||
return function () {
|
||||
let bt
|
||||
bt = $('#to_top')
|
||||
if ($(document).width() > 480) {
|
||||
$(window).scroll(function () {
|
||||
let st
|
||||
st = $(window).scrollTop()
|
||||
if (st > 30) {
|
||||
return bt.css('display', 'block')
|
||||
} else {
|
||||
return bt.css('display', 'none')
|
||||
}
|
||||
})
|
||||
return bt.click(function () {
|
||||
$('body,html').animate({
|
||||
scrollTop: 0,
|
||||
}, 800)
|
||||
return false
|
||||
})
|
||||
}
|
||||
}
|
||||
})(this))
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Artalk=t()}(this,(function(){"use strict";var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,a=(t,n,i)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,o=(e,t)=>{for(var n in t||(t={}))s.call(t,n)&&a(e,n,t[n]);if(i)for(var n of i(t))r.call(t,n)&&a(e,n,t[n]);return e},l=(e,i)=>t(e,n(i)),c=(e,t,n)=>(a(e,"symbol"!=typeof t?t+"":t,n),n),d=(e,t,n)=>new Promise(((i,s)=>{var r=e=>{try{o(n.next(e))}catch(t){s(t)}},a=e=>{try{o(n.throw(e))}catch(t){s(t)}},o=e=>e.done?i(e.value):Promise.resolve(e.value).then(r,a);o((n=n.apply(e,t)).next())}));function h(e=""){const t=document.createElement("div");return t.innerHTML=e.trim(),t.firstElementChild||t}function u(e){return parseFloat(getComputedStyle(e,null).height.replace("px",""))}function p(e){const t=RegExp(`[?&]${e}=([^&]*)`).exec(window.location.search);return t&&decodeURIComponent(t[1].replace(/\+/g," "))}function m(e){const t=e.getBoundingClientRect();return{top:t.top+window.scrollY,left:t.left+window.scrollX}}function g(e,t){let n=e.toString();for(;n.length<t;)n=`0${n}`;return n}function f(e,t){try{const n=e.getTime(),i=(new Date).getTime()-n,s=Math.floor(i/864e5);if(0===s){const e=i%864e5,n=Math.floor(e/36e5);if(0===n){const n=e%36e5,i=Math.floor(n/6e4);if(0===i){const e=n%6e4,i=Math.round(e/1e3);return i<10?t.$t("now"):`${i} ${t.$t("seconds")}`}return`${i} ${t.$t("minutes")}`}return`${n} ${t.$t("hours")}`}return s<0?t.$t("now"):s<8?`${s} ${t.$t("days")}`:function(e){const t=g(e.getDate(),2),n=g(e.getMonth()+1,2);return`${g(e.getFullYear(),2)}-${n}-${t}`}(e)}catch(n){return console.error(n)," - "}}function k(){return d(this,null,(function*(){const e=navigator.userAgent;if(!navigator.userAgentData||!navigator.userAgentData.getHighEntropyValues)return e;const t=navigator.userAgentData;let n=null;try{n=yield t.getHighEntropyValues(["platformVersion"])}catch(s){return console.error(s),e}const i=Number(n.platformVersion.split(".")[0]);return"Windows"===t.platform&&i>=13?e.replace(/Windows NT 10.0/,"Windows NT 11.0"):"macOS"===t.platform&&i>=11?e.replace(/(Mac OS X \d+_\d+_\d+|Mac OS X)/,`Mac OS X ${n.platformVersion.replace(/\./g,"_")}`):e}))}function y(e){let t;try{t=new URL(e)}catch(n){return!1}return"http:"===t.protocol||"https:"===t.protocol}function $(e,t){return function(e,t){return`${e.replace(/\/$/,"")}/${t.replace(/^\//,"")}`}(e.conf.server,t)}function x(e,t){const n=e=>e&&"object"==typeof e;return n(e)&&n(t)?(Object.keys(t).forEach((i=>{const s=e[i],r=t[i];Array.isArray(s)&&Array.isArray(r)?e[i]=s.concat(r):n(s)&&n(r)?e[i]=x(o({},s),r):e[i]=r})),e):t}class v{constructor(e){c(this,"$el"),c(this,"ctx"),c(this,"conf"),this.ctx=e,this.conf=e.conf}$t(e,t={}){return this.ctx.$t(e,t)}}function b(e,t){let n=e.querySelector(":scope > .atk-loading");n||(n=h('<div class="atk-loading atk-fade-in" style="display: none;">\n <div class="atk-loading-spinner">\n <svg viewBox="25 25 50 50"><circle cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>\n </div>\n </div>'),(null==t?void 0:t.transparentBg)&&(n.style.background="transparent"),e.appendChild(n)),n.style.display="";const i=n.querySelector(".atk-loading-spinner");i&&(i.style.display="none",window.setTimeout((()=>{i.style.display=""}),500))}function w(e){const t=e.querySelector(":scope > .atk-loading");t&&(t.style.display="none")}function C(e,t=!0){const n=m(e).top+u(e)/2-document.documentElement.clientHeight/2;t?window.scroll({top:n>0?n:0,left:0}):window.scroll(0,n>0?n:0)}function S(e,t,n){const i=h(`<div class="atk-notify atk-fade-in" style="background-color: ${{s:"#57d59f",e:"#ff6f6c",w:"#ffc721",i:"#2ebcfc"}[n]}"><span class="atk-notify-content"></span></div>`);i.querySelector(".atk-notify-content").innerHTML=function(e){const t=document.createElement("div");return t.innerText=e,t.innerHTML}(t).replace("\n","<br/>"),e.appendChild(i);const s=()=>{i.classList.add("atk-fade-out"),setTimeout((()=>{i.remove()}),200)};let r;r=window.setTimeout((()=>{s()}),3e3),i.addEventListener("click",(()=>{s(),window.clearTimeout(r)}))}function T(e,t){!function(e,t,n="in"){e.classList.add(`atk-fade-${n}`);const i=()=>{e.classList.remove(`atk-fade-${n}`),e.removeEventListener("animationend",i),t&&t()};e.addEventListener("animationend",i)}(e,t,"in")}function E(e,t,n='<span class="atk-error-title">Artalk Error</span>'){let i=e.querySelector(".atk-error-layer");if(null===t)return void(null!==i&&i.remove());i||(i=h(`<div class="atk-error-layer">${n}<span class="atk-error-text"></span></div>`),e.appendChild(i));const s=i.querySelector(".atk-error-text");s.innerHTML="",null!==t&&(t instanceof HTMLElement?s.appendChild(t):s.innerText=t)Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
(function(e){function t(t){for(var c,n,r=t[0],i=t[1],s=t[2],p=0,b=[];p<r.length;p++)n=r[p],Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&b.push(o[n][0]),o[n]=0;for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&(e[c]=i[c]);d&&d(t);while(b.length)b.shift()();return l.push.apply(l,s||[]),a()}function a(){for(var e,t=0;t<l.length;t++){for(var a=l[t],c=!0,r=1;r<a.length;r++){var i=a[r];0!==o[i]&&(c=!1)}c&&(l.splice(t--,1),e=n(n.s=a[0]))}return e}var c={},o={app:0},l=[];function n(t){if(c[t])return c[t].exports;var a=c[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=c,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(a,c,function(t){return e[t]}.bind(null,c));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],i=r.push.bind(r);r.push=t,r=r.slice();for(var s=0;s<r.length;s++)t(r[s]);var d=i;l.push([0,"chunk-vendors"]),a()})({0:function(e,t,a){e.exports=a("56d7")},1799:function(e,t,a){var c=a("4ec8");c.__esModule&&(c=c.default),"string"===typeof c&&(c=[[e.i,c,""]]),c.locals&&(e.exports=c.locals);var o=a("499e").default;o("4b3a8dae",c,!0,{sourceMap:!1,shadowMode:!1})},"1b92":function(e,t,a){var c=a("2313");c.__esModule&&(c=c.default),"string"===typeof c&&(c=[[e.i,c,""]]),c.locals&&(e.exports=c.locals);var o=a("499e").default;o("220edc25",c,!0,{sourceMap:!1,shadowMode:!1})},"1feb":function(e,t,a){var c=a("24fb");t=c(!1),t.push([e.i,"#cf-change{font-size:14px;display:block;padding:12px 0 4px;width:100%;text-align:center}#cf-container{width:100%;height:auto;margin:auto;background:var(--pyq-background);max-width:1500px;border-radius:12px}#cf-container a{text-decoration:none;line-height:1.3;color:var(--pyq-fontcolor);transition:.3s}#cf-container a:hover{color:var(--heo-main)}.cf-time-created,.cf-time-updated{display:inline-block;text-align:left;white-space:nowrap}.cf-time-created i.far,.cf-time-updated i.fas{padding-right:8px}#cf-footer{margin-right:8px;margin-bottom:8px;text-align:right;font-size:13px}.cf-data-lastupdated{font-size:13px;text-align:right;display:block}#cf-footer-info{display:flex}#cf-footer-info div{margin-left:.5rem}.cf-article .cf-article-title:hover{color:var(--heo-main)!important}#cf-more,#cf-state{background:var(--pyq-backgroundplus)}#cf-change,#cf-more,#cf-state,.cf-article-author,.cf-article-floor,.cf-article:hover .cf-article-floor,.cf-article a.cf-article-title,.cf-time-created,.cf-time-updated{color:var(--pyq-fontcolor)}.cf-article{background:var(--pyq-backgroundplus)}#cf-change span:hover{color:var(--heo-main);cursor:pointer}.cf-overshow p a:hover{color:var(--heo-main)!important}.cf-overshow p span{color:var(--pyq-secondtext)}.cf-setting-btn{color:var(--pyq-fontcolor);cursor:pointer;transition:.3s}.cf-setting-btn:hover{color:var(--heo-main)}.dark-theme #cf-overlay,.theme-dark #cf-overlay{background-color:rgba(59,61,66,.42)}.dark-theme .cf-overshow,.theme-dark .cf-overshow{background:#292a2d}.dark-theme .cf-overshow p a,.theme-dark .cf-overshow p a{color:var(--pyq-fontcolor)}.dark-theme .cf-overshow .cf-overshow-content,.theme-dark .cf-overshow .cf-overshow-content{background:#eaeaea}.dark-theme #cf-more,.dark-theme #cf-state,.theme-dark #cf-more,.theme-dark #cf-state{background:var(--lmm-dack-background);color:var(--lmm-dark-fontcolor)}.dark-theme #cf-change,.dark-theme .cf-article-floor,.dark-theme .cf-time-created,.dark-theme .cf-time-updated,.theme-dark #cf-change,.theme-dark .cf-article-floor,.theme-dark .cf-time-created,.theme-dark .cf-time-updated{color:var(--lmm-dark-floorcolor)}.dark-theme .cf-article-author,.dark-theme .cf-article a.cf-article-title,.theme-dark .cf-article-author,.theme-dark .cf-article a.cf-article-title{color:var(--lmm-dark-fontcolor)}.dark-theme .cf-article,.theme-dark .cf-article{background:var(--lmm-dack-background)}.dark-theme .cf-article:hover .cf-article-floor,.dark-theme .cf-article:hover .cf-time-created,.dark-theme .cf-article:hover .cf-time-updated,.dark-theme .cf-overshow p span,.theme-dark .cf-article:hover .cf-article-floor,.theme-dark .cf-article:hover .cf-time-created,.theme-dark .cf-article:hover .cf-time-updated,.theme-dark .cf-overshow p span{color:var(--lmm-dark-fontcolor)}@media screen and (max-width:400px){#cf-state{font-size:14px}.cf-article-time i{display:none}}@media screen and (max-width:300px){#cf-state,.cf-article-time{display:none}}",""]),e.exports=Line truncated
|
||||
@@ -1,27 +0,0 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"0388":function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r("f2bf"),o=r("0898");const l=Object(o["b"])({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}});var a=r("2711"),i=r("304f"),c=r("461c");const s=["textContent"],u={name:"ElBadge"},d=Object(n["defineComponent"])({...u,props:l,setup(e,{expose:t}){const r=e,o=Object(i["b"])("badge"),l=Object(n["computed"])(()=>r.isDot?"":Object(c["isNumber"])(r.value)&&Object(c["isNumber"])(r.max)&&r.max<r.value?r.max+"+":""+r.value);return t({content:l}),(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:Object(n["normalizeClass"])(Object(n["unref"])(o).b())},[Object(n["renderSlot"])(e.$slots,"default"),Object(n["createVNode"])(n["Transition"],{name:Object(n["unref"])(o).namespace.value+"-zoom-in-center",persisted:""},{default:Object(n["withCtx"])(()=>[Object(n["withDirectives"])(Object(n["createElementVNode"])("sup",{class:Object(n["normalizeClass"])([Object(n["unref"])(o).e("content"),Object(n["unref"])(o).em("content",e.type),Object(n["unref"])(o).is("fixed",!!e.$slots.default),Object(n["unref"])(o).is("dot",e.isDot)]),textContent:Object(n["toDisplayString"])(Object(n["unref"])(l))},null,10,s),[[n["vShow"],!e.hidden&&(Object(n["unref"])(l)||e.isDot)]])]),_:1},8,["name"])],2))}});var p=Object(a["a"])(d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]),f=r("0c24");const b=Object(f["a"])(p)},"04f8":function(e,t,r){var n=r("2d00"),o=r("d039");e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},"0512":function(e,t,r){var n=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,c=function(e,t){for(var r in t)o(e,r,{get:t[r],enumerable:!0})},s=function(e,t,r,n){var c=!0,s=!1,u=void 0;if(t&&"object"==typeof t||"function"==typeof t)try{for(var d,p=function(a,c){var s=c.value;!i.call(e,s)&&s!==r&&o(e,s,{get:function(){return t[s]},enumerable:!(n=l(t,s))||n.enumerable})},f=a(t)[Symbol.iterator]();!(c=(d=f.next()).done);c=!0)p(f,d)}catch(b){s=!0,u=b}finally{try{c||null==f.return||f.return()}finally{if(s)throw u}}return e},u=function(e){return s(o({},"__esModule",{value:!0}),e)},d={};c(d,{default:function(){return I}}),e.exports=u(d);var p,f,b,m,h,v,g,O,j,w,y,x,k,_,C,z=!1;function E(){if(!z){z=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(x=/\b(iPhone|iP[ao]d)/.exec(e),k=/\b(iP[ao]d)/.exec(e),w=/Android/i.exec(e),_=/FBAN\/\w+;/i.exec(e),C=/Mobile/i.exec(e),y=!!/Win64/.exec(e),t){p=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,p&&document&&document.documentMode&&(p=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);v=n?parseFloat(n[1])+4:p,f=t[2]?parseFloat(t[2]):NaN,b=t[3]?parseFloat(t[3]):NaN,m=t[4]?parseFloat(t[4]):NaN,m?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),h=t&&t[1]?parseFloat(t[1]):NaN):h=NaN}else p=f=b=h=m=NaN;if(r){if(r[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);g=!o||parseFloat(o[1].replace("_","."))}else g=!1;O=!!r[2],j=!!r[3]}else g=O=j=!1}}var B,S={ie:function(){return E()||p},ieCompatibilityMode:function(){return E()||v>p},ie64:function(){return S.ie()&&y},firefox:function(){return E()||f},opera:function(){return E()||b},webkit:function(){return E()||m},safari:function(){return S.webkit()},chrome:function(){return E()||h},windows:function(){return E()||O},osx:function(){return E()||g},linux:function(){return E()||j},iphone:function(){return E()||x},mobile:function(){return E()||x||k||w||C},nativeApp:function(){return E()||_},android:function(){return E()||w},ipad:function(){return E()||k}},V=S,N=!!(("undefined"===typeof window?"undefined":n(window))<"u"&&window.document&&window.document.createElement),M={canUseDOM:N,canUseWorkers:("undefined"===typeof Worker?"undefined":n(Worker))<"u",canUseEventListeners:N&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:N&&!!window.screen,isInWorker:!N},A=M;function T(e,t){if(!A.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,n=r in document;if(!n){var o=document.createElement("div");o.setAttribute(r,"return;"),n="function"==typeof o[r]}return!n&&B&&"wheel"===e&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}A.canUseDOM&&(B=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var H=T,R=10,L=40,D=800;function P(e){var t=0,r=0,n=0,o=0;return"Line truncated
|
||||
/**
|
||||
* @license
|
||||
* Lodash <https://lodash.com/>
|
||||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||
* Released under MIT license <https://lodash.com/license>
|
||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
*/(function(){var l,a="4.17.21",i=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,f="__lodash_placeholder__",b=1,m=2,h=4,v=1,g=2,O=1,j=2,w=4,y=8,x=16,k=32,_=64,C=128,z=256,E=512,B=30,S="...",V=800,N=16,M=1,A=2,T=3,H=1/0,R=9007199254740991,L=17976931348623157e292,D=NaN,P=4294967295,I=P-1,F=P>>>1,$=[["ary",C],["bind",O],["bindKey",j],["curry",y],["curryRight",x],["flip",E],["partial",k],["partialRight",_],["rearg",z]],q="[object Arguments]",W="[object Array]",U="[object AsyncFunction]",K="[object Boolean]",Y="[object Date]",G="[object DOMException]",X="[object Error]",J="[object Function]",Z="[object GeneratorFunction]",Q="[object Map]",ee="[object Number]",te="[object Null]",re="[object Object]",ne="[object Promise]",oe="[object Proxy]",le="[object RegExp]",ae="[object Set]",ie="[object String]",ce="[object Symbol]",se="[object Undefined]",ue="[object WeakMap]",de="[object WeakSet]",pe="[object ArrayBuffer]",fe="[object DataView]",be="[object Float32Array]",me="[object Float64Array]",he="[object Int8Array]",ve="[object Int16Array]",ge="[object Int32Array]",Oe="[object Uint8Array]",je="[object Uint8ClampedArray]",we="[object Uint16Array]",ye="[object Uint32Array]",xe=/\b__p \+= '';/g,ke=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ce=/&(?:amp|lt|gt|quot|#39);/g,ze=/[&<>"']/g,Ee=RegExp(Ce.source),Be=RegExp(ze.source),Se=/<%-([\s\S]+?)%>/g,Ve=/<%([\s\S]+?)%>/g,Ne=/<%=([\s\S]+?)%>/g,Me=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ae=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,He=/[\\^$.*+?()[\]{}|]/g,Re=RegExp(He.source),Le=/^\s+/,De=/\s/,Pe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ie=/\{\n\/\* \[wrapped with (.+)\] \*/,Fe=/,? & /,$e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qe=/[()=,{}\[\]\/\s]/,We=/\\(\\)?/g,Ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,Xe=/^\[object .+?Constructor\]$/,Je=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,et=/($^)/,tt=/['\n\r\u2028\u2029\\]/g,rt="\\ud800-\\udfff",nt="\\u0300-\\u036f",ot="\\ufe20-\\ufe2f",lt="\\u20d0-\\u20ff",at=nt+ot+lt,it="\\u2700-\\u27bf",ct="a-z\\xdf-\\xf6\\xf8-\\xff",st="\\xac\\xb1\\xd7\\xf7",ut="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dt="\\u2000-\\u206f",pt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ft="A-Z\\xc0-\\xd6\\xd8-\\xde",bt="\\ufe0e\\ufe0f",mt=st+ut+dt+pt,ht="['’]",vt="["+rt+"]",gt="["+mt+"]",Ot="["+at+"]",jt="\\d+",wt="["+it+"]",yt="["+ct+"]",xt="[^"+rt+mt+jt+it+ct+ft+"]",kt="\\ud83c[\\udffb-\\udfff]",_t="(?:"+Ot+"|"+kt+")",Ct="[^"+rt+"]",zt="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+ft+"]",St="\\u200d",Vt="(?:"+yt+"|"+xt+")",Nt="(?:"+Bt+"|"+xt+")",Mt="(?:"+ht+"(?:d|ll|m|re|s|t|ve))?",At="(?:"+ht+"(?:D|LL|M|RE|S|T|VE))?",Tt=_t+"?",Ht="["+bt+"]?",Rt="(?:"+St+"(?:"+[Ct,zt,Et].join("|")+")"+Ht+Tt+")*",Lt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Pt=Ht+Tt+Rt,It="(?:"+[wt,zt,Et].join("|")+")"+Pt,Ft="(?:"+[Ct+Ot+"?",Ot,zt,Et,vt].join("|")+")",$t=RegExp(ht,"g"),qt=RegExp(Ot,"g"),Wt=RegExp(kt+"(?="+kt+")|"+Ft+Pt,"g"),Ut=RegExp([Bt+"?"+yt+"+"+Mt+"(?="+[gt,Bt,"$"].join("|")+")",Nt+"+"+At+"(?="+[gt,Bt+Vt,"$"].join("|")+")",Bt+"?"+Vt+"+"+Mt,Bt+"+"+At,Dt,Lt,jt,It].join("|"),"g"),Kt=RegExp("["+St+rt+at+bt+"]"),Yt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xt=-1,Jt={};Jt[be]=Jt[me]=Jt[he]=Jt[ve]=Jt[ge]=Jt[Oe]=Jt[je]=Jt[we]=Jt[ye]=!0,Jt[q]=Jt[W]=Jt[pe]=Jt[K]=Jt[fe]=Jt[Y]=Jt[X]=Jt[J]=Jt[Q]=Jt[ee]=Jt[re]=Jt[le]=Jt[ae]=Jt[ie]=Jt[ue]=!1;var Zt={};Zt[q]=Zt[W]=Zt[pe]=Zt[fe]=Zt[K]=Zt[Y]=Zt[be]=Zt[me]=Zt[he]=Zt[ve]=Zt[ge]=Zt[Q]=Zt[ee]=Zt[re]=Zt[le]=Zt[ae]=Zt[ie]=Zt[ce]=Zt[Oe]=Zt[je]=Zt[we]=Zt[ye]=!0,Zt[X]=Zt[J]=Zt[ue]=!1;var Qt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Line truncated
|
||||
/*!
|
||||
* escape-html
|
||||
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||||
* Copyright(c) 2015 Andreas Lubbe
|
||||
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||||
* MIT Licensed
|
||||
*/var n=/["'&<>]/;function o(e){var t,r=""+e,o=n.exec(r);if(!o)return r;var l="",a=0,i=0;for(a=o.index;a<r.length;a++){switch(r.charCodeAt(a)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==a&&(l+=r.substring(i,a)),i=a+1,l+=t}return i!==a?l+r.substring(i,a):l}e.exports=o},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7917:function(e,t,r){"use strict";var n=r("c532");function o(e,t,r,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}n.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var l=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(l,"isAxiosError",{value:!0}),o.from=function(e,t,r,a,i,c){var s=Object.create(l);return n.toFlatObject(e,s,(function(e){return e!==Error.prototype})),o.call(s,e.message,t,r,a,i),s.name=e.name,c&&Object.assign(s,c),s},e.exports=o},"7aac":function(e,t,r){"use strict";var n=r("c532");e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,r,o,l,a){var i=[];i.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),n.isString(o)&&i.push("path="+o),n.isString(l)&&i.push("domain="+l),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,r){var n=r("1d80"),o=Object;e.exports=function(e){return o(n(e))}},"7d20":function(e,t,r){"use strict";e.exports=r("eafd")},"825a":function(e,t,r){var n=r("861d"),o=String,l=TypeError;e.exports=function(e){if(n(e))return e;throw l(o(e)+" is not an object")}},"83ab":function(e,t,r){var n=r("d039");e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,r){"use strict";var n=r("d925"),o=r("e683");e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},"83ec":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return c})),r.d(t,"d",(function(){return l}));var n=r("7d20"),o=r("d095");r("f2bf");const l=e=>void 0===e,a=e=>!e&&0!==e||Object(n["isArray"])(e)&&0===e.length||Object(n["isObject"])(e)&&!Object.keys(e).length,i=e=>"undefined"!==typeof Element&&e instanceof Element,c=e=>Object(o["isNil"])(e)},"848b":function(e,t,r){"use strict";var n=r("5cce").version,o=r("7917"),l={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){l[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var a={};function i(e,t,r){if("object"!==typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);var n=Object.keys(e),l=n.length;while(l-- >0){var a=n[l],i=t[a];if(i){var c=e[a],s=void 0===c||i(c,a,e);if(!0!==s)throw new o("option "+a+" must be "+s,o.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}}l.transitional=function(e,t,r){function l(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,i){if(!1===e)throw new o(l(n," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(l(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,i)}},e.exports={assertOptions:i,validators:l}},"861d":function(e,t,r){var n=r("1626"),o=r("8ea1"),l=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===l}:function(e){return"object"==typeof e?null!==e:n(e)}},8925:function(e,t,r){var n=r("e330"),o=r("1626"),l=r("c6cd"),a=n(Function.toString);o(l.inspectSource)||(l.inspectSource=function(e){return a(e)}),e.exports=l.inspectSource},"89d4":function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r("7d20");const o=e=>{if(!e)return{onClick:n["NOOP"],onMousedown:n["NOOP"],onMouseup:n["NOOP"]};let t=!1,r=!1;const o=n=>{t&&r&&e(n),t=r=!1},l=e=>{t=e.target===e.currentTarget},a=e=>{r=e.target===e.currentTarget};return{onClick:o,onMousedown:l,onMouseup:a}}},"8afb":function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return o}));class n extends Error{constructor(e){super(e),this.name="ElementPLine truncated
|
||||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||||
t.read=function(e,t,r,n,o){var l,a,i=8*o-n-1,c=(1<<i)-1,s=c>>1,u=-7,d=r?o-1:0,p=r?-1:1,f=e[t+d];for(d+=p,l=f&(1<<-u)-1,f>>=-u,u+=i;u>0;l=256*l+e[t+d],d+=p,u-=8);for(a=l&(1<<-u)-1,l>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===l)l=1-s;else{if(l===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),l-=s}return(f?-1:1)*a*Math.pow(2,l-n)},t.write=function(e,t,r,n,o,l){var a,i,c,s=8*l-o-1,u=(1<<s)-1,d=u>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:l-1,b=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),t+=a+d>=1?p/c:p*Math.pow(2,1-d),t*c>=2&&(a++,c/=2),a+d>=u?(i=0,a=u):a+d>=1?(i=(t*c-1)*Math.pow(2,o),a+=d):(i=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+f]=255&i,f+=b,i/=256,o-=8);for(a=a<<o|i,s+=o;s>0;e[r+f]=255&a,f+=b,a/=256,s-=8);e[r+f-b]|=128*m}},9215:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return p})),r.d(t,"c",(function(){return f})),r.d(t,"d",(function(){return d})),r.d(t,"e",(function(){return c})),r.d(t,"f",(function(){return u}));var n=r("f2bf"),o=r("7d20"),l=r("8afb");const a="utils/vue/vnode";var i=(e=>(e[e["TEXT"]=1]="TEXT",e[e["CLASS"]=2]="CLASS",e[e["STYLE"]=4]="STYLE",e[e["PROPS"]=8]="PROPS",e[e["FULL_PROPS"]=16]="FULL_PROPS",e[e["HYDRATE_EVENTS"]=32]="HYDRATE_EVENTS",e[e["STABLE_FRAGMENT"]=64]="STABLE_FRAGMENT",e[e["KEYED_FRAGMENT"]=128]="KEYED_FRAGMENT",e[e["UNKEYED_FRAGMENT"]=256]="UNKEYED_FRAGMENT",e[e["NEED_PATCH"]=512]="NEED_PATCH",e[e["DYNAMIC_SLOTS"]=1024]="DYNAMIC_SLOTS",e[e["HOISTED"]=-1]="HOISTED",e[e["BAIL"]=-2]="BAIL",e))(i||{});function c(e){return Object(n["isVNode"])(e)&&e.type===n["Fragment"]}function s(e){return Object(n["isVNode"])(e)&&e.type===n["Comment"]}function u(e){return Object(n["isVNode"])(e)&&!c(e)&&!s(e)}const d=e=>{if(!Object(n["isVNode"])(e))return Object(l["a"])(a,"[getNormalizedProps] must be a VNode"),{};const t=e.props||{},r=(Object(n["isVNode"])(e.type)?e.type.props:void 0)||{},i={};return Object.keys(r).forEach(e=>{Object(o["hasOwn"])(r[e],"default")&&(i[e]=r[e].default)}),Object.keys(t).forEach(e=>{i[Object(o["camelize"])(e)]=t[e]}),i},p=e=>{if(!Object(o["isArray"])(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},f=e=>{const t=Object(o["isArray"])(e)?e:[e],r=[];return t.forEach(e=>{Object(o["isArray"])(e.children)?r.push(...f(e.children)):r.push(e)}),r}},"93b2":function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return i}));var n=r("f2bf"),o=r("0898"),l=r("c23a"),a=r("c083");const i={},c=Object(o["b"])({a11y:{type:Boolean,default:!0},locale:{type:Object(o["c"])(Object)},size:l["c"],button:{type:Object(o["c"])(Object)},experimentalFeatures:{type:Object(o["c"])(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Object(o["c"])(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),s=Object(n["defineComponent"])({name:"ElConfigProvider",props:c,setup(e,{slots:t}){Object(n["watch"])(()=>e.message,e=>{Object.assign(i,null!=e?e:{})},{immediate:!0,deep:!0});const r=Object(a["a"])(e);return()=>Object(n["renderSlot"])(t,"default",{config:null==r?void 0:r.value})}})},"94ca":function(e,t,r){var n=r("d039"),o=r("1626"),l=/#|\.prototype\./,a=function(e,t){var r=c[i(e)];return r==u||r!=s&&(o(t)?n(t):!!t)},i=a.normalize=function(e){return String(e).replace(l,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},9885:function(e,t,r){"use strict";r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return c})),r.d(t,"d",(function(){return l})),r.d(t,"e",(function(){return i}));const n='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',o=e=>{const t=getComputedStyle(e);return"fixed"!==t.position&&null!==e.offsetParent},l=e=>Array.from(e.querySelectorAll(n)).filter(e=>a(e)&&o(e)),a=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},i=function(e,t,...r){let n;n=t.includes("mouse")||t.includes("click")?"MouseEvents":t.includes("key")?"KeyboardEvent":"HTMLEvents";const o=document.createEvent(n);return o.initEvent(t,...r),e.dispatchEvent(o),e},c=e=>!e.getAttribute("aria-owns"),s=(e,t,r)=>{const{parentNode:n}=e;if(!n)return null;const o=n.querySelectorAll(r),l=Array.prototype.indexOf.call(o,e);return o[l+t]||null},u=e=>{e&&(e.focus(),!c(e)&&e.click())}},"9ad7":function(e,t,r){"use strict";
|
||||
/*! Element Plus Icons Vue v2.0.9 */var n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,i=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},c=(e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of l(t))!a.call(e,c)&&c!==r&&n(e,c,{get:()=>t[c],enumerable:!(i=o(t,c))||i.enumerable});return e},s=e=>c(n({},"__esModule",{value:!0}),e),u={};i(u,{AddLocation:()=>j,Aim:()=>E,AlarmClock:()=>H,Apple:()=>$,ArrowDown:()=>ne,ArrowDownBold:()=>X,ArrowLeft:()=>ve,ArrowLeftBold:()=>ue,ArrowRight:()=>Ve,ArrowRightBold:()=>ke,ArrowUp:()=>We,ArrowUpBold:()=>Le,Avatar:()=>Ze,Back:()=>at,Baseball:()=>bt,Basketball:()=>wt,Bell:()=>Rt,BellFilled:()=>Et,Bicycle:()=>qt,Bottom:()=>fr,BottomLeft:()=>Zt,BottomRight:()=>ar,Bowl:()=>jr,Box:()=>Br,Briefcase:()=>Hr,Brush:()=>Xr,BrushFilled:()=>$r,Burger:()=>nn,Calendar:()=>dn,Camera:()=>_n,CameraFilled:()=>gn,CaretBottom:()=>Nn,CaretLeft:()=>Dn,CaretRight:()=>Un,CaretTop:()=>Qn,Cellphone:()=>ao,ChatDotRound:()=>mo,ChatDotSquare:()=>xo,ChatLineRound:()=>Vo,ChatLineSquare:()=>Do,ChatRound:()=>Uo,ChatSquare:()=>Qo,Check:()=>al,Checked:()=>fl,Cherry:()=>jl,Chicken:()=>zl,ChromeFilled:()=>Hl,CircleCheck:()=>Jl,CircleCheckFilled:()=>$l,CircleClose:()=>pa,CircleCloseFilled:()=>oa,CirclePlus:()=>Ea,CirclePlusFilled:()=>Oa,Clock:()=>Ra,Close:()=>Ja,CloseBold:()=>qa,Cloudy:()=>oi,Coffee:()=>gi,CoffeeCup:()=>di,Coin:()=>zi,ColdDrink:()=>Ai,Collection:()=>Gi,CollectionTag:()=>Ii,Comment:()=>rc,Compass:()=>uc,Connection:()=>gc,Coordinate:()=>Cc,CopyDocument:()=>Ac,Cpu:()=>Fc,CreditCard:()=>Xc,Crop:()=>os,DArrowLeft:()=>ds,DArrowRight:()=>gs,DCaret:()=>_s,DataAnalysis:()=>Ns,DataBoard:()=>Is,DataLine:()=>Ys,Delete:()=>vu,DeleteFilled:()=>tu,DeleteLocation:()=>uu,Dessert:()=>ku,Discount:()=>Nu,Dish:()=>Uu,DishDot:()=>Du,Document:()=>Ad,DocumentAdd:()=>Qu,DocumentChecked:()=>ad,DocumentCopy:()=>fd,DocumentDelete:()=>jd,DocumentRemove:()=>zd,Download:()=>Id,Drizzling:()=>Yd,Edit:()=>sp,EditPen:()=>tp,Eleme:()=>xp,ElemeFilled:()=>hp,ElementPlus:()=>Sp,Expand:()=>Rp,Failed:()=>qp,Female:()=>Qp,Files:()=>af,Film:()=>mf,Filter:()=>yf,Finished:()=>Bf,FirstAidKit:()=>Rf,Flag:()=>qf,Fold:()=>Jf,Folder:()=>Db,FolderAdd:()=>ob,FolderChecked:()=>db,FolderDelete:()=>gb,FolderOpened:()=>_b,FolderRemove:()=>Nb,Food:()=>Ub,Football:()=>em,ForkSpoon:()=>im,Fries:()=>bm,FullScreen:()=>wm,Goblet:()=>Gm,GobletFull:()=>Em,GobletSquare:()=>Fm,GobletSquareFull:()=>Tm,GoldMedal:()=>nh,Goods:()=>vh,GoodsFilled:()=>uh,Grape:()=>kh,Grid:()=>Vh,Guide:()=>Dh,Handbag:()=>Uh,Headset:()=>Qh,Help:()=>fv,HelpFilled:()=>av,Hide:()=>wv,Histogram:()=>Ev,HomeFilled:()=>Tv,HotWater:()=>Fv,House:()=>Gv,IceCream:()=>hg,IceCreamRound:()=>rg,IceCreamSquare:()=>sg,IceDrink:()=>xg,IceTea:()=>Sg,InfoFilled:()=>Rg,Iphone:()=>qg,Key:()=>Jg,KnifeFork:()=>oO,Lightning:()=>pO,Link:()=>OO,List:()=>CO,Loading:()=>MO,Location:()=>nj,LocationFilled:()=>PO,LocationInformation:()=>GO,Lock:()=>dj,Lollipop:()=>gj,MagicStick:()=>_j,Magnet:()=>Nj,Male:()=>Ij,Management:()=>Yj,MapLocation:()=>rw,Medal:()=>uw,Memo:()=>Ow,Menu:()=>Cw,Message:()=>Iw,MessageBox:()=>Mw,Mic:()=>Yw,Microphone:()=>ty,MilkTea:()=>cy,Minus:()=>my,Money:()=>ky,Monitor:()=>Vy,Moon:()=>Uy,MoonNight:()=>Dy,More:()=>ax,MoreFilled:()=>Qy,MostlyCloudy:()=>fx,Mouse:()=>wx,Mug:()=>Ex,Mute:()=>qx,MuteNotification:()=>Hx,NoSmoking:()=>Jx,Notebook:()=>lk,Notification:()=>fk,Odometer:()=>yk,OfficeBuilding:()=>Vk,Open:()=>Dk,Operation:()=>Uk,Opportunity:()=>Qk,Orange:()=>a_,Paperclip:()=>f_,PartlyCloudy:()=>w_,Pear:()=>E_,Phone:()=>F_,PhoneFilled:()=>T_,Picture:()=>dC,PictureFilled:()=>G_,PictureRounded:()=>nC,PieChart:()=>OC,Place:()=>EC,Platform:()=>TC,Plus:()=>FC,Pointer:()=>GC,Position:()=>rz,Postcard:()=>uz,Pouring:()=>vz,Present:()=>zz,PriceTag:()=>Tz,Printer:()=>Fz,Promotion:()=>Gz,QuartzWatch:()=>oE,QuestionFilled:()=>dE,Rank:()=>gE,Reading:()=>AE,ReadingLamp:()=>CE,Refresh:()=>tB,RefreshLeft:()=>IE,RefreshRight:()=>YE,Refrigerator:()=>cB,Remove:()=>xB,RemoveFilled:()=>mB,Right:()=>SB,ScaleToOriginal:()=>RB,School:()=>UB,Scissor:()=>QB,Search:()=>aS,Select:()=>fS,Sell:()=>jS,SemiSelect:()=>zS,Service:()=>AS,SetUp:()=>qS,Setting:()=>JS,Share:()=>oV,Ship:()=>dV,Shop:()=>gV,ShoppingBag:()=>CV,ShoppingCart:()=>IV,ShoppingCartFull:()=>AV,ShoppingTrolley:()=>YV,Smoking:()=>rN,Soccer:()=>sN,SoldOut:()=>hN,Sort:()=>RN,SortDown:()=>xN,SortUp:()=>SN,Stamp:()=>qN,Star:()=>oM,StarFilled:()=>JN,Stopwatch:()=>pM,SuccessFilled:()=>OM,Sugar:()=>CM,Suitcase:()=>IM,SuitcaseLine:()=>MM,Sunny:()=>YM,Sunrise:()=>tA,Sunset:()=>cA,Switch:()=>VA,SwitchButton:()=>hA,SwitchFilled:()=>kA,TakeawayBox:()=>LA,Ticket:()=>WA,Tickets:()=>ZA,Timer:()=>iT,ToiletPaper:()=>mT,Tools:()=>yT,Top:()=>WT,TopLeft:()=>ST,TopRight:()=>LT,TrendCharts:()=>ZT,Trophy:()=>pH,TrophyBase:()=>lH,TurnOff:()=>jH,Umbrella:()=>zH,Unlock:()=>TH,Upload:()=>GH,UploadFilled:()=>FH,User:()=>sR,UserFilled:()=>rR,Van:()=>hR,VideoCamera:()=>SR,VideoCameraFilled:()=Line truncated
|
||||
/*!
|
||||
* The buffer module from node.js, for the browser.
|
||||
*
|
||||
* @author Feross Aboukhadijeh <http://feross.org>
|
||||
* @license MIT
|
||||
*/
|
||||
var n=r("1fb5"),o=r("9152"),l=r("e3db");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function i(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(i()<t)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=s.prototype):(null===e&&(e=new s(t)),e.length=t),e}function s(e,t,r){if(!s.TYPED_ARRAY_SUPPORT&&!(this instanceof s))return new s(e,t,r);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,r)}function u(e,t,r,n){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?h(e,t,r,n):"string"===typeof t?b(e,t,r):v(e,t)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t,r,n){return d(t),t<=0?c(e,t):void 0!==r?"string"===typeof n?c(e,t).fill(r,n):c(e,t).fill(r):c(e,t)}function f(e,t){if(d(t),e=c(e,t<0?0:0|g(t)),!s.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function b(e,t,r){if("string"===typeof r&&""!==r||(r="utf8"),!s.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|j(t,r);e=c(e,n);var o=e.write(t,r);return o!==n&&(e=e.slice(0,o)),e}function m(e,t){var r=t.length<0?0:0|g(t.length);e=c(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),s.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=s.prototype):e=m(e,t),e}function v(e,t){if(s.isBuffer(t)){var r=0|g(t.length);return e=c(e,r),0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?c(e,0):m(e,t);if("Buffer"===t.type&&l(t.data))return m(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function O(e){return+e!=e&&(e=0),s.alloc(+e)}function j(e,t){if(s.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(e).length;default:if(n)return X(e).length;t=(""+t).toLowerCase(),n=!0}}function w(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return N(this,t,r);case"ascii":return T(this,t,r);case"latin1":case"binary":return H(this,t,r);case"base64":return V(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function x(e,t,r,n,o){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"===typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:k(e,t,r,n,o);if("number"===typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):k(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function k(e,t,r,n,o){var l,a=1,i=e.length,c=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,i/=2,c/=2,r/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(l=r;l<i;l++)if(s(e,l)===s(t,-1===u?0:l-u)){if(-1===u&&(u=l),l-u+1===c)return u*a}else-1!==u&&(l-=l-u),u=-1}else for(r+c>i&&(r=i-c),l=r;l>=0;l--){for(var d=!0,p=0;p<c;p++)if(s(e,l+p)!==s(t,p)){d=!1;break}if(d)return l}return-1}function _(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var l=t.lenLine truncated
|
||||
/*! Element Plus Icons Vue v2.0.9 */function d(e,t,r,o,l,i){return Object(n["openBlock"])(),Object(n["createElementBlock"])("svg",a,u)}var p=o(l,[["render",d],["__file","add-location.vue"]]),f={name:"Aim"},b={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},m=Object(n["createElementVNode"])("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),h=Object(n["createElementVNode"])("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32zm0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32zM96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32zm576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32z"},null,-1),v=[m,h];function g(e,t,r,o,l,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("svg",b,v)}var O=o(f,[["render",g],["__file","aim.vue"]]),j={name:"AlarmClock"},w={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},y=Object(n["createElementVNode"])("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z"},null,-1),x=Object(n["createElementVNode"])("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32l48-83.136zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32l-48-83.136zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0v192zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128l46.912 46.912z"},null,-1),k=[y,x];function _(e,t,r,o,l,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("svg",w,k)}var C=o(j,[["render",_],["__file","alarm-clock.vue"]]),z={name:"Apple"},E={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},B=Object(n["createElementVNode"])("path",{fill:"currentColor",d:"M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z"},null,-1),S=[B];function V(e,t,r,o,l,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("svg",E,S)}var N=o(z,[["render",V],["__file","apple.vue"]]),M={name:"ArrowDownBold"},A={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},T=Object(n["createElementVNode"])("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"},null,-1),H=[T];function R(e,t,r,o,l,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("svg",A,H)}var L=o(M,[["render",R],["__file","arrow-down-bold.vue"]]),D={name:"ArrowDown"},P={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},I=Object(n["createElementVNode"])("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),F=[I];function $(e,t,r,o,l,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("svg",P,F)}var q=o(D,[["render",$],["__file","arrow-down.vue"]]),W={name:"ArrowLeftBold"},U={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},K=Object(n["createElementVNode"])("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"},null,-1),Y=[K];function G(e,t,r,o,l,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("svg",U,Y)}var X=o(W,[["render",G],["__file","arrow-left-bold.vue"]]),J={name:"ArrowLeft"},Z={vLine truncated
|
||||
@@ -1,323 +0,0 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
const t$1=window,e$2=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$3=Symbol(),n$3=new WeakMap;let o$3 = class o{constructor(t,e,n){if(this._$cssResult$=!0,n!==s$3)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$2&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=n$3.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&n$3.set(s,t));}return t}toString(){return this.cssText}};const r$2=t=>new o$3("string"==typeof t?t:t+"",void 0,s$3),i$1=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,s,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[n+1]),t[0]);return new o$3(n,t,s$3)},S$1=(s,n)=>{e$2?s.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((e=>{const n=document.createElement("style"),o=t$1.litNonce;void 0!==o&&n.setAttribute("nonce",o),n.textContent=e.cssText,s.appendChild(n);}));},c$1=e$2?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2(e)})(t):t;
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/var s$2;const e$1=window,r$1=e$1.trustedTypes,h$1=r$1?r$1.emptyScript:"",o$2=e$1.reactiveElementPolyfillSupport,n$2={toAttribute(t,i){switch(i){case Boolean:t=t?h$1:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,i){let s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t);}catch(t){s=null;}}return s}},a$1=(t,i)=>i!==t&&(i==i||t==t),l$2={attribute:!0,type:String,converter:n$2,reflect:!1,hasChanged:a$1},d$1="finalized";let u$1 = class u extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u();}static addInitializer(t){var i;this.finalize(),(null!==(i=this.h)&&void 0!==i?i:this.h=[]).push(t);}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,s)=>{const e=this._$Ep(s,i);void 0!==e&&(this._$Ev.set(e,s),t.push(e));})),t}static createProperty(t,i=l$2){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,e=this.getPropertyDescriptor(t,s,i);void 0!==e&&Object.defineProperty(this.prototype,t,e);}}static getPropertyDescriptor(t,i,s){return {get(){return this[i]},set(e){const r=this[t];this[i]=e,this.requestUpdate(t,r,s);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l$2}static finalize(){if(this.hasOwnProperty(d$1))return !1;this[d$1]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s]);}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(i){const s=[];if(Array.isArray(i)){const e=new Set(i.flat(1/0).reverse());for(const i of e)s.unshift(c$1(i));}else void 0!==i&&s.push(c$1(i));return s}static _$Ep(t,i){const s=i.attribute;return !1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)));}addController(t){var i,s;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t));}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1);}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i]);}));}createRenderRoot(){var t;const s=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return S$1(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}));}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}));}attributeChangedCallback(t,i,s){this._$AK(t,s);}_$EO(t,i,s=l$2){var e;const r=this.constructor._$Ep(t,s);if(void 0!==r&&!0===s.reflect){const h=(void 0!==(null===(e=s.converter)||void 0===e?void 0:e.toAttribute)?s.converter:n$2).toAttribute(i,s.type);this._$El=t,null==h?this.removeAttribute(r):this.setAttribute(r,h),this._$El=null;}}_$AK(t,i){var s;const e=this.constructor,r=e._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=e.getPropertyOptions(r),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:n$2;this._$El=r,this[r]=h.fromAttribute(i,t.type),this._$El=null;}}requestUpdate(t,i,s){let e=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||a$1)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):e=!1),!this.isUpdatePending&&e&&(this._$E_=this._$Ej());}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(s)):this._$Ek();}catch(t){throw i=!1,this._$Ek(),t}i&&thiLine truncated
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
var t;const i=window,s$1=i.trustedTypes,e=s$1?s$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,o$1="$lit$",n$1=`lit$${(Math.random()+"").slice(9)}$`,l$1="?"+n$1,h=`<${l$1}>`,r=document,u=()=>r.createComment(""),d=t=>null===t||"object"!=typeof t&&"function"!=typeof t,c=Array.isArray,v=t=>c(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),a="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${a}(?:([^\\s"'>=/]+)(${a}*=${a}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,w=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=w(1),T=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),E=new WeakMap,C=r.createTreeWalker(r,129,null,!1);function P(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e?e.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,e=[];let l,r=2===i?"<svg>":"",u=f;for(let i=0;i<s;i++){const s=t[i];let d,c,v=-1,a=0;for(;a<s.length&&(u.lastIndex=a,c=u.exec(s),null!==c);)a=u.lastIndex,u===f?"!--"===c[1]?u=_:void 0!==c[1]?u=m:void 0!==c[2]?(y.test(c[2])&&(l=RegExp("</"+c[2],"g")),u=p):void 0!==c[3]&&(u=p):u===p?">"===c[0]?(u=null!=l?l:f,v=-1):void 0===c[1]?v=-2:(v=u.lastIndex-c[2].length,d=c[1],u=void 0===c[3]?p:'"'===c[3]?$:g):u===$||u===g?u=p:u===_||u===m?u=f:(u=p,l=void 0);const w=u===p&&t[i+1].startsWith("/>")?" ":"";r+=u===f?s+h:v>=0?(e.push(d),s.slice(0,v)+o$1+s.slice(v)+n$1+w):s+n$1+(-2===v?(e.push(void 0),i):w);}return [P(t,r+(t[s]||"<?>")+(2===i?"</svg>":"")),e]};class N{constructor({strings:t,_$litType$:i},e){let h;this.parts=[];let r=0,d=0;const c=t.length-1,v=this.parts,[a,f]=V(t,i);if(this.el=N.createElement(a,e),C.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes);}for(;null!==(h=C.nextNode())&&v.length<c;){if(1===h.nodeType){if(h.hasAttributes()){const t=[];for(const i of h.getAttributeNames())if(i.endsWith(o$1)||i.startsWith(n$1)){const s=f[d++];if(t.push(i),void 0!==s){const t=h.getAttribute(s.toLowerCase()+o$1).split(n$1),i=/([.?@])?(.*)/.exec(s);v.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?H:"?"===i[1]?L:"@"===i[1]?z:k});}else v.push({type:6,index:r});}for(const i of t)h.removeAttribute(i);}if(y.test(h.tagName)){const t=h.textContent.split(n$1),i=t.length-1;if(i>0){h.textContent=s$1?s$1.emptyScript:"";for(let s=0;s<i;s++)h.append(t[s],u()),C.nextNode(),v.push({type:2,index:++r});h.append(t[i],u());}}}else if(8===h.nodeType)if(h.data===l$1)v.push({type:2,index:r});else {let t=-1;for(;-1!==(t=h.data.indexOf(n$1,t+1));)v.push({type:7,index:r}),t+=n$1.length-1;}r++;}}static createElement(t,i){const s=r.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){var o,n,l,h;if(i===T)return i;let r=void 0!==e?null===(o=s._$Co)||void 0===o?void 0:o[e]:s._$Cl;const u=d(i)?void 0:i._$litDirective$;return (null==r?void 0:r.constructor)!==u&&(null===(n=null==r?void 0:r._$AO)||void 0===n||n.call(r,!1),void 0===u?r=void 0:(r=new u(t),r._$AT(t,s,e)),void 0!==e?(null!==(l=(h=s)._$Co)&&void 0!==l?l:h._$Co=[])[e]=r:s._$Cl=r),void 0!==r&&(i=S(t,r._$AS(t,i.values),r,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:r).importNode(s,!0);C.currentNode=o;let n=C.nextNode(),l=0,h=0,u=e[0];for(;void 0!==u;){if(l===u.index){let i;2===u.type?i=new R(n,n.nextSibling,this,t):1===u.type?i=new u.ctor(n,u.name,u.strings,this,t):6===u.type&&(i=new Z(n,this,t)),this._$AV.push(i),u=e[++h];}l!==(null==u?void 0:u.index)&&(n=C.nextNode(),l++);}return C.currentNode=r,o}v(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{constructor(t,i,s,e){var o;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cp=null===(o=null==e?void 0:e.isConnected)||void 0===o||o;}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),d(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):v(t)?this.T(t):this._(t);}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t));}_(t){this._$AH!==A&&d(this._$AH)?this._$AA.nextSibling.data=t:this.$(r.createTextNode(t)),this._$AH=t;}g(t){var i;const{values:s,_$litType$:e}=t,o="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=N.createElement(P(e.h,e.h[0]),this.optiLine truncated
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/var l,o;class s extends u$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=D(i,this.renderRoot,this.renderOptions);}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0);}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1);}render(){return T}}s.finalized=!0,s._$litElement$=!0,null===(l=globalThis.litElementHydrateSupport)||void 0===l||l.call(globalThis,{LitElement:s});const n=globalThis.litElementPolyfillSupport;null==n||n({LitElement:s});(null!==(o=globalThis.litElementVersions)&&void 0!==o?o:globalThis.litElementVersions=[]).push("3.3.2");
|
||||
|
||||
const DEFAULT_EMOJIS = '👍,thumbs-up;😄,smile-face;🎉,party-popper;😕,confused-face;❤️,red-heart;🚀,rocket;👀,eyes;👎,thumbs-down;';
|
||||
|
||||
class EmojiReaction extends s {
|
||||
static properties = {
|
||||
showAvailable: {attribute: false},
|
||||
availableReactions: { attribute: false },
|
||||
availableArrayString: {},
|
||||
endpoint: {},
|
||||
reactTargetId: {},
|
||||
theme: {},
|
||||
};
|
||||
// Define scoped styles right with your component, in plain CSS
|
||||
static styles = i$1`
|
||||
/* default light */
|
||||
.container {
|
||||
--start-smile-border-color-default: #d0d7de;
|
||||
--start-smile-border-color-hover-default: #1f232826;
|
||||
--start-smile-bg-color-default: #f6f8fa;
|
||||
--start-smile-svg-fill-color-default: #656d76;
|
||||
--reaction-got-not-reacted-bg-color-default: #fff;
|
||||
--reaction-got-not-reacted-bg-color-hover-default: #eaeef2;
|
||||
--reaction-got-not-reacted-border-color-default: #d0d7de;
|
||||
--reaction-got-not-reacted-text-color-default: #656d76;
|
||||
--reaction-got-reacted-bg-color-default: #ddf4ff;
|
||||
--reaction-got-reacted-bg-color-hover-default: #b6e3ff;
|
||||
--reaction-got-reacted-border-color-default: #0969da;
|
||||
--reaction-got-reacted-text-color-default: #0969da;
|
||||
--reaction-available-popup-bg-color-default: #fff;
|
||||
--reaction-available-popup-border-color-default: #d0d7de;
|
||||
--reaction-available-popup-box-shadow-default: #8c959f33 0px 8px 24px 0px;
|
||||
--reaction-available-emoji-reacted-bg-color-default: #ddf4ff;
|
||||
--reaction-available-emoji-bg-color-hover-default: #f3f4f6;
|
||||
--reaction-available-emoji-z-index-default: 100;
|
||||
--reaction-available-mask-z-index-default: 80;
|
||||
}
|
||||
/* default dark */
|
||||
.container-dark {
|
||||
--start-smile-border-color-default: #21262d;
|
||||
--start-smile-border-color-hover-default: #8b949e;
|
||||
--start-smile-bg-color-default: #30363d;
|
||||
--start-smile-svg-fill-color-default: #7d8590;
|
||||
--reaction-got-not-reacted-bg-color-default: #00000000;
|
||||
--reaction-got-not-reacted-bg-color-hover-default: #21262d;
|
||||
--reaction-got-not-reacted-border-color-default: #30363d;
|
||||
--reaction-got-not-reacted-text-color-default: #7d8590;
|
||||
--reaction-got-reacted-bg-color-default: #388bfd1a;
|
||||
--reaction-got-reacted-bg-color-hover-default: #0c2d6b;
|
||||
--reaction-got-reacted-border-color-default: #1f6feb;
|
||||
--reaction-got-reacted-text-color-default: #2f81f7;
|
||||
--reaction-available-popup-bg-color-default: #161b22;
|
||||
--reaction-available-popup-border-color-default: #30363d;
|
||||
--reaction-available-popup-box-shadow-default: #010409 0px 8px 24px 0px;
|
||||
--reaction-available-emoji-reacted-bg-color-default: #388bfd1a;
|
||||
--reaction-available-emoji-bg-color-hover-default: #30363d;
|
||||
--reaction-available-emoji-z-index-default: 100;
|
||||
--reaction-available-mask-z-index-default: 80;
|
||||
}
|
||||
.anim-scale-in {
|
||||
animation-name: scale-in;
|
||||
animation-duration: .15s;
|
||||
animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);
|
||||
}
|
||||
|
||||
@keyframes scale-in {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale(0.5);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
// Render the UI as a function of component state
|
||||
render() {
|
||||
const system_theme = window.matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark";
|
||||
return x`
|
||||
<style>
|
||||
#start-smile {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: var(--start-smile-border-color, var(--start-smile-border-color-default));
|
||||
background-color: var(--start-smile-bg-color, var(--start-smile-bg-color-default));
|
||||
}
|
||||
#start-smile:hover {
|
||||
border-color: var(--start-smile-border-color-hover, var(--start-smile-border-color-hover-default)) !important;
|
||||
}
|
||||
#start-smile-svg {
|
||||
fill: var(--start-smile-svg-fill-color, var(--start-smile-svg-fill-color-default));
|
||||
}
|
||||
.reaction-got-not-reacted {
|
||||
background-color: var(--reaction-got-not-reacted-bg-color, var(--reaction-got-not-reacted-bg-color-default));
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: var(--reaction-got-not-reacted-border-color, var(--reaction-got-not-reacted-border-color-default));
|
||||
color: var(--reaction-got-not-reacted-text-color, var(--reaction-got-not-reacted-text-color-default));
|
||||
}
|
||||
.reaction-got-not-reacted:hover {
|
||||
background-color: var(--reaction-got-not-reacted-bg-color-hover, var(--reaction-got-not-reacted-bg-color-hover-default));
|
||||
}
|
||||
.reaction-got-reacted {
|
||||
background-color: var(--reaction-got-reacted-bg-color, var(--reaction-got-reacted-bg-color-default));
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: var(--reaction-got-reacted-border-color, var(--reaction-got-reacted-border-color-default));
|
||||
color: var(--reaction-got-reacted-text-color, var(--reaction-got-reacted-text-color-default));
|
||||
}
|
||||
.reaction-got-reacted:hover {
|
||||
background-color: var(--reaction-got-reacted-bg-color-hover, var(--reaction-got-reacted-bg-color-hover-default));
|
||||
}
|
||||
.reaction-available-popup {
|
||||
background-color: var(--reaction-available-popup-bg-color, var(--reaction-available-popup-bg-color-default));
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: var(--reaction-available-popup-border-color, var(--reaction-available-popup-border-color-default));
|
||||
box-shadow: var(--reaction-available-popup-box-shadow, var(--reaction-available-popup-box-shadow-default));
|
||||
}
|
||||
.reaction-available-emoji {
|
||||
z-index: var(--reaction-available-emoji-z-index, var(--reaction-available-emoji-z-index-default));
|
||||
}
|
||||
.reaction-available-emoji:hover {
|
||||
background-color: var(--reaction-available-emoji-bg-color-hover, var(--reaction-available-emoji-bg-color-hover-default));
|
||||
}
|
||||
.reaction-available-emoji-reacted {
|
||||
background-color: var(--reaction-available-emoji-reacted-bg-color, var(--reaction-available-emoji-reacted-bg-color-default));
|
||||
}
|
||||
.reaction-available-popup::before {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: var(--reaction-available-mask-z-index, var(--reaction-available-mask-z-index-default));
|
||||
display: block;
|
||||
cursor: default;
|
||||
content: " ";
|
||||
background: transparent;
|
||||
}
|
||||
</style>
|
||||
<!-- container -->
|
||||
<div style="flex-wrap: nowrap; max-width: 100%; display: flex; gap: 0.375rem;" class="${this?.theme === 'dark' || (this?.theme === 'system' && system_theme === 'dark') ? 'container-dark' : 'container'}">
|
||||
<!-- 灰色笑脸 -->
|
||||
<div style="position: relative; user-select: none;">
|
||||
<div id="start-smile" @click="${this._showAvailable}"
|
||||
style="border-radius: 800px; width: 1rem; height: 1rem; line-height: 1rem; padding: 0.25rem;">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="1rem" height="1rem" id="start-smile-svg" style="cursor: pointer;">
|
||||
<path
|
||||
d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm3.82 1.636a.75.75 0 0 1 1.038.175l.007.009c.103.118.22.222.35.31.264.178.683.37 1.285.37.602 0 1.02-.192 1.285-.371.13-.088.247-.192.35-.31l.007-.008a.75.75 0 0 1 1.222.87l-.022-.015c.02.013.021.015.021.015v.001l-.001.002-.002.003-.005.007-.014.019a2.066 2.066 0 0 1-.184.213c-.16.166-.338.316-.53.445-.63.418-1.37.638-2.127.629-.946 0-1.652-.308-2.126-.63a3.331 3.331 0 0 1-.715-.657l-.014-.02-.005-.006-.002-.003v-.002h-.001l.613-.432-.614.43a.75.75 0 0 1 .183-1.044ZM12 7a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM5 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5.25 2.25.592.416a97.71 97.71 0 0 0-.592-.416Z">
|
||||
</path>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="anim-scale-in reaction-available-popup" @click=${this._closePopup} style="display: ${this.showAvailable ? 'flex' : 'none'}; user-select: none; position: absolute; top: -3rem; font-size: 0.875rem; border-radius: 0.375rem; padding: 0 0.125rem;">
|
||||
<!-- reactions available -->
|
||||
${this.availableReactions.map(item => x`
|
||||
<span @click=${this._react} data-name="${item.reaction_name}" class="reaction-available-emoji ${item.meReacted ? 'reaction-available-emoji-reacted' : ''}" style="cursor: pointer; margin: 0.25rem 0.125rem; padding: 0.25rem; border-radius: 0.375rem;">${item.emoji}</span>
|
||||
`)}
|
||||
</div>
|
||||
</div>
|
||||
<!-- reactions got -->
|
||||
<div style="display: flex; overflow-x: auto; gap: 0.375rem;">
|
||||
${this.availableReactions.map(item => x`
|
||||
<div @click=${this._react} data-name="${item.reaction_name}" class="${item.meReacted ? 'reaction-got-reacted' : 'reaction-got-not-reacted'}" style="display: ${item?.count && item.count > 0 ? 'flex' : 'none'}; user-select: none; cursor: pointer; justify-content: center; align-items: center; border-radius: 108px; padding: 0 0.25rem; font-size: 0.75rem;">
|
||||
<span style="pointer-events: none;">${item.emoji}</span><span style="padding:0 0.375rem; pointer-events: none;">${item.count}</span>
|
||||
</div>
|
||||
`)}
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
// Declare reactive properties
|
||||
this.showAvailable = false;
|
||||
this.availableReactions = [];
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
super.connectedCallback();
|
||||
this.initReactions();
|
||||
}
|
||||
|
||||
async initReactions() {
|
||||
let arr_string = this?.availableArrayString;
|
||||
if (!arr_string) {
|
||||
arr_string = DEFAULT_EMOJIS;
|
||||
}
|
||||
const arr = arr_string.split(';').map(val => {
|
||||
const [emoji, reaction_name] = val.split(',');
|
||||
if (!emoji || !reaction_name) {
|
||||
return null
|
||||
}
|
||||
return { emoji, reaction_name }
|
||||
}).filter(val => val);
|
||||
// 初始化 endpoint
|
||||
if (!this?.endpoint) {
|
||||
this.endpoint = 'https://api.emaction.cool';
|
||||
}
|
||||
// 请求接口,获取哪些 emoji 有 reaction 数量
|
||||
let url_2_generate_id = '';
|
||||
const canonical = document.head.querySelector("link[rel='canonical']");
|
||||
url_2_generate_id = canonical && canonical.href ? canonical.href : window.location.href;
|
||||
const urlObj = new URL(url_2_generate_id);
|
||||
const url_without_hash = urlObj.origin + urlObj.pathname + urlObj.search;
|
||||
if (!this?.reactTargetId) {
|
||||
this.reactTargetId = await this._sha256(url_without_hash);
|
||||
}
|
||||
const { data: { reactionsGot } } = await fetch(this.endpoint + '/reactions?' + new URLSearchParams({
|
||||
targetId: this.reactTargetId,
|
||||
}), {
|
||||
method: 'GET',
|
||||
})
|
||||
.then(resp => resp.json())
|
||||
.then(resp => {
|
||||
if (!resp?.data || !Array.isArray(resp?.data?.reactionsGot)) {
|
||||
throw new Error("获取 reactions 出错!")
|
||||
}
|
||||
return resp;
|
||||
});
|
||||
// 获得的 reactions 数量放到 arr 里
|
||||
reactionsGot.forEach(reaction => {
|
||||
arr.forEach(availableReaction => {
|
||||
if (reaction.reaction_name === availableReaction.reaction_name) {
|
||||
availableReaction.count = reaction.count;
|
||||
}
|
||||
});
|
||||
});
|
||||
// 读取 localStorage,获取当前用户点击过的 emoji
|
||||
const storageKey = `meReactedReactions_${this.reactTargetId}`;
|
||||
const meReactedReactions = JSON.parse(window.localStorage.getItem(storageKey) || "[]");
|
||||
// 当前用户点击状态放到 arr
|
||||
meReactedReactions.forEach(reaction_name => {
|
||||
arr.forEach(availableReaction => {
|
||||
if (reaction_name === availableReaction.reaction_name) {
|
||||
availableReaction.meReacted = true;
|
||||
}
|
||||
});
|
||||
});
|
||||
// 初始化 avaiableArray
|
||||
this.availableReactions = arr;
|
||||
}
|
||||
|
||||
_closePopup(e) {
|
||||
console.log(e.target);
|
||||
this.showAvailable = false;
|
||||
}
|
||||
|
||||
async _react(e) {
|
||||
const { name: reaction_name } = e.target.dataset;
|
||||
const reaction = this.availableReactions.find(ele => ele.reaction_name === reaction_name);
|
||||
if (!reaction) {
|
||||
console.error("未知的 reaction!");
|
||||
return
|
||||
}
|
||||
const cancel = reaction?.meReacted ? true : false;
|
||||
const count = Math.max(0, reaction?.count ? reaction.count + (cancel ? -1 : 1) : (cancel ? 0 : 1));
|
||||
const meReacted = !reaction.meReacted;
|
||||
this.availableReactions = this.availableReactions.map(val => {
|
||||
if (val.reaction_name === reaction_name) {
|
||||
val.count = count;
|
||||
val.meReacted = meReacted;
|
||||
}
|
||||
return val
|
||||
});
|
||||
this.showAvailable = false;
|
||||
// 请求接口,更新 react 数量
|
||||
await fetch(this.endpoint + '/reaction?' + new URLSearchParams({
|
||||
targetId: this.reactTargetId,
|
||||
reaction_name,
|
||||
diff: cancel ? -1 : 1
|
||||
}), { method: "PATCH"});
|
||||
// 更新 localStorage
|
||||
const storageKey = `meReactedReactions_${this.reactTargetId}`;
|
||||
const meReactedReactionsSet = new Set(JSON.parse(window.localStorage.getItem(storageKey) || "[]"));
|
||||
if (cancel) {
|
||||
meReactedReactionsSet.delete(reaction_name);
|
||||
} else {
|
||||
meReactedReactionsSet.add(reaction_name);
|
||||
}
|
||||
window.localStorage.setItem(storageKey, JSON.stringify(Array.from(meReactedReactionsSet)));
|
||||
}
|
||||
_showAvailable(e) {
|
||||
e.preventDefault();
|
||||
this.showAvailable = !this.showAvailable;
|
||||
}
|
||||
async _sha256(string) {
|
||||
return Array.from(new Uint8Array(
|
||||
await crypto.subtle.digest('sha-256', new TextEncoder().encode(string))
|
||||
))
|
||||
.map(b => b.toString(16).padStart(2, "0")).join("")
|
||||
}
|
||||
}
|
||||
customElements.define('emoji-reaction', EmojiReaction);
|
||||
|
||||
export { EmojiReaction };
|
||||
@@ -1,95 +0,0 @@
|
||||
/*!
|
||||
*@name jquery.barrager.js
|
||||
*@author yaseng@uauc.net
|
||||
*@url https://github.com/yaseng/jquery.barrager.js
|
||||
*/
|
||||
(function($) {
|
||||
$.fn.barrager = function(barrage) {
|
||||
barrage = $.extend({
|
||||
close:true,
|
||||
bottom: 0,
|
||||
max: 10,
|
||||
speed: 6,
|
||||
color: '#fff',
|
||||
old_ie_color : '#000000'
|
||||
}, barrage || {});
|
||||
|
||||
var time = new Date().getTime();
|
||||
var barrager_id = 'barrage_' + time;
|
||||
var id = '#' + barrager_id;
|
||||
var div_barrager = $("<div class='barrage' id='" + barrager_id + "'></div>").appendTo($(this));
|
||||
var window_height = $(window).height() - 100;
|
||||
var bottom = (barrage.bottom == 0) ? Math.floor(Math.random() * window_height + 40) : barrage.bottom;
|
||||
div_barrager.css("bottom", bottom + "px");
|
||||
div_barrager_box = $("<div class='barrage_box cl'></div>").appendTo(div_barrager);
|
||||
if(barrage.img){
|
||||
|
||||
div_barrager_box.append("<a class='portrait z' href='javascript:;'></a>");
|
||||
var img = $("<img src='' >").appendTo(id + " .barrage_box .portrait");
|
||||
img.attr('src', barrage.img);
|
||||
}
|
||||
|
||||
div_barrager_box.append(" <div class='z p'></div>");
|
||||
if(barrage.close){
|
||||
|
||||
div_barrager_box.append(" <div class='close z'></div>");
|
||||
|
||||
}
|
||||
|
||||
var content = $("<a class='text-overflow'></a>").appendTo(id + " .barrage_box .p");
|
||||
content.attr({
|
||||
'id': barrage.id
|
||||
}).empty().append(barrage.info);
|
||||
if(navigator.userAgent.indexOf("MSIE 6.0")>0 || navigator.userAgent.indexOf("MSIE 7.0")>0 || navigator.userAgent.indexOf("MSIE 8.0")>0 ){
|
||||
|
||||
content.css('color', barrage.old_ie_color);
|
||||
|
||||
}else{
|
||||
|
||||
content.css('color', barrage.color);
|
||||
|
||||
}
|
||||
|
||||
var i = 0;
|
||||
div_barrager.css('margin-right', i);
|
||||
var looper = setInterval(barrager, barrage.speed);
|
||||
|
||||
function barrager() {
|
||||
|
||||
|
||||
var window_width = $(window).width() + 500;
|
||||
if (i < window_width) {
|
||||
i += 1;
|
||||
|
||||
$(id).css('margin-right', i);
|
||||
} else {
|
||||
|
||||
$(id).remove();
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
div_barrager_box.mouseover(function() {
|
||||
clearInterval(looper);
|
||||
});
|
||||
|
||||
div_barrager_box.mouseout(function() {
|
||||
looper = setInterval(barrager, barrage.speed);
|
||||
});
|
||||
|
||||
$(id+'.barrage .barrage_box .close').click(function(){
|
||||
|
||||
$(id).remove();
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
$.fn.barrager.removeAll=function(){
|
||||
$('.barrage').remove();
|
||||
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
@@ -1,93 +0,0 @@
|
||||
var fdata = {
|
||||
apiurl: 'https://circle.usj.cc/',
|
||||
defaultFish: 500,
|
||||
hungryFish: 500,
|
||||
}
|
||||
var randomPostTimes = 0;
|
||||
var randomPostWorking = false;
|
||||
var randomPostTips = ["钓到了绝世好文!", "在河边打了个喷嚏,吓跑了", "你和小伙伴抢夺着", "你击败了巨龙,在巢穴中发现了", "挖掘秦始皇坟时找到了", "在路边闲逛的时候随手买了一个", "从学校班主任那拿来了孩子上课偷偷看的", "你的同桌无情的从你的语文书中撕下了那篇你最喜欢的", "考古学家近日发现了", "外星人降临地球学习地球文化,落地时被你塞了", "从图书馆顶层的隐秘角落里发现了闪着金光的", "徒弟修炼走火入魔,为师立刻掏出了", "在大山中唱山歌,隔壁的阿妹跑来了,带着", "隔壁家的孩子数学考了满分,都是因为看了", "隔壁家的孩子英语考了满分,都是因为看了", "小米研发了全新一代MIX手机,据说灵感", "修炼渡劫成功,还好提前看了", "库克坐上了苹果CEO的宝座,因为他面试的时候看了", "阿里巴巴大喊芝麻开门,映入眼帘的就是", "师傅说练武要先炼心,然后让我好生研读", "科考队在南极大陆发现了被冰封的", "飞机窗户似乎被一张纸糊上了,仔细一看是", "历史上满写的仁义道德四个字,透过字缝里却全是", "十几年前的录音机似乎还能够使用,插上电发现正在播的是", "新版语文书拟增加一篇熟读并背诵的", "经调查,99%的受访者都没有背诵过", "今年的高考满分作文是", "唐僧揭开了佛祖压在五指山上的", "科学家发现能够解决衰老的秘密,就是每日研读", "英特尔发布了全新的至强处理器,其芯片的制造原理都是", "新的iPhone产能很足,新的进货渠道是", "今年亩产突破了八千万斤,多亏了", "陆隐一统天上宗,在无数祖境高手的目光下宣读了", "黑钻风跟白钻风说道,吃了唐僧肉能长生不老,他知道是因为看了", "上卫生间没带纸,直接提裤跑路也不愿意玷污手中", "种下一篇文章就会产生很多很多文章,我种下了", "三十年河东,三十年河西,莫欺我没有看过", "踏破铁血无觅处,得来全靠", "今日双色球中了两千万,预测全靠", "因为卷子上没写名字,老师罚抄", "为了抗议世间的不公,割破手指写下了", "在艺术大街上被贴满了相同的纸,走近一看是", "这区区迷阵岂能难得住我?其实能走出来多亏了", "今日被一篇文章顶上了微博热搜,它是", "你送给乞丐一个暴富秘籍,它是", "UZI一个走A拿下五杀,在事后采访时说他当时回想起了", "科学家解刨了第一个感染丧尸病毒的人,发现丧尸抗体存在于"];
|
||||
var randomPostClick = 0;
|
||||
function fetchRandomPost() {
|
||||
// console.log(fdata.apiurl)
|
||||
|
||||
if (randomPostWorking == false) {
|
||||
randomPostWorking = true;
|
||||
//获取旋转角度
|
||||
let randomRotate = randomPostTimes * 360;
|
||||
let randomPostTipsItem = randomPostTips[Math.floor(Math.random() * randomPostTips.length)];
|
||||
let randomPostLevel = "";
|
||||
if (randomPostTimes > 10000) {
|
||||
randomPostLevel = "愿者上钩";
|
||||
} else if (randomPostTimes > 1000) {
|
||||
randomPostLevel = "俯览天下";
|
||||
} else if (randomPostTimes > 1000) {
|
||||
randomPostLevel = "超越神了";
|
||||
} else if (randomPostTimes > 100) {
|
||||
randomPostLevel = "绝世渔夫";
|
||||
} else if (randomPostTimes > 75) {
|
||||
randomPostLevel = "钓鱼王者";
|
||||
} else if (randomPostTimes > 50) {
|
||||
randomPostLevel = "钓鱼宗师";
|
||||
} else if (randomPostTimes > 20) {
|
||||
randomPostLevel = "钓鱼专家";
|
||||
} else if (randomPostTimes > 5) {
|
||||
randomPostLevel = "钓鱼高手";
|
||||
} else {
|
||||
randomPostLevel = "钓鱼新手";
|
||||
}
|
||||
if (randomPostTimes > 0) {
|
||||
document.querySelector("#random-post").innerHTML = "钓鱼中...";
|
||||
}
|
||||
|
||||
$(".random-post-start").css("transform", "rotate(" + randomRotate + "deg)")
|
||||
// window.setTimeout(function () {
|
||||
// //判断是否饥饿
|
||||
// if (((randomPostClick * fdata.hungryFish + fdata.defaultFish) < randomPostTimes) && (Math.round(Math.random()) == 0)) {
|
||||
// document.getElementById("random-post").innerHTML = "因为只钓鱼不吃鱼,过分饥饿导致本次钓鱼失败..."
|
||||
// randomPostWorking = false;
|
||||
// } else {
|
||||
// var fetchUrl = fdata.apiurl + 'randompost';
|
||||
// document.querySelector("#random-post").innerHTML = "钓鱼中...";
|
||||
// fetch(fetchUrl)
|
||||
// .then(res => res.json())
|
||||
// .then(json => {
|
||||
// var title = json.title;
|
||||
// var link = json.link;
|
||||
// var author = json.author;
|
||||
// if (document.querySelector('#random-post')) {
|
||||
// document.getElementById("random-post").innerHTML = randomPostTipsItem + `来自友链 <b>` + author + `</b> 的文章:<a class="random-friends-post" onclick="randomClickLink()" target="_blank" href="` + link + `" rel="external nofollow">` + title + `</a>`;
|
||||
// }
|
||||
// })
|
||||
// randomPostWorking = false;
|
||||
// }
|
||||
// randomPostTimes += 1;
|
||||
// }, 2000)
|
||||
// 判断是否饿不饿
|
||||
//判断是否饥饿
|
||||
if (((randomPostClick * fdata.hungryFish + fdata.defaultFish) < randomPostTimes) && (Math.round(Math.random()) == 0)) {
|
||||
document.getElementById("random-post").innerHTML = "因为只钓鱼不吃鱼,过分饥饿导致本次钓鱼失败..."
|
||||
randomPostWorking = false;
|
||||
} else {
|
||||
var fetchUrl = fdata.apiurl + 'randompost';
|
||||
document.querySelector("#random-post").innerHTML = "钓鱼中...";
|
||||
fetch(fetchUrl)
|
||||
.then(res => res.json())
|
||||
.then(json => {
|
||||
var title = json.title;
|
||||
var link = json.link;
|
||||
var author = json.author;
|
||||
if (document.querySelector('#random-post')) {
|
||||
document.getElementById("random-post").innerHTML = randomPostTipsItem + `来自友链 <b>` + author + `</b> 的文章:<a class="random-friends-post" onclick="randomClickLink()" target="_blank" href="` + link + `" rel="external nofollow">` + title + `</a>`;
|
||||
}
|
||||
})
|
||||
randomPostWorking = false;
|
||||
}
|
||||
randomPostTimes += 1;
|
||||
// 结束
|
||||
}
|
||||
}
|
||||
|
||||
//添加点击统计
|
||||
function randomClickLink() {
|
||||
randomPostClick += 1;
|
||||
}
|
||||
@@ -1,706 +0,0 @@
|
||||
//首页调用
|
||||
.momos-sswrap {
|
||||
margin-top: 20px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
||||
grid-gap: 15px; /* 中间空10px间距 */
|
||||
}
|
||||
.memos_diaoyong,.bb-list-li,.memos-random-background,.memos-search-all{
|
||||
border-radius:4px;
|
||||
background: var(--bankuai-color) !important;
|
||||
padding:20px;
|
||||
transition: all .3s cubic-bezier(0,0,.5,1);
|
||||
}
|
||||
.memos_diaoyong:hover,.bb-list-li:hover{
|
||||
box-shadow: 2px 4px 16px rgba(0,0,0,.05);
|
||||
}
|
||||
.memos-diaoyong-tag .memos-tag-dg{
|
||||
cursor: auto;
|
||||
}
|
||||
.memos-diaoyong-tag .memos-tag-dg:hover{
|
||||
text-decoration: none;
|
||||
}
|
||||
.memos_diaoyong_from a{
|
||||
color: #666;
|
||||
font-family: var(--font-family-code);
|
||||
}
|
||||
.memos-logo,.memos-logo2{
|
||||
padding-top: 7px;
|
||||
}
|
||||
.memos-logo img,.memos-logo2 img{
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.talks_comments{
|
||||
margin-left: auto;
|
||||
}
|
||||
.talks_comments a{
|
||||
display: flex;
|
||||
font-size: 14px;
|
||||
color: #999;
|
||||
text-decoration: none;
|
||||
cursor:pointer;
|
||||
}
|
||||
.talks_comments a:hover{
|
||||
text-decoration: underline;
|
||||
}
|
||||
.comment-s{
|
||||
margin-right: 4px;
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
}
|
||||
.talks_comments svg {
|
||||
fill: #c0c0c0;
|
||||
margin-left: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 5.5px;
|
||||
}
|
||||
.memos_diaoyong_top{
|
||||
margin-top: 15px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.memos_diaoyong_from,.memos_diaoyong_time,.memos_diaoyong_laiz{
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
}
|
||||
.memos_diaoyong_laiz a{
|
||||
color: #999;
|
||||
}
|
||||
.memos_diaoyong_info p{
|
||||
font-size: 16px;
|
||||
color: var(--text-content-color);
|
||||
line-height:1.8;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
//唠叨页
|
||||
#bber,.memos-header,.bb-load{
|
||||
max-width: 800px;
|
||||
margin: auto;
|
||||
}
|
||||
.bb-list-li,.memos-search-all{
|
||||
box-shadow: 2px 4px 16px rgba(0,0,0,.05);
|
||||
}
|
||||
.bb-list-ul{
|
||||
display: grid;
|
||||
gap: 20px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.datacont p{
|
||||
font-size:16px;
|
||||
line-height:1.6;
|
||||
/*margin:0;*/
|
||||
clear: both;
|
||||
margin-top: 32px!important;
|
||||
/*text-indent: 2em;*/
|
||||
margin-bottom:4px;
|
||||
}
|
||||
.datacont a{
|
||||
color: var(--text-highlight-color);
|
||||
}
|
||||
.resimg figure{
|
||||
margin:0;
|
||||
margin-bottom: -4px;
|
||||
}
|
||||
.resimg{
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
margin-top: 5px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.gallery-thumbnail img{
|
||||
width: 100% !important;
|
||||
height: 170px !important;
|
||||
object-fit: cover;
|
||||
border-radius:4px;
|
||||
transition: transform 0.3s ease;
|
||||
cursor: zoom-in;
|
||||
margin: 0 !important;
|
||||
}
|
||||
.resimg img:hover{
|
||||
transform: scale(1.03);
|
||||
}
|
||||
.grid-3,.grid-5,.grid-6,.grid-7,.grid-8,.grid-9{
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
.grid-3 img,.grid-5 img,.grid-6 img,.grid-7 img,.grid-8 img,.grid-9 img{
|
||||
height: 140px !important;
|
||||
}
|
||||
.memos-tag-wz{
|
||||
float: left;
|
||||
margin-top: 6px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.memos-tag-dg,.memos-tag-sc{
|
||||
display: inline;
|
||||
padding: 1px 2px 2px 4px;
|
||||
margin-right: 8px;
|
||||
color: #999;
|
||||
background: #f2f2f2;
|
||||
font-size: 14px;
|
||||
border-radius: 4px;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
}
|
||||
#tag-list,.memos-search-all {
|
||||
max-width: 800px;
|
||||
margin: auto;
|
||||
padding: 5px;
|
||||
}
|
||||
#tag-list-all{
|
||||
margin-top: 10px;
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.memos-tag-all{
|
||||
padding: 6px;
|
||||
color: #999;
|
||||
background: #f2f2f2;
|
||||
font-size: 16px;
|
||||
border-radius:4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.memos-tag-sc-2{
|
||||
align-items: center;
|
||||
display: flex;
|
||||
margin-top: 20px;
|
||||
font-size: 16px;
|
||||
color: #999;
|
||||
}
|
||||
.memos-tag-sc{
|
||||
margin-left: 10px;
|
||||
font-size: 16px !important;
|
||||
color: #666 !important;
|
||||
background: #e5e5e5 !important;
|
||||
padding: 8px !important;
|
||||
}
|
||||
.memos-tag-sc svg{
|
||||
width: 16px;
|
||||
margin-left: 6px;
|
||||
vertical-align: middle;
|
||||
margin-top: -4px;
|
||||
}
|
||||
.memos-tag-sc:hover{
|
||||
text-decoration: line-through;
|
||||
}
|
||||
.memos-tag-dg:hover,.memos-tag-all:hover{
|
||||
text-decoration: underline;
|
||||
}
|
||||
.memos-pl{
|
||||
display: flex;
|
||||
margin-bottom: -5px;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.bb-load button{
|
||||
border: none;
|
||||
background: #fff;
|
||||
cursor: pointer;
|
||||
color: var(--text-highlight-color);
|
||||
border-radius:4px;
|
||||
margin-top: 20px;
|
||||
padding: 10px 30px;
|
||||
font-family: var(--font-family-title);
|
||||
font-size: 16px;
|
||||
}
|
||||
.bb-load button:hover{
|
||||
opacity: 0.8;
|
||||
transition: opacity .3s ease-in-out;
|
||||
}
|
||||
pre{
|
||||
border-radius: 4px;
|
||||
line-height: 1.8;
|
||||
background: var(--background-color);
|
||||
padding: 20px;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
pre code{
|
||||
background: transparent;
|
||||
font-size: 14px;
|
||||
padding: 0;
|
||||
color: #666;
|
||||
border: none;
|
||||
margin: 0;
|
||||
}
|
||||
code{
|
||||
background: #ffe9ef;
|
||||
border: 1px solid #ffd4de;
|
||||
border-radius: 4px;
|
||||
font-size: 16px;
|
||||
padding: 2px 6px 2px 6px;
|
||||
font-family: var(--font-family-code);
|
||||
margin: 0 4px 0 4px;
|
||||
}
|
||||
.memos_diaoyong code{
|
||||
font-size: 14px;
|
||||
padding: 3px 6px 2px 6px;
|
||||
}
|
||||
blockquote p{
|
||||
background: var(--background-color);
|
||||
border-radius: 0 4px 4px 0;
|
||||
padding: 10px;
|
||||
font-size: 16px !important;
|
||||
line-height: 1.6 !important;
|
||||
border-left: 4px solid #bfbfbf;
|
||||
color: #666 !important;
|
||||
margin: -10px -40px 0 -40px !important;
|
||||
}
|
||||
|
||||
//memos页发布唠叨
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
.load-memos-editor{
|
||||
/*color: var(--text-content-color);*/
|
||||
/*cursor: pointer;*/
|
||||
/*font-size: 40px;*/
|
||||
/*font-family: var(--font-family-title);*/
|
||||
/*margin-bottom: 10px;*/
|
||||
/*display: inline-block;*/
|
||||
}
|
||||
.d-flex {
|
||||
display: -ms-flexbox !important;
|
||||
display: flex !important;
|
||||
}
|
||||
.d-none {
|
||||
display: none !important;
|
||||
}
|
||||
.memos-editor-body{
|
||||
border-radius:4px;
|
||||
background: var(--bankuai-color);
|
||||
transition: all .3s cubic-bezier(0,0,.5,1);
|
||||
padding: 20px;
|
||||
box-shadow: 2px 4px 16px rgba(0,0,0,.05);
|
||||
}
|
||||
.memos-editor-content .memos-editor-textarea{
|
||||
border: transparent;
|
||||
border-radius:4px;
|
||||
line-height:1.6;
|
||||
min-height: 80px;
|
||||
overflow-x:hidden;
|
||||
overflow-y:clip;
|
||||
width:100%;
|
||||
outline:0.5px solid transparent;
|
||||
resize:none;
|
||||
background: transparent;
|
||||
font-family: var(--font-family-paragraph);
|
||||
font-size: 16px;
|
||||
}
|
||||
.memos-editor-tools{
|
||||
margin-top:4px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.memos-editor-tools .action-btn{
|
||||
margin-right: 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.p-2{
|
||||
margin-left: 15px;
|
||||
}
|
||||
.memos-editor-tools .memos-tag-list{
|
||||
display:flex;
|
||||
flex-wrap: wrap;//宽度显示不下自动换行
|
||||
margin-top: 15px;
|
||||
grid-gap: 15px;
|
||||
|
||||
}
|
||||
.memos-editor-tools .memos-tag{
|
||||
cursor: pointer;
|
||||
}
|
||||
.memos-editor-tools .memos-tag a{
|
||||
color: #999;
|
||||
}
|
||||
.editor-selector {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
.editor-selector select {
|
||||
appearance: none; /* 隐藏原生控件样式 */
|
||||
border: 0.5px solid #dadada;
|
||||
border-radius: 4px;
|
||||
padding: 8px 20px 8px 6px;
|
||||
background: transparent;
|
||||
color: #666;
|
||||
font-family: var(--font-family-paragraph);
|
||||
font-size: 14px;
|
||||
outline:0.5px solid transparent;
|
||||
}
|
||||
.editor-selector::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 8px; /* 调整箭头的位置,这里示例将箭头靠右偏移8像素 */
|
||||
width: 0;
|
||||
border-style: solid;
|
||||
border-width: 4px 4px 0 4px; /* 控制箭头的大小和形状 */
|
||||
border-color: #999 transparent transparent transparent; /* 控制箭头的颜色 */
|
||||
transform: translateY(-50%); /* 将箭头垂直居中对齐 */
|
||||
}
|
||||
.submit-memos-btn,.edit-memos-btn{
|
||||
background: transparent;
|
||||
border: 0.5px solid #dadada;
|
||||
cursor: pointer;
|
||||
color: var(--text-highlight-color);
|
||||
border-radius:4px;
|
||||
padding: 6px 15px 6px 15px;
|
||||
}
|
||||
.cancel-edit-btn{
|
||||
padding: 6px 15px 6px 15px;
|
||||
cursor: pointer;
|
||||
border: 0.5px solid #FFF;
|
||||
margin-right: 8px;
|
||||
color: #999;
|
||||
}
|
||||
.submit-memos-btn:hover,.memos-open-api-submit:hover,.edit-memos-btn:hover,.cancel-edit-btn:hover{
|
||||
opacity: 0.8;
|
||||
transition: opacity .3s ease-in-out;
|
||||
}
|
||||
.memos-editor-footer{
|
||||
display:flex;
|
||||
align-items:center;
|
||||
}
|
||||
.justify-content-end {
|
||||
margin-left: auto;
|
||||
}
|
||||
.memos-image-list{
|
||||
cursor: pointer;
|
||||
gap: 15px;
|
||||
color: #999;
|
||||
margin-bottom: 15px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.memos-img-edit{
|
||||
background: #f5f5f5;
|
||||
padding: 6px;
|
||||
border-radius:4px;
|
||||
}
|
||||
.memos-img-edit:hover{
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
//填写api样式
|
||||
.memos-editor-option{
|
||||
display: flex;
|
||||
}
|
||||
.memos-open-api-input{
|
||||
border: transparent;
|
||||
padding:6px 0 6px 0;
|
||||
width:100%;
|
||||
outline:0.5px solid transparent;
|
||||
margin-right: 10px;
|
||||
background: transparent;
|
||||
font-size: 16px;
|
||||
font-family: var(--font-family-code);
|
||||
}
|
||||
.memos-open-api-submit{
|
||||
background: var(--text-highlight-color);
|
||||
cursor: pointer;
|
||||
color: #fff;
|
||||
border-radius:4px;
|
||||
width: 100px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
//随机memos
|
||||
.memos-random-background{
|
||||
margin-top: 15px;
|
||||
}
|
||||
.memos-random{
|
||||
list-style-type: none;
|
||||
}
|
||||
//唠叨编辑
|
||||
.memos-edit{
|
||||
margin-left: auto;
|
||||
}
|
||||
.memos-menu{
|
||||
margin-left: 40px;
|
||||
color: #fff;
|
||||
}
|
||||
.memos-menu-d {
|
||||
width: 60px;
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
background-color: #fff;
|
||||
padding: 8px 0 8px 0;
|
||||
box-shadow: 2px 4px 16px rgba(0,0,0,.15);
|
||||
text-align: center;
|
||||
border-radius:4px;
|
||||
display: none;
|
||||
}
|
||||
.memos-edit:hover .memos-menu-d {
|
||||
display: block;
|
||||
}
|
||||
.edit-btn,.archive-btn,.delete-btn {
|
||||
cursor: pointer;
|
||||
line-height: 1.8;
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
}
|
||||
.edit-btn:hover,.archive-btn:hover,.delete-btn:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.delete-btn{
|
||||
color: #c70000 !important;
|
||||
}
|
||||
.edit-memos{
|
||||
display: flex;
|
||||
}
|
||||
|
||||
// 页面宽度小于700样式
|
||||
@media (max-width:700px){
|
||||
.resimg{
|
||||
width: 100% !important;
|
||||
}
|
||||
.gallery-thumbnail img{
|
||||
height: 140px !important;
|
||||
}
|
||||
.grid-3 img,.grid-5 img,.grid-6 img,.grid-7 img,.grid-8 img,.grid-9 img{
|
||||
height: 100px !important;
|
||||
}
|
||||
.resimg figure{
|
||||
margin-bottom: -8px;
|
||||
}
|
||||
}
|
||||
// 页面宽度大于700样式
|
||||
//首页图片样式
|
||||
@media (min-width:700px){
|
||||
.memos_diaoyong .resimg{
|
||||
width: 100% !important;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
.memos_diaoyong .gallery-thumbnail img{
|
||||
height: 90px !important;
|
||||
}
|
||||
.memos_diaoyong .grid-3,.memos_diaoyong .grid-5,.memos_diaoyong .grid-6,.memos_diaoyong .grid-7,.memos_diaoyong grid-8,.memos_diaoyong .grid-9{
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
.memos_diaoyong .grid-3 img,.memos_diaoyong .grid-5 img,.memos_diaoyong .grid-6 img,.memos_diaoyong .grid-7 img,.memos_diaoyong .grid-8 img,.memos_diaoyong .grid-9 img{
|
||||
height: 80px !important;
|
||||
}
|
||||
.memos_diaoyong .resimg figure{
|
||||
margin-bottom: -8px;
|
||||
}
|
||||
}
|
||||
// 夜间模式页面样式
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.bb-timeline ul li {
|
||||
background: var(--background-dark-color) !important;
|
||||
}
|
||||
.memos-tag-dg,.memos-tag-sc,.memos-tag-all{
|
||||
background: #332E2F;
|
||||
}
|
||||
.memos-tag-sc-2{
|
||||
color: #666;
|
||||
}
|
||||
.memos-tag-sc{
|
||||
color: #999 !important;
|
||||
background: #332E2F !important;
|
||||
}
|
||||
.bb-load button{
|
||||
background:var(--background-dark-color);
|
||||
}
|
||||
.memos_diaoyong,.bb-list-li,.memos-random-background,.memos-search-all{
|
||||
background: var(--background-dark-color) !important;
|
||||
}
|
||||
.memos_diaoyong_from a{
|
||||
color: #999;
|
||||
}
|
||||
.memos_diaoyong_time, .memos_diaoyong_laiz a,.memos_diaoyong_from,.talks_comments a,.comment-s{
|
||||
color: #666;
|
||||
}
|
||||
.memos_diaoyong_info p, .memos_diaoyong_info a {
|
||||
color: var(--text-content-dark-color) !important;
|
||||
}
|
||||
.talks_comments svg {
|
||||
fill: #666;
|
||||
}
|
||||
.reactions {
|
||||
--start-smile-svg-fill-color: #666 !important;
|
||||
--start-smile-border-color: #393939;
|
||||
--start-smile-border-color-hover:#535353 !important;
|
||||
--start-smile-bg-color:transparent;
|
||||
}
|
||||
pre,blockquote p{
|
||||
background: #2c2829;
|
||||
}
|
||||
pre code{
|
||||
color: #999;
|
||||
}
|
||||
code{
|
||||
background: #2c2829;
|
||||
border: 1px solid #2c2829;
|
||||
color: var(--text-highlight-color);
|
||||
}
|
||||
blockquote p{
|
||||
border-left: 4px solid #5f5f5f;
|
||||
color: #888 !important;
|
||||
}
|
||||
.memos_diaoyong_info blockquote p{
|
||||
color: #888 !important;
|
||||
}
|
||||
.bb-list-li,.memos-editor-body,.memos-search-all{
|
||||
box-shadow: 2px 4px 16px rgba(0,0,0,.3);
|
||||
}
|
||||
//memos页发布唠叨
|
||||
.load-memos-editor,.memos-open-api-input{
|
||||
color: var(--text-content-dark-color) !important;
|
||||
}
|
||||
.memos-editor-body{
|
||||
background: var(--background-dark-color) !important;
|
||||
}
|
||||
.editor-selector select {
|
||||
border: 0.5px solid #454545 !important;
|
||||
color: #999 !important;
|
||||
}
|
||||
.memos-editor-content .memos-editor-textarea{
|
||||
color: var(--text-content-dark-color);
|
||||
}
|
||||
.submit-memos-btn,.edit-memos-btn{
|
||||
border: solid #454545 0.5px !important;
|
||||
}
|
||||
.memos-open-api-submit{
|
||||
background: #1A1718 !important;
|
||||
color: var(--text-highlight-color) !important;
|
||||
}
|
||||
.edit-btn,.archive-btn,.delete-btn,.cancel-edit-btn,.memos-image-list{
|
||||
color: #666;
|
||||
}
|
||||
.memos-menu{
|
||||
color: #201d1e;
|
||||
}
|
||||
.memos-menu-d,.memos-img-edit{
|
||||
background-color: #282527;
|
||||
}
|
||||
.cancel-edit-btn{
|
||||
border: 0.5px solid #201d1e;
|
||||
}
|
||||
//表情
|
||||
.emoji-item:hover{
|
||||
background: #3a3a3a !important;
|
||||
}
|
||||
// 搜索
|
||||
#memos-search-input{
|
||||
color: var(--text-content-dark-color) !important;
|
||||
}
|
||||
.memos-search ::placeholder {
|
||||
color: #666 !important;
|
||||
}
|
||||
.memos-search svg{
|
||||
color: #666 !important;
|
||||
}
|
||||
|
||||
// 标签自动补全
|
||||
#memos-tag-menu {
|
||||
background-color: #282527 !important;
|
||||
box-shadow: 2px 4px 16px rgba(0,0,0,.3) !important;
|
||||
color: #888 !important;
|
||||
}
|
||||
.tag-option.selected {
|
||||
background-color: #3e3e3e !important;
|
||||
color: #bdbdbd !important;
|
||||
}
|
||||
}
|
||||
|
||||
//表情
|
||||
.emoji-selector{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.emoji-item {
|
||||
padding: 4px;
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
.emoji-item:hover{
|
||||
background: #ebebeb;
|
||||
border-radius:4px;
|
||||
}
|
||||
|
||||
// memoslike
|
||||
.reactions {
|
||||
--start-smile-svg-fill-color: #999;
|
||||
--start-smile-border-color-hover:#afafaf;
|
||||
}
|
||||
|
||||
// memos搜索
|
||||
.memos-search-all{
|
||||
margin-top: 20px;
|
||||
}
|
||||
.memos-search {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
#memos-search-input{
|
||||
border: transparent;
|
||||
background: transparent;
|
||||
/*padding: 10px;*/
|
||||
font-size: 16px;
|
||||
resize: none;
|
||||
outline: 0.5px solid transparent;
|
||||
color: var(--text-content-color);
|
||||
width: 100%;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.memos-search ::placeholder {
|
||||
color: #b8b8b8;
|
||||
}
|
||||
.memos-search svg{
|
||||
width: 20px;
|
||||
color: #b8b8b8;
|
||||
margin-left: 15px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
// 标签自动补全
|
||||
|
||||
#memos-tag-menu {
|
||||
position: absolute;
|
||||
background-color: white;
|
||||
z-index: 100;
|
||||
padding: 5px;
|
||||
box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.15);
|
||||
color: #999;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
column-count: 3; /* 每列显示的数量 */
|
||||
column-gap: 4; /* 列之间的间距 */
|
||||
}
|
||||
#memos-tag-menu:empty{
|
||||
display: none;
|
||||
}
|
||||
.tag-option {
|
||||
padding: 6px 10px 6px 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tag-option:hover{
|
||||
text-decoration: underline;
|
||||
}
|
||||
.tag-option.selected {
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 4px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.artalk.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.single-content ul li {
|
||||
line-height: 100% !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>memos-code-s</title><g fill="#888" fill-rule="evenodd"><path fill-rule="nonzero" d="M12.79 0C17.828 0 20 2.173 20 7.21v5.58c0 5.037-2.173 7.21-7.21 7.21H7.21C2.172 20 0 17.827 0 12.79V7.21C0 2.172 2.173 0 7.21 0h5.58Zm0 1.395H7.21c-4.267 0-5.815 1.548-5.815 5.814v5.582c0 4.266 1.548 5.814 5.814 5.814h5.582c4.266 0 5.814-1.548 5.814-5.814V7.209c0-4.266-1.548-5.814-5.814-5.814Z"/><path d="M11.633 7.356a.575.575 0 0 1 .83.22l2.087 4.135c.166.329.06.73-.248.933a.575.575 0 0 1-.83-.22l-2.087-4.135a.726.726 0 0 1 .248-.933ZM5.698 7.356a.575.575 0 0 1 .83.22l2.087 4.135c.166.329.059.73-.248.933a.575.575 0 0 1-.83-.22L5.45 8.288a.726.726 0 0 1 .248-.933Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 757 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>memos-emoji</title><g fill="none" fill-rule="evenodd"><path fill="#888" fill-rule="nonzero" d="M12.79 0C17.828 0 20 2.173 20 7.21v5.58c0 5.037-2.173 7.21-7.21 7.21H7.21C2.172 20 0 17.827 0 12.79V7.21C0 2.172 2.173 0 7.21 0h5.58Zm0 1.395H7.21c-4.267 0-5.815 1.548-5.815 5.814v5.582c0 4.266 1.548 5.814 5.814 5.814h5.582c4.266 0 5.814-1.548 5.814-5.814V7.209c0-4.266-1.548-5.814-5.814-5.814Z"/><path stroke="#888" stroke-dasharray="0 0" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.3" d="M12.8 7.51c-.663 0-1.2-.562-1.2-1.255 0-.693.537-1.255 1.2-1.255.663 0 1.2.562 1.2 1.255 0 .693-.537 1.255-1.2 1.255ZM7.2 7.51c-.663 0-1.2-.562-1.2-1.255C6 5.562 6.537 5 7.2 5c.663 0 1.2.562 1.2 1.255 0 .693-.537 1.255-1.2 1.255ZM12.88 10.481c.4 0 .72.335.72.753C13.6 13.318 11.992 15 10 15s-3.6-1.682-3.6-3.766c0-.418.32-.753.72-.753h5.76Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 947 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>memos-code</title><g fill="#888" fill-rule="nonzero"><path d="M12.79 0C17.828 0 20 2.173 20 7.21v5.58c0 5.037-2.173 7.21-7.21 7.21H7.21C2.172 20 0 17.827 0 12.79V7.21C0 2.172 2.173 0 7.21 0h5.58Zm0 1.395H7.21c-4.267 0-5.815 1.548-5.815 5.814v5.582c0 4.266 1.548 5.814 5.814 5.814h5.582c4.266 0 5.814-1.548 5.814-5.814V7.209c0-4.266-1.548-5.814-5.814-5.814Z"/><path d="M7.274 6.688a.698.698 0 0 1 .987.987L5.945 9.99l2.316 2.325a.698.698 0 1 1-.987.987l-2.316-2.317a1.41 1.41 0 0 1 0-1.982l2.316-2.316ZM11.74 6.688a.698.698 0 0 1 .986 0l2.316 2.316a1.41 1.41 0 0 1 0 1.982l-2.316 2.317a.698.698 0 0 1-.987-.987L14.056 10l-2.317-2.325a.698.698 0 0 1 0-.987Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 758 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>memos_img_quote</title><g fill="#888" fill-rule="nonzero"><path d="M8 4.25a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5Zm0 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5ZM14.603 9.86c.965-.813 2.482-.813 3.447 0l1.433 1.208a.75.75 0 1 1-.966 1.147l-1.434-1.208c-.407-.343-1.107-.343-1.514 0l-3.658 3.081c-.965.814-2.481.814-3.453-.005l-.284-.245c-.369-.311-1.006-.344-1.426-.068l-4.335 2.856a.75.75 0 1 1-.826-1.252l4.336-2.857c.97-.639 2.338-.568 3.224.18l.284.244c.407.343 1.107.343 1.514 0l3.658-3.08Z"/><path d="M10.93 0a.698.698 0 1 1 0 1.395H7.21c-4.267 0-5.815 1.548-5.815 5.814v5.582c0 4.266 1.548 5.814 5.814 5.814h5.582c4.266 0 5.814-1.548 5.814-5.814V8.14a.698.698 0 0 1 1.395 0v4.65c0 5.037-2.173 7.21-7.21 7.21H7.21C2.172 20 0 17.827 0 12.79V7.21C0 2.172 2.173 0 7.21 0h3.72Z"/><path d="M19.25 2.75a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5Z"/><path d="M16.5 0a.75.75 0 0 1 .75.75v5.5a.75.75 0 0 1-1.5 0V.75A.75.75 0 0 1 16.5 0Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 1.0 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>memos_img_up</title><g fill="#888" fill-rule="nonzero"><path d="M8 4.25a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5Zm0 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5ZM14.603 9.86c.965-.813 2.482-.813 3.447 0l1.433 1.208a.75.75 0 1 1-.966 1.147l-1.434-1.208c-.407-.343-1.107-.343-1.514 0l-3.658 3.081c-.965.814-2.481.814-3.453-.005l-.284-.245c-.369-.311-1.006-.344-1.426-.068l-4.335 2.856a.75.75 0 1 1-.826-1.252l4.336-2.857c.97-.639 2.338-.568 3.224.18l.284.244c.407.343 1.107.343 1.514 0l3.658-3.08Z"/><path d="M10.93 0a.698.698 0 1 1 0 1.395H7.21c-4.267 0-5.815 1.548-5.815 5.814v5.582c0 4.266 1.548 5.814 5.814 5.814h5.582c4.266 0 5.814-1.548 5.814-5.814V8.14a.698.698 0 0 1 1.395 0v4.65c0 5.037-2.173 7.21-7.21 7.21H7.21C2.172 20 0 17.827 0 12.79V7.21C0 2.172 2.173 0 7.21 0h3.72Z"/><path d="M15.406.987c0-.623.734-.935 1.164-.495l1.818 1.867a.713.713 0 0 1 0 .99.67.67 0 0 1-.964 0l-.655-.673v3.91a.694.694 0 0 1-.589.694l-.093.006a.691.691 0 0 1-.681-.7V.987Z"/><path d="M15.605.492a.67.67 0 0 1 .965 0 .713.713 0 0 1 0 .99L14.75 3.35a.67.67 0 0 1-.964 0 .713.713 0 0 1 0-.99L15.605.492Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 1.2 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>memos-link</title><g fill="#888" fill-rule="nonzero"><path d="M12.79 0C17.828 0 20 2.173 20 7.21v5.58c0 5.037-2.173 7.21-7.21 7.21H7.21C2.172 20 0 17.827 0 12.79V7.21C0 2.172 2.173 0 7.21 0h5.58Zm0 1.395H7.21c-4.267 0-5.815 1.548-5.815 5.814v5.582c0 4.266 1.548 5.814 5.814 5.814h5.582c4.266 0 5.814-1.548 5.814-5.814V7.209c0-4.266-1.548-5.814-5.814-5.814Z"/><path d="M10.045 8.969a.698.698 0 0 1 .986 0 3.733 3.733 0 0 1 0 5.286 3.738 3.738 0 0 1-5.284-5.287.698.698 0 0 1 .984.988 2.342 2.342 0 1 0 3.315 3.31 2.337 2.337 0 0 0-.001-3.31.698.698 0 0 1 0-.987Z"/><path d="M8.738 5.787a3.872 3.872 0 0 1 5.475-.003 3.871 3.871 0 0 1 .003 5.476.698.698 0 0 1-.99-.984 2.476 2.476 0 1 0-3.502-.001.698.698 0 0 1-.985.986 3.876 3.876 0 0 1-.001-5.474Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 851 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>memos_user</title><g fill="#888" fill-rule="nonzero"><path d="M12.79 0C17.828 0 20 2.173 20 7.21v5.58c0 5.037-2.173 7.21-7.21 7.21H7.21C2.172 20 0 17.827 0 12.79V7.21C0 2.172 2.173 0 7.21 0h5.58Zm0 1.395H7.21c-4.267 0-5.815 1.548-5.815 5.814v5.582c0 4.266 1.548 5.814 5.814 5.814h5.582c4.266 0 5.814-1.548 5.814-5.814V7.209c0-4.266-1.548-5.814-5.814-5.814Z"/><path d="M9.277 4c1.696 0 3.065 1.418 3.065 3.16 0 1.743-1.369 3.16-3.065 3.16S6.21 8.904 6.21 7.16C6.211 5.418 7.581 4 9.277 4Zm0 1.282c-.991 0-1.8.838-1.8 1.878s.809 1.878 1.8 1.878c.99 0 1.8-.837 1.8-1.878 0-1.04-.81-1.878-1.8-1.878ZM8.812 10.794c.563 0 1.112.083 1.631.245a.643.643 0 0 1 .42.801.631.631 0 0 1-.792.425 4.228 4.228 0 0 0-1.259-.189c-1.981 0-3.546 1.32-3.546 2.886a.637.637 0 0 1-.633.641.637.637 0 0 1-.633-.641c0-2.332 2.178-4.168 4.812-4.168ZM13.39 11.31c.633-.646 1.398-.726 2.105-.006.71.724.635 1.504 0 2.151l-2.024 2.06a1.26 1.26 0 0 1-.689.362l-.776.112c-.671.097-1.2-.442-1.104-1.124l.11-.802c.037-.237.17-.506.339-.677l2.038-2.076Zm1.411.7c-.231-.236-.262-.233-.497.006l-2.303 2.348-.089.595.569-.081c-.01.001.004-.007.012-.01l2.308-2.346c.235-.239.238-.27 0-.512Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 1.2 KiB |
@@ -1 +0,0 @@
|
||||
"use strict";function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}!function(o,t){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(o=o||self,o.cocoMessage=t())}(void 0,function(){function o(o,t){var e=document.createElement("div");for(var n in o){var s=o[n];"className"==n?(n="class",e.setAttribute(n,s)):"_"==n[0]&&e.addEventListener(n.slice(1),s)}if("string"==typeof t)e.innerHTML=t;else if("object"==_typeof(t)&&t.tagName)e.appendChild(t);else if(t)for(var i=0;i<t.length;i++){var r=t[i];e.appendChild(r)}return e}function t(o,t){for(var e in t)o.style[e]=t[e];""===o.getAttribute("style")&&o.removeAttribute("style")}function e(o,t){var e=o.className||"";if(!n(e,t)){var s=e.split(/\s+/);s.push(t),o.className=s.join(" ")}}function n(o,t){return o.indexOf(t)>-1}function s(o,t){var e=o.className||"";if(n(e,t)){var s=e.split(/\s+/),i=s.indexOf(t);s.splice(i,1),o.className=s.join(" ")}""===o.className&&o.removeAttribute("class")}function i(){return r(arguments,"info")}function r(o,t){var e={};for(var n in h)e[n]=h[n];for(var s=0;s<o.length;s++){var i=o[s];void 0!==i&&("string"==typeof i||"object"==_typeof(i)?e.msg=i:"boolean"==typeof i?e.showClose=i:"function"==typeof i?e.onClose=i:"number"==typeof i&&(e.duration=i))}return e.type=t,a(e)}function a(e){var n=e.type,i=e.duration,r=e.msg,a=e.showClose,d=e.onClose,g=0===i,p=l();"loading"==n&&(r=""===r?"正在加载":r,g=a,i=0);var h=o({className:"coco-msg-wrapper"},[o({className:"coco-msg coco-msg-fade-in ".concat(n)},[o({className:"coco-msg-icon"},p[n]),o({className:"coco-msg-content"},r),o({className:"coco-msg-wait ".concat(g?"coco-msg-pointer":"coco-msg-wait-hidden"),_click:function(){f(h,d)}},c(g)||"")])]);return 0!==i&&setTimeout(function(){f(h,d)},i),m.children.length||document.body.appendChild(m),m.appendChild(h),t(h,{height:h.offsetHeight+"px"}),setTimeout(function(){s(h.children[0],"coco-msg-fade-in")},300),function(){f(h,d)}}function c(o){return o?'<svg class="coco-msg-close" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5514"><path d="M810 274l-238 238 238 238-60 60-238-238-238 238-60-60 238-238-238-238 60-60 238 238 238-238z" p-id="5515"></path></svg>':""}function f(o,n){o&&(t(o,{padding:0,height:0}),e(o.children[0],"coco-msg-fade-out"),n&&n(),setTimeout(function(){if(o){for(var t=!1,e=0;e<m.children.length;e++)m.children[e]===o&&(t=!0);t&&d(o),o=null,m.children.length||t&&d(m)}},300))}function l(){return{info:'\n <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3250"><path d="M469.333333 341.333333h85.333334v469.333334H469.333333z" fill="#ffffff" p-id="3251"></path><path d="M469.333333 213.333333h85.333334v85.333334H469.333333z" fill="#ffffff" p-id="3252"></path><path d="M384 341.333333h170.666667v85.333334H384z" fill="#ffffff" p-id="3253"></path><path d="M384 725.333333h256v85.333334H384z" fill="#ffffff" p-id="3254"></path></svg>\n ',success:'\n <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1807"><path d="M455.42 731.04c-8.85 0-17.75-3.05-24.99-9.27L235.14 553.91c-16.06-13.81-17.89-38.03-4.09-54.09 13.81-16.06 38.03-17.89 54.09-4.09l195.29 167.86c16.06 13.81 17.89 38.03 4.09 54.09-7.58 8.83-18.31 13.36-29.1 13.36z" p-id="1808" fill="#ffffff"></path><path d="M469.89 731.04c-8.51 0-17.07-2.82-24.18-8.6-16.43-13.37-18.92-37.53-5.55-53.96L734.1 307.11c13.37-16.44 37.53-18.92 53.96-5.55 16.43 13.37 18.92 37.53 5.55 53.96L499.67 716.89c-7.58 9.31-18.64 14.15-29.78 14.15z" p-id="1809" fill="#ffffff"></path></svg>\n ',warning:'\n <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18912"><path d="M468.114286 621.714286c7.314286 21.942857 21.942857 36.571429 43.885714 36.571428s36.571429-14.628571 43.885714-36.571428L585.142857 219.428571c0-43.885714-36.571429-73.142857-73.142857-73.142857-43.885714 0-73.142857 36.571429-73.142857 80.457143l29.257143 394.971429zM512 731.428571c-43.885714 0-73.142857 29.257143-73.142857 73.142858s29.257143 73.142857 73.142857 73.142857 73.142857-29.257143 73.142857-73.142857-29.257143-73.142857-73.142857-73.142858z" p-id="18913" fill="#ffffff"></path></svg>\n ',error:'\n <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5514"><path d="M810 274l-238 238 238 238-60 60-238-238-238 238-60-60 238-238-238-238 60-60 238 238 238-238z" p-id="5515" fill="#ffffff"></path></svg>\n ',loading:'\n <div class="coco-msg_loading">\n <svg class="coco-msg-circular" viewBox="25 25 50 50">\n <circle class="coco-msg-path" cx="50" cy="50" r="20" fill="none" stroke-width="4" stroke-miterlimit="10"/>\n </svg>\n </div>\n '}}function d(o){oLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).marked={})}(this,(function(e){"use strict";function t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function n(t){e.defaults=t}e.defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};const s=/[&<>"']/,r=new RegExp(s.source,"g"),i=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,l=new RegExp(i.source,"g"),o={"&":"&","<":"<",">":">",'"':""","'":"'"},a=e=>o[e];function c(e,t){if(t){if(s.test(e))return e.replace(r,a)}else if(i.test(e))return e.replace(l,a);return e}const h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;const p=/(^|[^\[])\^/g;function u(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,s)=>(s=(s="object"==typeof s&&"source"in s?s.source:s).replace(p,"$1"),e=e.replace(t,s),n),getRegex:()=>new RegExp(e,t)};return n}function g(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return null}return e}const k={exec:()=>null};function f(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let s=!1,r=t;for(;--r>=0&&"\\"===n[r];)s=!s;return s?"|":" |"})).split(/ \|/);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(/\\\|/g,"|");return n}function d(e,t,n){const s=e.length;if(0===s)return"";let r=0;for(;r<s;){const i=e.charAt(s-r-1);if(i!==t||n){if(i===t||!n)break;r++}else r++}return e.slice(0,s-r)}function x(e,t,n,s){const r=t.href,i=t.title?c(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){s.state.inLink=!0;const e={type:"link",raw:n,href:r,title:i,text:l,tokens:s.inlineTokens(l)};return s.state.inLink=!1,e}return{type:"image",raw:n,href:r,title:i,text:c(l)}}class b{options;rules;lexer;constructor(t){this.options=t||e.defaults}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:d(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const s=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=s.length?e.slice(s.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=d(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:s,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const s=n.length>1,r={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");const i=new RegExp(`^( {0,3}${n})((?:[\t ][^\\n]*)?(?:\\n|$))`);let l="",o="",a=!1;for(;e;){let n=!1;if(!(t=i.exec(e)))break;if(this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let s=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),c=e.split("\n",1)[0],h=0;this.options.pedantic?(h=2,o=s.trimStart()):(h=t[2].search(/[^ ]/),h=h>4?1:h,o=s.slice(h),h+=t[1].length);let p=!1;if(!s&&/^ *$/.test(c)&&(l+=c+"\n",e=e.substring(c.length+1),n=!0),!n){const t=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,h-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),r=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:\`\`\`|~~~)`),i=new RegExp(`^ {0,${Math.min(3,h-1)}}#`);for(;e;){const a=e.split("\n",1)[0];if(c=a,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),r.test(c))break;if(i.test(c))break;if(t.test(c))break;if(n.test(e))break;if(c.search(/[^ ]/)>=h||!c.trim())o+="\n"+c.slice(h);else{if(p)break;if(s.search(/[^ ]/)>=4)break;if(r.test(s))break;if(i.test(s))break;if(n.test(s))break;o+="\n"+c}p||c.trim()||(p=!0),l+=a+"\n",e=e.substring(a.length+1),s=c.slice(h)}}r.loose||(a?r.loose=!0:/\n *\n *$/.test(l)&&(a=!0));let u,g=null;this.options.gfm&&(g=/^\[[ xX]\] /.exec(o),g&&(u="[ ] "!==g[0],o=o.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",Line truncated
|
||||
@@ -1,684 +0,0 @@
|
||||
function initArtalk(){
|
||||
var memosDom = document.querySelector(memosData.dom);
|
||||
var editIcon = "";
|
||||
var memosEditorCont = `
|
||||
<div class="memos-editor animate__animated animate__fadeIn d-none col-12">
|
||||
<div class="memos-editor-body mb-3 p-3">
|
||||
<div class="memos-editor-inner animate__animated animate__fadeIn">
|
||||
<div class="memos-editor-content">
|
||||
<textarea class="memos-editor-textarea text-sm" rows="1" placeholder="唠叨点什么..."></textarea>
|
||||
</div>
|
||||
<div id="memos-tag-menu"></div>
|
||||
<div class="memos-image-list d-flex flex-fill line-xl"></div>
|
||||
<div class="memos-editor-tools pt-3">
|
||||
<div class="d-flex">
|
||||
<div class="button outline action-btn image-btn mr-2" onclick="this.lastElementChild.click()">
|
||||
<img src="${static_url}js/memos/img/memos_img_up.svg">
|
||||
<input class="memos-upload-image-input d-none" type="file" accept="image/*">
|
||||
</div>
|
||||
<div class="button outline p-2 action-btn code-btn mr-2">
|
||||
<img src="${static_url}js/memos/img/memos_code.svg">
|
||||
</div>
|
||||
<div class="button outline action-btn code-single mr-2">
|
||||
<img src="${static_url}js/memos/img/memos-code-s.svg">
|
||||
</div>
|
||||
<div class="button outline action-btn mr-2 link-btn">
|
||||
<img src="${static_url}js/memos/img/memos_link.svg">
|
||||
</div>
|
||||
<div class="button outline action-btn mr-2 link-img">
|
||||
<img src="${static_url}js/memos/img/memos_img_quote.svg">
|
||||
</div>
|
||||
<div class="button outline action-btn biao-qing mr-2">
|
||||
<img src="${static_url}js/memos/img/memos-emoji.svg">
|
||||
</div>
|
||||
<div class="button outline action-btn p-2 switchUser-btn">
|
||||
<img src="${static_url}js/memos/img/memos_user.svg">
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex flex-fill">
|
||||
<div class="memos-tag-list d-none mt-2 animate__animated animate__fadeIn"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="memos-editor-footer border-t pt-3 mt-3">
|
||||
<div class="editor-selector mr-2">
|
||||
<select class="select-memos-value outline px-2 py-1">
|
||||
<option value="PUBLIC">所有人可见</option>
|
||||
<option value="PROTECTED">仅登录可见</option>
|
||||
<option value="PRIVATE">仅自己可见</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="editor-submit d-flex flex-fill justify-content-end">
|
||||
<div class="edit-memos d-none">
|
||||
<div class="primary cancel-edit-btn mr-2 px-3 py-2">取消</div>
|
||||
<div class="primary edit-memos-btn px-3 py-2">修改完成</div>
|
||||
</div>
|
||||
<div class="primary submit-memos-btn px-3 py-1">唠叨一下</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="memos-editor-option animate__animated animate__fadeIn">
|
||||
<input name="memos-api-url" class="memos-open-api-input input-text flex-fill mr-3 px-2 py-1" type="text" value="" maxlength="120" placeholder="OpenAPI">
|
||||
<div class="memos-open-api-submit">
|
||||
<div class="primary submit-openapi-btn px-3 py-1">保存</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="memos-random d-none"></div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
|
||||
const element = document.querySelector('.intro'); // 选择器是你想要操作的元素的选择器
|
||||
element.insertAdjacentHTML('afterend', editIcon);
|
||||
memosDom.insertAdjacentHTML('afterbegin',memosEditorCont);
|
||||
|
||||
|
||||
var memosEditorInner = document.querySelector(".memos-editor-inner");
|
||||
var memosEditorOption = document.querySelector(".memos-editor-option");
|
||||
var memosRadomCont = document.querySelector(".memos-random");
|
||||
|
||||
var taglistBtn = document.querySelector(".tag-btn");
|
||||
var codeBtn = document.querySelector(".code-btn");
|
||||
var codesingle = document.querySelector(".code-single");
|
||||
var linkBtn = document.querySelector(".link-btn");
|
||||
var linkimg = document.querySelector(".link-img");
|
||||
var switchUserBtn = document.querySelector(".switchUser-btn");
|
||||
var loadEditorBtn = document.querySelector(".load-memos-editor");
|
||||
var submitApiBtn = document.querySelector(".submit-openapi-btn");
|
||||
var submitMemoBtn = document.querySelector(".submit-memos-btn");
|
||||
var memosVisibilitySelect = document.querySelector(".select-memos-value");
|
||||
var openApiInput = document.querySelector(".memos-open-api-input");
|
||||
var uploadImageInput = document.querySelector(".memos-upload-image-input");
|
||||
var memosTextarea = document.querySelector(".memos-editor-textarea");
|
||||
var editMemoDom = document.querySelector(".edit-memos");
|
||||
var editMemoBtn = document.querySelector(".edit-memos-btn");
|
||||
var cancelEditBtn = document.querySelector(".cancel-edit-btn");
|
||||
var biaoqing = document.querySelector(".biao-qing");
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
getEditIcon();
|
||||
});
|
||||
|
||||
function getEditIcon() {
|
||||
var memosContent = '',memosVisibility = '',memosResource = [],memosRelation=[];
|
||||
var memosCount = window.localStorage && window.localStorage.getItem("memos-response-count");
|
||||
var memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
|
||||
var memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
var getEditor = window.localStorage && window.localStorage.getItem("memos-editor-display");
|
||||
var isHide = getEditor === "hide";
|
||||
window.localStorage && window.localStorage.setItem("memos-resource-list", JSON.stringify(memosResource));
|
||||
window.localStorage && window.localStorage.setItem("memos-relation-list", JSON.stringify(memosRelation));
|
||||
memosTextarea.addEventListener('input', (e) => {
|
||||
memosTextarea.style.height = 'inherit';
|
||||
memosTextarea.style.height = e.target.scrollHeight + 'px';
|
||||
});
|
||||
|
||||
if (getEditor !== null) {
|
||||
document.querySelector(".memos-editor").classList.toggle("d-none",isHide);
|
||||
getEditor == "show" ? hasMemosOpenId() : ''
|
||||
};
|
||||
|
||||
loadEditorBtn.addEventListener("click", function () {
|
||||
if (typeof getEditor !== "function") {
|
||||
if (getEditor != "show") {
|
||||
hasMemosOpenId();
|
||||
}
|
||||
}
|
||||
document.querySelector(".memos-editor").classList.toggle("d-none");
|
||||
if (window.localStorage) {
|
||||
window.localStorage.setItem("memos-editor-display", document.querySelector(".memos-editor").classList.contains("d-none") ? "hide" : "show");
|
||||
getEditor = window.localStorage.getItem("memos-editor-display");
|
||||
}
|
||||
});
|
||||
|
||||
//标签数据
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
if (memosPath && memosOpenId) {
|
||||
document.querySelector(".memos-tag-list").classList.remove("d-none");
|
||||
}
|
||||
});
|
||||
|
||||
codeBtn.addEventListener("click", function() {
|
||||
const memosPath = window.localStorage?.getItem("memos-access-path");
|
||||
const memosOpenId = window.localStorage?.getItem("memos-access-token");
|
||||
if (memosPath && memosOpenId) {
|
||||
const memoCode = '```\n\n```';
|
||||
const textareaValue = memosTextarea.value;
|
||||
const lastBacktickIndex = textareaValue.lastIndexOf('```');
|
||||
const caretPos = lastBacktickIndex !== -1 ? lastBacktickIndex : textareaValue.length; // 将光标定位到最后一个 ``` 的位置
|
||||
memosTextarea.value = textareaValue.substring(0, caretPos) + memoCode;
|
||||
memosTextarea.style.height = memosTextarea.scrollHeight + 'px';
|
||||
memosTextarea.setSelectionRange(caretPos + 4, caretPos + 4); // 将光标定位到 ``` 中间
|
||||
memosTextarea.focus();
|
||||
}
|
||||
});
|
||||
|
||||
//代码单反引号
|
||||
codesingle.addEventListener("click", function() {
|
||||
const memosPath = window.localStorage?.getItem("memos-access-path");
|
||||
const memosOpenId = window.localStorage?.getItem("memos-access-token");
|
||||
if (memosPath && memosOpenId) {
|
||||
const memoCode = '`'; // 行内代码的起始和结束标记为单个反引号
|
||||
const textareaValue = memosTextarea.value;
|
||||
const selectionStart = memosTextarea.selectionStart;
|
||||
const selectionEnd = memosTextarea.selectionEnd;
|
||||
const selectedText = textareaValue.substring(selectionStart, selectionEnd);
|
||||
const insertCode = `${memoCode}${selectedText}${memoCode}`;
|
||||
const caretPos = selectionStart !== selectionEnd ? selectionEnd + memoCode.length * 2 : selectionStart + memoCode.length;
|
||||
|
||||
memosTextarea.setRangeText(
|
||||
insertCode,
|
||||
selectionStart,
|
||||
selectionEnd,
|
||||
"end"
|
||||
);
|
||||
// 根据是否有选中内容,决定光标位置
|
||||
memosTextarea.setSelectionRange(caretPos, caretPos);
|
||||
|
||||
memosTextarea.style.height = memosTextarea.scrollHeight + 'px';
|
||||
memosTextarea.focus();
|
||||
}
|
||||
});
|
||||
|
||||
linkBtn.addEventListener("click", function() {
|
||||
const memosPath = window.localStorage?.getItem("memos-access-path");
|
||||
const memosOpenId = window.localStorage?.getItem("memos-access-token");
|
||||
if (memosPath && memosOpenId) {
|
||||
const memoLink = '[]()';
|
||||
const selectedText = memosTextarea.value.substring(memosTextarea.selectionStart, memosTextarea.selectionEnd);
|
||||
let caretPos;
|
||||
|
||||
if (selectedText) {
|
||||
// 如果有选中的文本,则插入到 [] 中
|
||||
const startText = memosTextarea.value.substring(0, memosTextarea.selectionStart);
|
||||
const endText = memosTextarea.value.substring(memosTextarea.selectionEnd);
|
||||
caretPos = startText.length + '['.length + selectedText.length + ']'.length + 1;
|
||||
memosTextarea.value = startText + '[' + selectedText + ']' + memoLink.substring(2) + endText;
|
||||
} else {
|
||||
// 如果没有选中文本,则将光标定位在 ()
|
||||
const startText = memosTextarea.value.substring(0, memosTextarea.selectionStart);
|
||||
const endText = memosTextarea.value.substring(memosTextarea.selectionEnd);
|
||||
caretPos = startText.length + memoLink.indexOf("()") + 1;
|
||||
memosTextarea.value = startText + memoLink + endText;
|
||||
}
|
||||
|
||||
memosTextarea.setSelectionRange(caretPos, caretPos);
|
||||
memosTextarea.focus();
|
||||
}
|
||||
});
|
||||
|
||||
linkimg.addEventListener("click", function() {
|
||||
const memosPath = window.localStorage?.getItem("memos-access-path");
|
||||
const memosOpenId = window.localStorage?.getItem("memos-access-token");
|
||||
if (memosPath && memosOpenId) {
|
||||
const memoLink = '![]()';
|
||||
const caretPos = memosTextarea.selectionStart + memoLink.indexOf("()") + 1;
|
||||
memosTextarea.value = memosTextarea.value.substring(0, memosTextarea.selectionStart) + memoLink + memosTextarea.value.substring(memosTextarea.selectionEnd);
|
||||
memosTextarea.setSelectionRange(caretPos, caretPos);
|
||||
memosTextarea.focus();
|
||||
}
|
||||
});
|
||||
|
||||
uploadImageInput.addEventListener('change', () => {
|
||||
memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
if (memosPath && memosOpenId) {
|
||||
let filesData = uploadImageInput.files[0];
|
||||
if (uploadImageInput.files.length !== 0){
|
||||
uploadImage(filesData);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
async function uploadImage(data) {
|
||||
const imageData = new FormData();
|
||||
const blobUrl = memosPath+"/api/v1/resource/blob?openId="+memosOpenId;
|
||||
imageData.append('file', data, data.name)
|
||||
const resp = await fetch(blobUrl, {
|
||||
method: "POST",
|
||||
body: imageData
|
||||
})
|
||||
const res = await resp.json().then(res => {
|
||||
if(res.id){
|
||||
let imageList = "";
|
||||
imageList += '<div data-id="'+res.id+'" class="memos-img-edit d-flex text-xs mt-2 mr-2" onclick="deleteImage(this)"><div class="d-flex px-2 justify-content-center">'+res.filename+'</div></div>'
|
||||
document.querySelector(".memos-image-list").insertAdjacentHTML('afterbegin', imageList);
|
||||
cocoMessage.success(
|
||||
'上传成功',
|
||||
()=>{
|
||||
memosResource.push(res.id);
|
||||
window.localStorage && window.localStorage.setItem("memos-resource-list", JSON.stringify(memosResource));
|
||||
})
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
switchUserBtn.addEventListener("click", function () {
|
||||
memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
if (memosPath && memosOpenId) {
|
||||
memosEditorOption.classList.remove("d-none");
|
||||
memosEditorInner.classList.add("d-none");
|
||||
memosRadomCont.innerHTML = '';
|
||||
openApiInput.value = '';
|
||||
}
|
||||
});
|
||||
|
||||
submitApiBtn.addEventListener("click", function () {
|
||||
if(openApiInput.value == null || openApiInput.value == ''){
|
||||
cocoMessage.info('内容不能为空');
|
||||
}else{
|
||||
getMemosData(openApiInput.value);
|
||||
}
|
||||
});
|
||||
|
||||
submitMemoBtn.addEventListener("click", function () {
|
||||
memosContent = memosTextarea.value;
|
||||
memosVisibility = memosVisibilitySelect.value;
|
||||
memosResource = window.localStorage && JSON.parse(window.localStorage.getItem("memos-resource-list"));
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
let TAG_REG = /(?<=#)([^#\s!.,;:?"'()]+)(?= )/g;
|
||||
let memosTag = memosContent.match(TAG_REG);
|
||||
let hasContent = memosContent.length !== 0;
|
||||
if (memosOpenId && hasContent) {
|
||||
let memoUrl = memosPath+"/api/v1/memo?openId="+memosOpenId;
|
||||
let memoBody = {content:memosContent,relationList:memosRelation,resourceIdList:memosResource,visibility:memosVisibility}
|
||||
fetch(memoUrl, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(memoBody),
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
}).then(function (res) {
|
||||
if (res.status == 200) {
|
||||
if (memosTag !== null) {
|
||||
const memoTagUrl = memosPath + "/api/v1/tag?openId=" + memosOpenId;
|
||||
(async () => {
|
||||
for await (const i of memosTag) {
|
||||
const response = await fetch(memoTagUrl, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({
|
||||
name: i
|
||||
})
|
||||
});
|
||||
}
|
||||
})();
|
||||
}
|
||||
cocoMessage.success(
|
||||
'唠叨成功',
|
||||
() => {
|
||||
location.reload();
|
||||
})
|
||||
}
|
||||
});
|
||||
}else if(!hasContent){
|
||||
cocoMessage.info('内容不能为空');
|
||||
}else{
|
||||
cocoMessage.info(
|
||||
'请设置 Memos Open API',
|
||||
() => {
|
||||
memosEditorInner.classList.add("d-none");
|
||||
memosEditorOption.classList.remove("d-none");
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
function hasMemosOpenId() {
|
||||
if (!memosOpenId) {
|
||||
memosEditorInner.classList.add("d-none");
|
||||
cocoMessage.info('请设置 Memos Open API');
|
||||
}else{
|
||||
memosEditorOption.classList.add("d-none");
|
||||
// cocoMessage.success('准备就绪');
|
||||
let tagUrl = memosPath+"/api/v1/tag?openId="+memosOpenId;
|
||||
let response = fetch(tagUrl).then(response => response.json()).then(resdata => {
|
||||
return resdata
|
||||
}).then(response => {
|
||||
let taglist = "";
|
||||
response.map((t)=>{
|
||||
taglist += '<div class="memos-tag d-flex text-xs mt-2 mr-2"><a class="d-flex px-2 justify-content-center" onclick="setMemoTag(this)">#'+t+'</a></div>'
|
||||
})
|
||||
document.querySelector(".memos-tag-list").innerHTML = taglist;
|
||||
memosRadomCont.classList.remove("d-none");
|
||||
}).catch(err => cocoMessage.error('Memos Open API 有误,请重新输入!'));
|
||||
}
|
||||
}
|
||||
|
||||
function random(a,b) {
|
||||
var choices = b - a + 1;
|
||||
return Math.floor(Math.random() * choices + a);
|
||||
}
|
||||
|
||||
function getMemosData(e) {
|
||||
let apiReg = /openId=([^&]*)/,urlReg = /(.+?)(?:\/api)/;
|
||||
fetch(e).then(res => {
|
||||
if (res.status == 200) {
|
||||
return res.json()
|
||||
}else{
|
||||
cocoMessage.error('出错了,再检查一下吧!')
|
||||
}
|
||||
}).then(resdata => {
|
||||
if(typeof(resdata) !== "undefined"){
|
||||
let apiRes = e.match(apiReg),urlRes = e.match(urlReg)[1];
|
||||
memosOpenId = apiRes[1];
|
||||
memosPath = urlRes;
|
||||
memosCount = resdata.length;
|
||||
window.localStorage && window.localStorage.setItem("memos-access-path", urlRes);
|
||||
window.localStorage && window.localStorage.setItem("memos-access-token", memosOpenId);
|
||||
window.localStorage && window.localStorage.setItem("memos-response-count", memosCount);
|
||||
cocoMessage.success(
|
||||
'保存成功',
|
||||
()=>{
|
||||
memosEditorOption.classList.add("d-none");
|
||||
memosEditorInner.classList.remove("d-none");
|
||||
memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
hasMemosOpenId();
|
||||
})
|
||||
}
|
||||
})
|
||||
};
|
||||
}
|
||||
|
||||
//发布框 TAG
|
||||
function setMemoTag(e){
|
||||
let memoTag = e.textContent + " ";
|
||||
memosTextarea.value += memoTag;
|
||||
}
|
||||
|
||||
function deleteImage(e){
|
||||
if(e){
|
||||
let memoId = e.getAttribute("data-id")
|
||||
let memosResource = window.localStorage && JSON.parse(window.localStorage.getItem("memos-resource-list"));
|
||||
let memosResourceList = memosResource.filter(function(item){ return item != memoId});
|
||||
window.localStorage && window.localStorage.setItem("memos-resource-list", JSON.stringify(memosResourceList));
|
||||
e.remove()
|
||||
}
|
||||
}
|
||||
|
||||
//增加memos编辑功能
|
||||
function editMemo(e) {
|
||||
var memoContent = e.content,memoId = e.id,memoRelationList = e.relationList,memoResourceList = e.resourceList,memoVisibility = e.visibility;
|
||||
getEditor = window.localStorage && window.localStorage.getItem("memos-editor-display"),
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
if(memosOpenId && getEditor == "show"){
|
||||
memosTextarea.value = memoContent;
|
||||
memosTextarea.style.height = memosTextarea.scrollHeight + 'px';
|
||||
submitMemoBtn.classList.add("d-none");
|
||||
editMemoDom.classList.remove("d-none");
|
||||
document.body.scrollIntoView({behavior: 'smooth'});
|
||||
}
|
||||
editMemoBtn.addEventListener("click", function () {
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token"),
|
||||
memoContent = memosTextarea.value;
|
||||
memoResourceList = window.localStorage && JSON.parse(window.localStorage.getItem("memos-resource-list")) ? window.localStorage && JSON.parse(window.localStorage.getItem("memos-resource-list")) : e.resourceList,
|
||||
memoVisibility = memosVisibilitySelect.value;
|
||||
let TAG_REG = /(?<=#)([^#\s!.,;:?"'()]+)(?= )/g;
|
||||
let memosTag = memoContent.match(TAG_REG);
|
||||
let hasContent = memoContent.length !== 0;
|
||||
if (hasContent) {
|
||||
var memoUrl = memosPath+"/api/v1/memo/"+memoId+"?openId="+memosOpenId;
|
||||
var memoBody = {content:memoContent,id:memoId,relationList:memoRelationList,resourceList:memoResourceList,visibility:memoVisibility}
|
||||
fetch(memoUrl, {
|
||||
method: 'PATCH',
|
||||
body: JSON.stringify(memoBody),
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
}).then(function(res) {
|
||||
if (res.status == 200) {
|
||||
if (memosTag !== null) {
|
||||
const memoTagUrl = memosPath + "/api/v1/tag?openId=" + memosOpenId;
|
||||
(async () => {
|
||||
for await (const i of memosTag) {
|
||||
const response = await fetch(memoTagUrl, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({
|
||||
name: i
|
||||
})
|
||||
});
|
||||
}
|
||||
})();
|
||||
}
|
||||
cocoMessage.success(
|
||||
'修改成功',
|
||||
()=>{
|
||||
submitMemoBtn.classList.remove("d-none");
|
||||
editMemoDom.classList.add("d-none");
|
||||
location.reload();
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//增加memo编辑的时候取消功能
|
||||
cancelEditBtn.addEventListener("click", function () {
|
||||
if (!editMemoDom.classList.contains("d-none")) {
|
||||
memosTextarea.value = '';
|
||||
memosTextarea.style.height = 'inherit';
|
||||
editMemoDom.classList.add("d-none");
|
||||
submitMemoBtn.classList.remove("d-none");
|
||||
}
|
||||
})
|
||||
|
||||
//增加memos归档功能
|
||||
function archiveMemo(memoId) { //获取Memos的ID值
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token"); //登录信息
|
||||
if(memosOpenId && memoId){ //判断是否登录以及获取到Memos的ID值
|
||||
var memoUrl = memosPath+"/api/v1/memo/"+memoId+"?openId="+memosOpenId;
|
||||
var memoBody = {id:memoId,rowStatus:"ARCHIVED"};
|
||||
fetch(memoUrl, {
|
||||
method: 'PATCH',
|
||||
body: JSON.stringify(memoBody),
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
}).then(function(res) {
|
||||
if (res.status == 200) {
|
||||
cocoMessage.success(
|
||||
'归档成功',
|
||||
()=>{
|
||||
location.reload();
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
//增加memo删除功能
|
||||
function deleteMemo(memoId) {
|
||||
memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
if(memosOpenId && memoId){
|
||||
var memoUrl = memosPath+"/api/v1/memo/"+memoId+"?openId="+memosOpenId;
|
||||
fetch(memoUrl, {
|
||||
method: 'DELETE',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
}).then(function(res) {
|
||||
if (res.status == 200) {
|
||||
cocoMessage.success(
|
||||
'删除成功',
|
||||
()=>{
|
||||
location.reload();
|
||||
})
|
||||
}
|
||||
}).catch(err => {
|
||||
cocoMessage.error('出错了,再检查一下吧')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Emoji表情选择
|
||||
|
||||
let emojiSelectorVisible = false;
|
||||
let emojiSelector;
|
||||
let emojis = []; // 缓存表情数据
|
||||
|
||||
// 页面加载时获取表情数据
|
||||
window.addEventListener("DOMContentLoaded", async () => {
|
||||
try {
|
||||
emojis = await getEmojisData(); // 获取表情数据
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch emojis data:', error);
|
||||
}
|
||||
});
|
||||
|
||||
// 表情选择器点击事件处理
|
||||
biaoqing.addEventListener("click", function (event) {
|
||||
event.stopPropagation();
|
||||
emojiSelectorVisible = !emojiSelectorVisible;
|
||||
const memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
|
||||
const memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
|
||||
if (emojiSelectorVisible && memosPath && memosOpenId) {
|
||||
displayEmojiSelector();
|
||||
} else {
|
||||
emojiSelector?.remove();
|
||||
}
|
||||
});
|
||||
|
||||
// 显示表情选择器
|
||||
function displayEmojiSelector() {
|
||||
if (!emojiSelector) {
|
||||
emojiSelector = document.createElement('div');
|
||||
emojiSelector.classList.add('emoji-selector');
|
||||
|
||||
// 使用事件代理,将事件监听器添加到父元素上
|
||||
emojiSelector.addEventListener('click', (event) => {
|
||||
const target = event.target;
|
||||
if (target.classList.contains('emoji-item')) {
|
||||
insertEmoji(target.innerHTML); // 直接插入emoji图标
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
emojiSelector.innerHTML = ''; // 清空表情选择器内容
|
||||
|
||||
emojis.forEach(emoji => {
|
||||
const emojiItem = document.createElement('div');
|
||||
emojiItem.classList.add('emoji-item');
|
||||
emojiItem.innerHTML = emoji.icon;
|
||||
emojiItem.title = emoji.text;
|
||||
emojiSelector.appendChild(emojiItem);
|
||||
});
|
||||
|
||||
// 将表情下拉框插入到对应位置
|
||||
const memosEditorTools = document.querySelector(".memos-editor-tools");
|
||||
if (memosEditorTools) {
|
||||
memosEditorTools.insertAdjacentElement('afterend', emojiSelector);
|
||||
}
|
||||
}
|
||||
|
||||
// 获取json文件中的数据
|
||||
async function getEmojisData() {
|
||||
const response = await fetch('/memos/owo.json');
|
||||
const data = await response.json();
|
||||
return data.Emoji.container;
|
||||
}
|
||||
|
||||
// 表情光标位置
|
||||
function insertEmoji(emojiText) {
|
||||
const selectionStart = memosTextarea.selectionStart;
|
||||
const newValue = `${memosTextarea.value.substring(0, selectionStart)}${emojiText}${memosTextarea.value.substring(memosTextarea.selectionEnd)}`;
|
||||
memosTextarea.value = newValue;
|
||||
memosTextarea.dispatchEvent(new Event('input'));
|
||||
const newCursorPosition = selectionStart + emojiText.length;
|
||||
memosTextarea.setSelectionRange(newCursorPosition, newCursorPosition);
|
||||
memosTextarea.focus();
|
||||
}
|
||||
|
||||
|
||||
// 标签自动补全
|
||||
|
||||
const tagListElement = document.querySelector('.memos-tag-list');
|
||||
const tagMenu = document.getElementById('memos-tag-menu');
|
||||
let selectedTagIndex = -1;
|
||||
|
||||
const getMatchingTags = (tagPrefix) => {
|
||||
const allTags = Array.from(tagListElement.querySelectorAll('.memos-tag a')).map(tagLink => tagLink.textContent);
|
||||
return allTags.filter(tag => tag.toLowerCase().includes(tagPrefix.toLowerCase()));
|
||||
};
|
||||
|
||||
const hideTagMenu = () => tagMenu.style.display = 'none';
|
||||
|
||||
const showTagMenu = (matchingTags) => {
|
||||
tagMenu.innerHTML = matchingTags.map(tag => `<div class="tag-option">${tag}</div>`).join('');
|
||||
const { left, bottom } = memosTextarea.getBoundingClientRect();
|
||||
tagMenu.style.cssText = `display: block;`;
|
||||
selectedTagIndex = -1;
|
||||
};
|
||||
|
||||
const insertSelectedTag = (tag) => {
|
||||
const inputValue = memosTextarea.value;
|
||||
const cursorPosition = memosTextarea.selectionStart;
|
||||
|
||||
const textBeforeCursor = inputValue.substring(0, cursorPosition);
|
||||
const wordsBeforeCursor = textBeforeCursor.split(/\s+/);
|
||||
wordsBeforeCursor.pop();
|
||||
const newValue = `${wordsBeforeCursor.join(' ')} ${tag} ${inputValue.substring(cursorPosition)}`;
|
||||
|
||||
memosTextarea.value = newValue;
|
||||
|
||||
const newCursorPosition = newValue.lastIndexOf(tag) + tag.length + 1;
|
||||
|
||||
hideTagMenu();
|
||||
selectedTagIndex = -1;
|
||||
|
||||
memosTextarea.focus();
|
||||
memosTextarea.setSelectionRange(newCursorPosition, newCursorPosition);
|
||||
};
|
||||
|
||||
memosTextarea.addEventListener('input', () => {
|
||||
const inputValue = memosTextarea.value;
|
||||
const cursorPosition = memosTextarea.selectionStart;
|
||||
|
||||
const lastWord = inputValue.substring(0, cursorPosition).split(/\s+/).pop();
|
||||
|
||||
if (lastWord && lastWord.includes('#')) {
|
||||
const matchingTags = getMatchingTags(lastWord);
|
||||
matchingTags.length > 0 ? showTagMenu(matchingTags) : hideTagMenu();
|
||||
} else {
|
||||
hideTagMenu();
|
||||
}
|
||||
});
|
||||
|
||||
memosTextarea.addEventListener('keydown', event => {
|
||||
const keyCode = event.keyCode;
|
||||
|
||||
if (tagMenu.style.display === 'block') {
|
||||
const matchingTags = Array.from(tagMenu.querySelectorAll('.tag-option')).map(tag => tag.textContent);
|
||||
|
||||
if (keyCode === 38 || keyCode === 40 || keyCode === 37 || keyCode === 39) { // 添加左右方向键的处理
|
||||
event.preventDefault();
|
||||
if (keyCode === 37 || keyCode === 39) { // 处理左右方向键
|
||||
const direction = keyCode === 37 ? -1 : 1;
|
||||
selectedTagIndex = (selectedTagIndex + direction + matchingTags.length) % matchingTags.length;
|
||||
} else { // 处理上下方向键
|
||||
selectedTagIndex = (selectedTagIndex + (keyCode === 38 ? -1 : 1) + matchingTags.length) % matchingTags.length;
|
||||
}
|
||||
Array.from(tagMenu.querySelectorAll('.tag-option')).forEach((option, index) => option.classList.toggle('selected', index === selectedTagIndex));
|
||||
} else if (keyCode === 13 && selectedTagIndex !== -1) {
|
||||
event.preventDefault();
|
||||
insertSelectedTag(matchingTags[selectedTagIndex]);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
tagMenu.addEventListener('click', event => {
|
||||
insertSelectedTag(event.target.textContent);
|
||||
});
|
||||
|
||||
}
|
||||
initArtalk()
|
||||
@@ -1,417 +0,0 @@
|
||||
|
||||
var hasLogin = 0 //没登录隐藏编辑归档按钮
|
||||
|
||||
var memosData = {
|
||||
dom:'#memos',
|
||||
}
|
||||
|
||||
var bbMemo = {
|
||||
memos: 'https://memos.koobai.com/',
|
||||
limit: '15',
|
||||
creatorId: '101',
|
||||
domId: '#bber',
|
||||
};
|
||||
if(typeof(bbMemos) !=="undefined"){
|
||||
for(var key in bbMemos) {
|
||||
if(bbMemos[key]){
|
||||
bbMemo[key] = bbMemos[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
function loadCssCode(code){
|
||||
var style = document.createElement('style');
|
||||
style.type = 'text/css';
|
||||
style.rel = 'stylesheet';
|
||||
style.appendChild(document.createTextNode(code));
|
||||
var head = document.getElementsByTagName('head')[0];
|
||||
head.appendChild(style);
|
||||
}
|
||||
|
||||
var limit = bbMemo.limit
|
||||
var memos = bbMemo.memos
|
||||
var mePage = 1,offset = 0,nextLength = 0,nextDom='';
|
||||
var bbDom = document.querySelector(bbMemo.domId);
|
||||
var load = '<div class="bb-load"><button class="load-btn button-load">加载中……</button></div>'
|
||||
// 增加memos编辑及归档
|
||||
var memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
var memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
|
||||
var getEditor = window.localStorage && window.localStorage.getItem("memos-editor-display");
|
||||
|
||||
if(bbDom){
|
||||
getFirstList() //首次加载数据
|
||||
// meNums() //加载总数
|
||||
var btn = document.querySelector("button.button-load");
|
||||
btn.addEventListener("click", function () {
|
||||
btn.textContent= '加载中……';
|
||||
updateHTMl(nextDom)
|
||||
if(nextLength < limit){ //返回数据条数小于限制条数,隐藏
|
||||
document.querySelector("button.button-load").remove()
|
||||
return
|
||||
}
|
||||
getNextList()
|
||||
});
|
||||
}
|
||||
function initCircle(){
|
||||
var limit = bbMemo.limit
|
||||
var memos = bbMemo.memos
|
||||
var mePage = 1,offset = 0,nextLength = 0,nextDom='';
|
||||
var bbDom = document.querySelector(bbMemo.domId);
|
||||
var load = '<div class="bb-load"><button class="load-btn button-load">加载中……</button></div>'
|
||||
// 增加memos编辑及归档
|
||||
var memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
|
||||
var memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
|
||||
var getEditor = window.localStorage && window.localStorage.getItem("memos-editor-display");
|
||||
|
||||
if(bbDom){
|
||||
getFirstList() //首次加载数据
|
||||
// meNums() //加载总数
|
||||
var btn = document.querySelector("button.button-load");
|
||||
btn.addEventListener("click", function () {
|
||||
btn.textContent= '加载中……';
|
||||
updateHTMl(nextDom)
|
||||
if(nextLength < limit){ //返回数据条数小于限制条数,隐藏
|
||||
document.querySelector("button.button-load").remove()
|
||||
return
|
||||
}
|
||||
getNextList()
|
||||
});
|
||||
}
|
||||
}
|
||||
function getFirstList(){
|
||||
bbDom.insertAdjacentHTML('afterend', load);
|
||||
let tagHtml = `<div class="memos-search-all img-hide">
|
||||
<div class="memos-search">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-auto opacity-30 dark:text-gray-200"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg>
|
||||
<input type="text" id="memos-search-input" placeholder="输入关键词,搜索博主的动态..." onkeydown="searchMemoevent(event)">
|
||||
</div>
|
||||
<div id="tag-list-all"></div>
|
||||
</div>
|
||||
<div id="tag-list"></div>` // TAG筛选 memos搜索
|
||||
bbDom.insertAdjacentHTML('beforebegin', tagHtml); // TAG筛选
|
||||
showTaglist(); // 显示所有 TAG
|
||||
var bbUrl = memos+"api/v1/memo?creatorId="+bbMemo.creatorId+"&rowStatus=NORMAL&limit="+limit;
|
||||
fetch(bbUrl).then(res => res.json()).then( resdata =>{
|
||||
updateHTMl(resdata);
|
||||
var nowLength = resdata.length;
|
||||
if(nowLength < limit){ //返回数据条数小于 limit 则直接移除“加载更多”按钮,中断预加载
|
||||
document.querySelector("button.button-load").remove()
|
||||
return
|
||||
}
|
||||
mePage++
|
||||
offset = limit*(mePage-1)
|
||||
getNextList()
|
||||
});
|
||||
}
|
||||
//预加载下一页数据
|
||||
function getNextList(){
|
||||
var bbUrl = memos+"api/v1/memo?creatorId="+bbMemo.creatorId+"&rowStatus=NORMAL&limit="+limit+"&offset="+offset;
|
||||
fetch(bbUrl).then(res => res.json()).then( resdata =>{
|
||||
nextDom = resdata;
|
||||
nextLength = nextDom.length
|
||||
mePage++
|
||||
offset = limit*(mePage-1)
|
||||
if(nextLength < 1){ //返回数据条数为 0 ,隐藏
|
||||
document.querySelector("button.button-load").remove()
|
||||
return
|
||||
}
|
||||
//在未展开评论时,默认显示评论数
|
||||
Artalk.loadCountWidget({
|
||||
server: 'https://artalk.usj.cc/',
|
||||
site: '优世界',
|
||||
countEl: '#ArtalkCount'
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
//加载总 Memos 数
|
||||
function meNums() {
|
||||
var bbLoad = document.querySelector('.bb-load');
|
||||
var bbUrl = memos + "api/v1/memo/stats?creatorId=" + bbMemo.creatorId;
|
||||
fetch(bbUrl).then(res => res.json()).then(resdata => {
|
||||
if (Array.isArray(resdata)) {
|
||||
var allnums = ' 博主共发布了 ' + resdata.length + ' 条动态🎉 ';
|
||||
bbLoad.insertAdjacentHTML('afterend', allnums);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 插入 html
|
||||
function updateHTMl(data){
|
||||
var result="",resultAll="";
|
||||
//登录显示编辑归档按钮
|
||||
if(memosOpenId && getEditor == "show"){
|
||||
hasLogin = 1
|
||||
}
|
||||
const TAG_REG = /#([^#\s!.,;:?"'()]+)(?= )/g
|
||||
, IMG_REG = /\!\[(.*?)\]\((.*?)\)/g //content 内 md 格式图片
|
||||
, LINK_REG = /\[(.*?)\]\((.*?)\)/g //链接新窗口打开
|
||||
marked.setOptions({
|
||||
breaks: false,
|
||||
smartypants: false,
|
||||
langPrefix: 'language-',
|
||||
headerIds: false,
|
||||
mangle: false
|
||||
});
|
||||
for(var i=0;i < data.length;i++){
|
||||
var memo_id = data[i].id; //评论调用
|
||||
var bbContREG = data[i].content
|
||||
.replace(TAG_REG, "")
|
||||
.replace(IMG_REG, '')
|
||||
.replace(LINK_REG, '<a href="$2" target="_blank">$1</a>')
|
||||
bbContREG = marked.parse(bbContREG)
|
||||
|
||||
//解析 content 内 md 格式图片
|
||||
var IMG_ARR = data[i].content.match(IMG_REG) || '',IMG_ARR_Grid='';
|
||||
if(IMG_ARR){
|
||||
var IMG_ARR_Length = IMG_ARR.length,IMG_ARR_Url = '';
|
||||
if(IMG_ARR_Length !== 1){var IMG_ARR_Grid = " grid grid-"+IMG_ARR_Length}
|
||||
IMG_ARR.forEach(item => {
|
||||
let imgSrc = item.replace(/!\[.*?\]\((.*?)\)/g,'$1')
|
||||
IMG_ARR_Url += '<figure class="gallery-thumbnail"><img loading="lazy" decoding="async" class="img thumbnail-image lazyload" loading="lazy" decoding="async" data-lazy-src="'+imgSrc+'" src="'+imgSrc+'"/></figure>'
|
||||
});
|
||||
bbContREG += '<div class="resimg'+IMG_ARR_Grid+'" uk-scrollspy="target: > img; cls: uk-animation-fade; delay: 600">'+IMG_ARR_Url+'</div>';
|
||||
}
|
||||
//TAG 解析
|
||||
var tagArr = data[i].content.match(TAG_REG);
|
||||
var memosTag = '';
|
||||
|
||||
if (tagArr) {
|
||||
memosTag = tagArr.map(function(tag) {
|
||||
var tagText = String(tag).replace(/[#]/g, '');
|
||||
return '<div class="memos-tag-dg" onclick="getTagNow(this)"># ' + tagText + '</div>';
|
||||
}).join('');
|
||||
} else {
|
||||
memosTag = '<div class="memos-tag-dg">#生活日常</div>';
|
||||
}
|
||||
|
||||
//解析内置资源文件
|
||||
if(data[i].resourceList && data[i].resourceList.length > 0){
|
||||
var resourceList = data[i].resourceList;
|
||||
var imgUrl='',resUrl='',resImgLength = 0;
|
||||
for(var j=0;j < resourceList.length;j++){
|
||||
var restype = resourceList[j].type.slice(0,5)
|
||||
var resexlink = resourceList[j].externalLink
|
||||
var resLink = '',fileId=''
|
||||
if(resexlink){
|
||||
resLink = resexlink
|
||||
}else{
|
||||
fileId = resourceList[j].publicId || resourceList[j].filename
|
||||
resLink = memos+'o/r/'+resourceList[j].id+'/'+fileId
|
||||
}
|
||||
if(restype == 'image'){
|
||||
imgUrl += '<figure class="gallery-thumbnail"><img loading="lazy" decoding="async" class="img thumbnail-image" src="'+resLink+'"/></figure>'
|
||||
resImgLength = resImgLength + 1
|
||||
}
|
||||
if(restype !== 'image'){
|
||||
resUrl += '<a target="_blank" rel="noreferrer" href="'+resLink+'">'+resourceList[j].filename+'</a>'
|
||||
}
|
||||
}
|
||||
if(imgUrl){
|
||||
var resImgGrid = ""
|
||||
if(resImgLength !== 1){var resImgGrid = "grid grid-"+resImgLength}
|
||||
bbContREG += '<div class="resimg '+resImgGrid+'">'+imgUrl+'</div></div>'
|
||||
}
|
||||
if(resUrl){
|
||||
bbContREG += '<p class="datasource">'+resUrl+'</p>'
|
||||
}
|
||||
}
|
||||
result += `
|
||||
<li class="bb-list-li img-hide" id="${memo_id}">
|
||||
<div class="memos-pl">
|
||||
<div class="memos_diaoyong_time">${moment(data[i].createdTs * 1000).twitterLong()}</div>
|
||||
${hasLogin == 0 ? '' : `
|
||||
<div class="memos-edit">
|
||||
<div class="memos-menu">...</div>
|
||||
<div class="memos-menu-d">
|
||||
<div class="edit-btn" onclick="editMemo(${JSON.stringify(data[i]).replace(/"/g, '"')})">修改</div>
|
||||
<div class="archive-btn" onclick="archiveMemo('${data[i].id}')">归档</div>
|
||||
<div class="delete-btn" onclick="deleteMemo('${data[i].id}')">删除</div>
|
||||
</div>
|
||||
</div>
|
||||
`}
|
||||
</div>
|
||||
<div class="memos-tag-wz">${memosTag}</div>
|
||||
<div class="datacont" view-image>${bbContREG}</div>
|
||||
<div class="memos_diaoyong_top">
|
||||
<div class="memos-zan"><emoji-reaction class="reactions" reactTargetId="/m/${memo_id}" theme="system" endpoint="https://e.52ql.cn" availableArrayString="👍,thumbs-up;🎉,party-popper;❤️,red-heart;"></emoji-reaction></div>
|
||||
<div class="talks_comments">
|
||||
<a onclick="loadArtalk('${memo_id}')">
|
||||
<span id="ArtalkCount" data-page-key="/m/${memo_id}" class="comment-s"></span> 条评论 <span id="btn_memo_${memo_id}">
|
||||
<svg width="6px" height="12px" viewBox="0 0 6 12" version="1.1" xmlns="http://www.w3.org/2000/svg"><g><path d="M0.211503518,0.218577027 C0.493508208,-0.072859009 0.95072815,-0.072859009 1.23273284,0.218577027 L5.41780916,4.54361875 C6.19406361,5.34583421 6.19406361,6.65416579 5.41780916,7.45638125 L1.23273284,11.781423 C0.95072815,12.072859 0.493508208,12.072859 0.211503518,11.781423 C-0.0705011726,11.4899869 -0.0705011726,11.0174758 0.211503518,10.7260397 L4.39657984,6.400998 C4.60882491,6.18165462 4.60882491,5.81834538 4.39657984,5.599002 L0.211503518,1.27396027 C-0.0705011726,0.982524238 -0.0705011726,0.510013063 0.211503518,0.218577027 Z"></path></g></svg>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="memo_${memo_id}" class="artalk hidden"></div>
|
||||
</li>`;
|
||||
} // end for
|
||||
|
||||
var bbBefore = "<section class='bb-timeline'><ul class='bb-list-ul' uk-scrollspy='target: > li; cls: uk-animation-fade; delay: 500'>";
|
||||
var bbAfter = "</ul></section>";
|
||||
resultAll = bbBefore + result + bbAfter;
|
||||
bbDom.insertAdjacentHTML('beforeend', resultAll);
|
||||
|
||||
// animateSummaries(); // 在DOM加载完毕后执行滑动加载动画
|
||||
|
||||
if(document.querySelector('button.button-load')) document.querySelector('button.button-load').textContent = '看更多 ...';
|
||||
// 延时加载评论数方法
|
||||
setTimeout(function() {
|
||||
Artalk.loadCountWidget({
|
||||
server: 'https://artalk.usj.cc/',
|
||||
site: '优世界',
|
||||
countEl: '#ArtalkCount'
|
||||
});
|
||||
}, 1000); // 延迟3000毫秒(也就是3秒)执行
|
||||
}
|
||||
|
||||
// TAG 筛选
|
||||
function getTagNow(e){
|
||||
//console.log(e.innerHTML)
|
||||
let tagName = e.innerHTML.replace('# ','')
|
||||
let domClass = document.getElementById("bber")
|
||||
window.scrollTo({
|
||||
top: domClass.offsetTop - 30,
|
||||
behavior: "smooth"
|
||||
});
|
||||
let tagHtmlNow = `<div class='memos-tag-sc-2' onclick='javascript:location.reload();'><div class='memos-tag-sc-1' >标签筛选:</div><div class='memos-tag-sc' >${e.innerHTML}<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-auto ml-1 opacity-40"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg></div></div>`
|
||||
document.querySelector('#tag-list').innerHTML = tagHtmlNow
|
||||
let bbUrl = memos+"api/v1/memo?creatorId="+bbMemo.creatorId+"&tag="+tagName+"&limit=20";
|
||||
fetch(bbUrl).then(res => res.json()).then( resdata =>{
|
||||
document.querySelector(bbMemo.domId).innerHTML = ""
|
||||
if(document.querySelector("button.button-load")) document.querySelector("button.button-load").remove()
|
||||
|
||||
updateHTMl(resdata)
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
// 延时加载评论数方法
|
||||
setTimeout(function() {
|
||||
Artalk.loadCountWidget({
|
||||
server: 'https://artalk.usj.cc/',
|
||||
site: '优世界',
|
||||
countEl: '#ArtalkCount'
|
||||
});
|
||||
}, 1000); // 延迟3000毫秒(也就是3秒)执行
|
||||
// 显示所有 TAG
|
||||
function showTaglist(){
|
||||
let bbUrl = 'https://tag.52ql.cn/'
|
||||
let tagListDom = ""
|
||||
fetch(bbUrl).then(res => res.json()).then( resdata =>{
|
||||
for(let i=0;i < resdata.length;i++){
|
||||
tagListDom += `<div class="memos-tag-all img-hide" onclick='getTagNow(this)'># ${resdata[i]}</div>`
|
||||
}
|
||||
document.querySelector('#tag-list-all').innerHTML = tagListDom
|
||||
|
||||
// animateSummaries(); // 加载完毕后执行滑动加载动画
|
||||
})
|
||||
}
|
||||
|
||||
// 搜索 Memos
|
||||
function searchMemoevent(event) {
|
||||
if (event.key === "Enter") {
|
||||
searchMemo();
|
||||
}
|
||||
}
|
||||
|
||||
function searchMemo() {
|
||||
let searchText = document.querySelector('#memos-search-input').value;
|
||||
let tagHtmlNow = `<div class='memos-tag-sc-2' onclick='javascript:location.reload();'><div class='memos-tag-sc-1' >关键词搜索:</div><div class='memos-tag-sc' >${searchText}<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-auto ml-1 opacity-40"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg></div></div>`
|
||||
document.querySelector('#tag-list').innerHTML = tagHtmlNow;
|
||||
let bbUrl = memos + "api/v1/memo?creatorId=" + bbMemo.creatorId + "&content=" + searchText + "&limit=20";
|
||||
fetchMemoDOM(bbUrl);
|
||||
}
|
||||
|
||||
function fetchMemoDOM(bbUrl) {
|
||||
fetch(bbUrl)
|
||||
.then(res => res.json())
|
||||
.then(resdata => {
|
||||
let arrData = resdata || '';
|
||||
if (resdata.data) {
|
||||
arrData = resdata.data;
|
||||
}
|
||||
if (arrData.length > 0) {
|
||||
// 清空旧的搜索结果和加载按钮
|
||||
document.querySelector(bbMemo.domId).innerHTML = "";
|
||||
if (document.querySelector("button.button-load")) {
|
||||
document.querySelector("button.button-load").remove();
|
||||
// 延时加载评论数方法
|
||||
setTimeout(function() {
|
||||
Artalk.loadCountWidget({
|
||||
server: 'https://artalk.usj.cc/',
|
||||
site: '优世界',
|
||||
countEl: '#ArtalkCount'
|
||||
});
|
||||
}, 1000); // 延迟3000毫秒(也就是3秒)执行
|
||||
}
|
||||
updateHTMl(resdata);
|
||||
} else {
|
||||
alert("搜不到,尝试换一个关键词");
|
||||
setTimeout(() => location.reload(), 1000);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//增加memos评论
|
||||
function loadArtalk(memo_id) {
|
||||
const commentDiv = document.getElementById('memo_' + memo_id);
|
||||
const commentBtn = document.getElementById('btn_memo_' + memo_id);
|
||||
const allCommentDivs = document.querySelectorAll("[id^='memo_']");
|
||||
const allCommentBtns = document.querySelectorAll("[id^='btn_memo_']");
|
||||
|
||||
if (commentDiv.classList.contains('hidden')) {
|
||||
// 收起其他评论
|
||||
for (let i = 0; i < allCommentDivs.length; i++) {
|
||||
if (allCommentDivs[i] !== commentDiv) {
|
||||
allCommentDivs[i].classList.add('hidden');
|
||||
}
|
||||
}
|
||||
// 修改其他评论按钮文字
|
||||
for (let i = 0; i < allCommentBtns.length; i++) {
|
||||
if (allCommentBtns[i] !== commentBtn) {
|
||||
allCommentBtns[i].innerHTML = '<svg width="6px" height="12px" viewBox="0 0 6 12" version="1.1" xmlns="http://www.w3.org/2000/svg"><g><path d="M0.211503518,0.218577027 C0.493508208,-0.072859009 0.95072815,-0.072859009 1.23273284,0.218577027 L5.41780916,4.54361875 C6.19406361,5.34583421 6.19406361,6.65416579 5.41780916,7.45638125 L1.23273284,11.781423 C0.95072815,12.072859 0.493508208,12.072859 0.211503518,11.781423 C-0.0705011726,11.4899869 -0.0705011726,11.0174758 0.211503518,10.7260397 L4.39657984,6.400998 C4.60882491,6.18165462 4.60882491,5.81834538 4.39657984,5.599002 L0.211503518,1.27396027 C-0.0705011726,0.982524238 -0.0705011726,0.510013063 0.211503518,0.218577027 Z"></path></g></svg>';
|
||||
}
|
||||
}
|
||||
|
||||
commentDiv.classList.remove('hidden');
|
||||
commentBtn.innerHTML = '<svg width="14px" height="14px" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><g fill-rule="evenodd"><path d="M256,0 C397.167,0 512,114.853 512,256 C512,397.147 397.167,512 256,512 C114.833,512 0,397.167 0,256 C0,114.833 114.833,0 256,0 Z M256,39.659 C136.725,39.659 39.659,136.705 39.659,256 C39.659,375.295 136.725,472.341 256,472.341 C375.275,472.341 472.341,375.295 472.341,256 C472.341,136.705 375.295,39.659 256,39.659 Z M242.119,184.217 C249.853,176.523 262.345,176.523 270.079,184.217 L369.227,283.365 C376.921,291.098 376.921,303.591 369.227,311.325 C361.493,319.019 349.001,319.019 341.267,311.325 L256,226.256 L170.931,311.324 C162.622,318.443 150.09,317.472 142.971,309.163 C136.606,301.747 136.606,290.781 142.971,283.365 Z" fill-rule="nonzero"></path></g></svg>';
|
||||
//增加评论平滑定位
|
||||
// const commentLi = document.getElementById(memo_id);
|
||||
// const commentLiPosition = commentLi.getBoundingClientRect().top + window.pageYOffset;
|
||||
// const offset = commentLiPosition - 3.5 * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
||||
// if ('scrollBehavior' in document.documentElement.style) {
|
||||
// // 支持平滑滚动的情况下,使用 window.scrollTo
|
||||
// window.scrollTo({
|
||||
// top: offset,
|
||||
// behavior: 'smooth'
|
||||
// });
|
||||
// } else {
|
||||
// // 不支持平滑滚动的情况下,使用滚动容器的平滑滚动方法(如需要滚动到具体的容器内)
|
||||
// // 例如:document.documentElement.scrollTop = offset;
|
||||
// // 或者使用第三方的平滑滚动库
|
||||
// }
|
||||
const artalk = new Artalk({
|
||||
el: '#memo_' + memo_id,
|
||||
pageKey: '/m/' + memo_id,
|
||||
pageTitle: '',
|
||||
server: 'https://artalk.usj.cc/',
|
||||
site: '优世界',
|
||||
darkMode: 'auto'
|
||||
});
|
||||
} else {
|
||||
commentDiv.classList.add('hidden');
|
||||
commentBtn.innerHTML = '<svg width="6px" height="12px" viewBox="0 0 6 12" version="1.1" xmlns="http://www.w3.org/2000/svg"><g><path d="M0.211503518,0.218577027 C0.493508208,-0.072859009 0.95072815,-0.072859009 1.23273284,0.218577027 L5.41780916,4.54361875 C6.19406361,5.34583421 6.19406361,6.65416579 5.41780916,7.45638125 L1.23273284,11.781423 C0.95072815,12.072859 0.493508208,12.072859 0.211503518,11.781423 C-0.0705011726,11.4899869 -0.0705011726,11.0174758 0.211503518,10.7260397 L4.39657984,6.400998 C4.60882491,6.18165462 4.60882491,5.81834538 4.39657984,5.599002 L0.211503518,1.27396027 C-0.0705011726,0.982524238 -0.0705011726,0.510013063 0.211503518,0.218577027 Z"></path></g></svg>';
|
||||
}
|
||||
}
|
||||
|
||||
//调用coco-message插件暗黑模式
|
||||
// const darkModeMatcher = window.matchMedia('(prefers-color-scheme: dark)');
|
||||
// darkModeMatcher.addEventListener('change', handleDarkModeChange);
|
||||
// function handleDarkModeChange(e) {
|
||||
// if (e.matches) {
|
||||
// document.documentElement.classList.add('dark');
|
||||
// } else {
|
||||
// document.documentElement.classList.remove('dark');
|
||||
// }
|
||||
// }
|
||||
// handleDarkModeChange(darkModeMatcher);
|
||||
@@ -1 +0,0 @@
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var H;function f(){return H.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function F(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function L(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(c(e,t))return;return 1}function o(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function V(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function G(e,t){for(var n=[],s=e.length,i=0;i<s;++i)n.push(t(e[i],i));return n}function E(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,n,s){return Pt(e,t,n,s,!0).utc()}function m(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function A(e){if(null==e._isValid){var t=m(e),n=j.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function I(e){var t=l(NaN);return null!=e?E(m(t),e):m(t).userInvalidated=!0,t}var j=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1},Z=f.momentProperties=[],z=!1;function $(e,t){var n,s,i,r=Z.length;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=m(t)),o(t._locale)||(e._locale=t._locale),0<r)for(n=0;n<r;n++)o(i=t[s=Z[n]])||(e[s]=i);return e}function q(e){$(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,f.updateOffset(this),z=!1)}function h(e){return e instanceof q||null!=e&&null!=e._isAMomentObject}function B(e){!1===f.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(r,a){var o=!0;return E(function(){if(null!=f.deprecationHandler&&f.deprecationHandler(null,r),o){for(var e,t,n=[],s=arguments.length,i=0;i<s;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])c(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];n.push(e)}B(r+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),o=!1}return a.apply(this,arguments)},a)}var J={};function Q(e,t){null!=f.deprecationHandler&&f.deprecationHandler(e,t),J[e]||(B(t),J[e]=!0)}function d(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function X(e,t){var n,s=E({},e);for(n in t)c(t,n)&&(F(e[n])&&F(t[n])?(s[n]={},E(s[n],e[n]),E(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)c(e,n)&&!c(t,n)&&F(e[n])&&(s[n]=E({},s[n]));return s}function K(e){null!=e&&this.set(e)}f.suppressDeprecationWarnings=!1,f.deprecationHandler=null;var ee=Object.keys||function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};function r(e,t,n){var s=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-s.length)).toString().substr(1)+s}var te=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,se={},ie={};function s(e,t,n,s){var i="string"==typeof s?function(){return this[s]()}:s;e&&(ie[e]=i),t&&(ie[t[0]]=function(){return r(i.apply(this,arguments),t[1],t[2])}),n&&(ie[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function re(e,t){return e.isValid()?(t=ae(t,e.localeData()),se[t]=se[t]||function(s){for(var e,i=s.match(te),t=0,r=i.length;t<r;t++)ie[i[t]]?i[t]=ie[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<r;n++)t+=d(i[n])?i[n].call(e,s):i[n];return t}}(t),se[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function s(e){return t.longDateFormat(e)||e}for(ne.lastIndLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
moment.updateLocale("zh-cn",{meridiem:function(hour,minute,isLowercase){return hour<6?"凌晨":hour<9?"早上":hour<11&&minute<30?"上午":hour<13&&minute<30?"中午":hour<18?"下午":"晚上"}}),function(){var day,formats,hour,initialize,minute,second,week;second=1e3,minute=6e4,hour=36e5,day=864e5,week=6048e5,year=(new Date).getFullYear(),formats={seconds:{short:" 秒钟前",long:" 秒钟前"},minutes:{short:" 分钟前",long:" 分钟前"},hours:{short:" 小时前",long:" 小时前"},days:{short:" 天前",long:" 天前"}},initialize=function(moment){var twitterFormat;return twitterFormat=function(format){var diff,num,unit,unitStr;if(unit=null,num=null,(diff=Math.abs(this.diff(moment())))<=1e3)unit="seconds",num=1;else if(diff<6e4)unit="seconds";else if(diff<36e5)unit="minutes";else if(diff<day)unit="hours";else{if("long"!==format)return this.format("YYYY年MM月DD日 HH:mm");if(!(diff<week))return this.year()==year?this.format("MM月DD日 HH:mm"):this.format("YYYY年MM月DD日 HH:mm");unit="days"}return num&&unit||(num=moment.duration(diff)[unit]()),unitStr=unit=formats[unit][format],"long"===format&&num>1&&(unitStr+=""),num+unitStr},moment.fn.twitterLong=function(){return twitterFormat.call(this,"long")},moment.fn.twitter=moment.fn.twitterShort=function(){return twitterFormat.call(this,"short")},moment},"function"==typeof define&&define.amd?define("moment-twitter",["moment"],(function(moment){return this.moment=initialize(moment)})):"undefined"!=typeof module?module.exports=initialize(require("moment")):"undefined"!=typeof window&&window.moment&&(this.moment=initialize(this.moment))}.call(this);
|
||||
@@ -1,13 +0,0 @@
|
||||
/**
|
||||
* ViewImage.min.js 2.0.2
|
||||
* MIT License - http://www.opensource.org/licenses/mit-license.php
|
||||
* https://tokinx.github.io/ViewImage/
|
||||
*/
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(b){return b.raw=b};$jscomp.createTemplateTagFirstArgWithRaw=function(b,a){b.raw=a;return b};$jscomp.arrayIteratorImpl=function(b){var a=0;return function(){return a<b.length?{done:!1,value:b[a++]}:{done:!0}}};$jscomp.arrayIterator=function(b){return{next:$jscomp.arrayIteratorImpl(b)}};$jscomp.makeIterator=function(b){var a="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];return a?a.call(b):$jscomp.arrayIterator(b)};
|
||||
$jscomp.arrayFromIterator=function(b){for(var a,d=[];!(a=b.next()).done;)d.push(a.value);return d};$jscomp.arrayFromIterable=function(b){return b instanceof Array?b:$jscomp.arrayFromIterator($jscomp.makeIterator(b))};
|
||||
(function(){window.ViewImage=new function(){var b=this;this.target="[view-image] img";this.listener=function(a){if(!(a.ctrlKey||a.metaKey||a.shiftKey||a.altKey)){var d=String(b.target.split(",").map(function(g){return g.trim()+":not([no-view])"})),c=a.target.closest(d);if(c){var e=c.closest("[view-image]")||document.body;d=[].concat($jscomp.arrayFromIterable(e.querySelectorAll(d))).map(function(g){return g.href||g.src});b.display(d,c.href||c.src);a.stopPropagation();a.preventDefault()}}};this.init=
|
||||
function(a){a&&(b.target=a);["removeEventListener","addEventListener"].forEach(function(d){document[d]("click",b.listener,!1)})};this.display=function(a,d){var c=a.indexOf(d),e=(new DOMParser).parseFromString('\n <div class="view-image">\n <style>.view-image{position:fixed;inset:0;z-index:500;padding:1rem;display:flex;flex-direction:column;animation:view-image-in 300ms;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.view-image__out{animation:view-image-out 300ms}@keyframes view-image-in{0%{opacity:0}}@keyframes view-image-out{100%{opacity:0}}.view-image-btn{width:32px;height:32px;display:flex;justify-content:center;align-items:center;cursor:pointer;border-radius:3px;background-color:rgba(255,255,255,0.2)}.view-image-btn:hover{background-color:rgba(255,255,255,0.5)}.view-image-close__full{position:absolute;inset:0;background-color:rgba(48,55,66,0.3);z-index:unset;cursor:zoom-out;margin:0}.view-image-container{height:0;flex:1;display:flex;align-items:center;justify-content:center;}.view-image-lead{display:contents}.view-image-lead img{position:relative;z-index:1;max-width:100%;max-height:100%;object-fit:contain;border-radius:3px}.view-image-lead__in img{animation:view-image-lead-in 300ms}.view-image-lead__out img{animation:view-image-lead-out 300ms forwards}@keyframes view-image-lead-in{0%{opacity:0;transform:translateY(-20px)}}@keyframes view-image-lead-out{100%{opacity:0;transform:translateY(20px)}}[class*=__out] ~ .view-image-loading{display:block}.view-image-loading{position:absolute;inset:50%;width:8rem;height:2rem;color:#aab2bd;overflow:hidden;text-align:center;margin:-1rem -4rem;z-index:1;display:none}.view-image-loading::after{content:"";position:absolute;inset:50% 0;width:100%;height:3px;background:rgba(255,255,255,0.5);transform:translateX(-100%) translateY(-50%);animation:view-image-loading 800ms -100ms ease-in-out infinite}@keyframes view-image-loading{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}.view-image-tools{position:relative;display:flex;justify-content:space-between;align-content:center;color:#fff;max-width:600px;position: absolute; bottom: 5%; left: 1rem; right: 1rem; backdrop-filter: blur(10px);margin:0 auto;padding:10px;border-radius:5px;background:rgba(0,0,0,0.1);margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom);z-index:1}.view-image-tools__count{width:60px;display:flex;align-items:center;justify-content:center}.view-image-tools__flip{display:flex;gap:10px}.view-image-tools [class*=-close]{margin:0 10px}</style>\n <div class="view-image-container">\n <div class="view-image-lead"></div>\n <div class="view-image-loading"></div>\n <div class="view-image-close view-image-close__full"></div>\n </div>\n <div class="view-image-tools">\n <div class="view-image-tools__count">\n <span><b class="view-image-index">'+
|
||||
(c+1)+"</b>/"+a.length+'</span>\n </div>\n <div class="view-image-tools__flip">\n <div class="view-image-btn view-image-tools__flip-prev">\n <svg width="20" height="20" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" fill="white" fill-opacity="0.01"/><path d="M31 36L19 24L31 12" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>\n </div>\n <div class="view-image-btn view-image-tools__flip-next">\n <svg width="20" height="20" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" fill="white" fill-opacity="0.01"/><path d="M19 12L31 24L19 36" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>\n </div>\n </div>\n <div class="view-image-btn view-image-close">\n <svg width="16" height="16" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" fill="white" fill-opacity="0.01"/><path d="M8 8L40 40" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 40L40 8" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>\n </div>\n </div>\n </div>\n ',
|
||||
"text/html").body.firstChild,g=function(f){var h={Escape:"close",ArrowLeft:"tools__flip-prev",ArrowRight:"tools__flip-next"};h[f.key]&&e.querySelector(".view-image-"+h[f.key]).click()},l=function(f){var h=new Image,k=e.querySelector(".view-image-lead");k.className="view-image-lead view-image-lead__out";setTimeout(function(){k.innerHTML="";h.onload=function(){setTimeout(function(){k.innerHTML='<img src="'+h.src+'" alt="ViewImage" no-view/>';k.className="view-image-lead view-image-lead__in"},100)};
|
||||
h.src=f},300)};document.body.appendChild(e);l(d);window.addEventListener("keydown",g);e.onclick=function(f){f.target.closest(".view-image-close")?(window.removeEventListener("keydown",g),e.onclick=null,e.classList.add("view-image__out"),setTimeout(function(){return e.remove()},290)):f.target.closest(".view-image-tools__flip")&&(c=f.target.closest(".view-image-tools__flip-prev")?0===c?a.length-1:c-1:c===a.length-1?0:c+1,l(a[c]),e.querySelector(".view-image-index").innerHTML=c+1)}}}})();
|
||||
|
||||
@@ -1,243 +0,0 @@
|
||||
{
|
||||
"Emoji": {
|
||||
"type": "emoji",
|
||||
"container":[
|
||||
{
|
||||
"icon": "😂",
|
||||
"text": "哭笑不得"
|
||||
},
|
||||
{
|
||||
"icon": "😎",
|
||||
"text": "酷"
|
||||
},
|
||||
{
|
||||
"icon": "😏",
|
||||
"text": "坏笑"
|
||||
},
|
||||
{
|
||||
"icon": "😄",
|
||||
"text": "笑"
|
||||
},
|
||||
{
|
||||
"icon": "😜",
|
||||
"text": "调皮"
|
||||
},
|
||||
{
|
||||
"icon": "🤣",
|
||||
"text": "笑倒"
|
||||
},
|
||||
{
|
||||
"icon": "😭",
|
||||
"text": "大哭"
|
||||
},
|
||||
{
|
||||
"icon": "🙄",
|
||||
"text": "白眼"
|
||||
},
|
||||
{
|
||||
"icon": "🤐",
|
||||
"text": "嘘"
|
||||
},
|
||||
{
|
||||
"icon": "😋",
|
||||
"text": "美食脸"
|
||||
},
|
||||
{
|
||||
"icon": "🥶",
|
||||
"text": "冰冻"
|
||||
},
|
||||
{
|
||||
"icon": "🥵",
|
||||
"text": "热"
|
||||
},
|
||||
{
|
||||
"icon": "😴",
|
||||
"text": "睡觉"
|
||||
},
|
||||
{
|
||||
"icon": "🤧",
|
||||
"text": "打喷嚏"
|
||||
},
|
||||
{
|
||||
"icon": "🍉",
|
||||
"text": "西瓜"
|
||||
},
|
||||
{
|
||||
"icon": "😱",
|
||||
"text": "惊恐"
|
||||
},
|
||||
{
|
||||
"icon": "👋",
|
||||
"text": "招手"
|
||||
},
|
||||
{
|
||||
"icon": "🔨",
|
||||
"text": "锤子"
|
||||
},
|
||||
{
|
||||
"icon": "🐶",
|
||||
"text": "小狗"
|
||||
},
|
||||
{
|
||||
"icon": "👏",
|
||||
"text": "鼓掌"
|
||||
},
|
||||
{
|
||||
"icon": "🙈",
|
||||
"text": "不看"
|
||||
},
|
||||
{
|
||||
"icon": "😓",
|
||||
"text": "汗"
|
||||
},
|
||||
{
|
||||
"icon": "😍",
|
||||
"text": "爱心眼"
|
||||
},
|
||||
{
|
||||
"icon": "🤝",
|
||||
"text": "握手"
|
||||
},
|
||||
{
|
||||
"icon": "🥺",
|
||||
"text": "求你"
|
||||
},
|
||||
{
|
||||
"icon": "😔",
|
||||
"text": "沮丧"
|
||||
},
|
||||
{
|
||||
"icon": "😪",
|
||||
"text": "困"
|
||||
},
|
||||
{
|
||||
"icon": "😕",
|
||||
"text": "困惑"
|
||||
},
|
||||
{
|
||||
"icon": "🤷♂️",
|
||||
"text": "摊手"
|
||||
},
|
||||
{
|
||||
"icon": "😛",
|
||||
"text": "舌头"
|
||||
},
|
||||
{
|
||||
"icon": "🤭",
|
||||
"text": "偷笑"
|
||||
},
|
||||
{
|
||||
"icon": "🤮",
|
||||
"text": "呕吐"
|
||||
},
|
||||
{
|
||||
"icon": "🥺",
|
||||
"text": "求你"
|
||||
},
|
||||
{
|
||||
"icon": "🙂",
|
||||
"text": "轻松的笑"
|
||||
},
|
||||
{
|
||||
"icon": "😈",
|
||||
"text": "恶魔"
|
||||
},
|
||||
{
|
||||
"icon": "😃",
|
||||
"text": "笑脸"
|
||||
},
|
||||
{
|
||||
"icon": "🤫",
|
||||
"text": "嘘"
|
||||
},
|
||||
{
|
||||
"icon": "😒",
|
||||
"text": "无语"
|
||||
},
|
||||
{
|
||||
"icon": "😵",
|
||||
"text": "晕"
|
||||
},
|
||||
{
|
||||
"icon": "💪",
|
||||
"text": "加油"
|
||||
},
|
||||
{
|
||||
"icon": "👍",
|
||||
"text": "赞"
|
||||
},
|
||||
{
|
||||
"icon": "👎",
|
||||
"text": "踩"
|
||||
},
|
||||
{
|
||||
"icon": "😡",
|
||||
"text": "愤怒"
|
||||
},
|
||||
{
|
||||
"icon": "🤬",
|
||||
"text": "怒骂"
|
||||
},
|
||||
{
|
||||
"icon": "😖",
|
||||
"text": "心烦"
|
||||
},
|
||||
{
|
||||
"icon": "🌹",
|
||||
"text": "玫瑰"
|
||||
},
|
||||
{
|
||||
"icon": "🏃",
|
||||
"text": "跑步"
|
||||
},
|
||||
{
|
||||
"icon": "😆",
|
||||
"text": "大笑"
|
||||
},
|
||||
{
|
||||
"icon": "💵",
|
||||
"text": "钞票"
|
||||
},
|
||||
{
|
||||
"icon": "😘",
|
||||
"text": "飞吻"
|
||||
},
|
||||
{
|
||||
"icon": "😷",
|
||||
"text": "生病"
|
||||
},
|
||||
{
|
||||
"icon": "🤕",
|
||||
"text": "受伤"
|
||||
},
|
||||
{
|
||||
"icon": "🎉",
|
||||
"text": "庆祝"
|
||||
},
|
||||
{
|
||||
"icon": "❤️",
|
||||
"text": "红心"
|
||||
},
|
||||
{
|
||||
"icon": "💔",
|
||||
"text": "心碎"
|
||||
},
|
||||
{
|
||||
"icon": "😣",
|
||||
"text": "无奈"
|
||||
},
|
||||
{
|
||||
"icon": "😘",
|
||||
"text": "飞吻"
|
||||
},
|
||||
{
|
||||
"icon": "💩",
|
||||
"text": "一坨便便"
|
||||
},
|
||||
{
|
||||
"icon": "🤩",
|
||||
"text": "爱慕"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b:"function"==typeof define&&define.amd?define([],function(){return b(a)}):a.Qmsg=b(a)}(this,function(a){"use strict";function h(){var b,a=c;for(b=0;b<arguments.length;++b)a+="-"+arguments[b];return a}function i(a){var g,i,k,l,m,o,p,q,r,s,b=this;b.settings=Object.assign({},e,a||{}),b.id=n.instanceCount,g=b.settings.timeout,g=g&&parseInt(g>=0)&&parseInt(g)<=Math.NEGATIVE_INFINITY?parseInt(g):e.timeout,b.timeout=g,b.settings.timeout=g,b.timer=null,i=document.createElement("div"),k=f[b.settings.type||"info"],l=h("content-"+b.settings.type||"info"),l+=b.settings.showClose?" "+h("content-with-close"):"",m=b.settings.content||"",o=f["close"],p=b.settings.showClose?'<i class="qmsg-icon qmsg-icon-close">'+o+"</i>":"",q=document.createElement("span"),b.settings.html?q.innerHTML=m:q.innerText=m,i.innerHTML='<div class="qmsg-content"> <div class="'+l+'"> <i class="qmsg-icon">'+k+"</i>"+q.outerHTML+p+"</div> </div>",i.classList.add(h("item")),i.style.textAlign=b.settings.position,r=document.querySelector("."+c),r||(r=document.createElement("div"),r.classList.add(c),r.classList.add(h("wrapper")),r.classList.add(h("is-initialized")),document.body.appendChild(r)),r.appendChild(i),b.$wrapper=r,b.$elem=i,j(b,"opening"),b.settings.showClose&&i.querySelector(".qmsg-icon-close").addEventListener("click",function(){b.close()}.bind(i)),i.addEventListener("animationend",function(a){var b=a.target,c=a.animationName;c===d["closing"]&&(clearInterval(this.timer),this.destroy()),b.style.animationName=""}.bind(b)),b.settings.autoClose&&(s=10,b.timer=setInterval(function(){this.timeout-=s,this.timeout<=0&&(clearInterval(this.timer),this.close())}.bind(b),s),b.$elem.addEventListener("mouseover",function(){clearInterval(this.timer)}.bind(b)),b.$elem.addEventListener("mouseout",function(){"closing"!==this.state&&(this.timer=setInterval(function(){this.timeout-=s,this.timeout<=0&&(clearInterval(this.timer),this.close())}.bind(b),s))}.bind(b)))}function j(a,b){b&&d[b]&&(a.state=b,a.$elem.style.animationName=d[b])}function k(a){var b=h("count"),c=a.$elem.querySelector('[class^="qmsg-content-"]'),d=c.querySelector("."+b);d||(d=document.createElement("span"),d.classList.add(b),c.appendChild(d)),d.innerHTML=a.count,d.style.animationName="",d.style.animationName="MessageShake",a.timeout=a.settings.timeout||e.timeout}function l(a,b){var c=Object.assign({},e);return 0===arguments.length?c:a instanceof Object?Object.assign(c,a):(c.content=a.toString(),b instanceof Object?Object.assign(c,b):c)}function m(a){var b,c,d,e,f,g,h,j,l,m;a=a||{},b=JSON.stringify(a),c=-1;for(e in this.oMsgs)if(f=this.oMsgs[e],f.config===b){c=e,d=f.inst;break}if(0>c){if(this.instanceCount++,g={},g.id=this.instanceCount,g.config=b,d=new i(a),d.id=this.instanceCount,d.count="",g.inst=d,this.oMsgs[this.instanceCount]=g,h=this.oMsgs.length,j=this.maxNums,h>j)for(l=0,m=this.oMsgs,l;h-j>l;l++)m[l]&&m[l].inst.settings.autoClose&&m[l].inst.close()}else d.count=d.count?d.count>=99?d.count:d.count+1:2,k(d);return d.$elem.setAttribute("data-count",d.count),d}var b,c,d,e,f,g,n;return"function"!=typeof Object.assign&&(Object.assign=function(a){var b,c,d;if(null==a)throw new TypeError("Cannot convert undefined or null to object");for(a=Object(a),b=1;b<arguments.length;b++)if(c=arguments[b],null!=c)for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d]);return a}),"classList"in document.documentElement||Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){function b(b){return function(c){var d=a.className.split(/\s+/g),e=d.indexOf(c);b(d,e,c),a.className=d.join(" ")}}var a=this;return{add:b(function(a,b,c){~b||a.push(c)}),remove:b(function(a,b){~b&&a.splice(b,1)}),toggle:b(function(a,b,c){~b?a.splice(b,1):a.push(c)}),contains:function(b){return!!~a.className.split(/\s+/g).indexOf(b)},item:function(b){return a.className.split(/\s+/g)[b]||null}}}}),b="qmsg",c=a&&a.QMSG_GLOBALS&&a.QMSG_GLOBALS.NAMESPACE||b,d={opening:"MessageMoveIn",done:"",closing:"MessageMoveOut"},e=Object.assign({position:"center",type:"info",showClose:!1,timeout:2500,animation:!0,autoClose:!0,content:"",onClose:null,maxNums:5,html:!1},a&&a.QMSG_GLOBALS&&a.QMSG_GLOBALS.DEFAULTS),f={info:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M512 64q190.016 4.992 316.512 131.488T960 512q-4.992 190.016-131.488 316.512T512 960q-190.016-4.992-316.512-131.488T64 512q4.992-190.016 131.488-316.512T512 64zm67.008 275.008q26.016 0 43.008-15.488t16.992-41.504-16.992-41.504-42.496-15.488-42.496 15.488-16.992 41.504 16.992 41.504 42.016 15.488zm12 360q0-6.016.992-16T592 664l-52.992 60.992q-8 8.992-16.512 14.016T508 742.016q-8.992-4-8-14.016l88-276.992q4.992-28-8.992-48t-44.992-24q-35.008.992-76.512 29.504t-72.512 72.512v15.008q-.992 10.016 0 19.008l52.992-60.992q8-8.992 16.512-14.016T468 437.024q10.016 4.992 7.008 16l-87.008 276q-7.008 24.992 7.008 44.512T4Line truncated
|
||||
@@ -1,46 +0,0 @@
|
||||
function loadArtalk(memo_id) {
|
||||
const commentDiv = document.getElementById('memo_' + memo_id);
|
||||
const commentBtn = document.getElementById('btn_memo_' + memo_id);
|
||||
if (commentDiv.style.display === 'none') {
|
||||
commentDiv.style.display = 'block';
|
||||
commentBtn.innerHTML = '收起评论';
|
||||
new Artalk({
|
||||
el: '#memo_' + memo_id, // 绑定元素的 Selector
|
||||
pageKey: '/m/' + memo_id, // 固定链接 (留空自动获取)
|
||||
pageTitle: '', // 页面标题 (留空自动获取)
|
||||
server: 'https://artalk.usj.cc', // 后端地址
|
||||
site: '优世界', // 在后端中创建的站点名
|
||||
});
|
||||
} else {
|
||||
commentDiv.style.display = 'none';
|
||||
commentBtn.innerHTML = '点击评论';
|
||||
}
|
||||
}
|
||||
|
||||
Artalk.loadCountWidget({
|
||||
server: 'https://artalk.usj.cc',
|
||||
site: '优世界',
|
||||
pvEl: '#ArtalkPV',
|
||||
countEl: '#ArtalkCount',
|
||||
});
|
||||
|
||||
function getTotal() {
|
||||
var totalUrl = "https://memos.usj.cc/api/memo/stats?creatorId=1"
|
||||
fetch(totalUrl).then(res => res.json()).then(resdata => {
|
||||
if (resdata.data) {
|
||||
var allnums = resdata.data.length
|
||||
var memosCount = document.getElementById('memosCount');
|
||||
memosCount.innerHTML = allnums;
|
||||
}
|
||||
}).catch(err => {
|
||||
// Do something for an error here
|
||||
});
|
||||
};
|
||||
window.onload = getTotal();
|
||||
// Memos Total End
|
||||
// 激活灯箱插件
|
||||
window.ViewImage && ViewImage.init('.text img , .memos-photo img');
|
||||
|
||||
// 将说说页面第一个和最后一个 hr 标签的 display 属性设置为 none
|
||||
$("hr").first().css('display', 'none');
|
||||
$("hr").last().css('display', 'none');
|
||||