Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Releases: calebkleveter/UIWebKit

v3.7.1

18 May 14:46
Compare
Choose a tag to compare

Vapor 2

Updated a couple of internal things so UIWebKit works with Vapor 2!

v3.7.0

26 Apr 19:44
Compare
Choose a tag to compare

Dependencies!

We now have three more dependency options:

  1. Normalize.css
  2. Custom CSS: This case takes in the path of the file which is located in the Public directory.
  3. Custom JavaScript: This case also takes in the path of the file.

v3.5.0

20 Apr 19:51
Compare
Choose a tag to compare

Dehydrate your UIElement

  • The initializer for the UIElement class is much shorter then before, thanks to a computed property that was added to the Element enum.
  • New UILink and CSSLink components.
  • UIParagraph now implements the ElementRenderable protocol.

v3.4.0

27 Mar 18:08
Compare
Choose a tag to compare

Oh, for the ease of usage

A list of components have been added. Here they are:

  • UIAnchor
  • UINavigation
  • UIParagraph
  • UIOrderedList & UIUnorderedList

v3.3.0

26 Feb 00:45
Compare
Choose a tag to compare

Auto rendering

Thanks to @loganwright, a UIWebPage is now automatically rendered when returned from a route! #4

drop.get("about") { req in
    return MainView()
}

Table component

There is now a new component for handling tables!

v3.2.0

23 Feb 11:58
Compare
Choose a tag to compare

Safety HTML encoded text

The UIElement.add(text) method now by default safely HTML encodes the string to help prevent XSS attacks. You can use the UIElement.addRaw(text) method to add raw text.

Thank you @C0deH4cker!

Deprecated: UIElement.parse()

UIElement.parse() has been deprecated and replaced with UIElement.render(). This was done because we where rendering all along. Not parsing.

v3.1.0

21 Feb 21:00
Compare
Choose a tag to compare

Components:

#3

We are now adding components. Pieces of code to make your life easier. The first one is the UIForm class.

Example:

let form = UIForm(with: ["First name", "Second name"], idPrefix: "user", submitText: "Submit", and: "/names")
exampleElement.add(form)

v3.0.2

20 Feb 15:11
Compare
Choose a tag to compare

Configuring

UIWebPage's configuration function is now called during render. It just seemed rather odd to do that during initialization.

v3.0.1

13 Feb 17:33
Compare
Choose a tag to compare

Protection fixes

Fixed some issues with the protection level of some of the great new stuff. All works now.

v3.0.0

13 Feb 17:32
Compare
Choose a tag to compare

No more file creation!

The render function has been changed so it works just like rendering .leaf files. No more file creation!

Example:

return try About().render()

Thanks to @vzsg for pointing me in the right direction!

Typ{o => e}

Fixed the dependency enums so they are spelled correctly.

Sub-Classing

Now you sub-class UIWebPage when creating a custom page.

Example:

final class AboutPage: UIWebPage