File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
client/packages/lowcoder/src/pages/ComponentDoc Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
1313} from "comps/uiCompRegistry" ;
1414import { ExampleContext } from "./ExampleContext" ;
1515import { trans } from "i18n" ;
16+ import { Helmet } from "react-helmet" ;
1617
1718type CompInfo = UICompManifest & { key : string } ;
1819const groups : Partial < Record < UICompCategory , CompInfo [ ] > > = { } ;
@@ -93,13 +94,18 @@ export default function ComponentDoc() {
9394 {
9495 type : "component-change" ,
9596 componentName : params . name ,
96- } ,
97+ } ,
9798 "*"
9899 ) ;
99100 } , [ params . name ] ) ;
100101
101102 return (
102103 < 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 >
103109 < Wrapper >
104110 < div className = "main" >
105111 < div className = "sidebar" >
You can’t perform that action at this time.
0 commit comments