-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into dev
- Loading branch information
Showing
11 changed files
with
95 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"solive-docusaurus-theme-code": patch | ||
--- | ||
|
||
fix match props error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: 属性 | ||
slug: /docusaurus-plugins/props | ||
hide_title: true | ||
--- | ||
|
||
## 属性 | ||
|
||
> 注意:考虑对参数匹配的准确性和文档UI适应性,部分Solive的属性默认值有所变动,并增加和变动一些新的属性 | ||
| 属性 | 类型 | 默认值 | 说明 | | ||
| --- | --- | --- | --- | | ||
| width | string | 90% | 容器宽度 | | ||
| height | string | 500px | 容器高度 | | ||
| consoleOpen | boolean | true | 是否显示控制台 | | ||
| consoleTriggerControl | boolean | false | 是否显示控制台触发按钮 | | ||
| consoleDefaultVisible | boolean | false | 控制台默认是否可见 | | ||
| deployOpen | boolean | true | 是否显示部署 | | ||
| deployDefaultVisible | boolean | false | 部署默认是否可见 | | ||
| fileNavOpen | boolean | true | 是否显示文件导航栏 | | ||
| fileNavDefaultVisible | boolean | false | 文件导航栏默认是否可见 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
import dynamic from "next/dynamic"; | ||
import dynamic from 'next/dynamic'; | ||
|
||
import "solive-core/dist/index.css"; | ||
import 'solive-core/dist/index.css'; | ||
|
||
const Editor = dynamic( | ||
() => { | ||
return import("solive-core"); | ||
}, | ||
{ ssr: false } | ||
() => import('solive-core'), | ||
{ ssr: false }, | ||
); | ||
|
||
export default function Home() { | ||
return ( | ||
<main> | ||
<Editor id="1" modelInfos={ | ||
<Editor | ||
id="1" | ||
modelInfos={ | ||
[ | ||
{ | ||
filename: '_Storage.sol', | ||
// eslint-disable-next-line max-len | ||
value: "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity >=0.7.0 <0.9.0;\n\n/**\n * @title Storage\n * @dev Store & retrieve value in a variable\n * @custom:dev-run-script ./scripts/deploy_with_ethers.ts\n */\ncontract Storage {\n\n uint256 number;\n\n /**\n * @dev Store value in variable\n * @param num value to store\n */\n function store(uint256 num) public {\n number = num;\n }\n\n /**\n * @dev Return value \n * @return value of 'number'\n */\n function retrieve() public view returns (uint256){\n return number;\n }\n}", | ||
language: "solidity" as any, | ||
} | ||
language: 'solidity' as any, | ||
}, | ||
] | ||
} height="500px" /> | ||
} | ||
height="500px" | ||
/> | ||
</main> | ||
) | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.