Skip to content

Commit

Permalink
Replace NRN-Admin by Stacker + TODO for later once configured
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadorequest committed Jun 3, 2020
1 parent a64de43 commit ae1bf31
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions src/components/doc/ExternalFeaturesSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,16 @@ const ExternalFeaturesSection: React.FunctionComponent<Props> = (props): JSX.Ele
<Card>
<CardBody>
<CardTitle><h3>Backoffice/Admin site</h3></CardTitle>
<CardSubtitle>&ldquo;Manage NRN content using NRN-Admin&rdquo;</CardSubtitle>
<CardSubtitle>&ldquo;Manage NRN content using Stacker&rdquo;</CardSubtitle>
<CardText tag={'div'}>
<Alert color={'info'}>
You have the ability to update this demo dynamic content using NRN-Admin.<br />
It's basically an admin site (POC/experimental), for managing content, based on
<ExternalLink href={'https://github.com/marmelab/react-admin'} suffix={null}><code>react-admin</code></ExternalLink>, built with NRN.
You have the ability to update this demo dynamic content using Stacker.<br />
TODO Stacker
</Alert>

<div className={'buttons'}>
<ExternalLink href={'https://nrn-admin.now.sh/'}>
<Button color={'link'}>Go to NRN-Admin</Button>
<ExternalLink href={''}>
<Button color={'link'}>Go to Stacker</Button>
</ExternalLink>
</div>
</CardText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const ProductsWithSSGPage: NextPage<Props> = (props): JSX.Element => {
By using incremental static regeneration, this page is kept up-to-date automatically, based on how often users open the page. <br />
Of course, a few users will see outdated information, but it's not really an issue here.<br />
<br />
If you use <ExternalLink href={'https://nrn-admin.now.sh/'}>NRN Admin</ExternalLink> and update the products there,{' '}
If you use <ExternalLink href={''}>Stacker</ExternalLink> and update the products there,{' '}
then when you refresh the page (once the delay of {regenerationDelay} seconds has passed) then the whole page will be statically regenerated.<br />
And then, you'll have to refresh once again to see the new static version.
</Alert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const ExampleWithSSGPage: NextPage<Props> = (props): JSX.Element => {
<br />
Each page refresh (either static or CSR) fetches the static bundle and displays products below.<br />
<br />
If you use <ExternalLink href={'https://nrn-admin.now.sh/'}>NRN Admin</ExternalLink> and update the products there,{' '}
If you use <ExternalLink href={''}>Stacker</ExternalLink> and update the products there,{' '}
then the products below will <b>NOT</b> be updated, because each page refresh will still fetch the static content, which was generated at build time.<br />
Therefore, changes there won't be reflected here. (but they'll be reflected <I18nLink href={'/examples/native-features/example-with-ssr'}>on the SSR version though</I18nLink>)
<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const ProductsWithSSRPage: NextPage<Props> = (props): JSX.Element => {
<br />
Each page refresh (either SSR or CSR) queries the Airtable API and displays products below.<br />
<br />
If you use <ExternalLink href={'https://nrn-admin.now.sh/'}>NRN Admin</ExternalLink> and update the products there,{' '}
If you use <ExternalLink href={''}>Stacker</ExternalLink> and update the products there,{' '}
then the products below will be updated immediately, because each page refresh will fetch the latest content.<br />
</Alert>

Expand Down

0 comments on commit ae1bf31

Please sign in to comment.