mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:37:31 +00:00
Merge commit 'fa5187f5e172fcf3c5193dd4479f9820c89cd616' into integrate-login
This commit is contained in:
@@ -1,29 +0,0 @@
|
|||||||
.git
|
|
||||||
.DS_Store
|
|
||||||
node_modules
|
|
||||||
.turbo
|
|
||||||
*.log
|
|
||||||
.next
|
|
||||||
dist
|
|
||||||
dist-ssr
|
|
||||||
*.local
|
|
||||||
.env
|
|
||||||
.cache
|
|
||||||
server/dist
|
|
||||||
public/dist
|
|
||||||
.vscode
|
|
||||||
.idea
|
|
||||||
.vercel
|
|
||||||
.env*.local
|
|
||||||
/test-results/
|
|
||||||
/playwright-report/
|
|
||||||
/blob-report/
|
|
||||||
/playwright/.cache/
|
|
||||||
/out
|
|
||||||
/docker
|
|
||||||
|
|
||||||
Makefile
|
|
||||||
docker-bake.hcl
|
|
||||||
**/*.md
|
|
||||||
**/*.gitignore
|
|
||||||
.git
|
|
35
login/.github/workflows/close_pr.yml
vendored
Normal file
35
login/.github/workflows/close_pr.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
name: Auto-close PRs and guide to correct repo
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types: [opened]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
auto-close:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository_owner == 'zitadel'
|
||||||
|
steps:
|
||||||
|
- name: Comment and close PR
|
||||||
|
uses: actions/github-script@v7
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const message = `
|
||||||
|
👋 **Thanks for your contribution!**
|
||||||
|
|
||||||
|
This repository \`${{ github.repository }}\` is a read-only mirror of our internal development in [\`zitadel/zitadel\`](https://github.com/zitadel/zitadel).
|
||||||
|
Therefore, we close this pull request automatically, but submitting your changes to the main repository is easy:
|
||||||
|
1. Fork and clone zitadel/zitadel
|
||||||
|
2. Create a new branch for your changes
|
||||||
|
3. Pull your changes into the new fork by running `make login-pull LOGIN_REMOTE_URL=<your-typescript-fork-org>/typescript LOGIN_REMOTE_BRANCH=<your-typescript-fork-branch>`.
|
||||||
|
4. Push your changes and open a pull request to zitadel/zitadel
|
||||||
|
`.trim();
|
||||||
|
await github.rest.issues.createComment({
|
||||||
|
...context.repo,
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
body: message
|
||||||
|
});
|
||||||
|
await github.rest.pulls.update({
|
||||||
|
...context.repo,
|
||||||
|
pull_number: context.issue.number,
|
||||||
|
state: "closed"
|
||||||
|
});
|
4
login/.github/workflows/issues.yml
vendored
4
login/.github/workflows/issues.yml
vendored
@@ -4,14 +4,12 @@ on:
|
|||||||
issues:
|
issues:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
pull_request_target:
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
add-to-project:
|
add-to-project:
|
||||||
name: Add issue and community pr to project
|
name: Add issue and community pr to project
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository_owner == 'zitadel'
|
||||||
steps:
|
steps:
|
||||||
- name: add issue
|
- name: add issue
|
||||||
uses: actions/add-to-project@v1.0.2
|
uses: actions/add-to-project@v1.0.2
|
||||||
|
4
login/.github/workflows/test.yml
vendored
4
login/.github/workflows/test.yml
vendored
@@ -2,7 +2,6 @@ name: Quality
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
pull_request_target:
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
force:
|
force:
|
||||||
@@ -18,8 +17,7 @@ jobs:
|
|||||||
name: Ensure Quality
|
name: Ensure Quality
|
||||||
if: github.event_name == 'workflow_dispatch' ||
|
if: github.event_name == 'workflow_dispatch' ||
|
||||||
(github.event_name == 'push' && github.repository_owner != 'zitadel') ||
|
(github.event_name == 'push' && github.repository_owner != 'zitadel') ||
|
||||||
(github.event_name == 'pull_request' && github.repository_owner != 'zitadel') ||
|
(github.event_name == 'pull_request' && github.repository_owner != 'zitadel')
|
||||||
(github.event_name == 'pull_request_target' && github.repository_owner != 'zitadel')
|
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
permissions:
|
permissions:
|
||||||
|
@@ -151,11 +151,11 @@ You can find a more detailed documentation of the different pages [here](./apps/
|
|||||||
|
|
||||||
## Useful Commands
|
## Useful Commands
|
||||||
|
|
||||||
- `make login-quality` - Check the quality of your code against a production build without installing any dependencies besides Docker
|
- `make login-quality` - Check the quality of your code against a production build without installing any dependencies besides Docker
|
||||||
- `pnpm generate` - Build proto stubs for the client package
|
- `pnpm generate` - Build proto stubs for the client package
|
||||||
- `pnpm dev` - Develop all packages and the login app
|
- `pnpm dev` - Develop all packages and the login app
|
||||||
- `pnpm build` - Build all packages and the login app
|
- `pnpm build` - Build all packages and the login app
|
||||||
- `pnpm clean` - Clean up all `node_modules` and `dist` folders (runs each package's clean script)
|
- `pnpm clean` - Clean up all `node_modules` and `dist` folders (runs each package's clean script)
|
||||||
|
|
||||||
Learn more about developing the login UI in the [contribution guide](/CONTRIBUTING.md).
|
Learn more about developing the login UI in the [contribution guide](/CONTRIBUTING.md).
|
||||||
|
|
||||||
|
@@ -75,13 +75,4 @@ export default defineConfig({
|
|||||||
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
|
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
|
||||||
// },
|
// },
|
||||||
],
|
],
|
||||||
|
|
||||||
/* Run local dev server before starting the tests */
|
|
||||||
|
|
||||||
/* webServer: {
|
|
||||||
command: "pnpm start:built",
|
|
||||||
url: process.env.LOGIN_BASE_URL || "http://127.0.0.1:3000",
|
|
||||||
reuseExistingServer: !!process.env.LOGIN_BASE_URL,
|
|
||||||
timeout: 5 * 60_000,
|
|
||||||
},*/
|
|
||||||
});
|
});
|
||||||
|
@@ -14,7 +14,7 @@ export const config = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export async function middleware(request: NextRequest) {
|
export async function middleware(request: NextRequest) {
|
||||||
// escape proxy if the environment is NOT setup for multitenancy
|
// escape proxy if the environment is setup for multitenancy
|
||||||
if (!process.env.ZITADEL_API_URL || !process.env.ZITADEL_SERVICE_USER_TOKEN) {
|
if (!process.env.ZITADEL_API_URL || !process.env.ZITADEL_SERVICE_USER_TOKEN) {
|
||||||
return NextResponse.next();
|
return NextResponse.next();
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
variable "LOGIN_DIR" {
|
||||||
|
default = "./"
|
||||||
|
}
|
||||||
|
|
||||||
variable "DOCKERFILES_DIR" {
|
variable "DOCKERFILES_DIR" {
|
||||||
default = "dockerfiles/"
|
default = "dockerfiles/"
|
||||||
}
|
}
|
||||||
@@ -75,7 +79,7 @@ variable "LOGIN_CORE_MOCK_TAG" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
target "login-core-mock" {
|
target "login-core-mock" {
|
||||||
context = "/apps/login-test-integration/core-mock"
|
context = "${LOGIN_DIR}apps/login-test-integration/core-mock"
|
||||||
contexts = {
|
contexts = {
|
||||||
protos = "target:proto-files"
|
protos = "target:proto-files"
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
FROM typescript-proto-client AS login-client
|
FROM typescript-proto-client AS login-client
|
||||||
COPY packages/zitadel-tsconfig packages/zitadel-tsconfig
|
COPY packages/zitadel-tsconfig packages/zitadel-tsconfig
|
||||||
COPY packages/zitadel-proto packages/zitadel-proto
|
|
||||||
COPY packages/zitadel-client/package.json ./packages/zitadel-client/
|
COPY packages/zitadel-client/package.json ./packages/zitadel-client/
|
||||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
||||||
pnpm install --frozen-lockfile --workspace-root --filter ./packages/zitadel-client
|
pnpm install --frozen-lockfile --workspace-root --filter ./packages/zitadel-client
|
||||||
|
11
login/dockerfiles/login-client.Dockerfile.dockerignore
Normal file
11
login/dockerfiles/login-client.Dockerfile.dockerignore
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
*
|
||||||
|
|
||||||
|
!packages/zitadel-client
|
||||||
|
packages/zitadel-client/dist
|
||||||
|
|
||||||
|
!packages/zitadel-tsconfig
|
||||||
|
|
||||||
|
**/*.md
|
||||||
|
**/*.png
|
||||||
|
**/node_modules
|
||||||
|
**/.turbo
|
13
login/dockerfiles/login-standalone.Dockerfile.dockerignore
Normal file
13
login/dockerfiles/login-standalone.Dockerfile.dockerignore
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
*
|
||||||
|
|
||||||
|
!apps/login
|
||||||
|
apps/login/.next
|
||||||
|
apps/login/dist
|
||||||
|
|
||||||
|
!scripts/healthcheck.js
|
||||||
|
!packages/zitadel-tailwind-config
|
||||||
|
|
||||||
|
**/*.md
|
||||||
|
**/*.png
|
||||||
|
**/node_modules
|
||||||
|
**/.turbo
|
@@ -1,4 +0,0 @@
|
|||||||
src/proto
|
|
||||||
node_modules
|
|
||||||
dist
|
|
||||||
.turbo
|
|
@@ -1,5 +0,0 @@
|
|||||||
zitadel
|
|
||||||
google
|
|
||||||
protoc-gen-openapiv2
|
|
||||||
validate
|
|
||||||
node_modules
|
|
@@ -3,7 +3,7 @@
|
|||||||
"tasks": {
|
"tasks": {
|
||||||
"generate": {
|
"generate": {
|
||||||
"outputs": ["zitadel/**"],
|
"outputs": ["zitadel/**"],
|
||||||
"cache": true
|
"cache": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
run_or_skip.sh
|
|
Reference in New Issue
Block a user