Skip to content

Commit 555bcc4

Browse files
authored
fix: the gallery card could not render the link (#1070)
* fix: the gallery card could not render the link * feat: update usage feature limit * chore: update icons
1 parent 80e1ddb commit 555bcc4

7 files changed

Lines changed: 46 additions & 9 deletions

File tree

packages/icons/src/components/Condition.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Condition = (props: SVGProps<SVGSVGElement>) => (
1111
>
1212
<path
1313
fill="currentColor"
14-
d="m20.589 6.429-.001 10.285h2.555l-3.429 3.429-3.428-3.429h2.554V8.143H16.2a4.3 4.3 0 0 0 0-1.715zm-12.875.857q.001.441.086.857h-.943V8.14l-1.698.001v8.572h2.555l-3.428 3.429-3.429-3.429h2.554V6.43L7.8 6.428a4.4 4.4 0 0 0-.086.858M12 3.857a3.428 3.428 0 1 1 0 6.857 3.428 3.428 0 0 1 0-6.857m0 1.714A1.714 1.714 0 1 0 12 9a1.714 1.714 0 0 0 0-3.429"
14+
d="m20.589 6.429-.001 10.285h2.555l-3.429 3.429-3.428-3.429h2.554V8.143H16.2a4.3 4.3 0 0 0 0-1.715zm-12.875.857q.001.441.086.857h-.943V8.14l-1.698.001v8.572h2.555l-3.428 3.429-3.429-3.429h2.554V6.43L7.8 6.428a4.4 4.4 0 0 0-.086.858M12 3.857a3.429 3.429 0 1 1 0 6.858 3.429 3.429 0 0 1 0-6.858m0 1.714A1.714 1.714 0 1 0 12 9a1.714 1.714 0 0 0 0-3.429"
1515
/>
1616
</svg>
1717
);

packages/icons/src/components/GoogleLogo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ const GoogleLogo = (props: SVGProps<SVGSVGElement>) => (
1616
/>
1717
<path
1818
fill="#34A853"
19-
d="M12.24 24c3.302 0 6.087-1.062 8.115-2.897l-3.945-2.998c-1.097.732-2.514 1.146-4.165 1.146-3.194 0-5.903-2.112-6.874-4.951H1.3v3.09C3.378 21.444 7.61 24 12.24 24"
19+
d="M12.24 24c3.302 0 6.087-1.062 8.116-2.897l-3.946-2.998c-1.097.732-2.514 1.146-4.165 1.146-3.194 0-5.902-2.112-6.874-4.951H1.3v3.09C3.378 21.444 7.61 24 12.24 24"
2020
/>
2121
<path
2222
fill="#FBBC04"
2323
d="M5.367 14.3a7.05 7.05 0 0 1 0-4.595v-3.09H1.3a11.8 11.8 0 0 0 0 10.776z"
2424
/>
2525
<path
2626
fill="#EA4335"
27-
d="M12.24 4.75a6.73 6.73 0 0 1 4.697 1.798l3.495-3.426A11.9 11.9 0 0 0 12.24 0C7.611 0 3.378 2.558 1.3 6.614l4.066 3.091c.967-2.844 3.68-4.956 6.874-4.956"
27+
d="M12.24 4.75a6.73 6.73 0 0 1 4.697 1.798l3.495-3.426A11.9 11.9 0 0 0 12.24 0C7.611 0 3.378 2.558 1.3 6.614l4.066 3.091c.968-2.844 3.68-4.956 6.874-4.956"
2828
/>
2929
</g>
3030
<defs>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import * as React from 'react';
2+
import type { SVGProps } from 'react';
3+
const ShieldCheck = (props: SVGProps<SVGSVGElement>) => (
4+
<svg
5+
xmlns="http://www.w3.org/2000/svg"
6+
width="1em"
7+
height="1em"
8+
fill="none"
9+
viewBox="0 0 24 24"
10+
{...props}
11+
>
12+
<path
13+
stroke="currentColor"
14+
strokeLinecap="round"
15+
strokeLinejoin="round"
16+
strokeWidth={2}
17+
d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10"
18+
/>
19+
<path
20+
stroke="currentColor"
21+
strokeLinecap="round"
22+
strokeLinejoin="round"
23+
strokeWidth={2}
24+
d="m9 12 2 2 4-4"
25+
/>
26+
</svg>
27+
);
28+
export default ShieldCheck;

packages/icons/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export { default as SendMail } from './components/SendMail';
118118
export { default as Settings } from './components/Settings';
119119
export { default as Share2 } from './components/Share2';
120120
export { default as Sheet } from './components/Sheet';
121+
export { default as ShieldCheck } from './components/ShieldCheck';
121122
export { default as Sidebar } from './components/Sidebar';
122123
export { default as SortAsc } from './components/SortAsc';
123124
export { default as Square } from './components/Square';

packages/openapi/src/usage/get-space-usage.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export enum UsageFeatureLimit {
3232
AdvancedPermissionsEnable = 'advancedPermissionsEnable',
3333
PasswordRestrictedSharesEnable = 'passwordRestrictedSharesEnable',
3434
AuthenticationEnable = 'authenticationEnable',
35+
DomainVerificationEnable = 'domainVerificationEnable',
3536
}
3637

3738
export const usageFeatureLimitSchema = z.object({
@@ -50,6 +51,7 @@ export const usageFeatureLimitSchema = z.object({
5051
[UsageFeatureLimit.AdvancedPermissionsEnable]: z.boolean(),
5152
[UsageFeatureLimit.PasswordRestrictedSharesEnable]: z.boolean(),
5253
[UsageFeatureLimit.AuthenticationEnable]: z.boolean(),
54+
[UsageFeatureLimit.DomainVerificationEnable]: z.boolean(),
5355
});
5456

5557
export const usageVoSchema = z.object({

packages/sdk/src/components/cell-value/CellValue.tsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type {
77
IRatingFieldOptions,
88
IDatetimeFormatting,
99
ILinkCellValue,
10+
SingleLineTextDisplayType,
1011
} from '@teable/core';
1112
import { CellValueType, FieldType } from '@teable/core';
1213
import type { IFieldInstance } from '../../model';
@@ -28,7 +29,7 @@ interface ICellValueContainer extends ICellValue<unknown> {
2829
}
2930

3031
export const CellValue = (props: ICellValueContainer) => {
31-
const { field, value, maxWidth, ellipsis, className, itemClassName, formatImageUrl } = props;
32+
const { field, value, ellipsis, className, itemClassName, formatImageUrl } = props;
3233
const { type, options, cellValueType } = field;
3334

3435
switch (type) {
@@ -78,7 +79,6 @@ export const CellValue = (props: ICellValueContainer) => {
7879
options={transformSelectOptions(options.choices)}
7980
className={className}
8081
itemClassName={itemClassName}
81-
maxWidth={maxWidth}
8282
ellipsis={ellipsis}
8383
/>
8484
);
@@ -91,7 +91,6 @@ export const CellValue = (props: ICellValueContainer) => {
9191
value={value as IUserCellValue | IUserCellValue[]}
9292
className={className}
9393
itemClassName={itemClassName}
94-
maxWidth={maxWidth}
9594
formatImageUrl={formatImageUrl}
9695
/>
9796
);
@@ -131,6 +130,7 @@ export const CellValue = (props: ICellValueContainer) => {
131130
value={value as string}
132131
formatting={options.formatting as IDatetimeFormatting}
133132
className={className}
133+
ellipsis={ellipsis}
134134
/>
135135
);
136136
}
@@ -141,19 +141,26 @@ export const CellValue = (props: ICellValueContainer) => {
141141
value={value as number}
142142
formatting={options.formatting as INumberFormatting}
143143
className={className}
144+
ellipsis={ellipsis}
144145
/>
145146
);
146147
}
147148

148-
return <CellText value={value as string} className={className} />;
149+
return (
150+
<CellText
151+
value={value as string}
152+
className={className}
153+
ellipsis={ellipsis}
154+
displayType={options.showAs?.type as SingleLineTextDisplayType}
155+
/>
156+
);
149157
}
150158
case FieldType.Link: {
151159
return (
152160
<CellLink
153161
value={value as ILinkCellValue | ILinkCellValue[]}
154162
className={className}
155163
itemClassName={itemClassName}
156-
maxWidth={maxWidth}
157164
/>
158165
);
159166
}

packages/sdk/src/components/cell-value/type.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ export interface ICellValue<T> {
22
value?: T;
33
className?: string;
44
style?: React.CSSProperties;
5-
maxWidth?: number;
65
ellipsis?: boolean;
76
}

0 commit comments

Comments
 (0)