File tree 1 file changed +7
-1
lines changed
client/packages/lowcoder/src/pages/ComponentDoc
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
13
13
} from "comps/uiCompRegistry" ;
14
14
import { ExampleContext } from "./ExampleContext" ;
15
15
import { trans } from "i18n" ;
16
+ import { Helmet } from "react-helmet" ;
16
17
17
18
type CompInfo = UICompManifest & { key : string } ;
18
19
const groups : Partial < Record < UICompCategory , CompInfo [ ] > > = { } ;
@@ -93,13 +94,18 @@ export default function ComponentDoc() {
93
94
{
94
95
type : "component-change" ,
95
96
componentName : params . name ,
96
- } ,
97
+ } ,
97
98
"*"
98
99
) ;
99
100
} , [ params . name ] ) ;
100
101
101
102
return (
102
103
< ExampleContext . Provider value = { { name : params . name } } >
104
+ < Helmet >
105
+ < meta key = "iframely:title" property = "iframely:title" content = { "Lowcoder | " + ( compManifest . enName ? compManifest . enName : params . name ) } /> ,
106
+ < meta key = "iframely:description" property = "iframely:description" content = { compManifest . description ? compManifest . description . toString ( ) : "" } /> ,
107
+ < link rel = "iframely" type = "text/html" href = { window . location . href } media = "(aspect-ratio: 1280/720)" /> ,
108
+ </ Helmet >
103
109
< Wrapper >
104
110
< div className = "main" >
105
111
< div className = "sidebar" >
You can’t perform that action at this time.
0 commit comments