-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eacac27
commit bc22495
Showing
18 changed files
with
125 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
-lib coconut.vdom | ||
-lib coconut.router | ||
-lib tink_web | ||
-lib lix.server | ||
-lib lix.sdk | ||
-lib hxjs-amazon-cognito-auth-js |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-D archive=0.1.0 | ||
# @install: lix --silent download "haxelib:/archive#0.1.0" into archive/0.1.0/haxelib | ||
-lib tink_io | ||
-lib format | ||
-cp ${HAXE_LIBCACHE}/archive/0.1.0/haxelib/src |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-D asys=0.3.0 | ||
# @install: lix --silent download "haxelib:/asys#0.3.0" into asys/0.3.0/haxelib | ||
-lib tink_core | ||
-lib tink_macro | ||
-lib tink_io | ||
-lib tink_streams | ||
-cp ${HAXE_LIBCACHE}/asys/0.3.0/haxelib/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-D format=3.4.1 | ||
# @install: lix --silent download "haxelib:/format#3.4.1" into format/3.4.1/haxelib | ||
-cp ${HAXE_LIBCACHE}/format/3.4.1/haxelib/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-D futurize=1.0.1 | ||
# @install: lix --silent download "haxelib:/futurize#1.0.1" into futurize/1.0.1/haxelib | ||
-lib tink_macro | ||
-cp ${HAXE_LIBCACHE}/futurize/1.0.1/haxelib/src |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-D lix.sdk=0.0.0 | ||
# @install: lix --silent download "gh://github.com/lix-pm/lix.sdk#c9cb0ba42c7682d1549045f7ffd0bd8d80aa550a" into lix.sdk/0.0.0/github/c9cb0ba42c7682d1549045f7ffd0bd8d80aa550a | ||
-lib asys | ||
-lib archive | ||
-lib lix.server | ||
-lib tink_await | ||
-lib tink_web | ||
# -cp ${HAXE_LIBCACHE}/lix.sdk/0.0.0/github/c9cb0ba42c7682d1549045f7ffd0bd8d80aa550a/src | ||
-cp ../lix.sdk/src |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
-D lix.server=0.0.0 | ||
# @install: lix --silent download "gh://github.com/lix-pm/lix.server#50f5f7b3ddca8c8211a4fdff936e3dab9b5c0de9" into lix.server/0.0.0/github/50f5f7b3ddca8c8211a4fdff936e3dab9b5c0de9 | ||
# @install: lix --silent download "gh://github.com/lix-pm/lix.server#8b40ec7e267f6f9a8064d0babd9a234f301a31a9" into lix.server/0.0.0/github/8b40ec7e267f6f9a8064d0babd9a234f301a31a9 | ||
-lib why-fs | ||
-lib tink_semver | ||
-lib tink_sql | ||
-cp ${HAXE_LIBCACHE}/lix.server/0.0.0/github/50f5f7b3ddca8c8211a4fdff936e3dab9b5c0de9/lib | ||
-cp ${HAXE_LIBCACHE}/lix.server/0.0.0/github/8b40ec7e267f6f9a8064d0babd9a234f301a31a9/lib |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-D mime=0.0.1 | ||
# @install: lix --silent download "haxelib:/mime#0.0.1" into mime/0.0.1/haxelib | ||
-cp ${HAXE_LIBCACHE}/mime/0.0.1/haxelib/ | ||
--macro mime.Mime.init() |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-D tink_await=0.4.0 | ||
# @install: lix --silent download "haxelib:/tink_await#0.4.0" into tink_await/0.4.0/haxelib | ||
-lib tink_syntaxhub | ||
-lib tink_macro | ||
-lib tink_core | ||
-cp ${HAXE_LIBCACHE}/tink_await/0.4.0/haxelib/src | ||
--macro tink.await.Await.use() |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
-D tink_http=0.8.1 | ||
# @install: lix --silent download "gh://github.com/haxetink/tink_http#ed67a8436c17f972f3036effbcc6dceb54826fa5" into tink_http/0.8.1/github/ed67a8436c17f972f3036effbcc6dceb54826fa5 | ||
# @install: lix --silent download "gh://github.com/haxetink/tink_http#ed61715675e4305bf6fff7c7422a2cb3569cc0e2" into tink_http/0.8.1/github/ed61715675e4305bf6fff7c7422a2cb3569cc0e2 | ||
-lib tink_url | ||
-lib http-status | ||
-lib tink_io | ||
-lib tink_state | ||
-lib tink_anon | ||
-cp ${HAXE_LIBCACHE}/tink_http/0.8.1/github/ed67a8436c17f972f3036effbcc6dceb54826fa5/src | ||
-cp ${HAXE_LIBCACHE}/tink_http/0.8.1/github/ed61715675e4305bf6fff7c7422a2cb3569cc0e2/src |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
-D tink_semver=0.0.0 | ||
# @install: lix --silent download "gh://github.com/haxetink/tink_semver#5027a6c62cb16ca4644abed69b3fe5839d613754" into tink_semver/0.0.0/github/5027a6c62cb16ca4644abed69b3fe5839d613754 | ||
# @install: lix --silent download "gh://github.com/haxetink/tink_semver#c7de0c2e6e5551f3beeb8fbd4e6a5bbe44a5f625" into tink_semver/0.0.0/github/c7de0c2e6e5551f3beeb8fbd4e6a5bbe44a5f625 | ||
-lib tink_core | ||
-lib tink_parse | ||
-cp ${HAXE_LIBCACHE}/tink_semver/0.0.0/github/5027a6c62cb16ca4644abed69b3fe5839d613754/src | ||
-cp ${HAXE_LIBCACHE}/tink_semver/0.0.0/github/c7de0c2e6e5551f3beeb8fbd4e6a5bbe44a5f625/src |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
-D tink_web=0.1.2 | ||
# @install: lix --silent download "gh://github.com/haxetink/tink_web#d8d8b47c50bc286770df0c517b586c3c41a3ed7c" into tink_web/0.1.2/github/d8d8b47c50bc286770df0c517b586c3c41a3ed7c | ||
-D tink_web=0.1.3 | ||
# @install: lix --silent download "gh://github.com/haxetink/tink_web#43c95a00fcacbfcd38ece60741dfbfdad78fff23" into tink_web/0.1.3/github/43c95a00fcacbfcd38ece60741dfbfdad78fff23 | ||
-lib tink_http | ||
-lib tink_json | ||
-lib tink_querystring | ||
-cp ${HAXE_LIBCACHE}/tink_web/0.1.2/github/d8d8b47c50bc286770df0c517b586c3c41a3ed7c/src | ||
-cp ${HAXE_LIBCACHE}/tink_web/0.1.3/github/43c95a00fcacbfcd38ece60741dfbfdad78fff23/src |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-D why-fs=0.0.0 | ||
# @install: lix --silent download "gh://github.com/kevinresol/why-fs#b511b71e0b2b93088e814ac9ca320cbf32dbe1a0" into why-fs/0.0.0/github/b511b71e0b2b93088e814ac9ca320cbf32dbe1a0 | ||
-lib tink_http | ||
-lib tink_io | ||
-lib futurize | ||
-lib mime | ||
-cp ${HAXE_LIBCACHE}/why-fs/0.0.0/github/b511b71e0b2b93088e814ac9ca320cbf32dbe1a0/src |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
package lix.site.data; | ||
|
||
import tink.http.clients.*; | ||
|
||
using tink.CoreApi; | ||
|
||
class UserData implements coconut.data.Model { | ||
@:editable var id:String = @byDefault null; | ||
@:loaded var data:lix.api.types.User = | ||
new lix.Remote(new JsClient(), () -> { | ||
#if (environment == "local") | ||
'2'; | ||
#else | ||
var auth = new CognitoAuth(); | ||
auth.getSession(); | ||
auth.result.next(session -> session.idToken); | ||
#end | ||
}).me().get(); | ||
} |
This file contains 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
This file contains 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