A Pen by Mihovil Ilakovac on CodePen.
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
Show hidden characters
| { | |
| "scopes": [ | |
| { | |
| // js and vue - require("") | |
| "scope": "source\\.[js|vue].*string", // 1. ignore if scope at cursor does not match expression (super+alt+p) | |
| "prefix": ["require"], // 2. trigger only if: require(<cursor> | |
| // if 1 & 2 are true: | |
| "auto": true, // auto suggest filepaths, else only by shorctut | |
| "extensions": ["js", "vue"], // show only .js and .vue files | |
| "relative": true, // insert absolute |
made with esnextbin
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
| @tailwind base; | |
| @tailwind components; | |
| @tailwind utilities; |
Building Wasp for Red Hat's UBI9 image can be done with a custom Docker file and with a few simple steps that we encoded in the build.sh script.
Just put both the build.sh script and the Dockerfile at the root of your Wasp project. Make sure to make the build.sh executable with chmod +x build.sh.
There is also a test.sh script that builds the Docker image and runs it (to make sure it works)
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
| import { useEffect } from "react"; | |
| import "./Main.css"; | |
| import { useMessagesSocket, useSocketListener } from "./websockets"; | |
| const MainPage = () => { | |
| const { socket, isConnected } = useMessagesSocket(); | |
| useSocketListener(socket, "chatMessage", (message) => { | |
| console.log("message received: ", message); | |
| }); |
Warning
This guide has moved!
It is now maintained in the official Wasp docs: 👉 https://wasp.sh/docs/guides/deployment/caprover
This gist is archived and will no longer be updated.
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
| app fileUpload { | |
| wasp: { | |
| version: "^0.12.3" | |
| }, | |
| title: "file-upload", | |
| } | |
| route RootRoute { path: "/", to: MainPage } | |
| page MainPage { | |
| component: import { MainPage } from "@src/MainPage.jsx" |
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
| app radixui { | |
| wasp: { | |
| version: "^0.12.3" | |
| }, | |
| title: "radixui", | |
| client: { | |
| rootComponent: import { Layout } from "@src/Layout", | |
| } | |
| } |
OlderNewer