修改国内镜像源
This commit is contained in:
@@ -2,6 +2,7 @@ FROM --platform=$BUILDPLATFORM golang:1.24.3-alpine AS builder
|
|||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
|
ENV GOPROXY=https://goproxy.cn,direct
|
||||||
|
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
RUN --mount=type=cache,target=/go/pkg/mod \
|
RUN --mount=type=cache,target=/go/pkg/mod \
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ FROM --platform=$BUILDPLATFORM golang:1.24.3-alpine AS builder
|
|||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
|
ENV GOPROXY=https://goproxy.cn,direct
|
||||||
|
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
RUN --mount=type=cache,target=/go/pkg/mod \
|
RUN --mount=type=cache,target=/go/pkg/mod \
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
const (
|
const (
|
||||||
SettingKeySystemPrompt = "system_prompt"
|
SettingKeySystemPrompt = "system_prompt"
|
||||||
SettingBlockWords = "block_words"
|
SettingBlockWords = "block_words"
|
||||||
SettingCopyrightInfo = "本网站由 PandaWiki 提供技术支持"
|
SettingCopyrightInfo = "本网站由 YouduWiki 提供技术支持"
|
||||||
)
|
)
|
||||||
|
|
||||||
// table: settings
|
// table: settings
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
FROM node:22-alpine AS builder
|
FROM node:22-alpine AS builder
|
||||||
|
|
||||||
|
ENV PNPM_REGISTRY=https://registry.npmmirror.com
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
# 安装 pnpm
|
# 安装 pnpm
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
# ============================================
|
# ============================================
|
||||||
# PandaWiki Wiki 用户端 - 多阶段构建
|
# YouduWiki Wiki 用户端 - 多阶段构建
|
||||||
# 构建上下文: ./web 目录
|
# 构建上下文: ./web 目录
|
||||||
# ============================================
|
# ============================================
|
||||||
|
|
||||||
FROM node:22-alpine AS builder
|
FROM node:22-alpine AS builder
|
||||||
|
|
||||||
|
ENV PNPM_REGISTRY=https://registry.npmmirror.com
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
# 安装 pnpm
|
# 安装 pnpm
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ const CardQaCopyright = ({
|
|||||||
<TextField
|
<TextField
|
||||||
fullWidth
|
fullWidth
|
||||||
{...field}
|
{...field}
|
||||||
placeholder='本网站由 PandaWiki 提供技术支持'
|
placeholder='本网站由 YouduWiki 提供技术支持'
|
||||||
error={!!errors.copyright_info}
|
error={!!errors.copyright_info}
|
||||||
helperText={errors.copyright_info?.message}
|
helperText={errors.copyright_info?.message}
|
||||||
onChange={event => {
|
onChange={event => {
|
||||||
|
|||||||
@@ -644,7 +644,7 @@ const CardRobotWebComponent = ({ kb }: CardRobotWebComponentProps) => {
|
|||||||
<TextField
|
<TextField
|
||||||
fullWidth
|
fullWidth
|
||||||
{...field}
|
{...field}
|
||||||
placeholder='本网站由 PandaWiki 提供技术支持'
|
placeholder='本网站由 YouduWiki 提供技术支持'
|
||||||
error={!!errors.copyright_info}
|
error={!!errors.copyright_info}
|
||||||
helperText={errors.copyright_info?.message}
|
helperText={errors.copyright_info?.message}
|
||||||
onChange={event => {
|
onChange={event => {
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ const QaModal: React.FC<QaModalProps> = () => {
|
|||||||
{!kbDetail?.settings?.conversation_setting
|
{!kbDetail?.settings?.conversation_setting
|
||||||
?.copyright_hide_enabled &&
|
?.copyright_hide_enabled &&
|
||||||
(kbDetail?.settings?.conversation_setting?.copyright_info ||
|
(kbDetail?.settings?.conversation_setting?.copyright_info ||
|
||||||
'本网站由 PandaWiki 提供技术支持')}
|
'本网站由 YouduWiki 提供技术支持')}
|
||||||
</Box>
|
</Box>
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ const Widget = () => {
|
|||||||
>
|
>
|
||||||
<Box>
|
<Box>
|
||||||
{widget?.settings?.widget_bot_settings?.copyright_info ||
|
{widget?.settings?.widget_bot_settings?.copyright_info ||
|
||||||
'本网站由 PandaWiki 提供技术支持'}
|
'本网站由 YouduWiki 提供技术支持'}
|
||||||
</Box>
|
</Box>
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user