[前端] 每日时报-2019.06.26 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wubaiqing
V2EX    分享发现

[前端] 每日时报-2019.06.26

  •  
  •   wubaiqing 2019-06-26 15:50:07 +08:00 1482 次点击
    这是一个创建于 2330 天前的主题,其中的信息可能已经有所发展或是发生改变。

    [前端] 每日时报-2019.06.26

    [新闻] 24 号分享的 vue-function-api 已被 VueJS 官方收录了,这篇文章也对 RFC 做了一次汇总:https://dev.to/stefandorresteijn/vuejs-is-dead-long-live-vuejs-1g7f

    [文章] 使用不同的前端框架( React、Vue ) 搭配 Single-SPA 构建微前端服务:https://dev.to/dabit3/building-micro-frontends-with-react-vue-and-single-spa-52op

    [类库] antd-doddle 是源于日常中后台系统开发不断的积累,如其名一样,让 AntD 使用更加得心应手,实现业务的快速迭代。其中包含一部分的对 Antd 组件深度封装,一些高频次自定义业务组件,和一些常用方法库的封装,支持按需打包:https://github.com/closertb/antd-doddle

    [类库] ts-toolbelt 是 TypeScript 类型集合,使 TypeScript 更加安全,它的目的是提高类型的正确性,同时将一组新的特征集添加到 TypeScript 中:https://github.com/pirix-gh/ts-toolbelt

    [资源] Docker 镜像,包含( Docker image for Ubuntu Latest + Node Latest and Yarn Latest ):https://github.com/jansanchez/ubuntu-node-yarn

    配图 - ts-toolbelt

    import {A, B, C, F, I, N, O, S, T, U} from 'ts-toolbelt' // Wonder what these letters mean? Check the docs below // Merge two `object` together type merge = O.Merge<{name: string}, {age?: number}> 

    示例 - 使用不同的前端框架( React、Vue ) 搭配 Single-SPA 构建微前端服务

    # renders both apps http://localhost:8080/ # renders only react http://localhost:8080/react # renders only vue http://localhost:8080/vue 

    示例 - vue-function-api

    <template> <div> <span>count is {{ count }}</span> <span>plusOne is {{ plusOne }}</span> <button @click="increment">count++</button> </div> </template> <script> import { value, computed, watch, onMounted } from 'vue' export default { setup() { // reactive state const count = value(0) // computed state const plusOne= computed(() => count.value + 1) // method const increment = () => { count.value++ } // watch watch(() => count.value * 2, val => { console.log(`count * 2 is ${val}`) }) // lifecycle onMounted(() => { console.log(`mounted`) }) // expose bindings on render context return { count, plusOne, increment } } } </script> 

    示例 - Docker image for Ubuntu Latest + Node Latest and Yarn Latest

    FROM ubuntu:latest MAINTAINER Jan Sanchez <[email protected]> # Setting Enviroment variables ENV NODE_VERSION 6.9.5 ENV NODE_ARCH x64 ENV TMP /tmp ENV NODE_FILEPATH node-v$NODE_VERSION-linux-$NODE_ARCH # Udpating and Installing dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ curl \ xz-utils \ openssl \ && rm -rf /var/lib/apt/lists/* # Install Nodejs RUN curl -SL https://nodejs.org/dist/v$NODE_VERSION/$NODE_FILEPATH.tar.xz -o $TMP/$NODE_FILEPATH.tar.xz \ && cd $TMP/ && tar -xJf $NODE_FILEPATH.tar.xz && rm $NODE_FILEPATH.tar.xz \ && mv $NODE_FILEPATH /opt/node \ && ln -sf /opt/node/bin/node /usr/bin/node \ && ln -sf /opt/node/bin/npm /usr/bin/npm # Install the latest version of Yarn RUN curl -SL https://yarnpkg.com/latest.tar.gz -o $TMP/latest.tar.gz \ && cd $TMP/ && tar -zxf latest.tar.gz && rm latest.tar.gz \ && mv $TMP/dist /opt/yarn \ && ln -sf /opt/yarn/bin/yarn /usr/bin/yarn 

    今日图 - 热心人

    GitHub: https://github.com/wubaiqing/zaobao 查看更多: https://wubaiqing.github.io/zaobao/2019/06/26.html#_2019-06-26

    1 条回复    2019-06-26 20:22:34 +08:00
    dongxiao
        1
    dongxiao  
       2019-06-26 20:22:34 +08:00
    看图看笑了:)
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     3437 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is poered by solitude
    VERSION: 3.9.8.5 26ms UTC 04:47 PVG 12:47 LAX 20:47 JFK 23:47
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86