Giter Club home page Giter Club logo

semantic-reflex's Introduction

Semantic UI for Reflex-DOM Build Status

This library aims to provide a type safe Haskell reimplementation of Semantic UI components, to allow easy construction of nice looking web applications in GHCJS. It started as a fork of the reflex-dom-semui library.

There are no dependencies on upstream JavaScript (either Semantic-UI or jQuery).

Semantic-UI CSS support:

Version Supported Notes
2.2 Yes Zoom/Glow transitions will not work
2.3 Yes Changes

Building

The library uses the project implementation of reflex-platform.

$ nix-shell -A shells.ghc
[nix-shell]$ cabal new-configure --ghc
[nix-shell]$ cabal new-build

Examples

A compiled version of the code in the semantic-reflex-example folder is available online at https://tomsmalley.github.io/semantic-reflex/.

The example app can be run by GHC or GHCJS. For GHC it uses jsaddle-warp to run a warp server, this is useful for development:

$ ./repl

This script will reload when either the library or examples change. Provided everything compiles, you should be able to point your browser at localhost:3911 and see the examples.

For compiling for GHCJS just run make, and the resulting all.js will be copied into the docs folder.

semantic-reflex's People

Contributors

alexfmpe avatar ali-abrar avatar danbornside avatar ericson2314 avatar kmicklas avatar marcotoniut avatar mulderr avatar o1lo01ol1o avatar tomsmalley avatar tshinohara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

semantic-reflex's Issues

Obelisk 0.9.0.x support?

Hi, I just noticed that the bounds on reflex and reflex-dom-core will need to be bumped to support the most recent obelisk versions. As I'm in the dark about release schedules on those and other OS upstream libraries, when would be a good time to do that?

Remove Prerender constraint from UI type alias

A lot of the semantic-reflex widgets don't need the Prerender constraint, but they use the UI type alias so they get it. The result is that the user can't use these widgets in many places completely unnecessarily.

Fix haddock generation

I'm seeing build failures during the haddock phase. Heres' the error message:

haddock: internal error: internal: extractDecl
CallStack (from HasCallStack):
  error, called at utils/haddock/haddock-api/src/Haddock/Interface/Create.hs:1097:12 in main:Haddock.Interface.Create

Not very helpful I know, but that's all I've got for now. It seems to be crashing haddock in a way that doesn't display helpful error locations. :(

Tests fail consistently

I'm seeing consistent test failure but only on Mac. Are there ways we can make the tests more reliable?

Dropdown should allow "hidden search" capability

When a select element is focused, an option can be selected by typing in the text of the desired element. I've seen two behaviours: single letter search, where only the last entry is counted; and full entry search, where the entire entry is used and the user can even to make corrections.

This should share functionality with the true search enabled dropdowns, which have the latter behaviour but in a real text box, and the items are filtered.

Match the record style of upstream

Instead of _buttonColor we should probably have _button_color. Upstream would dictate _buttonConfig_color but I think that's too verbose.

Animation flicker with searchDropdown

Currently the dropdown menu of searchDropdown is opened when the field is focused. It should only be open when there are items in the dropdown menu: if there are none it should stay closed, preventing the triggering of an opening animation.

Version increment

I think the cabal version should be incremented when there is an API change, so I can specify a min_version in my app's cabal file. What do you think?

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.