Spaces:
Runtime error
Runtime error
matt HOFFNER
commited on
Commit
β’
0e0987b
1
Parent(s):
600a0b4
barebones next
Browse files- .eslintrc.json +4 -0
- .gitignore +38 -0
- next.config.js +7 -0
- package-lock.json +0 -0
- package.json +23 -0
- src/pages/_app.tsx +18 -0
- src/pages/_document.tsx +13 -0
- src/pages/index.tsx +13 -0
- tsconfig.json +23 -0
.eslintrc.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"extends": "next/core-web-vitals"
|
3 |
+
}
|
4 |
+
|
.gitignore
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
2 |
+
|
3 |
+
# dependencies
|
4 |
+
/node_modules
|
5 |
+
/.pnp
|
6 |
+
.pnp.js
|
7 |
+
|
8 |
+
# testing
|
9 |
+
/coverage
|
10 |
+
|
11 |
+
# next.js
|
12 |
+
/.next/
|
13 |
+
/out/
|
14 |
+
|
15 |
+
# production
|
16 |
+
/build
|
17 |
+
|
18 |
+
# misc
|
19 |
+
.DS_Store
|
20 |
+
*.pem
|
21 |
+
|
22 |
+
# debug
|
23 |
+
npm-debug.log*
|
24 |
+
yarn-debug.log*
|
25 |
+
yarn-error.log*
|
26 |
+
|
27 |
+
# local env files
|
28 |
+
.env*.local
|
29 |
+
|
30 |
+
# vercel
|
31 |
+
.vercel
|
32 |
+
|
33 |
+
# typescript
|
34 |
+
*.tsbuildinfo
|
35 |
+
next-env.d.ts
|
36 |
+
|
37 |
+
# Docker secrets used for local dev
|
38 |
+
.secrets
|
next.config.js
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/** @type {import('next').NextConfig} */
|
2 |
+
const nextConfig = {
|
3 |
+
output: "standalone",
|
4 |
+
reactStrictMode: true,
|
5 |
+
};
|
6 |
+
|
7 |
+
module.exports = nextConfig;
|
package-lock.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
package.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "web-llm-embed",
|
3 |
+
"version": "0.0.1-alpha",
|
4 |
+
"license": "MIT",
|
5 |
+
"scripts": {
|
6 |
+
"build": "next build",
|
7 |
+
"dev": "next dev",
|
8 |
+
"lint": "next lint",
|
9 |
+
"start": "next start"
|
10 |
+
},
|
11 |
+
"dependencies": {
|
12 |
+
"@types/node": "20.1.4",
|
13 |
+
"@types/react": "18.2.6",
|
14 |
+
"@types/react-dom": "18.2.4",
|
15 |
+
"eslint": "8.40.0",
|
16 |
+
"eslint-config-next": "13.4.2",
|
17 |
+
"next": "13.4.2",
|
18 |
+
"react": "18.2.0",
|
19 |
+
"react-dom": "18.2.0",
|
20 |
+
"typescript": "5.0.4"
|
21 |
+
}
|
22 |
+
}
|
23 |
+
|
src/pages/_app.tsx
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import Head from "next/head";
|
2 |
+
import { AppProps } from "next/app";
|
3 |
+
|
4 |
+
export interface MyAppProps extends AppProps {
|
5 |
+
emotionCache?: any;
|
6 |
+
}
|
7 |
+
|
8 |
+
export default function MyApp(props: MyAppProps) {
|
9 |
+
const { Component } = props;
|
10 |
+
return (
|
11 |
+
<>
|
12 |
+
<Head>
|
13 |
+
<meta name="viewport" content="initial-scale=1, width=device-width" />
|
14 |
+
</Head>
|
15 |
+
<Component />
|
16 |
+
</>
|
17 |
+
);
|
18 |
+
}
|
src/pages/_document.tsx
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { Html, Head, Main, NextScript } from 'next/document'
|
2 |
+
|
3 |
+
export default function Document() {
|
4 |
+
return (
|
5 |
+
<Html lang="en">
|
6 |
+
<Head />
|
7 |
+
<body>
|
8 |
+
<Main />
|
9 |
+
<NextScript />
|
10 |
+
</body>
|
11 |
+
</Html>
|
12 |
+
)
|
13 |
+
}
|
src/pages/index.tsx
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import Head from "next/head";
|
2 |
+
|
3 |
+
export default function Home() {
|
4 |
+
return (
|
5 |
+
<>
|
6 |
+
<Head>
|
7 |
+
<title>web-llm-embed</title>
|
8 |
+
<meta name="description" content="Web LLM Embed" />
|
9 |
+
</Head>
|
10 |
+
<div>web-llm-embed</div>
|
11 |
+
</>
|
12 |
+
);
|
13 |
+
}
|
tsconfig.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"compilerOptions": {
|
3 |
+
"target": "es5",
|
4 |
+
"lib": ["dom", "dom.iterable", "esnext"],
|
5 |
+
"allowJs": true,
|
6 |
+
"skipLibCheck": true,
|
7 |
+
"strict": true,
|
8 |
+
"forceConsistentCasingInFileNames": true,
|
9 |
+
"noEmit": true,
|
10 |
+
"esModuleInterop": true,
|
11 |
+
"module": "esnext",
|
12 |
+
"moduleResolution": "node",
|
13 |
+
"resolveJsonModule": true,
|
14 |
+
"isolatedModules": true,
|
15 |
+
"jsx": "preserve",
|
16 |
+
"incremental": true,
|
17 |
+
"paths": {
|
18 |
+
"@/*": ["./src/*"]
|
19 |
+
}
|
20 |
+
},
|
21 |
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
22 |
+
"exclude": ["node_modules"]
|
23 |
+
}
|