forked from HapticX/happyx
-
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.
Merge pull request HapticX#370 from HapticX/dev
improve happyx documentation and openapi interaction
- Loading branch information
Showing
10 changed files
with
131 additions
and
9 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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Import HappyX | ||
import | ||
../../../../src/happyx, | ||
../ui/[colors, code, play_states, translations], | ||
../components/[ | ||
code_block_guide, code_block, code_block_slider | ||
] | ||
|
||
|
||
proc Websockets*(): TagRef = | ||
buildHtml: | ||
tDiv(class = "flex flex-col px-8 py-2 xl:h-fit gap-4"): | ||
tH1: { translate"Websockets 🔌" } | ||
|
||
tP: | ||
{ translate"Like other web frameworks, in HappyX you can use websockets. Below is an example of usage." } | ||
|
||
CodeBlock("nim", nimSsrWebsockets, "nim_ssr_websockets_ex") | ||
|
||
tP: | ||
{ translate"In addition to the routes used above, websockets have other routes as well. Here is the complete list of all routes:" } | ||
CodeBlock("nim", nimSsrWebsocketsRoutes, "nim_ssr_websockets_routes") |
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
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