clean login

This commit is contained in:
Elio Bischof
2025-07-15 23:28:36 +02:00
parent 0eb3881ee1
commit 8588638066
306 changed files with 36 additions and 105 deletions

2
.gitignore vendored
View File

@@ -7,6 +7,7 @@
# Test binary, build with `go test -c` # Test binary, build with `go test -c`
*.test *.test
!.env.test
# Coverage # Coverage
coverage.txt coverage.txt
@@ -68,6 +69,7 @@ docs/docs/apis/proto
/internal/api/ui/login/static/resources/themes/zitadel/css/zitadel.css /internal/api/ui/login/static/resources/themes/zitadel/css/zitadel.css
/internal/api/ui/login/static/resources/themes/zitadel/css/zitadel.css.map /internal/api/ui/login/static/resources/themes/zitadel/css/zitadel.css.map
zitadel-*-* zitadel-*-*
!login/**/zitadel-*-*
# local # local
build/local/*.env build/local/*.env

5
acceptance/.eslintrc.cjs Normal file
View File

@@ -0,0 +1,5 @@
module.exports = {
root: true,
// Use basic ESLint config since the login app has its own detailed config
extends: ["eslint:recommended"],
};

View File

@@ -1,2 +1,3 @@
* *
!.gitignore
!.gitkeep !.gitkeep

View File

@@ -1,2 +1,3 @@
* *
!.gitignore
!.gitkeep !.gitkeep

View File

@@ -1,2 +1,3 @@
* *
!.gitignore
!.gitkeep !.gitkeep

View File

@@ -1,10 +1,21 @@
module.exports = { module.exports = {
root: true, parser: "@typescript-eslint/parser",
// Use basic ESLint config since the login app has its own detailed config extends: ["next", "prettier"],
extends: ["eslint:recommended"], plugins: ["@typescript-eslint"],
settings: { rules: {
next: { "@next/next/no-html-link-for-pages": "off",
rootDir: ["apps/*/"], "@next/next/no-img-element": "off",
"react/no-unescaped-entities": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"no-undef": "off",
},
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
ecmaFeatures: {
jsx: true,
}, },
project: "./tsconfig.json",
}, },
}; };

24
login/.gitignore vendored
View File

@@ -1,26 +1,4 @@
.DS_Store
node_modules
.turbo
*.log
.next
dist
dist-ssr
*.local
.env
server/dist
public/dist
.vscode
.idea
.vercel
.env*.local
/blob-report/
/out
/docker
custom-config.js custom-config.js
.env*.local .env*.local
standalone standalone
tsconfig.tsbuildinfo
# TypeScript build info
tsconfig.tsbuildinfo

View File

@@ -1,21 +0,0 @@
module.exports = {
parser: "@typescript-eslint/parser",
extends: ["next", "prettier"],
plugins: ["@typescript-eslint"],
rules: {
"@next/next/no-html-link-for-pages": "off",
"@next/next/no-img-element": "off",
"react/no-unescaped-entities": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"no-undef": "off",
},
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
project: "./tsconfig.json",
},
};

View File

@@ -1,54 +0,0 @@
# Dockerfile for standalone ZITADEL Login UI
FROM node:18-alpine AS base
# Install dependencies only when needed
FROM base AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app
# Prepare standalone and install dependencies
COPY prepare-standalone.sh package*.json ./
COPY *.standalone.* ./
RUN ./prepare-standalone.sh
# Rebuild the source code only when needed
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
# Prepare standalone configs
RUN ./prepare-standalone.sh --no-install
# Build application
ENV NEXT_TELEMETRY_DISABLED 1
RUN npm run build:standalone
# Production image, copy all the files and run next
FROM base AS runner
WORKDIR /app
ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
COPY --from=builder /app/public ./public
# Set the correct permission for prerender cache
RUN mkdir .next
RUN chown nextjs:nodejs .next
# Automatically leverage output traces to reduce image size
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
USER nextjs
EXPOSE 3000
ENV PORT 3000
ENV HOSTNAME "0.0.0.0"
CMD ["node", "server.js"]

View File

@@ -0,0 +1,5 @@
module.exports = {
root: true,
// Use basic ESLint config since the login app has its own detailed config
extends: ["eslint:recommended"],
};

Some files were not shown because too many files have changed in this diff Show More