-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* scaffold wip * update helpers * scaffold endpoints * add comment * use 8002 * liveblocks auth * remove nginx stuff * better routes * move down * update vars * don't need ignoring * remove unneeded * update deps * add remix dep, add sample env * add route * add readme * update readme * fix for local * restore * tweak vars * restore * backend type * refactor * fix indent * run only on localhost (dev) * test nudge * append v1! * slash * fix slash * better naming * readability * types * pin dependencies * remove nix file * update eslint-check * remove eslintrc * update deps * remove isMethod
- Loading branch information
Showing
44 changed files
with
6,806 additions
and
34 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,2 @@ | ||
CORS_ORIGIN="http://localhost:8000" | ||
BACKEND_URL="http://localhost:8001" |
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 @@ | ||
node_modules | ||
|
||
/.cache | ||
/build | ||
/public/build | ||
.env | ||
vegeta |
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,6 @@ | ||
export const ServerEnvironment = { | ||
// The URL of the actual backend server in the form <scheme>://<host>:<port> | ||
BackendURL: process.env.BACKEND_URL ?? "", | ||
// the CORS allowed origin for incoming requests | ||
CORSOrigin: process.env.CORS_ORIGIN ?? "", | ||
}; |
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,33 @@ | ||
import { cssBundleHref } from "@remix-run/css-bundle"; | ||
import type { LinksFunction } from "@remix-run/node"; | ||
import { | ||
Links, | ||
LiveReload, | ||
Meta, | ||
Outlet, | ||
Scripts, | ||
ScrollRestoration, | ||
} from "@remix-run/react"; | ||
|
||
export const links: LinksFunction = () => [ | ||
...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []), | ||
]; | ||
|
||
export default function App() { | ||
return ( | ||
<html lang="en"> | ||
<head> | ||
<meta charSet="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<Meta /> | ||
<Links /> | ||
</head> | ||
<body> | ||
<Outlet /> | ||
<ScrollRestoration /> | ||
<Scripts /> | ||
<LiveReload /> | ||
</body> | ||
</html> | ||
); | ||
} |
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,13 @@ | ||
import type { MetaFunction } from "@remix-run/node"; | ||
|
||
export const meta: MetaFunction = () => { | ||
return [{ title: "Utopia" }]; | ||
}; | ||
|
||
export default function Index() { | ||
return ( | ||
<div> | ||
<div>Welcome to Utopia</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node"; | ||
import { proxy } from "../util/proxy.server"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
}); | ||
} | ||
|
||
export async function action(args: ActionFunctionArgs) { | ||
return handle(args.request, { | ||
POST: (req) => proxy(req, { rawOutput: 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
import { proxy } from "../util/proxy.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
}); | ||
} | ||
|
||
export async function action(args: ActionFunctionArgs) { | ||
return handle(args.request, { | ||
PUT: proxy, | ||
}); | ||
} |
10 changes: 10 additions & 0 deletions
10
utopia-remix/app/routes/v1.github.authentication.finish.tsx
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,10 @@ | ||
import { LoaderFunctionArgs } from "@remix-run/node"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
import { proxy } from "../util/proxy.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
GET: proxy, | ||
}); | ||
} |
10 changes: 10 additions & 0 deletions
10
utopia-remix/app/routes/v1.github.authentication.start.tsx
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,10 @@ | ||
import { LoaderFunctionArgs } from "@remix-run/node"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
import { proxy } from "../util/proxy.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
GET: proxy, | ||
}); | ||
} |
10 changes: 10 additions & 0 deletions
10
utopia-remix/app/routes/v1.github.authentication.status.tsx
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,10 @@ | ||
import { LoaderFunctionArgs } from "@remix-run/node"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
import { proxy } from "../util/proxy.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
GET: proxy, | ||
}); | ||
} |
15 changes: 15 additions & 0 deletions
15
utopia-remix/app/routes/v1.github.branches.$owner.$repository.asset.$assetSha.tsx
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,15 @@ | ||
import { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
import { proxy } from "../util/proxy.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
}); | ||
} | ||
|
||
export async function action(args: ActionFunctionArgs) { | ||
return handle(args.request, { | ||
POST: (req) => proxy(req, { rawOutput: true }), | ||
}); | ||
} |
10 changes: 10 additions & 0 deletions
10
...remix/app/routes/v1.github.branches.$owner.$repository.branch.$branchName.pullrequest.tsx
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,10 @@ | ||
import { LoaderFunctionArgs } from "@remix-run/node"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
import { proxy } from "../util/proxy.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
GET: proxy, | ||
}); | ||
} |
10 changes: 10 additions & 0 deletions
10
utopia-remix/app/routes/v1.github.branches.$owner.$repository.branch.$branchName.tsx
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,10 @@ | ||
import { LoaderFunctionArgs } from "@remix-run/node"; | ||
import { proxy } from "../util/proxy.server"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
GET: proxy, | ||
}); | ||
} |
10 changes: 10 additions & 0 deletions
10
utopia-remix/app/routes/v1.github.branches.$owner.$repository.branch.default-branch.tsx
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,10 @@ | ||
import { LoaderFunctionArgs } from "@remix-run/node"; | ||
import { proxy } from "../util/proxy.server"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
GET: proxy, | ||
}); | ||
} |
10 changes: 10 additions & 0 deletions
10
utopia-remix/app/routes/v1.github.branches.$owner.$repository.tsx
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,10 @@ | ||
import { LoaderFunctionArgs } from "@remix-run/node"; | ||
import { proxy } from "../util/proxy.server"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
GET: proxy, | ||
}); | ||
} |
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,15 @@ | ||
import { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node"; | ||
import { proxy } from "../util/proxy.server"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
}); | ||
} | ||
|
||
export async function action(args: ActionFunctionArgs) { | ||
return handle(args.request, { | ||
POST: proxy, | ||
}); | ||
} |
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,10 @@ | ||
import { LoaderFunctionArgs } from "@remix-run/node"; | ||
import { proxy } from "../util/proxy.server"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
GET: proxy, | ||
}); | ||
} |
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,10 @@ | ||
import { LoaderFunctionArgs } from "@remix-run/node"; | ||
import { proxy } from "../util/proxy.server"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
GET: proxy, | ||
}); | ||
} |
10 changes: 10 additions & 0 deletions
10
utopia-remix/app/routes/v1.javascript.package.versions.$name.$version.tsx
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,10 @@ | ||
import { LoaderFunctionArgs } from "@remix-run/node"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
import { proxy } from "../util/proxy.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
GET: proxy, | ||
}); | ||
} |
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,15 @@ | ||
import { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node"; | ||
import { proxy } from "../util/proxy.server"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
}); | ||
} | ||
|
||
export async function action(args: ActionFunctionArgs) { | ||
return handle(args.request, { | ||
POST: proxy, | ||
}); | ||
} |
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,10 @@ | ||
import { LoaderFunctionArgs } from "@remix-run/node"; | ||
import { proxy } from "../util/proxy.server"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
GET: proxy, | ||
}); | ||
} |
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,10 @@ | ||
import { LoaderFunctionArgs } from "@remix-run/node"; | ||
import { proxy } from "../util/proxy.server"; | ||
import { handle, handleOptions } from "../util/api.server"; | ||
|
||
export async function loader(args: LoaderFunctionArgs) { | ||
return handle(args.request, { | ||
OPTIONS: handleOptions, | ||
GET: proxy, | ||
}); | ||
} |
Oops, something went wrong.