Add nodejs

This commit is contained in:
Damillora 2021-03-25 12:04:09 +07:00
parent 29644d15c0
commit 2be15b57e8
7 changed files with 1923 additions and 1 deletions

12
Next/.gitignore vendored Normal file
View File

@ -0,0 +1,12 @@
// .gitnignore
# next.js build output
.next
# dotenv environment variables file (build for Zeit Now)
.env
.env.build
# Dependency directories
node_modules/
# Logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*

2
Next/next-env.d.ts vendored Normal file
View File

@ -0,0 +1,2 @@
/// <reference types="next" />
/// <reference types="next/types/global" />

1842
Next/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

24
Next/package.json Normal file
View File

@ -0,0 +1,24 @@
{
"name": "testappruna",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"author": "",
"license": "ISC",
"dependencies": {
"next": "^10.0.9",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@types/node": "^14.14.35",
"@types/react": "^17.0.3",
"typescript": "^4.2.3"
}
}

6
Next/pages/index.tsx Normal file
View File

@ -0,0 +1,6 @@
function Index() {
return (
<p>Hello World</p>
);
}
export default Index;

36
Next/tsconfig.json Normal file
View File

@ -0,0 +1,36 @@
{
"compilerOptions": {
"target": "ES2015",
"module": "ESNext",
"importHelpers": true,
"strict": true,
"noImplicitAny": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noPropertyAccessFromIndexSignature": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"noEmit": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"esModuleInterop": true
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}

View File

@ -49,7 +49,7 @@ namespace TestAppRuna
{
options.Authority = "https://accounts.nanao.moe/auth/realms/staging";
options.Audience = "testappruna";
}
}
);
}