-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stark-ui): implement the Stark-Pretty-Print component
- Loading branch information
1 parent
90c53fe
commit 22f84b6
Showing
18 changed files
with
1,129 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from "./modules/action-bar"; | ||
export * from "./modules/app-logo"; | ||
export * from "./modules/pretty-print"; | ||
export * from "./modules/slider"; | ||
export * from "./modules/svg-view-box"; |
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,2 @@ | ||
export * from "./pretty-print/pretty-print.module"; | ||
export * from "./pretty-print/components"; |
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 * from "./components/pretty-print.component"; |
14 changes: 14 additions & 0 deletions
14
packages/stark-ui/src/modules/pretty-print/components/_pretty-print.component.scss
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,14 @@ | ||
/* ============================================================================== */ | ||
/* S t a r k P r e t t y P r i n t */ | ||
/* ============================================================================== */ | ||
/* stark: src/modules/pretty-print/components/_pretty-print-theme.scss */ | ||
|
||
.stark-pretty-print { | ||
& pre, | ||
& pre[class*="language-"] > code { | ||
white-space: pre-wrap; | ||
word-wrap: break-word; | ||
} | ||
} | ||
|
||
/* end stark: src/modules/pretty-print/components/_pretty-print-theme.scss */ |
8 changes: 8 additions & 0 deletions
8
packages/stark-ui/src/modules/pretty-print/components/pretty-print.component.html
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,8 @@ | ||
<div> | ||
<div *ngIf="highlightingEnabled"> | ||
<div [innerHTML]="prettyString"></div> | ||
</div> | ||
<div *ngIf="!highlightingEnabled"> | ||
<pre>{{ prettyString }}</pre> | ||
</div> | ||
</div> |
Oops, something went wrong.