StorYBook

Hacker News 简讯 2020-08-12

我与影子孤独终老i 提交于 2020-08-13 15:43:49
最后更新时间: 2020-08-12 23:01 Joan Feynman has died - (aps.org) 琼·费曼死了 得分:402 | 评论:48 Mozilla has laid off their dev tools people and the entire MDN team - (twitter.com) Mozilla已经解雇了他们的开发工具人员和整个MDN团队 得分:111 | 评论:26 Timescale Cloud: Multi-cloud, fully-managed time-series in AWS, Azure, and GCP - (timescale.com) 时间尺度云:多云、AWS、Azure和GCP中完全管理的时间序列 得分:8 | 评论:0 Show HN: dstack – an open-source tool to build data applications easily Show HN:dstack–一个可以轻松构建数据应用程序的开源工具 得分:64 | 评论:13 AWS Tagging Best Practices: An Introduction to AWS Tagging Strategies - (cloudforecast.io) AWS标记最佳实践:AWS标记策略简介 得分:5 | 评论:0

第一部分软件测试综述——软件测试背景【软件测试】(美)Ron Patton中文电子版

大兔子大兔子 提交于 2020-08-13 06:36:54
截取自:第一部分软件测试综述——软件测试背景【软件测试】(美)Ron Patton中文电子版(有需要的可以关注我) 第一部分软件测试综述 对手的程序死掉叫崩溃。自己的程序死掉叫“身体不良反应(idiosyncrasy)"。 通常,崩溃之后会显示“ID02”这样的信息。“ID”是idiosyncrasy 的缩写,后 面的数字表示产品应该测试多少个月。 Guy Kawasaki, “Macintosh之路”我喜欢最后期限。我特别喜欢当它 逝去时留下的尖叫声。 一Douglas Adams,“星河之旅搭乘指南”作者 第1章软件测试背景 1947年,计算机还是有几个房间大的庞大机器,操纵大大小小的机械电路 和发光管子。当时的艺术作品是Mark I1, 一个由哈佛大学制造的庞然大物。技 术人员正在进行整机试运行,突然之间,它停止了工作。他们爬上去找原因试图 修好它,努力把这台巨大的计算机腹内的一组继电器接通。 继电器接通后,它显 然重新回到系统中,有声有色、充满活力。 计算机软件缺陷诞生了。对,它被消灭了,而我们从此认识了它。 欢迎阅读软件测试的第1章。本章讲述软件缺陷和软件测试的历史。 本章的重点包括 ●软件缺陷如何 影响我们的生活 ●软件缺陷是什么, 为什么会出现 ●软件测试者是谁,职责是什么 1.1 臭名昭著的软件错误案例研究 人们很容易想当然地接受软件

Storybook add on for setting server urls

▼魔方 西西 提交于 2020-08-11 03:58:39
问题 We are using storybook to build ui components. Ui components are related to some data, in this case REST-Server. In actions I can add custom datas, but I would like to load data by axios. I have implemented small API-library for that. Question: Is it possible to set global parameters for storybook from storybook UI? Like server url and auth token? 回答1: It's now possible to use an addon: https://github.com/ArrayKnight/storybook-addon-headless Storybook Addon Headless connects Restful and/or

Storybook add on for setting server urls

元气小坏坏 提交于 2020-08-11 03:58:18
问题 We are using storybook to build ui components. Ui components are related to some data, in this case REST-Server. In actions I can add custom datas, but I would like to load data by axios. I have implemented small API-library for that. Question: Is it possible to set global parameters for storybook from storybook UI? Like server url and auth token? 回答1: It's now possible to use an addon: https://github.com/ArrayKnight/storybook-addon-headless Storybook Addon Headless connects Restful and/or

第一部分软件测试综述——软件测试背景【软件测试】(美)Ron Patton中文电子版

柔情痞子 提交于 2020-08-10 21:24:24
截取自:第一部分软件测试综述——软件测试背景【软件测试】(美)Ron Patton中文电子版(有需要的可以关注我) 第一部分软件测试综述 对手的程序死掉叫崩溃。自己的程序死掉叫“身体不良反应(idiosyncrasy)"。 通常,崩溃之后会显示“ID02”这样的信息。“ID”是idiosyncrasy 的缩写,后 面的数字表示产品应该测试多少个月。 Guy Kawasaki, “Macintosh之路”我喜欢最后期限。我特别喜欢当它 逝去时留下的尖叫声。 一Douglas Adams,“星河之旅搭乘指南”作者 第1章软件测试背景 1947年,计算机还是有几个房间大的庞大机器,操纵大大小小的机械电路 和发光管子。当时的艺术作品是Mark I1, 一个由哈佛大学制造的庞然大物。技 术人员正在进行整机试运行,突然之间,它停止了工作。他们爬上去找原因试图 修好它,努力把这台巨大的计算机腹内的一组继电器接通。 继电器接通后,它显 然重新回到系统中,有声有色、充满活力。 计算机软件缺陷诞生了。对,它被消灭了,而我们从此认识了它。 欢迎阅读软件测试的第1章。本章讲述软件缺陷和软件测试的历史。 本章的重点包括 ●软件缺陷如何 影响我们的生活 ●软件缺陷是什么, 为什么会出现 ●软件测试者是谁,职责是什么 1.1 臭名昭著的软件错误案例研究 人们很容易想当然地接受软件

How do I write the type definition for a module with a default export

╄→гoц情女王★ 提交于 2020-08-08 05:58:28
问题 I want to write a type definition for storybook-router. It needn't be that accurate, since this is a minor development tool (i.e. any s are acceptable), but I can't even seem to get that to work. What I want to represent is: import StoryRouter from 'storybook-router'; ...in which StoryRouter is a function that matches the interface StoryDecorator from @types/storybook__react . I tried the following definition file: import { StoryDecorator } from '@storybook/react'; declare type StoryRouter =

Storybook doesn't understand import on demand for antd components

浪尽此生 提交于 2020-06-27 07:40:44
问题 I have followed instructions here to get antd working fine with CRA . But while using it from storybook , I was getting an error as: Build fails against a mixin with message Inline JavaScript is not enabled. Is it set in your options? I had fixed that following suggestions on an issue I raised here. Now, storybook understands antd but not importing components on demand . Is babel has to be configured separately for storybook? 1 . On using import { Button } from "antd"; I get this: 2 . On

React Storybook SVG Failed to execute 'createElement' on 'Document'

无人久伴 提交于 2020-06-25 09:23:40
问题 I'm trying to add Storybook to an existing React app but getting errors with imported svg files. The svg is imported and used like: import Border from './images/border.inline.svg' ... <Border className="card__border" /> This works when the app is run and built, but I get an error in Storybook. How come? Failed to execute 'createElement' on 'Document': The tag name provided ('static/media/border.inline.258eb86a.svg') is not a valid name. Error: Failed to execute 'createElement' on 'Document':

How to inject a window variable in a storybook?

巧了我就是萌 提交于 2020-05-14 17:52:20
问题 I want to add a React component (called ApplicationForm ) to a storybook. The story book is written this way: import { configureStore } from '../store'; const store = configureStore(); storiesOf('application from', module) .addDecorator(story => <Provider store={store}>{story()} </Provider>) .add('all', () => ( <ApplicationForm /> )); The ApplicationForm is created with reduxForm. That's why I need to provide a store in the addDecorator function. Unfortunately in the configureStore function,

How to inject a window variable in a storybook?

南笙酒味 提交于 2020-05-14 17:50:04
问题 I want to add a React component (called ApplicationForm ) to a storybook. The story book is written this way: import { configureStore } from '../store'; const store = configureStore(); storiesOf('application from', module) .addDecorator(story => <Provider store={store}>{story()} </Provider>) .add('all', () => ( <ApplicationForm /> )); The ApplicationForm is created with reduxForm. That's why I need to provide a store in the addDecorator function. Unfortunately in the configureStore function,