Aurelia single state store based on RxJS
THIS IS WORK IN PROGRESS, DO NOT USE YET FOR PRODUCTION
Install the npm dependency via
| def test_check_credentials(self): | |
| driver = self.get_driver() | |
| username = (By.CSS_SELECTOR, "#username") | |
| password = (By.CSS_SELECTOR, "#password") | |
| login = (By.CSS_SELECTOR, "[class=\'fa fa-2x fa-sign-in\']") | |
| result_message = (By.CSS_SELECTOR, "#flash") | |
| wait = WebDriverWait(driver, 10) |
| <template> | |
| <h1>Frameworks</h1> | |
| <ul> | |
| <li repeat.for="framework of state.frameworks">${framework}</li> | |
| </ul> | |
| </template> | |
| <template> | |
| <h1>${message}</h1> | |
| </template> |
| <template> | |
| <h1>${message}</h1> | |
| </template> |
| 'use strict'; | |
| // simple express server | |
| var express = require('express'); | |
| var path = require('path'); | |
| var app = express(); | |
| var router = express.Router(); | |
| app.use("/scripts", express.static(path.join(__dirname, 'scripts'))); | |
| app.get('/', function(req, res) { |
| import {Router} from 'aurelia-router'; | |
| import bootstrap from 'bootstrap'; | |
| import {EventAggregator} from 'aurelia-event-aggregator'; | |
| export class App { | |
| static inject() { return [ Router, EventAggregator ];} | |
| constructor(router, ea) { | |
| this.router = router; | |
| this.isLoggedIn = false; |
| <style> | |
| .treeList { list-style: none; } | |
| </style> | |
| <div>Hello</div> | |
| <ul class="treeList" data-bind="template: { name: 'itemTmpl', foreach: hierarchy }"></ul> | |
| <script id="itemTmpl" type="text/html"> |