diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d9d69d76..a0024cf1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: with: distribution: goreleaser version: latest - args: release --clean --skip-validate + args: release --clean --skip=validate env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build and Publish Package diff --git a/client/packages/openblocks/src/i18n/locales/en.ts b/client/packages/openblocks/src/i18n/locales/en.ts index e4b503af..e079996e 100644 --- a/client/packages/openblocks/src/i18n/locales/en.ts +++ b/client/packages/openblocks/src/i18n/locales/en.ts @@ -1894,6 +1894,7 @@ export const en = { preview: "Preview", editError: "History preview mode, no operation is supported.", clone: "Clone", + pocketbasePanel: "Pocketbase Admin Panel", }, userAuth: { registerByEmail: "Sign up", diff --git a/client/packages/openblocks/src/i18n/locales/pt.ts b/client/packages/openblocks/src/i18n/locales/pt.ts index ea703f0a..10a7c0c3 100644 --- a/client/packages/openblocks/src/i18n/locales/pt.ts +++ b/client/packages/openblocks/src/i18n/locales/pt.ts @@ -1945,6 +1945,7 @@ export const pt = { editError: "Modo de visualização de histórico, nenhuma operação é suportada.", clone: "Clonar", + pocketbasePanel: "Painel Administrativo do Pocketbase", }, userAuth: { registerByEmail: "Registre-se", diff --git a/client/packages/openblocks/src/pages/common/header.tsx b/client/packages/openblocks/src/pages/common/header.tsx index d23df03a..1ed4ab9f 100644 --- a/client/packages/openblocks/src/pages/common/header.tsx +++ b/client/packages/openblocks/src/pages/common/header.tsx @@ -466,7 +466,26 @@ export function AppHeader() { ); - const headerEnd = ; + const headerEnd = ( + <> + {user.orgDev && ( +
+ { + window.open("/_", "_blank"); + }} + > + PocketBase Logo + +
+ )} + ; + + ); return ( c.source === UserConnectionSource.email)?.rawUserInfo?.username as string | undefined return ( <> - - { - setModalContent(); - setTitle(trans("profile.change") + " Email"); - setShowBackLink(true); - }, - hidden: !!provider || !allowUpdate.includes("email") || !smtp - }} - /> - { !provider && ( + + { type.includes("email") && ( + { + setModalContent(); + setTitle(trans("profile.change") + " Email"); + setShowBackLink(true); + }, + hidden: !!provider || !allowUpdate.includes("email") || !smtp + }} + /> ) + } + + { !provider && type.includes("username") && ( <> { mask && ( 1 && !mask) { return `${EMAIL}/${LABEL || USERNAME}` } - return LABEL || EMAIL + return LABEL || (type[0] === "email" ? EMAIL : USERNAME) } export default function FormLogin() {