-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
9bc00ba
commit c9e92d9
Showing
17 changed files
with
190 additions
and
153 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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": ["@changesets/changelog-github", { "repo": "nebulaservices/nebula" }], | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [], | ||
"privatePackages": { "version": true, "tag": true } | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": ["@changesets/changelog-github", { "repo": "nebulaservices/nebula" }], | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [], | ||
"privatePackages": { "version": true, "tag": true } | ||
} |
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,19 +1,19 @@ | ||
:root { | ||
--background-primary: #191724; | ||
--background-lighter: #16121f; | ||
--navbar-color: #26233a; | ||
--navbar-height: 60px; | ||
--navbar-text-color: #7967dd; | ||
--navbar-link-color: #e0def4; | ||
--navbar-link-hover-color: gray; | ||
--navbar-font: "Roboto"; | ||
--input-text-color: #e0def4; | ||
--input-placeholder-color: white; | ||
--input-background-color: #1f1d2e; | ||
--input-border-color: #eb6f92; | ||
--input-border-size: 1.3px; | ||
--navbar-logo-filter: none; | ||
--dropdown-option-hover-color: #312a49; | ||
--tab-color: var(--black); | ||
--border-color: #16121f; | ||
--background-primary: #191724; | ||
--background-lighter: #16121f; | ||
--navbar-color: #26233a; | ||
--navbar-height: 60px; | ||
--navbar-text-color: #7967dd; | ||
--navbar-link-color: #e0def4; | ||
--navbar-link-hover-color: gray; | ||
--navbar-font: "Roboto"; | ||
--input-text-color: #e0def4; | ||
--input-placeholder-color: white; | ||
--input-background-color: #1f1d2e; | ||
--input-border-color: #eb6f92; | ||
--input-border-size: 1.3px; | ||
--navbar-logo-filter: none; | ||
--dropdown-option-hover-color: #312a49; | ||
--tab-color: var(--black); | ||
--border-color: #16121f; | ||
} |
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,33 +1,29 @@ | ||
import { createServer } from "node:http"; | ||
import { | ||
FastifyServerFactory, | ||
FastifyServerFactoryHandler, | ||
RawServerDefault, | ||
} from "fastify"; | ||
import { FastifyServerFactory, FastifyServerFactoryHandler, RawServerDefault } from "fastify"; | ||
import wisp from "wisp-server-node"; | ||
import { LOG_LEVEL, WispOptions } from "wisp-server-node/dist/Types.js"; | ||
import { parsedDoc } from "./config.js"; | ||
|
||
const wispOptions: WispOptions = { | ||
logLevel: parsedDoc.server.server.logging ? LOG_LEVEL.DEBUG : LOG_LEVEL.NONE, | ||
pingInterval: 30, | ||
logLevel: parsedDoc.server.server.logging ? LOG_LEVEL.DEBUG : LOG_LEVEL.NONE, | ||
pingInterval: 30 | ||
}; | ||
|
||
const serverFactory: FastifyServerFactory = ( | ||
handler: FastifyServerFactoryHandler | ||
handler: FastifyServerFactoryHandler | ||
): RawServerDefault => { | ||
const httpServer = createServer(); | ||
httpServer.on("request", (req, res) => { | ||
handler(req, res); | ||
}); | ||
httpServer.on("upgrade", (req, socket, head) => { | ||
if (parsedDoc.server.server.wisp) { | ||
if (req.url?.endsWith("/wisp/")) { | ||
wisp.routeRequest(req, socket as any, head, wispOptions); | ||
} | ||
} | ||
}); | ||
return httpServer; | ||
const httpServer = createServer(); | ||
httpServer.on("request", (req, res) => { | ||
handler(req, res); | ||
}); | ||
httpServer.on("upgrade", (req, socket, head) => { | ||
if (parsedDoc.server.server.wisp) { | ||
if (req.url?.endsWith("/wisp/")) { | ||
wisp.routeRequest(req, socket as any, head, wispOptions); | ||
} | ||
} | ||
}); | ||
return httpServer; | ||
}; | ||
|
||
export { serverFactory }; |
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
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
Oops, something went wrong.