Giter Club home page Giter Club logo

se-mockup's Introduction

Haywire for Elm Style-Elements

(working title)

Build Status

Create UI wireframes for elm apps using elements from the excellent mdgriffith/style-elements library. See your layouts rendered in real-time exactly as they would appear in your app.

This is because Haywire renders the layout using the actual elements and attributes you pick in your design. The goal is to decrease the cycle time in figuring out the combination of elements you need to get the layout you expect, by elminating the compile/reload overhead.

Try it!

Disclaimer

This is in early-alpha stage and likely contains many bugssurprises. Your work may be lost or corrupted at any time.

More documentation to come.

se-mockup's People

Contributors

colinhunt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

se-mockup's Issues

Improve styling

  • code view to use monospace text
  • monospace text for names of things

Reorder children

By click and drag a new menu system with arrows in the info view, be able to reorder children.

Delete elements

Acceptance Criteria

- [ ] There is a button in the sidebar to delete the selected element
- [ ] There is a button to delete the entire subtree rooted at the selected element

  • There are buttons next to children to delete them / delete their subtrees
  • If not deleting subtree and an element has children:
    • one child:
      Should be adopted by the parent
    • list of children:
      Should be inserted into parent's list if parent has a list, else the first child in the list should be adopted
    • mixed:
      If an element has a mix of single and lists of children, the single child should go to the parent, deleting the rest.
  • If deleting an element would leave a single-child parent childless, the parent should adopt an empty element.

Move subtrees to be children of other elements

Would add root of subtree as another child of elements with multiple children, else it would necessarily replace the existing child of single-child elements.
Use drag-and-drop in the tree view?

Save in progress to storage

  • Elm side should use generic key/value storage interface I developed as part of the bucketlist app.

  • JS side can just use localstorage for now with ability to swap in chrome sync when packaging as chrome extension.

  • create encoders

  • create decoders

  • add unit tests

  • save layout as json to localStorage on any modification to layout

  • load layout from localStorage on first load

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.