Giter Club home page Giter Club logo

genit's People

Contributors

davidpodhola avatar forki avatar isaacabraham avatar lefthandedgoat avatar panesofglass 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  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  avatar  avatar  avatar  avatar  avatar  avatar

genit's Issues

Do something to prevent XSS

You can enter <script>alert('hello')</script> into the text box and it will run the js when loading the view page.

Create combinators file

to clean up some of the generated code, like fake data generation, search page logic etc.

Think of a name

Prior to releasing publicly, think of a name.

I was thinking something along the lines of 140proof which is 70% in alcohol terms because this generator can help you get 70% of the way there? Maybe 70% is too high, or alcohol references are bad.

No phone length validation

If you create a phone number longer than that supported by the database (15 chars) you get a SQL constraint exception. This is definitely better than simply truncating the text, but it would be preferable to have a proper validation error.

Create bundles for types

Bundles for each page, so that you can just pass around all the helper functions, views and all that

Add required validation for drop down

let validate_required_dropdown property value =
if String.IsNullOrWhiteSpace value || value = "0"
then Some (property, sprintf "%s is required" property)
else None

'Many' field for One to Many relationship

Like Order/Order Items with a FK back to Order.

Not sure the best way to represent in a form, may have to add something like MVC has for model binding collections of items.

Fix bug in register code

Generator.fs

          match loginAttempt with
            | Some(loginAttempt) ->
              let returnPath = getQueryStringValue req "returnPath"
              let returnPath = if returnPath = "" then "/" else returnPath
              setAuthCookieAndRedirect id returnPath
            | None -> OK <| view_login true loginForm.Email

setAuthCookieAndRedirect is passing id the function, not the user id, use the userId on loginAttempt

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.