1111
1212 #region Parameter
1313
14- [Parameter ]
15- public string InputPosition { get ; set ; } = " top" ;
16- [Parameter ]
17- public string Term { get ; set ; } = " ChapterOne" ;
18- [Parameter ]
19- public string Repo { get ; set ; } = " TomJerry1940/Comment" ;
20- [Parameter ]
21- public string RepoId { get ; set ; } = " R_kgDOMEw5Ng" ;
14+ [Parameter ] public string InputPosition { get ; set ; } = " top" ;
15+ [Parameter ] public string Term { get ; set ; } = " ChapterOne" ;
16+ [Parameter ] public string Repo { get ; set ; } = " TomJerry1940/Comment" ;
17+ [Parameter ] public string RepoId { get ; set ; } = " R_kgDOMEw5Ng" ;
18+
2219 #endregion
2320
2421
3936 Script = new RenderFragment (b =>
4037 {
4138 b .OpenElement (0 , " script" );
42- b .AddMultipleAttributes (1 , new List <KeyValuePair <string , object >>()
43- {
44- new KeyValuePair < string , object > (" src" , " https://giscus.app/client.js" ),
45- new KeyValuePair < string , object > (" data-repo" , Repo ),
46- new KeyValuePair < string , object > (" data-repo-id" , RepoId ),
47- new KeyValuePair < string , object > (" data-category" , Category ),
48- new KeyValuePair < string , object > (" data-category-id" , CategoryId ),
49- new KeyValuePair < string , object > (" data-mapping" , Mapping ),
50- new KeyValuePair < string , object > (" data-term" , Term ),
51- new KeyValuePair < string , object > (" data-strict" , Strict ),
52- new KeyValuePair < string , object > (" data-reactions-enabled" , ReactionsEnabled ? " 1" : " 0" ),
53- new KeyValuePair < string , object > (" data-emit-metadata" , EmitMetadata ),
54- new KeyValuePair < string , object > (" data-input-position" , InputPosition ),
55- new KeyValuePair < string , object > (" data-theme" , Theme ),
56- new KeyValuePair < string , object > (" data-lang" , Language ),
57- new KeyValuePair < string , object > (" data-loading" , Loading ),
58- new KeyValuePair < string , object > (" crossorigin" , " anonymous" ),
59- new KeyValuePair < string , object > (" async" , true ),
60- });
39+ b .AddMultipleAttributes (1 , new List <KeyValuePair <string , object >>
40+ {
41+ new (" src" , " https://giscus.app/client.js" ),
42+ new (" data-repo" , Repo ),
43+ new (" data-repo-id" , RepoId ),
44+ new (" data-category" , Category ),
45+ new (" data-category-id" , CategoryId ),
46+ new (" data-mapping" , Mapping ),
47+ new (" data-term" , Term ),
48+ new (" data-strict" , Strict ),
49+ new (" data-reactions-enabled" , ReactionsEnabled ? " 1" : " 0" ),
50+ new (" data-emit-metadata" , EmitMetadata ),
51+ new (" data-input-position" , InputPosition ),
52+ new (" data-theme" , Theme ),
53+ new (" data-lang" , Language ),
54+ new (" data-loading" , Loading ),
55+ new (" crossorigin" , " anonymous" ),
56+ new (" async" , true )
57+ });
6158 b .CloseElement ();
6259 });
6360 }
61+
6462}
0 commit comments