mirror of
https://github.com/documenso/documenso.git
synced 2025-11-23 21:21:37 +10:00
Compare commits
1 Commits
chore/tran
...
fix/use-in
| Author | SHA1 | Date | |
|---|---|---|---|
| c1bbd52d8a |
@ -6,7 +6,7 @@ export const APP_DOCUMENT_UPLOAD_SIZE_LIMIT =
|
|||||||
export const NEXT_PUBLIC_WEBAPP_URL = () =>
|
export const NEXT_PUBLIC_WEBAPP_URL = () =>
|
||||||
env('NEXT_PUBLIC_WEBAPP_URL') ?? 'http://localhost:3000';
|
env('NEXT_PUBLIC_WEBAPP_URL') ?? 'http://localhost:3000';
|
||||||
|
|
||||||
export const NEXT_PRIVATE_INTERNAL_WEBAPP_URL =
|
export const NEXT_PRIVATE_INTERNAL_WEBAPP_URL = () =>
|
||||||
env('NEXT_PRIVATE_INTERNAL_WEBAPP_URL') ?? NEXT_PUBLIC_WEBAPP_URL();
|
env('NEXT_PRIVATE_INTERNAL_WEBAPP_URL') ?? NEXT_PUBLIC_WEBAPP_URL();
|
||||||
|
|
||||||
export const IS_BILLING_ENABLED = () => env('NEXT_PUBLIC_FEATURE_BILLING_ENABLED') === 'true';
|
export const IS_BILLING_ENABLED = () => env('NEXT_PUBLIC_FEATURE_BILLING_ENABLED') === 'true';
|
||||||
@ -16,4 +16,5 @@ export const API_V2_URL = '/api/v2';
|
|||||||
|
|
||||||
export const SUPPORT_EMAIL = env('NEXT_PUBLIC_SUPPORT_EMAIL') ?? 'support@documenso.com';
|
export const SUPPORT_EMAIL = env('NEXT_PUBLIC_SUPPORT_EMAIL') ?? 'support@documenso.com';
|
||||||
|
|
||||||
export const USE_INTERNAL_URL_BROWSERLESS = env('NEXT_PUBLIC_USE_INTERNAL_URL_BROWSERLESS') === 'true';
|
export const USE_INTERNAL_URL_BROWSERLESS = () =>
|
||||||
|
env('NEXT_PUBLIC_USE_INTERNAL_URL_BROWSERLESS') === 'true';
|
||||||
|
|||||||
@ -213,7 +213,7 @@ export class LocalJobProvider extends BaseJobProvider {
|
|||||||
}) {
|
}) {
|
||||||
const { jobId, jobDefinitionId, data, isRetry } = options;
|
const { jobId, jobDefinitionId, data, isRetry } = options;
|
||||||
|
|
||||||
const endpoint = `${NEXT_PRIVATE_INTERNAL_WEBAPP_URL}/api/jobs/${jobDefinitionId}/${jobId}`;
|
const endpoint = `${NEXT_PRIVATE_INTERNAL_WEBAPP_URL()}/api/jobs/${jobDefinitionId}/${jobId}`;
|
||||||
const signature = sign(data);
|
const signature = sign(data);
|
||||||
|
|
||||||
const headers: Record<string, string> = {
|
const headers: Record<string, string> = {
|
||||||
|
|||||||
@ -1,7 +1,11 @@
|
|||||||
import { DateTime } from 'luxon';
|
import { DateTime } from 'luxon';
|
||||||
import type { Browser } from 'playwright';
|
import type { Browser } from 'playwright';
|
||||||
|
|
||||||
import { NEXT_PUBLIC_WEBAPP_URL, NEXT_PRIVATE_INTERNAL_WEBAPP_URL, USE_INTERNAL_URL_BROWSERLESS } from '../../constants/app';
|
import {
|
||||||
|
NEXT_PRIVATE_INTERNAL_WEBAPP_URL,
|
||||||
|
NEXT_PUBLIC_WEBAPP_URL,
|
||||||
|
USE_INTERNAL_URL_BROWSERLESS,
|
||||||
|
} from '../../constants/app';
|
||||||
import { type SupportedLanguageCodes, isValidLanguageCode } from '../../constants/i18n';
|
import { type SupportedLanguageCodes, isValidLanguageCode } from '../../constants/i18n';
|
||||||
import { env } from '../../utils/env';
|
import { env } from '../../utils/env';
|
||||||
import { encryptSecondaryData } from '../crypto/encrypt';
|
import { encryptSecondaryData } from '../crypto/encrypt';
|
||||||
@ -48,14 +52,19 @@ export const getAuditLogsPdf = async ({ documentId, language }: GetAuditLogsPdfO
|
|||||||
{
|
{
|
||||||
name: 'language',
|
name: 'language',
|
||||||
value: lang,
|
value: lang,
|
||||||
url: USE_INTERNAL_URL_BROWSERLESS() ? NEXT_PUBLIC_WEBAPP_URL() : NEXT_PRIVATE_INTERNAL_WEBAPP_URL(),
|
url: USE_INTERNAL_URL_BROWSERLESS()
|
||||||
|
? NEXT_PUBLIC_WEBAPP_URL()
|
||||||
|
: NEXT_PRIVATE_INTERNAL_WEBAPP_URL(),
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
await page.goto(`${USE_INTERNAL_URL_BROWSERLESS() ? NEXT_PUBLIC_WEBAPP_URL() : NEXT_PRIVATE_INTERNAL_WEBAPP_URL()}/__htmltopdf/audit-log?d=${encryptedId}`, {
|
await page.goto(
|
||||||
waitUntil: 'networkidle',
|
`${USE_INTERNAL_URL_BROWSERLESS() ? NEXT_PUBLIC_WEBAPP_URL() : NEXT_PRIVATE_INTERNAL_WEBAPP_URL()}/__htmltopdf/audit-log?d=${encryptedId}`,
|
||||||
timeout: 10_000,
|
{
|
||||||
});
|
waitUntil: 'networkidle',
|
||||||
|
timeout: 10_000,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
// !: This is a workaround to ensure the page is loaded correctly.
|
// !: This is a workaround to ensure the page is loaded correctly.
|
||||||
// !: It's not clear why but suddenly browserless cdp connections would
|
// !: It's not clear why but suddenly browserless cdp connections would
|
||||||
|
|||||||
@ -1,7 +1,11 @@
|
|||||||
import { DateTime } from 'luxon';
|
import { DateTime } from 'luxon';
|
||||||
import type { Browser } from 'playwright';
|
import type { Browser } from 'playwright';
|
||||||
|
|
||||||
import { NEXT_PUBLIC_WEBAPP_URL, NEXT_PRIVATE_INTERNAL_WEBAPP_URL, USE_INTERNAL_URL_BROWSERLESS} from '../../constants/app';
|
import {
|
||||||
|
NEXT_PRIVATE_INTERNAL_WEBAPP_URL,
|
||||||
|
NEXT_PUBLIC_WEBAPP_URL,
|
||||||
|
USE_INTERNAL_URL_BROWSERLESS,
|
||||||
|
} from '../../constants/app';
|
||||||
import { type SupportedLanguageCodes, isValidLanguageCode } from '../../constants/i18n';
|
import { type SupportedLanguageCodes, isValidLanguageCode } from '../../constants/i18n';
|
||||||
import { env } from '../../utils/env';
|
import { env } from '../../utils/env';
|
||||||
import { encryptSecondaryData } from '../crypto/encrypt';
|
import { encryptSecondaryData } from '../crypto/encrypt';
|
||||||
@ -48,14 +52,19 @@ export const getCertificatePdf = async ({ documentId, language }: GetCertificate
|
|||||||
{
|
{
|
||||||
name: 'lang',
|
name: 'lang',
|
||||||
value: lang,
|
value: lang,
|
||||||
url: USE_INTERNAL_URL_BROWSERLESS() ? NEXT_PUBLIC_WEBAPP_URL() : NEXT_PRIVATE_INTERNAL_WEBAPP_URL(),
|
url: USE_INTERNAL_URL_BROWSERLESS()
|
||||||
|
? NEXT_PUBLIC_WEBAPP_URL()
|
||||||
|
: NEXT_PRIVATE_INTERNAL_WEBAPP_URL(),
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
await page.goto(`${USE_INTERNAL_URL_BROWSERLESS() ? NEXT_PUBLIC_WEBAPP_URL() : NEXT_PRIVATE_INTERNAL_WEBAPP_URL()}/__htmltopdf/certificate?d=${encryptedId}`, {
|
await page.goto(
|
||||||
waitUntil: 'networkidle',
|
`${USE_INTERNAL_URL_BROWSERLESS() ? NEXT_PUBLIC_WEBAPP_URL() : NEXT_PRIVATE_INTERNAL_WEBAPP_URL()}/__htmltopdf/certificate?d=${encryptedId}`,
|
||||||
timeout: 10_000,
|
{
|
||||||
});
|
waitUntil: 'networkidle',
|
||||||
|
timeout: 10_000,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
// !: This is a workaround to ensure the page is loaded correctly.
|
// !: This is a workaround to ensure the page is loaded correctly.
|
||||||
// !: It's not clear why but suddenly browserless cdp connections would
|
// !: It's not clear why but suddenly browserless cdp connections would
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export const triggerWebhook = async ({ event, data, userId, teamId }: TriggerWeb
|
|||||||
const signature = sign(body);
|
const signature = sign(body);
|
||||||
|
|
||||||
await Promise.race([
|
await Promise.race([
|
||||||
fetch(`${NEXT_PRIVATE_INTERNAL_WEBAPP_URL}/api/webhook/trigger`, {
|
fetch(`${NEXT_PRIVATE_INTERNAL_WEBAPP_URL()}/api/webhook/trigger`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
|
|||||||
@ -8,7 +8,7 @@ msgstr ""
|
|||||||
"Language: pl\n"
|
"Language: pl\n"
|
||||||
"Project-Id-Version: documenso-app\n"
|
"Project-Id-Version: documenso-app\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"PO-Revision-Date: 2025-11-21 00:14\n"
|
"PO-Revision-Date: 2025-11-20 02:32\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Polish\n"
|
"Language-Team: Polish\n"
|
||||||
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
|
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
|
||||||
@ -7584,7 +7584,7 @@ msgstr "Liczba podpisów"
|
|||||||
#: packages/ui/components/document/envelope-recipient-field-tooltip.tsx
|
#: packages/ui/components/document/envelope-recipient-field-tooltip.tsx
|
||||||
#: packages/ui/components/document/document-read-only-fields.tsx
|
#: packages/ui/components/document/document-read-only-fields.tsx
|
||||||
msgid "Signed"
|
msgid "Signed"
|
||||||
msgstr "Podpisano"
|
msgstr "Podpisał"
|
||||||
|
|
||||||
#: apps/remix/app/components/dialogs/envelope-download-dialog.tsx
|
#: apps/remix/app/components/dialogs/envelope-download-dialog.tsx
|
||||||
msgctxt "Signed document (adjective)"
|
msgctxt "Signed document (adjective)"
|
||||||
|
|||||||
Reference in New Issue
Block a user