mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 05:44:36 +00:00
tsconfig, core
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
extends: ["zitadel"],
|
||||
};
|
||||
5
apps/docs/next-env.d.ts
vendored
5
apps/docs/next-env.d.ts
vendored
@@ -1,5 +0,0 @@
|
||||
/// <reference types="next" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
||||
@@ -1,3 +0,0 @@
|
||||
module.exports = {
|
||||
reactStrictMode: true,
|
||||
};
|
||||
@@ -1,27 +0,0 @@
|
||||
{
|
||||
"name": "@zitadel/docs",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "next build",
|
||||
"start": "next start ",
|
||||
"dev": "next dev -p 3002",
|
||||
"lint": "next lint",
|
||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
|
||||
},
|
||||
"dependencies": {
|
||||
"@zitadel/core": "workspace:*",
|
||||
"@zitadel/utils": "workspace:*",
|
||||
"next": "latest",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@zitadel/tsconfig": "workspace:*",
|
||||
"@types/node": "^17.0.12",
|
||||
"@types/react": "^18.0.22",
|
||||
"@types/react-dom": "^18.0.7",
|
||||
"eslint-config-zitadel": "workspace:*",
|
||||
"typescript": "^4.5.4"
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
import { Button } from "@zitadel/core";
|
||||
import { useIsomorphicLayoutEffect } from "@zitadel/utils";
|
||||
|
||||
export default function Docs() {
|
||||
useIsomorphicLayoutEffect(() => {
|
||||
console.log("zitadel docs page");
|
||||
}, []);
|
||||
return (
|
||||
<div>
|
||||
<h1>zitadel Documentation</h1>
|
||||
<Button>Click me</Button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"exclude": ["node_modules"],
|
||||
"extends": "@zitadel/tsconfig/nextjs.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src",
|
||||
"outDir": "dist",
|
||||
"incremental": true
|
||||
},
|
||||
"include": ["src", "next-env.d.ts"]
|
||||
}
|
||||
4
apps/login/.vscode/settings.json
vendored
Normal file
4
apps/login/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"typescript.tsdk": "../../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib",
|
||||
"typescript.enablePromptUseWorkspaceTsdk": true
|
||||
}
|
||||
@@ -6,11 +6,10 @@
|
||||
"dev": "next dev",
|
||||
"lint": "next lint",
|
||||
"lint-staged": "lint-staged",
|
||||
"prettier": "prettier --write --ignore-unknown .",
|
||||
"prettier:check": "prettier --check --ignore-unknown .",
|
||||
"start": "next start",
|
||||
"test": "yarn prettier:check &nexarn lint",
|
||||
"generate": "buf generate external/zitadel/proto"
|
||||
"generate": "buf generate external/zitadel/proto",
|
||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
|
||||
},
|
||||
"git": {
|
||||
"pre-commit": "lint-staged"
|
||||
@@ -18,13 +17,10 @@
|
||||
"lint-staged": {
|
||||
"*": "prettier --write --ignore-unknown"
|
||||
},
|
||||
"prettier": {
|
||||
"arrowParens": "always",
|
||||
"semi": true,
|
||||
"trailingComma": "all",
|
||||
"singleQuote": true
|
||||
},
|
||||
"dependencies": {
|
||||
"@zitadel/core": "workspace:*",
|
||||
"@zitadel/react": "workspace:*",
|
||||
"@zitadel/next": "workspace:*",
|
||||
"@heroicons/react": "2.0.13",
|
||||
"@next/font": "13.0.5",
|
||||
"@tailwindcss/forms": "0.5.3",
|
||||
@@ -37,10 +33,11 @@
|
||||
"react-dom": "18.2.0",
|
||||
"react-hook-form": "7.39.5",
|
||||
"styled-components": "6.0.0-beta.2",
|
||||
"tinycolor2": "1.4.2",
|
||||
"use-count-up": "3.0.1"
|
||||
"tinycolor2": "1.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@zitadel/tsconfig": "workspace:*",
|
||||
"eslint-config-zitadel": "workspace:*",
|
||||
"@bufbuild/buf": "^1.14.0",
|
||||
"@types/ms": "0.7.31",
|
||||
"@types/node": "18.11.9",
|
||||
@@ -50,13 +47,10 @@
|
||||
"@vercel/git-hooks": "1.0.0",
|
||||
"autoprefixer": "10.4.13",
|
||||
"del-cli": "5.0.0",
|
||||
"eslint": "8.27.0",
|
||||
"eslint-config-next": "13.0.3",
|
||||
"grpc-tools": "1.11.3",
|
||||
"lint-staged": "13.0.3",
|
||||
"make-dir-cli": "3.0.0",
|
||||
"postcss": "8.4.21",
|
||||
"prettier": "2.7.1",
|
||||
"prettier-plugin-tailwindcss": "0.1.13",
|
||||
"tailwindcss": "3.2.4",
|
||||
"ts-proto": "^1.139.0",
|
||||
|
||||
@@ -1,29 +1,11 @@
|
||||
{
|
||||
"extends": "@zitadel/tsconfig/nextjs.json",
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noEmit": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
"incremental": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"#/*": ["./*"]
|
||||
},
|
||||
"plugins": [
|
||||
{
|
||||
"name": "next"
|
||||
}
|
||||
]
|
||||
"plugins": [{ "name": "next" }]
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||
"exclude": ["node_modules", "external"]
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
'use client';
|
||||
|
||||
import { useCountUp } from 'use-count-up';
|
||||
|
||||
const CountUp = ({
|
||||
start,
|
||||
end,
|
||||
duration = 1,
|
||||
}: {
|
||||
start: number;
|
||||
end: number;
|
||||
duration?: number;
|
||||
}) => {
|
||||
const { value } = useCountUp({
|
||||
isCounting: true,
|
||||
end,
|
||||
start,
|
||||
duration,
|
||||
decimalPlaces: 1,
|
||||
});
|
||||
|
||||
return <span>{value}</span>;
|
||||
};
|
||||
|
||||
export default CountUp;
|
||||
Reference in New Issue
Block a user