mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 10:25:58 +00:00
prettier lint login
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
extends: 'next/core-web-vitals',
|
extends: "next/core-web-vitals",
|
||||||
ignorePatterns: ['external/**/*.ts'],
|
ignorePatterns: ["external/**/*.ts"],
|
||||||
};
|
};
|
||||||
|
|||||||
2
apps/login/.vscode/settings.json
vendored
2
apps/login/.vscode/settings.json
vendored
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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: "/**",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Tab } from '#/ui/Tab';
|
import { Tab } from "#/ui/Tab";
|
||||||
|
|
||||||
export type Item = {
|
export type Item = {
|
||||||
text: string;
|
text: string;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from "react";
|
||||||
|
|
||||||
export const ZitadelLogoDark: FC = (props) => (
|
export const ZitadelLogoDark: FC = (props) => (
|
||||||
<svg
|
<svg
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from "react";
|
||||||
|
|
||||||
export const ZitadelLogoLight: FC = (props) => (
|
export const ZitadelLogoLight: FC = (props) => (
|
||||||
<svg
|
<svg
|
||||||
|
|||||||
Reference in New Issue
Block a user