This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Fable.Import | |
open System | |
open System.Text.RegularExpressions | |
open Fable.Core | |
open Fable.Import.JS | |
open Fable.Import.Browser | |
module Mapboxgl = | |
type [<AllowNullLiteral>] [<Import("Map","mapboxgl")>] Map(?options: MapboxOptions) = | |
inherit Evented() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let keyboardCaptureHandler (keyboard: Keyboard.Record) = | |
match keyboard.Modifiers with | |
| { Control = true } -> | |
match keyboard.LastKey with | |
| Keyboard.Keys.O -> | |
window2.Closed <- false | |
true // Key has been captured | |
| _ -> false | |
| _ -> | |
match keyboard.LastKey with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open Fable.Helpers.React | |
open Fable.Helpers.React.Props | |
module RL = Fable.Helpers.ReactLeaflet | |
let group = | |
let truckTracks = | |
zones.paths | |
|> Array.map(fun path -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Client | |
open Fable.Core | |
open Fable.Core.JsInterop | |
open Fable.Import | |
importSideEffects "vis/dist/vis.css" | |
[<Import("*", "vis")>] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package async; | |
#if macro | |
import haxe.macro.Context; | |
#end | |
class Async { | |
public static macro function async(expr:haxe.macro.Expr) { | |
expr = Context.storeTypedExpr(Context.typeExpr(expr)); | |
return macro untyped __js__("(async {0})", ${expr})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[<RequireQualifiedAccess>] | |
module Http | |
open Fable.Import | |
open Fable.PowerPack | |
open Fable.PowerPack.Fetch | |
open Thoth.Json | |
open Fable.Core.JsInterop | |
type User = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Tests.Main | |
open Expecto | |
open Util.Testing | |
open Thoth.Json.Net | |
let json = | |
""" | |
{ | |
"name": "Test HTTP Scenario", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, | |
body { | |
font-size: 16px; | |
} | |
.main-container { | |
display: flex; | |
width: 100%; | |
height: 100%; | |
justify-content: center; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, | |
body { | |
font-size: 16px; | |
} | |
.main-container { | |
display: flex; | |
width: 100%; | |
height: 100%; | |
justify-content: center; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, | |
body { | |
font-size: 16px; | |
} |