-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
1,656 additions
and
1,396 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
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import { Outlet } from '@solidjs/router' | ||
import type { ParentComponent } from 'solid-js' | ||
|
||
export default function SensorLayout() { | ||
const SensorLayout: ParentComponent = ({ children }) => { | ||
return ( | ||
<> | ||
nested dynamic view: | ||
<Outlet /> | ||
{children} | ||
</> | ||
) | ||
} | ||
|
||
export default SensorLayout |
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,10 +1,12 @@ | ||
import { Outlet } from '@solidjs/router' | ||
import type { ParentComponent } from 'solid-js' | ||
|
||
export default function AboutLayout() { | ||
const AboutLayout: ParentComponent = ({ children }) => { | ||
return ( | ||
<div> | ||
nested about view: | ||
<Outlet /> | ||
{children} | ||
</div> | ||
) | ||
} | ||
|
||
export default AboutLayout |
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 |
---|---|---|
@@ -1,12 +1,10 @@ | ||
import { Link } from '@solidjs/router' | ||
|
||
export default function Index() { | ||
return ( | ||
<div> | ||
about/index.tsx | ||
<Link href="/about/1b234bk12b3"> | ||
<a href="/about/1b234bk12b3"> | ||
id: 1b234bk12b3 | ||
</Link> | ||
</a> | ||
</div> | ||
) | ||
} |
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,22 +1,20 @@ | ||
import { Link } from '@solidjs/router' | ||
|
||
export default function Index() { | ||
return ( | ||
<div> | ||
blog/index.tsx | ||
<Link href="/blog/1b234bk12b3"> | ||
<a href="/blog/1b234bk12b3"> | ||
id: 1b234bk12b3 | ||
</Link> | ||
</a> | ||
{' '} | ||
| | ||
<Link href="/blog/today"> | ||
<a href="/blog/today"> | ||
today | ||
</Link> | ||
</a> | ||
{' '} | ||
| | ||
<Link href="/blog/today/xxx"> | ||
<a href="/blog/today/xxx"> | ||
child - not found | ||
</Link> | ||
</a> | ||
</div> | ||
) | ||
} |
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,42 +1,40 @@ | ||
import { Link } from '@solidjs/router' | ||
|
||
export default function Index() { | ||
return ( | ||
<div> | ||
<p>index.tsx</p> | ||
<Link href="/blog"> | ||
<a href="/blog"> | ||
blog | ||
</Link> | ||
</a> | ||
{' '} | ||
| | ||
<Link href="/about"> | ||
<a href="/about"> | ||
about | ||
</Link> | ||
</a> | ||
{' '} | ||
| | ||
<Link href="/components"> | ||
<a href="/components"> | ||
components | ||
</Link> | ||
</a> | ||
{' '} | ||
| | ||
<Link href="/xxx/xxx"> | ||
<a href="/xxx/xxx"> | ||
not exits | ||
</Link> | ||
</a> | ||
{' '} | ||
| | ||
<Link href="/features/dashboard"> | ||
<a href="/features/dashboard"> | ||
features:dashboard | ||
</Link> | ||
</a> | ||
{' '} | ||
| | ||
<Link href="/features/admin"> | ||
<a href="/features/admin"> | ||
features:admin | ||
</Link> | ||
</a> | ||
{' '} | ||
| | ||
<Link href="/admin"> | ||
<a href="/admin"> | ||
admin | ||
</Link> | ||
</a> | ||
</div> | ||
) | ||
} |
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
Oops, something went wrong.