-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Showing
6 changed files
with
46 additions
and
33 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"create-jd-app": patch | ||
--- | ||
|
||
fix: prettify all files |
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,13 +1,13 @@ | ||
import {protected$} from "@solid-mediakit/auth" | ||
import { protectedQuery } from "~/server/user/user.queries" | ||
import { protected$ } from "@solid-mediakit/auth"; | ||
import { protectedQuery } from "~/server/user/user.queries"; | ||
|
||
export default protected$(session$=>{ | ||
const res = protectedQuery(()=> ({hello: 'world'})) | ||
return ( | ||
<div> | ||
<h1>Protected Page</h1> | ||
<p>Session: {JSON.stringify(session$)}</p> | ||
<p>Response: {JSON.stringify(res.data)}</p> | ||
</div> | ||
) | ||
}) | ||
export default protected$((session$) => { | ||
const res = protectedQuery(() => ({ hello: "world" })); | ||
return ( | ||
<div> | ||
<h1>Protected Page</h1> | ||
<p>Session: {JSON.stringify(session$)}</p> | ||
<p>Response: {JSON.stringify(res.data)}</p> | ||
</div> | ||
); | ||
}); |
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