diff --git a/.github/workflows/frontend-netlify-deploy-main.yml b/.github/workflows/frontend-netlify-deploy-main.yml index 2f27ba0bd..6458c1bf6 100644 --- a/.github/workflows/frontend-netlify-deploy-main.yml +++ b/.github/workflows/frontend-netlify-deploy-main.yml @@ -39,9 +39,6 @@ jobs: - name: Patch motd.md to include privacy policy. run: cp netlify/motd.md public/public/motd.md - - name: Patch version.json to include git hash - run: jq ".version = \"0.0.0+${GITHUB_SHA:0:8}\"" src/version.json > src/_version.json && mv src/_version.json src/version.json - - name: Patch base URL run: echo "HD_BASE_URL=\"https://hedgedoc.dev/\"" >> .env.production diff --git a/.github/workflows/frontend-netlify-deploy-pr.yml b/.github/workflows/frontend-netlify-deploy-pr.yml index 7880b4288..60667effe 100644 --- a/.github/workflows/frontend-netlify-deploy-pr.yml +++ b/.github/workflows/frontend-netlify-deploy-pr.yml @@ -62,9 +62,6 @@ jobs: - name: Patch motd.md to include privacy policy. run: cp netlify/motd.md public/public/motd.md - - name: Patch version.json to include git hash - run: jq ".version = \"0.0.0+${GITHUB_SHA:0:8}\"" src/version.json > src/_version.json && mv src/_version.json src/version.json - - name: Patch base URL run: echo "HD_BASE_URL=\"${{ env.DEPLOY_URL }}\"" >> .env.production diff --git a/frontend/docker/Dockerfile b/frontend/docker/Dockerfile index d02fd6f86..00ed26b69 100644 --- a/frontend/docker/Dockerfile +++ b/frontend/docker/Dockerfile @@ -13,7 +13,6 @@ FROM base AS builder RUN apk add --no-cache libc6-compat ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1 -ARG BUILD_VERSION=CLIENT_VERSION_MISSING ENV YARN_CACHE_FOLDER=/tmp/.yarn USER node @@ -29,7 +28,6 @@ ARG TURBO_TOKEN RUN rm -rf frontend/public/public RUN rm -rf frontend/src/pages/api -RUN sed -i "s/CLIENT_VERSION_MISSING/${BUILD_VERSION}/" frontend/src/version.json RUN yarn turbo run build --filter=frontend --no-cache --no-daemon # RUNNER diff --git a/frontend/locales/en.json b/frontend/locales/en.json index ddc657495..a80ac44ba 100644 --- a/frontend/locales/en.json +++ b/frontend/locales/en.json @@ -157,8 +157,6 @@ "issueTracker": "Found a bug? Fill an issue!", "sourceCode": "Read the source code", "versionInfo": "Version info", - "serverVersion": "Server version", - "clientVersion": "Client version", "title": "You are using" } }, diff --git a/frontend/src/components/editor-page/app-bar/help-button/links-tab-content.tsx b/frontend/src/components/editor-page/app-bar/help-button/links-tab-content.tsx index 97dd35e2e..b60bc35b2 100644 --- a/frontend/src/components/editor-page/app-bar/help-button/links-tab-content.tsx +++ b/frontend/src/components/editor-page/app-bar/help-button/links-tab-content.tsx @@ -49,7 +49,7 @@ export const LinksTabContent: React.FC = () => {
  • diff --git a/frontend/src/components/error-boundary/error-boundary.tsx b/frontend/src/components/error-boundary/error-boundary.tsx index e02058057..51a10c904 100644 --- a/frontend/src/components/error-boundary/error-boundary.tsx +++ b/frontend/src/components/error-boundary/error-boundary.tsx @@ -5,7 +5,6 @@ */ import links from '../../links.json' import { Logger } from '../../utils/logger' -import frontendVersion from '../../version.json' import { UiIcon } from '../common/icons/ui-icon' import { ExternalLink } from '../common/links/external-link' import type { ErrorInfo, PropsWithChildren, ReactNode } from 'react' @@ -54,11 +53,7 @@ export class ErrorBoundary extends Component> { the app.

    If you can reproduce this error, then we would be glad if you - + or