Giter Club home page Giter Club logo

sscom's Introduction

Screenshot Components

> Generate screenshot of react component automatically.

alt tag

notice:

this version still in beta, I wrote this tool base on the structure like this: ``` ├── /app/ │ ├── /components/ # Generic React Components (generally Dumb components) │ ├── /containers/ # Components that provide context (e.g. Redux Provider) │ ├── /routes/ # Application route definitions │ ├── ... # other folders|files ``` you can found more structure details on: https://github.com/jackyon/react-redux-boilerplate

Packages Install

``` $ npm install phantomjs -g $ npm install casperjs -g $ npm install sscom ```

Usage

``` Usage: sscom -h, --help More usage and help infos -v, --version Version number ```

Options

``` - 截图URL: 完整链接, 必填, 如 "http://192.168.1.230:8080/" - 项目路径: 完整路径, 选填, 默认为当前目录, 自定义目录需填写完整路径,如"/Users/jackyon/Desktop/react/" - 组件路径: 相对路径, 选填, 默认为 "app/components/" - 容器路径: 相对路径, 选填, 默认为 "app/containers/" - 路由路径: 相对路径, 选填, 默认为 "app/routes/" - 是否需要登录: 选填 Y/N, 默认为 N

如果登录为是:

  • 登录页面Url: 必填
  • 账号: 必填
  • 密码: 必填
  • 账号Input的name值: 选填, 默认为 username
  • 密码Input的name值: 选填, 默认为password
  • 提交按钮 className 或 id: 必填, 如 ".submit_button"

回车Enter键 或 "N"键 跳过选填项

sscom's People

Contributors

jackyon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.