Questions tagged [riot]

Riot is a fast, expressive, and contextual unit testing framework for Ruby.

Riot is a fast, expressive, and contextual unit testing framework for .

For more information, see the GitHub page.

64 questions
4
votes
3 answers

Is it possible to separate the javascript code from the tag file in Riot Js?

I would like to know if it is possible to do something like:
Hello, world!
The tag would keep the view (html) while the js code stays in a different…
Fernando Gabrieli
  • 980
  • 3
  • 15
  • 31
3
votes
3 answers

Accessing a Riot.js tag's properties from the DOM

I'm playing with Riot.js and everything is working great. But let's say I have a page where I mounted this single tag:
bjork24
  • 3,153
  • 7
  • 35
  • 46
3
votes
0 answers

typescript + karma module has not been loaded for context _. Use require([])

(Little bit demoralising to seethat there are no answers to similar questions) Have a folder/file setup where the tests sit side-by-side the modules in typescript. Trying to get something simple working, but not getting very far. Typescript…
Simon
  • 2,484
  • 6
  • 35
  • 54
2
votes
1 answer

DOM doesn't update upon child tags that are appended with JQuery

I'm trying to dynamically append child riot.js tags depending on the results of an API call. Whenever I try to append these tags using jquery's .append() function, the DOM does not update. I tried the following method described on this github thread…
Jake Miller
  • 2,432
  • 2
  • 24
  • 39
2
votes
1 answer

Riotjs (Riot typescript) can't overwrite method on typescript class

This is weird. What am I doing wrong? class Store extends Riot.Observable { trigger():void { // shouldn't this be completely overwriting the trigger method on riot.observable? console.log("my trigger...."); } } let store = new…
Simon
  • 2,484
  • 6
  • 35
  • 54
2
votes
1 answer

Typescript Cannot find module 'wnumb'

/// import * as $ from "jquery"; import * as Wnumb from "wnumb"; //also tried import {wNumb} from "wnumb" //and tried import {wNumb} from "wNumb" export class AdvancedSlider extends Riot.Element { ...blah ...…
Simon
  • 2,484
  • 6
  • 35
  • 54
2
votes
1 answer

riotts (riot-ts) and jspm - anyone got it working together?

I have been looking at this ambitious project https://github.com/nippur72/RiotTS that has moved riotjs over to riot-ts. The author has used bower, and I am trying to get it working using jspm. riot-ts doesn't exist in the jspm repo list, so I…
Simon
  • 2,484
  • 6
  • 35
  • 54
1
vote
1 answer

Ruby/Rails/Riot programmatically access test results

I'm using Riot (https://github.com/thumblemonks/riot) for testing though we could use something else. I get test output like this: > ruby my_test_file.rb Running a test + something works + something else works - something failed I'd like to…
phillee
  • 2,227
  • 2
  • 19
  • 28
1
vote
0 answers

Not receiving push notifications in my Android app

I'm using the Matrix SDK to build a chat app but I'm not receiving any push notifications. This is my code fun addPushNotification(context: Context, token: String?) { val pushCallback = object : ApiCallback { override fun…
Amira Elsayed Ismail
  • 9,216
  • 30
  • 92
  • 175
1
vote
1 answer

Xcode 10.2.1 Riot-iOS Project not building on real device iPhone 7

When I build a application on real device its showing error. While I run on simulator its working fine. :-1: unexpected service error: build aborted due to an internal error: unable to write manifest to …
Kathiresan Murugan
  • 2,783
  • 3
  • 23
  • 44
1
vote
1 answer

Riot-iOS Error: while run bundle exec pod install

I have tried to run a project So, I download a files and run a build instructions. When I run a bundle exec pod install is showing error. I can't able to understand. Please help me. After that I have run below commands brew update brew install…
Kathiresan Murugan
  • 2,783
  • 3
  • 23
  • 44
1
vote
2 answers

How to add (mount) 2 riot.js component on html page

When I add (mount) 2 components on HTML page I receive "Uncaught TypeError: Cannot read property 'class' of undefined at mount$1" error
alex
  • 53
  • 6
1
vote
3 answers

How to mount riot tags inside a laravel project

I need to add riot js to my laravel project and not sure I am doing the correct way to integrate riot for laravel project. I have tried as follows in the blade.php file which is in the laravel views folder.
user9348468
1
vote
1 answer

How to set muliple class variables in riot component

I've made a header component with riot.js that should have different styling on some pages. I'd like to set the classes when mounting the tag in the html document, but can't figure out how. The tag looks like this:
Lorant
  • 15
  • 5
1
vote
0 answers

Riot.mount not working every time

In my Java project we have used riot.js using external tag file.On clicking on html object we are mounting data to the screen like example below riot.mount('.detail','health',dataObject); But the issue is Some times riot.mount working and dynamic…
Nilesh Madhak
  • 13
  • 1
  • 1
  • 7
1
2 3 4 5