prettier lint login

This commit is contained in:
Max Peintner
2023-04-28 10:16:04 +02:00
parent b782b63dea
commit 5da7e083bc
10 changed files with 21 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
module.exports = { module.exports = {
extends: 'next/core-web-vitals', extends: "next/core-web-vitals",
ignorePatterns: ['external/**/*.ts'], ignorePatterns: ["external/**/*.ts"],
}; };

View File

@@ -1,4 +1,4 @@
{ {
"typescript.tsdk": "../../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib", "typescript.tsdk": "../../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true "typescript.enablePromptUseWorkspaceTsdk": true
} }

View File

@@ -9,16 +9,16 @@ const nextConfig = {
images: { images: {
remotePatterns: [ remotePatterns: [
{ {
protocol: 'https', protocol: "https",
hostname: 'zitadel.com', hostname: "zitadel.com",
port: '', port: "",
pathname: '/**', pathname: "/**",
}, },
{ {
protocol: 'https', protocol: "https",
hostname: 'zitadel.cloud', hostname: "zitadel.cloud",
port: '', port: "",
pathname: '/**', pathname: "/**",
}, },
], ],
}, },

View File

@@ -4,7 +4,7 @@
"scripts": { "scripts": {
"build": "next build", "build": "next build",
"dev": "next dev", "dev": "next dev",
"lint": "next lint", "lint": "next lint && prettier --check .",
"lint-staged": "lint-staged", "lint-staged": "lint-staged",
"start": "next start", "start": "next start",
"test": "yarn prettier:check &nexarn lint", "test": "yarn prettier:check &nexarn lint",

View File

@@ -1,9 +1,9 @@
# ZITADEL Login UI # ZITADEL Login UI
This is going to be our next UI for the hosted login. It's based on Next.js 13 and its introduced `app/` directory (currently beta). This is going to be our next UI for the hosted login. It's based on Next.js 13 and its introduced `app/` directory (currently beta).
The Login UI should provide the following functionality: The Login UI should provide the following functionality:
- **Login API:** Request and Submit state to the Login API - **Login API:** Request and Submit state to the Login API
- **Server Components:** Making server-first the default for the most dynamic applications. - **Server Components:** Making server-first the default for the most dynamic applications.
- **Streaming:** Display instant loading states and stream in updates (Register with [Liquid](https://liquidjs.com/)) - **Streaming:** Display instant loading states and stream in updates (Register with [Liquid](https://liquidjs.com/))
@@ -16,4 +16,3 @@ The Login UI should provide the following functionality:
## Documentation ## Documentation
https://beta.nextjs.org/docs https://beta.nextjs.org/docs

View File

@@ -1,4 +1,4 @@
import { ArrowRightIcon } from '@heroicons/react/24/solid'; import { ArrowRightIcon } from "@heroicons/react/24/solid";
export const ExternalLink = ({ export const ExternalLink = ({
children, children,

View File

@@ -1,9 +1,9 @@
import clsx from 'clsx'; import clsx from "clsx";
export const SkeletonCard = ({ isLoading }: { isLoading?: boolean }) => ( export const SkeletonCard = ({ isLoading }: { isLoading?: boolean }) => (
<div <div
className={clsx('rounded-2xl bg-gray-900/80 p-4', { className={clsx("rounded-2xl bg-gray-900/80 p-4", {
'relative overflow-hidden before:absolute before:inset-0 before:-translate-x-full before:animate-[shimmer_1.5s_infinite] before:bg-gradient-to-r before:from-transparent before:via-white/10 before:to-transparent': "relative overflow-hidden before:absolute before:inset-0 before:-translate-x-full before:animate-[shimmer_1.5s_infinite] before:bg-gradient-to-r before:from-transparent before:via-white/10 before:to-transparent":
isLoading, isLoading,
})} })}
> >

View File

@@ -1,4 +1,4 @@
import { Tab } from '#/ui/Tab'; import { Tab } from "#/ui/Tab";
export type Item = { export type Item = {
text: string; text: string;

View File

@@ -1,4 +1,4 @@
import { FC } from 'react'; import { FC } from "react";
export const ZitadelLogoDark: FC = (props) => ( export const ZitadelLogoDark: FC = (props) => (
<svg <svg

View File

@@ -1,4 +1,4 @@
import { FC } from 'react'; import { FC } from "react";
export const ZitadelLogoLight: FC = (props) => ( export const ZitadelLogoLight: FC = (props) => (
<svg <svg