-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[Magic, several] Work to consolidate partials with conditional rendered content #19935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
conditinal render partiasl
KianNH
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work!
My comments are all stylistic or personal preference, so up to you on how you want to format the partials.
|
|
||
| | Prefix | NextHop | Priority | Weight | | ||
| | ----------------- | -------------- | -------- | ------ | | ||
| | `10.10.10.100/24` | `TUNNEL_1_IAD` | `100` | `64` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | `10.10.10.100/24` | `TUNNEL_1_IAD` | `100` | `64` | | |
| | `10.10.10.100/24` | `TUNNEL_1_IAD` | `100` | `64` | |
| | Prefix | NextHop | | ||
| | ----------------- | -------------- | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | Prefix | NextHop | | |
| | ----------------- | -------------- | | |
| | Prefix | NextHop | | |
| | ----------------- | -------------- | |
| <> | ||
| <p>For Magic WAN Connector, health checks are sent to IPsec tunnel endpoints.</p> | ||
| </> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can omit technically <> and </> if there is only a single element, but you might prefer to keep it as it's easier to consistently stick with it regardless - up to you!
No fragment needed:
<p>
<strong>text</strong>
</p>Fragment needed:
<>
<p>thing</p>
<p>thing2</p>
</>| { props.magicProduct === "Magic WAN" && ( | ||
| <> | ||
| <AnchorHeading depth={2} title="Configure Connector" /> | ||
| <ol><li>Log in to the <a href='https://dash.cloudflare.com/'>Cloudflare dashboard</a> and select your account.</li><li>Go to <strong>Magic WAN</strong> {'>'} <strong>Sites</strong>.</li><li>Select your site {'>'} <strong>Edit</strong>.</li><li>In <strong>Network</strong> {'>'} <strong>WAN configuration</strong> {'>'} select your WAN {'>'} <strong>Edit</strong>.</li><li>Change the <strong>Health check rate</strong> to your desire rate.</li><li>Select <strong>Save</strong>.</li></ol> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be formatted like so, but the caveat is needing to use {" "} to indicate spaces between elements on different lines.
<>
<AnchorHeading depth={2} title="Configure Connector" />
<ol>
<li>
Log in to the{" "}
<a href="https://dash.cloudflare.com/">Cloudflare dashboard</a> and select
your account.
</li>
<li>
Go to <strong>Magic WAN</strong> {">"} <strong>Sites</strong>.
</li>
<li>
Select your site {">"} <strong>Edit</strong>.
</li>
<li>
In <strong>Network</strong> {">"} <strong>WAN configuration</strong> {">"}{" "}
select your WAN {">"} <strong>Edit</strong>.
</li>
<li>
Change the <strong>Health check rate</strong> to your desire rate.
</li>
<li>
Select <strong>Save</strong>.
</li>
</ol>
</>…ed content (#19935) * added content from all partials in static-routes1 * corrected code * deleted unnecessary static routes partials * renamed partial * moved staticroutes outside folder * added optional vars * added conditional vars * removed extra vars * changed to hmtl * removed extra space * created overview partial * corrected vars * corrected vars * added indenting * added all content to same partial * corrected code * deletes old partials * deletes old partials mwan * moves mtu out of folder * corrected partial path * added partials for clamping conditinal render partiasl * removed extra space * added gre ipsec partials mwan * added optional vars to mt
Summary
Documentation checklist