This file contains hidden or 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
import { readFile, writeFile, stat, mkdir } from 'node:fs/promises'; | |
import { join } from 'node:path'; | |
import { format } from 'prettier'; | |
const fileText = await readFile( | |
'.svelte-kit/types/route_meta_data.json', | |
'utf-8' | |
); | |
const routes = JSON.parse(fileText); | |
const routeIds = Object.keys(routes).sort(); | |
const paramRx = /\[{1,2}([^\]]+)\]{1,2}/g; |
This file contains hidden or 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
export interface MyPricingData { | |
basePrice: number; | |
discounts: { | |
minQuantity: number; | |
pricePerItem: number; | |
}[]; | |
} |
This file contains hidden or 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
// other imports | |
import { NzbModule, NzbPopoverOptions } from 'nowzoo-angular-bootstrap-lite'; | |
@NgModule({ | |
//etc... | |
imports: [ | |
NzbModule | |
//etc.. | |
], | |
providers: [ |
This file contains hidden or 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
<!-- animation ON --> | |
<ng-template nzbModal #animatedInstance="nzbModal"> | |
<!-- note .fade class --> | |
<div class="modal fade" tabindex="-1">....</div> | |
</ng-template> | |
<!-- animation OFF --> | |
<ng-template nzbModal #inanimateInstance="nzbModal"> | |
<!-- note no .fade class --> | |
<div class="modal" tabindex="-1">....</div> |
This file contains hidden or 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
<button class="btn btn-primary" nzbPopover | |
[nzbPopoverTitle]="quickstartTitle" | |
[nzbPopoverContent]="quickstartContent" | |
data-placement="auto">Quick Example</button> | |
<ng-template #quickstartTitle>Popover Title</ng-template> | |
<ng-template #quickstartContent>Some popover content.</ng-template> |
This file contains hidden or 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
<button class="btn btn-primary" | |
nzbTooltip | |
[nzbTooltipTitle]="quickstartTitle" | |
data-placement="auto">Quick Example (Hover)</button> | |
<ng-template #quickstartTitle>Tooltip Title</ng-template> |
This file contains hidden or 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
import { Component } from '@angular/core'; | |
@Component({ | |
selector: 'app-tooltip-demo-animation', | |
template: `<p> | |
<button | |
class="btn btn-primary" | |
nzbTooltip | |
title="I'm animated by default"> | |
Animated Tooltip</button> |
This file contains hidden or 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
<button class="btn btn-primary" (click)="smallModal.show()">Small Modal</button> | |
<ng-template nzbModal #smallModal="nzbModal"> | |
<div class="modal fade" tabindex="-1"> | |
<div class="modal-dialog modal-sm" role="document"> | |
.... | |
</div> | |
</div> | |
</ng-template> |
This file contains hidden or 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
<button class="btn btn-primary" (click)="exampleModal.show()">Show Modal</button> | |
<ng-template nzbModal #exampleModal="nzbModal"> | |
<div class="modal fade" tabindex="-1"> | |
<div class="modal-dialog" role="document"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<h5 class="modal-title">Make Me Go Away</h5> | |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> | |
<span aria-hidden="true">×</span> | |
</button> |
This file contains hidden or 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
<div class="fixed-container"> | |
<p class="text-muted">This is a fixed container.</p> | |
<p> | |
<button class="btn btn-primary" (click)="exampleModal1.show()">Show Modal</button> | |
</p> | |
<ng-template nzbModal #exampleModal1="nzbModal"> | |
<div class="modal fade" tabindex="-1"> | |
<div class="modal-dialog" role="document"> | |
<div class="modal-content"> |
NewerOlder