inleft
2022-03-03 5dfef883049e7f0670f6c6b1b225b233aee41eea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
<template>
    <div>
        <div class="recent-posts" id="recent-posts">
            <div class="recent-post-item">
                <div class="miniTag" v-if="isTop==1">置顶</div>
                <div class="post_cover left_radius" v-if="index%2==0">
                    <router-link :to="{path:'/mdDetail',query:{id:id}}" :title="title">
                        <div class="block left_radius"></div>
                        <img class="post_bg" :src="coverFileURL" :onerror="img404" :alt="title">
                    </router-link>
                </div>
 
                <div class="post_cover right_radius" v-else>
                    <router-link :to="{path:'/mdDetail',query:{id:id}}" :title="title">
                        <div class="block right_radius"></div>
                        <img class="post_bg" :src="coverFileURL" :onerror="img404" :alt="title">
                        <!-- <img class="post_bg" src="https://unpkg.zhimg.com/ahzo@1.0.3/blogpic/1.jpg" onerror="this.onerror=null,this.src=&quot;/img/404.jpg&quot;" :alt="title"> -->
                    </router-link>
                </div>
 
                <div class="recent-post-info">
                    <router-link :to="{path:'/mdDetail',query:{id:id}}" class="article-title">
                        <a-icon type="lock" style="color:rgba(0,0,0,.25)" v-if="authStatus==3" />
                        <a-icon type="stop" style="color:rgba(0,0,0,.25)" v-if="authStatus==2" />
                        {{title}}
                    </router-link>
                    <!-- <a class="article-title" href="/mdDetail" :title="title"> {{title}}</a> -->
                    <div class="article-meta-wrap" style="display: flex;">
                        <span class="post-meta-date">
                            <a-icon type="calendar" />
                            <span class="article-meta-label"></span>
                            <time datetime="2022-01-13T06:25:00.000Z"
                                title=" 2022-01-13 14:25:00">{{publishDate}}</time>
                        </span>
                        <span class="article-meta__separator" style="margin: 0px 3px ;"> | </span>
                        <span class="article-meta">
                            <a-icon type="book" />
                            <router-link :to="{path:'/articleList',query:{typeId:articleTypeId}}"
                                class="article-meta__categories">
                                {{articleTypeName}}
                            </router-link>
                            <!-- <a class="article-meta__categories" href="#"> {{tag}}</a> -->
                        </span>
                    </div>
                    <div class="content">
                        {{introduce}}
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
 
<script>
    export default {
        props: {
            "index": {
                default: 0,
            },
            "id": {
                default: 0,
            },
            "articleTypeId": {
                default: null
            },
            "isTop": {
                default: 0,
            },
            "authStatus": {
                default: 1,
            },
            "title": {
                default: "",
            },
            "articleTypeName": {
                default: "",
            },
            "introduce": {
                default: "",
            },
            "publishDate": {
                default: "",
            },
            "coverFileURL": {
                default: "",
            }
        },
        data() {
            return {
                img404: "this.onerror='';this.src=\"https://unpkg.zhimg.com/ahzo@1.0.3/blogpic/1.jpg\"",
                //     "title": "使用KeyStore生成证书",
                //     "publishTime": "2022-01-14",
                //     "tag": "随手记",
                //     "content": "前言Keytool是一个Java数据证书的管理工具 , 在keystore里,包含两种数据: 密钥实体(Key entity):即密钥(secret key)又或者是私钥和配对公钥(采用非对称加密) 可信任的证书实体(trusted certificate entries):即证书(包含公钥) keytool常用命令: genkey 在用户主目录中创建一个默认文件”.keystore” alias 产生别名 keystore 指定密钥库的名称(产生的各类信息将不在.keystore文件中) keyalg 指定密钥的算法 (如 RSA DSA(如果不指定默认采用DSA)) validity 指定创建的证书有效期多少天 keysize 指定密钥长度 storepass 指定密钥库的密码(获取keystore信息所需的密码) keypass 指定别名条目的密码(私钥的密码) dname 指定证书拥有者信息 例如: “CN=名字与姓氏,OU=组织单位名称,O=组织名称,L=城市或区域名称,ST=州或省份名称,C=单位的两字母国家代码 list 显示密钥库中的证书信息 keytool - ..."
            }
        }
    }
</script>
 
<style lang="less">
    @card-bg: #f5f8fa;
    @card-box-shadow: 8px 8px 18px rgba(0, 0, 0, 0.1), -8px -8px 18px rgba(255, 255, 255, 1);
    @ahzoo-proportion: 1;
    @cursorURL: "https://blog.ahzoo.cn/blogpic/normal.cur";
    @global-font-size: 14px;
    @font-color: #666;
    @title-clolr: dimgray;
    @card-hover-box-shadow: 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 rgba(255, 255, 255, 0.8), inset 9px 9px 15px rgba(0, 0, 0, 0.1), inset -9px -9px 15px rgba(255, 255, 255, 1);
 
    .recent-post-item {
        position: relative;
    }
 
    .miniTag {
        z-index: 1;
        position: absolute;
        right: 8px;
        top: 8px;
        transform: rotate(30deg);
        box-shadow: aliceblue;
    }
 
    // #recent-posts>.recent-post-item:not(:first-child) {
    //     margin-top: 1rem;
    // }
    #recent-posts>.recent-post-item {
        margin-top: 1rem;
    }
 
    #recent-posts>.recent-post-item {
        display: -webkit-box;
        display: -moz-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: box;
        display: flex;
        -webkit-box-orient: horizontal;
        -moz-box-orient: horizontal;
        -o-box-orient: horizontal;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-align: center;
        -moz-box-align: center;
        -o-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
        border-radius: 12px 8px 8px 12px;
 
        -webkit-transition: all .3s;
        -moz-transition: all .3s;
        -o-transition: all .3s;
        -ms-transition: all .3s;
        transition: all .3s;
 
        background: @card-bg;
        -webkit-box-shadow: @card-box-shadow;
        box-shadow: @card-box-shadow;
 
    }
 
    .recent-post-item a {
        // color: #99a9bf;
        text-decoration: none;
        word-wrap: break-word;
        -webkit-transition: all .2s;
        -moz-transition: all .2s;
        -o-transition: all .2s;
        -ms-transition: all .2s;
        transition: all .2s;
        overflow-wrap: break-word;
        background-color: transparent;
    }
 
    .recent-post-item {
        padding-left: calc(1.2rem * @ahzoo-proportion) !important;
        padding-right: calc(1.2rem * @ahzoo-proportion) !important;
        // font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Lato, Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
        line-height: 2;
 
        img {
            max-width: 100%;
            -webkit-transition: all .2s;
            -moz-transition: all .2s;
            -o-transition: all .2s;
            -ms-transition: all .2s;
            transition: all .2s;
            border-style: none;
        }
    }
 
    .recent-post-item * {
        //cursor: url(@cursorURL), auto !important;
        font-size: @global-font-size;
        color: @font-color;
    }
 
    * {
        tap-highlight-color: transparent;
        -webkit-tap-highlight-color: transparent;
        box-sizing: border-box;
    }
 
    #recent-posts>.recent-post-item .post_cover {
        width: 33%;
        position: sticky;
 
        opacity: .8;
        padding: calc(1.2rem * @ahzoo-proportion) calc(0.2rem * @ahzoo-proportion);
        overflow: hidden;
        height: 100%;
        -webkit-mask-image: -webkit-radial-gradient(#fff, #000);
    }
 
    #recent-posts>.recent-post-item .left_radius {
        border-radius: 8px 0 0 8px;
    }
 
    #recent-posts>.recent-post-item .right_radius {
        -webkit-box-ordinal-group: 2;
        -moz-box-ordinal-group: 2;
        -o-box-ordinal-group: 2;
        -ms-flex-order: 2;
        -webkit-order: 2;
        order: 2;
        border-radius: 0 8px 8px 0;
        border-top-left-radius: 0px;
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
        border-bottom-left-radius: 0px;
    }
 
    .block.left_radius {
        background: linear-gradient(to right, transparent, @card-bg 98%);
        position: absolute;
        width: 100%;
        height: calc(100% - 2.2rem * @ahzoo-proportion);
        z-index: 2;
        top: calc(1.1rem * @ahzoo-proportion);
    }
 
    #recent-posts>.recent-post-item .post_cover img.post_bg {
        border-radius: 15px;
        width: 100%;
        height: 100%;
        -webkit-transition: all .6s;
        -moz-transition: all .6s;
        -o-transition: all .6s;
        -ms-transition: all .6s;
        transition: all .6s;
        object-fit: cover;
    }
 
    .block.right_radius {
        background: linear-gradient(to left, transparent, @card-bg 98%);
        position: absolute;
        width: 100%;
        height: calc(100% - 2.2rem * @ahzoo-proportion);
        z-index: 2;
        top: calc(1.1rem * @ahzoo-proportion);
    }
 
    #recent-posts>.recent-post-item>.recent-post-info {
        width: 77%;
        padding: 0px calc(1.2rem * @ahzoo-proportion);
        display: flex;
        flex-direction: column;
        overflow: hidden;
 
        a {
            text-decoration: none;
            -webkit-transition: all .2s;
            -moz-transition: all .2s;
            -o-transition: all .2s;
            -ms-transition: all .2s;
            transition: all .2s;
            overflow-wrap: break-word;
        }
    }
 
    #recent-posts>.recent-post-item>.recent-post-info>.article-title {
        order: 1;
        font-weight: 600;
        color: @title-clolr;
        font-size: 1.6em;
        margin-bottom: 0.3rem;
        line-height: 1.4;
        -webkit-transition: all .2s ease-in-out;
        -moz-transition: all .2s ease-in-out;
        -o-transition: all .2s ease-in-out;
        -ms-transition: all .2s ease-in-out;
        transition: all .2s ease-in-out;
 
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        /* autoprefixer: off */
        -webkit-line-clamp: 2;
        /* autoprefixer: on */
    }
 
 
 
    #recent-posts>.recent-post-item>.recent-post-info>.article-meta-wrap {
        order: 3;
        color: #858585;
        font-size: 90%;
 
        .article-meta-label {
            padding-right: 0.2rem;
        }
    }
 
    #recent-posts>.recent-post-item>.recent-post-info>.content {
        opacity: 0;
        line-height: .8;
        transition: all .25s;
        color: #999;
        margin-bottom: 19px;
        text-overflow: ellipsis;
        order: 2;
        margin: 0;
 
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        /* autoprefixer: off */
        -webkit-line-clamp: 3;
        /* autoprefixer: on */
 
    }
 
    #recent-posts>.recent-post-item>.recent-post-info>.article-title:hover {
        color: #448aff;
    }
 
 
 
    //div本体阴影
    #recent-posts>.recent-post-item:hover {
        -webkit-box-shadow: @card-hover-box-shadow;
        box-shadow: @card-hover-box-shadow;
    }
 
    // 图片缩放
    #recent-posts>.recent-post-item:hover img.post_bg {
        -webkit-transform: scale(.9);
        -moz-transform: scale(.9);
        -o-transform: scale(.9);
        -ms-transform: scale(.9);
        transform: scale(.9);
        -webkit-box-shadow: @card-hover-box-shadow;
        box-shadow: @card-hover-box-shadow;
    }
 
    //内容缩放 内容显示
    #recent-posts>.recent-post-item:hover .recent-post-info .content {
        opacity: 1;
        line-height: 1.8;
        transition: all .25s;
    }
 
    #recent-posts>.recent-post-item .post_cover img.post_bg:hover {
        transform: scale(.9);
    }
 
    #recent-posts>.recent-post-item .post_cover img.post_bg:hover {
        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -o-transform: scale(1.1);
        -ms-transform: scale(1.1);
        transform: scale(1.1);
    }
 
    @media screen and (max-width:768px) {
        #recent-posts .recent-post-item .recent-post-info .article-title {
            font-size: 1.32em !important;
            margin-bottom: 0 !important;
        }
    }
 
    @media screen and (min-width: 769px) {
        #recent-posts>.recent-post-item>.recent-post-info>.content {
            opacity: 0;
            line-height: .8;
            transition: all .25s;
            color: #999;
            margin-bottom: 10px;
            display: -webkit-container;
            -webkit-line-clamp: 3;
            text-overflow: ellipsis;
            overflow: hidden;
        }
    }
 
    @media screen and (max-width: 768px) {
        #recent-posts>.recent-post-item>.recent-post-info {
            width: 69%;
            font-size: 12px !important;
            margin: .7rem 0;
        }
    }
 
    @media screen and (max-width: 768px) {
        #recent-posts>.recent-post-item>.recent-post-info>.content {
            opacity: 1;
            line-height: 1.7;
            color: #999;
            display: -webkit-container;
            -webkit-line-clamp: 3;
            text-overflow: ellipsis;
            overflow: hidden;
        }
    }
 
    @media screen and (min-width: 769px) {
        #recent-posts>.recent-post-item {
            height: 15em;
        }
    }
 
    @media screen and (max-width: 768px) {
        #recent-posts .recent-post-item {
            height: 12em !important;
            padding: 0;
            -webkit-flex-direction: row;
            -ms-flex-direction: row;
            flex-direction: row;
        }
    }
 
    @media only screen and (max-width: 768px) {
        @ahzoo-proportion: 0.65;
        @global-font-size: 12px;
    }
</style>