Giter VIP home page Giter VIP logo

ika's People

Contributors

dependabot[bot] avatar zikani03 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ika's Issues

Better docs site

The site up at labs.zikani.me/ika is okay but it's just a demo. Would be good to have a better documentation site with more information about the library, it's motivations, examples and some few notes about the faker library integration.

Make ika component draggable when it is loaded as popup

When ika component is loaded as a popup, i.e. user did not specify an #ika-apa element, we should make it draggable so that it can be moved across the screen to a convenient position for the user since right now it just pops up at the bottom right corner.

Support configuring multiple forms using one config object

I as a Developer want to be able to use ika for multiple forms, but having to create a window.ikaFakerOptions for every separate page is going to get annoying. It would be nice to be able to define the configuration for ika in one place and have it loaded on multiple pages.

I am thinking something like

        window.ikaForms = {
            "*": {
                "firstName": "faker.name.firstName",
                "lastName": "faker.name.lastName",
                "dateOfBirth": function(el) {
                    return faker.date.birthdate().toISOString().substring(0, 10)
                }
            },
            "form[name=specificForm]": {
                "firstName": "faker.name.firstName",
                "lastName": "faker.name.firstName",
                "dateOfBirth": function(el) {
                    return "1901-01-01"
                }
            }
        }

Support `<select>` elements

When ika comes across a <select> input it should randomize the selection of an option for the field when using the faker mode, when using the tag mode it should select the <option> that matches the value of the tag, similar to how checkboxes and radios are handled.

Add capability to "autoload" / on-demand

Currently, users of the library have to add an element "ika-apa" to indicate where they want the input to appear. We should consider adding some kind of autoload which could perhaps load the input as a widget in bottom right corner - similar to how chat bubbles appear. This could enable us to use ika even on a page that a developer has not explicitly added through bookmark or extension in the browser.

So to have this working we have to have

  • Autoload functionality that doesn't require an ika-apa element on the page
  • Field name mapping to be auto-detected based on input name
  • The input must appear in bottom right corner as a bubble

FEAT: Vue support

Add a component that can be used in Vue projects. There is an experimental branch here

Add "fuzzing" feature

Basically, ika should be able to generate random inputs and place them on input fields to help developers test validation and sanitization of their inputs.

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.