@jx3box/jx3box-common-ui 6.6.5 → 6.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,141 +1,137 @@
1
1
  .c-sidebar-left {
2
- .w(@aside-left - 40px);
3
- box-sizing: border-box;
4
- padding: 10px;
5
- .pf;
6
- .z(600);
7
- left: 0;
8
- top: @header-height + @bread-height;
9
- bottom: 0;
10
- background-color: @bg-light;
11
- border-right: 1px solid #eee;
2
+ .w(@aside-left - 40px);
3
+ box-sizing: border-box;
4
+ padding: 10px;
5
+ .pf;
6
+ .z(600);
7
+ left: 0;
8
+ top: @header-height + @bread-height;
9
+ bottom: 0;
10
+ background-color: @bg-light;
11
+ border-right: 1px solid #eee;
12
12
  }
13
13
 
14
14
  .c-sidebar-left.without-bread {
15
- top: @header-height;
15
+ top: @header-height;
16
16
  }
17
17
 
18
18
  .c-sidebar-left-inner {
19
- .size(100%);
20
- overflow-y: hidden;
21
-
22
- &:hover {
19
+ .size(100%);
23
20
  overflow-y: auto;
24
- }
25
-
26
- &::-webkit-scrollbar {
27
- width: 4px;
28
- }
29
-
30
- &::-webkit-scrollbar-track,
31
- &::-webkit-scrollbar-track-piece {
32
- background-color: #fafafa;
33
- border-radius: 6px;
34
- }
35
-
36
- &::-webkit-scrollbar-thumb {
37
- background-color: #eee;
38
- border-radius: 6px;
39
- }
40
-
41
- &::-webkit-scrollbar-button,
42
- &::-webkit-scrollbar-corner,
43
- &::-webkit-resizer {
44
- display: none;
45
- }
21
+
22
+ &::-webkit-scrollbar {
23
+ width: 4px;
24
+ }
25
+
26
+ &::-webkit-scrollbar-track,
27
+ &::-webkit-scrollbar-track-piece {
28
+ background-color: #fafafa;
29
+ border-radius: 6px;
30
+ }
31
+
32
+ &::-webkit-scrollbar-thumb {
33
+ background-color: #eee;
34
+ border-radius: 6px;
35
+ }
36
+
37
+ &::-webkit-scrollbar-button,
38
+ &::-webkit-scrollbar-corner,
39
+ &::-webkit-resizer {
40
+ display: none;
41
+ }
46
42
  }
47
43
 
48
44
  // 笔记本<1440 缩小双边栏
49
45
  @media screen and (max-width: @smallpc) {
50
- .c-sidebar-left {
51
- .w(@aside-left - 40px);
52
- }
46
+ .c-sidebar-left {
47
+ .w(@aside-left - 40px);
48
+ }
53
49
  }
54
50
 
55
51
  // 平板横屏
56
52
  @media screen and (max-width: @notebook) {
57
- .c-sidebar-left {
58
- .w(@aside-left - 60px);
59
- }
53
+ .c-sidebar-left {
54
+ .w(@aside-left - 60px);
55
+ }
60
56
  }
61
57
 
62
58
  @media screen and (max-width: @phone) {
63
59
  .c-sidebar-left-inner {
64
- overflow-y: auto;
60
+ overflow-y: auto;
65
61
  }
66
62
  }
67
63
 
68
64
  // 折叠相关逻辑
69
65
  .c-sidebar-left-toggle {
70
- display: block;
71
- .pa;
72
- .rb(-21px, calc(50% - 20px));
73
- width: 20px;
74
- height: 40px;
75
- line-height: 40px;
76
- .pointer;
77
- text-align: center;
78
- background-color: @bg-light;
79
- border-right: 1px solid #eee;
80
- border-top: 1px solid #eee;
81
- border-bottom: 1px solid #eee;
82
- border-radius: 0px 2px 2px 0px;
83
- font-size: 16px;
84
- color: #999;
85
-
86
- &:hover {
87
- color: #222;
88
- }
89
-
90
- &.close-sidebar-left {
91
- right: 0;
92
- }
93
-
94
- svg {
95
- fill: @color;
96
- }
66
+ display: block;
67
+ .pa;
68
+ .rb(-21px, calc(50% - 20px));
69
+ width: 20px;
70
+ height: 40px;
71
+ line-height: 40px;
72
+ .pointer;
73
+ text-align: center;
74
+ background-color: @bg-light;
75
+ border-right: 1px solid #eee;
76
+ border-top: 1px solid #eee;
77
+ border-bottom: 1px solid #eee;
78
+ border-radius: 0px 2px 2px 0px;
79
+ font-size: 16px;
80
+ color: #999;
81
+
82
+ &:hover {
83
+ color: #222;
84
+ }
85
+
86
+ &.close-sidebar-left {
87
+ right: 0;
88
+ }
89
+
90
+ svg {
91
+ fill: @color;
92
+ }
97
93
  }
98
94
 
99
95
  .closeLeftSidebar() {
100
- transition: 0.2s ease-in-out;
101
- transform: translateX(-100%);
96
+ transition: 0.2s ease-in-out;
97
+ transform: translateX(-100%);
102
98
  }
103
99
 
104
100
  .openLeftSidebar() {
105
- transition: 0.2s ease-in-out;
106
- transform: translateX(0);
101
+ transition: 0.2s ease-in-out;
102
+ transform: translateX(0);
107
103
  }
108
104
 
109
105
  .c-sidebar-left.isclose {
110
- .closeLeftSidebar();
106
+ .closeLeftSidebar();
111
107
 
112
- .c-sidebar-left-toggle {
113
- transition: 0.2s ease-in-out;
114
- transform: translateX(100%);
115
- }
108
+ .c-sidebar-left-toggle {
109
+ transition: 0.2s ease-in-out;
110
+ transform: translateX(100%);
111
+ }
116
112
  }
117
113
 
118
114
  .c-sidebar-left.isopen {
119
- .openLeftSidebar();
115
+ .openLeftSidebar();
120
116
 
121
- .c-sidebar-left-toggle {
122
- transition: 0.2s ease-in-out;
123
- transform: translateX(0);
124
- }
117
+ .c-sidebar-left-toggle {
118
+ transition: 0.2s ease-in-out;
119
+ transform: translateX(0);
120
+ }
125
121
  }
126
122
 
127
123
  @media screen and (max-width: @ipad) {
128
- .c-sidebar-left-toggle {
129
- .none;
130
- }
124
+ .c-sidebar-left-toggle {
125
+ .none;
126
+ }
131
127
 
132
- .c-sidebar-left.isopen {
133
- box-shadow: 2px 0 3px rgba(0, 0, 0, .1);
134
- }
128
+ .c-sidebar-left.isopen {
129
+ box-shadow: 2px 0 3px rgba(0, 0, 0, 0.1);
130
+ }
135
131
  }
136
132
 
137
133
  @media print {
138
- .c-sidebar-left {
139
- .none;
140
- }
134
+ .c-sidebar-left {
135
+ .none;
136
+ }
141
137
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "6.6.5",
3
+ "version": "6.6.6",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -33,7 +33,7 @@
33
33
  "@jx3box/jx3box-comment-ui": "^1.7.6",
34
34
  "@jx3box/jx3box-common": "^7.6.2",
35
35
  "@jx3box/jx3box-data": "^3.0.3",
36
- "@jx3box/jx3box-editor": "^1.6.3",
36
+ "@jx3box/jx3box-editor": "^1.6.6",
37
37
  "axios": "^0.26.1",
38
38
  "dayjs": "^1.11.0",
39
39
  "element-ui": "^2.13.2",
@@ -237,24 +237,30 @@ export default {
237
237
  if (user_last_login && dayjs(user_last_login).isToday()) {
238
238
  console.log("已签到");
239
239
  } else {
240
- userSignIn()
241
- .then((res) => {
242
- let msg = this.$message({
243
- type: "success",
244
- message: "签到成功",
245
- customClass: "c-header-signin",
246
- duration: 0,
240
+ // 延迟2秒执行 feedback#501
241
+ const signTimer = setTimeout(() => {
242
+ userSignIn()
243
+ .then((res) => {
244
+ let msg = this.$message({
245
+ type: "success",
246
+ message: "签到成功",
247
+ customClass: "c-header-signin",
248
+ duration: 0,
249
+ });
250
+ // 模拟手动关闭
251
+ setTimeout(() => {
252
+ msg.close();
253
+ }, 3000);
254
+ localStorage.setItem("user_last_login", JSON.stringify(dayjs()));
255
+ })
256
+ .catch((err) => {
257
+ localStorage.setItem("user_last_login", JSON.stringify(dayjs()));
258
+ console.log(dayjs.tz.guess());
259
+ })
260
+ .finally(() => {
261
+ clearTimeout(signTimer);
247
262
  });
248
- // 模拟手动关闭
249
- setTimeout(() => {
250
- msg.close();
251
- }, 3000);
252
- localStorage.setItem("user_last_login", JSON.stringify(dayjs()));
253
- })
254
- .catch((err) => {
255
- localStorage.setItem("user_last_login", JSON.stringify(dayjs()));
256
- console.log(dayjs.tz.guess());
257
- })
263
+ }, 2000);
258
264
  }
259
265
  } catch (e) {
260
266
  console.log(e);