diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +node_modules diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5dedb9e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,43 @@ +FROM node:lts-alpine AS base + +# Set the working directory +WORKDIR /usr/src/app +# Install pnpm +RUN apk add --no-cache curl && \ + curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm + +################################################################################ +# Create a stage for installing dependencies +FROM base as dependencies +# Copy the package.json and package-lock.json (or pnpm-lock.yaml if available) +COPY package*.json pnpm-lock.yaml* ./ +# Install dependencies +RUN pnpm install --frozen-lockfile + +################################################################################ +# Create a stage for running the application in development mode +FROM dependencies as development +# Copy the source code +COPY . . +# Expose the port +EXPOSE 3000 +# Run the application +CMD ["pnpm", "run", "dev"] + +################################################################################ +# Create a stage for building the application +FROM dependencies as build +# Copy the source code +COPY . . +# Build the application +RUN pnpm run build +# Remove extraneous packages +RUN pnpm prune --prod + +################################################################################ +# Create a stage for running the application in production mode +FROM base AS production +# Copy the built application +COPY --from=build /usr/src/app/.output /usr/src/app/.output +# Run the application +CMD ["node", ".output/server/index.mjs"] diff --git a/README.md b/README.md index 57bf823..2dad627 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,8 @@ yarn pnpm dev -# Nuxt-Whois -# Nuxt-Whois -# Nuxt-Whois + +``` + +# 免责声明 + 本项目开源仅供学习使用,不得用于任何违法用途,否则后果自负,与本人无关。使用请保留项目地址谢谢。 diff --git a/components/common/LinkChange.vue b/components/common/LinkChange.vue new file mode 100644 index 0000000..715fd78 --- /dev/null +++ b/components/common/LinkChange.vue @@ -0,0 +1,53 @@ + + + + + + + Theme + + + + + + + + + + {{ t(`settings.${item.name}`) }} + + + + + + + + diff --git a/components/tab/list.vue b/components/tab/list.vue index 3c411f4..d5ab6be 100644 --- a/components/tab/list.vue +++ b/components/tab/list.vue @@ -1,5 +1,6 @@ + + {{ t('settings.title') }} + + + {{ t('settings.history') }} + + + + + + + + {{ t('settings.linkOpenType') }} + + + {{ t('settings.linkOpenTypeDesc') }} + + + + + + + + + + + {{ t('settings.miscellaneous') }} + + + {{ t('settings.reset') }} + + {{ t('settings.resetDesc') }} + + + {{ t('common.actions.reset') }} + + + + + + + + + Modal + + + + + + + {{ t('settings.resetConfirm') }} + + + + {{ t('common.actions.confirm') }} + + + + + +