Posts

Showing posts from January 12, 2019

Testing NGXS states with sub states feeds wrong state into action handler

Image
1 1 Setup: I have a parent state defined as @State<ParentStateModel>({ name: 'grid', defaults: { parentData: 'some data' }, children: [LoadingState] }) export class ParentState { @Action(Action1) action1(ctx: stateContext<ParentStateModel>, action: Action1) { // In production this state will be ParentStateModel as expected // but in unit test, it will be of type LoadingState const state = ctx.getState(); } } And a child state defined as @State<LoadingStateModel>({ name: 'gridLoading', defaults: { loading: false } }) export class LoadingState{ @Action(Action1) action1(ctx: stateContext<LoadingStateModel>, action: Action1) { ctx.setState({loading: true}); } } Notice that both states r

Serie A2 1982-1983 (pallavolo femminile)

Image
Questa voce sull'argomento pallavolo è solo un abbozzo . Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Segui i suggerimenti del progetto di riferimento. La Serie A2 femminile FIPAV 1982-83 fu la 6ª edizione della manifestazione organizzata dalla FIPAV. Indice 1 Classifiche 1.1 Girone A 1.2 Girone B 2 Collegamenti esterni Classifiche | Girone A | Pos. Squadra Pt G 1. Gefran Cassano d'Adda 38 20 2. Jean d'Estrées Genova 34 20 3. Oreca Albizzate 32 20 4. Geo Survey Offshore San Lazzaro 28 20 5. Elecar Piacenza 28 20 6. Geas Sesto San Giovanni 24 20 7. Goldoni Carpi 24 20 8. Pallavolo Casalmaggiore 20 20 9. Pallavolo Cenate Sotto 10 20 10. Putinati Ferrara 10 20 11. Junior Casale Monferrato 10 20 Girone B | Pos. Squadra Pt G 1. Libertas Caltagirone 34 20 2. Agfacolo

Codemirror Simple Mode - Regex lookbehind and lookahead does not work

Image
0 I just implemented a simple mode to recognize latex code. Here is an code example that could be highlighted: documentclass{test} There should be everything blue, except of the 'test' what should be purple. This is how my implementation looks like atm: const CodeMirror = require('codemirror') CodeMirror.defineSimpleMode("simplemode", { start: [ { regex: /(?<={).+?(?=})/, token: 'argument' }, { regex: /%.*/, token: 'comment' }, /*{ regex: /\.*{.*}/, token: 'tag' },*/ { regex: /$.*$/, token: 'math' } ], meta: { dontIndentStates: , lineCommen