Skip to content

bfic/KitchenSink

Repository files navigation

KitchenSink

Shows how to model different UI patterns in JSON:

  • String

    • Text
    • Password
    • Textarea
    • Markdown
    • Html
    • Datepicker
    • Url
    • Redirect
  • Number

    • Integer
    • Decimal
    • Button
    • Map
  • Boolean

    • Checkbox
    • Button
    • Togglebutton
  • Array

    • Radio
    • Dropdown
    • Radiolist
    • Multiselect
    • Table
    • Chart

Requirements

Requires Starcounter version 2.2.1.2903

Video

Intended for 13 October 2015 webinar: http://starcounter.io/video-expressing-your-ui-in-json-plain-data-binding-advanced-data-binding/

Screenshot

Excercises

1. Change binding feedback event

From:

<input type="text" value="{{model.Name$::change}}" placeholder="Name">

To:

<input type="text" value="{{model.Name$::input}}" placeholder="Name">

Testing

Prepare your environment

Before running the steps, you need to:

Run the test (from Visual Studio)

  1. Start Selenium Remote Driver: java -jar selenium-server-standalone-3.0.0-beta3.jar
  2. Open KitchenSink.sln in Visual Studio and enable Test Explorer (Test > Window > Test Explorer)
  3. Start the KitchenSink app
  4. Press "Run all" in Test Explorer
    • If you get an error about some packages not installed, right click on the project in Solution Explorer. Choose "Manage NuGet Packages" and click on "Restore".
  5. Don't touch your keyboard or mouse while the tests are being executed :)

Run the test (from command line)

  1. Start Selenium Remote Driver: java -jar selenium-server-standalone-3.0.0-beta3.jar
  2. Go to the solution folder and run nuget restore to make sure you have the test dependencies (listed in test\KitchenSink.Tests\packages.config)
  • if you don't have nuget.exe, get it from here
  1. Build the solution ('msbuild KitchenSink.sln')
  2. Start the KitchenSink app (run.bat)
  3. Start the KitchenSink.Test runner (test.bat)
  4. Don't touch your keyboard or mouse while the tests are being executed :)

How to release a package

  1. Install Node.js.
  2. Run npm install to install all dependencies.
  3. Run grunt package to generate a packaged version. You can use grunt package:minor, grunt package:major, grunt package --setversion=1.0.0-develop.0, etc. as grunt-bump

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published