Fix submission errors, localization, and legal URL slugs

This commit is contained in:
dyzulk
2025-12-30 18:17:24 +07:00
parent ca3641e338
commit 842407629e
4 changed files with 12 additions and 3 deletions

View File

@@ -241,7 +241,7 @@ export default function SigninClient() {
</Link> </Link>
</p> </p>
<p className="mt-4 text-center text-xs text-gray-500 sm:text-start dark:text-gray-500"> <p className="mt-4 text-center text-xs text-gray-500 sm:text-start dark:text-gray-500">
{t('agree_to_text')} <Link href="/legal?page=terms" className="underline hover:text-gray-700 dark:hover:text-gray-300">{t('terms_link')}</Link> {t('and_text')} <Link href="/legal?page=privacy" className="underline hover:text-gray-700 dark:hover:text-gray-300">{t('privacy_policy_link')}</Link>. {t('agree_to_text')} <Link href="/legal?page=terms-and-conditions" className="underline hover:text-gray-700 dark:hover:text-gray-300">{t('terms_link')}</Link> {t('and_text')} <Link href="/legal?page=privacy-policy" className="underline hover:text-gray-700 dark:hover:text-gray-300">{t('privacy_policy_link')}</Link>.
</p> </p>
</div> </div>
</> </>

View File

@@ -188,7 +188,7 @@ export default function SignupClient() {
className="mr-3 h-5 w-5 rounded-md border-gray-300 dark:border-gray-700 text-brand-500 focus:ring-brand-500" className="mr-3 h-5 w-5 rounded-md border-gray-300 dark:border-gray-700 text-brand-500 focus:ring-brand-500"
/> />
<p className="inline-block font-normal text-gray-500 dark:text-gray-400"> <p className="inline-block font-normal text-gray-500 dark:text-gray-400">
{t('agree_to_signup_text')} <Link href="/legal?page=terms" className="underline hover:text-gray-700 dark:hover:text-gray-300">{t('terms_link')}</Link> {t('and_text')} <Link href="/legal?page=privacy" className="underline hover:text-gray-700 dark:hover:text-gray-300">{t('privacy_policy_link')}</Link>. {t('agree_to_signup_text')} <Link href="/legal?page=terms-and-conditions" className="underline hover:text-gray-700 dark:hover:text-gray-300">{t('terms_link')}</Link> {t('and_text')} <Link href="/legal?page=privacy-policy" className="underline hover:text-gray-700 dark:hover:text-gray-300">{t('privacy_policy_link')}</Link>.
</p> </p>
</div> </div>
</div> </div>

View File

@@ -4,6 +4,7 @@ const axiosInstance = axios.create({
baseURL: process.env.NEXT_PUBLIC_API_URL, baseURL: process.env.NEXT_PUBLIC_API_URL,
headers: { headers: {
'X-Requested-With': 'XMLHttpRequest', 'X-Requested-With': 'XMLHttpRequest',
'Accept': 'application/json',
}, },
withCredentials: true, withCredentials: true,
withXSRFToken: true withXSRFToken: true

View File

@@ -685,7 +685,15 @@
"btn_save_draft": "Save Draft", "btn_save_draft": "Save Draft",
"view_error": "Error loading page or page not found.", "view_error": "Error loading page or page not found.",
"invalid_id": "Invalid Page ID provided.", "invalid_id": "Invalid Page ID provided.",
"loading_editor": "Loading page editor..." "loading_editor": "Loading page editor...",
"btn_write": "Write",
"btn_preview": "Preview",
"markdown_supported": "Markdown is supported",
"current_status": "Current Status",
"version_update_type": "Version Update Type",
"parent_major": "Major Update (v{v}.0)",
"parent_minor": "Minor Update (v{v}.x)",
"next_version": "Next Version"
}, },
"ApiKeys": { "ApiKeys": {
"title": "API Keys", "title": "API Keys",