Site updated: 2023-05-12 19:55:43
This commit is contained in:
parent
0e2858e5c1
commit
6af183ffd1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
14
atom.xml
14
atom.xml
|
@ -42,7 +42,7 @@
|
||||||
<link href="http://kiki.kim/2023/04/26/%E9%98%BF%E9%87%8COSS+Picgo+Typora%E6%90%AD%E5%BB%BA%E5%9B%BE%E5%BA%8A/"/>
|
<link href="http://kiki.kim/2023/04/26/%E9%98%BF%E9%87%8COSS+Picgo+Typora%E6%90%AD%E5%BB%BA%E5%9B%BE%E5%BA%8A/"/>
|
||||||
<id>http://kiki.kim/2023/04/26/%E9%98%BF%E9%87%8COSS+Picgo+Typora%E6%90%AD%E5%BB%BA%E5%9B%BE%E5%BA%8A/</id>
|
<id>http://kiki.kim/2023/04/26/%E9%98%BF%E9%87%8COSS+Picgo+Typora%E6%90%AD%E5%BB%BA%E5%9B%BE%E5%BA%8A/</id>
|
||||||
<published>2023-04-26T13:25:34.000Z</published>
|
<published>2023-04-26T13:25:34.000Z</published>
|
||||||
<updated>2023-04-05T17:01:01.000Z</updated>
|
<updated>2023-04-27T17:01:01.000Z</updated>
|
||||||
|
|
||||||
|
|
||||||
<summary type="html"><p>基于阿里OSS的图床搭建,以及picgo和Typora的设置</p></summary>
|
<summary type="html"><p>基于阿里OSS的图床搭建,以及picgo和Typora的设置</p></summary>
|
||||||
|
@ -96,18 +96,18 @@
|
||||||
|
|
||||||
<category term="esxi" scheme="http://kiki.kim/tags/esxi/"/>
|
<category term="esxi" scheme="http://kiki.kim/tags/esxi/"/>
|
||||||
|
|
||||||
<category term="软路由" scheme="http://kiki.kim/tags/%E8%BD%AF%E8%B7%AF%E7%94%B1/"/>
|
|
||||||
|
|
||||||
<category term="J425" scheme="http://kiki.kim/tags/J425/"/>
|
|
||||||
|
|
||||||
<category term="openwrt" scheme="http://kiki.kim/tags/openwrt/"/>
|
<category term="openwrt" scheme="http://kiki.kim/tags/openwrt/"/>
|
||||||
|
|
||||||
<category term="dsm" scheme="http://kiki.kim/tags/dsm/"/>
|
<category term="dsm" scheme="http://kiki.kim/tags/dsm/"/>
|
||||||
|
|
||||||
|
<category term="软路由" scheme="http://kiki.kim/tags/%E8%BD%AF%E8%B7%AF%E7%94%B1/"/>
|
||||||
|
|
||||||
<category term="homeassistant" scheme="http://kiki.kim/tags/homeassistant/"/>
|
<category term="homeassistant" scheme="http://kiki.kim/tags/homeassistant/"/>
|
||||||
|
|
||||||
<category term="群晖" scheme="http://kiki.kim/tags/%E7%BE%A4%E6%99%96/"/>
|
<category term="群晖" scheme="http://kiki.kim/tags/%E7%BE%A4%E6%99%96/"/>
|
||||||
|
|
||||||
|
<category term="J425" scheme="http://kiki.kim/tags/J425/"/>
|
||||||
|
|
||||||
</entry>
|
</entry>
|
||||||
|
|
||||||
<entry>
|
<entry>
|
||||||
|
@ -184,10 +184,10 @@
|
||||||
|
|
||||||
<category term="esxi" scheme="http://kiki.kim/tags/esxi/"/>
|
<category term="esxi" scheme="http://kiki.kim/tags/esxi/"/>
|
||||||
|
|
||||||
<category term="软路由" scheme="http://kiki.kim/tags/%E8%BD%AF%E8%B7%AF%E7%94%B1/"/>
|
|
||||||
|
|
||||||
<category term="openwrt" scheme="http://kiki.kim/tags/openwrt/"/>
|
<category term="openwrt" scheme="http://kiki.kim/tags/openwrt/"/>
|
||||||
|
|
||||||
|
<category term="软路由" scheme="http://kiki.kim/tags/%E8%BD%AF%E8%B7%AF%E7%94%B1/"/>
|
||||||
|
|
||||||
<category term="旁路由" scheme="http://kiki.kim/tags/%E6%97%81%E8%B7%AF%E7%94%B1/"/>
|
<category term="旁路由" scheme="http://kiki.kim/tags/%E6%97%81%E8%B7%AF%E7%94%B1/"/>
|
||||||
|
|
||||||
</entry>
|
</entry>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
/* build time:Fri May 12 2023 14:46:42 GMT+0800 (GMT+08:00)*/
|
/* build time:Fri May 12 2023 19:55:15 GMT+0800 (GMT+08:00)*/
|
||||||
.links-content{margin-top:1rem}.link-navigation::after{content:" ";display:block;clear:both}.card{width:130px;font-size:1rem;padding:0;border-radius:4px;transition-duration:.15s;margin-bottom:1rem;display:block;float:left;box-shadow:0 2px 6px 0 rgba(0,0,0,.12);background:#f5f5f5}.card{margin-left:16px}@media(max-width:567px){.card{margin-left:16px;width:calc((100% - 16px)/ 2)}.card:nth-child(2n+1){margin-left:0}.card:not(:nth-child(2n+1)){margin-left:16px}}@media(min-width:567px){.card{margin-left:16px;width:calc((100% - 32px)/ 3)}.card:nth-child(3n+1){margin-left:0}.card:not(:nth-child(3n+1)){margin-left:16px}}@media(min-width:768px){.card{margin-left:16px;width:calc((100% - 48px)/ 4)}.card:nth-child(4n+1){margin-left:0}.card:not(:nth-child(4n+1)){margin-left:16px}}@media(min-width:1200px){.card{margin-left:16px;width:calc((100% - 64px)/ 5)}.card:nth-child(5n+1){margin-left:0}.card:not(:nth-child(5n+1)){margin-left:16px}}.card:hover{transform:scale(1.1);box-shadow:0 2px 6px 0 rgba(0,0,0,.12),0 0 6px 0 rgba(0,0,0,.04)}.card .thumb{width:100%;height:0;padding-bottom:100%;background-size:100% 100%!important}.posts-expand .post-body img{margin:0;padding:0;border:0}.card .card-header{display:block;text-align:center;padding:1rem .25rem;font-weight:500;color:#333;white-space:normal}.card .card-header a{font-style:normal;color:#2bbc8a;font-weight:700;text-decoration:none;border:0}.card .card-header a:hover{color:#d480aa;text-decoration:none;border:0}
|
.links-content{margin-top:1rem}.link-navigation::after{content:" ";display:block;clear:both}.card{width:130px;font-size:1rem;padding:0;border-radius:4px;transition-duration:.15s;margin-bottom:1rem;display:block;float:left;box-shadow:0 2px 6px 0 rgba(0,0,0,.12);background:#f5f5f5}.card{margin-left:16px}@media(max-width:567px){.card{margin-left:16px;width:calc((100% - 16px)/ 2)}.card:nth-child(2n+1){margin-left:0}.card:not(:nth-child(2n+1)){margin-left:16px}}@media(min-width:567px){.card{margin-left:16px;width:calc((100% - 32px)/ 3)}.card:nth-child(3n+1){margin-left:0}.card:not(:nth-child(3n+1)){margin-left:16px}}@media(min-width:768px){.card{margin-left:16px;width:calc((100% - 48px)/ 4)}.card:nth-child(4n+1){margin-left:0}.card:not(:nth-child(4n+1)){margin-left:16px}}@media(min-width:1200px){.card{margin-left:16px;width:calc((100% - 64px)/ 5)}.card:nth-child(5n+1){margin-left:0}.card:not(:nth-child(5n+1)){margin-left:16px}}.card:hover{transform:scale(1.1);box-shadow:0 2px 6px 0 rgba(0,0,0,.12),0 0 6px 0 rgba(0,0,0,.04)}.card .thumb{width:100%;height:0;padding-bottom:100%;background-size:100% 100%!important}.posts-expand .post-body img{margin:0;padding:0;border:0}.card .card-header{display:block;text-align:center;padding:1rem .25rem;font-weight:500;color:#333;white-space:normal}.card .card-header a{font-style:normal;color:#2bbc8a;font-weight:700;text-decoration:none;border:0}.card .card-header a:hover{color:#d480aa;text-decoration:none;border:0}
|
||||||
/* rebuild by neat */
|
/* rebuild by neat */
|
File diff suppressed because one or more lines are too long
|
@ -1,3 +1,3 @@
|
||||||
/* build time:Fri May 12 2023 14:46:58 GMT+0800 (GMT+08:00)*/
|
/* build time:Fri May 12 2023 19:55:33 GMT+0800 (GMT+08:00)*/
|
||||||
body{margin-top:2rem}.use-motion .collection-header,.use-motion .comments,.use-motion .menu-item,.use-motion .pagination,.use-motion .post-block,.use-motion .post-body,.use-motion .post-header,.use-motion .sidebar,.use-motion .sidebar-inner{visibility:visible}.use-motion .column,.use-motion .footer,.use-motion .site-brand-container .toggle{opacity:initial}.use-motion .custom-logo-image,.use-motion .site-subtitle,.use-motion .site-title{opacity:initial;top:initial}.use-motion .logo-line{transform:scaleX(1)}.search-pop-overlay,.sidebar-nav{display:none}.sidebar-panel{display:block}.noscript-warning{background-color:#f55;color:#fff;font-family:sans-serif;font-size:1rem;font-weight:700;left:0;position:fixed;text-align:center;top:0;width:100%;z-index:50}
|
body{margin-top:2rem}.use-motion .collection-header,.use-motion .comments,.use-motion .menu-item,.use-motion .pagination,.use-motion .post-block,.use-motion .post-body,.use-motion .post-header,.use-motion .sidebar,.use-motion .sidebar-inner{visibility:visible}.use-motion .column,.use-motion .footer,.use-motion .site-brand-container .toggle{opacity:initial}.use-motion .custom-logo-image,.use-motion .site-subtitle,.use-motion .site-title{opacity:initial;top:initial}.use-motion .logo-line{transform:scaleX(1)}.search-pop-overlay,.sidebar-nav{display:none}.sidebar-panel{display:block}.noscript-warning{background-color:#f55;color:#fff;font-family:sans-serif;font-size:1rem;font-weight:700;left:0;position:fixed;text-align:center;top:0;width:100%;z-index:50}
|
||||||
/* rebuild by neat */
|
/* rebuild by neat */
|
|
@ -1,3 +1,3 @@
|
||||||
/* build time:Fri May 12 2023 14:46:42 GMT+0800 (GMT+08:00)*/
|
/* build time:Fri May 12 2023 19:55:15 GMT+0800 (GMT+08:00)*/
|
||||||
#post a.link-card{text-decoration:none;margin:.2rem auto;background:var(--tab-botton-bg);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;cursor:pointer;text-align:left;font-size:.575rem;min-width:200px;max-width:361px;color:var(--tab-botton-color);border-radius:8px}@media screen and (max-width:425px){#post a.link-card{max-width:100%}}@media screen and (max-width:375px){#post a.link-card{width:100%}}#post a.link-card:hover{box-shadow:0 4px 8px 0 rgba(0,0,0,.1)}#post a.link-card div.left,#post a.link-card div.right{pointer-events:none}#post a.link-card div.left{width:48px;height:48px;margin:12px;overflow:hidden;-ms-flex-negative:0;flex-shrink:0;position:relative}#post a.link-card div.left i{font-size:32px;line-height:48px;margin-left:4px}#post a.link-card div.left img{display:block;position:absolute;border-radius:8px/4;top:50%;left:50%;transform:translate(-50%,-50%)}#post a.link-card div.right{overflow:hidden;margin-right:12px}#post a.link-card p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#post a.link-card p.text{font-weight:700}#post a.link-card p.url{-ms-flex-negative:0;flex-shrink:0;color:var(--search-input-color);font-size:.7125rem}p.p.h2,span.p.h2{font-size:1.375rem;color:var(--font-color);padding-top:.8rem;border-bottom:1px solid var(--hr-border)}div.timenode{position:relative}div.timenode:after,div.timenode:before{content:"";z-index:1;position:absolute;background:rgba(68,215,182,.5);width:2px;left:7px}div.timenode:before{top:0;height:6px}div.timenode:after{top:26px;height:calc(100% - 26px)}div.timenode:last-child:after{height:calc(100% - 26px - 16px);border-bottom-left-radius:2px;border-bottom-right-radius:2px}div.timenode .meta{position:relative;color:var(--tab-botton-color);font-size:.375rem;line-height:32px;height:32px;left:27px}div.timenode .meta:after,div.timenode .meta:before{content:"";position:absolute;top:8px;z-index:2;left:-27px}div.timenode .meta:before{background:rgba(68,215,182,.5);width:16px;height:16px;border-radius:8px}div.timenode .meta:after{background:#44d7b6;margin-left:2px;margin-top:2px;width:12px;height:12px;border-radius:6px;transform:scale(.5);transition:all .28s ease;-moz-transition:all .28s ease;-webkit-transition:all .28s ease;-o-transition:all .28s ease}div.timenode .meta p{font-weight:700;margin:0 0 0 24px}div.timenode .body{margin:4px 0 16px 24px;padding:16px;border-radius:8px;background:var(--blockquote-bg)}div.timenode .body p:first-child{margin-top:0}div.timenode .body p:last-child{margin-bottom:0}div.timenode:hover .meta{color:var(--text-highlight-color)}div.timenode:hover .meta:before{background:rgba(255,87,34,.5)}div.timenode:hover .meta:after{background:#ff5722;transform:scale(1)}
|
#post a.link-card{text-decoration:none;margin:.2rem auto;background:var(--tab-botton-bg);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;cursor:pointer;text-align:left;font-size:.575rem;min-width:200px;max-width:361px;color:var(--tab-botton-color);border-radius:8px}@media screen and (max-width:425px){#post a.link-card{max-width:100%}}@media screen and (max-width:375px){#post a.link-card{width:100%}}#post a.link-card:hover{box-shadow:0 4px 8px 0 rgba(0,0,0,.1)}#post a.link-card div.left,#post a.link-card div.right{pointer-events:none}#post a.link-card div.left{width:48px;height:48px;margin:12px;overflow:hidden;-ms-flex-negative:0;flex-shrink:0;position:relative}#post a.link-card div.left i{font-size:32px;line-height:48px;margin-left:4px}#post a.link-card div.left img{display:block;position:absolute;border-radius:8px/4;top:50%;left:50%;transform:translate(-50%,-50%)}#post a.link-card div.right{overflow:hidden;margin-right:12px}#post a.link-card p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#post a.link-card p.text{font-weight:700}#post a.link-card p.url{-ms-flex-negative:0;flex-shrink:0;color:var(--search-input-color);font-size:.7125rem}p.p.h2,span.p.h2{font-size:1.375rem;color:var(--font-color);padding-top:.8rem;border-bottom:1px solid var(--hr-border)}div.timenode{position:relative}div.timenode:after,div.timenode:before{content:"";z-index:1;position:absolute;background:rgba(68,215,182,.5);width:2px;left:7px}div.timenode:before{top:0;height:6px}div.timenode:after{top:26px;height:calc(100% - 26px)}div.timenode:last-child:after{height:calc(100% - 26px - 16px);border-bottom-left-radius:2px;border-bottom-right-radius:2px}div.timenode .meta{position:relative;color:var(--tab-botton-color);font-size:.375rem;line-height:32px;height:32px;left:27px}div.timenode .meta:after,div.timenode .meta:before{content:"";position:absolute;top:8px;z-index:2;left:-27px}div.timenode .meta:before{background:rgba(68,215,182,.5);width:16px;height:16px;border-radius:8px}div.timenode .meta:after{background:#44d7b6;margin-left:2px;margin-top:2px;width:12px;height:12px;border-radius:6px;transform:scale(.5);transition:all .28s ease;-moz-transition:all .28s ease;-webkit-transition:all .28s ease;-o-transition:all .28s ease}div.timenode .meta p{font-weight:700;margin:0 0 0 24px}div.timenode .body{margin:4px 0 16px 24px;padding:16px;border-radius:8px;background:var(--blockquote-bg)}div.timenode .body p:first-child{margin-top:0}div.timenode .body p:last-child{margin-bottom:0}div.timenode:hover .meta{color:var(--text-highlight-color)}div.timenode:hover .meta:before{background:rgba(255,87,34,.5)}div.timenode:hover .meta:after{background:#ff5722;transform:scale(1)}
|
||||||
/* rebuild by neat */
|
/* rebuild by neat */
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
12
search.xml
12
search.xml
|
@ -316,12 +316,12 @@
|
||||||
]]></content>
|
]]></content>
|
||||||
<tags>
|
<tags>
|
||||||
<tag>esxi</tag>
|
<tag>esxi</tag>
|
||||||
<tag>软路由</tag>
|
|
||||||
<tag>J425</tag>
|
|
||||||
<tag>openwrt</tag>
|
<tag>openwrt</tag>
|
||||||
<tag>dsm</tag>
|
<tag>dsm</tag>
|
||||||
|
<tag>软路由</tag>
|
||||||
<tag>homeassistant</tag>
|
<tag>homeassistant</tag>
|
||||||
<tag>群晖</tag>
|
<tag>群晖</tag>
|
||||||
|
<tag>J425</tag>
|
||||||
</tags>
|
</tags>
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
|
@ -905,8 +905,8 @@
|
||||||
]]></content>
|
]]></content>
|
||||||
<tags>
|
<tags>
|
||||||
<tag>esxi</tag>
|
<tag>esxi</tag>
|
||||||
<tag>软路由</tag>
|
|
||||||
<tag>openwrt</tag>
|
<tag>openwrt</tag>
|
||||||
|
<tag>软路由</tag>
|
||||||
<tag>旁路由</tag>
|
<tag>旁路由</tag>
|
||||||
</tags>
|
</tags>
|
||||||
</entry>
|
</entry>
|
||||||
|
@ -1704,7 +1704,11 @@ A:</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>在<code>step</code>中引用</p>
|
<p>在<code>step</code>中引用</p>
|
||||||
<figure class="highlight python"><table><tr><td class="code"><pre><span class="line"> <span class="keyword">from</span> behave_db.steps <span class="keyword">import</span> *</span><br><span class="line"> <span class="keyword">def</span> <span class="title function_">before_all</span>(<span class="params">context</span>):</span><br><span class="line"> <span class="keyword">import</span> behave_db</span><br><span class="line"> config_datas = {}</span><br><span class="line"> <span class="comment">#jdbc-drivers in data_dir</span></span><br><span class="line"> data_dir = os.path.join(</span><br><span class="line"> os.path.dirname(behave_db.__file__), <span class="string">"../../tests/data"</span></span><br><span class="line"> )</span><br><span class="line"> <span class="comment">#set csv-jdbc-config</span></span><br><span class="line"> config_datas[<span class="string">'driver_name'</span>] = <span class="string">"org.relique.jdbc.csv.CsvDriver"</span></span><br><span class="line"> config_datas[<span class="string">'driver_jar_path'</span>] = os.path.join(data_dir,<span class="string">"drivers"</span>,<span class="string">"csvjdbc-1.0-37.jar"</span>)</span><br><span class="line"> config_datas[<span class="string">'csv_jdbc_url'</span>] = <span class="string">"jdbc:relique:csv:"</span> + data_dir</span><br><span class="line"> config_datas[<span class="string">'db_user'</span>] = <span class="literal">None</span></span><br><span class="line"> config_datas[<span class="string">'db_password'</span>] = <span class="literal">None</span></span><br><span class="line"> <span class="comment">#copy var to behave_db</span></span><br><span class="line"> benv.before_all(context)</span><br><span class="line"> context.db_config = config_datas</span><br><span class="line"> </span><br><span class="line"> </span><br><span class="line"> <span class="keyword">def</span> <span class="title function_">after_scenario</span>(<span class="params">context, scenario</span>):</span><br><span class="line"> <span class="comment"># auto close connect</span></span><br><span class="line"> context.execute_steps(<span class="string">u"""</span></span><br><span class="line"><span class="string"> When I close the connect</span></span><br><span class="line"><span class="string"> """</span>)</span><br><span class="line"></span><br><span class="line"><span class="number">4.</span> 查看所有的可用方法</span><br><span class="line"></span><br><span class="line"> ```python</span><br><span class="line"> behave --steps >steps.log</span><br></pre></td></tr></table></figure>
|
<figure class="highlight python"><table><tr><td class="code"><pre><span class="line"><span class="keyword">from</span> behave_db.steps <span class="keyword">import</span> *</span><br><span class="line"><span class="keyword">def</span> <span class="title function_">before_all</span>(<span class="params">context</span>):</span><br><span class="line"> <span class="keyword">import</span> behave_db</span><br><span class="line"> config_datas = {}</span><br><span class="line"> <span class="comment">#jdbc-drivers in data_dir</span></span><br><span class="line"> data_dir = os.path.join(</span><br><span class="line"> os.path.dirname(behave_db.__file__), <span class="string">"../../tests/data"</span></span><br><span class="line"> )</span><br><span class="line"> <span class="comment">#set csv-jdbc-config</span></span><br><span class="line"> config_datas[<span class="string">'driver_name'</span>] = <span class="string">"org.relique.jdbc.csv.CsvDriver"</span></span><br><span class="line"> config_datas[<span class="string">'driver_jar_path'</span>] = os.path.join(data_dir,<span class="string">"drivers"</span>,<span class="string">"csvjdbc-1.0-37.jar"</span>)</span><br><span class="line"> config_datas[<span class="string">'csv_jdbc_url'</span>] = <span class="string">"jdbc:relique:csv:"</span> + data_dir</span><br><span class="line"> config_datas[<span class="string">'db_user'</span>] = <span class="literal">None</span></span><br><span class="line"> config_datas[<span class="string">'db_password'</span>] = <span class="literal">None</span></span><br><span class="line"> <span class="comment">#copy var to behave_db</span></span><br><span class="line"> benv.before_all(context)</span><br><span class="line"> context.db_config = config_datas</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">def</span> <span class="title function_">after_scenario</span>(<span class="params">context, scenario</span>):</span><br><span class="line"> <span class="comment"># auto close connect</span></span><br><span class="line"> context.execute_steps(<span class="string">u"""</span></span><br><span class="line"><span class="string"> When I close the connect</span></span><br><span class="line"><span class="string"> """</span>)</span><br></pre></td></tr></table></figure>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<p>查看所有的可用方法</p>
|
||||||
|
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">behave --steps >steps.log</span><br></pre></td></tr></table></figure>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
]]></content>
|
]]></content>
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue