WdBly Blog

懂事、有趣、保持理智

WdBly Blog

懂事、有趣、保持理智

周维 | Jim

603927378@qq.com

工作日志 2018 11-12

工作日志,工作笔记

image.png

2018/11/06

之前这篇文章在数据库中搞丢了 只能重新写了

//https 密钥
Congratulations! You have successfully enabled https://api.wddsss.com,
https://demo1.wddsss.com, and https://www.wddsss.com

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=api.wddsss.com
https://www.ssllabs.com/ssltest/analyze.html?d=demo1.wddsss.com
https://www.ssllabs.com/ssltest/analyze.html?d=www.wddsss.com


IMPORTANT NOTES:

  • Congratulations! Your certificate and chain have been saved at:
    /etc/letsencrypt/live/api.wddsss.com/fullchain.pem
    Your key file has been saved at:
    /etc/letsencrypt/live/api.wddsss.com/privkey.pem
    Your cert will expire on 2019-02-04. To obtain a new or tweaked
    version of this certificate in the future, simply run certbot again
    with the “certonly” option. To non-interactively renew all of
    your certificates, run “certbot renew”

  • Your account credentials have been saved in your Certbot
    configuration directory at /etc/letsencrypt. You should make a
    secure backup of this folder now. This configuration directory will
    also contain certificates and private keys obtained by Certbot so
    making regular backups of this folder is ideal.

  • If you like Certbot, please consider supporting our work by:

    Donating to ISRG / Let’s Encrypt: https://letsencrypt.org/donate
    Donating to EFF: https://eff.org/donate-le

//测试证书是否到期 是则自动更新 否则输出到日志,用于自动更新

/www/server/panel/certbot-auto renew >> /www/server/panel/logs/certbot.log

2018/11/09

将前端布局文章发表到segmentFault

2018/11/12

寻找一本电子书籍认真研读

webpack output 中的chunkFilename,配置的是按需加载的路由对应的chunk打包后的文件命名
chunkFilename: 'client/[name].[chunkHash:6].chunk.js',

2018/11/13

webpack4 中可以使用mode:production来压缩代码,不用再使用 UglifyJsPlugin插件。

image.png

2018/11/14

image.png

发布一个npm包,包的构建
image.png

webpack结合pwa
image.png

2018/11/20

//检测是否支持video标签
!!document.createElement('video').canPlayType;

//禁止ios自带播放器接管h5video播放器
<preference name="AllowInlineMediaPlayback" value="true" />

//对video设置background为一张图来代替video自带的poster
//主要时因为poster无法设置背景图的size 会导致背景图不能铺满

2018/11/21

//select 文本居右 select { direction: rtl; } select option { direction: ltr; }

2018/11/28

select 多选 选项自动排序问题