Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy #217

Merged
merged 157 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
5ab1121
Edge runtime compat
davidar Aug 19, 2024
c92b422
Support wrangler
davidar Aug 19, 2024
64a85b2
Set yarn version
davidar Aug 19, 2024
860ca85
Add yarn run scripts for cf pages
davidar Aug 19, 2024
b731562
Combine commands
davidar Aug 19, 2024
741a5e7
Add kv binding
davidar Aug 19, 2024
23aff98
Enable smart placement
davidar Aug 20, 2024
201006d
add external linking to allowed domains
ATMarcks Aug 23, 2024
978aee7
fix theme styling not applying to record button
ATMarcks Aug 23, 2024
3e947e1
refactor into reusable window
ATMarcks Aug 23, 2024
1274d07
fix lint issue
ATMarcks Aug 23, 2024
7ac8354
fix draggable title bar clipping
ATMarcks Aug 23, 2024
5901704
Merge pull request #92 from ATMarcks/bugfix-add-resource-urls-to-cust…
davidar Aug 23, 2024
6c8519b
Merge pull request #93 from ATMarcks/bugfix-record-button-color
davidar Aug 23, 2024
e2c8583
Merge pull request #95 from compute-toys/edge
davidar Aug 23, 2024
fd1c863
add window provider
ATMarcks Aug 23, 2024
b850ef9
lint fixes
ATMarcks Aug 23, 2024
72a7c79
remove debug
ATMarcks Aug 23, 2024
f188659
padding cleanup
ATMarcks Aug 23, 2024
a943428
fix error text
ATMarcks Aug 23, 2024
0258c84
css escape polyfill alternative
ATMarcks Aug 23, 2024
9412fb3
Merge pull request #96 from ATMarcks/feature-draggable-window-improve…
davidar Aug 24, 2024
fa092e7
Setup supabase cli in devcontainer
davidar Aug 27, 2024
389d2ac
Pull current schema
davidar Aug 27, 2024
2b4756b
Seed local database
davidar Aug 28, 2024
815ea09
Use local image proxy for dev
davidar Aug 28, 2024
5c00b20
Disable edge runtime for dev server
davidar Aug 28, 2024
37888bb
Set node version for CI
davidar Aug 28, 2024
fac964b
Revert "Disable edge runtime for dev server"
davidar Aug 28, 2024
8d39687
Update README.md
davidar Aug 28, 2024
68774c1
Formatting
davidar Aug 28, 2024
a85b97b
Merge pull request #97 from compute-toys/supabase-local
davidar Aug 28, 2024
51bd575
Bump micromatch from 4.0.7 to 4.0.8
dependabot[bot] Aug 28, 2024
7c0f054
Merge pull request #98 from compute-toys/dependabot/npm_and_yarn/micr…
davidar Aug 28, 2024
5e75e4c
Update dependabot.yml
davidar Sep 12, 2024
265a364
Bump uuid from 8.3.2 to 10.0.0
dependabot[bot] Sep 12, 2024
0ad2c15
Bump @fortawesome/react-fontawesome from 0.2.0 to 0.2.2
dependabot[bot] Sep 12, 2024
7d91136
Bump @webgpu/types from 0.1.40 to 0.1.44
dependabot[bot] Sep 12, 2024
602ae7b
Merge pull request #100 from compute-toys/dependabot/npm_and_yarn/uui…
davidar Sep 12, 2024
8acfb7d
Merge pull request #103 from compute-toys/dependabot/npm_and_yarn/for…
davidar Sep 12, 2024
2be8a3f
Merge pull request #104 from compute-toys/dependabot/npm_and_yarn/web…
davidar Sep 12, 2024
89adda3
Bump @fortawesome/free-brands-svg-icons from 6.5.1 to 6.6.0
dependabot[bot] Sep 12, 2024
e430e37
Update dependabot.yml
davidar Sep 12, 2024
6caa05e
Bump eslint-config-next from 14.0.3 to 14.2.10
dependabot[bot] Sep 12, 2024
164001a
Merge pull request #105 from compute-toys/dependabot/npm_and_yarn/esl…
davidar Sep 12, 2024
877b1b9
Bump vercel from 36.0.0 to 37.4.2
dependabot[bot] Sep 12, 2024
a0049e4
Merge pull request #107 from compute-toys/dependabot/npm_and_yarn/ver…
davidar Sep 12, 2024
cf0af72
Bump other packages
davidar Sep 12, 2024
b01d61e
Merge pull request #101 from compute-toys/dependabot/npm_and_yarn/for…
davidar Sep 12, 2024
4f9c531
Bump gts from 3.1.1 to 5.3.1
dependabot[bot] Sep 13, 2024
035b81e
Merge pull request #109 from compute-toys/dependabot/npm_and_yarn/gts…
davidar Sep 13, 2024
079c203
Bump react and @types/react
dependabot[bot] Sep 13, 2024
ed5867f
Add missing eslint plugin
davidar Sep 13, 2024
bb91da0
Wrap async callback
davidar Sep 13, 2024
673468e
Merge pull request #110 from compute-toys/dependabot/npm_and_yarn/mul…
davidar Sep 13, 2024
24da9b6
Bump @webgpu/types from 0.1.44 to 0.1.45
dependabot[bot] Sep 14, 2024
6f02a13
Bump sharp from 0.32.6 to 0.33.5
dependabot[bot] Sep 14, 2024
604ab04
Bump prettier from 2.8.8 to 3.3.3
dependabot[bot] Sep 14, 2024
5948d65
Merge pull request #112 from compute-toys/dependabot/npm_and_yarn/web…
davidar Sep 14, 2024
929c3ff
Merge pull request #116 from compute-toys/dependabot/npm_and_yarn/pre…
davidar Sep 14, 2024
e3aaa37
Merge pull request #114 from compute-toys/dependabot/npm_and_yarn/sha…
davidar Sep 14, 2024
89dd7b5
Bump react-dom from 18.2.0 to 18.3.1
dependabot[bot] Sep 14, 2024
7bb5faa
Merge pull request #115 from compute-toys/dependabot/npm_and_yarn/rea…
davidar Sep 14, 2024
8dff58c
Group typescript updates
davidar Sep 15, 2024
a0c593f
Bump @mui/utils from 5.16.6 to 6.1.0
dependabot[bot] Sep 15, 2024
7f2b479
Bump wrangler from 3.72.0 to 3.78.2
dependabot[bot] Sep 15, 2024
3f30175
Bump @types/node from 17.0.45 to 22.5.5
dependabot[bot] Sep 15, 2024
2a0d336
Merge pull request #118 from compute-toys/dependabot/npm_and_yarn/mui…
davidar Sep 15, 2024
6af79fe
Merge pull request #119 from compute-toys/dependabot/npm_and_yarn/wra…
davidar Sep 15, 2024
de3e569
Merge pull request #120 from compute-toys/dependabot/npm_and_yarn/typ…
davidar Sep 15, 2024
bfcf627
Bump @emotion/react from 11.11.1 to 11.13.3
dependabot[bot] Sep 15, 2024
d07315e
Bump the typescript group with 8 updates
dependabot[bot] Sep 15, 2024
13ea609
Merge pull request #121 from compute-toys/dependabot/npm_and_yarn/emo…
davidar Sep 15, 2024
5ecf259
Remove gts
davidar Sep 15, 2024
b19746c
Merge remote-tracking branch 'origin/master' into dependabot/npm_and_…
davidar Sep 15, 2024
efa22aa
Fix type errors
davidar Sep 15, 2024
30f0e28
Merge pull request #117 from compute-toys/dependabot/npm_and_yarn/typ…
davidar Sep 15, 2024
508946d
Remove unused deps
davidar Sep 15, 2024
eb9a07f
Bump jotai-game from 0.1.0 to 0.2.0
dependabot[bot] Sep 15, 2024
8966561
Merge pull request #123 from compute-toys/dependabot/npm_and_yarn/jot…
davidar Sep 15, 2024
b2f29b0
Bump monaco-editor from 0.33.0 to 0.51.0
dependabot[bot] Sep 15, 2024
8994ba4
Add yarn lint step
davidar Sep 15, 2024
b100b99
Merge pull request #125 from compute-toys/dependabot/npm_and_yarn/mon…
davidar Sep 15, 2024
b442d1e
Bump @emotion/styled from 11.11.0 to 11.13.0
dependabot[bot] Sep 15, 2024
cd2ee9b
Bump @next/bundle-analyzer from 12.3.4 to 14.2.11
dependabot[bot] Sep 15, 2024
02155be
Merge pull request #128 from compute-toys/dependabot/npm_and_yarn/nex…
davidar Sep 15, 2024
6253adc
Merge pull request #127 from compute-toys/dependabot/npm_and_yarn/emo…
davidar Sep 15, 2024
3e43ded
Bump @fontsource/lobster from 4.5.11 to 5.1.0
dependabot[bot] Sep 15, 2024
28969a2
Merge pull request #129 from compute-toys/dependabot/npm_and_yarn/fon…
davidar Sep 15, 2024
08482a4
Bump @react-hook/resize-observer from 1.2.6 to 2.0.2
dependabot[bot] Sep 15, 2024
e0107e4
Bump use-animation-frame from 0.1.5 to 0.2.1
dependabot[bot] Sep 15, 2024
f16b542
Bump jotai from 2.5.1 to 2.9.3
dependabot[bot] Sep 15, 2024
96f9795
Merge pull request #131 from compute-toys/dependabot/npm_and_yarn/use…
davidar Sep 15, 2024
c6933a2
Merge pull request #130 from compute-toys/dependabot/npm_and_yarn/rea…
davidar Sep 15, 2024
f0c8ac5
Merge pull request #132 from compute-toys/dependabot/npm_and_yarn/jot…
davidar Sep 15, 2024
9c54435
Bump wrangler from 3.78.2 to 3.78.3
dependabot[bot] Sep 17, 2024
c69bbbe
Bump @types/react from 18.3.5 to 18.3.6
dependabot[bot] Sep 17, 2024
1967303
Merge pull request #133 from compute-toys/dependabot/npm_and_yarn/wra…
davidar Sep 17, 2024
dc9dc63
Merge pull request #134 from compute-toys/dependabot/npm_and_yarn/typ…
davidar Sep 17, 2024
d13db5b
Bump wrangler from 3.78.3 to 3.78.4
dependabot[bot] Sep 18, 2024
6c6c368
Update dependabot.yml
davidar Sep 18, 2024
47d5c49
Bump the typescript group across 1 directory with 2 updates
dependabot[bot] Sep 18, 2024
5349c42
Bump @types/react from 18.3.6 to 18.3.7
dependabot[bot] Sep 18, 2024
4bd1aa3
Merge pull request #139 from compute-toys/dependabot/npm_and_yarn/wra…
davidar Sep 18, 2024
ecdee8c
Merge pull request #142 from compute-toys/dependabot/npm_and_yarn/typ…
davidar Sep 18, 2024
5b0f794
Merge pull request #140 from compute-toys/dependabot/npm_and_yarn/typ…
davidar Sep 18, 2024
e394ae9
Bump @webgpu/types from 0.1.45 to 0.1.46
dependabot[bot] Sep 20, 2024
00693db
Merge pull request #146 from compute-toys/dependabot/npm_and_yarn/web…
davidar Sep 20, 2024
aac7bdc
Update dependabot.yml
davidar Sep 20, 2024
d61101e
Bump monaco-editor from 0.51.0 to 0.52.0
dependabot[bot] Sep 20, 2024
069d9cf
Bump @types/react from 18.3.7 to 18.3.8
dependabot[bot] Sep 20, 2024
dca0c0a
Remove wrangler from deps
davidar Sep 20, 2024
0004dca
Revert "Remove wrangler from deps"
davidar Sep 20, 2024
d8e86f5
Merge pull request #151 from compute-toys/dependabot/npm_and_yarn/typ…
davidar Sep 20, 2024
bb67d19
Update dependabot.yml
davidar Sep 20, 2024
e0679d2
Merge pull request #150 from compute-toys/dependabot/npm_and_yarn/mon…
davidar Sep 20, 2024
551c649
Bump @mui/utils from 6.1.0 to 6.1.1
dependabot[bot] Sep 20, 2024
1431425
Bump the nextjs group across 1 directory with 6 updates
dependabot[bot] Sep 22, 2024
c213b60
Linting
davidar Sep 22, 2024
a73859a
Merge pull request #157 from compute-toys/dependabot/npm_and_yarn/nex…
davidar Sep 22, 2024
02fd52a
Merge pull request #154 from compute-toys/dependabot/npm_and_yarn/mui…
davidar Sep 22, 2024
945fa79
Bump prettier-plugin-organize-imports in the typescript group
dependabot[bot] Sep 22, 2024
04681fd
Merge pull request #156 from compute-toys/dependabot/npm_and_yarn/typ…
davidar Sep 22, 2024
11897b7
Update dependabot.yml
davidar Sep 25, 2024
6cfd068
Bump supabase from 1.191.3 to 1.219.2
dependabot[bot] Nov 11, 2024
1a9e597
Merge pull request #182 from compute-toys/dependabot/npm_and_yarn/sup…
davidar Nov 18, 2024
6238f85
CI: Set node version
davidar Nov 18, 2024
263f279
Bump jotai from 2.9.3 to 2.10.2
dependabot[bot] Nov 18, 2024
f0a4cee
Bump cross-spawn from 7.0.3 to 7.0.5 in the npm_and_yarn group
dependabot[bot] Nov 18, 2024
4e21358
Bump @mui/utils from 6.1.1 to 6.1.7
dependabot[bot] Nov 18, 2024
f36aeb3
Bump the typescript group across 1 directory with 6 updates
dependabot[bot] Nov 18, 2024
b2560f2
Merge pull request #185 from compute-toys/dependabot/npm_and_yarn/jot…
davidar Nov 18, 2024
a3ff211
Merge pull request #186 from compute-toys/dependabot/npm_and_yarn/typ…
davidar Nov 18, 2024
7b750a9
Merge pull request #187 from compute-toys/dependabot/npm_and_yarn/mui…
davidar Nov 18, 2024
4096730
Merge pull request #189 from compute-toys/dependabot/npm_and_yarn/npm…
davidar Nov 18, 2024
044821c
Bump the nextjs group across 1 directory with 6 updates
dependabot[bot] Nov 18, 2024
17fba59
Merge pull request #188 from compute-toys/dependabot/npm_and_yarn/nex…
davidar Nov 18, 2024
4eabf32
Bump jotai from 2.10.2 to 2.10.3
dependabot[bot] Nov 25, 2024
e4a6d15
Bump nanoid from 3.3.7 to 3.3.8 in the npm_and_yarn group
dependabot[bot] Dec 14, 2024
cdc865a
Bump the typescript group across 1 directory with 4 updates
dependabot[bot] Dec 16, 2024
0712ebe
Bump @emotion/react from 11.13.3 to 11.14.0
dependabot[bot] Dec 16, 2024
c78f3ff
Merge pull request #203 from compute-toys/dependabot/npm_and_yarn/typ…
davidar Dec 17, 2024
16f3ed0
Merge pull request #201 from compute-toys/dependabot/npm_and_yarn/npm…
davidar Dec 17, 2024
f803abc
Merge pull request #192 from compute-toys/dependabot/npm_and_yarn/jot…
davidar Dec 17, 2024
df51638
Merge pull request #205 from compute-toys/dependabot/npm_and_yarn/emo…
davidar Dec 17, 2024
c5195d1
Bump the nextjs group across 1 directory with 6 updates
dependabot[bot] Dec 17, 2024
8e83893
Fix cloudflare/next-on-pages#908
davidar Dec 17, 2024
3e02d11
Merge pull request #207 from compute-toys/dependabot/npm_and_yarn/nex…
davidar Dec 17, 2024
44acba9
Bump monaco-editor from 0.52.0 to 0.52.2
dependabot[bot] Dec 17, 2024
75164f3
Update dependabot.yml
davidar Dec 17, 2024
772996b
Bump the fontawesome group with 2 updates
dependabot[bot] Dec 17, 2024
c4be5cf
Update submodule
davidar Dec 17, 2024
b38bd11
Merge pull request #215 from compute-toys/dependabot/npm_and_yarn/fon…
davidar Dec 17, 2024
72116c4
Merge pull request #213 from compute-toys/dependabot/npm_and_yarn/mon…
davidar Dec 17, 2024
fbcff17
Merge pull request #214 from compute-toys/submodule
davidar Dec 17, 2024
713c574
Bump jotai from 2.10.3 to 2.10.4
dependabot[bot] Dec 17, 2024
d0dfb74
Merge pull request #210 from compute-toys/dependabot/npm_and_yarn/jot…
davidar Dec 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Edge runtime compat
  • Loading branch information
davidar committed Aug 19, 2024
commit 5ab112190626e0564abcbec458039c68a7e2357b
3 changes: 3 additions & 0 deletions lib/view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { fromUniformActiveSettings } from 'components/editor/uniformsliders';
import { useSetAtom } from 'jotai';
import { SUPABASE_SHADERTHUMB_BUCKET_NAME } from 'lib/db/supabaseclient';
import { getFullyQualifiedSupabaseBucketURL } from 'lib/util/urlutils';
import dynamic from 'next/dynamic';
import Head from 'next/head';
import { useRouter } from 'next/router';
import { useEffect } from 'react';
Expand Down Expand Up @@ -159,3 +160,5 @@ export function useShader(props) {
}
}, [router.isReady]);
}

export const DynamicEditor = dynamic(() => import('components/editor/editor'), { ssr: false });
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@monaco-editor/react": "^4.4.5",
"@mui/icons-material": "^5.14.14",
"@mui/lab": "^5.0.0-alpha.149",
"@mui/material": "^5.14.14",
"@mui/utils": "^5.14.14",
"@mui/icons-material": "^5.16.7",
"@mui/lab": "^5.0.0-alpha.173",
"@mui/material": "^5.16.7",
"@mui/utils": "^5.16.6",
"@next/bundle-analyzer": "^12.1.6",
"@octokit/rest": "^18.12.0",
"@react-hook/resize-observer": "^1.2.5",
Expand All @@ -36,7 +36,7 @@
"jotai": "^2.4.3",
"jotai-game": "^0.1.0",
"monaco-editor": "^0.33.0",
"next": "^14.1.1",
"next": "^14.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-draggable": "^4.4.5",
Expand Down
2 changes: 2 additions & 0 deletions pages/api/auth.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { supabase } from 'lib/db/supabaseclient';
import { NextApiRequest, NextApiResponse } from 'next';

export const runtime = 'edge';

const handler = (req: NextApiRequest, res: NextApiResponse) => {
supabase.auth.api.setAuthCookie(req, res);
};
Expand Down
2 changes: 2 additions & 0 deletions pages/api/confirm.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { supabase } from 'lib/db/supabaseclient';
import { NextApiRequest, NextApiResponse } from 'next';

export const runtime = 'edge';

const handler = async (req: NextApiRequest, res: NextApiResponse) => {
const { email, token, type } = req.body;

Expand Down
2 changes: 2 additions & 0 deletions pages/api/signup.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { supabase } from 'lib/db/supabaseclient';
import { NextApiRequest, NextApiResponse } from 'next';

export const runtime = 'edge';

const handler = async (req: NextApiRequest, res: NextApiResponse) => {
const { email, username, password } = req.body;

Expand Down
7 changes: 4 additions & 3 deletions pages/embed/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';
import Editor from 'components/editor/editor';
import { fetchShader, useShader } from 'lib/view';
import { DynamicEditor, fetchShader, useShader } from 'lib/view';

export const runtime = 'experimental-edge';

export async function getServerSideProps(context) {
const id = Number(context.params.id);
Expand All @@ -15,7 +16,7 @@ export default function Index(props) {
<style>{`
body { overflow: hidden; }
`}</style>
<Editor embed={true} />
<DynamicEditor embed={true} />
</div>
);
}
2 changes: 2 additions & 0 deletions pages/list/[page].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import Link from 'next/link';
import { Fragment } from 'react';
import { Item, theme } from 'theme/theme';

export const runtime = 'experimental-edge';

const SHADERS_PER_PAGE = 12;

const getPagination = (page: number, size: number) => {
Expand Down
2 changes: 2 additions & 0 deletions pages/profile/[username].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { CssTextField, Item, theme } from 'theme/theme';
import { ProfileShaders } from '../../components/profileshaders';
import { definitions } from '../../types/supabase';

export const runtime = 'experimental-edge';

const PROFILE_AVATAR_WIDTH = 96;

async function loadShaders(username: string) {
Expand Down
7 changes: 4 additions & 3 deletions pages/view/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';
import Editor from 'components/editor/editor';
import { buildHead, fetchShader, useShader } from 'lib/view';
import { buildHead, DynamicEditor, fetchShader, useShader } from 'lib/view';

export const runtime = 'experimental-edge';

export async function getServerSideProps(context) {
const id = Number(context.params.id);
Expand All @@ -13,7 +14,7 @@ export default function Index(props) {
return (
<div>
{props.shader ? buildHead(props.shader) : null}
<Editor />
<DynamicEditor />
</div>
);
}
Loading