-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new template and module for service catalog
- Loading branch information
1 parent
48ecd5f
commit f9a0130
Showing
8 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,5 @@ | ||
import { Span } from "@zendeskgarden/react-typography"; | ||
|
||
export function ServiceCatalog() { | ||
return <Span>Hello from module</Span>; | ||
} |
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 @@ | ||
export { renderServiceCatalog } from "./renderServiceCatalog"; |
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,7 @@ | ||
import { render } from "react-dom"; | ||
|
||
import { ServiceCatalog } from "./ServiceCatalog"; | ||
|
||
export async function renderServiceCatalog(container: HTMLElement) { | ||
render(<ServiceCatalog />, container); | ||
} |
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,20 @@ | ||
<div class="container-divider"></div> | ||
<div class="container"> | ||
<div class="sub-nav"> | ||
</div> | ||
|
||
<h1>Service Catalog</h1> | ||
|
||
<div id="main-content"> | ||
<div id="service-catalog"></div> | ||
<div>Hello from template</div> | ||
</div> | ||
</div> | ||
|
||
<script type="module"> | ||
import { renderServiceCatalog } from "service-catalog"; | ||
const container = document.getElementById("service-catalog"); | ||
renderServiceCatalog(container); | ||
</script> |
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