mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
98ceee6066
@ -776,7 +776,7 @@
|
|||||||
"Quick duplicate": "Quick duplicate",
|
"Quick duplicate": "Quick duplicate",
|
||||||
"Duplicate and continue": "Duplicate and continue",
|
"Duplicate and continue": "Duplicate and continue",
|
||||||
"Please configure the duplicate fields": "Please configure the duplicate fields",
|
"Please configure the duplicate fields": "Please configure the duplicate fields",
|
||||||
"Add": "Create",
|
"Add": "Add",
|
||||||
"Add new mode": "Add new mode",
|
"Add new mode": "Add new mode",
|
||||||
"Quick add": "Quick add",
|
"Quick add": "Quick add",
|
||||||
"Modal add": "Modal add",
|
"Modal add": "Modal add",
|
||||||
|
@ -50,7 +50,7 @@ describe('CollectionSelect', () => {
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
aria-label="block-item-demo title"
|
aria-label="block-item-demo title"
|
||||||
class="nb-block-item nb-form-item css-wrgn5s ant-nb-block-item css-dev-only-do-not-override-11aiz3o"
|
class="nb-block-item nb-form-item css-1elzyjx ant-nb-block-item css-dev-only-do-not-override-11aiz3o"
|
||||||
role="button"
|
role="button"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@ -187,7 +187,7 @@ describe('CollectionSelect', () => {
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
aria-label="block-item-demo title"
|
aria-label="block-item-demo title"
|
||||||
class="nb-block-item nb-form-item css-wrgn5s ant-nb-block-item css-dev-only-do-not-override-11aiz3o"
|
class="nb-block-item nb-form-item css-1elzyjx ant-nb-block-item css-dev-only-do-not-override-11aiz3o"
|
||||||
role="button"
|
role="button"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
@ -109,7 +109,6 @@ export function AdminPublicFormPage() {
|
|||||||
const isUnderSubApp = window.location.pathname.startsWith('/apps');
|
const isUnderSubApp = window.location.pathname.startsWith('/apps');
|
||||||
const link =
|
const link =
|
||||||
baseURL + (isUnderSubApp ? `/apps/${app.name}/public-forms/${params.name}` : `/public-forms/${params.name}`);
|
baseURL + (isUnderSubApp ? `/apps/${app.name}/public-forms/${params.name}` : `/public-forms/${params.name}`);
|
||||||
console.log(link);
|
|
||||||
navigator.clipboard.writeText(link);
|
navigator.clipboard.writeText(link);
|
||||||
message.success(t('Link copied successfully'));
|
message.success(t('Link copied successfully'));
|
||||||
};
|
};
|
||||||
@ -120,7 +119,6 @@ export function AdminPublicFormPage() {
|
|||||||
style={{
|
style={{
|
||||||
margin: '-24px',
|
margin: '-24px',
|
||||||
padding: '10px',
|
padding: '10px',
|
||||||
background: '#fff',
|
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'space-between',
|
justifyContent: 'space-between',
|
||||||
|
@ -22,6 +22,7 @@ import {
|
|||||||
useRequest,
|
useRequest,
|
||||||
ACLCustomContext,
|
ACLCustomContext,
|
||||||
VariablesProvider,
|
VariablesProvider,
|
||||||
|
GlobalThemeProvider,
|
||||||
AssociationField,
|
AssociationField,
|
||||||
Action,
|
Action,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
@ -274,5 +275,18 @@ function InternalPublicForm() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function PublicFormPage() {
|
export function PublicFormPage() {
|
||||||
return <InternalPublicForm />;
|
return (
|
||||||
|
<GlobalThemeProvider
|
||||||
|
theme={{
|
||||||
|
token: {
|
||||||
|
marginBlock: 18,
|
||||||
|
borderRadiusBlock: 0,
|
||||||
|
boxShadowTertiary: 'none',
|
||||||
|
fontSize: 14,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<InternalPublicForm />
|
||||||
|
</GlobalThemeProvider>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ export const defaultTheme: Omit<ThemeItem, 'id'> = {
|
|||||||
optional: true,
|
optional: true,
|
||||||
isBuiltIn: true,
|
isBuiltIn: true,
|
||||||
uid: 'default',
|
uid: 'default',
|
||||||
default: false,
|
default: process.env.__E2E__ ? true : false,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const dark: Omit<ThemeItem, 'id'> = {
|
export const dark: Omit<ThemeItem, 'id'> = {
|
||||||
@ -44,7 +44,7 @@ export const compact: Omit<ThemeItem, 'id'> = {
|
|||||||
optional: true,
|
optional: true,
|
||||||
isBuiltIn: true,
|
isBuiltIn: true,
|
||||||
uid: 'compact',
|
uid: 'compact',
|
||||||
default: true,
|
default: process.env.__E2E__ ? false : true,
|
||||||
};
|
};
|
||||||
|
|
||||||
/** 同时包含 `紧凑` 和 `暗黑` 两种模式 */
|
/** 同时包含 `紧凑` 和 `暗黑` 两种模式 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user