Compare commits

..

No commits in common. 'dev' and 'refactor/config' have entirely different histories.

@ -1,18 +0,0 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
- package-ecosystem: "npm"
directory: "/app"
target-branch: "dev"
schedule:
interval: "weekly"
- package-ecosystem: "gomod"
directory: "/"
target-branch: "dev"
schedule:
interval: "weekly"

@ -1,266 +1,265 @@
name: Build name: Build
on: on:
push: push:
branches: branches:
- '*' - '*'
- '!weblate' paths:
paths: - "app/**/*.js"
- "app/**/*.js" - "app/**/*.vue"
- "app/**/*.vue" - "app/src/language/**/*.po"
- "app/src/language/**/*.po" - "app/i18n.json"
- "app/i18n.json" - "app/package.json"
- "app/package.json" - "app/.env*"
- "app/.env*" - "**/*.go"
- "**/*.go" - "go.mod"
- "go.mod" - "go.sum"
- "go.sum" - ".github/workflows/build*.yml"
- ".github/workflows/build*.yml" - "resources/docker/docker/*"
- "resources/docker/docker/*" - "resources/development/*"
- "resources/development/*" - "resources/demo/*"
- "resources/demo/*" - "Dockerfile"
- "Dockerfile" - "demo.Dockerfile"
- "demo.Dockerfile" pull_request:
pull_request: types: [ opened, synchronize, reopened ]
types: [ opened, synchronize, reopened ] paths:
paths: - "**/*.js"
- "**/*.js" - "**/*.vue"
- "**/*.vue" - "app/package.json"
- "app/package.json" - "app/.env*"
- "app/.env*" - "**/*.go"
- "**/*.go" - "go.mod"
- "go.mod" - "go.sum"
- "go.sum" - ".github/workflows/*.yml"
- ".github/workflows/*.yml" - "resources/docker/docker/*"
- "resources/docker/docker/*" - "resources/development/*"
- "resources/development/*" - "resources/demo/*"
- "resources/demo/*" release:
release: types:
types: - published
- published
jobs: jobs:
build_app: build_app:
runs-on: macos-14 runs-on: macos-14
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up nodejs - name: Set up nodejs
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: current node-version: current
- name: Install dependencies - name: Install dependencies
run: | run: |
corepack enable corepack enable
corepack prepare pnpm@latest --activate corepack prepare pnpm@latest --activate
pnpm install pnpm install
working-directory: app working-directory: app
- name: Check frontend code style - name: Check frontend code style
run: | run: |
pnpm run lint pnpm run lint
working-directory: app working-directory: app
- name: Check frontend types - name: Check frontend types
run: | run: |
pnpm run typecheck pnpm run typecheck
working-directory: app working-directory: app
- name: Build - name: Build
run: | run: |
npx browserslist@latest --update-db npx browserslist@latest --update-db
pnpm build pnpm build
working-directory: app working-directory: app
- name: Archive app artifacts - name: Archive app artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: app-dist name: app-dist
path: app/dist path: app/dist
- name: Prepare publish - name: Prepare publish
if: github.event_name == 'release' if: github.event_name == 'release'
run: | run: |
cp README*.md app/dist cp README*.md app/dist
find app/dist -printf '%P\n' | tar -C app/dist --no-recursion -zcvf app-dist.tar.gz -T - find app/dist -printf '%P\n' | tar -C app/dist --no-recursion -zcvf app-dist.tar.gz -T -
- name: Publish - name: Publish
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
if: github.event_name == 'release' if: github.event_name == 'release'
with: with:
files: app-dist.tar.gz files: app-dist.tar.gz
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build_app needs: build_app
strategy: strategy:
matrix: matrix:
goos: [ linux, darwin ] goos: [ linux, darwin ]
goarch: [ amd64, 386, arm64 ] goarch: [ amd64, 386, arm64 ]
exclude: exclude:
# Exclude i386 on darwin. # Exclude i386 on darwin.
- goarch: 386 - goarch: 386
goos: darwin goos: darwin
include: include:
# BEGIN Linux ARM 5 6 7 # BEGIN Linux ARM 5 6 7
- goos: linux - goos: linux
goarch: arm goarch: arm
goarm: 7 goarm: 7
- goos: linux - goos: linux
goarch: arm goarch: arm
goarm: 6 goarm: 6
- goos: linux - goos: linux
goarch: arm goarch: arm
goarm: 5 goarm: 5
# END Linux ARM 5 6 7 # END Linux ARM 5 6 7
env: env:
CGO_ENABLED: 1 CGO_ENABLED: 1
GOOS: ${{ matrix.goos }} GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }} GOARCH: ${{ matrix.goarch }}
GOARM: ${{ matrix.goarm }} GOARM: ${{ matrix.goarm }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: ^1.23.0 go-version: ^1.22.0
- name: Setup compiler environment - name: Setup compiler environment
id: info id: info
run: | run: |
export _NAME=nginx-ui-$(jq ".$GOOS[\"$GOARCH$GOARM\"].name" -r < .github/build/build_info.json) export _NAME=nginx-ui-$(jq ".$GOOS[\"$GOARCH$GOARM\"].name" -r < .github/build/build_info.json)
export _ARCH=$(jq ".$GOOS[\"$GOARCH$GOARM\"].arch" -r < .github/build/build_info.json) export _ARCH=$(jq ".$GOOS[\"$GOARCH$GOARM\"].arch" -r < .github/build/build_info.json)
export _ABI=$(jq ".$GOOS[\"$GOARCH$GOARM\"].abi // \"\"" -r < .github/build/build_info.json) export _ABI=$(jq ".$GOOS[\"$GOARCH$GOARM\"].abi // \"\"" -r < .github/build/build_info.json)
export _ARTIFACT=nginx-ui-$GOOS-$GOARCH$(if [[ "$GOARM" ]]; then echo "v$GOARM"; fi) export _ARTIFACT=nginx-ui-$GOOS-$GOARCH$(if [[ "$GOARM" ]]; then echo "v$GOARM"; fi)
echo "GOOS: $GOOS, GOARCH: $GOARCH, GOARM: $GOARM, ABI: $_ABI, RELEASE_NAME: $_NAME, ARTIFACT_NAME: $_ARTIFACT" echo "GOOS: $GOOS, GOARCH: $GOARCH, GOARM: $GOARM, ABI: $_ABI, RELEASE_NAME: $_NAME, ARTIFACT_NAME: $_ARTIFACT"
echo "ARCH_NAME=$_ARCH" >> $GITHUB_ENV echo "ARCH_NAME=$_ARCH" >> $GITHUB_ENV
echo "ABI=$_ABI" >> $GITHUB_ENV echo "ABI=$_ABI" >> $GITHUB_ENV
echo "DIST=$_NAME" >> $GITHUB_ENV echo "DIST=$_NAME" >> $GITHUB_ENV
echo "ARTIFACT=$_ARTIFACT" >> $GITHUB_ENV echo "ARTIFACT=$_ARTIFACT" >> $GITHUB_ENV
- name: Install musl cross compiler - name: Install musl cross compiler
if: env.GOOS == 'linux' if: env.GOOS == 'linux'
uses: 0xJacky/musl-cross-compilers@v0.6.6 uses: 0xJacky/musl-cross-compilers@v0.6.6
id: musl id: musl
with: with:
target: ${{ env.ARCH_NAME }}-linux-musl${{ env.ABI }} target: ${{ env.ARCH_NAME }}-linux-musl${{ env.ABI }}
- name: Post install musl cross compiler - name: Post install musl cross compiler
if: env.GOOS == 'linux' if: env.GOOS == 'linux'
run: | run: |
echo "PATH=${{ steps.musl.outputs.path }}:$PATH" >> $GITHUB_ENV echo "PATH=${{ steps.musl.outputs.path }}:$PATH" >> $GITHUB_ENV
echo "CC=${{ env.ARCH_NAME }}-linux-musl${{ env.ABI }}-gcc" >> $GITHUB_ENV echo "CC=${{ env.ARCH_NAME }}-linux-musl${{ env.ABI }}-gcc" >> $GITHUB_ENV
echo "CXX=${{ env.ARCH_NAME }}-linux-musl${{ env.ABI }}-g++" >> $GITHUB_ENV echo "CXX=${{ env.ARCH_NAME }}-linux-musl${{ env.ABI }}-g++" >> $GITHUB_ENV
echo "LD_FLAGS=-w --extldflags '-static'" >> $GITHUB_ENV echo "LD_FLAGS=-w --extldflags '-static'" >> $GITHUB_ENV
- name: Install darwin cross compiler - name: Install darwin cross compiler
if: env.GOOS == 'darwin' if: env.GOOS == 'darwin'
run: | run: |
curl -L https://github.com/Hintay/crossosx/releases/latest/download/crossosx.tar.zst -o crossosx.tar.zst curl -L https://github.com/Hintay/crossosx/releases/latest/download/crossosx.tar.zst -o crossosx.tar.zst
tar xvaf crossosx.tar.zst tar xvaf crossosx.tar.zst
echo "LD_LIBRARY_PATH=$(pwd)/crossosx/lib/" >> $GITHUB_ENV echo "LD_LIBRARY_PATH=$(pwd)/crossosx/lib/" >> $GITHUB_ENV
echo "PATH=$(pwd)/crossosx/bin/:$PATH" >> $GITHUB_ENV echo "PATH=$(pwd)/crossosx/bin/:$PATH" >> $GITHUB_ENV
echo "CC=${{ env.ARCH_NAME }}-clang" >> $GITHUB_ENV echo "CC=${{ env.ARCH_NAME }}-clang" >> $GITHUB_ENV
echo "CXX=${{ env.ARCH_NAME }}-clang++" >> $GITHUB_ENV echo "CXX=${{ env.ARCH_NAME }}-clang++" >> $GITHUB_ENV
echo "LD_FLAGS=-w" >> $GITHUB_ENV echo "LD_FLAGS=-w" >> $GITHUB_ENV
- name: Download app artifacts - name: Download app artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: app-dist name: app-dist
path: app/dist path: app/dist
- name: Build - name: Build
run: | run: |
mkdir -p dist mkdir -p dist
go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o dist/nginx-ui -v main.go go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o dist/nginx-ui -v main.go
- name: Archive backend artifacts - name: Archive backend artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ${{ env.ARTIFACT }} name: ${{ env.ARTIFACT }}
path: dist/nginx-ui path: dist/nginx-ui
- name: Prepare publish - name: Prepare publish
if: github.event_name == 'release' if: github.event_name == 'release'
run: | run: |
cp README*.md ./dist cp README*.md ./dist
find dist -printf '%P\n' | tar -C dist --no-recursion -zcvf ${{ env.DIST }}.tar.gz -T - find dist -printf '%P\n' | tar -C dist --no-recursion -zcvf ${{ env.DIST }}.tar.gz -T -
openssl dgst -sha512 ${{ env.DIST }}.tar.gz | sed 's/([^)]*)//g' | awk '{print $NF}' >> ${{ env.DIST }}.tar.gz.digest openssl dgst -sha512 ${{ env.DIST }}.tar.gz | sed 's/([^)]*)//g' | awk '{print $NF}' >> ${{ env.DIST }}.tar.gz.digest
- name: Publish - name: Publish
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
if: github.event_name == 'release' if: github.event_name == 'release'
with: with:
files: | files: |
${{ env.DIST }}.tar.gz ${{ env.DIST }}.tar.gz
${{ env.DIST }}.tar.gz.digest ${{ env.DIST }}.tar.gz.digest
docker-build: docker-build:
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
env: env:
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/arm/v5 PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/arm/v5
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Get the version - name: Get the version
id: get_version id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- name: Download artifacts - name: Download artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
path: ./dist path: ./dist
- name: Prepare Artifacts - name: Prepare Artifacts
run: chmod +x ./dist/nginx-ui-*/nginx-ui run: chmod +x ./dist/nginx-ui-*/nginx-ui
- name: Set up Docker Buildx - name: Set up Docker Buildx
id: buildx id: buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
username: ${{ secrets.DOCKERHUB_USER }} username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Prepare Dockerfile - name: Prepare Dockerfile
if: github.event_name == 'release' if: github.event_name == 'release'
run: | run: |
cp ./Dockerfile ./dist cp ./Dockerfile ./dist
cp -rp ./resources ./dist cp -rp ./resources ./dist
- name: Build and push - name: Build and push
if: github.event_name == 'release' if: github.event_name == 'release'
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: ./dist context: ./dist
file: ./dist/Dockerfile file: ./dist/Dockerfile
platforms: ${{ env.PLATFORMS }} platforms: ${{ env.PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: | tags: |
uozi/nginx-ui:latest uozi/nginx-ui:latest
uozi/nginx-ui:${{ steps.get_version.outputs.VERSION }} uozi/nginx-ui:${{ steps.get_version.outputs.VERSION }}
- name: Prepare Demo Dockerfile - name: Prepare Demo Dockerfile
run: | run: |
cp ./demo.Dockerfile ./dist cp ./demo.Dockerfile ./dist
cp -rp ./resources ./dist cp -rp ./resources ./dist
- name: Build and push demo - name: Build and push demo
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: ./dist context: ./dist
file: ./dist/demo.Dockerfile file: ./dist/demo.Dockerfile
platforms: ${{ env.PLATFORMS }} platforms: ${{ env.PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: | tags: |
uozi/nginx-ui-demo:latest uozi/nginx-ui-demo:latest

@ -1,99 +0,0 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
paths-ignore:
- '**/*.md'
- '**/*.ini'
schedule:
- cron: '34 6 * * *'
jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
# only required for workflows in private repositories
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
- language: go
build-mode: autobuild
- language: javascript-typescript
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

@ -1,64 +1,64 @@
name: Build Documents name: Build Documents
on: on:
push: push:
branches: branches:
- '*' - '*'
paths: paths:
- "docs/**/*.js" - "docs/**/*.js"
- "docs/**/*.ts" - "docs/**/*.ts"
- "docs/**/*.vue" - "docs/**/*.vue"
- "docs/package.json" - "docs/package.json"
- "docs/.env*" - "docs/.env*"
- "docs/**/*.md" - "docs/**/*.md"
- ".github/workflows/doc*.yml" - ".github/workflows/doc*.yml"
pull_request: pull_request:
types: [ opened, synchronize, reopened ] types: [ opened, synchronize, reopened ]
paths: paths:
- "docs/**/*.js" - "docs/**/*.js"
- "docs/**/*.ts" - "docs/**/*.ts"
- "docs/**/*.vue" - "docs/**/*.vue"
- "docs/package.json" - "docs/package.json"
- "docs/.env*" - "docs/.env*"
- "docs/**/*.md" - "docs/**/*.md"
- ".github/workflows/doc*.yml" - ".github/workflows/doc*.yml"
jobs: jobs:
build: build:
runs-on: macos-14 runs-on: macos-14
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up nodejs - name: Set up nodejs
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 21.x node-version: 21.x
- name: Install dependencies - name: Install dependencies
run: | run: |
corepack enable corepack enable
corepack prepare pnpm@latest --activate corepack prepare pnpm@latest --activate
pnpm install pnpm install
working-directory: docs working-directory: docs
- name: Build - name: Build
run: COMMIT_REF=$(git rev-parse HEAD) pnpm docs:build run: COMMIT_REF=$(git rev-parse HEAD) pnpm docs:build
working-directory: docs working-directory: docs
- name: Archive artifacts - name: Archive artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: dist name: dist
path: docs/.vitepress/dist path: docs/.vitepress/dist
- name: Deploy to server - name: Deploy to server
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: easingthemes/ssh-deploy@main uses: easingthemes/ssh-deploy@main
env: env:
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }} REMOTE_USER: ${{ secrets.REMOTE_USER }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
TARGET: ${{ secrets.REMOTE_TARGET }} TARGET: ${{ secrets.REMOTE_TARGET }}
SOURCE: "docs/.vitepress/dist/" SOURCE: "docs/.vitepress/dist/"
ARGS: "-rlgoDzvc -i --delete" ARGS: "-rlgoDzvc -i --delete"

@ -1,32 +0,0 @@
name: Weblate Pull Branch
on:
workflow_dispatch:
pull_request_target:
branches:
- 'dev'
types: [ closed ]
release:
types:
- published
jobs:
weblate:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true || github.event.action == 'published' || github.event_name == 'workflow_dispatch'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install wlc
run: pip install wlc
- name: Update Repository
env:
WEBLATE_TOKEN: ${{ secrets.WEBLATE_TOKEN }}
run: wlc --key $WEBLATE_TOKEN pull

@ -1,86 +0,0 @@
name: Synchronize Weblate Branch
on:
workflow_dispatch:
schedule:
- cron: '15 18 * * *'
env:
DEVELOP_BRANCH: dev
WEBLATE_BRANCH: weblate
jobs:
check:
name: Check Branches
runs-on: ubuntu-latest
outputs:
behind: ${{ steps.check.outputs.behind }}
ahead: ${{ steps.check.outputs.ahead }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ env.DEVELOP_BRANCH }}
clean: false
fetch-depth: 0
- name: Check branches
id: check
run: |
git fetch --all
git branch $WEBLATE_BRANCH origin/$WEBLATE_BRANCH
echo "behind=$(git rev-list --count $WEBLATE_BRANCH..$DEVELOP_BRANCH)" >> $GITHUB_OUTPUT
echo "ahead=$(git rev-list --count $DEVELOP_BRANCH..$WEBLATE_BRANCH)" >> $GITHUB_OUTPUT
- name: Echo outputs
run: |
echo "behind: ${{ steps.check.outputs.behind }}"
echo "ahead: ${{ steps.check.outputs.ahead }}"
force-update:
name: Force Update Weblate Status
runs-on: ubuntu-latest
needs: check
if: ${{ needs.check.outputs.behind > 0 }}
env:
WEBLATE_TOKEN: ${{ secrets.WEBLATE_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install wlc
run: pip install wlc
- name: Update weblate repository
run: wlc --key $WEBLATE_TOKEN pull
- name: Push weblate branch
run: wlc --key $WEBLATE_TOKEN push
sync-branch:
name: Sync Weblate Branch
runs-on: ubuntu-latest
needs: [check, force-update]
if: ${{ needs.check.outputs.ahead > 0 && always() }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ env.DEVELOP_BRANCH }}
fetch-depth: 0
- name: Set up git
run: |
git config --global user.name 'Weblate'
git config --global user.email 'weblate@nginxui.com'
- name: Push changes of weblate branch to develop branch
run: |
git fetch origin
git merge --ff-only -- origin/${{ env.WEBLATE_BRANCH }}
git push origin ${{ env.DEVELOP_BRANCH }}

1
.gitignore vendored

@ -10,4 +10,3 @@ dist
nginx-ui nginx-ui
resources/development/nginx resources/development/nginx
app/.env app/.env
app/.status_hash

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="database" uuid="31ab1005-9ff6-47e2-9df8-6c521ae42819">
<driver-ref>sqlite.xerial</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>org.sqlite.JDBC</jdbc-driver>
<jdbc-url>jdbc:sqlite:$PROJECT_DIR$/database.db</jdbc-url>
<working-dir>$ProjectFileDir$</working-dir>
</data-source>
</component>
</project>

@ -1,3 +0,0 @@
[weblate]
url = https://weblate.nginxui.com/api/
translation = nginx-ui

@ -69,7 +69,7 @@ Para consultar la documentación, visite [nginxui.com](https://nginxui.com).
## Sobre el proyecto ## Sobre el proyecto
![Dashboard](resources/screenshots/dashboard_es.png) ![Dashboard](resources/screenshots/dashboard_en.png)
### Demostración ### Demostración
URL:[https://demo.nginxui.com](https://demo.nginxui.com) URL:[https://demo.nginxui.com](https://demo.nginxui.com)
@ -144,7 +144,7 @@ Puede visitar [latest release](https://github.com/0xJacky/nginx-ui/releases/late
### Uso ### Uso
Al ejecutar por primera vez la UI de Nginx, visite en su navegador `http://<your_server_ip>:<listen_port>` para completar las configuraciones posteriores. Al ejecutar por primera vez la UI de Nginx, visite en su navegador `http://<your_server_ip>:<listen_port>/install` para completar las configuraciones posteriores.
#### Desde el ejecutable #### Desde el ejecutable
**Ejecutar UI Nginx en la terminal** **Ejecutar UI Nginx en la terminal**
@ -213,7 +213,7 @@ En plataformas que no tienen una versión de compilación oficial, pueden compil
- Make - Make
- Golang 1.23+ - Golang 1.22+
- node.js 21+ - node.js 21+

@ -158,7 +158,7 @@ Bạn có thể truy cập [latest release](https://github.com/0xJacky/nginx-ui/
### Sử dụng ### Sử dụng
Trong lần chạy đầu tiên, vui lòng truy cập `http://<your_server_ip>:<listen_port>` bằng trình duyệt của bạn để hoàn tất các cấu hình. Trong lần chạy đầu tiên, vui lòng truy cập `http://<your_server_ip>:<listen_port>/install` bằng trình duyệt của bạn để hoàn tất các cấu hình.
#### Chạy với Executable #### Chạy với Executable
**Chạy giao diện người dùng Nginx trong Terminal** **Chạy giao diện người dùng Nginx trong Terminal**
@ -277,7 +277,7 @@ Trên các nền tảng không có phiên bản xây dựng chính thức, chún
### Điều kiện cần ### Điều kiện cần
- Make - Make
- Golang 1.23+ - Golang 1.22+
- node.js 21+ - node.js 21+
```shell ```shell

@ -137,7 +137,7 @@ Nginx UI 可在以下平台中使用:
### 使用方法 ### 使用方法
第一次运行 Nginx UI 时,请在浏览器中访问 `http://<your_server_ip>:<listen_port>` 完成后续配置。 第一次运行 Nginx UI 时,请在浏览器中访问 `http://<your_server_ip>:<listen_port>/install` 完成后续配置。
#### 通过执行文件运行 #### 通过执行文件运行
**在终端中运行 Nginx UI** **在终端中运行 Nginx UI**
@ -207,7 +207,7 @@ docker run -dit \
- Make - Make
- Golang 1.23+ - Golang 1.22+
- node.js 21+ - node.js 21+

@ -140,7 +140,7 @@ Nginx UI 可在以下作業系統中使用:
### 使用方法 ### 使用方法
第一次執行 Nginx UI 時,請在網頁瀏覽器中訪問 `http://<your_server_ip>:<listen_port>` 完成後續設定。 第一次執行 Nginx UI 時,請在網頁瀏覽器中訪問 `http://<your_server_ip>:<listen_port>/install` 完成後續設定。
#### 透過執行檔案執行 #### 透過執行檔案執行
@ -212,7 +212,7 @@ docker run -dit \
- Make - Make
- Golang 1.23+ - Golang 1.22+
- node.js 21+ - node.js 21+

@ -18,8 +18,6 @@ Yet another Nginx Web UI, developed by [0xJacky](https://jackyu.cn/) and [Hintay
[![Docker Pulls](https://img.shields.io/docker/pulls/uozi/nginx-ui?label=Pulls&logo=docker)](https://hub.docker.com/r/uozi/nginx-ui "Click to view the image on Docker Hub") [![Docker Pulls](https://img.shields.io/docker/pulls/uozi/nginx-ui?label=Pulls&logo=docker)](https://hub.docker.com/r/uozi/nginx-ui "Click to view the image on Docker Hub")
[![Image Size](https://img.shields.io/docker/image-size/uozi/nginx-ui/latest?label=Image%20Size&logo=docker)](https://hub.docker.com/r/uozi/nginx-ui "Click to view the image on Docker Hub") [![Image Size](https://img.shields.io/docker/image-size/uozi/nginx-ui/latest?label=Image%20Size&logo=docker)](https://hub.docker.com/r/uozi/nginx-ui "Click to view the image on Docker Hub")
[![Translated Status](https://weblate.nginxui.com/widget/nginx-ui/frontend/svg-badge.svg)](https://weblate.nginxui.com/engage/nginx-ui/)
## Documentation ## Documentation
To check out docs, visit [nginxui.com](https://nginxui.com). To check out docs, visit [nginxui.com](https://nginxui.com).
@ -154,7 +152,7 @@ You can visit [latest release](https://github.com/0xJacky/nginx-ui/releases/late
### Usage ### Usage
In the first runtime of Nginx UI, please visit `http://<your_server_ip>:<listen_port>` In the first runtime of Nginx UI, please visit `http://<your_server_ip>:<listen_port>/install`
in your browser to complete the follow-up configurations. in your browser to complete the follow-up configurations.
#### From Executable #### From Executable
@ -275,7 +273,7 @@ On platforms that do not have an official build version, they can be built manua
- Make - Make
- Golang 1.23+ - Golang 1.22+
- node.js 21+ - node.js 21+

@ -12,8 +12,8 @@ import (
"strings" "strings"
) )
func CurrentUser(c *gin.Context) *model.User { func CurrentUser(c *gin.Context) *model.Auth {
return c.MustGet("user").(*model.User) return c.MustGet("user").(*model.Auth)
} }
func ErrHandler(c *gin.Context, err error) { func ErrHandler(c *gin.Context, err error) {

@ -4,7 +4,6 @@ import (
"github.com/0xJacky/Nginx-UI/api" "github.com/0xJacky/Nginx-UI/api"
"github.com/0xJacky/Nginx-UI/internal/cert" "github.com/0xJacky/Nginx-UI/internal/cert"
"github.com/0xJacky/Nginx-UI/internal/cosy" "github.com/0xJacky/Nginx-UI/internal/cosy"
"github.com/0xJacky/Nginx-UI/internal/helper"
"github.com/0xJacky/Nginx-UI/internal/nginx" "github.com/0xJacky/Nginx-UI/internal/nginx"
"github.com/0xJacky/Nginx-UI/internal/notification" "github.com/0xJacky/Nginx-UI/internal/notification"
"github.com/0xJacky/Nginx-UI/model" "github.com/0xJacky/Nginx-UI/model"
@ -26,8 +25,7 @@ type APICertificate struct {
func Transformer(certModel *model.Cert) (certificate *APICertificate) { func Transformer(certModel *model.Cert) (certificate *APICertificate) {
var sslCertificationBytes, sslCertificationKeyBytes []byte var sslCertificationBytes, sslCertificationKeyBytes []byte
var certificateInfo *cert.Info var certificateInfo *cert.Info
if certModel.SSLCertificatePath != "" && if certModel.SSLCertificatePath != "" {
helper.IsUnderDirectory(certModel.SSLCertificatePath, nginx.GetConfPath()) {
if _, err := os.Stat(certModel.SSLCertificatePath); err == nil { if _, err := os.Stat(certModel.SSLCertificatePath); err == nil {
sslCertificationBytes, _ = os.ReadFile(certModel.SSLCertificatePath) sslCertificationBytes, _ = os.ReadFile(certModel.SSLCertificatePath)
if !cert.IsCertificate(string(sslCertificationBytes)) { if !cert.IsCertificate(string(sslCertificationBytes)) {
@ -38,8 +36,7 @@ func Transformer(certModel *model.Cert) (certificate *APICertificate) {
certificateInfo, _ = cert.GetCertInfo(certModel.SSLCertificatePath) certificateInfo, _ = cert.GetCertInfo(certModel.SSLCertificatePath)
} }
if certModel.SSLCertificateKeyPath != "" && if certModel.SSLCertificateKeyPath != "" {
helper.IsUnderDirectory(certModel.SSLCertificateKeyPath, nginx.GetConfPath()) {
if _, err := os.Stat(certModel.SSLCertificateKeyPath); err == nil { if _, err := os.Stat(certModel.SSLCertificateKeyPath); err == nil {
sslCertificationKeyBytes, _ = os.ReadFile(certModel.SSLCertificateKeyPath) sslCertificationKeyBytes, _ = os.ReadFile(certModel.SSLCertificateKeyPath)
if !cert.IsPrivateKey(string(sslCertificationKeyBytes)) { if !cert.IsPrivateKey(string(sslCertificationKeyBytes)) {

@ -21,12 +21,12 @@ type EditConfigJson struct {
func EditConfig(c *gin.Context) { func EditConfig(c *gin.Context) {
name := c.Param("name") name := c.Param("name")
var json struct { var json struct {
Name string `json:"name" binding:"required"` Name string `json:"name" binding:"required"`
Filepath string `json:"filepath" binding:"required"` Filepath string `json:"filepath" binding:"required"`
NewFilepath string `json:"new_filepath" binding:"required"` NewFilepath string `json:"new_filepath" binding:"required"`
Content string `json:"content"` Content string `json:"content"`
SyncOverwrite bool `json:"sync_overwrite"` Overwrite bool `json:"overwrite"`
SyncNodeIds []int `json:"sync_node_ids"` SyncNodeIds []int `json:"sync_node_ids"`
} }
if !api.BindAndValid(c, &json) { if !api.BindAndValid(c, &json) {
return return
@ -47,7 +47,7 @@ func EditConfig(c *gin.Context) {
return return
} }
if !helper.FileExists(path) { if _, err := os.Stat(path); os.IsNotExist(err) {
c.JSON(http.StatusNotFound, gin.H{ c.JSON(http.StatusNotFound, gin.H{
"message": "file not found", "message": "file not found",
}) })
@ -76,14 +76,12 @@ func EditConfig(c *gin.Context) {
return return
} }
_, err = q.Where(q.Filepath.Eq(json.Filepath)). _, err = q.Where(q.Filepath.Eq(json.Filepath)).Updates(&model.Config{
Select(q.Name, q.Filepath, q.SyncNodeIds, q.SyncOverwrite). Name: json.Name,
Updates(&model.Config{ Filepath: json.NewFilepath,
Name: json.Name, SyncNodeIds: json.SyncNodeIds,
Filepath: json.NewFilepath, SyncOverwrite: json.Overwrite,
SyncNodeIds: json.SyncNodeIds, })
SyncOverwrite: json.SyncOverwrite,
})
if err != nil { if err != nil {
api.ErrHandler(c, err) api.ErrHandler(c, err)

@ -66,7 +66,7 @@ func MakeChatCompletionRequest(c *gin.Context) {
} }
transport := &http.Transport{ transport := &http.Transport{
Proxy: http.ProxyURL(proxyUrl), Proxy: http.ProxyURL(proxyUrl),
TLSClientConfig: &tls.Config{InsecureSkipVerify: settings.ServerSettings.InsecureSkipVerify}, TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
} }
config.HTTPClient = &http.Client{ config.HTTPClient = &http.Client{
Transport: transport, Transport: transport,

@ -1,14 +1,13 @@
package settings package settings
import ( import (
"github.com/0xJacky/Nginx-UI/internal/middleware"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )
func InitRouter(r *gin.RouterGroup) { func InitRouter(r *gin.RouterGroup) {
r.GET("settings/server/name", GetServerName) r.GET("settings/server/name", GetServerName)
r.GET("settings", GetSettings) r.GET("settings", GetSettings)
r.POST("settings", middleware.RequireSecureSession(), SaveSettings) r.POST("settings", SaveSettings)
r.GET("settings/auth/banned_ips", GetBanLoginIP) r.GET("settings/auth/banned_ips", GetBanLoginIP)
r.DELETE("settings/auth/banned_ip", RemoveBannedIP) r.DELETE("settings/auth/banned_ip", RemoveBannedIP)

@ -61,8 +61,8 @@ func InstallNginxUI(c *gin.Context) {
pwd, _ := bcrypt.GenerateFromPassword([]byte(json.Password), bcrypt.DefaultCost) pwd, _ := bcrypt.GenerateFromPassword([]byte(json.Password), bcrypt.DefaultCost)
u := query.User u := query.Auth
err = u.Create(&model.User{ err = u.Create(&model.Auth{
Name: json.Username, Name: json.Username,
Password: string(pwd), Password: string(pwd),
}) })

@ -139,7 +139,7 @@ func PerformCoreUpgrade(c *gin.Context) {
return return
} }
// bye, will restart nginx-ui in performCoreUpgrade // bye, overseer will restart nginx-ui
err = u.PerformCoreUpgrade(tarName) err = u.PerformCoreUpgrade(tarName)
if err != nil { if err != nil {
_ = ws.WriteJSON(CoreUpgradeResp{ _ = ws.WriteJSON(CoreUpgradeResp{

@ -1,156 +0,0 @@
package user
import (
"encoding/base64"
"fmt"
"github.com/0xJacky/Nginx-UI/api"
"github.com/0xJacky/Nginx-UI/internal/cache"
"github.com/0xJacky/Nginx-UI/internal/passkey"
"github.com/0xJacky/Nginx-UI/internal/user"
"github.com/0xJacky/Nginx-UI/model"
"github.com/0xJacky/Nginx-UI/query"
"github.com/gin-gonic/gin"
"github.com/go-webauthn/webauthn/webauthn"
"github.com/google/uuid"
"net/http"
"strings"
"time"
)
type Status2FA struct {
Enabled bool `json:"enabled"`
OTPStatus bool `json:"otp_status"`
PasskeyStatus bool `json:"passkey_status"`
}
func get2FAStatus(c *gin.Context) (status Status2FA) {
// when accessing the node from the main cluster, there is no user in the context
u, ok := c.Get("user")
if ok {
userPtr := u.(*model.User)
status.OTPStatus = userPtr.EnabledOTP()
status.PasskeyStatus = userPtr.EnabledPasskey() && passkey.Enabled()
status.Enabled = status.OTPStatus || status.PasskeyStatus
}
return
}
func Get2FAStatus(c *gin.Context) {
c.JSON(http.StatusOK, get2FAStatus(c))
}
func SecureSessionStatus(c *gin.Context) {
status2FA := get2FAStatus(c)
if !status2FA.Enabled {
c.JSON(http.StatusOK, gin.H{
"status": false,
})
return
}
ssid := c.GetHeader("X-Secure-Session-ID")
if ssid == "" {
ssid = c.Query("X-Secure-Session-ID")
}
if ssid == "" {
c.JSON(http.StatusOK, gin.H{
"status": false,
})
return
}
u := api.CurrentUser(c)
c.JSON(http.StatusOK, gin.H{
"status": user.VerifySecureSessionID(ssid, u.ID),
})
}
func Start2FASecureSessionByOTP(c *gin.Context) {
var json struct {
OTP string `json:"otp"`
RecoveryCode string `json:"recovery_code"`
}
if !api.BindAndValid(c, &json) {
return
}
u := api.CurrentUser(c)
if !u.EnabledOTP() {
c.JSON(http.StatusBadRequest, gin.H{
"message": "User has not configured OTP as 2FA",
})
return
}
if json.OTP == "" && json.RecoveryCode == "" {
c.JSON(http.StatusBadRequest, LoginResponse{
Message: "The user has enabled OTP as 2FA",
})
return
}
if err := user.VerifyOTP(u, json.OTP, json.RecoveryCode); err != nil {
c.JSON(http.StatusBadRequest, LoginResponse{
Message: "Invalid OTP or recovery code",
})
return
}
sessionId := user.SetSecureSessionID(u.ID)
c.JSON(http.StatusOK, gin.H{
"session_id": sessionId,
})
}
func BeginStart2FASecureSessionByPasskey(c *gin.Context) {
if !passkey.Enabled() {
api.ErrHandler(c, fmt.Errorf("WebAuthn settings are not configured"))
return
}
webauthnInstance := passkey.GetInstance()
u := api.CurrentUser(c)
options, sessionData, err := webauthnInstance.BeginLogin(u)
if err != nil {
api.ErrHandler(c, err)
return
}
passkeySessionID := uuid.NewString()
cache.Set(passkeySessionID, sessionData, passkeyTimeout)
c.JSON(http.StatusOK, gin.H{
"session_id": passkeySessionID,
"options": options,
})
}
func FinishStart2FASecureSessionByPasskey(c *gin.Context) {
if !passkey.Enabled() {
api.ErrHandler(c, fmt.Errorf("WebAuthn settings are not configured"))
return
}
passkeySessionID := c.GetHeader("X-Passkey-Session-ID")
sessionDataBytes, ok := cache.Get(passkeySessionID)
if !ok {
api.ErrHandler(c, fmt.Errorf("session not found"))
return
}
sessionData := sessionDataBytes.(*webauthn.SessionData)
webauthnInstance := passkey.GetInstance()
u := api.CurrentUser(c)
credential, err := webauthnInstance.FinishLogin(u, *sessionData, c.Request)
if err != nil {
api.ErrHandler(c, err)
return
}
rawID := strings.TrimRight(base64.StdEncoding.EncodeToString(credential.ID), "=")
p := query.Passkey
_, _ = p.Where(p.RawID.Eq(rawID)).Updates(&model.Passkey{
LastUsedAt: time.Now().Unix(),
})
sessionId := user.SetSecureSessionID(u.ID)
c.JSON(http.StatusOK, gin.H{
"session_id": sessionId,
})
}

@ -8,7 +8,6 @@ import (
"github.com/0xJacky/Nginx-UI/settings" "github.com/0xJacky/Nginx-UI/settings"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/pkg/errors" "github.com/pkg/errors"
"math/rand/v2"
"net/http" "net/http"
"sync" "sync"
"time" "time"
@ -33,11 +32,10 @@ const (
) )
type LoginResponse struct { type LoginResponse struct {
Message string `json:"message"` Message string `json:"message"`
Error string `json:"error,omitempty"` Error string `json:"error,omitempty"`
Code int `json:"code"` Code int `json:"code"`
Token string `json:"token,omitempty"` Token string `json:"token,omitempty"`
SecureSessionID string `json:"secure_session_id,omitempty"`
} }
func Login(c *gin.Context) { func Login(c *gin.Context) {
@ -68,8 +66,7 @@ func Login(c *gin.Context) {
u, err := user.Login(json.Name, json.Password) u, err := user.Login(json.Name, json.Password)
if err != nil { if err != nil {
random := time.Duration(rand.Int() % 10) // time.Sleep(5 * time.Second)
time.Sleep(random * time.Second)
switch { switch {
case errors.Is(err, user.ErrPasswordIncorrect): case errors.Is(err, user.ErrPasswordIncorrect):
c.JSON(http.StatusForbidden, LoginResponse{ c.JSON(http.StatusForbidden, LoginResponse{
@ -89,8 +86,6 @@ func Login(c *gin.Context) {
} }
// Check if the user enables 2FA // Check if the user enables 2FA
var secureSessionID string
if u.EnabledOTP() { if u.EnabledOTP() {
if json.OTP == "" && json.RecoveryCode == "" { if json.OTP == "" && json.RecoveryCode == "" {
c.JSON(http.StatusOK, LoginResponse{ c.JSON(http.StatusOK, LoginResponse{
@ -109,8 +104,6 @@ func Login(c *gin.Context) {
user.BanIP(clientIP) user.BanIP(clientIP)
return return
} }
secureSessionID = user.SetSecureSessionID(u.ID)
} }
// login success, clear banned record // login success, clear banned record
@ -126,10 +119,9 @@ func Login(c *gin.Context) {
} }
c.JSON(http.StatusOK, LoginResponse{ c.JSON(http.StatusOK, LoginResponse{
Code: LoginSuccess, Code: LoginSuccess,
Message: "ok", Message: "ok",
Token: token, Token: token,
SecureSessionID: secureSessionID,
}) })
} }

@ -8,6 +8,7 @@ import (
"fmt" "fmt"
"github.com/0xJacky/Nginx-UI/api" "github.com/0xJacky/Nginx-UI/api"
"github.com/0xJacky/Nginx-UI/internal/crypto" "github.com/0xJacky/Nginx-UI/internal/crypto"
"github.com/0xJacky/Nginx-UI/internal/user"
"github.com/0xJacky/Nginx-UI/query" "github.com/0xJacky/Nginx-UI/query"
"github.com/0xJacky/Nginx-UI/settings" "github.com/0xJacky/Nginx-UI/settings"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
@ -36,6 +37,11 @@ func GenerateTOTP(c *gin.Context) {
api.ErrHandler(c, err) api.ErrHandler(c, err)
return return
} }
ciphertext, err := crypto.AesEncrypt([]byte(otpKey.Secret()))
if err != nil {
api.ErrHandler(c, err)
return
}
qrCode, err := otpKey.Image(512, 512) qrCode, err := otpKey.Image(512, 512)
if err != nil { if err != nil {
@ -56,7 +62,7 @@ func GenerateTOTP(c *gin.Context) {
base64Str := "data:image/jpeg;base64," + base64.StdEncoding.EncodeToString(buffer.Bytes()) base64Str := "data:image/jpeg;base64," + base64.StdEncoding.EncodeToString(buffer.Bytes())
c.JSON(http.StatusOK, gin.H{ c.JSON(http.StatusOK, gin.H{
"secret": otpKey.Secret(), "secret": base64.StdEncoding.EncodeToString(ciphertext),
"qr_code": base64Str, "qr_code": base64Str,
}) })
} }
@ -85,20 +91,32 @@ func EnrollTOTP(c *gin.Context) {
return return
} }
if ok := totp.Validate(json.Passcode, json.Secret); !ok { secret, err := base64.StdEncoding.DecodeString(json.Secret)
if err != nil {
api.ErrHandler(c, err)
return
}
decrypted, err := crypto.AesDecrypt(secret)
if err != nil {
api.ErrHandler(c, err)
return
}
if ok := totp.Validate(json.Passcode, string(decrypted)); !ok {
c.JSON(http.StatusNotAcceptable, gin.H{ c.JSON(http.StatusNotAcceptable, gin.H{
"message": "Invalid passcode", "message": "Invalid passcode",
}) })
return return
} }
ciphertext, err := crypto.AesEncrypt([]byte(json.Secret)) ciphertext, err := crypto.AesEncrypt(decrypted)
if err != nil { if err != nil {
api.ErrHandler(c, err) api.ErrHandler(c, err)
return return
} }
u := query.User u := query.Auth
_, err = u.Where(u.ID.Eq(cUser.ID)).Update(u.OTPSecret, ciphertext) _, err = u.Where(u.ID.Eq(cUser.ID)).Update(u.OTPSecret, ciphertext)
if err != nil { if err != nil {
api.ErrHandler(c, err) api.ErrHandler(c, err)
@ -134,7 +152,7 @@ func ResetOTP(c *gin.Context) {
return return
} }
u := query.User u := query.Auth
_, err = u.Where(u.ID.Eq(cUser.ID)).UpdateSimple(u.OTPSecret.Null()) _, err = u.Where(u.ID.Eq(cUser.ID)).UpdateSimple(u.OTPSecret.Null())
if err != nil { if err != nil {
api.ErrHandler(c, err) api.ErrHandler(c, err)
@ -145,3 +163,53 @@ func ResetOTP(c *gin.Context) {
"message": "ok", "message": "ok",
}) })
} }
func OTPStatus(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"status": len(api.CurrentUser(c).OTPSecret) > 0,
})
}
func SecureSessionStatus(c *gin.Context) {
// if you can visit this endpoint, you are already in a secure session
c.JSON(http.StatusOK, gin.H{
"status": true,
})
}
func StartSecure2FASession(c *gin.Context) {
var json struct {
OTP string `json:"otp"`
RecoveryCode string `json:"recovery_code"`
}
if !api.BindAndValid(c, &json) {
return
}
u := api.CurrentUser(c)
if !u.EnabledOTP() {
c.JSON(http.StatusBadRequest, gin.H{
"message": "User not configured with 2FA",
})
return
}
if json.OTP == "" && json.RecoveryCode == "" {
c.JSON(http.StatusBadRequest, LoginResponse{
Message: "The user has enabled 2FA",
})
return
}
if err := user.VerifyOTP(u, json.OTP, json.RecoveryCode); err != nil {
c.JSON(http.StatusBadRequest, LoginResponse{
Message: "Invalid 2FA or recovery code",
})
return
}
sessionId := user.SetSecureSessionID(u.ID)
c.JSON(http.StatusOK, gin.H{
"session_id": sessionId,
})
}

@ -1,195 +0,0 @@
package user
import (
"encoding/base64"
"fmt"
"github.com/0xJacky/Nginx-UI/api"
"github.com/0xJacky/Nginx-UI/internal/cache"
"github.com/0xJacky/Nginx-UI/internal/cosy"
"github.com/0xJacky/Nginx-UI/internal/logger"
"github.com/0xJacky/Nginx-UI/internal/passkey"
"github.com/0xJacky/Nginx-UI/internal/user"
"github.com/0xJacky/Nginx-UI/model"
"github.com/0xJacky/Nginx-UI/query"
"github.com/gin-gonic/gin"
"github.com/go-webauthn/webauthn/webauthn"
"github.com/google/uuid"
"github.com/spf13/cast"
"gorm.io/gorm"
"net/http"
"strings"
"time"
)
const passkeyTimeout = 30 * time.Second
func buildCachePasskeyRegKey(id int) string {
return fmt.Sprintf("passkey-reg-%d", id)
}
func GetPasskeyConfigStatus(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"status": passkey.Enabled(),
})
}
func BeginPasskeyRegistration(c *gin.Context) {
u := api.CurrentUser(c)
webauthnInstance := passkey.GetInstance()
options, sessionData, err := webauthnInstance.BeginRegistration(u)
if err != nil {
api.ErrHandler(c, err)
return
}
cache.Set(buildCachePasskeyRegKey(u.ID), sessionData, passkeyTimeout)
c.JSON(http.StatusOK, options)
}
func FinishPasskeyRegistration(c *gin.Context) {
cUser := api.CurrentUser(c)
webauthnInstance := passkey.GetInstance()
sessionDataBytes, ok := cache.Get(buildCachePasskeyRegKey(cUser.ID))
if !ok {
api.ErrHandler(c, fmt.Errorf("session not found"))
return
}
sessionData := sessionDataBytes.(*webauthn.SessionData)
credential, err := webauthnInstance.FinishRegistration(cUser, *sessionData, c.Request)
if err != nil {
api.ErrHandler(c, err)
return
}
cache.Del(buildCachePasskeyRegKey(cUser.ID))
rawId := strings.TrimRight(base64.StdEncoding.EncodeToString(credential.ID), "=")
passkeyName := c.Query("name")
p := query.Passkey
err = p.Create(&model.Passkey{
UserID: cUser.ID,
Name: passkeyName,
RawID: rawId,
Credential: credential,
LastUsedAt: time.Now().Unix(),
})
if err != nil {
api.ErrHandler(c, err)
return
}
c.JSON(http.StatusOK, gin.H{
"message": "ok",
})
}
func BeginPasskeyLogin(c *gin.Context) {
if !passkey.Enabled() {
api.ErrHandler(c, fmt.Errorf("WebAuthn settings are not configured"))
return
}
webauthnInstance := passkey.GetInstance()
options, sessionData, err := webauthnInstance.BeginDiscoverableLogin()
if err != nil {
api.ErrHandler(c, err)
return
}
sessionID := uuid.NewString()
cache.Set(sessionID, sessionData, passkeyTimeout)
c.JSON(http.StatusOK, gin.H{
"session_id": sessionID,
"options": options,
})
}
func FinishPasskeyLogin(c *gin.Context) {
if !passkey.Enabled() {
api.ErrHandler(c, fmt.Errorf("WebAuthn settings are not configured"))
return
}
sessionId := c.GetHeader("X-Passkey-Session-ID")
sessionDataBytes, ok := cache.Get(sessionId)
if !ok {
api.ErrHandler(c, fmt.Errorf("session not found"))
return
}
webauthnInstance := passkey.GetInstance()
sessionData := sessionDataBytes.(*webauthn.SessionData)
var outUser *model.User
_, err := webauthnInstance.FinishDiscoverableLogin(
func(rawID, userHandle []byte) (user webauthn.User, err error) {
encodeRawID := strings.TrimRight(base64.StdEncoding.EncodeToString(rawID), "=")
u := query.User
logger.Debug("[WebAuthn] Discoverable Login", cast.ToInt(string(userHandle)))
p := query.Passkey
_, _ = p.Where(p.RawID.Eq(encodeRawID)).Updates(&model.Passkey{
LastUsedAt: time.Now().Unix(),
})
outUser, err = u.FirstByID(cast.ToInt(string(userHandle)))
return outUser, err
}, *sessionData, c.Request)
if err != nil {
api.ErrHandler(c, err)
return
}
b := query.BanIP
clientIP := c.ClientIP()
// login success, clear banned record
_, _ = b.Where(b.IP.Eq(clientIP)).Delete()
logger.Info("[User Login]", outUser.Name)
token, err := user.GenerateJWT(outUser)
if err != nil {
c.JSON(http.StatusInternalServerError, LoginResponse{
Message: err.Error(),
})
return
}
c.JSON(http.StatusOK, LoginResponse{
Code: LoginSuccess,
Message: "ok",
Token: token,
// SecureSessionID: secureSessionID,
})
}
func GetPasskeyList(c *gin.Context) {
u := api.CurrentUser(c)
p := query.Passkey
passkeys, err := p.Where(p.UserID.Eq(u.ID)).Find()
if err != nil {
api.ErrHandler(c, err)
return
}
if len(passkeys) == 0 {
passkeys = make([]*model.Passkey, 0)
}
c.JSON(http.StatusOK, passkeys)
}
func UpdatePasskey(c *gin.Context) {
u := api.CurrentUser(c)
cosy.Core[model.Passkey](c).
SetValidRules(gin.H{
"name": "required",
}).GormScope(func(tx *gorm.DB) *gorm.DB {
return tx.Where("user_id", u.ID)
}).Modify()
}
func DeletePasskey(c *gin.Context) {
u := api.CurrentUser(c)
cosy.Core[model.Passkey](c).
GormScope(func(tx *gorm.DB) *gorm.DB {
return tx.Where("user_id", u.ID)
}).PermanentlyDelete()
}

@ -1,20 +1,16 @@
package user package user
import ( import (
"github.com/gin-gonic/gin" "github.com/0xJacky/Nginx-UI/internal/middleware"
"github.com/gin-gonic/gin"
) )
func InitAuthRouter(r *gin.RouterGroup) { func InitAuthRouter(r *gin.RouterGroup) {
r.POST("/login", Login) r.POST("/login", Login)
r.DELETE("/logout", Logout) r.DELETE("/logout", Logout)
r.GET("/begin_passkey_login", BeginPasskeyLogin)
r.POST("/finish_passkey_login", FinishPasskeyLogin)
r.GET("/casdoor_uri", GetCasdoorUri) r.GET("/casdoor_uri", GetCasdoorUri)
r.POST("/casdoor_callback", CasdoorCallback) r.POST("/casdoor_callback", CasdoorCallback)
r.GET("/passkeys/config", GetPasskeyConfigStatus)
} }
func InitManageUserRouter(r *gin.RouterGroup) { func InitManageUserRouter(r *gin.RouterGroup) {
@ -23,24 +19,15 @@ func InitManageUserRouter(r *gin.RouterGroup) {
r.POST("user", AddUser) r.POST("user", AddUser)
r.POST("user/:id", EditUser) r.POST("user/:id", EditUser)
r.DELETE("user/:id", DeleteUser) r.DELETE("user/:id", DeleteUser)
r.PATCH("user/:id", RecoverUser)
} }
func InitUserRouter(r *gin.RouterGroup) { func InitUserRouter(r *gin.RouterGroup) {
r.GET("/2fa_status", Get2FAStatus) r.GET("/otp_status", OTPStatus)
r.GET("/2fa_secure_session/status", SecureSessionStatus)
r.POST("/2fa_secure_session/otp", Start2FASecureSessionByOTP)
r.GET("/2fa_secure_session/passkey", BeginStart2FASecureSessionByPasskey)
r.POST("/2fa_secure_session/passkey", FinishStart2FASecureSessionByPasskey)
r.GET("/otp_secret", GenerateTOTP) r.GET("/otp_secret", GenerateTOTP)
r.POST("/otp_enroll", EnrollTOTP) r.POST("/otp_enroll", EnrollTOTP)
r.POST("/otp_reset", ResetOTP) r.POST("/otp_reset", ResetOTP)
r.GET("/begin_passkey_register", BeginPasskeyRegistration) r.GET("/otp_secure_session_status",
r.POST("/finish_passkey_register", FinishPasskeyRegistration) middleware.RequireSecureSession(), SecureSessionStatus)
r.POST("/otp_secure_session", StartSecure2FASession)
r.GET("/passkeys", GetPasskeyList)
r.POST("/passkeys/:id", UpdatePasskey)
r.DELETE("/passkeys/:id", DeletePasskey)
} }

@ -13,13 +13,13 @@ import (
) )
func GetUsers(c *gin.Context) { func GetUsers(c *gin.Context) {
cosy.Core[model.User](c).SetFussy("name").PagingList() cosy.Core[model.Auth](c).SetFussy("name").PagingList()
} }
func GetUser(c *gin.Context) { func GetUser(c *gin.Context) {
id := cast.ToInt(c.Param("id")) id := cast.ToInt(c.Param("id"))
u := query.User u := query.Auth
user, err := u.FirstByID(id) user, err := u.FirstByID(id)
@ -43,7 +43,7 @@ func AddUser(c *gin.Context) {
return return
} }
u := query.User u := query.Auth
pwd, err := bcrypt.GenerateFromPassword([]byte(json.Password), bcrypt.DefaultCost) pwd, err := bcrypt.GenerateFromPassword([]byte(json.Password), bcrypt.DefaultCost)
if err != nil { if err != nil {
@ -52,7 +52,7 @@ func AddUser(c *gin.Context) {
} }
json.Password = string(pwd) json.Password = string(pwd)
user := model.User{ user := model.Auth{
Name: json.Name, Name: json.Name,
Password: json.Password, Password: json.Password,
} }
@ -84,14 +84,14 @@ func EditUser(c *gin.Context) {
return return
} }
u := query.User u := query.Auth
user, err := u.FirstByID(userId) user, err := u.FirstByID(userId)
if err != nil { if err != nil {
api.ErrHandler(c, err) api.ErrHandler(c, err)
return return
} }
edit := &model.User{ edit := &model.Auth{
Name: json.Name, Name: json.Name,
} }
@ -118,15 +118,19 @@ func EditUser(c *gin.Context) {
func DeleteUser(c *gin.Context) { func DeleteUser(c *gin.Context) {
id := cast.ToInt(c.Param("id")) id := cast.ToInt(c.Param("id"))
if cast.ToInt(id) == 1 { if cast.ToInt(id) == 1 {
c.JSON(http.StatusNotAcceptable, gin.H{ c.JSON(http.StatusNotAcceptable, gin.H{
"message": "Prohibit deleting the default user", "message": "Prohibit deleting the default user",
}) })
return return
} }
cosy.Core[model.User](c).Destroy()
}
func RecoverUser(c *gin.Context) { u := query.Auth
cosy.Core[model.User](c).Recover() err := u.DeleteByID(id)
if err != nil {
api.ErrHandler(c, err)
return
}
c.JSON(http.StatusNoContent, nil)
} }

@ -17,7 +17,6 @@ CertRenewalInterval = 7
RecursiveNameservers = RecursiveNameservers =
SkipInstallation = false SkipInstallation = false
Name = Name =
InsecureSkipVerify = false
[nginx] [nginx]
AccessLogPath = /var/log/nginx/access.log AccessLogPath = /var/log/nginx/access.log
@ -60,8 +59,3 @@ MaxAttempts = 10
[crypto] [crypto]
Secret = secret2 Secret = secret2
[webauthn]
RPDisplayName =
RPID =
RPOrigins =

@ -3,7 +3,6 @@
// @ts-nocheck // @ts-nocheck
// noinspection JSUnusedGlobalSymbols // noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import // Generated by unplugin-auto-import
// biome-ignore lint: disable
export {} export {}
declare global { declare global {
const $gettext: typeof import('@/gettext')['$gettext'] const $gettext: typeof import('@/gettext')['$gettext']
@ -51,7 +50,6 @@ declare global {
const onServerPrefetch: typeof import('vue')['onServerPrefetch'] const onServerPrefetch: typeof import('vue')['onServerPrefetch']
const onUnmounted: typeof import('vue')['onUnmounted'] const onUnmounted: typeof import('vue')['onUnmounted']
const onUpdated: typeof import('vue')['onUpdated'] const onUpdated: typeof import('vue')['onUpdated']
const onWatcherCleanup: typeof import('vue')['onWatcherCleanup']
const provide: typeof import('vue')['provide'] const provide: typeof import('vue')['provide']
const reactive: typeof import('vue')['reactive'] const reactive: typeof import('vue')['reactive']
const readonly: typeof import('vue')['readonly'] const readonly: typeof import('vue')['readonly']
@ -72,13 +70,10 @@ declare global {
const useAttrs: typeof import('vue')['useAttrs'] const useAttrs: typeof import('vue')['useAttrs']
const useCssModule: typeof import('vue')['useCssModule'] const useCssModule: typeof import('vue')['useCssModule']
const useCssVars: typeof import('vue')['useCssVars'] const useCssVars: typeof import('vue')['useCssVars']
const useId: typeof import('vue')['useId']
const useLink: typeof import('vue-router')['useLink'] const useLink: typeof import('vue-router')['useLink']
const useModel: typeof import('vue')['useModel']
const useRoute: typeof import('vue-router')['useRoute'] const useRoute: typeof import('vue-router')['useRoute']
const useRouter: typeof import('vue-router')['useRouter'] const useRouter: typeof import('vue-router')['useRouter']
const useSlots: typeof import('vue')['useSlots'] const useSlots: typeof import('vue')['useSlots']
const useTemplateRef: typeof import('vue')['useTemplateRef']
const watch: typeof import('vue')['watch'] const watch: typeof import('vue')['watch']
const watchEffect: typeof import('vue')['watchEffect'] const watchEffect: typeof import('vue')['watchEffect']
const watchPostEffect: typeof import('vue')['watchPostEffect'] const watchPostEffect: typeof import('vue')['watchPostEffect']
@ -140,7 +135,6 @@ declare module 'vue' {
readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']> readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']> readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']> readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
readonly onWatcherCleanup: UnwrapRef<typeof import('vue')['onWatcherCleanup']>
readonly provide: UnwrapRef<typeof import('vue')['provide']> readonly provide: UnwrapRef<typeof import('vue')['provide']>
readonly reactive: UnwrapRef<typeof import('vue')['reactive']> readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
readonly readonly: UnwrapRef<typeof import('vue')['readonly']> readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
@ -161,13 +155,88 @@ declare module 'vue' {
readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']> readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']> readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']> readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
readonly useId: UnwrapRef<typeof import('vue')['useId']>
readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']> readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']>
readonly useModel: UnwrapRef<typeof import('vue')['useModel']>
readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']> readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']>
readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']> readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']>
readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']> readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
readonly useTemplateRef: UnwrapRef<typeof import('vue')['useTemplateRef']> readonly watch: UnwrapRef<typeof import('vue')['watch']>
readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
}
}
declare module '@vue/runtime-core' {
interface GlobalComponents {}
interface ComponentCustomProperties {
readonly $gettext: UnwrapRef<typeof import('@/gettext')['$gettext']>
readonly $ngettext: UnwrapRef<typeof import('@/gettext')['$ngettext']>
readonly $npgettext: UnwrapRef<typeof import('@/gettext')['$npgettext']>
readonly $pgettext: UnwrapRef<typeof import('@/gettext')['$pgettext']>
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
readonly acceptHMRUpdate: UnwrapRef<typeof import('pinia')['acceptHMRUpdate']>
readonly computed: UnwrapRef<typeof import('vue')['computed']>
readonly createApp: UnwrapRef<typeof import('vue')['createApp']>
readonly createPinia: UnwrapRef<typeof import('pinia')['createPinia']>
readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
readonly defineStore: UnwrapRef<typeof import('pinia')['defineStore']>
readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
readonly getActivePinia: UnwrapRef<typeof import('pinia')['getActivePinia']>
readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
readonly h: UnwrapRef<typeof import('vue')['h']>
readonly inject: UnwrapRef<typeof import('vue')['inject']>
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
readonly mapActions: UnwrapRef<typeof import('pinia')['mapActions']>
readonly mapGetters: UnwrapRef<typeof import('pinia')['mapGetters']>
readonly mapState: UnwrapRef<typeof import('pinia')['mapState']>
readonly mapStores: UnwrapRef<typeof import('pinia')['mapStores']>
readonly mapWritableState: UnwrapRef<typeof import('pinia')['mapWritableState']>
readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
readonly onBeforeRouteLeave: UnwrapRef<typeof import('vue-router')['onBeforeRouteLeave']>
readonly onBeforeRouteUpdate: UnwrapRef<typeof import('vue-router')['onBeforeRouteUpdate']>
readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>
readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>
readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>
readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>
readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>
readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>
readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>
readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>
readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
readonly provide: UnwrapRef<typeof import('vue')['provide']>
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
readonly ref: UnwrapRef<typeof import('vue')['ref']>
readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>
readonly setActivePinia: UnwrapRef<typeof import('pinia')['setActivePinia']>
readonly setMapStoreSuffix: UnwrapRef<typeof import('pinia')['setMapStoreSuffix']>
readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
readonly storeToRefs: UnwrapRef<typeof import('pinia')['storeToRefs']>
readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>
readonly toRef: UnwrapRef<typeof import('vue')['toRef']>
readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>
readonly toValue: UnwrapRef<typeof import('vue')['toValue']>
readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>
readonly unref: UnwrapRef<typeof import('vue')['unref']>
readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']>
readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']>
readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']>
readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
readonly watch: UnwrapRef<typeof import('vue')['watch']> readonly watch: UnwrapRef<typeof import('vue')['watch']>
readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']> readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']> readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>

@ -1,10 +1,10 @@
/* eslint-disable */ /* eslint-disable */
/* prettier-ignore */
// @ts-nocheck // @ts-nocheck
// Generated by unplugin-vue-components // Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399 // Read more: https://github.com/vuejs/core/pull/3399
export {} export {}
/* prettier-ignore */
declare module 'vue' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
AAlert: typeof import('ant-design-vue/es')['Alert'] AAlert: typeof import('ant-design-vue/es')['Alert']
@ -79,8 +79,8 @@ declare module 'vue' {
NodeSelectorNodeSelector: typeof import('./src/components/NodeSelector/NodeSelector.vue')['default'] NodeSelectorNodeSelector: typeof import('./src/components/NodeSelector/NodeSelector.vue')['default']
NotificationNotification: typeof import('./src/components/Notification/Notification.vue')['default'] NotificationNotification: typeof import('./src/components/Notification/Notification.vue')['default']
OTPInputOTPInput: typeof import('./src/components/OTPInput/OTPInput.vue')['default'] OTPInputOTPInput: typeof import('./src/components/OTPInput/OTPInput.vue')['default']
OTPOTPAuthorization: typeof import('./src/components/OTP/OTPAuthorization.vue')['default']
PageHeaderPageHeader: typeof import('./src/components/PageHeader/PageHeader.vue')['default'] PageHeaderPageHeader: typeof import('./src/components/PageHeader/PageHeader.vue')['default']
ReactiveFromNowReactiveFromNow: typeof import('./src/components/ReactiveFromNow/ReactiveFromNow.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink'] RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView'] RouterView: typeof import('vue-router')['RouterView']
SensitiveStringSensitiveString: typeof import('./src/components/SensitiveString/SensitiveString.vue')['default'] SensitiveStringSensitiveString: typeof import('./src/components/SensitiveString/SensitiveString.vue')['default']
@ -98,7 +98,6 @@ declare module 'vue' {
SwitchAppearanceIconsVPIconMoon: typeof import('./src/components/SwitchAppearance/icons/VPIconMoon.vue')['default'] SwitchAppearanceIconsVPIconMoon: typeof import('./src/components/SwitchAppearance/icons/VPIconMoon.vue')['default']
SwitchAppearanceIconsVPIconSun: typeof import('./src/components/SwitchAppearance/icons/VPIconSun.vue')['default'] SwitchAppearanceIconsVPIconSun: typeof import('./src/components/SwitchAppearance/icons/VPIconSun.vue')['default']
SwitchAppearanceSwitchAppearance: typeof import('./src/components/SwitchAppearance/SwitchAppearance.vue')['default'] SwitchAppearanceSwitchAppearance: typeof import('./src/components/SwitchAppearance/SwitchAppearance.vue')['default']
TwoFAAuthorization: typeof import('./src/components/TwoFA/Authorization.vue')['default']
VPSwitchVPSwitch: typeof import('./src/components/VPSwitch/VPSwitch.vue')['default'] VPSwitchVPSwitch: typeof import('./src/components/VPSwitch/VPSwitch.vue')['default']
} }
} }

@ -6,5 +6,5 @@
"es": "Es", "es": "Es",
"ru_RU": "Ru", "ru_RU": "Ru",
"vi_VN": "Vi", "vi_VN": "Vi",
"ko_KR": "한글" "ko_KR": "韓"
} }

@ -1,6 +1,6 @@
{ {
"name": "nginx-ui-app-next", "name": "nginx-ui-app-next",
"version": "2.0.0-beta.35", "version": "2.0.0-beta.28",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite --host", "dev": "vite --host",
@ -11,71 +11,69 @@
"gettext:extract": "vue-gettext-extract" "gettext:extract": "vue-gettext-extract"
}, },
"dependencies": { "dependencies": {
"@0xjacky/vue-github-button": "^3.1.1",
"@ant-design/icons-vue": "^7.0.1", "@ant-design/icons-vue": "^7.0.1",
"@formkit/auto-animate": "^0.8.2", "@formkit/auto-animate": "^0.8.2",
"@simplewebauthn/browser": "^10.0.0", "@vue/reactivity": "^3.4.33",
"@vue/reactivity": "^3.5.6", "@vue/shared": "^3.4.33",
"@vue/shared": "^3.5.6", "@vueuse/components": "^10.11.0",
"@vueuse/components": "^11.1.0", "@vueuse/core": "^10.11.0",
"@vueuse/core": "^11.1.0", "@vueuse/integrations": "^10.11.0",
"@vueuse/integrations": "^11.1.0",
"@xterm/addon-attach": "^0.11.0", "@xterm/addon-attach": "^0.11.0",
"@xterm/addon-fit": "^0.10.0", "@xterm/addon-fit": "^0.10.0",
"@xterm/xterm": "^5.5.0", "@xterm/xterm": "^5.5.0",
"ant-design-vue": "^4.2.4", "ant-design-vue": "^4.2.3",
"apexcharts": "^3.53.0", "apexcharts": "^3.50.0",
"axios": "^1.7.7", "axios": "^1.7.2",
"dayjs": "^1.11.13", "dayjs": "^1.11.12",
"highlight.js": "^11.10.0", "highlight.js": "^11.10.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"marked": "^10.0.0", "marked": "^10.0.0",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"pinia": "^2.2.2", "pinia": "^2.1.7",
"pinia-plugin-persistedstate": "^3.2.3", "pinia-plugin-persistedstate": "^3.2.1",
"reconnecting-websocket": "^4.4.0", "reconnecting-websocket": "^4.4.0",
"sortablejs": "^1.15.3", "sortablejs": "^1.15.2",
"universal-cookie": "^7.2.0", "universal-cookie": "^7",
"vite-plugin-build-id": "0.3.6", "vite-plugin-build-id": "^0.2.9",
"vue": "^3.5.6", "vue": "^3.4.33",
"vue-router": "^4.4.5", "vue-github-button": "github:0xJacky/vue-github-button",
"vue-router": "^4.4.0",
"vue3-ace-editor": "2.2.4", "vue3-ace-editor": "2.2.4",
"vue3-apexcharts": "1.5.3", "vue3-apexcharts": "1.4.4",
"vue3-gettext": "3.0.0-beta.6", "vue3-gettext": "3.0.0-beta.4",
"vue3-otp-input": "^0.5.21", "vue3-otp-input": "^0.5.21",
"vuedraggable": "^4.1.0" "vuedraggable": "^4.1.0"
}, },
"devDependencies": { "devDependencies": {
"@antfu/eslint-config-vue": "^0.43.1", "@antfu/eslint-config-vue": "^0.43.1",
"@simplewebauthn/types": "^10.0.0",
"@types/lodash": "^4.17.7", "@types/lodash": "^4.17.7",
"@types/nprogress": "^0.2.3", "@types/nprogress": "^0.2.3",
"@types/sortablejs": "^1.15.8", "@types/sortablejs": "^1.15.8",
"@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0", "@typescript-eslint/parser": "^6.21.0",
"@vitejs/plugin-vue": "^5.1.3", "@vitejs/plugin-vue": "^5.0.5",
"@vitejs/plugin-vue-jsx": "^4.0.1", "@vitejs/plugin-vue-jsx": "^3.1.0",
"@vue/compiler-sfc": "^3.5.6", "@vue/compiler-sfc": "^3.4.33",
"@vue/tsconfig": "^0.5.1", "@vue/tsconfig": "^0.5.1",
"ace-builds": "^1.36.2", "ace-builds": "^1.35.3",
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.19",
"eslint": "^8.57.1", "eslint": "^8.57.0",
"eslint-import-resolver-alias": "^1.1.2", "eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^3.6.3", "eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.30.0", "eslint-plugin-import": "^2.29.1",
"eslint-plugin-regex": "^1.10.0", "eslint-plugin-regex": "^1.10.0",
"eslint-plugin-sonarjs": "^0.23.0", "eslint-plugin-sonarjs": "^0.23.0",
"eslint-plugin-vue": "^9.28.0", "eslint-plugin-vue": "^9.27.0",
"less": "^4.2.0", "less": "^4.2.0",
"postcss": "^8.4.47", "postcss": "^8.4.39",
"tailwindcss": "^3.4.11", "tailwindcss": "^3.4.6",
"typescript": "5.3.3", "typescript": "5.3.3",
"unplugin-auto-import": "^0.18.3", "unplugin-auto-import": "^0.17.8",
"unplugin-vue-components": "^0.27.4", "unplugin-vue-components": "^0.26.0",
"unplugin-vue-define-options": "^1.5.1", "unplugin-vue-define-options": "^1.4.5",
"vite": "^5.4.6", "vite": "^5.3.4",
"vite-svg-loader": "^5.1.0", "vite-svg-loader": "^5.1.0",
"vue-tsc": "^2.1.6" "vue-tsc": "^1.8.27"
}, },
"packageManager": "pnpm@9.10.0" "packageManager": "pnpm@9.3.0+sha512.ee7b93e0c2bd11409c6424f92b866f31d3ea1bef5fbe47d3c7500cdc3c9668833d2e55681ad66df5b640c61fa9dc25d546efa54d76d7f8bf54b13614ac293631"
} }

File diff suppressed because it is too large Load Diff

@ -1,37 +0,0 @@
import type { AuthenticationResponseJSON } from '@simplewebauthn/types'
import http from '@/lib/http'
export interface TwoFAStatusResponse {
enabled: boolean
otp_status: boolean
passkey_status: boolean
}
const twoFA = {
status(): Promise<TwoFAStatusResponse> {
return http.get('/2fa_status')
},
start_secure_session_by_otp(passcode: string, recovery_code: string): Promise<{ session_id: string }> {
return http.post('/2fa_secure_session/otp', {
otp: passcode,
recovery_code,
})
},
secure_session_status(): Promise<{ status: boolean }> {
return http.get('/2fa_secure_session/status')
},
begin_start_secure_session_by_passkey() {
return http.get('/2fa_secure_session/passkey')
},
finish_start_secure_session_by_passkey(data: { session_id: string; options: AuthenticationResponseJSON }): Promise<{
session_id: string
}> {
return http.post('/2fa_secure_session/passkey', data.options, {
headers: {
'X-Passkey-Session-Id': data.session_id,
},
})
},
}
export default twoFA

@ -1,4 +1,3 @@
import type { AuthenticationResponseJSON } from '@simplewebauthn/types'
import http from '@/lib/http' import http from '@/lib/http'
import { useUserStore } from '@/pinia' import { useUserStore } from '@/pinia'
@ -8,8 +7,6 @@ export interface AuthResponse {
message: string message: string
token: string token: string
code: number code: number
error: string
secure_session_id: string
} }
const auth = { const auth = {
@ -38,16 +35,6 @@ const auth = {
async get_casdoor_uri(): Promise<{ uri: string }> { async get_casdoor_uri(): Promise<{ uri: string }> {
return http.get('/casdoor_uri') return http.get('/casdoor_uri')
}, },
begin_passkey_login() {
return http.get('/begin_passkey_login')
},
finish_passkey_login(data: { session_id: string; options: AuthenticationResponseJSON }) {
return http.post('/finish_passkey_login', data.options, {
headers: {
'X-Passkey-Session-Id': data.session_id,
},
})
},
} }
export default auth export default auth

@ -6,6 +6,9 @@ export interface OTPGenerateSecretResponse {
} }
const otp = { const otp = {
status(): Promise<{ status: boolean }> {
return http.get('/otp_status')
},
generate_secret(): Promise<OTPGenerateSecretResponse> { generate_secret(): Promise<OTPGenerateSecretResponse> {
return http.get('/otp_secret') return http.get('/otp_secret')
}, },
@ -15,6 +18,15 @@ const otp = {
reset(recovery_code: string) { reset(recovery_code: string) {
return http.post('/otp_reset', { recovery_code }) return http.post('/otp_reset', { recovery_code })
}, },
start_secure_session(passcode: string, recovery_code: string): Promise<{ session_id: string }> {
return http.post('/otp_secure_session', {
otp: passcode,
recovery_code,
})
},
secure_session_status() {
return http.get('/otp_secure_session_status')
},
} }
export default otp export default otp

@ -1,36 +0,0 @@
import type { RegistrationResponseJSON } from '@simplewebauthn/types'
import http from '@/lib/http'
import type { ModelBase } from '@/api/curd'
export interface Passkey extends ModelBase {
name: string
user_id: string
raw_id: string
}
const passkey = {
begin_registration() {
return http.get('/begin_passkey_register')
},
finish_registration(attestationResponse: RegistrationResponseJSON, passkeyName: string) {
return http.post('/finish_passkey_register', attestationResponse, {
params: {
name: passkeyName,
},
})
},
get_list() {
return http.get('/passkeys')
},
update(passkeyId: number, data: Passkey) {
return http.post(`/passkeys/${passkeyId}`, data)
},
remove(passkeyId: number) {
return http.delete(`/passkeys/${passkeyId}`)
},
get_config_status(): Promise<{ status: boolean }> {
return http.get('/passkeys/config')
},
}
export default passkey

@ -2,12 +2,15 @@
import type { Bread } from '@/components/Breadcrumb/types' import type { Bread } from '@/components/Breadcrumb/types'
import { useBreadcrumbs } from '@/composables/useBreadcrumbs' import { useBreadcrumbs } from '@/composables/useBreadcrumbs'
const name = ref()
const route = useRoute() const route = useRoute()
const router = useRouter() const router = useRouter()
const computedBreadList = computed(() => { const computedBreadList = computed(() => {
const result: Bread[] = [] const result: Bread[] = []
name.value = route.meta.name
route.matched.forEach(item => { route.matched.forEach(item => {
if (item.meta?.lastRouteName) { if (item.meta?.lastRouteName) {
const lastRoute = router.resolve({ name: item.meta.lastRouteName }) const lastRoute = router.resolve({ name: item.meta.lastRouteName })

@ -97,7 +97,7 @@ const chartOptions = computed(() => ({
position: absolute; position: absolute;
top: -30px; top: -30px;
@media (max-width: 1700px) and (min-width: 1200px) { @media (max-width: 1700px) and (min-width: 1200px) {
top: -30px; top: -10px;
} }
@media (max-width: 768px) and (min-width: 290px) { @media (max-width: 768px) and (min-width: 290px) {
left: 50%; left: 50%;
@ -114,6 +114,9 @@ const chartOptions = computed(() => ({
.bottom_text { .bottom_text {
position: absolute; position: absolute;
top: calc(106px); top: calc(106px);
@media (max-width: 1300px) and (min-width: 1200px) {
top: calc(96px);
}
font-weight: 600; font-weight: 600;
width: 100%; width: 100%;
text-align: center; text-align: center;

@ -40,7 +40,7 @@ ace.config.setModuleUrl('ace/ext/searchbox', extSearchboxUrl)
/> />
</template> </template>
<style lang="less" scoped> <style scoped>
:deep(.ace_placeholder) { :deep(.ace_placeholder) {
z-index: 1; z-index: 1;
position: relative; position: relative;

@ -4,11 +4,12 @@ import type { Environment } from '@/api/environment'
import environment from '@/api/environment' import environment from '@/api/environment'
const props = defineProps<{ const props = defineProps<{
target?: number[]
map?: Record<number, string>
hiddenLocal?: boolean hiddenLocal?: boolean
}>() }>()
const target = defineModel<number[]>('target') const emit = defineEmits(['update:target', 'update:map'])
const map = defineModel<Record<number, string>>('map')
const data = ref([]) as Ref<Environment[]> const data = ref([]) as Ref<Environment[]>
const data_map = ref({}) as Ref<Record<number, Environment>> const data_map = ref({}) as Ref<Record<number, Environment>>
@ -32,20 +33,16 @@ onMounted(async () => {
const value = computed({ const value = computed({
get() { get() {
return target.value return props.target
}, },
set(v: number[]) { set(v) {
console.log(v) if (typeof props.map === 'object') {
if (typeof map.value === 'object') { v?.forEach(id => {
const _map = {} if (id !== 0)
emit('update:map', { ...props.map, [id]: data_map.value[id].name })
v?.filter(id => id !== 0).forEach(id => {
_map[id] = data_map.value[id].name
}) })
map.value = _map
} }
target.value = v.filter(id => id !== 0) emit('update:target', v)
}, },
}) })

@ -9,12 +9,12 @@ export function syncConfigError(text: string) {
const data = JSON.parse(text) const data = JSON.parse(text)
if (data.status_code === 404) { if (data.status_code === 404) {
return $gettext('Sync config %{config_name} to %{env_name} failed, please upgrade the remote Nginx UI to the latest version', return $gettext('Sync config %{cert_name} to %{env_name} failed, please upgrade the remote Nginx UI to the latest version',
{ config_name: data.config_name, env_name: data.env_name }, true) { config_name: data.config_name, env_name: data.env_name }, true)
} }
return $gettext('Sync config %{config_name} to %{env_name} failed, response: %{resp}', return $gettext('Sync config %{config_name} to %{env_name} failed, response: %{resp}',
{ config_name: data.cert_name, env_name: data.env_name, resp: data.resp_body }, true) { cert_name: data.cert_name, env_name: data.env_name, resp: data.resp_body }, true)
} }
export function syncRenameConfigSuccess(text: string) { export function syncRenameConfigSuccess(text: string) {

@ -0,0 +1,78 @@
<script setup lang="ts">
import OTPInput from '@/components/OTPInput/OTPInput.vue'
const emit = defineEmits(['onSubmit'])
const refOTP = ref()
const useRecoveryCode = ref(false)
const passcode = ref('')
const recoveryCode = ref('')
function clickUseRecoveryCode() {
passcode.value = ''
useRecoveryCode.value = true
}
function clickUseOTP() {
passcode.value = ''
useRecoveryCode.value = false
}
function onSubmit() {
emit('onSubmit', passcode.value, recoveryCode.value)
}
function clearInput() {
refOTP.value?.clearInput()
}
defineExpose({
clearInput,
})
</script>
<template>
<div>
<div v-if="!useRecoveryCode">
<p>{{ $gettext('Please enter the 2FA code:') }}</p>
<OTPInput
ref="refOTP"
v-model="passcode"
class="justify-center mb-6"
@on-complete="onSubmit"
/>
</div>
<div
v-else
class="mt-2 mb-4"
>
<p>{{ $gettext('Input the recovery code:') }}</p>
<AInputGroup compact>
<AInput v-model:value="recoveryCode" />
<AButton
type="primary"
@click="onSubmit"
>
{{ $gettext('Recovery') }}
</AButton>
</AInputGroup>
</div>
<div class="flex justify-center">
<a
v-if="!useRecoveryCode"
@click="clickUseRecoveryCode"
>{{ $gettext('Use recovery code') }}</a>
<a
v-else
@click="clickUseOTP"
>{{ $gettext('Use OTP') }}</a>
</div>
</div>
</template>
<style scoped lang="less">
:deep(.ant-input-group.ant-input-group-compact) {
display: flex;
}
</style>

@ -1,12 +1,12 @@
import { createVNode, render } from 'vue' import { createVNode, render } from 'vue'
import { Modal, message } from 'ant-design-vue' import { Modal, message } from 'ant-design-vue'
import { useCookies } from '@vueuse/integrations/useCookies' import { useCookies } from '@vueuse/integrations/useCookies'
import Authorization from '@/components/TwoFA/Authorization.vue' import OTPAuthorization from '@/components/OTP/OTPAuthorization.vue'
import twoFA from '@/api/2fa' import otp from '@/api/otp'
import { useUserStore } from '@/pinia' import { useUserStore } from '@/pinia'
const use2FAModal = () => { const useOTPModal = () => {
const refOTPAuthorization = ref<typeof Authorization>() const refOTPAuthorization = ref<typeof OTPAuthorization>()
const randomId = Math.random().toString(36).substring(2, 8) const randomId = Math.random().toString(36).substring(2, 8)
const { secureSessionId } = storeToRefs(useUserStore()) const { secureSessionId } = storeToRefs(useUserStore())
@ -22,11 +22,10 @@ const use2FAModal = () => {
} }
const open = async (): Promise<string> => { const open = async (): Promise<string> => {
const twoFAStatus = await twoFA.status() const { status } = await otp.status()
const { status: secureSessionStatus } = await twoFA.secure_session_status()
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (!twoFAStatus.enabled) { if (!status) {
resolve('') resolve('')
return return
@ -34,12 +33,13 @@ const use2FAModal = () => {
const cookies = useCookies(['nginx-ui-2fa']) const cookies = useCookies(['nginx-ui-2fa'])
const ssid = cookies.get('secure_session_id') const ssid = cookies.get('secure_session_id')
if (ssid && secureSessionStatus) { if (ssid) {
resolve(ssid) resolve(ssid)
secureSessionId.value = ssid secureSessionId.value = ssid
return return
} }
injectStyles() injectStyles()
let container: HTMLDivElement | null = document.createElement('div') let container: HTMLDivElement | null = document.createElement('div')
document.body.appendChild(container) document.body.appendChild(container)
@ -50,16 +50,12 @@ const use2FAModal = () => {
container = null container = null
} }
const setSessionId = (sessionId: string) => { const verify = (passcode: string, recovery: string) => {
cookies.set('secure_session_id', sessionId, { maxAge: 60 * 3 }) otp.start_secure_session(passcode, recovery).then(r => {
close() cookies.set('secure_session_id', r.session_id, { maxAge: 60 * 3 })
secureSessionId.value = sessionId resolve(r.session_id)
resolve(sessionId) close()
} secureSessionId.value = r.session_id
const verifyOTP = (passcode: string, recovery: string) => {
twoFA.start_secure_session_by_otp(passcode, recovery).then(async r => {
setSessionId(r.session_id)
}).catch(async () => { }).catch(async () => {
refOTPAuthorization.value?.clearInput() refOTPAuthorization.value?.clearInput()
await message.error($gettext('Invalid passcode or recovery code')) await message.error($gettext('Invalid passcode or recovery code'))
@ -80,13 +76,11 @@ const use2FAModal = () => {
}, },
}, { }, {
default: () => h( default: () => h(
Authorization, OTPAuthorization,
{ {
ref: refOTPAuthorization, ref: refOTPAuthorization,
twoFAStatus,
class: 'mt-3', class: 'mt-3',
onSubmitOTP: verifyOTP, onOnSubmit: verify,
onSubmitSecureSessionID: setSessionId,
}, },
), ),
}) })
@ -98,4 +92,4 @@ const use2FAModal = () => {
return { open } return { open }
} }
export default use2FAModal export default useOTPModal

@ -1,63 +0,0 @@
<script setup lang="ts">
import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
const props = defineProps<{
time?: string | number
}>()
dayjs.extend(relativeTime)
const text = ref('')
const time = computed(() => {
if (!props.time)
return ''
if (typeof props.time === 'number')
return props.time
return Number.parseInt(props.time)
})
let timer: NodeJS.Timeout
let step: number = 1
async function computedText() {
if (!time.value)
return
// if time is not today, return the datetime
const thatDay = dayjs.unix(time.value).format('YYYY-MM-DD')
if (dayjs().format('YYYY-MM-DD') !== dayjs.unix(time.value).format('YYYY-MM-DD')) {
clearInterval(timer)
text.value = thatDay
return
}
text.value = dayjs.unix(time.value).fromNow()
clearInterval(timer)
timer = setInterval(computedText, step * 60 * 1000)
step += 5
if (step >= 60)
step = 60
}
onMounted(computedText)
watch(() => props.time, computedText)
</script>
<template>
<div class="reactive-time inline">
{{ text }}
</div>
</template>
<style scoped lang="less">
</style>

@ -1,19 +1,10 @@
<script setup lang="ts"> <script setup lang="ts">
import dayjs from 'dayjs' import { watch } from 'vue'
import { useSettingsStore } from '@/pinia' import { useSettingsStore } from '@/pinia'
import gettext from '@/gettext' import gettext from '@/gettext'
import loadTranslations from '@/api/translations' import loadTranslations from '@/api/translations'
import 'dayjs/locale/fr'
import 'dayjs/locale/ja'
import 'dayjs/locale/ko'
import 'dayjs/locale/de'
import 'dayjs/locale/zh-cn'
import 'dayjs/locale/zh-tw'
import 'dayjs/locale/pt'
import 'dayjs/locale/es'
import 'dayjs/locale/it'
const settings = useSettingsStore() const settings = useSettingsStore()
const route = useRoute() const route = useRoute()
@ -29,61 +20,15 @@ const current = computed({
const languageAvailable = gettext.available const languageAvailable = gettext.available
const updateTitle = () => {
const name = route.meta.name as never as () => string
document.title = `${name()} | Nginx UI`
}
watch(current, v => { watch(current, v => {
loadTranslations(route) loadTranslations(route)
settings.set_language(v) settings.set_language(v)
gettext.current = v gettext.current = v
updateTitle() const name = route.meta.name as never as () => string
})
onMounted(() => { document.title = `${name()} | Nginx UI`
updateTitle()
}) })
function init() {
switch (current.value) {
case 'fr':
dayjs.locale('fr')
break
case 'ja':
dayjs.locale('ja')
break
case 'ko':
dayjs.locale('ko')
break
case 'de':
dayjs.locale('de')
break
case 'en':
dayjs.locale('en')
break
case 'zh_TW':
dayjs.locale('zh-tw')
break
case 'pt':
dayjs.locale('pt')
break
case 'es':
dayjs.locale('es')
break
case 'it':
dayjs.locale('it')
break
default:
dayjs.locale('zh-cn')
}
}
init()
watch(current, init)
</script> </script>
<template> <template>

@ -6,7 +6,6 @@ import StdTable from './StdTable.vue'
import StdDataEntry from '@/components/StdDesign/StdDataEntry' import StdDataEntry from '@/components/StdDesign/StdDataEntry'
import type { Column } from '@/components/StdDesign/types' import type { Column } from '@/components/StdDesign/types'
import StdCurdDetail from '@/components/StdDesign/StdDataDisplay/StdCurdDetail.vue' import StdCurdDetail from '@/components/StdDesign/StdDataDisplay/StdCurdDetail.vue'
import type { StdTableSlots } from '@/components/StdDesign/StdDataDisplay/types'
export interface StdCurdProps<T> extends StdTableProps<T> { export interface StdCurdProps<T> extends StdTableProps<T> {
cardTitleKey?: string cardTitleKey?: string
@ -161,7 +160,6 @@ function view(id: number | string) {
get(id).then(() => { get(id).then(() => {
visible.value = true visible.value = true
modifyMode.value = false modifyMode.value = false
editMode.value = 'modify'
}).catch(e => { }).catch(e => {
message.error($gettext(e?.message ?? 'Server error'), 5) message.error($gettext(e?.message ?? 'Server error'), 5)
}) })
@ -234,7 +232,7 @@ const localOverwriteParams = reactive(props.overwriteParams ?? {})
@selected="onSelect" @selected="onSelect"
> >
<template <template
v-for="(_, key) in ($slots as unknown as StdTableSlots)" v-for="(_, key) in $slots"
:key="key" :key="key"
#[key]="slotProps" #[key]="slotProps"
> >

@ -30,7 +30,7 @@ const pageSize = computed({
class="pagination-container" class="pagination-container"
> >
<APagination <APagination
v-model:page-size="pageSize" v-model:pageSize="pageSize"
:disabled="loading" :disabled="loading"
:current="pagination.current_page" :current="pagination.current_page"
show-size-changer show-size-changer

@ -1,4 +0,0 @@
export interface StdTableSlots {
'append-search': ({}) => any
actions: ({}: Record<string, any>) => any
}

@ -1,136 +0,0 @@
<script setup lang="ts">
import { KeyOutlined } from '@ant-design/icons-vue'
import { startAuthentication } from '@simplewebauthn/browser'
import { message } from 'ant-design-vue'
import OTPInput from '@/components/OTPInput/OTPInput.vue'
import type { TwoFAStatusResponse } from '@/api/2fa'
import twoFA from '@/api/2fa'
import { useUserStore } from '@/pinia'
defineProps<{
twoFAStatus: TwoFAStatusResponse
}>()
const emit = defineEmits(['submitOTP', 'submitSecureSessionID'])
const user = useUserStore()
const refOTP = ref()
const useRecoveryCode = ref(false)
const passcode = ref('')
const recoveryCode = ref('')
const passkeyLoading = ref(false)
function clickUseRecoveryCode() {
passcode.value = ''
useRecoveryCode.value = true
}
function clickUseOTP() {
passcode.value = ''
useRecoveryCode.value = false
}
function onSubmit() {
emit('submitOTP', passcode.value, recoveryCode.value)
}
function clearInput() {
refOTP.value?.clearInput()
}
defineExpose({
clearInput,
})
async function passkeyAuthenticate() {
passkeyLoading.value = true
try {
const begin = await twoFA.begin_start_secure_session_by_passkey()
const asseResp = await startAuthentication(begin.options.publicKey)
const r = await twoFA.finish_start_secure_session_by_passkey({
session_id: begin.session_id,
options: asseResp,
})
emit('submitSecureSessionID', r.session_id)
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
catch (e: any) {
message.error($gettext(e.message ?? 'Server error'))
}
passkeyLoading.value = false
}
onMounted(() => {
if (user.passkeyLoginAvailable)
passkeyAuthenticate()
})
</script>
<template>
<div>
<div v-if="twoFAStatus.otp_status">
<div v-if="!useRecoveryCode">
<p>{{ $gettext('Please enter the OTP code:') }}</p>
<OTPInput
ref="refOTP"
v-model="passcode"
class="justify-center mb-6"
@on-complete="onSubmit"
/>
</div>
<div
v-else
class="mt-2 mb-4"
>
<p>{{ $gettext('Input the recovery code:') }}</p>
<AInputGroup compact>
<AInput v-model:value="recoveryCode" />
<AButton
type="primary"
@click="onSubmit"
>
{{ $gettext('Recovery') }}
</AButton>
</AInputGroup>
</div>
<div class="flex justify-center">
<a
v-if="!useRecoveryCode"
@click="clickUseRecoveryCode"
>{{ $gettext('Use recovery code') }}</a>
<a
v-else
@click="clickUseOTP"
>{{ $gettext('Use OTP') }}</a>
</div>
</div>
<div
v-if="twoFAStatus.passkey_status"
class="flex flex-col justify-center"
>
<ADivider v-if="twoFAStatus.otp_status">
<div class="text-sm font-normal opacity-75">
{{ $gettext('Or') }}
</div>
</ADivider>
<AButton
:loading="passkeyLoading"
@click="passkeyAuthenticate"
>
<KeyOutlined />
{{ $gettext('Authenticate with a passkey') }}
</AButton>
</div>
</div>
</template>
<style scoped lang="less">
:deep(.ant-input-group.ant-input-group-compact) {
display: flex;
}
</style>

@ -13,7 +13,7 @@ msgstr ""
msgid "2FA" msgid "2FA"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:58 #: src/views/preference/components/TOTP.vue:88
msgid "2FA Settings" msgid "2FA Settings"
msgstr "" msgstr ""
@ -37,13 +37,13 @@ msgstr "Username"
#: src/views/config/configColumns.ts:38 src/views/domain/DomainList.vue:47 #: src/views/config/configColumns.ts:38 src/views/domain/DomainList.vue:47
#: src/views/environment/envColumns.tsx:131 #: src/views/environment/envColumns.tsx:131
#: src/views/notification/notificationColumns.tsx:54 #: src/views/notification/notificationColumns.tsx:54
#: src/views/preference/AuthSettings.vue:27 src/views/stream/StreamList.vue:47 #: src/views/preference/AuthSettings.vue:26 src/views/stream/StreamList.vue:47
#: src/views/user/userColumns.tsx:60 #: src/views/user/userColumns.tsx:60
msgid "Action" msgid "Action"
msgstr "Action" msgstr "Action"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:182 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:181
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:203 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:202
#: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:117 #: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:117
#: src/views/domain/ngx_conf/NgxServer.vue:162 #: src/views/domain/ngx_conf/NgxServer.vue:162
#: src/views/domain/ngx_conf/NgxUpstream.vue:152 #: src/views/domain/ngx_conf/NgxUpstream.vue:152
@ -52,13 +52,8 @@ msgstr "Action"
msgid "Add" msgid "Add"
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:51 #: src/routes/index.ts:112 src/views/config/ConfigEditor.vue:135
#: src/views/preference/components/AddPasskey.vue:55 #: src/views/config/ConfigEditor.vue:196
msgid "Add a passkey"
msgstr ""
#: src/routes/index.ts:112 src/views/config/ConfigEditor.vue:143
#: src/views/config/ConfigEditor.vue:204
#, fuzzy #, fuzzy
msgid "Add Configuration" msgid "Add Configuration"
msgstr "Edit Configuration" msgstr "Edit Configuration"
@ -95,10 +90,6 @@ msgstr "Add Location"
msgid "Advance Mode" msgid "Advance Mode"
msgstr "Advance Mode" msgstr "Advance Mode"
#: src/views/preference/components/AddPasskey.vue:105
msgid "Afterwards, refresh this page and click add passkey again."
msgstr ""
#: src/views/preference/OpenAISettings.vue:44 #: src/views/preference/OpenAISettings.vue:44
msgid "API Base Url" msgid "API Base Url"
msgstr "" msgstr ""
@ -119,16 +110,11 @@ msgstr ""
msgid "Arch" msgid "Arch"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:102 #: src/views/preference/AuthSettings.vue:96
#, fuzzy #, fuzzy
msgid "Are you sure to delete this banned IP immediately?" msgid "Are you sure to delete this banned IP immediately?"
msgstr "Are you sure you want to remove this directive?" msgstr "Are you sure you want to remove this directive?"
#: src/views/preference/components/Passkey.vue:119
#, fuzzy
msgid "Are you sure to delete this passkey immediately?"
msgstr "Are you sure you want to remove this directive?"
#: src/components/Notification/Notification.vue:86 #: src/components/Notification/Notification.vue:86
#: src/views/notification/Notification.vue:40 #: src/views/notification/Notification.vue:40
#, fuzzy #, fuzzy
@ -182,22 +168,14 @@ msgstr ""
msgid "Assistant" msgid "Assistant"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:18 #: src/views/preference/AuthSettings.vue:17
msgid "Attempts" msgid "Attempts"
msgstr "" msgstr ""
#: src/views/preference/Preference.vue:122 #: src/views/preference/Preference.vue:116
msgid "Auth" msgid "Auth"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:126
msgid "Authenticate with a passkey"
msgstr ""
#: src/views/preference/AuthSettings.vue:63
msgid "Authentication Settings"
msgstr ""
#: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:106 #: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:106
#: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:120 #: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:120
msgid "Author" msgid "Author"
@ -216,8 +194,8 @@ msgid "Auto-renewal enabled for %{name}"
msgstr "Auto-renewal enabled for %{name}" msgstr "Auto-renewal enabled for %{name}"
#: src/views/certificate/CertificateEditor.vue:247 #: src/views/certificate/CertificateEditor.vue:247
#: src/views/config/ConfigEditor.vue:213 src/views/config/ConfigList.vue:107 #: src/views/config/ConfigEditor.vue:205 src/views/config/ConfigList.vue:173
#: src/views/config/ConfigList.vue:181 src/views/domain/DomainEdit.vue:253 #: src/views/config/ConfigList.vue:99 src/views/domain/DomainEdit.vue:253
#: src/views/nginx_log/NginxLog.vue:168 src/views/stream/StreamEdit.vue:245 #: src/views/nginx_log/NginxLog.vue:168 src/views/stream/StreamEdit.vue:245
msgid "Back" msgid "Back"
msgstr "Back" msgstr "Back"
@ -227,19 +205,19 @@ msgstr "Back"
msgid "Back Home" msgid "Back Home"
msgstr "Back" msgstr "Back"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:216 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:215
msgid "Back to list" msgid "Back to list"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:76 #: src/views/preference/AuthSettings.vue:70
msgid "Ban Threshold Minutes" msgid "Ban Threshold Minutes"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:90 #: src/views/preference/AuthSettings.vue:84
msgid "Banned IPs" msgid "Banned IPs"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:21 #: src/views/preference/AuthSettings.vue:20
msgid "Banned Until" msgid "Banned Until"
msgstr "" msgstr ""
@ -247,9 +225,9 @@ msgstr ""
msgid "Base information" msgid "Base information"
msgstr "Base information" msgstr "Base information"
#: src/views/config/ConfigEditor.vue:241 #: src/views/config/ConfigEditor.vue:233
#: src/views/domain/components/RightSettings.vue:75 #: src/views/domain/components/RightSettings.vue:75
#: src/views/preference/Preference.vue:116 #: src/views/preference/Preference.vue:110
#: src/views/stream/components/RightSettings.vue:74 #: src/views/stream/components/RightSettings.vue:74
#, fuzzy #, fuzzy
msgid "Basic" msgid "Basic"
@ -281,13 +259,9 @@ msgstr ""
msgid "CADir" msgid "CADir"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:151
msgid "Can't scan? Use text key binding"
msgstr ""
#: src/components/ChatGPT/ChatGPT.vue:252 #: src/components/ChatGPT/ChatGPT.vue:252
#: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:55 #: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:55
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:253 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:252
#: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:153 #: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:153
#: src/views/domain/cert/components/ObtainCert.vue:137 #: src/views/domain/cert/components/ObtainCert.vue:137
#: src/views/domain/components/Deploy.vue:21 #: src/views/domain/components/Deploy.vue:21
@ -295,7 +269,6 @@ msgstr ""
#: src/views/domain/ngx_conf/NgxConfigEditor.vue:50 #: src/views/domain/ngx_conf/NgxConfigEditor.vue:50
#: src/views/domain/ngx_conf/NgxServer.vue:80 #: src/views/domain/ngx_conf/NgxServer.vue:80
#: src/views/domain/ngx_conf/NgxUpstream.vue:33 #: src/views/domain/ngx_conf/NgxUpstream.vue:33
#: src/views/preference/components/Passkey.vue:147
#: src/views/stream/components/Deploy.vue:21 #: src/views/stream/components/Deploy.vue:21
#: src/views/stream/components/RightSettings.vue:51 #: src/views/stream/components/RightSettings.vue:51
msgid "Cancel" msgid "Cancel"
@ -342,7 +315,7 @@ msgid_plural "Changed Certificates"
msgstr[0] "Certificate is valid" msgstr[0] "Certificate is valid"
msgstr[1] "Certificate is valid" msgstr[1] "Certificate is valid"
#: src/views/config/ConfigEditor.vue:268 #: src/views/config/ConfigEditor.vue:260
#, fuzzy #, fuzzy
msgid "Changed Path" msgid "Changed Path"
msgstr "Certificate is valid" msgstr "Certificate is valid"
@ -396,7 +369,7 @@ msgstr ""
msgid "Configuration Name" msgid "Configuration Name"
msgstr "Configuration Name" msgstr "Configuration Name"
#: src/views/config/ConfigList.vue:99 #: src/views/config/ConfigList.vue:91
msgid "Configurations" msgid "Configurations"
msgstr "Configurations" msgstr "Configurations"
@ -447,18 +420,17 @@ msgstr "Created at"
msgid "Create Another" msgid "Create Another"
msgstr "Create Another" msgstr "Create Another"
#: src/views/config/ConfigList.vue:117 #: src/views/config/ConfigList.vue:109
#, fuzzy #, fuzzy
msgid "Create File" msgid "Create File"
msgstr "Created at" msgstr "Created at"
#: src/views/config/components/Mkdir.vue:48 src/views/config/ConfigList.vue:124 #: src/views/config/components/Mkdir.vue:48 src/views/config/ConfigList.vue:116
#, fuzzy #, fuzzy
msgid "Create Folder" msgid "Create Folder"
msgstr "Create Another" msgstr "Create Another"
#: src/views/notification/notificationColumns.tsx:48 #: src/views/notification/notificationColumns.tsx:48
#: src/views/preference/components/Passkey.vue:101
#: src/views/user/userColumns.tsx:48 #: src/views/user/userColumns.tsx:48
msgid "Created at" msgid "Created at"
msgstr "Created at" msgstr "Created at"
@ -480,12 +452,12 @@ msgstr ""
msgid "Credentials" msgid "Credentials"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:99 #: src/views/preference/components/TOTP.vue:96
msgid "Current account is enabled TOTP." msgid "Current account is enabled 2FA."
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:96 #: src/views/preference/components/TOTP.vue:93
msgid "Current account is not enabled TOTP." msgid "Current account is not enabled 2FA."
msgstr "" msgstr ""
#: src/views/system/Upgrade.vue:167 #: src/views/system/Upgrade.vue:167
@ -503,8 +475,8 @@ msgid ""
"indicator." "indicator."
msgstr "" msgstr ""
#: src/routes/index.ts:39 src/views/config/ConfigEditor.vue:133 #: src/routes/index.ts:39 src/views/config/ConfigEditor.vue:125
#: src/views/config/ConfigEditor.vue:94 src/views/config/ConfigList.vue:65 #: src/views/config/ConfigEditor.vue:86 src/views/config/ConfigList.vue:57
msgid "Dashboard" msgid "Dashboard"
msgstr "Dashboard" msgstr "Dashboard"
@ -541,7 +513,7 @@ msgstr ""
msgid "Deleted successfully" msgid "Deleted successfully"
msgstr "Disabled successfully" msgstr "Disabled successfully"
#: src/views/config/ConfigEditor.vue:284 #: src/views/config/ConfigEditor.vue:276
#: src/views/domain/components/Deploy.vue:104 #: src/views/domain/components/Deploy.vue:104
#: src/views/domain/components/RightSettings.vue:93 #: src/views/domain/components/RightSettings.vue:93
#: src/views/stream/components/Deploy.vue:103 #: src/views/stream/components/Deploy.vue:103
@ -706,12 +678,6 @@ msgstr ""
msgid "Dry run mode enabled" msgid "Dry run mode enabled"
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:107
msgid ""
"Due to the security policies of some browsers, you cannot use passkeys on "
"non-HTTPS websites, except when running on localhost."
msgstr ""
#: src/views/domain/components/SiteDuplicate.vue:122 #: src/views/domain/components/SiteDuplicate.vue:122
#: src/views/domain/DomainList.vue:140 #: src/views/domain/DomainList.vue:140
#: src/views/stream/components/StreamDuplicate.vue:122 #: src/views/stream/components/StreamDuplicate.vue:122
@ -747,7 +713,7 @@ msgstr "Saved successfully"
msgid "Edit %{n}" msgid "Edit %{n}"
msgstr "Edit %{n}" msgstr "Edit %{n}"
#: src/routes/index.ts:122 src/views/config/ConfigEditor.vue:204 #: src/routes/index.ts:122 src/views/config/ConfigEditor.vue:196
msgid "Edit Configuration" msgid "Edit Configuration"
msgstr "Edit Configuration" msgstr "Edit Configuration"
@ -787,7 +753,12 @@ msgstr ""
msgid "Enable %{conf_name} in %{node_name} successfully" msgid "Enable %{conf_name} in %{node_name} successfully"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:55 #: src/views/preference/components/TOTP.vue:122
#, fuzzy
msgid "Enable 2FA"
msgstr "Enabled"
#: src/views/preference/components/TOTP.vue:52
#, fuzzy #, fuzzy
msgid "Enable 2FA successfully" msgid "Enable 2FA successfully"
msgstr "Enabled successfully" msgstr "Enabled successfully"
@ -810,11 +781,6 @@ msgstr "Enabled successfully"
msgid "Enable TLS" msgid "Enable TLS"
msgstr "Enable TLS" msgstr "Enable TLS"
#: src/views/preference/components/TOTP.vue:125
#, fuzzy
msgid "Enable TOTP"
msgstr "Enable TLS"
#: src/views/domain/components/RightSettings.vue:77 #: src/views/domain/components/RightSettings.vue:77
#: src/views/domain/DomainEdit.vue:175 src/views/domain/DomainList.vue:29 #: src/views/domain/DomainEdit.vue:175 src/views/domain/DomainList.vue:29
#: src/views/environment/envColumns.tsx:104 #: src/views/environment/envColumns.tsx:104
@ -932,26 +898,20 @@ msgstr ""
msgid "Finished" msgid "Finished"
msgstr "Finished" msgstr "Finished"
#: src/views/preference/components/AddPasskey.vue:77
msgid ""
"Follow the instructions in the dialog to complete the passkey registration "
"process."
msgstr ""
#: src/views/preference/BasicSettings.vue:43 #: src/views/preference/BasicSettings.vue:43
msgid "For Chinese user: https://mirror.ghproxy.com/" msgid "For Chinese user: https://mirror.ghproxy.com/"
msgstr "" msgstr ""
#: src/views/config/ConfigEditor.vue:216 #: src/views/config/ConfigEditor.vue:208
msgid "Format Code" msgid "Format Code"
msgstr "" msgstr ""
#: src/views/config/ConfigEditor.vue:183 #: src/views/config/ConfigEditor.vue:175
#, fuzzy #, fuzzy
msgid "Format error %{msg}" msgid "Format error %{msg}"
msgstr "Save error %{msg}" msgstr "Save error %{msg}"
#: src/views/config/ConfigEditor.vue:181 #: src/views/config/ConfigEditor.vue:173
#, fuzzy #, fuzzy
msgid "Format successfully" msgid "Format successfully"
msgstr "Saved successfully" msgstr "Saved successfully"
@ -1010,22 +970,18 @@ msgstr ""
msgid "If left blank, the default CA Dir will be used." msgid "If left blank, the default CA Dir will be used."
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:68 #: src/views/preference/AuthSettings.vue:62
msgid "" msgid ""
"If the number of login failed attempts from a ip reach the max attempts in " "If the number of login failed attempts from a ip reach the max attempts in "
"ban threshold minutes, the ip will be banned for a period of time." "ban threshold minutes, the ip will be banned for a period of time."
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:111 #: src/views/preference/components/TOTP.vue:108
msgid "" msgid ""
"If you lose your mobile phone, you can use the recovery code to reset your " "If you lose your mobile phone, you can use the recovery code to reset your "
"2FA." "2FA."
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:76
msgid "If your browser supports WebAuthn Passkey, a dialog box will appear."
msgstr ""
#: src/views/domain/cert/components/AutoCertStepOne.vue:109 #: src/views/domain/cert/components/AutoCertStepOne.vue:109
msgid "" msgid ""
"If your domain has CNAME records and you cannot obtain certificates, you " "If your domain has CNAME records and you cannot obtain certificates, you "
@ -1041,7 +997,7 @@ msgstr ""
msgid "Import Certificate" msgid "Import Certificate"
msgstr "Certificate Status" msgstr "Certificate Status"
#: src/views/other/Login.vue:79 #: src/views/other/Login.vue:71
msgid "Incorrect username or password" msgid "Incorrect username or password"
msgstr "" msgstr ""
@ -1057,12 +1013,12 @@ msgstr ""
msgid "Initialing core upgrader" msgid "Initialing core upgrader"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:158 #: src/views/preference/components/TOTP.vue:144
msgid "Input the code from the app:" msgid "Input the code from the app:"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:87 #: src/components/OTP/OTPAuthorization.vue:49
#: src/views/preference/components/TOTP.vue:171 #: src/views/preference/components/TOTP.vue:157
msgid "Input the recovery code:" msgid "Input the recovery code:"
msgstr "" msgstr ""
@ -1084,12 +1040,12 @@ msgstr ""
msgid "Invalid" msgid "Invalid"
msgstr "Invalid E-mail!" msgstr "Invalid E-mail!"
#: src/views/other/Login.vue:89 #: src/views/other/Login.vue:81
msgid "Invalid 2FA or recovery code" msgid "Invalid 2FA or recovery code"
msgstr "" msgstr ""
#: src/views/config/components/Rename.vue:65 #: src/views/config/components/Rename.vue:65
#: src/views/config/ConfigEditor.vue:250 #: src/views/config/ConfigEditor.vue:242
#, fuzzy #, fuzzy
msgid "Invalid filename" msgid "Invalid filename"
msgstr "Invalid E-mail!" msgstr "Invalid E-mail!"
@ -1098,11 +1054,11 @@ msgstr "Invalid E-mail!"
msgid "Invalid folder name" msgid "Invalid folder name"
msgstr "" msgstr ""
#: src/components/2FA/use2FAModal.ts:65 #: src/components/OTP/useOTPModal.ts:61
msgid "Invalid passcode or recovery code" msgid "Invalid passcode or recovery code"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:15 #: src/views/preference/AuthSettings.vue:14
msgid "IP" msgid "IP"
msgstr "" msgstr ""
@ -1138,11 +1094,6 @@ msgstr ""
msgid "Last checked at" msgid "Last checked at"
msgstr "" msgstr ""
#: src/views/preference/components/Passkey.vue:102
#, fuzzy
msgid "Last used at"
msgstr "Created at"
#: src/views/user/userColumns.tsx:25 #: src/views/user/userColumns.tsx:25
msgid "Leave blank for no change" msgid "Leave blank for no change"
msgstr "Leave blank for no change" msgstr "Leave blank for no change"
@ -1171,7 +1122,7 @@ msgstr "License"
msgid "Link Start" msgid "Link Start"
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:193 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:192
msgid "List" msgid "List"
msgstr "" msgstr ""
@ -1190,7 +1141,7 @@ msgid "Load successfully"
msgstr "Saved successfully" msgstr "Saved successfully"
#: src/components/EnvIndicator/EnvIndicator.vue:39 #: src/components/EnvIndicator/EnvIndicator.vue:39
#: src/components/NodeSelector/NodeSelector.vue:71 #: src/components/NodeSelector/NodeSelector.vue:68
#, fuzzy #, fuzzy
msgid "Local" msgid "Local"
msgstr "Location" msgstr "Location"
@ -1208,11 +1159,11 @@ msgstr "Locations"
msgid "Log" msgid "Log"
msgstr "Login" msgstr "Login"
#: src/routes/index.ts:305 src/views/other/Login.vue:247 #: src/routes/index.ts:305 src/views/other/Login.vue:192
msgid "Login" msgid "Login"
msgstr "Login" msgstr "Login"
#: src/views/other/Login.vue:133 src/views/other/Login.vue:66 #: src/views/other/Login.vue:125 src/views/other/Login.vue:60
msgid "Login successful" msgid "Login successful"
msgstr "Login successful" msgstr "Login successful"
@ -1220,7 +1171,7 @@ msgstr "Login successful"
msgid "Logout successful" msgid "Logout successful"
msgstr "Logout successful" msgstr "Logout successful"
#: src/views/preference/Preference.vue:140 #: src/views/preference/Preference.vue:134
msgid "Logrotate" msgid "Logrotate"
msgstr "" msgstr ""
@ -1243,8 +1194,8 @@ msgstr ""
"Make sure you have configured a reverse proxy for .well-known directory to " "Make sure you have configured a reverse proxy for .well-known directory to "
"HTTPChallengePort (default: 9180) before getting the certificate." "HTTPChallengePort (default: 9180) before getting the certificate."
#: src/routes/index.ts:102 src/views/config/ConfigEditor.vue:138 #: src/routes/index.ts:102 src/views/config/ConfigEditor.vue:130
#: src/views/config/ConfigEditor.vue:99 src/views/config/ConfigList.vue:70 #: src/views/config/ConfigEditor.vue:91 src/views/config/ConfigList.vue:62
msgid "Manage Configs" msgid "Manage Configs"
msgstr "Manage Configs" msgstr "Manage Configs"
@ -1266,7 +1217,7 @@ msgstr "Manage Users"
msgid "Managed Certificate" msgid "Managed Certificate"
msgstr "Certificate is valid" msgstr "Certificate is valid"
#: src/views/preference/AuthSettings.vue:82 #: src/views/preference/AuthSettings.vue:76
msgid "Max Attempts" msgid "Max Attempts"
msgstr "" msgstr ""
@ -1289,9 +1240,9 @@ msgid "Model"
msgstr "Advance Mode" msgstr "Advance Mode"
#: src/components/ChatGPT/ChatGPT.vue:248 #: src/components/ChatGPT/ChatGPT.vue:248
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:182 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:181
#: src/components/StdDesign/StdDataDisplay/StdTable.vue:531 #: src/components/StdDesign/StdDataDisplay/StdTable.vue:531
#: src/views/config/ConfigList.vue:159 #: src/views/config/ConfigList.vue:151
#, fuzzy #, fuzzy
msgid "Modify" msgid "Modify"
msgstr "Modify Config" msgstr "Modify Config"
@ -1305,7 +1256,7 @@ msgstr "Certificate Status"
msgid "Modify Config" msgid "Modify Config"
msgstr "Modify Config" msgstr "Modify Config"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:269 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:268
#, fuzzy #, fuzzy
msgid "Modify Mode" msgid "Modify Mode"
msgstr "Modify Config" msgstr "Modify Config"
@ -1320,13 +1271,12 @@ msgstr "Single Directive"
#: src/views/certificate/CertificateList/certColumns.tsx:10 #: src/views/certificate/CertificateList/certColumns.tsx:10
#: src/views/certificate/DNSCredential.vue:11 #: src/views/certificate/DNSCredential.vue:11
#: src/views/config/components/Mkdir.vue:65 src/views/config/configColumns.ts:8 #: src/views/config/components/Mkdir.vue:65 src/views/config/configColumns.ts:8
#: src/views/config/ConfigEditor.vue:256 #: src/views/config/ConfigEditor.vue:248
#: src/views/domain/components/RightSettings.vue:83 #: src/views/domain/components/RightSettings.vue:83
#: src/views/domain/components/SiteDuplicate.vue:129 #: src/views/domain/components/SiteDuplicate.vue:129
#: src/views/domain/DomainList.vue:13 #: src/views/domain/DomainList.vue:13
#: src/views/domain/ngx_conf/NgxUpstream.vue:175 #: src/views/domain/ngx_conf/NgxUpstream.vue:175
#: src/views/environment/envColumns.tsx:9 #: src/views/environment/envColumns.tsx:9
#: src/views/preference/components/AddPasskey.vue:81
#: src/views/stream/components/RightSettings.vue:82 #: src/views/stream/components/RightSettings.vue:82
#: src/views/stream/components/StreamDuplicate.vue:129 #: src/views/stream/components/StreamDuplicate.vue:129
#: src/views/stream/StreamList.vue:13 src/views/stream/StreamList.vue:188 #: src/views/stream/StreamList.vue:13 src/views/stream/StreamList.vue:188
@ -1354,7 +1304,7 @@ msgstr "Network Total Send"
msgid "New name" msgid "New name"
msgstr "Username" msgstr "Username"
#: src/views/config/ConfigEditor.vue:268 #: src/views/config/ConfigEditor.vue:260
#, fuzzy #, fuzzy
msgid "New Path" msgid "New Path"
msgstr "Path" msgstr "Path"
@ -1369,7 +1319,7 @@ msgstr ""
msgid "Next" msgid "Next"
msgstr "Next" msgstr "Next"
#: src/views/preference/Preference.vue:128 #: src/views/preference/Preference.vue:122
msgid "Nginx" msgid "Nginx"
msgstr "" msgstr ""
@ -1413,7 +1363,7 @@ msgstr "Saved successfully"
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:90 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:90
#: src/views/domain/ngx_conf/LocationEditor.vue:70 #: src/views/domain/ngx_conf/LocationEditor.vue:70
#: src/views/notification/Notification.vue:38 #: src/views/notification/Notification.vue:38
#: src/views/preference/AuthSettings.vue:104 #: src/views/preference/AuthSettings.vue:98
#: src/views/preference/BasicSettings.vue:101 #: src/views/preference/BasicSettings.vue:101
#: src/views/stream/StreamList.vue:165 #: src/views/stream/StreamList.vue:165
msgid "No" msgid "No"
@ -1469,13 +1419,13 @@ msgid ""
"Firefox." "Firefox."
msgstr "" msgstr ""
#: src/components/NodeSelector/NodeSelector.vue:94 #: src/components/NodeSelector/NodeSelector.vue:91
#: src/views/dashboard/Environments.vue:107 #: src/views/dashboard/Environments.vue:107
#: src/views/environment/envColumns.tsx:90 #: src/views/environment/envColumns.tsx:90
msgid "Offline" msgid "Offline"
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:254 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:253
#: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:154 #: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:154
msgid "Ok" msgid "Ok"
msgstr "" msgstr ""
@ -1504,21 +1454,17 @@ msgstr ""
msgid "Once the verification is complete, the records will be removed." msgid "Once the verification is complete, the records will be removed."
msgstr "" msgstr ""
#: src/components/NodeSelector/NodeSelector.vue:74 #: src/components/NodeSelector/NodeSelector.vue:71
#: src/components/NodeSelector/NodeSelector.vue:88 #: src/components/NodeSelector/NodeSelector.vue:85
#: src/views/dashboard/Environments.vue:100 #: src/views/dashboard/Environments.vue:100
#: src/views/environment/envColumns.tsx:86 #: src/views/environment/envColumns.tsx:86
msgid "Online" msgid "Online"
msgstr "" msgstr ""
#: src/views/preference/Preference.vue:134 #: src/views/preference/Preference.vue:128
msgid "OpenAI" msgid "OpenAI"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:117 src/views/other/Login.vue:256
msgid "Or"
msgstr ""
#: src/views/config/components/Rename.vue:69 #: src/views/config/components/Rename.vue:69
msgid "Original name" msgid "Original name"
msgstr "" msgstr ""
@ -1532,13 +1478,13 @@ msgstr "OS:"
msgid "OS:" msgid "OS:"
msgstr "OS:" msgstr "OS:"
#: src/views/config/ConfigEditor.vue:293 #: src/views/config/ConfigEditor.vue:285
#: src/views/domain/components/Deploy.vue:88 #: src/views/domain/components/Deploy.vue:88
#: src/views/stream/components/Deploy.vue:87 #: src/views/stream/components/Deploy.vue:87
msgid "Overwrite" msgid "Overwrite"
msgstr "" msgstr ""
#: src/views/config/ConfigEditor.vue:297 #: src/views/config/ConfigEditor.vue:289
#: src/views/domain/components/Deploy.vue:92 #: src/views/domain/components/Deploy.vue:92
#: src/views/stream/components/Deploy.vue:91 #: src/views/stream/components/Deploy.vue:91
msgid "Overwrite exist file" msgid "Overwrite exist file"
@ -1548,18 +1494,7 @@ msgstr ""
msgid "Params" msgid "Params"
msgstr "Params" msgstr "Params"
#: src/views/preference/components/Passkey.vue:65 #: src/views/other/Login.vue:169 src/views/user/userColumns.tsx:18
msgid "Passkey"
msgstr ""
#: src/views/preference/components/Passkey.vue:68
msgid ""
"Passkeys are webauthn credentials that validate your identity using touch, "
"facial recognition, a device password, or a PIN. They can be used as a "
"password replacement or as a 2FA method."
msgstr ""
#: src/views/other/Login.vue:208 src/views/user/userColumns.tsx:18
msgid "Password" msgid "Password"
msgstr "Password" msgstr "Password"
@ -1567,7 +1502,7 @@ msgstr "Password"
msgid "Password (*)" msgid "Password (*)"
msgstr "Password (*)" msgstr "Password (*)"
#: src/views/config/ConfigEditor.vue:262 #: src/views/config/ConfigEditor.vue:254
#: src/views/domain/ngx_conf/LocationEditor.vue:118 #: src/views/domain/ngx_conf/LocationEditor.vue:118
#: src/views/domain/ngx_conf/LocationEditor.vue:90 #: src/views/domain/ngx_conf/LocationEditor.vue:90
msgid "Path" msgid "Path"
@ -1585,14 +1520,8 @@ msgstr ""
msgid "Performing core upgrade" msgid "Performing core upgrade"
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:75 #: src/components/OTP/OTPAuthorization.vue:37
msgid "" msgid "Please enter the 2FA code:"
"Please enter a name for the passkey you wish to create and click the OK "
"button below."
msgstr ""
#: src/components/2FA/Authorization.vue:75
msgid "Please enter the OTP code:"
msgstr "" msgstr ""
#: src/views/certificate/DNSCredential.vue:53 #: src/views/certificate/DNSCredential.vue:53
@ -1601,7 +1530,7 @@ msgid ""
"provider." "provider."
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:133 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:132
msgid "Please fill in the required fields" msgid "Please fill in the required fields"
msgstr "" msgstr ""
@ -1612,7 +1541,7 @@ msgid ""
msgstr "" msgstr ""
#: src/views/config/components/Rename.vue:64 #: src/views/config/components/Rename.vue:64
#: src/views/config/ConfigEditor.vue:249 #: src/views/config/ConfigEditor.vue:241
#, fuzzy #, fuzzy
msgid "Please input a filename" msgid "Please input a filename"
msgstr "Please input your username!" msgstr "Please input your username!"
@ -1633,11 +1562,11 @@ msgstr ""
msgid "Please input your E-mail!" msgid "Please input your E-mail!"
msgstr "Please input your E-mail!" msgstr "Please input your E-mail!"
#: src/views/other/Install.vue:44 src/views/other/Login.vue:47 #: src/views/other/Install.vue:44 src/views/other/Login.vue:43
msgid "Please input your password!" msgid "Please input your password!"
msgstr "Please input your password!" msgstr "Please input your password!"
#: src/views/other/Install.vue:38 src/views/other/Login.vue:41 #: src/views/other/Install.vue:38 src/views/other/Login.vue:37
msgid "Please input your username!" msgid "Please input your username!"
msgstr "Please input your username!" msgstr "Please input your username!"
@ -1657,7 +1586,7 @@ msgstr ""
msgid "Pre-release" msgid "Pre-release"
msgstr "" msgstr ""
#: src/routes/index.ts:260 src/views/preference/Preference.vue:111 #: src/routes/index.ts:260 src/views/preference/Preference.vue:105
msgid "Preference" msgid "Preference"
msgstr "" msgstr ""
@ -1701,16 +1630,16 @@ msgstr ""
msgid "Recovered Successfully" msgid "Recovered Successfully"
msgstr "Saved successfully" msgstr "Saved successfully"
#: src/components/2FA/Authorization.vue:94 #: src/components/OTP/OTPAuthorization.vue:56
#: src/views/preference/components/TOTP.vue:178 #: src/views/preference/components/TOTP.vue:164
msgid "Recovery" msgid "Recovery"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:104 #: src/views/preference/components/TOTP.vue:101
msgid "Recovery Code" msgid "Recovery Code"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:113 #: src/views/preference/components/TOTP.vue:110
msgid "Recovery Code:" msgid "Recovery Code:"
msgstr "" msgstr ""
@ -1731,11 +1660,6 @@ msgstr ""
msgid "Register failed" msgid "Register failed"
msgstr "Enable failed" msgstr "Enable failed"
#: src/views/preference/components/AddPasskey.vue:26
#, fuzzy
msgid "Register passkey successfully"
msgstr "Enabled successfully"
#: src/views/certificate/ACMEUser.vue:67 #: src/views/certificate/ACMEUser.vue:67
#, fuzzy #, fuzzy
msgid "Register successfully" msgid "Register successfully"
@ -1771,12 +1695,11 @@ msgstr ""
msgid "Reloading nginx" msgid "Reloading nginx"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:109 #: src/views/preference/AuthSettings.vue:103
msgid "Remove" msgid "Remove"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:48 #: src/views/preference/AuthSettings.vue:47
#: src/views/preference/components/Passkey.vue:50
#, fuzzy #, fuzzy
msgid "Remove successfully" msgid "Remove successfully"
msgstr "Saved successfully" msgstr "Saved successfully"
@ -1787,7 +1710,7 @@ msgid "Removed successfully"
msgstr "Saved successfully" msgstr "Saved successfully"
#: src/views/config/components/Rename.vue:55 #: src/views/config/components/Rename.vue:55
#: src/views/config/ConfigList.vue:167 #: src/views/config/ConfigList.vue:159
#: src/views/domain/ngx_conf/NgxUpstream.vue:123 #: src/views/domain/ngx_conf/NgxUpstream.vue:123
#, fuzzy #, fuzzy
msgid "Rename" msgid "Rename"
@ -1856,7 +1779,7 @@ msgstr ""
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:133 #: src/views/preference/components/TOTP.vue:130
msgid "Reset 2FA" msgid "Reset 2FA"
msgstr "" msgstr ""
@ -1879,10 +1802,9 @@ msgstr ""
#: src/components/ChatGPT/ChatGPT.vue:251 #: src/components/ChatGPT/ChatGPT.vue:251
#: src/views/certificate/CertificateEditor.vue:254 #: src/views/certificate/CertificateEditor.vue:254
#: src/views/config/ConfigEditor.vue:222 src/views/domain/DomainEdit.vue:260 #: src/views/config/ConfigEditor.vue:214 src/views/domain/DomainEdit.vue:260
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:120 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:120
#: src/views/preference/components/Passkey.vue:136 #: src/views/preference/Preference.vue:145 src/views/stream/StreamEdit.vue:252
#: src/views/preference/Preference.vue:151 src/views/stream/StreamEdit.vue:252
msgid "Save" msgid "Save"
msgstr "Save" msgstr "Save"
@ -1890,27 +1812,27 @@ msgstr "Save"
msgid "Save Directive" msgid "Save Directive"
msgstr "Save Directive" msgstr "Save Directive"
#: src/views/config/ConfigEditor.vue:171 src/views/domain/DomainAdd.vue:46 #: src/views/config/ConfigEditor.vue:163 src/views/domain/DomainAdd.vue:46
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:41 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:41
msgid "Save error %{msg}" msgid "Save error %{msg}"
msgstr "Save error %{msg}" msgstr "Save error %{msg}"
#: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:39 #: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:39
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:122 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:121
#: src/views/certificate/CertificateEditor.vue:46 #: src/views/certificate/CertificateEditor.vue:46
#: src/views/preference/Preference.vue:79 #: src/views/preference/Preference.vue:74
#, fuzzy #, fuzzy
msgid "Save successfully" msgid "Save successfully"
msgstr "Saved successfully" msgstr "Saved successfully"
#: src/views/config/ConfigEditor.vue:167 src/views/domain/DomainAdd.vue:37 #: src/views/config/ConfigEditor.vue:159 src/views/domain/DomainAdd.vue:37
#: src/views/domain/DomainEdit.vue:143 #: src/views/domain/DomainEdit.vue:143
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:39 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:39
#: src/views/stream/StreamEdit.vue:138 #: src/views/stream/StreamEdit.vue:138
msgid "Saved successfully" msgid "Saved successfully"
msgstr "Saved successfully" msgstr "Saved successfully"
#: src/views/preference/components/TOTP.vue:94 #: src/views/preference/components/TOTP.vue:91
msgid "Scan the QR code with your mobile phone to add the account to the app." msgid "Scan the QR code with your mobile phone to add the account to the app."
msgstr "" msgstr ""
@ -1918,10 +1840,6 @@ msgstr ""
msgid "SDK" msgid "SDK"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:150
msgid "Secret has been copied"
msgstr ""
#: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:155 #: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:155
msgid "Selector" msgid "Selector"
msgstr "" msgstr ""
@ -1940,16 +1858,13 @@ msgstr "Send"
#: src/components/StdDesign/StdDataDisplay/StdTable.vue:252 #: src/components/StdDesign/StdDataDisplay/StdTable.vue:252
#: src/views/config/components/Mkdir.vue:37 #: src/views/config/components/Mkdir.vue:37
#: src/views/config/components/Rename.vue:44 #: src/views/config/components/Rename.vue:44
#: src/views/config/ConfigEditor.vue:108 src/views/domain/DomainList.vue:81 #: src/views/config/ConfigEditor.vue:100 src/views/domain/DomainList.vue:81
#: src/views/environment/BatchUpgrader.vue:57 #: src/views/environment/BatchUpgrader.vue:57
#: src/views/environment/Environment.vue:15 src/views/other/Install.vue:68 #: src/views/environment/Environment.vue:15 src/views/other/Install.vue:68
#: src/views/preference/AuthSettings.vue:50 #: src/views/preference/AuthSettings.vue:49
#: src/views/preference/components/Passkey.vue:26 #: src/views/preference/components/TOTP.vue:42
#: src/views/preference/components/Passkey.vue:43 #: src/views/preference/components/TOTP.vue:55
#: src/views/preference/components/Passkey.vue:56 #: src/views/preference/Preference.vue:78 src/views/stream/StreamList.vue:113
#: src/views/preference/components/TOTP.vue:45
#: src/views/preference/components/TOTP.vue:58
#: src/views/preference/Preference.vue:83 src/views/stream/StreamList.vue:113
#: src/views/stream/StreamList.vue:81 src/views/system/Upgrade.vue:42 #: src/views/stream/StreamList.vue:81 src/views/system/Upgrade.vue:42
msgid "Server error" msgid "Server error"
msgstr "Server error" msgstr "Server error"
@ -1993,10 +1908,6 @@ msgstr ""
msgid "Show" msgid "Show"
msgstr "" msgstr ""
#: src/views/other/Login.vue:265
msgid "Sign in with a passkey"
msgstr ""
#: src/views/domain/ngx_conf/directive/DirectiveAdd.vue:51 #: src/views/domain/ngx_conf/directive/DirectiveAdd.vue:51
msgid "Single Directive" msgid "Single Directive"
msgstr "Single Directive" msgstr "Single Directive"
@ -2030,7 +1941,7 @@ msgstr "Certificate Status"
msgid "SSL Certificate Path" msgid "SSL Certificate Path"
msgstr "Certificate Status" msgstr "Certificate Status"
#: src/views/other/Login.vue:223 #: src/views/other/Login.vue:203
#, fuzzy #, fuzzy
msgid "SSO Login" msgid "SSO Login"
msgstr "Login" msgstr "Login"
@ -2114,7 +2025,7 @@ msgstr "Certificate is valid"
#: src/components/Notification/config.ts:12 #: src/components/Notification/config.ts:12
#, fuzzy #, fuzzy
msgid "" msgid ""
"Sync config %{config_name} to %{env_name} failed, please upgrade the remote " "Sync config %{cert_name} to %{env_name} failed, please upgrade the remote "
"Nginx UI to the latest version" "Nginx UI to the latest version"
msgstr "Saved successfully" msgstr "Saved successfully"
@ -2201,7 +2112,7 @@ msgstr "Certificate Status"
msgid "The path exists, but the file is not a private key" msgid "The path exists, but the file is not a private key"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:112 #: src/views/preference/components/TOTP.vue:109
msgid "" msgid ""
"The recovery code is only displayed once, please save it in a safe place." "The recovery code is only displayed once, please save it in a safe place."
msgstr "" msgstr ""
@ -2265,8 +2176,7 @@ msgid ""
"This will upgrade or reinstall the Nginx UI on %{nodeNames} to %{version}." "This will upgrade or reinstall the Nginx UI on %{nodeNames} to %{version}."
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:67 #: src/views/preference/AuthSettings.vue:61
#: src/views/preference/components/AddPasskey.vue:71
#: src/views/preference/LogrotateSettings.vue:11 #: src/views/preference/LogrotateSettings.vue:11
msgid "Tips" msgid "Tips"
msgstr "" msgstr ""
@ -2275,19 +2185,12 @@ msgstr ""
msgid "Title" msgid "Title"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:93 #: src/views/preference/components/TOTP.vue:90
msgid "" msgid ""
"To enable it, you need to install the Google or Microsoft Authenticator app " "To enable it, you need to install the Google or Microsoft Authenticator app "
"on your mobile phone." "on your mobile phone."
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:95
msgid ""
"To ensure security, Webauthn configuration cannot be added through the UI. "
"Please manually configure the following in the app.ini configuration file "
"and restart Nginx UI."
msgstr ""
#: src/views/domain/ngx_conf/NgxConfigEditor.vue:44 #: src/views/domain/ngx_conf/NgxConfigEditor.vue:44
msgid "" msgid ""
"To make sure the certification auto-renewal can work normally, we need to " "To make sure the certification auto-renewal can work normally, we need to "
@ -2300,25 +2203,21 @@ msgstr ""
msgid "Token is not valid" msgid "Token is not valid"
msgstr "" msgstr ""
#: src/views/other/Login.vue:82 #: src/views/other/Login.vue:74
msgid "Too many login failed attempts, please try again later" msgid "Too many login failed attempts, please try again later"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:91 #: src/views/preference/components/TOTP.vue:89
msgid "TOTP"
msgstr ""
#: src/views/preference/components/TOTP.vue:92
msgid "" msgid ""
"TOTP is a two-factor authentication method that uses a time-based one-time " "TOTP is a two-factor authentication method that uses a time-based one-time "
"password algorithm." "password algorithm."
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:210 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:209
msgid "Trash" msgid "Trash"
msgstr "" msgstr ""
#: src/components/2FA/use2FAModal.ts:71 #: src/components/OTP/useOTPModal.ts:67
msgid "Two-factor authentication required" msgid "Two-factor authentication required"
msgstr "" msgstr ""
@ -2328,14 +2227,9 @@ msgstr ""
msgid "Type" msgid "Type"
msgstr "" msgstr ""
#: src/views/preference/components/Passkey.vue:41
#, fuzzy
msgid "Update successfully"
msgstr "Saved successfully"
#: src/views/certificate/ACMEUser.vue:53 #: src/views/certificate/ACMEUser.vue:53
#: src/views/certificate/DNSCredential.vue:27 #: src/views/certificate/DNSCredential.vue:27
#: src/views/config/configColumns.ts:31 src/views/config/ConfigEditor.vue:275 #: src/views/config/configColumns.ts:31 src/views/config/ConfigEditor.vue:267
#: src/views/domain/components/RightSettings.vue:86 #: src/views/domain/components/RightSettings.vue:86
#: src/views/domain/DomainList.vue:41 src/views/environment/envColumns.tsx:124 #: src/views/domain/DomainList.vue:41 src/views/environment/envColumns.tsx:124
#: src/views/stream/components/RightSettings.vue:85 #: src/views/stream/components/RightSettings.vue:85
@ -2379,11 +2273,11 @@ msgstr "Uptime:"
msgid "URL" msgid "URL"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:107 #: src/components/OTP/OTPAuthorization.vue:69
msgid "Use OTP" msgid "Use OTP"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:103 #: src/components/OTP/OTPAuthorization.vue:65
msgid "Use recovery code" msgid "Use recovery code"
msgstr "" msgstr ""
@ -2392,11 +2286,11 @@ msgstr ""
msgid "User" msgid "User"
msgstr "Username" msgstr "Username"
#: src/views/other/Login.vue:85 #: src/views/other/Login.vue:77
msgid "User is banned" msgid "User is banned"
msgstr "" msgstr ""
#: src/views/other/Login.vue:198 src/views/user/userColumns.tsx:9 #: src/views/other/Login.vue:159 src/views/user/userColumns.tsx:9
msgid "Username" msgid "Username"
msgstr "Username" msgstr "Username"
@ -2424,11 +2318,11 @@ msgstr ""
msgid "View all notifications" msgid "View all notifications"
msgstr "Certificate is valid" msgstr "Certificate is valid"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:182 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:181
msgid "View Details" msgid "View Details"
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:269 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:268
#, fuzzy #, fuzzy
msgid "View Mode" msgid "View Mode"
msgstr "Basic Mode" msgstr "Basic Mode"
@ -2436,7 +2330,6 @@ msgstr "Basic Mode"
#: src/constants/index.ts:17 src/views/config/InspectConfig.vue:33 #: src/constants/index.ts:17 src/views/config/InspectConfig.vue:33
#: src/views/domain/DomainAdd.vue:112 #: src/views/domain/DomainAdd.vue:112
#: src/views/notification/notificationColumns.tsx:19 #: src/views/notification/notificationColumns.tsx:19
#: src/views/preference/components/AddPasskey.vue:88
msgid "Warning" msgid "Warning"
msgstr "Warning" msgstr "Warning"
@ -2467,7 +2360,7 @@ msgstr ""
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:89 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:89
#: src/views/domain/ngx_conf/LocationEditor.vue:69 #: src/views/domain/ngx_conf/LocationEditor.vue:69
#: src/views/preference/AuthSettings.vue:103 #: src/views/preference/AuthSettings.vue:97
#: src/views/preference/BasicSettings.vue:100 #: src/views/preference/BasicSettings.vue:100
msgid "Yes" msgid "Yes"
msgstr "Yes" msgstr "Yes"
@ -2480,20 +2373,6 @@ msgstr ""
msgid "You can check Nginx UI upgrade at this page." msgid "You can check Nginx UI upgrade at this page."
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:93
msgid ""
"You have not configured the settings of Webauthn, so you cannot add a "
"passkey."
msgstr ""
#: src/views/preference/components/Passkey.vue:81
msgid "Your passkeys"
msgstr ""
#, fuzzy
#~ msgid "Enable 2FA"
#~ msgstr "Enabled"
#, fuzzy #, fuzzy
#~ msgid "Rename " #~ msgid "Rename "
#~ msgstr "Username" #~ msgstr "Username"

File diff suppressed because it is too large Load Diff

@ -15,7 +15,7 @@ msgstr ""
msgid "2FA" msgid "2FA"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:58 #: src/views/preference/components/TOTP.vue:88
msgid "2FA Settings" msgid "2FA Settings"
msgstr "" msgstr ""
@ -39,13 +39,13 @@ msgstr "Nom d'utilisateur"
#: src/views/config/configColumns.ts:38 src/views/domain/DomainList.vue:47 #: src/views/config/configColumns.ts:38 src/views/domain/DomainList.vue:47
#: src/views/environment/envColumns.tsx:131 #: src/views/environment/envColumns.tsx:131
#: src/views/notification/notificationColumns.tsx:54 #: src/views/notification/notificationColumns.tsx:54
#: src/views/preference/AuthSettings.vue:27 src/views/stream/StreamList.vue:47 #: src/views/preference/AuthSettings.vue:26 src/views/stream/StreamList.vue:47
#: src/views/user/userColumns.tsx:60 #: src/views/user/userColumns.tsx:60
msgid "Action" msgid "Action"
msgstr "Action" msgstr "Action"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:182 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:181
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:203 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:202
#: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:117 #: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:117
#: src/views/domain/ngx_conf/NgxServer.vue:162 #: src/views/domain/ngx_conf/NgxServer.vue:162
#: src/views/domain/ngx_conf/NgxUpstream.vue:152 #: src/views/domain/ngx_conf/NgxUpstream.vue:152
@ -54,13 +54,8 @@ msgstr "Action"
msgid "Add" msgid "Add"
msgstr "Ajouter" msgstr "Ajouter"
#: src/views/preference/components/AddPasskey.vue:51 #: src/routes/index.ts:112 src/views/config/ConfigEditor.vue:135
#: src/views/preference/components/AddPasskey.vue:55 #: src/views/config/ConfigEditor.vue:196
msgid "Add a passkey"
msgstr ""
#: src/routes/index.ts:112 src/views/config/ConfigEditor.vue:143
#: src/views/config/ConfigEditor.vue:204
#, fuzzy #, fuzzy
msgid "Add Configuration" msgid "Add Configuration"
msgstr "Modifier la configuration" msgstr "Modifier la configuration"
@ -97,10 +92,6 @@ msgstr "Supplémentaire"
msgid "Advance Mode" msgid "Advance Mode"
msgstr "Mode avancé" msgstr "Mode avancé"
#: src/views/preference/components/AddPasskey.vue:105
msgid "Afterwards, refresh this page and click add passkey again."
msgstr ""
#: src/views/preference/OpenAISettings.vue:44 #: src/views/preference/OpenAISettings.vue:44
msgid "API Base Url" msgid "API Base Url"
msgstr "URL de base de l'API" msgstr "URL de base de l'API"
@ -123,16 +114,11 @@ msgstr "Jeton d'API"
msgid "Arch" msgid "Arch"
msgstr "Arch" msgstr "Arch"
#: src/views/preference/AuthSettings.vue:102 #: src/views/preference/AuthSettings.vue:96
#, fuzzy #, fuzzy
msgid "Are you sure to delete this banned IP immediately?" msgid "Are you sure to delete this banned IP immediately?"
msgstr "Etes-vous sûr que vous voulez supprimer ?" msgstr "Etes-vous sûr que vous voulez supprimer ?"
#: src/views/preference/components/Passkey.vue:119
#, fuzzy
msgid "Are you sure to delete this passkey immediately?"
msgstr "Etes-vous sûr que vous voulez supprimer ?"
#: src/components/Notification/Notification.vue:86 #: src/components/Notification/Notification.vue:86
#: src/views/notification/Notification.vue:40 #: src/views/notification/Notification.vue:40
#, fuzzy #, fuzzy
@ -184,23 +170,15 @@ msgstr "Modèle ChatGPT"
msgid "Assistant" msgid "Assistant"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:18 #: src/views/preference/AuthSettings.vue:17
msgid "Attempts" msgid "Attempts"
msgstr "" msgstr ""
#: src/views/preference/Preference.vue:122 #: src/views/preference/Preference.vue:116
#, fuzzy #, fuzzy
msgid "Auth" msgid "Auth"
msgstr "Autheur" msgstr "Autheur"
#: src/components/2FA/Authorization.vue:126
msgid "Authenticate with a passkey"
msgstr ""
#: src/views/preference/AuthSettings.vue:63
msgid "Authentication Settings"
msgstr ""
#: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:106 #: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:106
#: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:120 #: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:120
msgid "Author" msgid "Author"
@ -219,8 +197,8 @@ msgid "Auto-renewal enabled for %{name}"
msgstr "Renouvellement automatique activé pour %{name}" msgstr "Renouvellement automatique activé pour %{name}"
#: src/views/certificate/CertificateEditor.vue:247 #: src/views/certificate/CertificateEditor.vue:247
#: src/views/config/ConfigEditor.vue:213 src/views/config/ConfigList.vue:107 #: src/views/config/ConfigEditor.vue:205 src/views/config/ConfigList.vue:173
#: src/views/config/ConfigList.vue:181 src/views/domain/DomainEdit.vue:253 #: src/views/config/ConfigList.vue:99 src/views/domain/DomainEdit.vue:253
#: src/views/nginx_log/NginxLog.vue:168 src/views/stream/StreamEdit.vue:245 #: src/views/nginx_log/NginxLog.vue:168 src/views/stream/StreamEdit.vue:245
msgid "Back" msgid "Back"
msgstr "Retour" msgstr "Retour"
@ -229,19 +207,19 @@ msgstr "Retour"
msgid "Back Home" msgid "Back Home"
msgstr "Retour au menu principal" msgstr "Retour au menu principal"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:216 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:215
msgid "Back to list" msgid "Back to list"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:76 #: src/views/preference/AuthSettings.vue:70
msgid "Ban Threshold Minutes" msgid "Ban Threshold Minutes"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:90 #: src/views/preference/AuthSettings.vue:84
msgid "Banned IPs" msgid "Banned IPs"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:21 #: src/views/preference/AuthSettings.vue:20
msgid "Banned Until" msgid "Banned Until"
msgstr "" msgstr ""
@ -249,9 +227,9 @@ msgstr ""
msgid "Base information" msgid "Base information"
msgstr "Information générale" msgstr "Information générale"
#: src/views/config/ConfigEditor.vue:241 #: src/views/config/ConfigEditor.vue:233
#: src/views/domain/components/RightSettings.vue:75 #: src/views/domain/components/RightSettings.vue:75
#: src/views/preference/Preference.vue:116 #: src/views/preference/Preference.vue:110
#: src/views/stream/components/RightSettings.vue:74 #: src/views/stream/components/RightSettings.vue:74
msgid "Basic" msgid "Basic"
msgstr "Basique" msgstr "Basique"
@ -283,13 +261,9 @@ msgstr ""
msgid "CADir" msgid "CADir"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:151
msgid "Can't scan? Use text key binding"
msgstr ""
#: src/components/ChatGPT/ChatGPT.vue:252 #: src/components/ChatGPT/ChatGPT.vue:252
#: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:55 #: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:55
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:253 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:252
#: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:153 #: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:153
#: src/views/domain/cert/components/ObtainCert.vue:137 #: src/views/domain/cert/components/ObtainCert.vue:137
#: src/views/domain/components/Deploy.vue:21 #: src/views/domain/components/Deploy.vue:21
@ -297,7 +271,6 @@ msgstr ""
#: src/views/domain/ngx_conf/NgxConfigEditor.vue:50 #: src/views/domain/ngx_conf/NgxConfigEditor.vue:50
#: src/views/domain/ngx_conf/NgxServer.vue:80 #: src/views/domain/ngx_conf/NgxServer.vue:80
#: src/views/domain/ngx_conf/NgxUpstream.vue:33 #: src/views/domain/ngx_conf/NgxUpstream.vue:33
#: src/views/preference/components/Passkey.vue:147
#: src/views/stream/components/Deploy.vue:21 #: src/views/stream/components/Deploy.vue:21
#: src/views/stream/components/RightSettings.vue:51 #: src/views/stream/components/RightSettings.vue:51
msgid "Cancel" msgid "Cancel"
@ -343,7 +316,7 @@ msgid_plural "Changed Certificates"
msgstr[0] "Changer de certificat" msgstr[0] "Changer de certificat"
msgstr[1] "Changer de certificat" msgstr[1] "Changer de certificat"
#: src/views/config/ConfigEditor.vue:268 #: src/views/config/ConfigEditor.vue:260
#, fuzzy #, fuzzy
msgid "Changed Path" msgid "Changed Path"
msgstr "Changer de certificat" msgstr "Changer de certificat"
@ -396,7 +369,7 @@ msgstr "Le fichier de configuration est testé avec succès"
msgid "Configuration Name" msgid "Configuration Name"
msgstr "Nom de la configuration" msgstr "Nom de la configuration"
#: src/views/config/ConfigList.vue:99 #: src/views/config/ConfigList.vue:91
msgid "Configurations" msgid "Configurations"
msgstr "Configurations" msgstr "Configurations"
@ -447,18 +420,17 @@ msgstr "Créé le"
msgid "Create Another" msgid "Create Another"
msgstr "Créer un autre" msgstr "Créer un autre"
#: src/views/config/ConfigList.vue:117 #: src/views/config/ConfigList.vue:109
#, fuzzy #, fuzzy
msgid "Create File" msgid "Create File"
msgstr "Créé le" msgstr "Créé le"
#: src/views/config/components/Mkdir.vue:48 src/views/config/ConfigList.vue:124 #: src/views/config/components/Mkdir.vue:48 src/views/config/ConfigList.vue:116
#, fuzzy #, fuzzy
msgid "Create Folder" msgid "Create Folder"
msgstr "Créer un autre" msgstr "Créer un autre"
#: src/views/notification/notificationColumns.tsx:48 #: src/views/notification/notificationColumns.tsx:48
#: src/views/preference/components/Passkey.vue:101
#: src/views/user/userColumns.tsx:48 #: src/views/user/userColumns.tsx:48
msgid "Created at" msgid "Created at"
msgstr "Créé le" msgstr "Créé le"
@ -480,12 +452,12 @@ msgstr "Identifiant"
msgid "Credentials" msgid "Credentials"
msgstr "Identifiants" msgstr "Identifiants"
#: src/views/preference/components/TOTP.vue:99 #: src/views/preference/components/TOTP.vue:96
msgid "Current account is enabled TOTP." msgid "Current account is enabled 2FA."
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:96 #: src/views/preference/components/TOTP.vue:93
msgid "Current account is not enabled TOTP." msgid "Current account is not enabled 2FA."
msgstr "" msgstr ""
#: src/views/system/Upgrade.vue:167 #: src/views/system/Upgrade.vue:167
@ -503,8 +475,8 @@ msgid ""
"indicator." "indicator."
msgstr "" msgstr ""
#: src/routes/index.ts:39 src/views/config/ConfigEditor.vue:133 #: src/routes/index.ts:39 src/views/config/ConfigEditor.vue:125
#: src/views/config/ConfigEditor.vue:94 src/views/config/ConfigList.vue:65 #: src/views/config/ConfigEditor.vue:86 src/views/config/ConfigList.vue:57
msgid "Dashboard" msgid "Dashboard"
msgstr "Dashboard" msgstr "Dashboard"
@ -542,7 +514,7 @@ msgstr "Supprimer le site : %{site_name}"
msgid "Deleted successfully" msgid "Deleted successfully"
msgstr "Désactivé avec succès" msgstr "Désactivé avec succès"
#: src/views/config/ConfigEditor.vue:284 #: src/views/config/ConfigEditor.vue:276
#: src/views/domain/components/Deploy.vue:104 #: src/views/domain/components/Deploy.vue:104
#: src/views/domain/components/RightSettings.vue:93 #: src/views/domain/components/RightSettings.vue:93
#: src/views/stream/components/Deploy.vue:103 #: src/views/stream/components/Deploy.vue:103
@ -706,12 +678,6 @@ msgstr "Téléchargement de la dernière version"
msgid "Dry run mode enabled" msgid "Dry run mode enabled"
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:107
msgid ""
"Due to the security policies of some browsers, you cannot use passkeys on "
"non-HTTPS websites, except when running on localhost."
msgstr ""
#: src/views/domain/components/SiteDuplicate.vue:122 #: src/views/domain/components/SiteDuplicate.vue:122
#: src/views/domain/DomainList.vue:140 #: src/views/domain/DomainList.vue:140
#: src/views/stream/components/StreamDuplicate.vue:122 #: src/views/stream/components/StreamDuplicate.vue:122
@ -747,7 +713,7 @@ msgstr "Dupliqué avec succès"
msgid "Edit %{n}" msgid "Edit %{n}"
msgstr "Modifier %{n}" msgstr "Modifier %{n}"
#: src/routes/index.ts:122 src/views/config/ConfigEditor.vue:204 #: src/routes/index.ts:122 src/views/config/ConfigEditor.vue:196
msgid "Edit Configuration" msgid "Edit Configuration"
msgstr "Modifier la configuration" msgstr "Modifier la configuration"
@ -787,7 +753,12 @@ msgstr ""
msgid "Enable %{conf_name} in %{node_name} successfully" msgid "Enable %{conf_name} in %{node_name} successfully"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:55 #: src/views/preference/components/TOTP.vue:122
#, fuzzy
msgid "Enable 2FA"
msgstr "Activé"
#: src/views/preference/components/TOTP.vue:52
#, fuzzy #, fuzzy
msgid "Enable 2FA successfully" msgid "Enable 2FA successfully"
msgstr "Activé avec succès" msgstr "Activé avec succès"
@ -810,11 +781,6 @@ msgstr "Activé avec succès"
msgid "Enable TLS" msgid "Enable TLS"
msgstr "Activer TLS" msgstr "Activer TLS"
#: src/views/preference/components/TOTP.vue:125
#, fuzzy
msgid "Enable TOTP"
msgstr "Activer TLS"
#: src/views/domain/components/RightSettings.vue:77 #: src/views/domain/components/RightSettings.vue:77
#: src/views/domain/DomainEdit.vue:175 src/views/domain/DomainList.vue:29 #: src/views/domain/DomainEdit.vue:175 src/views/domain/DomainList.vue:29
#: src/views/environment/envColumns.tsx:104 #: src/views/environment/envColumns.tsx:104
@ -935,26 +901,20 @@ msgstr "Filtrer"
msgid "Finished" msgid "Finished"
msgstr "Finie" msgstr "Finie"
#: src/views/preference/components/AddPasskey.vue:77
msgid ""
"Follow the instructions in the dialog to complete the passkey registration "
"process."
msgstr ""
#: src/views/preference/BasicSettings.vue:43 #: src/views/preference/BasicSettings.vue:43
#, fuzzy #, fuzzy
msgid "For Chinese user: https://mirror.ghproxy.com/" msgid "For Chinese user: https://mirror.ghproxy.com/"
msgstr "Utilisateur chinois : https://mirror.ghproxy.com/" msgstr "Utilisateur chinois : https://mirror.ghproxy.com/"
#: src/views/config/ConfigEditor.vue:216 #: src/views/config/ConfigEditor.vue:208
msgid "Format Code" msgid "Format Code"
msgstr "Code de formatage" msgstr "Code de formatage"
#: src/views/config/ConfigEditor.vue:183 #: src/views/config/ConfigEditor.vue:175
msgid "Format error %{msg}" msgid "Format error %{msg}"
msgstr "Erreur de format %{msg}" msgstr "Erreur de format %{msg}"
#: src/views/config/ConfigEditor.vue:181 #: src/views/config/ConfigEditor.vue:173
msgid "Format successfully" msgid "Format successfully"
msgstr "Formaté avec succès" msgstr "Formaté avec succès"
@ -1011,22 +971,18 @@ msgstr "HTTP01"
msgid "If left blank, the default CA Dir will be used." msgid "If left blank, the default CA Dir will be used."
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:68 #: src/views/preference/AuthSettings.vue:62
msgid "" msgid ""
"If the number of login failed attempts from a ip reach the max attempts in " "If the number of login failed attempts from a ip reach the max attempts in "
"ban threshold minutes, the ip will be banned for a period of time." "ban threshold minutes, the ip will be banned for a period of time."
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:111 #: src/views/preference/components/TOTP.vue:108
msgid "" msgid ""
"If you lose your mobile phone, you can use the recovery code to reset your " "If you lose your mobile phone, you can use the recovery code to reset your "
"2FA." "2FA."
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:76
msgid "If your browser supports WebAuthn Passkey, a dialog box will appear."
msgstr ""
#: src/views/domain/cert/components/AutoCertStepOne.vue:109 #: src/views/domain/cert/components/AutoCertStepOne.vue:109
msgid "" msgid ""
"If your domain has CNAME records and you cannot obtain certificates, you " "If your domain has CNAME records and you cannot obtain certificates, you "
@ -1043,7 +999,7 @@ msgstr "Exporter"
msgid "Import Certificate" msgid "Import Certificate"
msgstr "État du certificat" msgstr "État du certificat"
#: src/views/other/Login.vue:79 #: src/views/other/Login.vue:71
#, fuzzy #, fuzzy
msgid "Incorrect username or password" msgid "Incorrect username or password"
msgstr "Le pseudo ou mot de passe est incorect" msgstr "Le pseudo ou mot de passe est incorect"
@ -1060,12 +1016,12 @@ msgstr "Erreur du programme de mise à niveau initial du core"
msgid "Initialing core upgrader" msgid "Initialing core upgrader"
msgstr "Initialisation du programme de mise à niveau du core" msgstr "Initialisation du programme de mise à niveau du core"
#: src/views/preference/components/TOTP.vue:158 #: src/views/preference/components/TOTP.vue:144
msgid "Input the code from the app:" msgid "Input the code from the app:"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:87 #: src/components/OTP/OTPAuthorization.vue:49
#: src/views/preference/components/TOTP.vue:171 #: src/views/preference/components/TOTP.vue:157
msgid "Input the recovery code:" msgid "Input the recovery code:"
msgstr "" msgstr ""
@ -1085,12 +1041,12 @@ msgstr ""
msgid "Invalid" msgid "Invalid"
msgstr "" msgstr ""
#: src/views/other/Login.vue:89 #: src/views/other/Login.vue:81
msgid "Invalid 2FA or recovery code" msgid "Invalid 2FA or recovery code"
msgstr "" msgstr ""
#: src/views/config/components/Rename.vue:65 #: src/views/config/components/Rename.vue:65
#: src/views/config/ConfigEditor.vue:250 #: src/views/config/ConfigEditor.vue:242
msgid "Invalid filename" msgid "Invalid filename"
msgstr "" msgstr ""
@ -1098,11 +1054,11 @@ msgstr ""
msgid "Invalid folder name" msgid "Invalid folder name"
msgstr "" msgstr ""
#: src/components/2FA/use2FAModal.ts:65 #: src/components/OTP/useOTPModal.ts:61
msgid "Invalid passcode or recovery code" msgid "Invalid passcode or recovery code"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:15 #: src/views/preference/AuthSettings.vue:14
msgid "IP" msgid "IP"
msgstr "" msgstr ""
@ -1138,11 +1094,6 @@ msgstr "Type"
msgid "Last checked at" msgid "Last checked at"
msgstr "Dernière vérification le" msgstr "Dernière vérification le"
#: src/views/preference/components/Passkey.vue:102
#, fuzzy
msgid "Last used at"
msgstr "Dernière vérification le"
#: src/views/user/userColumns.tsx:25 #: src/views/user/userColumns.tsx:25
msgid "Leave blank for no change" msgid "Leave blank for no change"
msgstr "Laisser vide pour aucun changement" msgstr "Laisser vide pour aucun changement"
@ -1171,7 +1122,7 @@ msgstr "Licence"
msgid "Link Start" msgid "Link Start"
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:193 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:192
msgid "List" msgid "List"
msgstr "" msgstr ""
@ -1190,7 +1141,7 @@ msgid "Load successfully"
msgstr "Enregistré avec succès" msgstr "Enregistré avec succès"
#: src/components/EnvIndicator/EnvIndicator.vue:39 #: src/components/EnvIndicator/EnvIndicator.vue:39
#: src/components/NodeSelector/NodeSelector.vue:71 #: src/components/NodeSelector/NodeSelector.vue:68
#, fuzzy #, fuzzy
msgid "Local" msgid "Local"
msgstr "Localisation" msgstr "Localisation"
@ -1210,11 +1161,11 @@ msgstr "Localisations"
msgid "Log" msgid "Log"
msgstr "Connexion" msgstr "Connexion"
#: src/routes/index.ts:305 src/views/other/Login.vue:247 #: src/routes/index.ts:305 src/views/other/Login.vue:192
msgid "Login" msgid "Login"
msgstr "Connexion" msgstr "Connexion"
#: src/views/other/Login.vue:133 src/views/other/Login.vue:66 #: src/views/other/Login.vue:125 src/views/other/Login.vue:60
msgid "Login successful" msgid "Login successful"
msgstr "Connexion réussie" msgstr "Connexion réussie"
@ -1222,7 +1173,7 @@ msgstr "Connexion réussie"
msgid "Logout successful" msgid "Logout successful"
msgstr "Déconnexion réussie" msgstr "Déconnexion réussie"
#: src/views/preference/Preference.vue:140 #: src/views/preference/Preference.vue:134
msgid "Logrotate" msgid "Logrotate"
msgstr "" msgstr ""
@ -1245,8 +1196,8 @@ msgstr ""
"Assurez vous d'avoir configuré un reverse proxy pour le répertoire .well-" "Assurez vous d'avoir configuré un reverse proxy pour le répertoire .well-"
"known vers HTTPChallengePort avant d'obtenir le certificat." "known vers HTTPChallengePort avant d'obtenir le certificat."
#: src/routes/index.ts:102 src/views/config/ConfigEditor.vue:138 #: src/routes/index.ts:102 src/views/config/ConfigEditor.vue:130
#: src/views/config/ConfigEditor.vue:99 src/views/config/ConfigList.vue:70 #: src/views/config/ConfigEditor.vue:91 src/views/config/ConfigList.vue:62
msgid "Manage Configs" msgid "Manage Configs"
msgstr "Gérer les configurations" msgstr "Gérer les configurations"
@ -1268,7 +1219,7 @@ msgstr "Gérer les utilisateurs"
msgid "Managed Certificate" msgid "Managed Certificate"
msgstr "Changer de certificat" msgstr "Changer de certificat"
#: src/views/preference/AuthSettings.vue:82 #: src/views/preference/AuthSettings.vue:76
msgid "Max Attempts" msgid "Max Attempts"
msgstr "" msgstr ""
@ -1291,9 +1242,9 @@ msgid "Model"
msgstr "Mode d'exécution" msgstr "Mode d'exécution"
#: src/components/ChatGPT/ChatGPT.vue:248 #: src/components/ChatGPT/ChatGPT.vue:248
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:182 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:181
#: src/components/StdDesign/StdDataDisplay/StdTable.vue:531 #: src/components/StdDesign/StdDataDisplay/StdTable.vue:531
#: src/views/config/ConfigList.vue:159 #: src/views/config/ConfigList.vue:151
msgid "Modify" msgid "Modify"
msgstr "Modifier" msgstr "Modifier"
@ -1306,7 +1257,7 @@ msgstr "État du certificat"
msgid "Modify Config" msgid "Modify Config"
msgstr "Modifier la configuration" msgstr "Modifier la configuration"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:269 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:268
#, fuzzy #, fuzzy
msgid "Modify Mode" msgid "Modify Mode"
msgstr "Modifier" msgstr "Modifier"
@ -1320,13 +1271,12 @@ msgstr "Directive multiligne"
#: src/views/certificate/CertificateList/certColumns.tsx:10 #: src/views/certificate/CertificateList/certColumns.tsx:10
#: src/views/certificate/DNSCredential.vue:11 #: src/views/certificate/DNSCredential.vue:11
#: src/views/config/components/Mkdir.vue:65 src/views/config/configColumns.ts:8 #: src/views/config/components/Mkdir.vue:65 src/views/config/configColumns.ts:8
#: src/views/config/ConfigEditor.vue:256 #: src/views/config/ConfigEditor.vue:248
#: src/views/domain/components/RightSettings.vue:83 #: src/views/domain/components/RightSettings.vue:83
#: src/views/domain/components/SiteDuplicate.vue:129 #: src/views/domain/components/SiteDuplicate.vue:129
#: src/views/domain/DomainList.vue:13 #: src/views/domain/DomainList.vue:13
#: src/views/domain/ngx_conf/NgxUpstream.vue:175 #: src/views/domain/ngx_conf/NgxUpstream.vue:175
#: src/views/environment/envColumns.tsx:9 #: src/views/environment/envColumns.tsx:9
#: src/views/preference/components/AddPasskey.vue:81
#: src/views/stream/components/RightSettings.vue:82 #: src/views/stream/components/RightSettings.vue:82
#: src/views/stream/components/StreamDuplicate.vue:129 #: src/views/stream/components/StreamDuplicate.vue:129
#: src/views/stream/StreamList.vue:13 src/views/stream/StreamList.vue:188 #: src/views/stream/StreamList.vue:13 src/views/stream/StreamList.vue:188
@ -1354,7 +1304,7 @@ msgstr "Envoi total réseau"
msgid "New name" msgid "New name"
msgstr "Nom d'utilisateur" msgstr "Nom d'utilisateur"
#: src/views/config/ConfigEditor.vue:268 #: src/views/config/ConfigEditor.vue:260
#, fuzzy #, fuzzy
msgid "New Path" msgid "New Path"
msgstr "Chemin" msgstr "Chemin"
@ -1369,7 +1319,7 @@ msgstr "Nouvelle version publiée"
msgid "Next" msgid "Next"
msgstr "Suivant" msgstr "Suivant"
#: src/views/preference/Preference.vue:128 #: src/views/preference/Preference.vue:122
#, fuzzy #, fuzzy
msgid "Nginx" msgid "Nginx"
msgstr "Journal Nginx" msgstr "Journal Nginx"
@ -1411,7 +1361,7 @@ msgstr "Nginx a redémarré avec succès"
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:90 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:90
#: src/views/domain/ngx_conf/LocationEditor.vue:70 #: src/views/domain/ngx_conf/LocationEditor.vue:70
#: src/views/notification/Notification.vue:38 #: src/views/notification/Notification.vue:38
#: src/views/preference/AuthSettings.vue:104 #: src/views/preference/AuthSettings.vue:98
#: src/views/preference/BasicSettings.vue:101 #: src/views/preference/BasicSettings.vue:101
#: src/views/stream/StreamList.vue:165 #: src/views/stream/StreamList.vue:165
msgid "No" msgid "No"
@ -1467,13 +1417,13 @@ msgid ""
"Firefox." "Firefox."
msgstr "" msgstr ""
#: src/components/NodeSelector/NodeSelector.vue:94 #: src/components/NodeSelector/NodeSelector.vue:91
#: src/views/dashboard/Environments.vue:107 #: src/views/dashboard/Environments.vue:107
#: src/views/environment/envColumns.tsx:90 #: src/views/environment/envColumns.tsx:90
msgid "Offline" msgid "Offline"
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:254 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:253
#: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:154 #: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:154
msgid "Ok" msgid "Ok"
msgstr "" msgstr ""
@ -1502,21 +1452,17 @@ msgstr "OK"
msgid "Once the verification is complete, the records will be removed." msgid "Once the verification is complete, the records will be removed."
msgstr "" msgstr ""
#: src/components/NodeSelector/NodeSelector.vue:74 #: src/components/NodeSelector/NodeSelector.vue:71
#: src/components/NodeSelector/NodeSelector.vue:88 #: src/components/NodeSelector/NodeSelector.vue:85
#: src/views/dashboard/Environments.vue:100 #: src/views/dashboard/Environments.vue:100
#: src/views/environment/envColumns.tsx:86 #: src/views/environment/envColumns.tsx:86
msgid "Online" msgid "Online"
msgstr "" msgstr ""
#: src/views/preference/Preference.vue:134 #: src/views/preference/Preference.vue:128
msgid "OpenAI" msgid "OpenAI"
msgstr "OpenAI" msgstr "OpenAI"
#: src/components/2FA/Authorization.vue:117 src/views/other/Login.vue:256
msgid "Or"
msgstr ""
#: src/views/config/components/Rename.vue:69 #: src/views/config/components/Rename.vue:69
msgid "Original name" msgid "Original name"
msgstr "" msgstr ""
@ -1529,13 +1475,13 @@ msgstr "OS"
msgid "OS:" msgid "OS:"
msgstr "OS :" msgstr "OS :"
#: src/views/config/ConfigEditor.vue:293 #: src/views/config/ConfigEditor.vue:285
#: src/views/domain/components/Deploy.vue:88 #: src/views/domain/components/Deploy.vue:88
#: src/views/stream/components/Deploy.vue:87 #: src/views/stream/components/Deploy.vue:87
msgid "Overwrite" msgid "Overwrite"
msgstr "" msgstr ""
#: src/views/config/ConfigEditor.vue:297 #: src/views/config/ConfigEditor.vue:289
#: src/views/domain/components/Deploy.vue:92 #: src/views/domain/components/Deploy.vue:92
#: src/views/stream/components/Deploy.vue:91 #: src/views/stream/components/Deploy.vue:91
msgid "Overwrite exist file" msgid "Overwrite exist file"
@ -1545,18 +1491,7 @@ msgstr ""
msgid "Params" msgid "Params"
msgstr "Paramètres" msgstr "Paramètres"
#: src/views/preference/components/Passkey.vue:65 #: src/views/other/Login.vue:169 src/views/user/userColumns.tsx:18
msgid "Passkey"
msgstr ""
#: src/views/preference/components/Passkey.vue:68
msgid ""
"Passkeys are webauthn credentials that validate your identity using touch, "
"facial recognition, a device password, or a PIN. They can be used as a "
"password replacement or as a 2FA method."
msgstr ""
#: src/views/other/Login.vue:208 src/views/user/userColumns.tsx:18
msgid "Password" msgid "Password"
msgstr "Mot de passe" msgstr "Mot de passe"
@ -1564,7 +1499,7 @@ msgstr "Mot de passe"
msgid "Password (*)" msgid "Password (*)"
msgstr "Mot de passe (*)" msgstr "Mot de passe (*)"
#: src/views/config/ConfigEditor.vue:262 #: src/views/config/ConfigEditor.vue:254
#: src/views/domain/ngx_conf/LocationEditor.vue:118 #: src/views/domain/ngx_conf/LocationEditor.vue:118
#: src/views/domain/ngx_conf/LocationEditor.vue:90 #: src/views/domain/ngx_conf/LocationEditor.vue:90
msgid "Path" msgid "Path"
@ -1582,14 +1517,8 @@ msgstr "Erreur lors de la mise a niveau du core"
msgid "Performing core upgrade" msgid "Performing core upgrade"
msgstr "Exécution de la mise à niveau du core" msgstr "Exécution de la mise à niveau du core"
#: src/views/preference/components/AddPasskey.vue:75 #: src/components/OTP/OTPAuthorization.vue:37
msgid "" msgid "Please enter the 2FA code:"
"Please enter a name for the passkey you wish to create and click the OK "
"button below."
msgstr ""
#: src/components/2FA/Authorization.vue:75
msgid "Please enter the OTP code:"
msgstr "" msgstr ""
#: src/views/certificate/DNSCredential.vue:53 #: src/views/certificate/DNSCredential.vue:53
@ -1598,7 +1527,7 @@ msgid ""
"provider." "provider."
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:133 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:132
msgid "Please fill in the required fields" msgid "Please fill in the required fields"
msgstr "" msgstr ""
@ -1614,7 +1543,7 @@ msgstr ""
"fournisseur DNS." "fournisseur DNS."
#: src/views/config/components/Rename.vue:64 #: src/views/config/components/Rename.vue:64
#: src/views/config/ConfigEditor.vue:249 #: src/views/config/ConfigEditor.vue:241
#, fuzzy #, fuzzy
msgid "Please input a filename" msgid "Please input a filename"
msgstr "Veuillez saisir votre nom d'utilisateur !" msgstr "Veuillez saisir votre nom d'utilisateur !"
@ -1637,11 +1566,11 @@ msgstr ""
msgid "Please input your E-mail!" msgid "Please input your E-mail!"
msgstr "Veuillez saisir votre e-mail !" msgstr "Veuillez saisir votre e-mail !"
#: src/views/other/Install.vue:44 src/views/other/Login.vue:47 #: src/views/other/Install.vue:44 src/views/other/Login.vue:43
msgid "Please input your password!" msgid "Please input your password!"
msgstr "Veuillez saisir votre mot de passe !" msgstr "Veuillez saisir votre mot de passe !"
#: src/views/other/Install.vue:38 src/views/other/Login.vue:41 #: src/views/other/Install.vue:38 src/views/other/Login.vue:37
msgid "Please input your username!" msgid "Please input your username!"
msgstr "Veuillez saisir votre nom d'utilisateur !" msgstr "Veuillez saisir votre nom d'utilisateur !"
@ -1661,7 +1590,7 @@ msgstr ""
msgid "Pre-release" msgid "Pre-release"
msgstr "" msgstr ""
#: src/routes/index.ts:260 src/views/preference/Preference.vue:111 #: src/routes/index.ts:260 src/views/preference/Preference.vue:105
msgid "Preference" msgid "Preference"
msgstr "Préférence" msgstr "Préférence"
@ -1707,16 +1636,16 @@ msgstr ""
msgid "Recovered Successfully" msgid "Recovered Successfully"
msgstr "Enregistré avec succès" msgstr "Enregistré avec succès"
#: src/components/2FA/Authorization.vue:94 #: src/components/OTP/OTPAuthorization.vue:56
#: src/views/preference/components/TOTP.vue:178 #: src/views/preference/components/TOTP.vue:164
msgid "Recovery" msgid "Recovery"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:104 #: src/views/preference/components/TOTP.vue:101
msgid "Recovery Code" msgid "Recovery Code"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:113 #: src/views/preference/components/TOTP.vue:110
msgid "Recovery Code:" msgid "Recovery Code:"
msgstr "" msgstr ""
@ -1738,11 +1667,6 @@ msgstr "Enregistrement de l'utilisateur"
msgid "Register failed" msgid "Register failed"
msgstr "Enregistrement de l'utilisateur" msgstr "Enregistrement de l'utilisateur"
#: src/views/preference/components/AddPasskey.vue:26
#, fuzzy
msgid "Register passkey successfully"
msgstr "Activé avec succès"
#: src/views/certificate/ACMEUser.vue:67 #: src/views/certificate/ACMEUser.vue:67
#, fuzzy #, fuzzy
msgid "Register successfully" msgid "Register successfully"
@ -1778,12 +1702,11 @@ msgstr "Rechargement"
msgid "Reloading nginx" msgid "Reloading nginx"
msgstr "Rechargement de nginx" msgstr "Rechargement de nginx"
#: src/views/preference/AuthSettings.vue:109 #: src/views/preference/AuthSettings.vue:103
msgid "Remove" msgid "Remove"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:48 #: src/views/preference/AuthSettings.vue:47
#: src/views/preference/components/Passkey.vue:50
#, fuzzy #, fuzzy
msgid "Remove successfully" msgid "Remove successfully"
msgstr "Enregistré avec succès" msgstr "Enregistré avec succès"
@ -1794,7 +1717,7 @@ msgid "Removed successfully"
msgstr "Enregistré avec succès" msgstr "Enregistré avec succès"
#: src/views/config/components/Rename.vue:55 #: src/views/config/components/Rename.vue:55
#: src/views/config/ConfigList.vue:167 #: src/views/config/ConfigList.vue:159
#: src/views/domain/ngx_conf/NgxUpstream.vue:123 #: src/views/domain/ngx_conf/NgxUpstream.vue:123
#, fuzzy #, fuzzy
msgid "Rename" msgid "Rename"
@ -1863,7 +1786,7 @@ msgstr ""
msgid "Reset" msgid "Reset"
msgstr "Réinitialiser" msgstr "Réinitialiser"
#: src/views/preference/components/TOTP.vue:133 #: src/views/preference/components/TOTP.vue:130
#, fuzzy #, fuzzy
msgid "Reset 2FA" msgid "Reset 2FA"
msgstr "Réinitialiser" msgstr "Réinitialiser"
@ -1886,10 +1809,9 @@ msgstr "En cours d'éxécution"
#: src/components/ChatGPT/ChatGPT.vue:251 #: src/components/ChatGPT/ChatGPT.vue:251
#: src/views/certificate/CertificateEditor.vue:254 #: src/views/certificate/CertificateEditor.vue:254
#: src/views/config/ConfigEditor.vue:222 src/views/domain/DomainEdit.vue:260 #: src/views/config/ConfigEditor.vue:214 src/views/domain/DomainEdit.vue:260
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:120 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:120
#: src/views/preference/components/Passkey.vue:136 #: src/views/preference/Preference.vue:145 src/views/stream/StreamEdit.vue:252
#: src/views/preference/Preference.vue:151 src/views/stream/StreamEdit.vue:252
msgid "Save" msgid "Save"
msgstr "Enregistrer" msgstr "Enregistrer"
@ -1897,26 +1819,26 @@ msgstr "Enregistrer"
msgid "Save Directive" msgid "Save Directive"
msgstr "Enregistrer la directive" msgstr "Enregistrer la directive"
#: src/views/config/ConfigEditor.vue:171 src/views/domain/DomainAdd.vue:46 #: src/views/config/ConfigEditor.vue:163 src/views/domain/DomainAdd.vue:46
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:41 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:41
msgid "Save error %{msg}" msgid "Save error %{msg}"
msgstr "Enregistrer l'erreur %{msg}" msgstr "Enregistrer l'erreur %{msg}"
#: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:39 #: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:39
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:122 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:121
#: src/views/certificate/CertificateEditor.vue:46 #: src/views/certificate/CertificateEditor.vue:46
#: src/views/preference/Preference.vue:79 #: src/views/preference/Preference.vue:74
msgid "Save successfully" msgid "Save successfully"
msgstr "Sauvegarde réussie" msgstr "Sauvegarde réussie"
#: src/views/config/ConfigEditor.vue:167 src/views/domain/DomainAdd.vue:37 #: src/views/config/ConfigEditor.vue:159 src/views/domain/DomainAdd.vue:37
#: src/views/domain/DomainEdit.vue:143 #: src/views/domain/DomainEdit.vue:143
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:39 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:39
#: src/views/stream/StreamEdit.vue:138 #: src/views/stream/StreamEdit.vue:138
msgid "Saved successfully" msgid "Saved successfully"
msgstr "Enregistré avec succès" msgstr "Enregistré avec succès"
#: src/views/preference/components/TOTP.vue:94 #: src/views/preference/components/TOTP.vue:91
msgid "Scan the QR code with your mobile phone to add the account to the app." msgid "Scan the QR code with your mobile phone to add the account to the app."
msgstr "" msgstr ""
@ -1924,10 +1846,6 @@ msgstr ""
msgid "SDK" msgid "SDK"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:150
msgid "Secret has been copied"
msgstr ""
#: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:155 #: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:155
msgid "Selector" msgid "Selector"
msgstr "Sélecteur" msgstr "Sélecteur"
@ -1946,16 +1864,13 @@ msgstr "Envoyer"
#: src/components/StdDesign/StdDataDisplay/StdTable.vue:252 #: src/components/StdDesign/StdDataDisplay/StdTable.vue:252
#: src/views/config/components/Mkdir.vue:37 #: src/views/config/components/Mkdir.vue:37
#: src/views/config/components/Rename.vue:44 #: src/views/config/components/Rename.vue:44
#: src/views/config/ConfigEditor.vue:108 src/views/domain/DomainList.vue:81 #: src/views/config/ConfigEditor.vue:100 src/views/domain/DomainList.vue:81
#: src/views/environment/BatchUpgrader.vue:57 #: src/views/environment/BatchUpgrader.vue:57
#: src/views/environment/Environment.vue:15 src/views/other/Install.vue:68 #: src/views/environment/Environment.vue:15 src/views/other/Install.vue:68
#: src/views/preference/AuthSettings.vue:50 #: src/views/preference/AuthSettings.vue:49
#: src/views/preference/components/Passkey.vue:26 #: src/views/preference/components/TOTP.vue:42
#: src/views/preference/components/Passkey.vue:43 #: src/views/preference/components/TOTP.vue:55
#: src/views/preference/components/Passkey.vue:56 #: src/views/preference/Preference.vue:78 src/views/stream/StreamList.vue:113
#: src/views/preference/components/TOTP.vue:45
#: src/views/preference/components/TOTP.vue:58
#: src/views/preference/Preference.vue:83 src/views/stream/StreamList.vue:113
#: src/views/stream/StreamList.vue:81 src/views/system/Upgrade.vue:42 #: src/views/stream/StreamList.vue:81 src/views/system/Upgrade.vue:42
msgid "Server error" msgid "Server error"
msgstr "Erreur du serveur" msgstr "Erreur du serveur"
@ -2001,10 +1916,6 @@ msgstr "Utilisation du fournisseur de challenge HTTP01"
msgid "Show" msgid "Show"
msgstr "" msgstr ""
#: src/views/other/Login.vue:265
msgid "Sign in with a passkey"
msgstr ""
#: src/views/domain/ngx_conf/directive/DirectiveAdd.vue:51 #: src/views/domain/ngx_conf/directive/DirectiveAdd.vue:51
msgid "Single Directive" msgid "Single Directive"
msgstr "Directive unique" msgstr "Directive unique"
@ -2035,7 +1946,7 @@ msgstr "Chemin de la clé du certificat SSL"
msgid "SSL Certificate Path" msgid "SSL Certificate Path"
msgstr "Chemin du certificat SSL" msgstr "Chemin du certificat SSL"
#: src/views/other/Login.vue:223 #: src/views/other/Login.vue:203
#, fuzzy #, fuzzy
msgid "SSO Login" msgid "SSO Login"
msgstr "Connexion" msgstr "Connexion"
@ -2120,7 +2031,7 @@ msgstr "Changer de certificat"
#: src/components/Notification/config.ts:12 #: src/components/Notification/config.ts:12
#, fuzzy #, fuzzy
msgid "" msgid ""
"Sync config %{config_name} to %{env_name} failed, please upgrade the remote " "Sync config %{cert_name} to %{env_name} failed, please upgrade the remote "
"Nginx UI to the latest version" "Nginx UI to the latest version"
msgstr "Dupliqué avec succès" msgstr "Dupliqué avec succès"
@ -2207,7 +2118,7 @@ msgstr "Chemin de la clé du certificat SSL"
msgid "The path exists, but the file is not a private key" msgid "The path exists, but the file is not a private key"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:112 #: src/views/preference/components/TOTP.vue:109
msgid "" msgid ""
"The recovery code is only displayed once, please save it in a safe place." "The recovery code is only displayed once, please save it in a safe place."
msgstr "" msgstr ""
@ -2275,8 +2186,7 @@ msgid ""
"This will upgrade or reinstall the Nginx UI on %{nodeNames} to %{version}." "This will upgrade or reinstall the Nginx UI on %{nodeNames} to %{version}."
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:67 #: src/views/preference/AuthSettings.vue:61
#: src/views/preference/components/AddPasskey.vue:71
#: src/views/preference/LogrotateSettings.vue:11 #: src/views/preference/LogrotateSettings.vue:11
msgid "Tips" msgid "Tips"
msgstr "" msgstr ""
@ -2285,19 +2195,12 @@ msgstr ""
msgid "Title" msgid "Title"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:93 #: src/views/preference/components/TOTP.vue:90
msgid "" msgid ""
"To enable it, you need to install the Google or Microsoft Authenticator app " "To enable it, you need to install the Google or Microsoft Authenticator app "
"on your mobile phone." "on your mobile phone."
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:95
msgid ""
"To ensure security, Webauthn configuration cannot be added through the UI. "
"Please manually configure the following in the app.ini configuration file "
"and restart Nginx UI."
msgstr ""
#: src/views/domain/ngx_conf/NgxConfigEditor.vue:44 #: src/views/domain/ngx_conf/NgxConfigEditor.vue:44
msgid "" msgid ""
"To make sure the certification auto-renewal can work normally, we need to " "To make sure the certification auto-renewal can work normally, we need to "
@ -2314,25 +2217,21 @@ msgstr ""
msgid "Token is not valid" msgid "Token is not valid"
msgstr "" msgstr ""
#: src/views/other/Login.vue:82 #: src/views/other/Login.vue:74
msgid "Too many login failed attempts, please try again later" msgid "Too many login failed attempts, please try again later"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:91 #: src/views/preference/components/TOTP.vue:89
msgid "TOTP"
msgstr ""
#: src/views/preference/components/TOTP.vue:92
msgid "" msgid ""
"TOTP is a two-factor authentication method that uses a time-based one-time " "TOTP is a two-factor authentication method that uses a time-based one-time "
"password algorithm." "password algorithm."
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:210 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:209
msgid "Trash" msgid "Trash"
msgstr "" msgstr ""
#: src/components/2FA/use2FAModal.ts:71 #: src/components/OTP/useOTPModal.ts:67
msgid "Two-factor authentication required" msgid "Two-factor authentication required"
msgstr "" msgstr ""
@ -2342,14 +2241,9 @@ msgstr ""
msgid "Type" msgid "Type"
msgstr "Type" msgstr "Type"
#: src/views/preference/components/Passkey.vue:41
#, fuzzy
msgid "Update successfully"
msgstr "Mis à jour avec succés"
#: src/views/certificate/ACMEUser.vue:53 #: src/views/certificate/ACMEUser.vue:53
#: src/views/certificate/DNSCredential.vue:27 #: src/views/certificate/DNSCredential.vue:27
#: src/views/config/configColumns.ts:31 src/views/config/ConfigEditor.vue:275 #: src/views/config/configColumns.ts:31 src/views/config/ConfigEditor.vue:267
#: src/views/domain/components/RightSettings.vue:86 #: src/views/domain/components/RightSettings.vue:86
#: src/views/domain/DomainList.vue:41 src/views/environment/envColumns.tsx:124 #: src/views/domain/DomainList.vue:41 src/views/environment/envColumns.tsx:124
#: src/views/stream/components/RightSettings.vue:85 #: src/views/stream/components/RightSettings.vue:85
@ -2391,11 +2285,11 @@ msgstr "Disponibilité :"
msgid "URL" msgid "URL"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:107 #: src/components/OTP/OTPAuthorization.vue:69
msgid "Use OTP" msgid "Use OTP"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:103 #: src/components/OTP/OTPAuthorization.vue:65
msgid "Use recovery code" msgid "Use recovery code"
msgstr "" msgstr ""
@ -2404,11 +2298,11 @@ msgstr ""
msgid "User" msgid "User"
msgstr "Nom d'utilisateur" msgstr "Nom d'utilisateur"
#: src/views/other/Login.vue:85 #: src/views/other/Login.vue:77
msgid "User is banned" msgid "User is banned"
msgstr "" msgstr ""
#: src/views/other/Login.vue:198 src/views/user/userColumns.tsx:9 #: src/views/other/Login.vue:159 src/views/user/userColumns.tsx:9
msgid "Username" msgid "Username"
msgstr "Nom d'utilisateur" msgstr "Nom d'utilisateur"
@ -2437,11 +2331,11 @@ msgstr "Voir"
msgid "View all notifications" msgid "View all notifications"
msgstr "Certification" msgstr "Certification"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:182 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:181
msgid "View Details" msgid "View Details"
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:269 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:268
#, fuzzy #, fuzzy
msgid "View Mode" msgid "View Mode"
msgstr "Mode simple" msgstr "Mode simple"
@ -2449,7 +2343,6 @@ msgstr "Mode simple"
#: src/constants/index.ts:17 src/views/config/InspectConfig.vue:33 #: src/constants/index.ts:17 src/views/config/InspectConfig.vue:33
#: src/views/domain/DomainAdd.vue:112 #: src/views/domain/DomainAdd.vue:112
#: src/views/notification/notificationColumns.tsx:19 #: src/views/notification/notificationColumns.tsx:19
#: src/views/preference/components/AddPasskey.vue:88
msgid "Warning" msgid "Warning"
msgstr "Avertissement" msgstr "Avertissement"
@ -2482,7 +2375,7 @@ msgstr "Écriture du certificat sur le disque"
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:89 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:89
#: src/views/domain/ngx_conf/LocationEditor.vue:69 #: src/views/domain/ngx_conf/LocationEditor.vue:69
#: src/views/preference/AuthSettings.vue:103 #: src/views/preference/AuthSettings.vue:97
#: src/views/preference/BasicSettings.vue:100 #: src/views/preference/BasicSettings.vue:100
msgid "Yes" msgid "Yes"
msgstr "Oui" msgstr "Oui"
@ -2495,20 +2388,6 @@ msgstr "Vous utilisez la dernière version"
msgid "You can check Nginx UI upgrade at this page." msgid "You can check Nginx UI upgrade at this page."
msgstr "Vous pouvez vérifier la mise à niveau de Nginx UI sur cette page." msgstr "Vous pouvez vérifier la mise à niveau de Nginx UI sur cette page."
#: src/views/preference/components/AddPasskey.vue:93
msgid ""
"You have not configured the settings of Webauthn, so you cannot add a "
"passkey."
msgstr ""
#: src/views/preference/components/Passkey.vue:81
msgid "Your passkeys"
msgstr ""
#, fuzzy
#~ msgid "Enable 2FA"
#~ msgstr "Activé"
#, fuzzy #, fuzzy
#~ msgid "Rename " #~ msgid "Rename "
#~ msgstr "Nom d'utilisateur" #~ msgstr "Nom d'utilisateur"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -6,7 +6,7 @@ msgstr ""
msgid "2FA" msgid "2FA"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:58 #: src/views/preference/components/TOTP.vue:88
msgid "2FA Settings" msgid "2FA Settings"
msgstr "" msgstr ""
@ -32,14 +32,14 @@ msgstr ""
#: src/views/domain/DomainList.vue:47 #: src/views/domain/DomainList.vue:47
#: src/views/environment/envColumns.tsx:131 #: src/views/environment/envColumns.tsx:131
#: src/views/notification/notificationColumns.tsx:54 #: src/views/notification/notificationColumns.tsx:54
#: src/views/preference/AuthSettings.vue:27 #: src/views/preference/AuthSettings.vue:26
#: src/views/stream/StreamList.vue:47 #: src/views/stream/StreamList.vue:47
#: src/views/user/userColumns.tsx:60 #: src/views/user/userColumns.tsx:60
msgid "Action" msgid "Action"
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:182 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:181
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:203 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:202
#: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:117 #: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:117
#: src/views/domain/ngx_conf/NgxServer.vue:162 #: src/views/domain/ngx_conf/NgxServer.vue:162
#: src/views/domain/ngx_conf/NgxUpstream.vue:152 #: src/views/domain/ngx_conf/NgxUpstream.vue:152
@ -48,14 +48,9 @@ msgstr ""
msgid "Add" msgid "Add"
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:51
#: src/views/preference/components/AddPasskey.vue:55
msgid "Add a passkey"
msgstr ""
#: src/routes/index.ts:112 #: src/routes/index.ts:112
#: src/views/config/ConfigEditor.vue:143 #: src/views/config/ConfigEditor.vue:135
#: src/views/config/ConfigEditor.vue:204 #: src/views/config/ConfigEditor.vue:196
msgid "Add Configuration" msgid "Add Configuration"
msgstr "" msgstr ""
@ -90,10 +85,6 @@ msgstr ""
msgid "Advance Mode" msgid "Advance Mode"
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:105
msgid "Afterwards, refresh this page and click add passkey again."
msgstr ""
#: src/views/preference/OpenAISettings.vue:44 #: src/views/preference/OpenAISettings.vue:44
msgid "API Base Url" msgid "API Base Url"
msgstr "" msgstr ""
@ -114,14 +105,10 @@ msgstr ""
msgid "Arch" msgid "Arch"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:102 #: src/views/preference/AuthSettings.vue:96
msgid "Are you sure to delete this banned IP immediately?" msgid "Are you sure to delete this banned IP immediately?"
msgstr "" msgstr ""
#: src/views/preference/components/Passkey.vue:119
msgid "Are you sure to delete this passkey immediately?"
msgstr ""
#: src/components/Notification/Notification.vue:86 #: src/components/Notification/Notification.vue:86
#: src/views/notification/Notification.vue:40 #: src/views/notification/Notification.vue:40
msgid "Are you sure you want to clear all notifications?" msgid "Are you sure you want to clear all notifications?"
@ -168,22 +155,14 @@ msgstr ""
msgid "Assistant" msgid "Assistant"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:18 #: src/views/preference/AuthSettings.vue:17
msgid "Attempts" msgid "Attempts"
msgstr "" msgstr ""
#: src/views/preference/Preference.vue:122 #: src/views/preference/Preference.vue:116
msgid "Auth" msgid "Auth"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:126
msgid "Authenticate with a passkey"
msgstr ""
#: src/views/preference/AuthSettings.vue:63
msgid "Authentication Settings"
msgstr ""
#: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:106 #: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:106
#: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:120 #: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:120
msgid "Author" msgid "Author"
@ -202,9 +181,9 @@ msgid "Auto-renewal enabled for %{name}"
msgstr "" msgstr ""
#: src/views/certificate/CertificateEditor.vue:247 #: src/views/certificate/CertificateEditor.vue:247
#: src/views/config/ConfigEditor.vue:213 #: src/views/config/ConfigEditor.vue:205
#: src/views/config/ConfigList.vue:107 #: src/views/config/ConfigList.vue:173
#: src/views/config/ConfigList.vue:181 #: src/views/config/ConfigList.vue:99
#: src/views/domain/DomainEdit.vue:253 #: src/views/domain/DomainEdit.vue:253
#: src/views/nginx_log/NginxLog.vue:168 #: src/views/nginx_log/NginxLog.vue:168
#: src/views/stream/StreamEdit.vue:245 #: src/views/stream/StreamEdit.vue:245
@ -215,19 +194,19 @@ msgstr ""
msgid "Back Home" msgid "Back Home"
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:216 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:215
msgid "Back to list" msgid "Back to list"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:76 #: src/views/preference/AuthSettings.vue:70
msgid "Ban Threshold Minutes" msgid "Ban Threshold Minutes"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:90 #: src/views/preference/AuthSettings.vue:84
msgid "Banned IPs" msgid "Banned IPs"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:21 #: src/views/preference/AuthSettings.vue:20
msgid "Banned Until" msgid "Banned Until"
msgstr "" msgstr ""
@ -235,9 +214,9 @@ msgstr ""
msgid "Base information" msgid "Base information"
msgstr "" msgstr ""
#: src/views/config/ConfigEditor.vue:241 #: src/views/config/ConfigEditor.vue:233
#: src/views/domain/components/RightSettings.vue:75 #: src/views/domain/components/RightSettings.vue:75
#: src/views/preference/Preference.vue:116 #: src/views/preference/Preference.vue:110
#: src/views/stream/components/RightSettings.vue:74 #: src/views/stream/components/RightSettings.vue:74
msgid "Basic" msgid "Basic"
msgstr "" msgstr ""
@ -268,13 +247,9 @@ msgstr ""
msgid "CADir" msgid "CADir"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:151
msgid "Can't scan? Use text key binding"
msgstr ""
#: src/components/ChatGPT/ChatGPT.vue:252 #: src/components/ChatGPT/ChatGPT.vue:252
#: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:55 #: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:55
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:253 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:252
#: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:153 #: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:153
#: src/views/domain/cert/components/ObtainCert.vue:137 #: src/views/domain/cert/components/ObtainCert.vue:137
#: src/views/domain/components/Deploy.vue:21 #: src/views/domain/components/Deploy.vue:21
@ -282,7 +257,6 @@ msgstr ""
#: src/views/domain/ngx_conf/NgxConfigEditor.vue:50 #: src/views/domain/ngx_conf/NgxConfigEditor.vue:50
#: src/views/domain/ngx_conf/NgxServer.vue:80 #: src/views/domain/ngx_conf/NgxServer.vue:80
#: src/views/domain/ngx_conf/NgxUpstream.vue:33 #: src/views/domain/ngx_conf/NgxUpstream.vue:33
#: src/views/preference/components/Passkey.vue:147
#: src/views/stream/components/Deploy.vue:21 #: src/views/stream/components/Deploy.vue:21
#: src/views/stream/components/RightSettings.vue:51 #: src/views/stream/components/RightSettings.vue:51
msgid "Cancel" msgid "Cancel"
@ -323,7 +297,7 @@ msgid_plural "Changed Certificates"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: src/views/config/ConfigEditor.vue:268 #: src/views/config/ConfigEditor.vue:260
msgid "Changed Path" msgid "Changed Path"
msgstr "" msgstr ""
@ -374,7 +348,7 @@ msgstr ""
msgid "Configuration Name" msgid "Configuration Name"
msgstr "" msgstr ""
#: src/views/config/ConfigList.vue:99 #: src/views/config/ConfigList.vue:91
msgid "Configurations" msgid "Configurations"
msgstr "" msgstr ""
@ -424,17 +398,16 @@ msgstr ""
msgid "Create Another" msgid "Create Another"
msgstr "" msgstr ""
#: src/views/config/ConfigList.vue:117 #: src/views/config/ConfigList.vue:109
msgid "Create File" msgid "Create File"
msgstr "" msgstr ""
#: src/views/config/components/Mkdir.vue:48 #: src/views/config/components/Mkdir.vue:48
#: src/views/config/ConfigList.vue:124 #: src/views/config/ConfigList.vue:116
msgid "Create Folder" msgid "Create Folder"
msgstr "" msgstr ""
#: src/views/notification/notificationColumns.tsx:48 #: src/views/notification/notificationColumns.tsx:48
#: src/views/preference/components/Passkey.vue:101
#: src/views/user/userColumns.tsx:48 #: src/views/user/userColumns.tsx:48
msgid "Created at" msgid "Created at"
msgstr "" msgstr ""
@ -455,12 +428,12 @@ msgstr ""
msgid "Credentials" msgid "Credentials"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:99 #: src/views/preference/components/TOTP.vue:96
msgid "Current account is enabled TOTP." msgid "Current account is enabled 2FA."
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:96 #: src/views/preference/components/TOTP.vue:93
msgid "Current account is not enabled TOTP." msgid "Current account is not enabled 2FA."
msgstr "" msgstr ""
#: src/views/system/Upgrade.vue:167 #: src/views/system/Upgrade.vue:167
@ -477,9 +450,9 @@ msgid "Customize the name of local server to be displayed in the environment ind
msgstr "" msgstr ""
#: src/routes/index.ts:39 #: src/routes/index.ts:39
#: src/views/config/ConfigEditor.vue:133 #: src/views/config/ConfigEditor.vue:125
#: src/views/config/ConfigEditor.vue:94 #: src/views/config/ConfigEditor.vue:86
#: src/views/config/ConfigList.vue:65 #: src/views/config/ConfigList.vue:57
msgid "Dashboard" msgid "Dashboard"
msgstr "" msgstr ""
@ -515,7 +488,7 @@ msgstr ""
msgid "Deleted successfully" msgid "Deleted successfully"
msgstr "" msgstr ""
#: src/views/config/ConfigEditor.vue:284 #: src/views/config/ConfigEditor.vue:276
#: src/views/domain/components/Deploy.vue:104 #: src/views/domain/components/Deploy.vue:104
#: src/views/domain/components/RightSettings.vue:93 #: src/views/domain/components/RightSettings.vue:93
#: src/views/stream/components/Deploy.vue:103 #: src/views/stream/components/Deploy.vue:103
@ -675,10 +648,6 @@ msgstr ""
msgid "Dry run mode enabled" msgid "Dry run mode enabled"
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:107
msgid "Due to the security policies of some browsers, you cannot use passkeys on non-HTTPS websites, except when running on localhost."
msgstr ""
#: src/views/domain/components/SiteDuplicate.vue:122 #: src/views/domain/components/SiteDuplicate.vue:122
#: src/views/domain/DomainList.vue:140 #: src/views/domain/DomainList.vue:140
#: src/views/stream/components/StreamDuplicate.vue:122 #: src/views/stream/components/StreamDuplicate.vue:122
@ -712,7 +681,7 @@ msgid "Edit %{n}"
msgstr "" msgstr ""
#: src/routes/index.ts:122 #: src/routes/index.ts:122
#: src/views/config/ConfigEditor.vue:204 #: src/views/config/ConfigEditor.vue:196
msgid "Edit Configuration" msgid "Edit Configuration"
msgstr "" msgstr ""
@ -749,7 +718,11 @@ msgstr ""
msgid "Enable %{conf_name} in %{node_name} successfully" msgid "Enable %{conf_name} in %{node_name} successfully"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:55 #: src/views/preference/components/TOTP.vue:122
msgid "Enable 2FA"
msgstr ""
#: src/views/preference/components/TOTP.vue:52
msgid "Enable 2FA successfully" msgid "Enable 2FA successfully"
msgstr "" msgstr ""
@ -770,10 +743,6 @@ msgstr ""
msgid "Enable TLS" msgid "Enable TLS"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:125
msgid "Enable TOTP"
msgstr ""
#: src/views/domain/components/RightSettings.vue:77 #: src/views/domain/components/RightSettings.vue:77
#: src/views/domain/DomainEdit.vue:175 #: src/views/domain/DomainEdit.vue:175
#: src/views/domain/DomainList.vue:29 #: src/views/domain/DomainList.vue:29
@ -895,23 +864,19 @@ msgstr ""
msgid "Finished" msgid "Finished"
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:77
msgid "Follow the instructions in the dialog to complete the passkey registration process."
msgstr ""
#: src/views/preference/BasicSettings.vue:43 #: src/views/preference/BasicSettings.vue:43
msgid "For Chinese user: https://mirror.ghproxy.com/" msgid "For Chinese user: https://mirror.ghproxy.com/"
msgstr "" msgstr ""
#: src/views/config/ConfigEditor.vue:216 #: src/views/config/ConfigEditor.vue:208
msgid "Format Code" msgid "Format Code"
msgstr "" msgstr ""
#: src/views/config/ConfigEditor.vue:183 #: src/views/config/ConfigEditor.vue:175
msgid "Format error %{msg}" msgid "Format error %{msg}"
msgstr "" msgstr ""
#: src/views/config/ConfigEditor.vue:181 #: src/views/config/ConfigEditor.vue:173
msgid "Format successfully" msgid "Format successfully"
msgstr "" msgstr ""
@ -968,18 +933,14 @@ msgstr ""
msgid "If left blank, the default CA Dir will be used." msgid "If left blank, the default CA Dir will be used."
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:68 #: src/views/preference/AuthSettings.vue:62
msgid "If the number of login failed attempts from a ip reach the max attempts in ban threshold minutes, the ip will be banned for a period of time." msgid "If the number of login failed attempts from a ip reach the max attempts in ban threshold minutes, the ip will be banned for a period of time."
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:111 #: src/views/preference/components/TOTP.vue:108
msgid "If you lose your mobile phone, you can use the recovery code to reset your 2FA." msgid "If you lose your mobile phone, you can use the recovery code to reset your 2FA."
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:76
msgid "If your browser supports WebAuthn Passkey, a dialog box will appear."
msgstr ""
#: src/views/domain/cert/components/AutoCertStepOne.vue:109 #: src/views/domain/cert/components/AutoCertStepOne.vue:109
msgid "If your domain has CNAME records and you cannot obtain certificates, you need to enable this option." msgid "If your domain has CNAME records and you cannot obtain certificates, you need to enable this option."
msgstr "" msgstr ""
@ -993,7 +954,7 @@ msgstr ""
msgid "Import Certificate" msgid "Import Certificate"
msgstr "" msgstr ""
#: src/views/other/Login.vue:79 #: src/views/other/Login.vue:71
msgid "Incorrect username or password" msgid "Incorrect username or password"
msgstr "" msgstr ""
@ -1010,12 +971,12 @@ msgstr ""
msgid "Initialing core upgrader" msgid "Initialing core upgrader"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:158 #: src/views/preference/components/TOTP.vue:144
msgid "Input the code from the app:" msgid "Input the code from the app:"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:87 #: src/components/OTP/OTPAuthorization.vue:49
#: src/views/preference/components/TOTP.vue:171 #: src/views/preference/components/TOTP.vue:157
msgid "Input the recovery code:" msgid "Input the recovery code:"
msgstr "" msgstr ""
@ -1036,12 +997,12 @@ msgstr ""
msgid "Invalid" msgid "Invalid"
msgstr "" msgstr ""
#: src/views/other/Login.vue:89 #: src/views/other/Login.vue:81
msgid "Invalid 2FA or recovery code" msgid "Invalid 2FA or recovery code"
msgstr "" msgstr ""
#: src/views/config/components/Rename.vue:65 #: src/views/config/components/Rename.vue:65
#: src/views/config/ConfigEditor.vue:250 #: src/views/config/ConfigEditor.vue:242
msgid "Invalid filename" msgid "Invalid filename"
msgstr "" msgstr ""
@ -1049,11 +1010,11 @@ msgstr ""
msgid "Invalid folder name" msgid "Invalid folder name"
msgstr "" msgstr ""
#: src/components/2FA/use2FAModal.ts:65 #: src/components/OTP/useOTPModal.ts:61
msgid "Invalid passcode or recovery code" msgid "Invalid passcode or recovery code"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:15 #: src/views/preference/AuthSettings.vue:14
msgid "IP" msgid "IP"
msgstr "" msgstr ""
@ -1086,10 +1047,6 @@ msgstr ""
msgid "Last checked at" msgid "Last checked at"
msgstr "" msgstr ""
#: src/views/preference/components/Passkey.vue:102
msgid "Last used at"
msgstr ""
#: src/views/user/userColumns.tsx:25 #: src/views/user/userColumns.tsx:25
msgid "Leave blank for no change" msgid "Leave blank for no change"
msgstr "" msgstr ""
@ -1116,7 +1073,7 @@ msgstr ""
msgid "Link Start" msgid "Link Start"
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:193 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:192
msgid "List" msgid "List"
msgstr "" msgstr ""
@ -1133,7 +1090,7 @@ msgid "Load successfully"
msgstr "" msgstr ""
#: src/components/EnvIndicator/EnvIndicator.vue:39 #: src/components/EnvIndicator/EnvIndicator.vue:39
#: src/components/NodeSelector/NodeSelector.vue:71 #: src/components/NodeSelector/NodeSelector.vue:68
msgid "Local" msgid "Local"
msgstr "" msgstr ""
@ -1150,12 +1107,12 @@ msgid "Log"
msgstr "" msgstr ""
#: src/routes/index.ts:305 #: src/routes/index.ts:305
#: src/views/other/Login.vue:247 #: src/views/other/Login.vue:192
msgid "Login" msgid "Login"
msgstr "" msgstr ""
#: src/views/other/Login.vue:133 #: src/views/other/Login.vue:125
#: src/views/other/Login.vue:66 #: src/views/other/Login.vue:60
msgid "Login successful" msgid "Login successful"
msgstr "" msgstr ""
@ -1163,7 +1120,7 @@ msgstr ""
msgid "Logout successful" msgid "Logout successful"
msgstr "" msgstr ""
#: src/views/preference/Preference.vue:140 #: src/views/preference/Preference.vue:134
msgid "Logrotate" msgid "Logrotate"
msgstr "" msgstr ""
@ -1176,9 +1133,9 @@ msgid "Make sure you have configured a reverse proxy for .well-known directory t
msgstr "" msgstr ""
#: src/routes/index.ts:102 #: src/routes/index.ts:102
#: src/views/config/ConfigEditor.vue:138 #: src/views/config/ConfigEditor.vue:130
#: src/views/config/ConfigEditor.vue:99 #: src/views/config/ConfigEditor.vue:91
#: src/views/config/ConfigList.vue:70 #: src/views/config/ConfigList.vue:62
msgid "Manage Configs" msgid "Manage Configs"
msgstr "" msgstr ""
@ -1201,7 +1158,7 @@ msgstr ""
msgid "Managed Certificate" msgid "Managed Certificate"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:82 #: src/views/preference/AuthSettings.vue:76
msgid "Max Attempts" msgid "Max Attempts"
msgstr "" msgstr ""
@ -1223,9 +1180,9 @@ msgid "Model"
msgstr "" msgstr ""
#: src/components/ChatGPT/ChatGPT.vue:248 #: src/components/ChatGPT/ChatGPT.vue:248
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:182 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:181
#: src/components/StdDesign/StdDataDisplay/StdTable.vue:531 #: src/components/StdDesign/StdDataDisplay/StdTable.vue:531
#: src/views/config/ConfigList.vue:159 #: src/views/config/ConfigList.vue:151
msgid "Modify" msgid "Modify"
msgstr "" msgstr ""
@ -1238,7 +1195,7 @@ msgstr ""
msgid "Modify Config" msgid "Modify Config"
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:269 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:268
msgid "Modify Mode" msgid "Modify Mode"
msgstr "" msgstr ""
@ -1252,13 +1209,12 @@ msgstr ""
#: src/views/certificate/DNSCredential.vue:11 #: src/views/certificate/DNSCredential.vue:11
#: src/views/config/components/Mkdir.vue:65 #: src/views/config/components/Mkdir.vue:65
#: src/views/config/configColumns.ts:8 #: src/views/config/configColumns.ts:8
#: src/views/config/ConfigEditor.vue:256 #: src/views/config/ConfigEditor.vue:248
#: src/views/domain/components/RightSettings.vue:83 #: src/views/domain/components/RightSettings.vue:83
#: src/views/domain/components/SiteDuplicate.vue:129 #: src/views/domain/components/SiteDuplicate.vue:129
#: src/views/domain/DomainList.vue:13 #: src/views/domain/DomainList.vue:13
#: src/views/domain/ngx_conf/NgxUpstream.vue:175 #: src/views/domain/ngx_conf/NgxUpstream.vue:175
#: src/views/environment/envColumns.tsx:9 #: src/views/environment/envColumns.tsx:9
#: src/views/preference/components/AddPasskey.vue:81
#: src/views/stream/components/RightSettings.vue:82 #: src/views/stream/components/RightSettings.vue:82
#: src/views/stream/components/StreamDuplicate.vue:129 #: src/views/stream/components/StreamDuplicate.vue:129
#: src/views/stream/StreamList.vue:13 #: src/views/stream/StreamList.vue:13
@ -1286,7 +1242,7 @@ msgstr ""
msgid "New name" msgid "New name"
msgstr "" msgstr ""
#: src/views/config/ConfigEditor.vue:268 #: src/views/config/ConfigEditor.vue:260
msgid "New Path" msgid "New Path"
msgstr "" msgstr ""
@ -1300,7 +1256,7 @@ msgstr ""
msgid "Next" msgid "Next"
msgstr "" msgstr ""
#: src/views/preference/Preference.vue:128 #: src/views/preference/Preference.vue:122
msgid "Nginx" msgid "Nginx"
msgstr "" msgstr ""
@ -1343,7 +1299,7 @@ msgstr ""
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:90 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:90
#: src/views/domain/ngx_conf/LocationEditor.vue:70 #: src/views/domain/ngx_conf/LocationEditor.vue:70
#: src/views/notification/Notification.vue:38 #: src/views/notification/Notification.vue:38
#: src/views/preference/AuthSettings.vue:104 #: src/views/preference/AuthSettings.vue:98
#: src/views/preference/BasicSettings.vue:101 #: src/views/preference/BasicSettings.vue:101
#: src/views/stream/StreamList.vue:165 #: src/views/stream/StreamList.vue:165
msgid "No" msgid "No"
@ -1395,13 +1351,13 @@ msgstr ""
msgid "OCSP Must Staple may cause errors for some users on first access using Firefox." msgid "OCSP Must Staple may cause errors for some users on first access using Firefox."
msgstr "" msgstr ""
#: src/components/NodeSelector/NodeSelector.vue:94 #: src/components/NodeSelector/NodeSelector.vue:91
#: src/views/dashboard/Environments.vue:107 #: src/views/dashboard/Environments.vue:107
#: src/views/environment/envColumns.tsx:90 #: src/views/environment/envColumns.tsx:90
msgid "Offline" msgid "Offline"
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:254 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:253
#: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:154 #: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:154
msgid "Ok" msgid "Ok"
msgstr "" msgstr ""
@ -1430,22 +1386,17 @@ msgstr ""
msgid "Once the verification is complete, the records will be removed." msgid "Once the verification is complete, the records will be removed."
msgstr "" msgstr ""
#: src/components/NodeSelector/NodeSelector.vue:74 #: src/components/NodeSelector/NodeSelector.vue:71
#: src/components/NodeSelector/NodeSelector.vue:88 #: src/components/NodeSelector/NodeSelector.vue:85
#: src/views/dashboard/Environments.vue:100 #: src/views/dashboard/Environments.vue:100
#: src/views/environment/envColumns.tsx:86 #: src/views/environment/envColumns.tsx:86
msgid "Online" msgid "Online"
msgstr "" msgstr ""
#: src/views/preference/Preference.vue:134 #: src/views/preference/Preference.vue:128
msgid "OpenAI" msgid "OpenAI"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:117
#: src/views/other/Login.vue:256
msgid "Or"
msgstr ""
#: src/views/config/components/Rename.vue:69 #: src/views/config/components/Rename.vue:69
msgid "Original name" msgid "Original name"
msgstr "" msgstr ""
@ -1458,13 +1409,13 @@ msgstr ""
msgid "OS:" msgid "OS:"
msgstr "" msgstr ""
#: src/views/config/ConfigEditor.vue:293 #: src/views/config/ConfigEditor.vue:285
#: src/views/domain/components/Deploy.vue:88 #: src/views/domain/components/Deploy.vue:88
#: src/views/stream/components/Deploy.vue:87 #: src/views/stream/components/Deploy.vue:87
msgid "Overwrite" msgid "Overwrite"
msgstr "" msgstr ""
#: src/views/config/ConfigEditor.vue:297 #: src/views/config/ConfigEditor.vue:289
#: src/views/domain/components/Deploy.vue:92 #: src/views/domain/components/Deploy.vue:92
#: src/views/stream/components/Deploy.vue:91 #: src/views/stream/components/Deploy.vue:91
msgid "Overwrite exist file" msgid "Overwrite exist file"
@ -1474,15 +1425,7 @@ msgstr ""
msgid "Params" msgid "Params"
msgstr "" msgstr ""
#: src/views/preference/components/Passkey.vue:65 #: src/views/other/Login.vue:169
msgid "Passkey"
msgstr ""
#: src/views/preference/components/Passkey.vue:68
msgid "Passkeys are webauthn credentials that validate your identity using touch, facial recognition, a device password, or a PIN. They can be used as a password replacement or as a 2FA method."
msgstr ""
#: src/views/other/Login.vue:208
#: src/views/user/userColumns.tsx:18 #: src/views/user/userColumns.tsx:18
msgid "Password" msgid "Password"
msgstr "" msgstr ""
@ -1491,7 +1434,7 @@ msgstr ""
msgid "Password (*)" msgid "Password (*)"
msgstr "" msgstr ""
#: src/views/config/ConfigEditor.vue:262 #: src/views/config/ConfigEditor.vue:254
#: src/views/domain/ngx_conf/LocationEditor.vue:118 #: src/views/domain/ngx_conf/LocationEditor.vue:118
#: src/views/domain/ngx_conf/LocationEditor.vue:90 #: src/views/domain/ngx_conf/LocationEditor.vue:90
msgid "Path" msgid "Path"
@ -1509,19 +1452,15 @@ msgstr ""
msgid "Performing core upgrade" msgid "Performing core upgrade"
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:75 #: src/components/OTP/OTPAuthorization.vue:37
msgid "Please enter a name for the passkey you wish to create and click the OK button below." msgid "Please enter the 2FA code:"
msgstr ""
#: src/components/2FA/Authorization.vue:75
msgid "Please enter the OTP code:"
msgstr "" msgstr ""
#: src/views/certificate/DNSCredential.vue:53 #: src/views/certificate/DNSCredential.vue:53
msgid "Please fill in the API authentication credentials provided by your DNS provider." msgid "Please fill in the API authentication credentials provided by your DNS provider."
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:133 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:132
msgid "Please fill in the required fields" msgid "Please fill in the required fields"
msgstr "" msgstr ""
@ -1530,7 +1469,7 @@ msgid "Please first add credentials in Certification > DNS Credentials, and then
msgstr "" msgstr ""
#: src/views/config/components/Rename.vue:64 #: src/views/config/components/Rename.vue:64
#: src/views/config/ConfigEditor.vue:249 #: src/views/config/ConfigEditor.vue:241
msgid "Please input a filename" msgid "Please input a filename"
msgstr "" msgstr ""
@ -1548,12 +1487,12 @@ msgid "Please input your E-mail!"
msgstr "" msgstr ""
#: src/views/other/Install.vue:44 #: src/views/other/Install.vue:44
#: src/views/other/Login.vue:47 #: src/views/other/Login.vue:43
msgid "Please input your password!" msgid "Please input your password!"
msgstr "" msgstr ""
#: src/views/other/Install.vue:38 #: src/views/other/Install.vue:38
#: src/views/other/Login.vue:41 #: src/views/other/Login.vue:37
msgid "Please input your username!" msgid "Please input your username!"
msgstr "" msgstr ""
@ -1574,7 +1513,7 @@ msgid "Pre-release"
msgstr "" msgstr ""
#: src/routes/index.ts:260 #: src/routes/index.ts:260
#: src/views/preference/Preference.vue:111 #: src/views/preference/Preference.vue:105
msgid "Preference" msgid "Preference"
msgstr "" msgstr ""
@ -1616,16 +1555,16 @@ msgstr ""
msgid "Recovered Successfully" msgid "Recovered Successfully"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:94 #: src/components/OTP/OTPAuthorization.vue:56
#: src/views/preference/components/TOTP.vue:178 #: src/views/preference/components/TOTP.vue:164
msgid "Recovery" msgid "Recovery"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:104 #: src/views/preference/components/TOTP.vue:101
msgid "Recovery Code" msgid "Recovery Code"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:113 #: src/views/preference/components/TOTP.vue:110
msgid "Recovery Code:" msgid "Recovery Code:"
msgstr "" msgstr ""
@ -1645,10 +1584,6 @@ msgstr ""
msgid "Register failed" msgid "Register failed"
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:26
msgid "Register passkey successfully"
msgstr ""
#: src/views/certificate/ACMEUser.vue:67 #: src/views/certificate/ACMEUser.vue:67
msgid "Register successfully" msgid "Register successfully"
msgstr "" msgstr ""
@ -1682,12 +1617,11 @@ msgstr ""
msgid "Reloading nginx" msgid "Reloading nginx"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:109 #: src/views/preference/AuthSettings.vue:103
msgid "Remove" msgid "Remove"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:48 #: src/views/preference/AuthSettings.vue:47
#: src/views/preference/components/Passkey.vue:50
msgid "Remove successfully" msgid "Remove successfully"
msgstr "" msgstr ""
@ -1696,7 +1630,7 @@ msgid "Removed successfully"
msgstr "" msgstr ""
#: src/views/config/components/Rename.vue:55 #: src/views/config/components/Rename.vue:55
#: src/views/config/ConfigList.vue:167 #: src/views/config/ConfigList.vue:159
#: src/views/domain/ngx_conf/NgxUpstream.vue:123 #: src/views/domain/ngx_conf/NgxUpstream.vue:123
msgid "Rename" msgid "Rename"
msgstr "" msgstr ""
@ -1751,7 +1685,7 @@ msgstr ""
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:133 #: src/views/preference/components/TOTP.vue:130
msgid "Reset 2FA" msgid "Reset 2FA"
msgstr "" msgstr ""
@ -1773,11 +1707,10 @@ msgstr ""
#: src/components/ChatGPT/ChatGPT.vue:251 #: src/components/ChatGPT/ChatGPT.vue:251
#: src/views/certificate/CertificateEditor.vue:254 #: src/views/certificate/CertificateEditor.vue:254
#: src/views/config/ConfigEditor.vue:222 #: src/views/config/ConfigEditor.vue:214
#: src/views/domain/DomainEdit.vue:260 #: src/views/domain/DomainEdit.vue:260
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:120 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:120
#: src/views/preference/components/Passkey.vue:136 #: src/views/preference/Preference.vue:145
#: src/views/preference/Preference.vue:151
#: src/views/stream/StreamEdit.vue:252 #: src/views/stream/StreamEdit.vue:252
msgid "Save" msgid "Save"
msgstr "" msgstr ""
@ -1786,20 +1719,20 @@ msgstr ""
msgid "Save Directive" msgid "Save Directive"
msgstr "" msgstr ""
#: src/views/config/ConfigEditor.vue:171 #: src/views/config/ConfigEditor.vue:163
#: src/views/domain/DomainAdd.vue:46 #: src/views/domain/DomainAdd.vue:46
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:41 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:41
msgid "Save error %{msg}" msgid "Save error %{msg}"
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:39 #: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:39
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:122 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:121
#: src/views/certificate/CertificateEditor.vue:46 #: src/views/certificate/CertificateEditor.vue:46
#: src/views/preference/Preference.vue:79 #: src/views/preference/Preference.vue:74
msgid "Save successfully" msgid "Save successfully"
msgstr "" msgstr ""
#: src/views/config/ConfigEditor.vue:167 #: src/views/config/ConfigEditor.vue:159
#: src/views/domain/DomainAdd.vue:37 #: src/views/domain/DomainAdd.vue:37
#: src/views/domain/DomainEdit.vue:143 #: src/views/domain/DomainEdit.vue:143
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:39 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:39
@ -1807,7 +1740,7 @@ msgstr ""
msgid "Saved successfully" msgid "Saved successfully"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:94 #: src/views/preference/components/TOTP.vue:91
msgid "Scan the QR code with your mobile phone to add the account to the app." msgid "Scan the QR code with your mobile phone to add the account to the app."
msgstr "" msgstr ""
@ -1815,10 +1748,6 @@ msgstr ""
msgid "SDK" msgid "SDK"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:150
msgid "Secret has been copied"
msgstr ""
#: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:155 #: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:155
msgid "Selector" msgid "Selector"
msgstr "" msgstr ""
@ -1837,18 +1766,15 @@ msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdTable.vue:252 #: src/components/StdDesign/StdDataDisplay/StdTable.vue:252
#: src/views/config/components/Mkdir.vue:37 #: src/views/config/components/Mkdir.vue:37
#: src/views/config/components/Rename.vue:44 #: src/views/config/components/Rename.vue:44
#: src/views/config/ConfigEditor.vue:108 #: src/views/config/ConfigEditor.vue:100
#: src/views/domain/DomainList.vue:81 #: src/views/domain/DomainList.vue:81
#: src/views/environment/BatchUpgrader.vue:57 #: src/views/environment/BatchUpgrader.vue:57
#: src/views/environment/Environment.vue:15 #: src/views/environment/Environment.vue:15
#: src/views/other/Install.vue:68 #: src/views/other/Install.vue:68
#: src/views/preference/AuthSettings.vue:50 #: src/views/preference/AuthSettings.vue:49
#: src/views/preference/components/Passkey.vue:26 #: src/views/preference/components/TOTP.vue:42
#: src/views/preference/components/Passkey.vue:43 #: src/views/preference/components/TOTP.vue:55
#: src/views/preference/components/Passkey.vue:56 #: src/views/preference/Preference.vue:78
#: src/views/preference/components/TOTP.vue:45
#: src/views/preference/components/TOTP.vue:58
#: src/views/preference/Preference.vue:83
#: src/views/stream/StreamList.vue:113 #: src/views/stream/StreamList.vue:113
#: src/views/stream/StreamList.vue:81 #: src/views/stream/StreamList.vue:81
#: src/views/system/Upgrade.vue:42 #: src/views/system/Upgrade.vue:42
@ -1891,10 +1817,6 @@ msgstr ""
msgid "Show" msgid "Show"
msgstr "" msgstr ""
#: src/views/other/Login.vue:265
msgid "Sign in with a passkey"
msgstr ""
#: src/views/domain/ngx_conf/directive/DirectiveAdd.vue:51 #: src/views/domain/ngx_conf/directive/DirectiveAdd.vue:51
msgid "Single Directive" msgid "Single Directive"
msgstr "" msgstr ""
@ -1923,7 +1845,7 @@ msgstr ""
msgid "SSL Certificate Path" msgid "SSL Certificate Path"
msgstr "" msgstr ""
#: src/views/other/Login.vue:223 #: src/views/other/Login.vue:203
msgid "SSO Login" msgid "SSO Login"
msgstr "" msgstr ""
@ -1998,7 +1920,7 @@ msgid "Sync Certificate Success"
msgstr "" msgstr ""
#: src/components/Notification/config.ts:12 #: src/components/Notification/config.ts:12
msgid "Sync config %{config_name} to %{env_name} failed, please upgrade the remote Nginx UI to the latest version" msgid "Sync config %{cert_name} to %{env_name} failed, please upgrade the remote Nginx UI to the latest version"
msgstr "" msgstr ""
#: src/components/Notification/config.ts:16 #: src/components/Notification/config.ts:16
@ -2071,7 +1993,7 @@ msgstr ""
msgid "The path exists, but the file is not a private key" msgid "The path exists, but the file is not a private key"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:112 #: src/views/preference/components/TOTP.vue:109
msgid "The recovery code is only displayed once, please save it in a safe place." msgid "The recovery code is only displayed once, please save it in a safe place."
msgstr "" msgstr ""
@ -2123,8 +2045,7 @@ msgstr ""
msgid "This will upgrade or reinstall the Nginx UI on %{nodeNames} to %{version}." msgid "This will upgrade or reinstall the Nginx UI on %{nodeNames} to %{version}."
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:67 #: src/views/preference/AuthSettings.vue:61
#: src/views/preference/components/AddPasskey.vue:71
#: src/views/preference/LogrotateSettings.vue:11 #: src/views/preference/LogrotateSettings.vue:11
msgid "Tips" msgid "Tips"
msgstr "" msgstr ""
@ -2133,14 +2054,10 @@ msgstr ""
msgid "Title" msgid "Title"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:93 #: src/views/preference/components/TOTP.vue:90
msgid "To enable it, you need to install the Google or Microsoft Authenticator app on your mobile phone." msgid "To enable it, you need to install the Google or Microsoft Authenticator app on your mobile phone."
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:95
msgid "To ensure security, Webauthn configuration cannot be added through the UI. Please manually configure the following in the app.ini configuration file and restart Nginx UI."
msgstr ""
#: src/views/domain/ngx_conf/NgxConfigEditor.vue:44 #: src/views/domain/ngx_conf/NgxConfigEditor.vue:44
msgid "To make sure the certification auto-renewal can work normally, we need to add a location which can proxy the request from authority to backend, and we need to save this file and reload the Nginx. Are you sure you want to continue?" msgid "To make sure the certification auto-renewal can work normally, we need to add a location which can proxy the request from authority to backend, and we need to save this file and reload the Nginx. Are you sure you want to continue?"
msgstr "" msgstr ""
@ -2149,23 +2066,19 @@ msgstr ""
msgid "Token is not valid" msgid "Token is not valid"
msgstr "" msgstr ""
#: src/views/other/Login.vue:82 #: src/views/other/Login.vue:74
msgid "Too many login failed attempts, please try again later" msgid "Too many login failed attempts, please try again later"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:91 #: src/views/preference/components/TOTP.vue:89
msgid "TOTP"
msgstr ""
#: src/views/preference/components/TOTP.vue:92
msgid "TOTP is a two-factor authentication method that uses a time-based one-time password algorithm." msgid "TOTP is a two-factor authentication method that uses a time-based one-time password algorithm."
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:210 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:209
msgid "Trash" msgid "Trash"
msgstr "" msgstr ""
#: src/components/2FA/use2FAModal.ts:71 #: src/components/OTP/useOTPModal.ts:67
msgid "Two-factor authentication required" msgid "Two-factor authentication required"
msgstr "" msgstr ""
@ -2175,14 +2088,10 @@ msgstr ""
msgid "Type" msgid "Type"
msgstr "" msgstr ""
#: src/views/preference/components/Passkey.vue:41
msgid "Update successfully"
msgstr ""
#: src/views/certificate/ACMEUser.vue:53 #: src/views/certificate/ACMEUser.vue:53
#: src/views/certificate/DNSCredential.vue:27 #: src/views/certificate/DNSCredential.vue:27
#: src/views/config/configColumns.ts:31 #: src/views/config/configColumns.ts:31
#: src/views/config/ConfigEditor.vue:275 #: src/views/config/ConfigEditor.vue:267
#: src/views/domain/components/RightSettings.vue:86 #: src/views/domain/components/RightSettings.vue:86
#: src/views/domain/DomainList.vue:41 #: src/views/domain/DomainList.vue:41
#: src/views/environment/envColumns.tsx:124 #: src/views/environment/envColumns.tsx:124
@ -2228,11 +2137,11 @@ msgstr ""
msgid "URL" msgid "URL"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:107 #: src/components/OTP/OTPAuthorization.vue:69
msgid "Use OTP" msgid "Use OTP"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:103 #: src/components/OTP/OTPAuthorization.vue:65
msgid "Use recovery code" msgid "Use recovery code"
msgstr "" msgstr ""
@ -2240,11 +2149,11 @@ msgstr ""
msgid "User" msgid "User"
msgstr "" msgstr ""
#: src/views/other/Login.vue:85 #: src/views/other/Login.vue:77
msgid "User is banned" msgid "User is banned"
msgstr "" msgstr ""
#: src/views/other/Login.vue:198 #: src/views/other/Login.vue:159
#: src/views/user/userColumns.tsx:9 #: src/views/user/userColumns.tsx:9
msgid "Username" msgid "Username"
msgstr "" msgstr ""
@ -2272,11 +2181,11 @@ msgstr ""
msgid "View all notifications" msgid "View all notifications"
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:182 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:181
msgid "View Details" msgid "View Details"
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:269 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:268
msgid "View Mode" msgid "View Mode"
msgstr "" msgstr ""
@ -2284,7 +2193,6 @@ msgstr ""
#: src/views/config/InspectConfig.vue:33 #: src/views/config/InspectConfig.vue:33
#: src/views/domain/DomainAdd.vue:112 #: src/views/domain/DomainAdd.vue:112
#: src/views/notification/notificationColumns.tsx:19 #: src/views/notification/notificationColumns.tsx:19
#: src/views/preference/components/AddPasskey.vue:88
msgid "Warning" msgid "Warning"
msgstr "" msgstr ""
@ -2311,7 +2219,7 @@ msgstr ""
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:89 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:89
#: src/views/domain/ngx_conf/LocationEditor.vue:69 #: src/views/domain/ngx_conf/LocationEditor.vue:69
#: src/views/preference/AuthSettings.vue:103 #: src/views/preference/AuthSettings.vue:97
#: src/views/preference/BasicSettings.vue:100 #: src/views/preference/BasicSettings.vue:100
msgid "Yes" msgid "Yes"
msgstr "" msgstr ""
@ -2323,11 +2231,3 @@ msgstr ""
#: src/views/system/Upgrade.vue:166 #: src/views/system/Upgrade.vue:166
msgid "You can check Nginx UI upgrade at this page." msgid "You can check Nginx UI upgrade at this page."
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:93
msgid "You have not configured the settings of Webauthn, so you cannot add a passkey."
msgstr ""
#: src/views/preference/components/Passkey.vue:81
msgid "Your passkeys"
msgstr ""

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -13,7 +13,7 @@ msgstr ""
msgid "2FA" msgid "2FA"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:58 #: src/views/preference/components/TOTP.vue:88
msgid "2FA Settings" msgid "2FA Settings"
msgstr "" msgstr ""
@ -37,13 +37,13 @@ msgstr "Người dùng"
#: src/views/config/configColumns.ts:38 src/views/domain/DomainList.vue:47 #: src/views/config/configColumns.ts:38 src/views/domain/DomainList.vue:47
#: src/views/environment/envColumns.tsx:131 #: src/views/environment/envColumns.tsx:131
#: src/views/notification/notificationColumns.tsx:54 #: src/views/notification/notificationColumns.tsx:54
#: src/views/preference/AuthSettings.vue:27 src/views/stream/StreamList.vue:47 #: src/views/preference/AuthSettings.vue:26 src/views/stream/StreamList.vue:47
#: src/views/user/userColumns.tsx:60 #: src/views/user/userColumns.tsx:60
msgid "Action" msgid "Action"
msgstr "Hành động" msgstr "Hành động"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:182 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:181
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:203 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:202
#: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:117 #: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:117
#: src/views/domain/ngx_conf/NgxServer.vue:162 #: src/views/domain/ngx_conf/NgxServer.vue:162
#: src/views/domain/ngx_conf/NgxUpstream.vue:152 #: src/views/domain/ngx_conf/NgxUpstream.vue:152
@ -52,13 +52,8 @@ msgstr "Hành động"
msgid "Add" msgid "Add"
msgstr "Thêm" msgstr "Thêm"
#: src/views/preference/components/AddPasskey.vue:51 #: src/routes/index.ts:112 src/views/config/ConfigEditor.vue:135
#: src/views/preference/components/AddPasskey.vue:55 #: src/views/config/ConfigEditor.vue:196
msgid "Add a passkey"
msgstr ""
#: src/routes/index.ts:112 src/views/config/ConfigEditor.vue:143
#: src/views/config/ConfigEditor.vue:204
#, fuzzy #, fuzzy
msgid "Add Configuration" msgid "Add Configuration"
msgstr "Sửa cấu hình" msgstr "Sửa cấu hình"
@ -95,10 +90,6 @@ msgstr "Tùy chọn bổ sung"
msgid "Advance Mode" msgid "Advance Mode"
msgstr "Nâng cao" msgstr "Nâng cao"
#: src/views/preference/components/AddPasskey.vue:105
msgid "Afterwards, refresh this page and click add passkey again."
msgstr ""
#: src/views/preference/OpenAISettings.vue:44 #: src/views/preference/OpenAISettings.vue:44
msgid "API Base Url" msgid "API Base Url"
msgstr "" msgstr ""
@ -119,16 +110,11 @@ msgstr ""
msgid "Arch" msgid "Arch"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:102 #: src/views/preference/AuthSettings.vue:96
#, fuzzy #, fuzzy
msgid "Are you sure to delete this banned IP immediately?" msgid "Are you sure to delete this banned IP immediately?"
msgstr "Bạn chắc chắn muốn xóa nó " msgstr "Bạn chắc chắn muốn xóa nó "
#: src/views/preference/components/Passkey.vue:119
#, fuzzy
msgid "Are you sure to delete this passkey immediately?"
msgstr "Bạn chắc chắn muốn xóa nó "
#: src/components/Notification/Notification.vue:86 #: src/components/Notification/Notification.vue:86
#: src/views/notification/Notification.vue:40 #: src/views/notification/Notification.vue:40
#, fuzzy #, fuzzy
@ -182,23 +168,15 @@ msgstr "Hỏi ChatGPT"
msgid "Assistant" msgid "Assistant"
msgstr "Trợ lý" msgstr "Trợ lý"
#: src/views/preference/AuthSettings.vue:18 #: src/views/preference/AuthSettings.vue:17
msgid "Attempts" msgid "Attempts"
msgstr "" msgstr ""
#: src/views/preference/Preference.vue:122 #: src/views/preference/Preference.vue:116
#, fuzzy #, fuzzy
msgid "Auth" msgid "Auth"
msgstr "Tác giả" msgstr "Tác giả"
#: src/components/2FA/Authorization.vue:126
msgid "Authenticate with a passkey"
msgstr ""
#: src/views/preference/AuthSettings.vue:63
msgid "Authentication Settings"
msgstr ""
#: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:106 #: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:106
#: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:120 #: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:120
msgid "Author" msgid "Author"
@ -217,8 +195,8 @@ msgid "Auto-renewal enabled for %{name}"
msgstr "Đã bật tự động gia hạn SSL cho %{name}" msgstr "Đã bật tự động gia hạn SSL cho %{name}"
#: src/views/certificate/CertificateEditor.vue:247 #: src/views/certificate/CertificateEditor.vue:247
#: src/views/config/ConfigEditor.vue:213 src/views/config/ConfigList.vue:107 #: src/views/config/ConfigEditor.vue:205 src/views/config/ConfigList.vue:173
#: src/views/config/ConfigList.vue:181 src/views/domain/DomainEdit.vue:253 #: src/views/config/ConfigList.vue:99 src/views/domain/DomainEdit.vue:253
#: src/views/nginx_log/NginxLog.vue:168 src/views/stream/StreamEdit.vue:245 #: src/views/nginx_log/NginxLog.vue:168 src/views/stream/StreamEdit.vue:245
msgid "Back" msgid "Back"
msgstr "Quay lại" msgstr "Quay lại"
@ -228,19 +206,19 @@ msgstr "Quay lại"
msgid "Back Home" msgid "Back Home"
msgstr "Quay lại" msgstr "Quay lại"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:216 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:215
msgid "Back to list" msgid "Back to list"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:76 #: src/views/preference/AuthSettings.vue:70
msgid "Ban Threshold Minutes" msgid "Ban Threshold Minutes"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:90 #: src/views/preference/AuthSettings.vue:84
msgid "Banned IPs" msgid "Banned IPs"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:21 #: src/views/preference/AuthSettings.vue:20
msgid "Banned Until" msgid "Banned Until"
msgstr "" msgstr ""
@ -248,9 +226,9 @@ msgstr ""
msgid "Base information" msgid "Base information"
msgstr "Thông tin" msgstr "Thông tin"
#: src/views/config/ConfigEditor.vue:241 #: src/views/config/ConfigEditor.vue:233
#: src/views/domain/components/RightSettings.vue:75 #: src/views/domain/components/RightSettings.vue:75
#: src/views/preference/Preference.vue:116 #: src/views/preference/Preference.vue:110
#: src/views/stream/components/RightSettings.vue:74 #: src/views/stream/components/RightSettings.vue:74
#, fuzzy #, fuzzy
msgid "Basic" msgid "Basic"
@ -283,13 +261,9 @@ msgstr ""
msgid "CADir" msgid "CADir"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:151
msgid "Can't scan? Use text key binding"
msgstr ""
#: src/components/ChatGPT/ChatGPT.vue:252 #: src/components/ChatGPT/ChatGPT.vue:252
#: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:55 #: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:55
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:253 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:252
#: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:153 #: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:153
#: src/views/domain/cert/components/ObtainCert.vue:137 #: src/views/domain/cert/components/ObtainCert.vue:137
#: src/views/domain/components/Deploy.vue:21 #: src/views/domain/components/Deploy.vue:21
@ -297,7 +271,6 @@ msgstr ""
#: src/views/domain/ngx_conf/NgxConfigEditor.vue:50 #: src/views/domain/ngx_conf/NgxConfigEditor.vue:50
#: src/views/domain/ngx_conf/NgxServer.vue:80 #: src/views/domain/ngx_conf/NgxServer.vue:80
#: src/views/domain/ngx_conf/NgxUpstream.vue:33 #: src/views/domain/ngx_conf/NgxUpstream.vue:33
#: src/views/preference/components/Passkey.vue:147
#: src/views/stream/components/Deploy.vue:21 #: src/views/stream/components/Deploy.vue:21
#: src/views/stream/components/RightSettings.vue:51 #: src/views/stream/components/RightSettings.vue:51
msgid "Cancel" msgid "Cancel"
@ -344,7 +317,7 @@ msgid_plural "Changed Certificates"
msgstr[0] "Thay đổi chứng chỉ" msgstr[0] "Thay đổi chứng chỉ"
msgstr[1] "Thay đổi chứng chỉ" msgstr[1] "Thay đổi chứng chỉ"
#: src/views/config/ConfigEditor.vue:268 #: src/views/config/ConfigEditor.vue:260
#, fuzzy #, fuzzy
msgid "Changed Path" msgid "Changed Path"
msgstr "Thay đổi chứng chỉ" msgstr "Thay đổi chứng chỉ"
@ -398,7 +371,7 @@ msgstr "Tệp cấu hình được kiểm tra thành công"
msgid "Configuration Name" msgid "Configuration Name"
msgstr "Tên cấu hình" msgstr "Tên cấu hình"
#: src/views/config/ConfigList.vue:99 #: src/views/config/ConfigList.vue:91
msgid "Configurations" msgid "Configurations"
msgstr "Cấu hình" msgstr "Cấu hình"
@ -449,18 +422,17 @@ msgstr "Ngày tạo"
msgid "Create Another" msgid "Create Another"
msgstr "Tạo thêm" msgstr "Tạo thêm"
#: src/views/config/ConfigList.vue:117 #: src/views/config/ConfigList.vue:109
#, fuzzy #, fuzzy
msgid "Create File" msgid "Create File"
msgstr "Ngày tạo" msgstr "Ngày tạo"
#: src/views/config/components/Mkdir.vue:48 src/views/config/ConfigList.vue:124 #: src/views/config/components/Mkdir.vue:48 src/views/config/ConfigList.vue:116
#, fuzzy #, fuzzy
msgid "Create Folder" msgid "Create Folder"
msgstr "Tạo thêm" msgstr "Tạo thêm"
#: src/views/notification/notificationColumns.tsx:48 #: src/views/notification/notificationColumns.tsx:48
#: src/views/preference/components/Passkey.vue:101
#: src/views/user/userColumns.tsx:48 #: src/views/user/userColumns.tsx:48
msgid "Created at" msgid "Created at"
msgstr "Ngày tạo" msgstr "Ngày tạo"
@ -482,12 +454,12 @@ msgstr "Chứng chỉ"
msgid "Credentials" msgid "Credentials"
msgstr "Chứng chỉ" msgstr "Chứng chỉ"
#: src/views/preference/components/TOTP.vue:99 #: src/views/preference/components/TOTP.vue:96
msgid "Current account is enabled TOTP." msgid "Current account is enabled 2FA."
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:96 #: src/views/preference/components/TOTP.vue:93
msgid "Current account is not enabled TOTP." msgid "Current account is not enabled 2FA."
msgstr "" msgstr ""
#: src/views/system/Upgrade.vue:167 #: src/views/system/Upgrade.vue:167
@ -505,8 +477,8 @@ msgid ""
"indicator." "indicator."
msgstr "" msgstr ""
#: src/routes/index.ts:39 src/views/config/ConfigEditor.vue:133 #: src/routes/index.ts:39 src/views/config/ConfigEditor.vue:125
#: src/views/config/ConfigEditor.vue:94 src/views/config/ConfigList.vue:65 #: src/views/config/ConfigEditor.vue:86 src/views/config/ConfigList.vue:57
msgid "Dashboard" msgid "Dashboard"
msgstr "Bảng điều khiển" msgstr "Bảng điều khiển"
@ -544,7 +516,7 @@ msgstr "Xoá trang web: %{site_name}"
msgid "Deleted successfully" msgid "Deleted successfully"
msgstr "Đã xoá thành công" msgstr "Đã xoá thành công"
#: src/views/config/ConfigEditor.vue:284 #: src/views/config/ConfigEditor.vue:276
#: src/views/domain/components/Deploy.vue:104 #: src/views/domain/components/Deploy.vue:104
#: src/views/domain/components/RightSettings.vue:93 #: src/views/domain/components/RightSettings.vue:93
#: src/views/stream/components/Deploy.vue:103 #: src/views/stream/components/Deploy.vue:103
@ -711,12 +683,6 @@ msgstr "Đang tải phiên bản mới nhất"
msgid "Dry run mode enabled" msgid "Dry run mode enabled"
msgstr "Đã bật chế độ Dry run" msgstr "Đã bật chế độ Dry run"
#: src/views/preference/components/AddPasskey.vue:107
msgid ""
"Due to the security policies of some browsers, you cannot use passkeys on "
"non-HTTPS websites, except when running on localhost."
msgstr ""
#: src/views/domain/components/SiteDuplicate.vue:122 #: src/views/domain/components/SiteDuplicate.vue:122
#: src/views/domain/DomainList.vue:140 #: src/views/domain/DomainList.vue:140
#: src/views/stream/components/StreamDuplicate.vue:122 #: src/views/stream/components/StreamDuplicate.vue:122
@ -752,7 +718,7 @@ msgstr "Đã sao chép thành công vào máy cục bộ"
msgid "Edit %{n}" msgid "Edit %{n}"
msgstr "Sửa %{n}" msgstr "Sửa %{n}"
#: src/routes/index.ts:122 src/views/config/ConfigEditor.vue:204 #: src/routes/index.ts:122 src/views/config/ConfigEditor.vue:196
msgid "Edit Configuration" msgid "Edit Configuration"
msgstr "Sửa cấu hình" msgstr "Sửa cấu hình"
@ -792,7 +758,12 @@ msgstr "Không thể bật %{conf_name} trên %{node_name}"
msgid "Enable %{conf_name} in %{node_name} successfully" msgid "Enable %{conf_name} in %{node_name} successfully"
msgstr "Đã bật %{conf_name} trên %{node_name}" msgstr "Đã bật %{conf_name} trên %{node_name}"
#: src/views/preference/components/TOTP.vue:55 #: src/views/preference/components/TOTP.vue:122
#, fuzzy
msgid "Enable 2FA"
msgstr "Đã bật"
#: src/views/preference/components/TOTP.vue:52
#, fuzzy #, fuzzy
msgid "Enable 2FA successfully" msgid "Enable 2FA successfully"
msgstr "Đã bật" msgstr "Đã bật"
@ -815,11 +786,6 @@ msgstr "Đã bật"
msgid "Enable TLS" msgid "Enable TLS"
msgstr "Bật TLS" msgstr "Bật TLS"
#: src/views/preference/components/TOTP.vue:125
#, fuzzy
msgid "Enable TOTP"
msgstr "Bật TLS"
#: src/views/domain/components/RightSettings.vue:77 #: src/views/domain/components/RightSettings.vue:77
#: src/views/domain/DomainEdit.vue:175 src/views/domain/DomainList.vue:29 #: src/views/domain/DomainEdit.vue:175 src/views/domain/DomainList.vue:29
#: src/views/environment/envColumns.tsx:104 #: src/views/environment/envColumns.tsx:104
@ -938,27 +904,21 @@ msgstr "Lọc"
msgid "Finished" msgid "Finished"
msgstr "Đã hoàn thành" msgstr "Đã hoàn thành"
#: src/views/preference/components/AddPasskey.vue:77
msgid ""
"Follow the instructions in the dialog to complete the passkey registration "
"process."
msgstr ""
#: src/views/preference/BasicSettings.vue:43 #: src/views/preference/BasicSettings.vue:43
#, fuzzy #, fuzzy
msgid "For Chinese user: https://mirror.ghproxy.com/" msgid "For Chinese user: https://mirror.ghproxy.com/"
msgstr "Người dùng Trung Quốc: https://mirror.ghproxy.com/" msgstr "Người dùng Trung Quốc: https://mirror.ghproxy.com/"
#: src/views/config/ConfigEditor.vue:216 #: src/views/config/ConfigEditor.vue:208
msgid "Format Code" msgid "Format Code"
msgstr "Định dạng code" msgstr "Định dạng code"
#: src/views/config/ConfigEditor.vue:183 #: src/views/config/ConfigEditor.vue:175
#, fuzzy #, fuzzy
msgid "Format error %{msg}" msgid "Format error %{msg}"
msgstr "Lưu lỗi %{msg}" msgstr "Lưu lỗi %{msg}"
#: src/views/config/ConfigEditor.vue:181 #: src/views/config/ConfigEditor.vue:173
#, fuzzy #, fuzzy
msgid "Format successfully" msgid "Format successfully"
msgstr "Định dạng thành công" msgstr "Định dạng thành công"
@ -1017,22 +977,18 @@ msgstr ""
msgid "If left blank, the default CA Dir will be used." msgid "If left blank, the default CA Dir will be used."
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:68 #: src/views/preference/AuthSettings.vue:62
msgid "" msgid ""
"If the number of login failed attempts from a ip reach the max attempts in " "If the number of login failed attempts from a ip reach the max attempts in "
"ban threshold minutes, the ip will be banned for a period of time." "ban threshold minutes, the ip will be banned for a period of time."
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:111 #: src/views/preference/components/TOTP.vue:108
msgid "" msgid ""
"If you lose your mobile phone, you can use the recovery code to reset your " "If you lose your mobile phone, you can use the recovery code to reset your "
"2FA." "2FA."
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:76
msgid "If your browser supports WebAuthn Passkey, a dialog box will appear."
msgstr ""
#: src/views/domain/cert/components/AutoCertStepOne.vue:109 #: src/views/domain/cert/components/AutoCertStepOne.vue:109
msgid "" msgid ""
"If your domain has CNAME records and you cannot obtain certificates, you " "If your domain has CNAME records and you cannot obtain certificates, you "
@ -1049,7 +1005,7 @@ msgstr "Xuất"
msgid "Import Certificate" msgid "Import Certificate"
msgstr "Chứng chỉ" msgstr "Chứng chỉ"
#: src/views/other/Login.vue:79 #: src/views/other/Login.vue:71
#, fuzzy #, fuzzy
msgid "Incorrect username or password" msgid "Incorrect username or password"
msgstr "Tên người dùng hoặc mật khẩu không chính xác" msgstr "Tên người dùng hoặc mật khẩu không chính xác"
@ -1066,12 +1022,12 @@ msgstr "Không thể khởi tạo trình nâng cấp"
msgid "Initialing core upgrader" msgid "Initialing core upgrader"
msgstr "Đang khởi tạo trình nâng cấp" msgstr "Đang khởi tạo trình nâng cấp"
#: src/views/preference/components/TOTP.vue:158 #: src/views/preference/components/TOTP.vue:144
msgid "Input the code from the app:" msgid "Input the code from the app:"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:87 #: src/components/OTP/OTPAuthorization.vue:49
#: src/views/preference/components/TOTP.vue:171 #: src/views/preference/components/TOTP.vue:157
msgid "Input the recovery code:" msgid "Input the recovery code:"
msgstr "" msgstr ""
@ -1093,12 +1049,12 @@ msgstr ""
msgid "Invalid" msgid "Invalid"
msgstr "Hợp lệ" msgstr "Hợp lệ"
#: src/views/other/Login.vue:89 #: src/views/other/Login.vue:81
msgid "Invalid 2FA or recovery code" msgid "Invalid 2FA or recovery code"
msgstr "" msgstr ""
#: src/views/config/components/Rename.vue:65 #: src/views/config/components/Rename.vue:65
#: src/views/config/ConfigEditor.vue:250 #: src/views/config/ConfigEditor.vue:242
#, fuzzy #, fuzzy
msgid "Invalid filename" msgid "Invalid filename"
msgstr "E-mail không chính xác!" msgstr "E-mail không chính xác!"
@ -1107,11 +1063,11 @@ msgstr "E-mail không chính xác!"
msgid "Invalid folder name" msgid "Invalid folder name"
msgstr "" msgstr ""
#: src/components/2FA/use2FAModal.ts:65 #: src/components/OTP/useOTPModal.ts:61
msgid "Invalid passcode or recovery code" msgid "Invalid passcode or recovery code"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:15 #: src/views/preference/AuthSettings.vue:14
msgid "IP" msgid "IP"
msgstr "" msgstr ""
@ -1148,11 +1104,6 @@ msgstr "Loại"
msgid "Last checked at" msgid "Last checked at"
msgstr "Kiểm tra lần cuối lúc" msgstr "Kiểm tra lần cuối lúc"
#: src/views/preference/components/Passkey.vue:102
#, fuzzy
msgid "Last used at"
msgstr "Kiểm tra lần cuối lúc"
#: src/views/user/userColumns.tsx:25 #: src/views/user/userColumns.tsx:25
msgid "Leave blank for no change" msgid "Leave blank for no change"
msgstr "Bỏ trống nếu không thay đổi" msgstr "Bỏ trống nếu không thay đổi"
@ -1181,7 +1132,7 @@ msgstr "Giấy phép"
msgid "Link Start" msgid "Link Start"
msgstr "Liên kết bắt đầu" msgstr "Liên kết bắt đầu"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:193 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:192
msgid "List" msgid "List"
msgstr "" msgstr ""
@ -1200,7 +1151,7 @@ msgid "Load successfully"
msgstr "Lưu thành công" msgstr "Lưu thành công"
#: src/components/EnvIndicator/EnvIndicator.vue:39 #: src/components/EnvIndicator/EnvIndicator.vue:39
#: src/components/NodeSelector/NodeSelector.vue:71 #: src/components/NodeSelector/NodeSelector.vue:68
#, fuzzy #, fuzzy
msgid "Local" msgid "Local"
msgstr "Location" msgstr "Location"
@ -1218,11 +1169,11 @@ msgstr "Locations"
msgid "Log" msgid "Log"
msgstr "Log" msgstr "Log"
#: src/routes/index.ts:305 src/views/other/Login.vue:247 #: src/routes/index.ts:305 src/views/other/Login.vue:192
msgid "Login" msgid "Login"
msgstr "Đăng nhập" msgstr "Đăng nhập"
#: src/views/other/Login.vue:133 src/views/other/Login.vue:66 #: src/views/other/Login.vue:125 src/views/other/Login.vue:60
msgid "Login successful" msgid "Login successful"
msgstr "Đăng nhập thành công" msgstr "Đăng nhập thành công"
@ -1230,7 +1181,7 @@ msgstr "Đăng nhập thành công"
msgid "Logout successful" msgid "Logout successful"
msgstr "Đã đăng xuất" msgstr "Đã đăng xuất"
#: src/views/preference/Preference.vue:140 #: src/views/preference/Preference.vue:134
msgid "Logrotate" msgid "Logrotate"
msgstr "" msgstr ""
@ -1253,8 +1204,8 @@ msgstr ""
"Đảm bảo rằng bạn đã định cấu hình proxy ngược (reverse proxy) thư mục .well-" "Đảm bảo rằng bạn đã định cấu hình proxy ngược (reverse proxy) thư mục .well-"
"known tới HTTPChallengePort (default: 9180) trước khi ký chứng chỉ SSL." "known tới HTTPChallengePort (default: 9180) trước khi ký chứng chỉ SSL."
#: src/routes/index.ts:102 src/views/config/ConfigEditor.vue:138 #: src/routes/index.ts:102 src/views/config/ConfigEditor.vue:130
#: src/views/config/ConfigEditor.vue:99 src/views/config/ConfigList.vue:70 #: src/views/config/ConfigEditor.vue:91 src/views/config/ConfigList.vue:62
msgid "Manage Configs" msgid "Manage Configs"
msgstr "Quản lý cấu hình" msgstr "Quản lý cấu hình"
@ -1275,7 +1226,7 @@ msgstr "Người dùng"
msgid "Managed Certificate" msgid "Managed Certificate"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:82 #: src/views/preference/AuthSettings.vue:76
msgid "Max Attempts" msgid "Max Attempts"
msgstr "" msgstr ""
@ -1298,9 +1249,9 @@ msgid "Model"
msgstr "Run Mode" msgstr "Run Mode"
#: src/components/ChatGPT/ChatGPT.vue:248 #: src/components/ChatGPT/ChatGPT.vue:248
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:182 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:181
#: src/components/StdDesign/StdDataDisplay/StdTable.vue:531 #: src/components/StdDesign/StdDataDisplay/StdTable.vue:531
#: src/views/config/ConfigList.vue:159 #: src/views/config/ConfigList.vue:151
#, fuzzy #, fuzzy
msgid "Modify" msgid "Modify"
msgstr "Sửa" msgstr "Sửa"
@ -1314,7 +1265,7 @@ msgstr "Sửa chứng chỉ"
msgid "Modify Config" msgid "Modify Config"
msgstr "Sửa cấu hình" msgstr "Sửa cấu hình"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:269 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:268
#, fuzzy #, fuzzy
msgid "Modify Mode" msgid "Modify Mode"
msgstr "Sửa" msgstr "Sửa"
@ -1329,13 +1280,12 @@ msgstr "Single Directive"
#: src/views/certificate/CertificateList/certColumns.tsx:10 #: src/views/certificate/CertificateList/certColumns.tsx:10
#: src/views/certificate/DNSCredential.vue:11 #: src/views/certificate/DNSCredential.vue:11
#: src/views/config/components/Mkdir.vue:65 src/views/config/configColumns.ts:8 #: src/views/config/components/Mkdir.vue:65 src/views/config/configColumns.ts:8
#: src/views/config/ConfigEditor.vue:256 #: src/views/config/ConfigEditor.vue:248
#: src/views/domain/components/RightSettings.vue:83 #: src/views/domain/components/RightSettings.vue:83
#: src/views/domain/components/SiteDuplicate.vue:129 #: src/views/domain/components/SiteDuplicate.vue:129
#: src/views/domain/DomainList.vue:13 #: src/views/domain/DomainList.vue:13
#: src/views/domain/ngx_conf/NgxUpstream.vue:175 #: src/views/domain/ngx_conf/NgxUpstream.vue:175
#: src/views/environment/envColumns.tsx:9 #: src/views/environment/envColumns.tsx:9
#: src/views/preference/components/AddPasskey.vue:81
#: src/views/stream/components/RightSettings.vue:82 #: src/views/stream/components/RightSettings.vue:82
#: src/views/stream/components/StreamDuplicate.vue:129 #: src/views/stream/components/StreamDuplicate.vue:129
#: src/views/stream/StreamList.vue:13 src/views/stream/StreamList.vue:188 #: src/views/stream/StreamList.vue:13 src/views/stream/StreamList.vue:188
@ -1363,7 +1313,7 @@ msgstr "Tổng lưu lượng mạng đã gửi"
msgid "New name" msgid "New name"
msgstr "Username" msgstr "Username"
#: src/views/config/ConfigEditor.vue:268 #: src/views/config/ConfigEditor.vue:260
#, fuzzy #, fuzzy
msgid "New Path" msgid "New Path"
msgstr "Đường dẫn" msgstr "Đường dẫn"
@ -1378,7 +1328,7 @@ msgstr "Đã có phiên bản mới"
msgid "Next" msgid "Next"
msgstr "Tiếp theo" msgstr "Tiếp theo"
#: src/views/preference/Preference.vue:128 #: src/views/preference/Preference.vue:122
msgid "Nginx" msgid "Nginx"
msgstr "" msgstr ""
@ -1422,7 +1372,7 @@ msgstr "Restart Nginx thành công"
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:90 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:90
#: src/views/domain/ngx_conf/LocationEditor.vue:70 #: src/views/domain/ngx_conf/LocationEditor.vue:70
#: src/views/notification/Notification.vue:38 #: src/views/notification/Notification.vue:38
#: src/views/preference/AuthSettings.vue:104 #: src/views/preference/AuthSettings.vue:98
#: src/views/preference/BasicSettings.vue:101 #: src/views/preference/BasicSettings.vue:101
#: src/views/stream/StreamList.vue:165 #: src/views/stream/StreamList.vue:165
msgid "No" msgid "No"
@ -1478,13 +1428,13 @@ msgid ""
"Firefox." "Firefox."
msgstr "" msgstr ""
#: src/components/NodeSelector/NodeSelector.vue:94 #: src/components/NodeSelector/NodeSelector.vue:91
#: src/views/dashboard/Environments.vue:107 #: src/views/dashboard/Environments.vue:107
#: src/views/environment/envColumns.tsx:90 #: src/views/environment/envColumns.tsx:90
msgid "Offline" msgid "Offline"
msgstr "Ngoại tuyến" msgstr "Ngoại tuyến"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:254 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:253
#: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:154 #: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:154
msgid "Ok" msgid "Ok"
msgstr "" msgstr ""
@ -1513,21 +1463,17 @@ msgstr ""
msgid "Once the verification is complete, the records will be removed." msgid "Once the verification is complete, the records will be removed."
msgstr "Sau khi quá trình xác minh hoàn tất, bản ghi sẽ bị xóa." msgstr "Sau khi quá trình xác minh hoàn tất, bản ghi sẽ bị xóa."
#: src/components/NodeSelector/NodeSelector.vue:74 #: src/components/NodeSelector/NodeSelector.vue:71
#: src/components/NodeSelector/NodeSelector.vue:88 #: src/components/NodeSelector/NodeSelector.vue:85
#: src/views/dashboard/Environments.vue:100 #: src/views/dashboard/Environments.vue:100
#: src/views/environment/envColumns.tsx:86 #: src/views/environment/envColumns.tsx:86
msgid "Online" msgid "Online"
msgstr "Trực tuyến" msgstr "Trực tuyến"
#: src/views/preference/Preference.vue:134 #: src/views/preference/Preference.vue:128
msgid "OpenAI" msgid "OpenAI"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:117 src/views/other/Login.vue:256
msgid "Or"
msgstr ""
#: src/views/config/components/Rename.vue:69 #: src/views/config/components/Rename.vue:69
msgid "Original name" msgid "Original name"
msgstr "" msgstr ""
@ -1541,13 +1487,13 @@ msgstr "Hệ điều hành"
msgid "OS:" msgid "OS:"
msgstr "Hệ điều hành:" msgstr "Hệ điều hành:"
#: src/views/config/ConfigEditor.vue:293 #: src/views/config/ConfigEditor.vue:285
#: src/views/domain/components/Deploy.vue:88 #: src/views/domain/components/Deploy.vue:88
#: src/views/stream/components/Deploy.vue:87 #: src/views/stream/components/Deploy.vue:87
msgid "Overwrite" msgid "Overwrite"
msgstr "Ghi đè" msgstr "Ghi đè"
#: src/views/config/ConfigEditor.vue:297 #: src/views/config/ConfigEditor.vue:289
#: src/views/domain/components/Deploy.vue:92 #: src/views/domain/components/Deploy.vue:92
#: src/views/stream/components/Deploy.vue:91 #: src/views/stream/components/Deploy.vue:91
msgid "Overwrite exist file" msgid "Overwrite exist file"
@ -1557,18 +1503,7 @@ msgstr "Ghi đè tập tin đã tồn tại"
msgid "Params" msgid "Params"
msgstr "Tham số" msgstr "Tham số"
#: src/views/preference/components/Passkey.vue:65 #: src/views/other/Login.vue:169 src/views/user/userColumns.tsx:18
msgid "Passkey"
msgstr ""
#: src/views/preference/components/Passkey.vue:68
msgid ""
"Passkeys are webauthn credentials that validate your identity using touch, "
"facial recognition, a device password, or a PIN. They can be used as a "
"password replacement or as a 2FA method."
msgstr ""
#: src/views/other/Login.vue:208 src/views/user/userColumns.tsx:18
msgid "Password" msgid "Password"
msgstr "Mật khẩu" msgstr "Mật khẩu"
@ -1576,7 +1511,7 @@ msgstr "Mật khẩu"
msgid "Password (*)" msgid "Password (*)"
msgstr "Mật khẩu (*)" msgstr "Mật khẩu (*)"
#: src/views/config/ConfigEditor.vue:262 #: src/views/config/ConfigEditor.vue:254
#: src/views/domain/ngx_conf/LocationEditor.vue:118 #: src/views/domain/ngx_conf/LocationEditor.vue:118
#: src/views/domain/ngx_conf/LocationEditor.vue:90 #: src/views/domain/ngx_conf/LocationEditor.vue:90
msgid "Path" msgid "Path"
@ -1594,14 +1529,8 @@ msgstr "Nâng cấp core không thành công"
msgid "Performing core upgrade" msgid "Performing core upgrade"
msgstr "Nâng cấp core" msgstr "Nâng cấp core"
#: src/views/preference/components/AddPasskey.vue:75 #: src/components/OTP/OTPAuthorization.vue:37
msgid "" msgid "Please enter the 2FA code:"
"Please enter a name for the passkey you wish to create and click the OK "
"button below."
msgstr ""
#: src/components/2FA/Authorization.vue:75
msgid "Please enter the OTP code:"
msgstr "" msgstr ""
#: src/views/certificate/DNSCredential.vue:53 #: src/views/certificate/DNSCredential.vue:53
@ -1611,7 +1540,7 @@ msgid ""
msgstr "" msgstr ""
"Vui lòng điền thông tin xác thực API do nhà cung cấp DNS của bạn cung cấp" "Vui lòng điền thông tin xác thực API do nhà cung cấp DNS của bạn cung cấp"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:133 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:132
msgid "Please fill in the required fields" msgid "Please fill in the required fields"
msgstr "" msgstr ""
@ -1624,7 +1553,7 @@ msgstr ""
"thực DNS, sau đó chọn nhà cung cấp DNS" "thực DNS, sau đó chọn nhà cung cấp DNS"
#: src/views/config/components/Rename.vue:64 #: src/views/config/components/Rename.vue:64
#: src/views/config/ConfigEditor.vue:249 #: src/views/config/ConfigEditor.vue:241
#, fuzzy #, fuzzy
msgid "Please input a filename" msgid "Please input a filename"
msgstr "Vui lòng nhập username!" msgstr "Vui lòng nhập username!"
@ -1646,11 +1575,11 @@ msgstr ""
msgid "Please input your E-mail!" msgid "Please input your E-mail!"
msgstr "Vui lòng nhập E-mail của bạn!" msgstr "Vui lòng nhập E-mail của bạn!"
#: src/views/other/Install.vue:44 src/views/other/Login.vue:47 #: src/views/other/Install.vue:44 src/views/other/Login.vue:43
msgid "Please input your password!" msgid "Please input your password!"
msgstr "Vui lòng nhập mật khẩu!" msgstr "Vui lòng nhập mật khẩu!"
#: src/views/other/Install.vue:38 src/views/other/Login.vue:41 #: src/views/other/Install.vue:38 src/views/other/Login.vue:37
msgid "Please input your username!" msgid "Please input your username!"
msgstr "Vui lòng nhập username!" msgstr "Vui lòng nhập username!"
@ -1670,7 +1599,7 @@ msgstr ""
msgid "Pre-release" msgid "Pre-release"
msgstr "" msgstr ""
#: src/routes/index.ts:260 src/views/preference/Preference.vue:111 #: src/routes/index.ts:260 src/views/preference/Preference.vue:105
msgid "Preference" msgid "Preference"
msgstr "Cài đặt" msgstr "Cài đặt"
@ -1714,16 +1643,16 @@ msgstr ""
msgid "Recovered Successfully" msgid "Recovered Successfully"
msgstr "Xoá thành công" msgstr "Xoá thành công"
#: src/components/2FA/Authorization.vue:94 #: src/components/OTP/OTPAuthorization.vue:56
#: src/views/preference/components/TOTP.vue:178 #: src/views/preference/components/TOTP.vue:164
msgid "Recovery" msgid "Recovery"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:104 #: src/views/preference/components/TOTP.vue:101
msgid "Recovery Code" msgid "Recovery Code"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:113 #: src/views/preference/components/TOTP.vue:110
msgid "Recovery Code:" msgid "Recovery Code:"
msgstr "" msgstr ""
@ -1745,11 +1674,6 @@ msgstr "Đăng ký người dùng"
msgid "Register failed" msgid "Register failed"
msgstr "Đăng ký người dùng" msgstr "Đăng ký người dùng"
#: src/views/preference/components/AddPasskey.vue:26
#, fuzzy
msgid "Register passkey successfully"
msgstr "Gia hạn chứng chỉ SSL"
#: src/views/certificate/ACMEUser.vue:67 #: src/views/certificate/ACMEUser.vue:67
#, fuzzy #, fuzzy
msgid "Register successfully" msgid "Register successfully"
@ -1786,12 +1710,11 @@ msgstr "Đang tải lại"
msgid "Reloading nginx" msgid "Reloading nginx"
msgstr "Tải lại nginx" msgstr "Tải lại nginx"
#: src/views/preference/AuthSettings.vue:109 #: src/views/preference/AuthSettings.vue:103
msgid "Remove" msgid "Remove"
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:48 #: src/views/preference/AuthSettings.vue:47
#: src/views/preference/components/Passkey.vue:50
#, fuzzy #, fuzzy
msgid "Remove successfully" msgid "Remove successfully"
msgstr "Xoá thành công" msgstr "Xoá thành công"
@ -1802,7 +1725,7 @@ msgid "Removed successfully"
msgstr "Xoá thành công" msgstr "Xoá thành công"
#: src/views/config/components/Rename.vue:55 #: src/views/config/components/Rename.vue:55
#: src/views/config/ConfigList.vue:167 #: src/views/config/ConfigList.vue:159
#: src/views/domain/ngx_conf/NgxUpstream.vue:123 #: src/views/domain/ngx_conf/NgxUpstream.vue:123
#, fuzzy #, fuzzy
msgid "Rename" msgid "Rename"
@ -1871,7 +1794,7 @@ msgstr "Yêu cầu có chứa tham số sai"
msgid "Reset" msgid "Reset"
msgstr "Đặt lại" msgstr "Đặt lại"
#: src/views/preference/components/TOTP.vue:133 #: src/views/preference/components/TOTP.vue:130
#, fuzzy #, fuzzy
msgid "Reset 2FA" msgid "Reset 2FA"
msgstr "Đặt lại" msgstr "Đặt lại"
@ -1895,10 +1818,9 @@ msgstr "Running"
#: src/components/ChatGPT/ChatGPT.vue:251 #: src/components/ChatGPT/ChatGPT.vue:251
#: src/views/certificate/CertificateEditor.vue:254 #: src/views/certificate/CertificateEditor.vue:254
#: src/views/config/ConfigEditor.vue:222 src/views/domain/DomainEdit.vue:260 #: src/views/config/ConfigEditor.vue:214 src/views/domain/DomainEdit.vue:260
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:120 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:120
#: src/views/preference/components/Passkey.vue:136 #: src/views/preference/Preference.vue:145 src/views/stream/StreamEdit.vue:252
#: src/views/preference/Preference.vue:151 src/views/stream/StreamEdit.vue:252
msgid "Save" msgid "Save"
msgstr "Lưu" msgstr "Lưu"
@ -1906,27 +1828,27 @@ msgstr "Lưu"
msgid "Save Directive" msgid "Save Directive"
msgstr "Lưu Directive" msgstr "Lưu Directive"
#: src/views/config/ConfigEditor.vue:171 src/views/domain/DomainAdd.vue:46 #: src/views/config/ConfigEditor.vue:163 src/views/domain/DomainAdd.vue:46
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:41 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:41
msgid "Save error %{msg}" msgid "Save error %{msg}"
msgstr "Đã xảy ra lỗi khi lưu %{msg}" msgstr "Đã xảy ra lỗi khi lưu %{msg}"
#: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:39 #: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:39
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:122 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:121
#: src/views/certificate/CertificateEditor.vue:46 #: src/views/certificate/CertificateEditor.vue:46
#: src/views/preference/Preference.vue:79 #: src/views/preference/Preference.vue:74
#, fuzzy #, fuzzy
msgid "Save successfully" msgid "Save successfully"
msgstr "Lưu thành công" msgstr "Lưu thành công"
#: src/views/config/ConfigEditor.vue:167 src/views/domain/DomainAdd.vue:37 #: src/views/config/ConfigEditor.vue:159 src/views/domain/DomainAdd.vue:37
#: src/views/domain/DomainEdit.vue:143 #: src/views/domain/DomainEdit.vue:143
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:39 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:39
#: src/views/stream/StreamEdit.vue:138 #: src/views/stream/StreamEdit.vue:138
msgid "Saved successfully" msgid "Saved successfully"
msgstr "Lưu thành công" msgstr "Lưu thành công"
#: src/views/preference/components/TOTP.vue:94 #: src/views/preference/components/TOTP.vue:91
msgid "Scan the QR code with your mobile phone to add the account to the app." msgid "Scan the QR code with your mobile phone to add the account to the app."
msgstr "" msgstr ""
@ -1934,10 +1856,6 @@ msgstr ""
msgid "SDK" msgid "SDK"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:150
msgid "Secret has been copied"
msgstr ""
#: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:155 #: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:155
msgid "Selector" msgid "Selector"
msgstr "Bộ chọn" msgstr "Bộ chọn"
@ -1956,16 +1874,13 @@ msgstr "Gửi"
#: src/components/StdDesign/StdDataDisplay/StdTable.vue:252 #: src/components/StdDesign/StdDataDisplay/StdTable.vue:252
#: src/views/config/components/Mkdir.vue:37 #: src/views/config/components/Mkdir.vue:37
#: src/views/config/components/Rename.vue:44 #: src/views/config/components/Rename.vue:44
#: src/views/config/ConfigEditor.vue:108 src/views/domain/DomainList.vue:81 #: src/views/config/ConfigEditor.vue:100 src/views/domain/DomainList.vue:81
#: src/views/environment/BatchUpgrader.vue:57 #: src/views/environment/BatchUpgrader.vue:57
#: src/views/environment/Environment.vue:15 src/views/other/Install.vue:68 #: src/views/environment/Environment.vue:15 src/views/other/Install.vue:68
#: src/views/preference/AuthSettings.vue:50 #: src/views/preference/AuthSettings.vue:49
#: src/views/preference/components/Passkey.vue:26 #: src/views/preference/components/TOTP.vue:42
#: src/views/preference/components/Passkey.vue:43 #: src/views/preference/components/TOTP.vue:55
#: src/views/preference/components/Passkey.vue:56 #: src/views/preference/Preference.vue:78 src/views/stream/StreamList.vue:113
#: src/views/preference/components/TOTP.vue:45
#: src/views/preference/components/TOTP.vue:58
#: src/views/preference/Preference.vue:83 src/views/stream/StreamList.vue:113
#: src/views/stream/StreamList.vue:81 src/views/system/Upgrade.vue:42 #: src/views/stream/StreamList.vue:81 src/views/system/Upgrade.vue:42
msgid "Server error" msgid "Server error"
msgstr "Lỗi máy chủ" msgstr "Lỗi máy chủ"
@ -2010,10 +1925,6 @@ msgstr "Sử dụng HTTP01 để xác thực SSL"
msgid "Show" msgid "Show"
msgstr "" msgstr ""
#: src/views/other/Login.vue:265
msgid "Sign in with a passkey"
msgstr ""
#: src/views/domain/ngx_conf/directive/DirectiveAdd.vue:51 #: src/views/domain/ngx_conf/directive/DirectiveAdd.vue:51
msgid "Single Directive" msgid "Single Directive"
msgstr "Single Directive" msgstr "Single Directive"
@ -2043,7 +1954,7 @@ msgstr ""
msgid "SSL Certificate Path" msgid "SSL Certificate Path"
msgstr "" msgstr ""
#: src/views/other/Login.vue:223 #: src/views/other/Login.vue:203
msgid "SSO Login" msgid "SSO Login"
msgstr "" msgstr ""
@ -2126,7 +2037,7 @@ msgstr "Gia hạn chứng chỉ SSL thành công"
#: src/components/Notification/config.ts:12 #: src/components/Notification/config.ts:12
#, fuzzy #, fuzzy
msgid "" msgid ""
"Sync config %{config_name} to %{env_name} failed, please upgrade the remote " "Sync config %{cert_name} to %{env_name} failed, please upgrade the remote "
"Nginx UI to the latest version" "Nginx UI to the latest version"
msgstr "Nhân bản %{conf_name} thành %{node_name} thành công" msgstr "Nhân bản %{conf_name} thành %{node_name} thành công"
@ -2211,7 +2122,7 @@ msgstr ""
msgid "The path exists, but the file is not a private key" msgid "The path exists, but the file is not a private key"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:112 #: src/views/preference/components/TOTP.vue:109
msgid "" msgid ""
"The recovery code is only displayed once, please save it in a safe place." "The recovery code is only displayed once, please save it in a safe place."
msgstr "" msgstr ""
@ -2274,8 +2185,7 @@ msgid ""
"This will upgrade or reinstall the Nginx UI on %{nodeNames} to %{version}." "This will upgrade or reinstall the Nginx UI on %{nodeNames} to %{version}."
msgstr "" msgstr ""
#: src/views/preference/AuthSettings.vue:67 #: src/views/preference/AuthSettings.vue:61
#: src/views/preference/components/AddPasskey.vue:71
#: src/views/preference/LogrotateSettings.vue:11 #: src/views/preference/LogrotateSettings.vue:11
msgid "Tips" msgid "Tips"
msgstr "" msgstr ""
@ -2284,19 +2194,12 @@ msgstr ""
msgid "Title" msgid "Title"
msgstr "Tiêu đề" msgstr "Tiêu đề"
#: src/views/preference/components/TOTP.vue:93 #: src/views/preference/components/TOTP.vue:90
msgid "" msgid ""
"To enable it, you need to install the Google or Microsoft Authenticator app " "To enable it, you need to install the Google or Microsoft Authenticator app "
"on your mobile phone." "on your mobile phone."
msgstr "" msgstr ""
#: src/views/preference/components/AddPasskey.vue:95
msgid ""
"To ensure security, Webauthn configuration cannot be added through the UI. "
"Please manually configure the following in the app.ini configuration file "
"and restart Nginx UI."
msgstr ""
#: src/views/domain/ngx_conf/NgxConfigEditor.vue:44 #: src/views/domain/ngx_conf/NgxConfigEditor.vue:44
msgid "" msgid ""
"To make sure the certification auto-renewal can work normally, we need to " "To make sure the certification auto-renewal can work normally, we need to "
@ -2313,25 +2216,21 @@ msgstr ""
msgid "Token is not valid" msgid "Token is not valid"
msgstr "" msgstr ""
#: src/views/other/Login.vue:82 #: src/views/other/Login.vue:74
msgid "Too many login failed attempts, please try again later" msgid "Too many login failed attempts, please try again later"
msgstr "" msgstr ""
#: src/views/preference/components/TOTP.vue:91 #: src/views/preference/components/TOTP.vue:89
msgid "TOTP"
msgstr ""
#: src/views/preference/components/TOTP.vue:92
msgid "" msgid ""
"TOTP is a two-factor authentication method that uses a time-based one-time " "TOTP is a two-factor authentication method that uses a time-based one-time "
"password algorithm." "password algorithm."
msgstr "" msgstr ""
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:210 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:209
msgid "Trash" msgid "Trash"
msgstr "" msgstr ""
#: src/components/2FA/use2FAModal.ts:71 #: src/components/OTP/useOTPModal.ts:67
msgid "Two-factor authentication required" msgid "Two-factor authentication required"
msgstr "" msgstr ""
@ -2341,14 +2240,9 @@ msgstr ""
msgid "Type" msgid "Type"
msgstr "Loại" msgstr "Loại"
#: src/views/preference/components/Passkey.vue:41
#, fuzzy
msgid "Update successfully"
msgstr "Cập nhật thành công"
#: src/views/certificate/ACMEUser.vue:53 #: src/views/certificate/ACMEUser.vue:53
#: src/views/certificate/DNSCredential.vue:27 #: src/views/certificate/DNSCredential.vue:27
#: src/views/config/configColumns.ts:31 src/views/config/ConfigEditor.vue:275 #: src/views/config/configColumns.ts:31 src/views/config/ConfigEditor.vue:267
#: src/views/domain/components/RightSettings.vue:86 #: src/views/domain/components/RightSettings.vue:86
#: src/views/domain/DomainList.vue:41 src/views/environment/envColumns.tsx:124 #: src/views/domain/DomainList.vue:41 src/views/environment/envColumns.tsx:124
#: src/views/stream/components/RightSettings.vue:85 #: src/views/stream/components/RightSettings.vue:85
@ -2392,11 +2286,11 @@ msgstr "Thời gian hoạt động:"
msgid "URL" msgid "URL"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:107 #: src/components/OTP/OTPAuthorization.vue:69
msgid "Use OTP" msgid "Use OTP"
msgstr "" msgstr ""
#: src/components/2FA/Authorization.vue:103 #: src/components/OTP/OTPAuthorization.vue:65
msgid "Use recovery code" msgid "Use recovery code"
msgstr "" msgstr ""
@ -2405,11 +2299,11 @@ msgstr ""
msgid "User" msgid "User"
msgstr "Người dùng" msgstr "Người dùng"
#: src/views/other/Login.vue:85 #: src/views/other/Login.vue:77
msgid "User is banned" msgid "User is banned"
msgstr "" msgstr ""
#: src/views/other/Login.vue:198 src/views/user/userColumns.tsx:9 #: src/views/other/Login.vue:159 src/views/user/userColumns.tsx:9
msgid "Username" msgid "Username"
msgstr "Username" msgstr "Username"
@ -2438,12 +2332,12 @@ msgstr "Xem"
msgid "View all notifications" msgid "View all notifications"
msgstr "Xem tất cả thông báo" msgstr "Xem tất cả thông báo"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:182 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:181
#, fuzzy #, fuzzy
msgid "View Details" msgid "View Details"
msgstr "Chi tiết" msgstr "Chi tiết"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:269 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:268
#, fuzzy #, fuzzy
msgid "View Mode" msgid "View Mode"
msgstr "Cơ bản" msgstr "Cơ bản"
@ -2451,7 +2345,6 @@ msgstr "Cơ bản"
#: src/constants/index.ts:17 src/views/config/InspectConfig.vue:33 #: src/constants/index.ts:17 src/views/config/InspectConfig.vue:33
#: src/views/domain/DomainAdd.vue:112 #: src/views/domain/DomainAdd.vue:112
#: src/views/notification/notificationColumns.tsx:19 #: src/views/notification/notificationColumns.tsx:19
#: src/views/preference/components/AddPasskey.vue:88
msgid "Warning" msgid "Warning"
msgstr "Lưu ý" msgstr "Lưu ý"
@ -2486,7 +2379,7 @@ msgstr "Ghi chứng chỉ vào disk"
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:89 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:89
#: src/views/domain/ngx_conf/LocationEditor.vue:69 #: src/views/domain/ngx_conf/LocationEditor.vue:69
#: src/views/preference/AuthSettings.vue:103 #: src/views/preference/AuthSettings.vue:97
#: src/views/preference/BasicSettings.vue:100 #: src/views/preference/BasicSettings.vue:100
msgid "Yes" msgid "Yes"
msgstr "Có" msgstr "Có"
@ -2499,20 +2392,6 @@ msgstr "Bạn đang sử dụng phiên bản mới nhất"
msgid "You can check Nginx UI upgrade at this page." msgid "You can check Nginx UI upgrade at this page."
msgstr "Bạn có thể kiểm tra nâng cấp Nginx UI tại trang này" msgstr "Bạn có thể kiểm tra nâng cấp Nginx UI tại trang này"
#: src/views/preference/components/AddPasskey.vue:93
msgid ""
"You have not configured the settings of Webauthn, so you cannot add a "
"passkey."
msgstr ""
#: src/views/preference/components/Passkey.vue:81
msgid "Your passkeys"
msgstr ""
#, fuzzy
#~ msgid "Enable 2FA"
#~ msgstr "Đã bật"
#, fuzzy #, fuzzy
#~ msgid "Rename " #~ msgid "Rename "
#~ msgstr "Username" #~ msgstr "Username"

Binary file not shown.

@ -11,13 +11,13 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n" "Plural-Forms: nplurals=1; plural=0;\n"
"Generated-By: easygettext\n" "Generated-By: easygettext\n"
"X-Generator: Poedit 3.5\n" "X-Generator: Poedit 3.4.4\n"
#: src/views/user/userColumns.tsx:32 #: src/views/user/userColumns.tsx:32
msgid "2FA" msgid "2FA"
msgstr "2FA" msgstr "2FA"
#: src/views/preference/AuthSettings.vue:58 #: src/views/preference/components/TOTP.vue:88
msgid "2FA Settings" msgid "2FA Settings"
msgstr "2FA 设置" msgstr "2FA 设置"
@ -40,13 +40,13 @@ msgstr "ACME 用户"
#: src/views/config/configColumns.ts:38 src/views/domain/DomainList.vue:47 #: src/views/config/configColumns.ts:38 src/views/domain/DomainList.vue:47
#: src/views/environment/envColumns.tsx:131 #: src/views/environment/envColumns.tsx:131
#: src/views/notification/notificationColumns.tsx:54 #: src/views/notification/notificationColumns.tsx:54
#: src/views/preference/AuthSettings.vue:27 src/views/stream/StreamList.vue:47 #: src/views/preference/AuthSettings.vue:26 src/views/stream/StreamList.vue:47
#: src/views/user/userColumns.tsx:60 #: src/views/user/userColumns.tsx:60
msgid "Action" msgid "Action"
msgstr "操作" msgstr "操作"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:182 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:181
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:203 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:202
#: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:117 #: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:117
#: src/views/domain/ngx_conf/NgxServer.vue:162 #: src/views/domain/ngx_conf/NgxServer.vue:162
#: src/views/domain/ngx_conf/NgxUpstream.vue:152 #: src/views/domain/ngx_conf/NgxUpstream.vue:152
@ -55,13 +55,8 @@ msgstr "操作"
msgid "Add" msgid "Add"
msgstr "添加" msgstr "添加"
#: src/views/preference/components/AddPasskey.vue:51 #: src/routes/index.ts:112 src/views/config/ConfigEditor.vue:135
#: src/views/preference/components/AddPasskey.vue:55 #: src/views/config/ConfigEditor.vue:196
msgid "Add a passkey"
msgstr "添加 Passkey"
#: src/routes/index.ts:112 src/views/config/ConfigEditor.vue:143
#: src/views/config/ConfigEditor.vue:204
msgid "Add Configuration" msgid "Add Configuration"
msgstr "添加配置" msgstr "添加配置"
@ -94,10 +89,6 @@ msgstr "额外选项"
msgid "Advance Mode" msgid "Advance Mode"
msgstr "高级模式" msgstr "高级模式"
#: src/views/preference/components/AddPasskey.vue:105
msgid "Afterwards, refresh this page and click add passkey again."
msgstr "然后,刷新此页面并再次点击添加 Passkey。"
#: src/views/preference/OpenAISettings.vue:44 #: src/views/preference/OpenAISettings.vue:44
msgid "API Base Url" msgid "API Base Url"
msgstr "API 地址" msgstr "API 地址"
@ -118,14 +109,10 @@ msgstr "API Token"
msgid "Arch" msgid "Arch"
msgstr "架构" msgstr "架构"
#: src/views/preference/AuthSettings.vue:102 #: src/views/preference/AuthSettings.vue:96
msgid "Are you sure to delete this banned IP immediately?" msgid "Are you sure to delete this banned IP immediately?"
msgstr "您确定要立即删除这个被禁用的 IP 吗?" msgstr "您确定要立即删除这个被禁用的 IP 吗?"
#: src/views/preference/components/Passkey.vue:119
msgid "Are you sure to delete this passkey immediately?"
msgstr "您确定要立即删除这个 Passkey 吗?"
#: src/components/Notification/Notification.vue:86 #: src/components/Notification/Notification.vue:86
#: src/views/notification/Notification.vue:40 #: src/views/notification/Notification.vue:40
msgid "Are you sure you want to clear all notifications?" msgid "Are you sure you want to clear all notifications?"
@ -171,22 +158,14 @@ msgstr "与ChatGPT聊天"
msgid "Assistant" msgid "Assistant"
msgstr "助手" msgstr "助手"
#: src/views/preference/AuthSettings.vue:18 #: src/views/preference/AuthSettings.vue:17
msgid "Attempts" msgid "Attempts"
msgstr "尝试次数" msgstr "尝试次数"
#: src/views/preference/Preference.vue:122 #: src/views/preference/Preference.vue:116
msgid "Auth" msgid "Auth"
msgstr "认证" msgstr "认证"
#: src/components/2FA/Authorization.vue:126
msgid "Authenticate with a passkey"
msgstr "通过 Passkey 认证"
#: src/views/preference/AuthSettings.vue:63
msgid "Authentication Settings"
msgstr "认证设置"
#: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:106 #: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:106
#: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:120 #: src/views/domain/ngx_conf/config_template/ConfigTemplate.vue:120
msgid "Author" msgid "Author"
@ -205,8 +184,8 @@ msgid "Auto-renewal enabled for %{name}"
msgstr "成功启用 %{name} 自动续签" msgstr "成功启用 %{name} 自动续签"
#: src/views/certificate/CertificateEditor.vue:247 #: src/views/certificate/CertificateEditor.vue:247
#: src/views/config/ConfigEditor.vue:213 src/views/config/ConfigList.vue:107 #: src/views/config/ConfigEditor.vue:205 src/views/config/ConfigList.vue:173
#: src/views/config/ConfigList.vue:181 src/views/domain/DomainEdit.vue:253 #: src/views/config/ConfigList.vue:99 src/views/domain/DomainEdit.vue:253
#: src/views/nginx_log/NginxLog.vue:168 src/views/stream/StreamEdit.vue:245 #: src/views/nginx_log/NginxLog.vue:168 src/views/stream/StreamEdit.vue:245
msgid "Back" msgid "Back"
msgstr "返回" msgstr "返回"
@ -215,19 +194,19 @@ msgstr "返回"
msgid "Back Home" msgid "Back Home"
msgstr "返回首页" msgstr "返回首页"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:216 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:215
msgid "Back to list" msgid "Back to list"
msgstr "返回列表" msgstr "返回列表"
#: src/views/preference/AuthSettings.vue:76 #: src/views/preference/AuthSettings.vue:70
msgid "Ban Threshold Minutes" msgid "Ban Threshold Minutes"
msgstr "禁止阈值(分钟)" msgstr "禁止阈值(分钟)"
#: src/views/preference/AuthSettings.vue:90 #: src/views/preference/AuthSettings.vue:84
msgid "Banned IPs" msgid "Banned IPs"
msgstr "禁止 IP 列表" msgstr "禁止 IP 列表"
#: src/views/preference/AuthSettings.vue:21 #: src/views/preference/AuthSettings.vue:20
msgid "Banned Until" msgid "Banned Until"
msgstr "禁用至" msgstr "禁用至"
@ -235,9 +214,9 @@ msgstr "禁用至"
msgid "Base information" msgid "Base information"
msgstr "基本信息" msgstr "基本信息"
#: src/views/config/ConfigEditor.vue:241 #: src/views/config/ConfigEditor.vue:233
#: src/views/domain/components/RightSettings.vue:75 #: src/views/domain/components/RightSettings.vue:75
#: src/views/preference/Preference.vue:116 #: src/views/preference/Preference.vue:110
#: src/views/stream/components/RightSettings.vue:74 #: src/views/stream/components/RightSettings.vue:74
msgid "Basic" msgid "Basic"
msgstr "基本" msgstr "基本"
@ -267,13 +246,9 @@ msgstr "CA Dir"
msgid "CADir" msgid "CADir"
msgstr "CADir" msgstr "CADir"
#: src/views/preference/components/TOTP.vue:151
msgid "Can't scan? Use text key binding"
msgstr "无法扫描?使用文本密钥绑定"
#: src/components/ChatGPT/ChatGPT.vue:252 #: src/components/ChatGPT/ChatGPT.vue:252
#: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:55 #: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:55
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:253 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:252
#: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:153 #: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:153
#: src/views/domain/cert/components/ObtainCert.vue:137 #: src/views/domain/cert/components/ObtainCert.vue:137
#: src/views/domain/components/Deploy.vue:21 #: src/views/domain/components/Deploy.vue:21
@ -281,7 +256,6 @@ msgstr "无法扫描?使用文本密钥绑定"
#: src/views/domain/ngx_conf/NgxConfigEditor.vue:50 #: src/views/domain/ngx_conf/NgxConfigEditor.vue:50
#: src/views/domain/ngx_conf/NgxServer.vue:80 #: src/views/domain/ngx_conf/NgxServer.vue:80
#: src/views/domain/ngx_conf/NgxUpstream.vue:33 #: src/views/domain/ngx_conf/NgxUpstream.vue:33
#: src/views/preference/components/Passkey.vue:147
#: src/views/stream/components/Deploy.vue:21 #: src/views/stream/components/Deploy.vue:21
#: src/views/stream/components/RightSettings.vue:51 #: src/views/stream/components/RightSettings.vue:51
msgid "Cancel" msgid "Cancel"
@ -320,7 +294,7 @@ msgid "Changed Certificate"
msgid_plural "Changed Certificates" msgid_plural "Changed Certificates"
msgstr[0] "变更证书" msgstr[0] "变更证书"
#: src/views/config/ConfigEditor.vue:268 #: src/views/config/ConfigEditor.vue:260
msgid "Changed Path" msgid "Changed Path"
msgstr "变更后的路径" msgstr "变更后的路径"
@ -370,7 +344,7 @@ msgstr "配置文件测试成功"
msgid "Configuration Name" msgid "Configuration Name"
msgstr "配置名称" msgstr "配置名称"
#: src/views/config/ConfigList.vue:99 #: src/views/config/ConfigList.vue:91
msgid "Configurations" msgid "Configurations"
msgstr "配置" msgstr "配置"
@ -420,16 +394,15 @@ msgstr "创建"
msgid "Create Another" msgid "Create Another"
msgstr "再创建一个" msgstr "再创建一个"
#: src/views/config/ConfigList.vue:117 #: src/views/config/ConfigList.vue:109
msgid "Create File" msgid "Create File"
msgstr "创建文件" msgstr "创建文件"
#: src/views/config/components/Mkdir.vue:48 src/views/config/ConfigList.vue:124 #: src/views/config/components/Mkdir.vue:48 src/views/config/ConfigList.vue:116
msgid "Create Folder" msgid "Create Folder"
msgstr "创建文件夹" msgstr "创建文件夹"
#: src/views/notification/notificationColumns.tsx:48 #: src/views/notification/notificationColumns.tsx:48
#: src/views/preference/components/Passkey.vue:101
#: src/views/user/userColumns.tsx:48 #: src/views/user/userColumns.tsx:48
msgid "Created at" msgid "Created at"
msgstr "创建时间" msgstr "创建时间"
@ -450,13 +423,13 @@ msgstr "DNS 凭证"
msgid "Credentials" msgid "Credentials"
msgstr "凭证" msgstr "凭证"
#: src/views/preference/components/TOTP.vue:99
msgid "Current account is enabled TOTP."
msgstr "当前账户已启用 TOTP 验证。"
#: src/views/preference/components/TOTP.vue:96 #: src/views/preference/components/TOTP.vue:96
msgid "Current account is not enabled TOTP." msgid "Current account is enabled 2FA."
msgstr "当前用户未启用 TOTP 验证。" msgstr "当前账户已启用二步验证。"
#: src/views/preference/components/TOTP.vue:93
msgid "Current account is not enabled 2FA."
msgstr "当前用户未启用二步验证。"
#: src/views/system/Upgrade.vue:167 #: src/views/system/Upgrade.vue:167
msgid "Current Version" msgid "Current Version"
@ -473,8 +446,8 @@ msgid ""
"indicator." "indicator."
msgstr "自定义显示在环境指示器中的本地服务器名称。" msgstr "自定义显示在环境指示器中的本地服务器名称。"
#: src/routes/index.ts:39 src/views/config/ConfigEditor.vue:133 #: src/routes/index.ts:39 src/views/config/ConfigEditor.vue:125
#: src/views/config/ConfigEditor.vue:94 src/views/config/ConfigList.vue:65 #: src/views/config/ConfigEditor.vue:86 src/views/config/ConfigList.vue:57
msgid "Dashboard" msgid "Dashboard"
msgstr "仪表盘" msgstr "仪表盘"
@ -510,7 +483,7 @@ msgstr "删除 Stream: %{stream_name}"
msgid "Deleted successfully" msgid "Deleted successfully"
msgstr "删除成功" msgstr "删除成功"
#: src/views/config/ConfigEditor.vue:284 #: src/views/config/ConfigEditor.vue:276
#: src/views/domain/components/Deploy.vue:104 #: src/views/domain/components/Deploy.vue:104
#: src/views/domain/components/RightSettings.vue:93 #: src/views/domain/components/RightSettings.vue:93
#: src/views/stream/components/Deploy.vue:103 #: src/views/stream/components/Deploy.vue:103
@ -521,12 +494,12 @@ msgstr "部署"
#: src/views/domain/components/Deploy.vue:60 #: src/views/domain/components/Deploy.vue:60
#: src/views/stream/components/Deploy.vue:60 #: src/views/stream/components/Deploy.vue:60
msgid "Deploy %{conf_name} to %{node_name} failed" msgid "Deploy %{conf_name} to %{node_name} failed"
msgstr "部署 %{conf_name} 到 %{node_name} 失败" msgstr "部署%{conf_name}到%{node_name}失败"
#: src/views/domain/components/Deploy.vue:37 #: src/views/domain/components/Deploy.vue:37
#: src/views/stream/components/Deploy.vue:37 #: src/views/stream/components/Deploy.vue:37
msgid "Deploy %{conf_name} to %{node_name} successfully" msgid "Deploy %{conf_name} to %{node_name} successfully"
msgstr "部署 %{conf_name} 到 %{node_name} 成功" msgstr "成功地将%{conf_name}部署到%{node_name}"
#: src/views/domain/components/Deploy.vue:35 #: src/views/domain/components/Deploy.vue:35
#: src/views/stream/components/Deploy.vue:35 #: src/views/stream/components/Deploy.vue:35
@ -663,14 +636,6 @@ msgstr "下载最新版本"
msgid "Dry run mode enabled" msgid "Dry run mode enabled"
msgstr "试运行模式已启动" msgstr "试运行模式已启动"
#: src/views/preference/components/AddPasskey.vue:107
msgid ""
"Due to the security policies of some browsers, you cannot use passkeys on "
"non-HTTPS websites, except when running on localhost."
msgstr ""
"由于某些浏览器的安全策略,除非在 localhost 上使用,否则不能在非 HTTPS 网站上"
"使用 Passkey。"
#: src/views/domain/components/SiteDuplicate.vue:122 #: src/views/domain/components/SiteDuplicate.vue:122
#: src/views/domain/DomainList.vue:140 #: src/views/domain/DomainList.vue:140
#: src/views/stream/components/StreamDuplicate.vue:122 #: src/views/stream/components/StreamDuplicate.vue:122
@ -702,7 +667,7 @@ msgstr "成功复制到本地"
msgid "Edit %{n}" msgid "Edit %{n}"
msgstr "编辑 %{n}" msgstr "编辑 %{n}"
#: src/routes/index.ts:122 src/views/config/ConfigEditor.vue:204 #: src/routes/index.ts:122 src/views/config/ConfigEditor.vue:196
msgid "Edit Configuration" msgid "Edit Configuration"
msgstr "编辑配置" msgstr "编辑配置"
@ -739,7 +704,11 @@ msgstr "在%{node_name}中启用%{conf_name}失败"
msgid "Enable %{conf_name} in %{node_name} successfully" msgid "Enable %{conf_name} in %{node_name} successfully"
msgstr "成功启用%{node_name}中的%{conf_name}" msgstr "成功启用%{node_name}中的%{conf_name}"
#: src/views/preference/components/TOTP.vue:55 #: src/views/preference/components/TOTP.vue:122
msgid "Enable 2FA"
msgstr "启用二步验证"
#: src/views/preference/components/TOTP.vue:52
msgid "Enable 2FA successfully" msgid "Enable 2FA successfully"
msgstr "二步验证启用成功" msgstr "二步验证启用成功"
@ -760,10 +729,6 @@ msgstr "启用成功"
msgid "Enable TLS" msgid "Enable TLS"
msgstr "启用 TLS" msgstr "启用 TLS"
#: src/views/preference/components/TOTP.vue:125
msgid "Enable TOTP"
msgstr "启用 TOTP"
#: src/views/domain/components/RightSettings.vue:77 #: src/views/domain/components/RightSettings.vue:77
#: src/views/domain/DomainEdit.vue:175 src/views/domain/DomainList.vue:29 #: src/views/domain/DomainEdit.vue:175 src/views/domain/DomainList.vue:29
#: src/views/environment/envColumns.tsx:104 #: src/views/environment/envColumns.tsx:104
@ -877,25 +842,19 @@ msgstr "过滤"
msgid "Finished" msgid "Finished"
msgstr "完成" msgstr "完成"
#: src/views/preference/components/AddPasskey.vue:77
msgid ""
"Follow the instructions in the dialog to complete the passkey registration "
"process."
msgstr "按照对话框中的指示完成 Passkey 的注册过程。"
#: src/views/preference/BasicSettings.vue:43 #: src/views/preference/BasicSettings.vue:43
msgid "For Chinese user: https://mirror.ghproxy.com/" msgid "For Chinese user: https://mirror.ghproxy.com/"
msgstr "中国用户:https://mirror.ghproxy.com/" msgstr "中国用户:https://mirror.ghproxy.com/"
#: src/views/config/ConfigEditor.vue:216 #: src/views/config/ConfigEditor.vue:208
msgid "Format Code" msgid "Format Code"
msgstr "代码格式化" msgstr "代码格式化"
#: src/views/config/ConfigEditor.vue:183 #: src/views/config/ConfigEditor.vue:175
msgid "Format error %{msg}" msgid "Format error %{msg}"
msgstr "保存错误 %{msg}" msgstr "保存错误 %{msg}"
#: src/views/config/ConfigEditor.vue:181 #: src/views/config/ConfigEditor.vue:173
msgid "Format successfully" msgid "Format successfully"
msgstr "格式化成功" msgstr "格式化成功"
@ -951,7 +910,7 @@ msgstr "HTTP01"
msgid "If left blank, the default CA Dir will be used." msgid "If left blank, the default CA Dir will be used."
msgstr "如果留空,则使用默认 CA Dir。" msgstr "如果留空,则使用默认 CA Dir。"
#: src/views/preference/AuthSettings.vue:68 #: src/views/preference/AuthSettings.vue:62
msgid "" msgid ""
"If the number of login failed attempts from a ip reach the max attempts in " "If the number of login failed attempts from a ip reach the max attempts in "
"ban threshold minutes, the ip will be banned for a period of time." "ban threshold minutes, the ip will be banned for a period of time."
@ -959,16 +918,12 @@ msgstr ""
"如果某个 IP 的登录失败次数达到禁用阈值分钟内的最大尝试次数,该 IP 将被禁止登" "如果某个 IP 的登录失败次数达到禁用阈值分钟内的最大尝试次数,该 IP 将被禁止登"
"录一段时间。" "录一段时间。"
#: src/views/preference/components/TOTP.vue:111 #: src/views/preference/components/TOTP.vue:108
msgid "" msgid ""
"If you lose your mobile phone, you can use the recovery code to reset your " "If you lose your mobile phone, you can use the recovery code to reset your "
"2FA." "2FA."
msgstr "如果丢失了手机,可以使用恢复代码重置二步验证。" msgstr "如果丢失了手机,可以使用恢复代码重置二步验证。"
#: src/views/preference/components/AddPasskey.vue:76
msgid "If your browser supports WebAuthn Passkey, a dialog box will appear."
msgstr "如果您的浏览器支持 WebAuthn Passkey,则会出现一个对话框。"
#: src/views/domain/cert/components/AutoCertStepOne.vue:109 #: src/views/domain/cert/components/AutoCertStepOne.vue:109
msgid "" msgid ""
"If your domain has CNAME records and you cannot obtain certificates, you " "If your domain has CNAME records and you cannot obtain certificates, you "
@ -983,7 +938,7 @@ msgstr "导入"
msgid "Import Certificate" msgid "Import Certificate"
msgstr "导入证书" msgstr "导入证书"
#: src/views/other/Login.vue:79 #: src/views/other/Login.vue:71
msgid "Incorrect username or password" msgid "Incorrect username or password"
msgstr "用户名或密码错误" msgstr "用户名或密码错误"
@ -999,12 +954,12 @@ msgstr "初始化核心升级程序错误"
msgid "Initialing core upgrader" msgid "Initialing core upgrader"
msgstr "初始化核心升级器" msgstr "初始化核心升级器"
#: src/views/preference/components/TOTP.vue:158 #: src/views/preference/components/TOTP.vue:144
msgid "Input the code from the app:" msgid "Input the code from the app:"
msgstr "输入应用程序中的代码:" msgstr "输入应用程序中的代码:"
#: src/components/2FA/Authorization.vue:87 #: src/components/OTP/OTPAuthorization.vue:49
#: src/views/preference/components/TOTP.vue:171 #: src/views/preference/components/TOTP.vue:157
msgid "Input the recovery code:" msgid "Input the recovery code:"
msgstr "输入恢复代码:" msgstr "输入恢复代码:"
@ -1024,12 +979,12 @@ msgstr "间隔"
msgid "Invalid" msgid "Invalid"
msgstr "无效的" msgstr "无效的"
#: src/views/other/Login.vue:89 #: src/views/other/Login.vue:81
msgid "Invalid 2FA or recovery code" msgid "Invalid 2FA or recovery code"
msgstr "无效的二步验证码或恢复密码" msgstr "无效的二步验证码或恢复密码"
#: src/views/config/components/Rename.vue:65 #: src/views/config/components/Rename.vue:65
#: src/views/config/ConfigEditor.vue:250 #: src/views/config/ConfigEditor.vue:242
msgid "Invalid filename" msgid "Invalid filename"
msgstr "文件名无效" msgstr "文件名无效"
@ -1037,11 +992,11 @@ msgstr "文件名无效"
msgid "Invalid folder name" msgid "Invalid folder name"
msgstr "无效文件夹名" msgstr "无效文件夹名"
#: src/components/2FA/use2FAModal.ts:65 #: src/components/OTP/useOTPModal.ts:61
msgid "Invalid passcode or recovery code" msgid "Invalid passcode or recovery code"
msgstr "二次验证码或恢复代码无效" msgstr "二次验证码或恢复代码无效"
#: src/views/preference/AuthSettings.vue:15 #: src/views/preference/AuthSettings.vue:14
msgid "IP" msgid "IP"
msgstr "IP" msgstr "IP"
@ -1074,10 +1029,6 @@ msgstr "密钥类型"
msgid "Last checked at" msgid "Last checked at"
msgstr "最后检查时间" msgstr "最后检查时间"
#: src/views/preference/components/Passkey.vue:102
msgid "Last used at"
msgstr "上次使用"
#: src/views/user/userColumns.tsx:25 #: src/views/user/userColumns.tsx:25
msgid "Leave blank for no change" msgid "Leave blank for no change"
msgstr "留空表示不修改" msgstr "留空表示不修改"
@ -1104,7 +1055,7 @@ msgstr "开源许可"
msgid "Link Start" msgid "Link Start"
msgstr "链接" msgstr "链接"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:193 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:192
msgid "List" msgid "List"
msgstr "列表" msgstr "列表"
@ -1121,7 +1072,7 @@ msgid "Load successfully"
msgstr "加载成功" msgstr "加载成功"
#: src/components/EnvIndicator/EnvIndicator.vue:39 #: src/components/EnvIndicator/EnvIndicator.vue:39
#: src/components/NodeSelector/NodeSelector.vue:71 #: src/components/NodeSelector/NodeSelector.vue:68
msgid "Local" msgid "Local"
msgstr "本地" msgstr "本地"
@ -1137,11 +1088,11 @@ msgstr "Locations"
msgid "Log" msgid "Log"
msgstr "日志" msgstr "日志"
#: src/routes/index.ts:305 src/views/other/Login.vue:247 #: src/routes/index.ts:305 src/views/other/Login.vue:192
msgid "Login" msgid "Login"
msgstr "登录" msgstr "登录"
#: src/views/other/Login.vue:133 src/views/other/Login.vue:66 #: src/views/other/Login.vue:125 src/views/other/Login.vue:60
msgid "Login successful" msgid "Login successful"
msgstr "登录成功" msgstr "登录成功"
@ -1149,7 +1100,7 @@ msgstr "登录成功"
msgid "Logout successful" msgid "Logout successful"
msgstr "登出成功" msgstr "登出成功"
#: src/views/preference/Preference.vue:140 #: src/views/preference/Preference.vue:134
msgid "Logrotate" msgid "Logrotate"
msgstr "Logrotate" msgstr "Logrotate"
@ -1175,8 +1126,8 @@ msgstr ""
"在获取签发证书前,请确保配置文件中已将 .well-known 目录反向代理到 " "在获取签发证书前,请确保配置文件中已将 .well-known 目录反向代理到 "
"HTTPChallengePort。" "HTTPChallengePort。"
#: src/routes/index.ts:102 src/views/config/ConfigEditor.vue:138 #: src/routes/index.ts:102 src/views/config/ConfigEditor.vue:130
#: src/views/config/ConfigEditor.vue:99 src/views/config/ConfigList.vue:70 #: src/views/config/ConfigEditor.vue:91 src/views/config/ConfigList.vue:62
msgid "Manage Configs" msgid "Manage Configs"
msgstr "配置管理" msgstr "配置管理"
@ -1196,7 +1147,7 @@ msgstr "用户管理"
msgid "Managed Certificate" msgid "Managed Certificate"
msgstr "托管证书" msgstr "托管证书"
#: src/views/preference/AuthSettings.vue:82 #: src/views/preference/AuthSettings.vue:76
msgid "Max Attempts" msgid "Max Attempts"
msgstr "最大尝试次数" msgstr "最大尝试次数"
@ -1218,9 +1169,9 @@ msgid "Model"
msgstr "模型" msgstr "模型"
#: src/components/ChatGPT/ChatGPT.vue:248 #: src/components/ChatGPT/ChatGPT.vue:248
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:182 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:181
#: src/components/StdDesign/StdDataDisplay/StdTable.vue:531 #: src/components/StdDesign/StdDataDisplay/StdTable.vue:531
#: src/views/config/ConfigList.vue:159 #: src/views/config/ConfigList.vue:151
msgid "Modify" msgid "Modify"
msgstr "修改" msgstr "修改"
@ -1232,7 +1183,7 @@ msgstr "修改证书"
msgid "Modify Config" msgid "Modify Config"
msgstr "修改配置文件" msgstr "修改配置文件"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:269 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:268
msgid "Modify Mode" msgid "Modify Mode"
msgstr "修改模式" msgstr "修改模式"
@ -1245,13 +1196,12 @@ msgstr "多行指令"
#: src/views/certificate/CertificateList/certColumns.tsx:10 #: src/views/certificate/CertificateList/certColumns.tsx:10
#: src/views/certificate/DNSCredential.vue:11 #: src/views/certificate/DNSCredential.vue:11
#: src/views/config/components/Mkdir.vue:65 src/views/config/configColumns.ts:8 #: src/views/config/components/Mkdir.vue:65 src/views/config/configColumns.ts:8
#: src/views/config/ConfigEditor.vue:256 #: src/views/config/ConfigEditor.vue:248
#: src/views/domain/components/RightSettings.vue:83 #: src/views/domain/components/RightSettings.vue:83
#: src/views/domain/components/SiteDuplicate.vue:129 #: src/views/domain/components/SiteDuplicate.vue:129
#: src/views/domain/DomainList.vue:13 #: src/views/domain/DomainList.vue:13
#: src/views/domain/ngx_conf/NgxUpstream.vue:175 #: src/views/domain/ngx_conf/NgxUpstream.vue:175
#: src/views/environment/envColumns.tsx:9 #: src/views/environment/envColumns.tsx:9
#: src/views/preference/components/AddPasskey.vue:81
#: src/views/stream/components/RightSettings.vue:82 #: src/views/stream/components/RightSettings.vue:82
#: src/views/stream/components/StreamDuplicate.vue:129 #: src/views/stream/components/StreamDuplicate.vue:129
#: src/views/stream/StreamList.vue:13 src/views/stream/StreamList.vue:188 #: src/views/stream/StreamList.vue:13 src/views/stream/StreamList.vue:188
@ -1278,7 +1228,7 @@ msgstr "上传流量"
msgid "New name" msgid "New name"
msgstr "新名称" msgstr "新名称"
#: src/views/config/ConfigEditor.vue:268 #: src/views/config/ConfigEditor.vue:260
msgid "New Path" msgid "New Path"
msgstr "新路径" msgstr "新路径"
@ -1292,7 +1242,7 @@ msgstr "新版本发布"
msgid "Next" msgid "Next"
msgstr "下一步" msgstr "下一步"
#: src/views/preference/Preference.vue:128 #: src/views/preference/Preference.vue:122
msgid "Nginx" msgid "Nginx"
msgstr "Nginx" msgstr "Nginx"
@ -1333,7 +1283,7 @@ msgstr "Nginx 重启成功"
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:90 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:90
#: src/views/domain/ngx_conf/LocationEditor.vue:70 #: src/views/domain/ngx_conf/LocationEditor.vue:70
#: src/views/notification/Notification.vue:38 #: src/views/notification/Notification.vue:38
#: src/views/preference/AuthSettings.vue:104 #: src/views/preference/AuthSettings.vue:98
#: src/views/preference/BasicSettings.vue:101 #: src/views/preference/BasicSettings.vue:101
#: src/views/stream/StreamList.vue:165 #: src/views/stream/StreamList.vue:165
msgid "No" msgid "No"
@ -1386,13 +1336,13 @@ msgid ""
"Firefox." "Firefox."
msgstr "某些用户在使用 Firefox 首次访问时,OCSP Must Staple 可能会导致错误。" msgstr "某些用户在使用 Firefox 首次访问时,OCSP Must Staple 可能会导致错误。"
#: src/components/NodeSelector/NodeSelector.vue:94 #: src/components/NodeSelector/NodeSelector.vue:91
#: src/views/dashboard/Environments.vue:107 #: src/views/dashboard/Environments.vue:107
#: src/views/environment/envColumns.tsx:90 #: src/views/environment/envColumns.tsx:90
msgid "Offline" msgid "Offline"
msgstr "离线" msgstr "离线"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:254 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:253
#: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:154 #: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:154
msgid "Ok" msgid "Ok"
msgstr "确定" msgstr "确定"
@ -1421,21 +1371,17 @@ msgstr "确定"
msgid "Once the verification is complete, the records will be removed." msgid "Once the verification is complete, the records will be removed."
msgstr "一旦验证完成,这些记录将被删除。" msgstr "一旦验证完成,这些记录将被删除。"
#: src/components/NodeSelector/NodeSelector.vue:74 #: src/components/NodeSelector/NodeSelector.vue:71
#: src/components/NodeSelector/NodeSelector.vue:88 #: src/components/NodeSelector/NodeSelector.vue:85
#: src/views/dashboard/Environments.vue:100 #: src/views/dashboard/Environments.vue:100
#: src/views/environment/envColumns.tsx:86 #: src/views/environment/envColumns.tsx:86
msgid "Online" msgid "Online"
msgstr "在线" msgstr "在线"
#: src/views/preference/Preference.vue:134 #: src/views/preference/Preference.vue:128
msgid "OpenAI" msgid "OpenAI"
msgstr "OpenAI" msgstr "OpenAI"
#: src/components/2FA/Authorization.vue:117 src/views/other/Login.vue:256
msgid "Or"
msgstr "或"
#: src/views/config/components/Rename.vue:69 #: src/views/config/components/Rename.vue:69
msgid "Original name" msgid "Original name"
msgstr "原名" msgstr "原名"
@ -1448,13 +1394,13 @@ msgstr "OS"
msgid "OS:" msgid "OS:"
msgstr "OS:" msgstr "OS:"
#: src/views/config/ConfigEditor.vue:293 #: src/views/config/ConfigEditor.vue:285
#: src/views/domain/components/Deploy.vue:88 #: src/views/domain/components/Deploy.vue:88
#: src/views/stream/components/Deploy.vue:87 #: src/views/stream/components/Deploy.vue:87
msgid "Overwrite" msgid "Overwrite"
msgstr "覆盖" msgstr "覆盖"
#: src/views/config/ConfigEditor.vue:297 #: src/views/config/ConfigEditor.vue:289
#: src/views/domain/components/Deploy.vue:92 #: src/views/domain/components/Deploy.vue:92
#: src/views/stream/components/Deploy.vue:91 #: src/views/stream/components/Deploy.vue:91
msgid "Overwrite exist file" msgid "Overwrite exist file"
@ -1464,20 +1410,7 @@ msgstr "覆盖现有文件"
msgid "Params" msgid "Params"
msgstr "参数" msgstr "参数"
#: src/views/preference/components/Passkey.vue:65 #: src/views/other/Login.vue:169 src/views/user/userColumns.tsx:18
msgid "Passkey"
msgstr "Passkey"
#: src/views/preference/components/Passkey.vue:68
msgid ""
"Passkeys are webauthn credentials that validate your identity using touch, "
"facial recognition, a device password, or a PIN. They can be used as a "
"password replacement or as a 2FA method."
msgstr ""
"Passkey 是一种网络认证凭据,可通过指纹、面部识别、设备密码或 PIN 码验证身份。"
"它们可用作密码替代品或二步验证方法。"
#: src/views/other/Login.vue:208 src/views/user/userColumns.tsx:18
msgid "Password" msgid "Password"
msgstr "密码" msgstr "密码"
@ -1485,7 +1418,7 @@ msgstr "密码"
msgid "Password (*)" msgid "Password (*)"
msgstr "密码 (*)" msgstr "密码 (*)"
#: src/views/config/ConfigEditor.vue:262 #: src/views/config/ConfigEditor.vue:254
#: src/views/domain/ngx_conf/LocationEditor.vue:118 #: src/views/domain/ngx_conf/LocationEditor.vue:118
#: src/views/domain/ngx_conf/LocationEditor.vue:90 #: src/views/domain/ngx_conf/LocationEditor.vue:90
msgid "Path" msgid "Path"
@ -1503,15 +1436,9 @@ msgstr "执行核心升级错误"
msgid "Performing core upgrade" msgid "Performing core upgrade"
msgstr "正在进行核心升级" msgstr "正在进行核心升级"
#: src/views/preference/components/AddPasskey.vue:75 #: src/components/OTP/OTPAuthorization.vue:37
msgid "" msgid "Please enter the 2FA code:"
"Please enter a name for the passkey you wish to create and click the OK " msgstr "请输入二步验证码:"
"button below."
msgstr "请为您要创建的 Passkey 输入一个名称,然后单击下面的 \"确定 \"按钮。"
#: src/components/2FA/Authorization.vue:75
msgid "Please enter the OTP code:"
msgstr "请输入 OTP:"
#: src/views/certificate/DNSCredential.vue:53 #: src/views/certificate/DNSCredential.vue:53
msgid "" msgid ""
@ -1519,7 +1446,7 @@ msgid ""
"provider." "provider."
msgstr "请填写 DNS 提供商提供的 API 验证凭据。" msgstr "请填写 DNS 提供商提供的 API 验证凭据。"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:133 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:132
msgid "Please fill in the required fields" msgid "Please fill in the required fields"
msgstr "请填写必填字段" msgstr "请填写必填字段"
@ -1532,7 +1459,7 @@ msgstr ""
"商的 API。" "商的 API。"
#: src/views/config/components/Rename.vue:64 #: src/views/config/components/Rename.vue:64
#: src/views/config/ConfigEditor.vue:249 #: src/views/config/ConfigEditor.vue:241
msgid "Please input a filename" msgid "Please input a filename"
msgstr "请输入文件名" msgstr "请输入文件名"
@ -1551,11 +1478,11 @@ msgstr "请输入名称,这将被用作新配置的文件名!"
msgid "Please input your E-mail!" msgid "Please input your E-mail!"
msgstr "请输入您的邮箱!" msgstr "请输入您的邮箱!"
#: src/views/other/Install.vue:44 src/views/other/Login.vue:47 #: src/views/other/Install.vue:44 src/views/other/Login.vue:43
msgid "Please input your password!" msgid "Please input your password!"
msgstr "请输入您的密码!" msgstr "请输入您的密码!"
#: src/views/other/Install.vue:38 src/views/other/Login.vue:41 #: src/views/other/Install.vue:38 src/views/other/Login.vue:37
msgid "Please input your username!" msgid "Please input your username!"
msgstr "请输入您的用户名!" msgstr "请输入您的用户名!"
@ -1575,7 +1502,7 @@ msgstr "请至少选择一个节点!"
msgid "Pre-release" msgid "Pre-release"
msgstr "预发布" msgstr "预发布"
#: src/routes/index.ts:260 src/views/preference/Preference.vue:111 #: src/routes/index.ts:260 src/views/preference/Preference.vue:105
msgid "Preference" msgid "Preference"
msgstr "偏好设置" msgstr "偏好设置"
@ -1617,16 +1544,16 @@ msgstr "恢复"
msgid "Recovered Successfully" msgid "Recovered Successfully"
msgstr "恢复成功" msgstr "恢复成功"
#: src/components/2FA/Authorization.vue:94 #: src/components/OTP/OTPAuthorization.vue:56
#: src/views/preference/components/TOTP.vue:178 #: src/views/preference/components/TOTP.vue:164
msgid "Recovery" msgid "Recovery"
msgstr "恢复" msgstr "恢复"
#: src/views/preference/components/TOTP.vue:104 #: src/views/preference/components/TOTP.vue:101
msgid "Recovery Code" msgid "Recovery Code"
msgstr "恢复代码" msgstr "恢复代码"
#: src/views/preference/components/TOTP.vue:113 #: src/views/preference/components/TOTP.vue:110
msgid "Recovery Code:" msgid "Recovery Code:"
msgstr "恢复代码:" msgstr "恢复代码:"
@ -1646,10 +1573,6 @@ msgstr "注册"
msgid "Register failed" msgid "Register failed"
msgstr "注册失败" msgstr "注册失败"
#: src/views/preference/components/AddPasskey.vue:26
msgid "Register passkey successfully"
msgstr "Passkey 注册成功"
#: src/views/certificate/ACMEUser.vue:67 #: src/views/certificate/ACMEUser.vue:67
msgid "Register successfully" msgid "Register successfully"
msgstr "注册成功" msgstr "注册成功"
@ -1683,12 +1606,11 @@ msgstr "重载中"
msgid "Reloading nginx" msgid "Reloading nginx"
msgstr "正在重载 Nginx" msgstr "正在重载 Nginx"
#: src/views/preference/AuthSettings.vue:109 #: src/views/preference/AuthSettings.vue:103
msgid "Remove" msgid "Remove"
msgstr "删除" msgstr "删除"
#: src/views/preference/AuthSettings.vue:48 #: src/views/preference/AuthSettings.vue:47
#: src/views/preference/components/Passkey.vue:50
msgid "Remove successfully" msgid "Remove successfully"
msgstr "移除成功" msgstr "移除成功"
@ -1697,7 +1619,7 @@ msgid "Removed successfully"
msgstr "删除成功" msgstr "删除成功"
#: src/views/config/components/Rename.vue:55 #: src/views/config/components/Rename.vue:55
#: src/views/config/ConfigList.vue:167 #: src/views/config/ConfigList.vue:159
#: src/views/domain/ngx_conf/NgxUpstream.vue:123 #: src/views/domain/ngx_conf/NgxUpstream.vue:123
msgid "Rename" msgid "Rename"
msgstr "重命名" msgstr "重命名"
@ -1758,7 +1680,7 @@ msgstr "请求参数错误"
msgid "Reset" msgid "Reset"
msgstr "重置" msgstr "重置"
#: src/views/preference/components/TOTP.vue:133 #: src/views/preference/components/TOTP.vue:130
msgid "Reset 2FA" msgid "Reset 2FA"
msgstr "重置二步验证" msgstr "重置二步验证"
@ -1780,10 +1702,9 @@ msgstr "运行中"
#: src/components/ChatGPT/ChatGPT.vue:251 #: src/components/ChatGPT/ChatGPT.vue:251
#: src/views/certificate/CertificateEditor.vue:254 #: src/views/certificate/CertificateEditor.vue:254
#: src/views/config/ConfigEditor.vue:222 src/views/domain/DomainEdit.vue:260 #: src/views/config/ConfigEditor.vue:214 src/views/domain/DomainEdit.vue:260
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:120 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:120
#: src/views/preference/components/Passkey.vue:136 #: src/views/preference/Preference.vue:145 src/views/stream/StreamEdit.vue:252
#: src/views/preference/Preference.vue:151 src/views/stream/StreamEdit.vue:252
msgid "Save" msgid "Save"
msgstr "保存" msgstr "保存"
@ -1791,26 +1712,26 @@ msgstr "保存"
msgid "Save Directive" msgid "Save Directive"
msgstr "保存指令" msgstr "保存指令"
#: src/views/config/ConfigEditor.vue:171 src/views/domain/DomainAdd.vue:46 #: src/views/config/ConfigEditor.vue:163 src/views/domain/DomainAdd.vue:46
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:41 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:41
msgid "Save error %{msg}" msgid "Save error %{msg}"
msgstr "保存错误 %{msg}" msgstr "保存错误 %{msg}"
#: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:39 #: src/components/StdDesign/StdDataDisplay/StdBatchEdit.vue:39
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:122 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:121
#: src/views/certificate/CertificateEditor.vue:46 #: src/views/certificate/CertificateEditor.vue:46
#: src/views/preference/Preference.vue:79 #: src/views/preference/Preference.vue:74
msgid "Save successfully" msgid "Save successfully"
msgstr "保存成功" msgstr "保存成功"
#: src/views/config/ConfigEditor.vue:167 src/views/domain/DomainAdd.vue:37 #: src/views/config/ConfigEditor.vue:159 src/views/domain/DomainAdd.vue:37
#: src/views/domain/DomainEdit.vue:143 #: src/views/domain/DomainEdit.vue:143
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:39 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:39
#: src/views/stream/StreamEdit.vue:138 #: src/views/stream/StreamEdit.vue:138
msgid "Saved successfully" msgid "Saved successfully"
msgstr "保存成功" msgstr "保存成功"
#: src/views/preference/components/TOTP.vue:94 #: src/views/preference/components/TOTP.vue:91
msgid "Scan the QR code with your mobile phone to add the account to the app." msgid "Scan the QR code with your mobile phone to add the account to the app."
msgstr "用手机扫描二维码,将账户添加到应用程序中。" msgstr "用手机扫描二维码,将账户添加到应用程序中。"
@ -1818,10 +1739,6 @@ msgstr "用手机扫描二维码,将账户添加到应用程序中。"
msgid "SDK" msgid "SDK"
msgstr "SDK" msgstr "SDK"
#: src/views/preference/components/TOTP.vue:150
msgid "Secret has been copied"
msgstr "密钥已复制"
#: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:155 #: src/components/StdDesign/StdDataEntry/components/StdSelector.vue:155
msgid "Selector" msgid "Selector"
msgstr "选择器" msgstr "选择器"
@ -1840,16 +1757,13 @@ msgstr "上传"
#: src/components/StdDesign/StdDataDisplay/StdTable.vue:252 #: src/components/StdDesign/StdDataDisplay/StdTable.vue:252
#: src/views/config/components/Mkdir.vue:37 #: src/views/config/components/Mkdir.vue:37
#: src/views/config/components/Rename.vue:44 #: src/views/config/components/Rename.vue:44
#: src/views/config/ConfigEditor.vue:108 src/views/domain/DomainList.vue:81 #: src/views/config/ConfigEditor.vue:100 src/views/domain/DomainList.vue:81
#: src/views/environment/BatchUpgrader.vue:57 #: src/views/environment/BatchUpgrader.vue:57
#: src/views/environment/Environment.vue:15 src/views/other/Install.vue:68 #: src/views/environment/Environment.vue:15 src/views/other/Install.vue:68
#: src/views/preference/AuthSettings.vue:50 #: src/views/preference/AuthSettings.vue:49
#: src/views/preference/components/Passkey.vue:26 #: src/views/preference/components/TOTP.vue:42
#: src/views/preference/components/Passkey.vue:43 #: src/views/preference/components/TOTP.vue:55
#: src/views/preference/components/Passkey.vue:56 #: src/views/preference/Preference.vue:78 src/views/stream/StreamList.vue:113
#: src/views/preference/components/TOTP.vue:45
#: src/views/preference/components/TOTP.vue:58
#: src/views/preference/Preference.vue:83 src/views/stream/StreamList.vue:113
#: src/views/stream/StreamList.vue:81 src/views/system/Upgrade.vue:42 #: src/views/stream/StreamList.vue:81 src/views/system/Upgrade.vue:42
msgid "Server error" msgid "Server error"
msgstr "服务器错误" msgstr "服务器错误"
@ -1892,10 +1806,6 @@ msgstr "使用 HTTP01 challenge provider"
msgid "Show" msgid "Show"
msgstr "显示" msgstr "显示"
#: src/views/other/Login.vue:265
msgid "Sign in with a passkey"
msgstr "使用 Passkey 登录"
#: src/views/domain/ngx_conf/directive/DirectiveAdd.vue:51 #: src/views/domain/ngx_conf/directive/DirectiveAdd.vue:51
msgid "Single Directive" msgid "Single Directive"
msgstr "单行指令" msgstr "单行指令"
@ -1924,7 +1834,7 @@ msgstr "SSL证书密钥路径"
msgid "SSL Certificate Path" msgid "SSL Certificate Path"
msgstr "SSL证书路径" msgstr "SSL证书路径"
#: src/views/other/Login.vue:223 #: src/views/other/Login.vue:203
msgid "SSO Login" msgid "SSO Login"
msgstr "SSO 登录" msgstr "SSO 登录"
@ -2001,10 +1911,10 @@ msgstr "同步证书成功"
#: src/components/Notification/config.ts:12 #: src/components/Notification/config.ts:12
msgid "" msgid ""
"Sync config %{config_name} to %{env_name} failed, please upgrade the remote " "Sync config %{cert_name} to %{env_name} failed, please upgrade the remote "
"Nginx UI to the latest version" "Nginx UI to the latest version"
msgstr "" msgstr ""
"同步配置 %{config_name} 到 %{env_name} 失败,请将远程 Nginx UI 升级到最新版本" "同步配置 %{cert_name} 到 %{env_name} 失败,请将远程 Nginx UI 升级到最新版本"
#: src/components/Notification/config.ts:16 #: src/components/Notification/config.ts:16
msgid "Sync config %{config_name} to %{env_name} failed, response: %{resp}" msgid "Sync config %{config_name} to %{env_name} failed, response: %{resp}"
@ -2082,7 +1992,7 @@ msgstr "路径存在,但文件不是证书"
msgid "The path exists, but the file is not a private key" msgid "The path exists, but the file is not a private key"
msgstr "路径存在,但文件不是私钥" msgstr "路径存在,但文件不是私钥"
#: src/views/preference/components/TOTP.vue:112 #: src/views/preference/components/TOTP.vue:109
msgid "" msgid ""
"The recovery code is only displayed once, please save it in a safe place." "The recovery code is only displayed once, please save it in a safe place."
msgstr "恢复密码只会显示一次,请妥善保存。" msgstr "恢复密码只会显示一次,请妥善保存。"
@ -2145,8 +2055,7 @@ msgid ""
"This will upgrade or reinstall the Nginx UI on %{nodeNames} to %{version}." "This will upgrade or reinstall the Nginx UI on %{nodeNames} to %{version}."
msgstr "将 %{nodeNames} 上的 Nginx UI 升级或重新安装到 %{version} 版本。" msgstr "将 %{nodeNames} 上的 Nginx UI 升级或重新安装到 %{version} 版本。"
#: src/views/preference/AuthSettings.vue:67 #: src/views/preference/AuthSettings.vue:61
#: src/views/preference/components/AddPasskey.vue:71
#: src/views/preference/LogrotateSettings.vue:11 #: src/views/preference/LogrotateSettings.vue:11
msgid "Tips" msgid "Tips"
msgstr "提示" msgstr "提示"
@ -2155,22 +2064,13 @@ msgstr "提示"
msgid "Title" msgid "Title"
msgstr "标题" msgstr "标题"
#: src/views/preference/components/TOTP.vue:93 #: src/views/preference/components/TOTP.vue:90
msgid "" msgid ""
"To enable it, you need to install the Google or Microsoft Authenticator app " "To enable it, you need to install the Google or Microsoft Authenticator app "
"on your mobile phone." "on your mobile phone."
msgstr "" msgstr ""
"要启用该功能,您需要在手机上安装 Google 或 Microsoft Authenticator 应用程序。" "要启用该功能,您需要在手机上安装 Google 或 Microsoft Authenticator 应用程序。"
#: src/views/preference/components/AddPasskey.vue:95
msgid ""
"To ensure security, Webauthn configuration cannot be added through the UI. "
"Please manually configure the following in the app.ini configuration file "
"and restart Nginx UI."
msgstr ""
"为确保安全,Webauthn 配置不能通过用户界面添加。请在 app.ini 配置文件中手动配"
"置以下内容,并重启 Nginx UI 服务。"
#: src/views/domain/ngx_conf/NgxConfigEditor.vue:44 #: src/views/domain/ngx_conf/NgxConfigEditor.vue:44
msgid "" msgid ""
"To make sure the certification auto-renewal can work normally, we need to " "To make sure the certification auto-renewal can work normally, we need to "
@ -2185,25 +2085,21 @@ msgstr ""
msgid "Token is not valid" msgid "Token is not valid"
msgstr "Token 无效" msgstr "Token 无效"
#: src/views/other/Login.vue:82 #: src/views/other/Login.vue:74
msgid "Too many login failed attempts, please try again later" msgid "Too many login failed attempts, please try again later"
msgstr "登录失败次数过多,请稍后再试" msgstr "登录失败次数过多,请稍后再试"
#: src/views/preference/components/TOTP.vue:91 #: src/views/preference/components/TOTP.vue:89
msgid "TOTP"
msgstr "TOTP"
#: src/views/preference/components/TOTP.vue:92
msgid "" msgid ""
"TOTP is a two-factor authentication method that uses a time-based one-time " "TOTP is a two-factor authentication method that uses a time-based one-time "
"password algorithm." "password algorithm."
msgstr "TOTP 是一种使用基于时间的一次性密码算法的双因素身份验证方法。" msgstr "TOTP 是一种使用基于时间的一次性密码算法的双因素身份验证方法。"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:210 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:209
msgid "Trash" msgid "Trash"
msgstr "回收站" msgstr "回收站"
#: src/components/2FA/use2FAModal.ts:71 #: src/components/OTP/useOTPModal.ts:67
msgid "Two-factor authentication required" msgid "Two-factor authentication required"
msgstr "需要两步验证" msgstr "需要两步验证"
@ -2213,13 +2109,9 @@ msgstr "需要两步验证"
msgid "Type" msgid "Type"
msgstr "类型" msgstr "类型"
#: src/views/preference/components/Passkey.vue:41
msgid "Update successfully"
msgstr "更新成功"
#: src/views/certificate/ACMEUser.vue:53 #: src/views/certificate/ACMEUser.vue:53
#: src/views/certificate/DNSCredential.vue:27 #: src/views/certificate/DNSCredential.vue:27
#: src/views/config/configColumns.ts:31 src/views/config/ConfigEditor.vue:275 #: src/views/config/configColumns.ts:31 src/views/config/ConfigEditor.vue:267
#: src/views/domain/components/RightSettings.vue:86 #: src/views/domain/components/RightSettings.vue:86
#: src/views/domain/DomainList.vue:41 src/views/environment/envColumns.tsx:124 #: src/views/domain/DomainList.vue:41 src/views/environment/envColumns.tsx:124
#: src/views/stream/components/RightSettings.vue:85 #: src/views/stream/components/RightSettings.vue:85
@ -2260,11 +2152,11 @@ msgstr "运行时间:"
msgid "URL" msgid "URL"
msgstr "URL" msgstr "URL"
#: src/components/2FA/Authorization.vue:107 #: src/components/OTP/OTPAuthorization.vue:69
msgid "Use OTP" msgid "Use OTP"
msgstr "使用二步验证码" msgstr "使用二步验证码"
#: src/components/2FA/Authorization.vue:103 #: src/components/OTP/OTPAuthorization.vue:65
msgid "Use recovery code" msgid "Use recovery code"
msgstr "使用恢复代码" msgstr "使用恢复代码"
@ -2272,11 +2164,11 @@ msgstr "使用恢复代码"
msgid "User" msgid "User"
msgstr "用户" msgstr "用户"
#: src/views/other/Login.vue:85 #: src/views/other/Login.vue:77
msgid "User is banned" msgid "User is banned"
msgstr "用户被禁止" msgstr "用户被禁止"
#: src/views/other/Login.vue:198 src/views/user/userColumns.tsx:9 #: src/views/other/Login.vue:159 src/views/user/userColumns.tsx:9
msgid "Username" msgid "Username"
msgstr "用户名" msgstr "用户名"
@ -2303,18 +2195,17 @@ msgstr "查看"
msgid "View all notifications" msgid "View all notifications"
msgstr "查看全部通知" msgstr "查看全部通知"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:182 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:181
msgid "View Details" msgid "View Details"
msgstr "查看详情" msgstr "查看详情"
#: src/components/StdDesign/StdDataDisplay/StdCurd.vue:269 #: src/components/StdDesign/StdDataDisplay/StdCurd.vue:268
msgid "View Mode" msgid "View Mode"
msgstr "预览模式" msgstr "预览模式"
#: src/constants/index.ts:17 src/views/config/InspectConfig.vue:33 #: src/constants/index.ts:17 src/views/config/InspectConfig.vue:33
#: src/views/domain/DomainAdd.vue:112 #: src/views/domain/DomainAdd.vue:112
#: src/views/notification/notificationColumns.tsx:19 #: src/views/notification/notificationColumns.tsx:19
#: src/views/preference/components/AddPasskey.vue:88
msgid "Warning" msgid "Warning"
msgstr "警告" msgstr "警告"
@ -2346,7 +2237,7 @@ msgstr "正在将证书写入磁盘"
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:89 #: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:89
#: src/views/domain/ngx_conf/LocationEditor.vue:69 #: src/views/domain/ngx_conf/LocationEditor.vue:69
#: src/views/preference/AuthSettings.vue:103 #: src/views/preference/AuthSettings.vue:97
#: src/views/preference/BasicSettings.vue:100 #: src/views/preference/BasicSettings.vue:100
msgid "Yes" msgid "Yes"
msgstr "是的" msgstr "是的"
@ -2359,19 +2250,6 @@ msgstr "您使用的是最新版本"
msgid "You can check Nginx UI upgrade at this page." msgid "You can check Nginx UI upgrade at this page."
msgstr "你可以在这个页面检查Nginx UI的升级。" msgstr "你可以在这个页面检查Nginx UI的升级。"
#: src/views/preference/components/AddPasskey.vue:93
msgid ""
"You have not configured the settings of Webauthn, so you cannot add a "
"passkey."
msgstr "您尚未配置 Webauthn 的设置,因此无法添加 Passkey。"
#: src/views/preference/components/Passkey.vue:81
msgid "Your passkeys"
msgstr "你的 Passkeys"
#~ msgid "Enable 2FA"
#~ msgstr "启用二步验证"
#~ msgid "Enter" #~ msgid "Enter"
#~ msgstr "进入" #~ msgstr "进入"

File diff suppressed because it is too large Load Diff

@ -35,7 +35,7 @@ provide('breadList', breadList)
</script> </script>
<template> <template>
<ALayout class="full-screen-wrapper min-h-screen"> <ALayout class="min-h-screen">
<div class="drawer-sidebar"> <div class="drawer-sidebar">
<ADrawer <ADrawer
v-model:open="drawer_visible" v-model:open="drawer_visible"
@ -192,16 +192,4 @@ body {
.ant-layout-footer { .ant-layout-footer {
text-align: center; text-align: center;
} }
@media (orientation: landscape) {
.full-screen-wrapper {
padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
}
@media (orientation: portrait) {
.full-screen-wrapper {
padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
}
</style> </style>

@ -81,8 +81,8 @@ const visible: ComputedRef<sidebar[]> = computed(() => {
<Logo /> <Logo />
<AMenu <AMenu
v-model:open-keys="openKeys" v-model:openKeys="openKeys"
v-model:selected-keys="selectedKey" v-model:selectedKeys="selectedKey"
mode="inline" mode="inline"
> >
<EnvIndicator /> <EnvIndicator />

@ -7,7 +7,7 @@ import { useSettingsStore, useUserStore } from '@/pinia'
import 'nprogress/nprogress.css' import 'nprogress/nprogress.css'
import router from '@/routes' import router from '@/routes'
import use2FAModal from '@/components/TwoFA/use2FAModal' import useOTPModal from '@/components/OTP/useOTPModal'
const user = useUserStore() const user = useUserStore()
const settings = useSettingsStore() const settings = useSettingsStore()
@ -61,7 +61,7 @@ instance.interceptors.response.use(
async error => { async error => {
NProgress.done() NProgress.done()
const otpModal = use2FAModal() const otpModal = useOTPModal()
const cookies = useCookies(['nginx-ui-2fa']) const cookies = useCookies(['nginx-ui-2fa'])
switch (error.response.status) { switch (error.response.status) {
case 401: case 401:

@ -16,7 +16,7 @@ function ws(url: string, reconnect: boolean = true): ReconnectingWebSocket | Web
url, `?token=${btoa(token.value)}`, node_id) url, `?token=${btoa(token.value)}`, node_id)
if (reconnect) if (reconnect)
return new ReconnectingWebSocket(_url, undefined, { maxRetries: 10 }) return new ReconnectingWebSocket(_url)
return new WebSocket(_url) return new WebSocket(_url)
} }

@ -5,29 +5,18 @@ export const useUserStore = defineStore('user', {
token: '', token: '',
unreadCount: 0, unreadCount: 0,
secureSessionId: '', secureSessionId: '',
passkeyRawId: '',
}), }),
getters: { getters: {
isLogin(state): boolean { is_login(state): boolean {
return !!state.token return !!state.token
}, },
passkeyLoginAvailable(state): boolean {
return !!state.passkeyRawId
},
}, },
actions: { actions: {
passkeyLogin(rawId: string, token: string) {
this.passkeyRawId = rawId
this.login(token)
},
login(token: string) { login(token: string) {
this.token = token this.token = token
}, },
logout() { logout() {
this.token = '' this.token = ''
this.passkeyRawId = ''
this.secureSessionId = ''
this.unreadCount = 0
}, },
}, },
persist: true, persist: true,

@ -325,8 +325,9 @@ router.beforeEach((to, _, next) => {
NProgress.start() NProgress.start()
const user = useUserStore() const user = useUserStore()
const { is_login } = user
if (to.meta.noAuth || user.isLogin) if (to.meta.noAuth || is_login)
next() next()
else else
next({ path: '/login', query: { next: to.fullPath } }) next({ path: '/login', query: { next: to.fullPath } })

@ -1 +1 @@
{"version":"2.0.0-beta.35","build_id":160,"total_build":364} {"version":"2.0.0-beta.28","build_id":149,"total_build":353}

@ -133,8 +133,6 @@ const isManaged = computed(() => {
name: data.name, name: data.name,
domains: data.domains, domains: data.domains,
key_type: data.key_type, key_type: data.key_type,
challenge_method: data.challenge_method,
dns_credential_id: data.dns_credential_id,
}" }"
@renewed="init" @renewed="init"
/> />

@ -2,7 +2,6 @@
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
import type { Ref } from 'vue' import type { Ref } from 'vue'
import { InfoCircleOutlined } from '@ant-design/icons-vue' import { InfoCircleOutlined } from '@ant-design/icons-vue'
import _ from 'lodash'
import { formatDateTime } from '@/lib/helper' import { formatDateTime } from '@/lib/helper'
import FooterToolBar from '@/components/FooterToolbar/FooterToolBar.vue' import FooterToolBar from '@/components/FooterToolbar/FooterToolBar.vue'
import type { Config } from '@/api/config' import type { Config } from '@/api/config'
@ -27,7 +26,7 @@ const errors = ref({})
const basePath = computed(() => { const basePath = computed(() => {
if (route.query.basePath) if (route.query.basePath)
return _.trim(route?.query?.basePath?.toString(), '/') return route?.query?.basePath?.toString().replaceAll('/', '')
else if (typeof route.params.name === 'object') else if (typeof route.params.name === 'object')
return (route.params.name as string[]).slice(0, -1).join('/') return (route.params.name as string[]).slice(0, -1).join('/')
else else
@ -65,29 +64,22 @@ async function init() {
historyChatgptRecord.value = r.chatgpt_messages historyChatgptRecord.value = r.chatgpt_messages
modifiedAt.value = r.modified_at modifiedAt.value = r.modified_at
const filteredPath = _.trimEnd(data.value.filepath const path = data.value.filepath
.replaceAll(`${nginxConfigBase.value}/`, ''), data.value.name) .replaceAll(`${nginxConfigBase.value}/`, '')
.replaceAll(data.value.name, '')
.split('/') .split('/')
.filter(v => v) .filter(v => v)
.map(v => {
const path = filteredPath.map((v, k) => { return {
let dir = v name: 'Manage Configs',
translatedName: () => v,
if (k > 0) { path: '/config',
dir = filteredPath.slice(0, k).join('/') query: {
dir += `/${v}` dir: v,
} },
hasChildren: false,
return { }
name: 'Manage Configs', })
translatedName: () => v,
path: '/config',
query: {
dir,
},
hasChildren: false,
}
})
breadcrumbs.value = [{ breadcrumbs.value = [{
name: 'Dashboard', name: 'Dashboard',
@ -233,7 +225,7 @@ function goBack() {
> >
<ACard class="col-right"> <ACard class="col-right">
<ACollapse <ACollapse
v-model:active-key="activeKey" v-model:activeKey="activeKey"
ghost ghost
> >
<ACollapsePanel <ACollapsePanel

@ -37,28 +37,20 @@ const refInspectConfig = ref()
const breadcrumbs = useBreadcrumbs() const breadcrumbs = useBreadcrumbs()
function updateBreadcrumbs() { function updateBreadcrumbs() {
const filteredPath = basePath.value const path = basePath.value
.split('/') .split('/')
.filter(v => v) .filter(v => v)
.map(v => {
const path = filteredPath.map((v, k) => { return {
let dir = v name: 'Manage Configs',
translatedName: () => v,
if (k > 0) { path: '/config',
dir = filteredPath.slice(0, k).join('/') query: {
dir += `/${v}` dir: v,
} },
hasChildren: false,
return { }
name: 'Manage Configs', })
translatedName: () => v,
path: '/config',
query: {
dir,
},
hasChildren: false,
}
})
breadcrumbs.value = [{ breadcrumbs.value = [{
name: 'Dashboard', name: 'Dashboard',

@ -2,7 +2,7 @@
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
import config from '@/api/config' import config from '@/api/config'
import use2FAModal from '@/components/TwoFA/use2FAModal' import useOTPModal from '@/components/OTP/useOTPModal'
const emit = defineEmits(['created']) const emit = defineEmits(['created'])
const visible = ref(false) const visible = ref(false)
@ -25,7 +25,7 @@ defineExpose({
function ok() { function ok() {
refForm.value.validate().then(() => { refForm.value.validate().then(() => {
const otpModal = use2FAModal() const otpModal = useOTPModal()
otpModal.open().then(() => { otpModal.open().then(() => {
config.mkdir(data.value.basePath, data.value.name).then(() => { config.mkdir(data.value.basePath, data.value.name).then(() => {

@ -1,7 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
import config from '@/api/config' import config from '@/api/config'
import use2FAModal from '@/components/TwoFA/use2FAModal' import useOTPModal from '@/components/OTP/useOTPModal'
import NodeSelector from '@/components/NodeSelector/NodeSelector.vue' import NodeSelector from '@/components/NodeSelector/NodeSelector.vue'
const emit = defineEmits(['renamed']) const emit = defineEmits(['renamed'])
@ -33,7 +33,7 @@ function ok() {
refForm.value.validate().then(() => { refForm.value.validate().then(() => {
const { basePath, orig_name, new_name, sync_node_ids } = data.value const { basePath, orig_name, new_name, sync_node_ids } = data.value
const otpModal = use2FAModal() const otpModal = useOTPModal()
otpModal.open().then(() => { otpModal.open().then(() => {
config.rename(basePath, orig_name, new_name, sync_node_ids).then(() => { config.rename(basePath, orig_name, new_name, sync_node_ids).then(() => {

@ -5,7 +5,7 @@ import type { Ref } from 'vue'
import domain from '@/api/domain' import domain from '@/api/domain'
import NodeSelector from '@/components/NodeSelector/NodeSelector.vue' import NodeSelector from '@/components/NodeSelector/NodeSelector.vue'
const node_map = ref({}) const node_map = reactive({})
const target = ref([]) const target = ref([])
const overwrite = ref(false) const overwrite = ref(false)
const enabled = ref(false) const enabled = ref(false)
@ -21,7 +21,7 @@ function deploy() {
cancelText: $gettext('Cancel'), cancelText: $gettext('Cancel'),
onOk() { onOk() {
target.value.forEach(id => { target.value.forEach(id => {
const node_name = node_map.value[id] const node_name = node_map[id]
// get source content // get source content
domain.get(name.value).then(r => { domain.get(name.value).then(r => {
@ -38,7 +38,7 @@ function deploy() {
{ conf_name: name.value, node_name }), { conf_name: name.value, node_name }),
}) })
if (enabled.value) { if (enabled.value) {
domain.enable(name.value, { headers: { 'X-Node-ID': id } }).then(() => { domain.enable(name.value).then(() => {
notification.success({ notification.success({
message: $gettext('Enable successfully'), message: $gettext('Enable successfully'),
description: description:
@ -76,8 +76,8 @@ function deploy() {
<ContextHolder /> <ContextHolder />
<NodeSelector <NodeSelector
v-model:target="target" v-model:target="target"
v-model:map="node_map"
hidden-local hidden-local
:map="node_map"
/> />
<div class="node-deploy-control"> <div class="node-deploy-control">
<ACheckbox v-model:checked="enabled"> <ACheckbox v-model:checked="enabled">

@ -67,7 +67,7 @@ function on_change_enabled(checked: CheckedType) {
> >
<ContextHolder /> <ContextHolder />
<ACollapse <ACollapse
v-model:active-key="active_key" v-model:activeKey="active_key"
ghost ghost
> >
<ACollapsePanel <ACollapsePanel

@ -138,7 +138,7 @@ watch(() => gettext.current, () => {
> >
<NodeSelector <NodeSelector
v-model:target="modelRef.target" v-model:target="modelRef.target"
v-model:map="node_map" :map="node_map"
/> />
</AFormItem> </AFormItem>
</AForm> </AForm>

@ -183,7 +183,7 @@ const activeKey = ref(['3'])
</AFormItem> </AFormItem>
<ACollapse <ACollapse
v-model:active-key="activeKey" v-model:activeKey="activeKey"
ghost ghost
> >
<ACollapsePanel <ACollapsePanel

@ -95,7 +95,7 @@ provide('ngx_directives', ngx_directives)
<template> <template>
<div> <div>
<ContextHolder /> <ContextHolder />
<ATabs v-model:active-key="current_server_index"> <ATabs v-model:activeKey="current_server_index">
<ATabPane <ATabPane
v-for="(v, k) in ngx_config.servers" v-for="(v, k) in ngx_config.servers"
:key="k" :key="k"

@ -107,7 +107,7 @@ watch(ngx_directives, () => {
<ContextHolder /> <ContextHolder />
<ATabs <ATabs
v-if="ngx_config.upstreams && ngx_config.upstreams.length > 0" v-if="ngx_config.upstreams && ngx_config.upstreams.length > 0"
v-model:active-key="current_upstream_index" v-model:activeKey="current_upstream_index"
> >
<ATabPane <ATabPane
v-for="(v, k) in ngx_config.upstreams" v-for="(v, k) in ngx_config.upstreams"

@ -239,18 +239,16 @@ async function performUpgrade() {
</AModal> </AModal>
</template> </template>
<style lang="less"> <style scoped lang="less">
.dark { .dark {
.core-upgrade-log-container { :deep(.core-upgrade-log-container) {
background-color: rgba(0, 0, 0, 0.84) !important; background-color: rgba(0, 0, 0, 0.84);
} }
} }
</style>
<style scoped lang="less">
:deep(.core-upgrade-log-container) { :deep(.core-upgrade-log-container) {
height: 320px; height: 320px;
overflow-y: auto; overflow: scroll;
background-color: #f3f3f3; background-color: #f3f3f3;
border-radius: 4px; border-radius: 4px;
margin-top: 15px; margin-top: 15px;

@ -42,19 +42,13 @@ function batchUpgrade() {
<BatchUpgrader ref="refUpgrader" /> <BatchUpgrader ref="refUpgrader" />
<FooterToolBar> <FooterToolBar v-if="selectedNodes?.length > 0">
<ATooltip <AButton
:title="$gettext('Please select at least one node to upgrade')" type="primary"
placement="topLeft" @click="batchUpgrade"
> >
<AButton {{ $gettext('Upgrade') }}
:disabled="selectedNodeIds.length === 0" </AButton>
type="primary"
@click="batchUpgrade"
>
{{ $gettext('Upgrade') }}
</AButton>
</ATooltip>
</FooterToolBar> </FooterToolBar>
</div> </div>
</template> </template>

@ -1,16 +1,13 @@
<script setup lang="ts"> <script setup lang="ts">
import { KeyOutlined, LockOutlined, UserOutlined } from '@ant-design/icons-vue' import { LockOutlined, UserOutlined } from '@ant-design/icons-vue'
import { Form, message } from 'ant-design-vue' import { Form, message } from 'ant-design-vue'
import { useCookies } from '@vueuse/integrations/useCookies'
import { startAuthentication } from '@simplewebauthn/browser'
import { useUserStore } from '@/pinia' import { useUserStore } from '@/pinia'
import auth from '@/api/auth' import auth from '@/api/auth'
import install from '@/api/install' import install from '@/api/install'
import SetLanguage from '@/components/SetLanguage/SetLanguage.vue' import SetLanguage from '@/components/SetLanguage/SetLanguage.vue'
import SwitchAppearance from '@/components/SwitchAppearance/SwitchAppearance.vue' import SwitchAppearance from '@/components/SwitchAppearance/SwitchAppearance.vue'
import Authorization from '@/components/TwoFA/Authorization.vue' import gettext, { $gettext } from '@/gettext'
import gettext from '@/gettext' import OTPAuthorization from '@/components/OTP/OTPAuthorization.vue'
import passkey from '@/api/passkey'
const thisYear = new Date().getFullYear() const thisYear = new Date().getFullYear()
@ -27,7 +24,6 @@ const enabled2FA = ref(false)
const refOTP = ref() const refOTP = ref()
const passcode = ref('') const passcode = ref('')
const recoveryCode = ref('') const recoveryCode = ref('')
const passkeyConfigStatus = ref(false)
const modelRef = reactive({ const modelRef = reactive({
username: '', username: '',
@ -50,9 +46,7 @@ const rulesRef = reactive({
}) })
const { validate, validateInfos, clearValidate } = Form.useForm(modelRef, rulesRef) const { validate, validateInfos, clearValidate } = Form.useForm(modelRef, rulesRef)
const userStore = useUserStore() const { login } = useUserStore()
const { login, passkeyLogin } = userStore
const { secureSessionId } = storeToRefs(userStore)
const onSubmit = () => { const onSubmit = () => {
validate().then(async () => { validate().then(async () => {
@ -60,13 +54,11 @@ const onSubmit = () => {
await auth.login(modelRef.username, modelRef.password, passcode.value, recoveryCode.value).then(async r => { await auth.login(modelRef.username, modelRef.password, passcode.value, recoveryCode.value).then(async r => {
const next = (route.query?.next || '').toString() || '/' const next = (route.query?.next || '').toString() || '/'
const cookies = useCookies(['nginx-ui-2fa'])
switch (r.code) { switch (r.code) {
case 200: case 200:
message.success($gettext('Login successful'), 1) message.success($gettext('Login successful'), 1)
login(r.token) login(r.token)
secureSessionId.value = r.secure_session_id
cookies.set('secure_session_id', r.secure_session_id, { maxAge: 60 * 3 })
await router.push(next) await router.push(next)
break break
case 199: case 199:
@ -99,7 +91,7 @@ const onSubmit = () => {
const user = useUserStore() const user = useUserStore()
if (user.isLogin) { if (user.is_login) {
const next = (route.query?.next || '').toString() || '/dashboard' const next = (route.query?.next || '').toString() || '/dashboard'
router.push(next) router.push(next)
@ -149,37 +141,6 @@ function handleOTPSubmit(code: string, recovery: string) {
onSubmit() onSubmit()
}) })
} }
passkey.get_config_status().then(r => {
passkeyConfigStatus.value = r.status
})
const passkeyLoginLoading = ref(false)
async function handlePasskeyLogin() {
passkeyLoginLoading.value = true
try {
const begin = await auth.begin_passkey_login()
const asseResp = await startAuthentication(begin.options.publicKey)
const r = await auth.finish_passkey_login({
session_id: begin.session_id,
options: asseResp,
})
if (r.token) {
const next = (route.query?.next || '').toString() || '/'
passkeyLogin(asseResp.rawId, r.token)
await router.push(next)
}
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
catch (e: any) {
message.error($gettext(e.message ?? 'Server error'))
}
passkeyLoginLoading.value = false
}
</script> </script>
<template> <template>
@ -212,26 +173,11 @@ async function handlePasskeyLogin() {
</template> </template>
</AInputPassword> </AInputPassword>
</AFormItem> </AFormItem>
<AButton
v-if="has_casdoor"
block
html-type="submit"
:loading="loading"
class="mb-5"
@click="loginWithCasdoor"
>
{{ $gettext('SSO Login') }}
</AButton>
</template> </template>
<div v-else> <div v-else>
<Authorization <OTPAuthorization
ref="refOTP" ref="refOTP"
:two-f-a-status="{ @on-submit="handleOTPSubmit"
enabled: true,
otp_status: true,
passkey_status: false,
}"
@submit-o-t-p="handleOTPSubmit"
/> />
</div> </div>
@ -241,32 +187,21 @@ async function handlePasskeyLogin() {
block block
html-type="submit" html-type="submit"
:loading="loading" :loading="loading"
class="mb-2"
@click="onSubmit" @click="onSubmit"
> >
{{ $gettext('Login') }} {{ $gettext('Login') }}
</AButton> </AButton>
<div
v-if="passkeyConfigStatus"
class="flex flex-col justify-center"
>
<ADivider>
<div class="text-sm font-normal opacity-75">
{{ $gettext('Or') }}
</div>
</ADivider>
<AButton
:loading="passkeyLoginLoading"
@click="handlePasskeyLogin"
>
<KeyOutlined />
{{ $gettext('Sign in with a passkey') }}
</AButton>
</div>
</AFormItem> </AFormItem>
</AForm> </AForm>
<AButton
v-if="has_casdoor"
block
html-type="submit"
:loading="loading"
@click="loginWithCasdoor"
>
{{ $gettext('SSO Login') }}
</AButton>
<div class="footer"> <div class="footer">
<p>Copyright © 2021 - {{ thisYear }} Nginx UI</p> <p>Copyright © 2021 - {{ thisYear }} Nginx UI</p>
Language Language

@ -2,7 +2,6 @@
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
import type { Ref } from 'vue' import type { Ref } from 'vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import PasskeyRegistration from './components/Passkey.vue'
import type { BannedIP } from '@/api/settings' import type { BannedIP } from '@/api/settings'
import setting from '@/api/settings' import setting from '@/api/settings'
import type { customRender } from '@/components/StdDesign/StdDataDisplay/StdTableTransformer' import type { customRender } from '@/components/StdDesign/StdDataDisplay/StdTableTransformer'
@ -55,13 +54,8 @@ function removeBannedIP(ip: string) {
<template> <template>
<div class="flex justify-center"> <div class="flex justify-center">
<div> <div>
<h2>{{ $gettext('2FA Settings') }}</h2>
<PasskeyRegistration class="mb-4" />
<TOTP class="mb-4" /> <TOTP class="mb-4" />
<h2>
{{ $gettext('Authentication Settings') }}
</h2>
<AAlert <AAlert
class="mb-4" class="mb-4"
:message="$gettext('Tips')" :message="$gettext('Tips')"

@ -11,7 +11,6 @@ import type { Settings } from '@/views/preference/typedef'
import LogrotateSettings from '@/views/preference/LogrotateSettings.vue' import LogrotateSettings from '@/views/preference/LogrotateSettings.vue'
import { useSettingsStore } from '@/pinia' import { useSettingsStore } from '@/pinia'
import AuthSettings from '@/views/preference/AuthSettings.vue' import AuthSettings from '@/views/preference/AuthSettings.vue'
import use2FAModal from '@/components/TwoFA/use2FAModal'
const data = ref<Settings>({ const data = ref<Settings>({
server: { server: {
@ -67,21 +66,16 @@ const refAuthSettings = ref()
async function save() { async function save() {
// fix type // fix type
data.value.server.http_challenge_port = data.value.server.http_challenge_port.toString() data.value.server.http_challenge_port = data.value.server.http_challenge_port.toString()
settings.save(data.value).then(r => {
const otpModal = use2FAModal() if (!settingsStore.is_remote)
server_name.value = r?.server?.name ?? ''
otpModal.open().then(() => { data.value = r
settings.save(data.value).then(r => { refAuthSettings.value?.getBannedIPs?.()
if (!settingsStore.is_remote) message.success($gettext('Save successfully'))
server_name.value = r?.server?.name ?? '' errors.value = {}
data.value = r }).catch(e => {
refAuthSettings.value?.getBannedIPs?.() errors.value = e.errors
message.success($gettext('Save successfully')) message.error(e?.message ?? $gettext('Server error'))
errors.value = {}
}).catch(e => {
errors.value = e.errors
message.error(e?.message ?? $gettext('Server error'))
})
}) })
} }
@ -110,7 +104,7 @@ onMounted(() => {
<template> <template>
<ACard :title="$gettext('Preference')"> <ACard :title="$gettext('Preference')">
<div class="preference-container"> <div class="preference-container">
<ATabs v-model:active-key="activeKey"> <ATabs v-model:activeKey="activeKey">
<ATabPane <ATabPane
key="basic" key="basic"
:tab="$gettext('Basic')" :tab="$gettext('Basic')"

@ -1,118 +0,0 @@
<script setup lang="ts">
import { startRegistration } from '@simplewebauthn/browser'
import { message } from 'ant-design-vue'
import passkey from '@/api/passkey'
import { useUserStore } from '@/pinia'
const emit = defineEmits(['created'])
const user = useUserStore()
const passkeyName = ref('')
const addPasskeyModelOpen = ref(false)
const passkeyEnabled = ref(false)
const regLoading = ref(false)
async function registerPasskey() {
regLoading.value = true
try {
const options = await passkey.begin_registration()
const attestationResponse = await startRegistration(options.publicKey)
await passkey.finish_registration(attestationResponse, passkeyName.value)
emit('created')
message.success($gettext('Register passkey successfully'))
addPasskeyModelOpen.value = false
user.passkeyRawId = attestationResponse.rawId
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
catch (e: any) {
message.error($gettext(e.message ?? 'Server error'))
}
regLoading.value = false
}
function addPasskey() {
addPasskeyModelOpen.value = true
passkeyName.value = ''
}
passkey.get_config_status().then(r => {
passkeyEnabled.value = r.status
})
</script>
<template>
<div>
<AButton @click="addPasskey">
{{ $gettext('Add a passkey') }}
</AButton>
<AModal
v-model:open="addPasskeyModelOpen"
:title="$gettext('Add a passkey')"
centered
:mask="false"
:mask-closable="!passkeyEnabled"
:closable="!passkeyEnabled"
:footer="passkeyEnabled ? undefined : false"
:confirm-loading="regLoading"
@ok="registerPasskey"
>
<AForm
v-if="passkeyEnabled"
layout="vertical"
>
<div>
<AAlert
class="mb-4"
:message="$gettext('Tips')"
type="info"
>
<template #description>
<p>{{ $gettext('Please enter a name for the passkey you wish to create and click the OK button below.') }}</p>
<p>{{ $gettext('If your browser supports WebAuthn Passkey, a dialog box will appear.') }}</p>
<p>{{ $gettext('Follow the instructions in the dialog to complete the passkey registration process.') }}</p>
</template>
</AAlert>
</div>
<AFormItem :label="$gettext('Name')">
<AInput v-model:value="passkeyName" />
</AFormItem>
</AForm>
<div v-else>
<AAlert
class="mb-4"
:message="$gettext('Warning')"
type="warning"
show-icon
>
<template #description>
<p>{{ $gettext('You have not configured the settings of Webauthn, so you cannot add a passkey.') }}</p>
<p>
{{ $gettext('To ensure security, Webauthn configuration cannot be added through the UI. '
+ 'Please manually configure the following in the app.ini configuration file and restart Nginx UI.') }}
</p>
<pre>[webauthn]
# This is the display name
RPDisplayName = Nginx UI
# The domain name of Nginx UI
RPID = localhost
# The list of origin addresses
RPOrigins = http://localhost:3002</pre>
<p>{{ $gettext('Afterwards, refresh this page and click add passkey again.') }}</p>
<p>
{{ $gettext(`Due to the security policies of some browsers, you cannot use passkeys on non-HTTPS websites, except when running on localhost.`) }}
</p>
</template>
</AAlert>
</div>
</AModal>
</div>
</template>
<style scoped lang="less">
</style>

@ -1,159 +0,0 @@
<script setup lang="ts">
import { message } from 'ant-design-vue'
import { DeleteOutlined, EditOutlined, KeyOutlined } from '@ant-design/icons-vue'
import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
import { formatDateTime } from '@/lib/helper'
import type { Passkey } from '@/api/passkey'
import passkey from '@/api/passkey'
import ReactiveFromNow from '@/components/ReactiveFromNow/ReactiveFromNow.vue'
import { useUserStore } from '@/pinia'
import AddPasskey from '@/views/preference/components/AddPasskey.vue'
dayjs.extend(relativeTime)
const user = useUserStore()
const getListLoading = ref(true)
const data = ref([]) as Ref<Passkey[]>
const passkeyName = ref('')
function getList() {
getListLoading.value = true
passkey.get_list().then(r => {
data.value = r
}).catch((e: { message?: string }) => {
message.error(e?.message ?? $gettext('Server error'))
}).finally(() => {
getListLoading.value = false
})
}
onMounted(() => {
getList()
})
const modifyIdx = ref(-1)
function update(id: number, record: Passkey) {
passkey.update(id, record).then(() => {
getList()
modifyIdx.value = -1
message.success($gettext('Update successfully'))
}).catch((e: { message?: string }) => {
message.error(e?.message ?? $gettext('Server error'))
})
}
function remove(item: Passkey) {
passkey.remove(item.id).then(() => {
getList()
message.success($gettext('Remove successfully'))
// if current passkey is removed, clear it from user store
if (user.passkeyLoginAvailable && user.passkeyRawId === item.raw_id)
user.passkeyRawId = ''
}).catch((e: { message?: string }) => {
message.error(e?.message ?? $gettext('Server error'))
})
}
</script>
<template>
<div>
<div>
<h3>
{{ $gettext('Passkey') }}
</h3>
<p>
{{ $gettext('Passkeys are webauthn credentials that validate your identity using touch, '
+ 'facial recognition, a device password, or a PIN. '
+ 'They can be used as a password replacement or as a 2FA method.') }}
</p>
</div>
<AList
class="mt-4"
bordered
:data-source="data"
>
<template #header>
<div class="flex items-center justify-between">
<div class="font-bold">
{{ $gettext('Your passkeys') }}
</div>
<AddPasskey @created="() => getList()" />
</div>
</template>
<template #renderItem="{ item, index }">
<AListItem>
<AListItemMeta>
<template #title>
<div class="flex gap-2">
<KeyOutlined />
<div v-if="index !== modifyIdx">
{{ item.name }}
</div>
<div v-else>
<AInput v-model:value="passkeyName" />
</div>
</div>
</template>
<template #description>
{{ $gettext('Created at') }}: {{ formatDateTime(item.created_at) }} · {{
$gettext('Last used at') }}: <ReactiveFromNow :time="item.last_used_at" />
</template>
</AListItemMeta>
<template #extra>
<div v-if="modifyIdx !== index">
<AButton
type="link"
size="small"
@click="() => {
modifyIdx = index
passkeyName = item.name
}"
>
<EditOutlined />
</AButton>
<APopconfirm
:title="$gettext('Are you sure to delete this passkey immediately?')"
@confirm="() => remove(item)"
>
<AButton
type="link"
danger
size="small"
>
<DeleteOutlined />
</AButton>
</APopconfirm>
</div>
<div v-else>
<AButton
size="small"
@click="() => update(item.id, { ...item, name: passkeyName })"
>
{{ $gettext('Save') }}
</AButton>
<AButton
type="link"
size="small"
@click="() => {
modifyIdx = -1
passkeyName = item.name
}"
>
{{ $gettext('Cancel') }}
</AButton>
</div>
</template>
</AListItem>
</template>
</AList>
</div>
</template>
<style scoped lang="less">
</style>

@ -1,12 +1,9 @@
<script setup lang="ts"> <script setup lang="ts">
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
import { CheckCircleOutlined } from '@ant-design/icons-vue' import { CheckCircleOutlined } from '@ant-design/icons-vue'
import { UseClipboard } from '@vueuse/components'
import otp from '@/api/otp' import otp from '@/api/otp'
import OTPInput from '@/components/OTPInput/OTPInput.vue' import OTPInput from '@/components/OTPInput/OTPInput.vue'
import twoFA from '@/api/2fa'
const status = ref(false) const status = ref(false)
const enrolling = ref(false) const enrolling = ref(false)
const resetting = ref(false) const resetting = ref(false)
@ -60,8 +57,8 @@ function enroll(code: string) {
} }
function get2FAStatus() { function get2FAStatus() {
twoFA.status().then(r => { otp.status().then(r => {
status.value = r.otp_status status.value = r.status
}) })
} }
@ -88,15 +85,15 @@ function reset2FA() {
<template> <template>
<div> <div>
<h3>{{ $gettext('TOTP') }}</h3> <h3>{{ $gettext('2FA Settings') }}</h3>
<p>{{ $gettext('TOTP is a two-factor authentication method that uses a time-based one-time password algorithm.') }}</p> <p>{{ $gettext('TOTP is a two-factor authentication method that uses a time-based one-time password algorithm.') }}</p>
<p>{{ $gettext('To enable it, you need to install the Google or Microsoft Authenticator app on your mobile phone.') }}</p> <p>{{ $gettext('To enable it, you need to install the Google or Microsoft Authenticator app on your mobile phone.') }}</p>
<p>{{ $gettext('Scan the QR code with your mobile phone to add the account to the app.') }}</p> <p>{{ $gettext('Scan the QR code with your mobile phone to add the account to the app.') }}</p>
<p v-if="!status"> <p v-if="!status">
{{ $gettext('Current account is not enabled TOTP.') }} {{ $gettext('Current account is not enabled 2FA.') }}
</p> </p>
<div v-else> <div v-else>
<p><CheckCircleOutlined class="mr-2 text-green-600" />{{ $gettext('Current account is enabled TOTP.') }}</p> <p><CheckCircleOutlined class="mr-2 text-green-600" />{{ $gettext('Current account is enabled 2FA.') }}</p>
</div> </div>
<AAlert <AAlert
@ -122,7 +119,7 @@ function reset2FA() {
ghost ghost
@click="clickEnable2FA" @click="clickEnable2FA"
> >
{{ $gettext('Enable TOTP') }} {{ $gettext('Enable 2FA') }}
</AButton> </AButton>
<AButton <AButton
v-if="status && !resetting" v-if="status && !resetting"
@ -134,24 +131,13 @@ function reset2FA() {
</AButton> </AButton>
<template v-if="enrolling"> <template v-if="enrolling">
<div class="mt-4 mb-2"> <div class="w-64 h-64 mt-4 mb-2">
<img <img
v-if="qrCode" v-if="qrCode"
class="w-64 h-64" class="w-full"
:src="qrCode" :src="qrCode"
alt="qr code" alt="qr code"
> >
<div class="w-64 flex justify-center">
<UseClipboard v-slot="{ copy, copied }">
<a
class="mr-2"
@click="() => copy(secret)"
>
{{ copied ? $gettext('Secret has been copied')
: $gettext('Can\'t scan? Use text key binding') }}
</a>
</UseClipboard>
</div>
</div> </div>
<div> <div>

@ -4,8 +4,8 @@ import { Terminal } from '@xterm/xterm'
import { FitAddon } from '@xterm/addon-fit' import { FitAddon } from '@xterm/addon-fit'
import _ from 'lodash' import _ from 'lodash'
import ws from '@/lib/websocket' import ws from '@/lib/websocket'
import use2FAModal from '@/components/TwoFA/use2FAModal' import useOTPModal from '@/components/OTP/useOTPModal'
import twoFA from '@/api/2fa' import otp from '@/api/otp'
let term: Terminal | null let term: Terminal | null
let ping: NodeJS.Timeout let ping: NodeJS.Timeout
@ -15,9 +15,9 @@ const websocket = shallowRef()
const lostConnection = ref(false) const lostConnection = ref(false)
onMounted(() => { onMounted(() => {
twoFA.secure_session_status() otp.secure_session_status()
const otpModal = use2FAModal() const otpModal = useOTPModal()
otpModal.open().then(secureSessionId => { otpModal.open().then(secureSessionId => {
websocket.value = ws(`/api/pty?X-Secure-Session-ID=${secureSessionId}`, false) websocket.value = ws(`/api/pty?X-Secure-Session-ID=${secureSessionId}`, false)

@ -66,7 +66,7 @@ function on_change_enabled(checked: CheckedType) {
> >
<ContextHolder /> <ContextHolder />
<ACollapse <ACollapse
v-model:active-key="active_key" v-model:activeKey="active_key"
ghost ghost
> >
<ACollapsePanel <ACollapsePanel

@ -138,7 +138,7 @@ watch(() => gettext.current, () => {
> >
<NodeSelector <NodeSelector
v-model:target="modelRef.target" v-model:target="modelRef.target"
v-model:map="node_map" :map="node_map"
/> />
</AFormItem> </AFormItem>
</AForm> </AForm>

@ -1,9 +1,9 @@
<script setup lang="ts"> <script setup lang="ts">
import GithubButton from '@0xjacky/vue-github-button' import GithubButton from 'vue-github-button'
import logo from '@/assets/img/logo.png' import logo from '@/assets/img/logo.png'
import ver from '@/version.json' import version from '@/version.json'
const thisYear = new Date().getFullYear() const this_year = new Date().getFullYear()
</script> </script>
<template> <template>
@ -19,7 +19,7 @@ const thisYear = new Date().getFullYear()
</div> </div>
<h2>Nginx UI</h2> <h2>Nginx UI</h2>
<p>Yet another WebUI for Nginx</p> <p>Yet another WebUI for Nginx</p>
<p>Version: {{ ver.version }} ({{ ver.build_id || $gettext('Development Mode') }})</p> <p>Version: {{ version.version }} ({{ version.build_id || $gettext('Development Mode') }})</p>
<div class="star-on-github"> <div class="star-on-github">
<GithubButton <GithubButton
href="https://github.com/0xJacky/nginx-ui" href="https://github.com/0xJacky/nginx-ui"
@ -47,7 +47,7 @@ const thisYear = new Date().getFullYear()
{{ $gettext('License') }} {{ $gettext('License') }}
</h3> </h3>
<p>GNU General Public License v3.0</p> <p>GNU General Public License v3.0</p>
<p>Copyright © 2021 - {{ thisYear }} Nginx UI Team</p> <p>Copyright © 2021 - {{ this_year }} Nginx UI Team</p>
</ACard> </ACard>
</template> </template>

@ -1,6 +1,5 @@
/// <reference types="vite/client" /> /// <reference types="vite/client" />
/// <reference types="vite-svg-loader" /> /// <reference types="vite-svg-loader" />
import { ComponentCustomProperties } from '@vue/runtime-core'
declare module '*.vue' { declare module '*.vue' {
import type { DefineComponent } from 'vue' import type { DefineComponent } from 'vue'
@ -9,7 +8,7 @@ declare module '*.vue' {
} }
export { } export { }
declare module '@vue/runtime-core' { declare module 'vue' {
interface ComponentCustomProperties { interface ComponentCustomProperties {
$gettext: (msgid: string, parameters?: { $gettext: (msgid: string, parameters?: {
[key: string]: string; [key: string]: string;
@ -25,3 +24,4 @@ declare module '@vue/runtime-core' {
}, disableHtmlEscaping?: boolean) => string; }, disableHtmlEscaping?: boolean) => string;
} }
} }

@ -0,0 +1 @@
{"version":"2.0.0-beta.28","build_id":149,"total_build":353}

@ -41,8 +41,7 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
{text: 'Logrotate', link: '/guide/config-logrotate'}, {text: 'Logrotate', link: '/guide/config-logrotate'},
{text: 'Cluster', link: '/guide/config-cluster'}, {text: 'Cluster', link: '/guide/config-cluster'},
{text: 'Auth', link: '/guide/config-auth'}, {text: 'Auth', link: '/guide/config-auth'},
{text: 'Crypto', link: '/guide/config-crypto'}, {text: 'Crypto', link: '/guide/config-crypto'}
{text: 'Webauthn', link: '/guide/config-webauthn'}
] ]
}, },
{ {

@ -46,8 +46,7 @@ export const zhCNConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
{text: 'Logrotate', link: '/zh_CN/guide/config-logrotate'}, {text: 'Logrotate', link: '/zh_CN/guide/config-logrotate'},
{text: '集群', link: '/zh_CN/guide/config-cluster'}, {text: '集群', link: '/zh_CN/guide/config-cluster'},
{text: '认证', link: '/zh_CN/guide/config-auth'}, {text: '认证', link: '/zh_CN/guide/config-auth'},
{text: '加密', link: '/zh_CN/guide/config-crypto'}, {text: '加密', link: '/zh_CN/guide/config-crypto'}
{text: 'Webauthn', link: '/zh_CN/guide/config-webauthn'},
] ]
}, },
{ {

@ -45,8 +45,7 @@ export const zhTWConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
{text: 'Logrotate', link: '/zh_TW/guide/config-logrotate'}, {text: 'Logrotate', link: '/zh_TW/guide/config-logrotate'},
{text: '集群', link: '/zh_TW/guide/config-cluster'}, {text: '集群', link: '/zh_TW/guide/config-cluster'},
{text: '認證', link: '/zh_TW/guide/config-auth'}, {text: '認證', link: '/zh_TW/guide/config-auth'},
{text: '加密', link: '/zh_TW/guide/config-crypto'}, {text: '加密', link: '/zh_TW/guide/config-crypto'}
{text: 'Webauthn', link: '/zh_TW/guide/config-webauthn'},
] ]
}, },
{ {

@ -6,7 +6,7 @@ Regular users should follow the [quick start](./getting-started) guide.
## Prerequisites ## Prerequisites
- Make. - Make.
- Golang version 1.23 or higher. - Golang version 1.22 or higher.
- node.js version 21 or higher. - node.js version 21 or higher.
You should execute the following command to update browser list database before build project. You should execute the following command to update browser list database before build project.

@ -145,10 +145,3 @@ Nginx UI will not create a system initial acme user, this means you can't apply
- Type: `string` - Type: `string`
Use this option to customize the name of local server to be displayed in the environment indicator. Use this option to customize the name of local server to be displayed in the environment indicator.
## InsecureSkipVerify
- Version:`>= v2.0.0-beta.30`
- Type: `bool`
This option is used to skip the verification of the certificate of servers when Nginx UI sends requests to them.

@ -1,41 +0,0 @@
# Webauthn
Webauthn is a web standard for secure authentication. It allows users to log in to websites using biometrics, mobile devices, and FIDO security keys.
Webauthn is a passwordless authentication method that provides a secure and easy-to-use alternative to passwords.
Since `v2.0.0-beta.34`, Nginx UI has supported Webauthn passkey as a login and 2FA method.
## Passkey
Passkeys are webauthn credentials that validate your identity using touch, facial recognition, a device password, or a PIN. They can be used as a password replacement or as a 2FA method.
## Configurations
To ensure security, Webauthn configuration cannot be added through the UI.
Please manually configure the following in the app.ini configuration file and restart Nginx UI.
### RPDisplayName
- Type: `string`
This option is used to set the display name of the relying party (RP) when registering a new credential.
### RPID
- Type: `string`
This option is used to set the ID of the relying party (RP) when registering a new credential.
### RPOrigins
- Type: `[]string`
This option is used to set the origins of the relying party (RP) when registering a new credential.
Afterward, refresh this page and click add passkey again.
Due to the security policies of some browsers, you cannot use passkeys on non-HTTPS websites, except when running on `localhost`.
## Detail
1. **Automatic 2FA with Passkey:**
When you log in using a passkey, all subsequent actions requiring 2FA will automatically use the passkey. This means you won’t need to manually click “Authenticate with a passkey” in the 2FA dialog box.
2. **Passkey Deletion:**
If you log in using a passkey and then navigate to Settings > Authentication and delete the current passkey, the passkey will no longer be used for subsequent 2FA challenges during the current session. If Time-based One-Time Password (TOTP) is configured, it will be used instead; if not, 2FA will not be triggered.
3. **Adding a New Passkey:**
If you log in without using a passkey and then add a new passkey via Settings > Authentication, the newly added passkey will be prioritized for all subsequent 2FA actions during the current session.

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

Loading…
Cancel
Save