@cloudfrogger/goodui 0.0.60 → 0.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/ai/README.md +47 -0
- package/ai/case-studies/index.md +10 -0
- package/ai/case-studies/vpshoster.md +18 -0
- package/ai/case-studies/webmailer.md +21 -0
- package/ai/catalog/README.md +7 -0
- package/ai/catalog/component.schema.json +289 -0
- package/ai/catalog/components/div-goodDetailRow.json +33 -0
- package/ai/catalog/components/form-goodForm.json +84 -0
- package/ai/catalog/components/good-action-bar.json +83 -0
- package/ai/catalog/components/good-action-group.json +143 -0
- package/ai/catalog/components/good-action-menu.json +121 -0
- package/ai/catalog/components/good-alert.json +184 -0
- package/ai/catalog/components/good-app-layout.json +245 -0
- package/ai/catalog/components/good-assistant-body.json +43 -0
- package/ai/catalog/components/good-assistant-footer.json +43 -0
- package/ai/catalog/components/good-assistant-header.json +43 -0
- package/ai/catalog/components/good-assistant-main.json +61 -0
- package/ai/catalog/components/good-assistant-mobile.json +43 -0
- package/ai/catalog/components/good-assistant-panel.json +131 -0
- package/ai/catalog/components/good-avatar-menu-item.json +82 -0
- package/ai/catalog/components/good-avatar-menu.json +83 -0
- package/ai/catalog/components/good-badge.json +180 -0
- package/ai/catalog/components/good-bar-chart.json +118 -0
- package/ai/catalog/components/good-brand-icon.json +71 -0
- package/ai/catalog/components/good-breadcrumbs.json +102 -0
- package/ai/catalog/components/good-button.json +192 -0
- package/ai/catalog/components/good-calendar.json +430 -0
- package/ai/catalog/components/good-card-footer.json +63 -0
- package/ai/catalog/components/good-card-header.json +100 -0
- package/ai/catalog/components/good-card.json +57 -0
- package/ai/catalog/components/good-chart-axis.json +168 -0
- package/ai/catalog/components/good-chart-bar.json +89 -0
- package/ai/catalog/components/good-chart-histogram.json +78 -0
- package/ai/catalog/components/good-chart-line.json +89 -0
- package/ai/catalog/components/good-chart-scatter.json +87 -0
- package/ai/catalog/components/good-checkbox.json +171 -0
- package/ai/catalog/components/good-citation.json +62 -0
- package/ai/catalog/components/good-code-block.json +116 -0
- package/ai/catalog/components/good-color-controls.json +58 -0
- package/ai/catalog/components/good-color-picker.json +141 -0
- package/ai/catalog/components/good-column.json +53 -0
- package/ai/catalog/components/good-columns.json +77 -0
- package/ai/catalog/components/good-date-input.json +386 -0
- package/ai/catalog/components/good-detail-list.json +43 -0
- package/ai/catalog/components/good-dropdown.json +259 -0
- package/ai/catalog/components/good-error-page.json +133 -0
- package/ai/catalog/components/good-error-text.json +43 -0
- package/ai/catalog/components/good-expandable.json +159 -0
- package/ai/catalog/components/good-eyebrow.json +61 -0
- package/ai/catalog/components/good-field-label.json +62 -0
- package/ai/catalog/components/good-form-field.json +67 -0
- package/ai/catalog/components/good-form-row.json +70 -0
- package/ai/catalog/components/good-group.json +150 -0
- package/ai/catalog/components/good-heading-group.json +45 -0
- package/ai/catalog/components/good-heading.json +69 -0
- package/ai/catalog/components/good-hint.json +43 -0
- package/ai/catalog/components/good-histogram.json +103 -0
- package/ai/catalog/components/good-icon.json +97 -0
- package/ai/catalog/components/good-image-input.json +190 -0
- package/ai/catalog/components/good-image-preview.json +97 -0
- package/ai/catalog/components/good-inline-image.json +131 -0
- package/ai/catalog/components/good-input-phone.json +226 -0
- package/ai/catalog/components/good-input.json +350 -0
- package/ai/catalog/components/good-line-chart.json +94 -0
- package/ai/catalog/components/good-link.json +147 -0
- package/ai/catalog/components/good-listbox.json +248 -0
- package/ai/catalog/components/good-main-menu.json +138 -0
- package/ai/catalog/components/good-main-view.json +179 -0
- package/ai/catalog/components/good-map-color-scale.json +163 -0
- package/ai/catalog/components/good-map-overlay.json +136 -0
- package/ai/catalog/components/good-modal-footer.json +63 -0
- package/ai/catalog/components/good-modal-header.json +73 -0
- package/ai/catalog/components/good-modal.json +131 -0
- package/ai/catalog/components/good-month-calendar.json +170 -0
- package/ai/catalog/components/good-notification-host.json +46 -0
- package/ai/catalog/components/good-notifications.json +72 -0
- package/ai/catalog/components/good-number-input.json +180 -0
- package/ai/catalog/components/good-paragraph.json +47 -0
- package/ai/catalog/components/good-pdf-preview.json +153 -0
- package/ai/catalog/components/good-pin-input.json +211 -0
- package/ai/catalog/components/good-progress.json +158 -0
- package/ai/catalog/components/good-prose.json +43 -0
- package/ai/catalog/components/good-radio-group.json +181 -0
- package/ai/catalog/components/good-range-slider.json +285 -0
- package/ai/catalog/components/good-rating.json +160 -0
- package/ai/catalog/components/good-resizable-pane.json +61 -0
- package/ai/catalog/components/good-resizable.json +185 -0
- package/ai/catalog/components/good-rich-text-editor.json +164 -0
- package/ai/catalog/components/good-scatter-chart.json +94 -0
- package/ai/catalog/components/good-search.json +60 -0
- package/ai/catalog/components/good-section.json +43 -0
- package/ai/catalog/components/good-select-country.json +205 -0
- package/ai/catalog/components/good-select-font.json +111 -0
- package/ai/catalog/components/good-select.json +217 -0
- package/ai/catalog/components/good-separator.json +59 -0
- package/ai/catalog/components/good-settings.json +60 -0
- package/ai/catalog/components/good-sidebar-container.json +112 -0
- package/ai/catalog/components/good-sidebar-item.json +210 -0
- package/ai/catalog/components/good-sidebar-menu-container.json +80 -0
- package/ai/catalog/components/good-sidebar-submenu-group.json +98 -0
- package/ai/catalog/components/good-sidebar-submenu-item.json +113 -0
- package/ai/catalog/components/good-signature-pad.json +115 -0
- package/ai/catalog/components/good-sparkline.json +188 -0
- package/ai/catalog/components/good-status-icon.json +425 -0
- package/ai/catalog/components/good-subheading.json +67 -0
- package/ai/catalog/components/good-subnav.json +132 -0
- package/ai/catalog/components/good-summary.json +43 -0
- package/ai/catalog/components/good-switch.json +167 -0
- package/ai/catalog/components/good-tab.json +129 -0
- package/ai/catalog/components/good-table.json +294 -0
- package/ai/catalog/components/good-tabs.json +90 -0
- package/ai/catalog/components/good-textarea.json +194 -0
- package/ai/catalog/components/good-theme-toggle.json +57 -0
- package/ai/catalog/components/good-timeline-section.json +105 -0
- package/ai/catalog/components/good-timeline-step.json +248 -0
- package/ai/catalog/components/good-timeline.json +302 -0
- package/ai/catalog/components/good-topbar-dropdown-item.json +115 -0
- package/ai/catalog/components/good-topbar-dropdown-menu.json +85 -0
- package/ai/catalog/components/good-topbar-menu-container.json +96 -0
- package/ai/catalog/components/good-topbar-menu-item.json +99 -0
- package/ai/catalog/components/good-topbar-submenu.json +77 -0
- package/ai/catalog/components/good-topbar.json +259 -0
- package/ai/catalog/components/good-world-map.json +145 -0
- package/ai/catalog/components/goodCardActions.json +33 -0
- package/ai/catalog/components/goodDropdownFooter.json +33 -0
- package/ai/catalog/components/goodDropdownHeader.json +33 -0
- package/ai/catalog/components/goodExpandableHeader.json +33 -0
- package/ai/catalog/components/ng-template-goodListboxItem.json +33 -0
- package/ai/catalog/components/ng-template-goodTableCell.json +43 -0
- package/ai/catalog/index.json +1484 -0
- package/ai/catalog/index.schema.json +13 -0
- package/ai/examples/angular.json +26 -0
- package/ai/examples/edit-form.html +13 -0
- package/ai/examples/edit-form.ts +18 -0
- package/ai/examples/index.html +1 -0
- package/ai/examples/login.html +11 -0
- package/ai/examples/login.ts +14 -0
- package/ai/examples/main.ts +25 -0
- package/ai/examples/settings.html +10 -0
- package/ai/examples/settings.ts +13 -0
- package/ai/examples/table-view.html +3 -0
- package/ai/examples/table-view.ts +21 -0
- package/ai/examples/tsconfig.json +27 -0
- package/ai/guides/common-mistakes.md +9 -0
- package/ai/guides/component-discovery.md +17 -0
- package/ai/guides/design-tokens.md +10 -0
- package/ai/guides/layout.md +17 -0
- package/ai/guides/page-patterns.md +39 -0
- package/ai/install.mjs +25 -0
- package/ai/manifest.json +6 -0
- package/ai/skill/goodui/SKILL.md +27 -0
- package/angular/projects/goodui/package.json +28 -0
- package/angular/projects/goodui/src/action-bar.css +20 -0
- package/angular/projects/goodui/src/assistant-panel.css +38 -0
- package/angular/projects/goodui/src/calendar.css +161 -0
- package/angular/projects/goodui/src/chart.css +35 -0
- package/angular/projects/goodui/src/color-picker.css +40 -0
- package/angular/projects/goodui/src/error-page.css +24 -0
- package/angular/projects/goodui/src/lib/action-bar.ts +161 -0
- package/angular/projects/goodui/src/lib/action-group.ts +31 -0
- package/angular/projects/goodui/src/lib/action-menu.ts +81 -0
- package/angular/projects/goodui/src/lib/actions.ts +318 -0
- package/angular/projects/goodui/src/lib/alert.ts +60 -0
- package/angular/projects/goodui/src/lib/app-layout.ts +79 -0
- package/angular/projects/goodui/src/lib/assistant-panel.ts +133 -0
- package/angular/projects/goodui/src/lib/badge.ts +47 -0
- package/angular/projects/goodui/src/lib/bar-chart.html +80 -0
- package/angular/projects/goodui/src/lib/bar-chart.ts +233 -0
- package/angular/projects/goodui/src/lib/breadcrumbs.ts +81 -0
- package/angular/projects/goodui/src/lib/button.ts +38 -0
- package/angular/projects/goodui/src/lib/calendar-layout.ts +68 -0
- package/angular/projects/goodui/src/lib/calendar-service.ts +144 -0
- package/angular/projects/goodui/src/lib/calendar-working-hours.ts +65 -0
- package/angular/projects/goodui/src/lib/calendar.html +200 -0
- package/angular/projects/goodui/src/lib/calendar.ts +471 -0
- package/angular/projects/goodui/src/lib/card.ts +64 -0
- package/angular/projects/goodui/src/lib/chart-colors.ts +22 -0
- package/angular/projects/goodui/src/lib/chart-data.ts +269 -0
- package/angular/projects/goodui/src/lib/checkbox.ts +87 -0
- package/angular/projects/goodui/src/lib/code-block.ts +147 -0
- package/angular/projects/goodui/src/lib/color-controls.ts +107 -0
- package/angular/projects/goodui/src/lib/color-picker.ts +142 -0
- package/angular/projects/goodui/src/lib/color-utils.ts +69 -0
- package/angular/projects/goodui/src/lib/country-data.ts +16 -0
- package/angular/projects/goodui/src/lib/date-input.ts +542 -0
- package/angular/projects/goodui/src/lib/dropdown.ts +309 -0
- package/angular/projects/goodui/src/lib/error-page.ts +46 -0
- package/angular/projects/goodui/src/lib/expandable.ts +64 -0
- package/angular/projects/goodui/src/lib/form.ts +12 -0
- package/angular/projects/goodui/src/lib/goodui-config.ts +16 -0
- package/angular/projects/goodui/src/lib/group.ts +45 -0
- package/angular/projects/goodui/src/lib/histogram.html +52 -0
- package/angular/projects/goodui/src/lib/histogram.ts +146 -0
- package/angular/projects/goodui/src/lib/icon.ts +44 -0
- package/angular/projects/goodui/src/lib/image-input.ts +154 -0
- package/angular/projects/goodui/src/lib/image-preview.ts +26 -0
- package/angular/projects/goodui/src/lib/input-phone.ts +305 -0
- package/angular/projects/goodui/src/lib/input.ts +143 -0
- package/angular/projects/goodui/src/lib/line-chart.html +53 -0
- package/angular/projects/goodui/src/lib/line-chart.ts +193 -0
- package/angular/projects/goodui/src/lib/link.ts +46 -0
- package/angular/projects/goodui/src/lib/listbox.ts +254 -0
- package/angular/projects/goodui/src/lib/main-view.ts +39 -0
- package/angular/projects/goodui/src/lib/marker-colors.ts +7 -0
- package/angular/projects/goodui/src/lib/modal.ts +199 -0
- package/angular/projects/goodui/src/lib/models.ts +115 -0
- package/angular/projects/goodui/src/lib/month-calendar.ts +289 -0
- package/angular/projects/goodui/src/lib/notification-center.ts +170 -0
- package/angular/projects/goodui/src/lib/notification-host.ts +86 -0
- package/angular/projects/goodui/src/lib/number-input.ts +180 -0
- package/angular/projects/goodui/src/lib/pdf-preview.ts +242 -0
- package/angular/projects/goodui/src/lib/pdf-worker.generated.ts +2 -0
- package/angular/projects/goodui/src/lib/pin-input.ts +193 -0
- package/angular/projects/goodui/src/lib/progress.ts +93 -0
- package/angular/projects/goodui/src/lib/provide-goodui.ts +15 -0
- package/angular/projects/goodui/src/lib/radio-group.ts +94 -0
- package/angular/projects/goodui/src/lib/range-slider.ts +313 -0
- package/angular/projects/goodui/src/lib/rating.ts +90 -0
- package/angular/projects/goodui/src/lib/required-control.ts +4 -0
- package/angular/projects/goodui/src/lib/resizable.ts +168 -0
- package/angular/projects/goodui/src/lib/rich-text-command.ts +111 -0
- package/angular/projects/goodui/src/lib/rich-text-editor.html +193 -0
- package/angular/projects/goodui/src/lib/rich-text-editor.ts +864 -0
- package/angular/projects/goodui/src/lib/rich-text-sanitize.ts +99 -0
- package/angular/projects/goodui/src/lib/scatter-chart.html +48 -0
- package/angular/projects/goodui/src/lib/scatter-chart.ts +150 -0
- package/angular/projects/goodui/src/lib/select-country.ts +104 -0
- package/angular/projects/goodui/src/lib/select-font.ts +189 -0
- package/angular/projects/goodui/src/lib/select.ts +336 -0
- package/angular/projects/goodui/src/lib/sidebar.ts +232 -0
- package/angular/projects/goodui/src/lib/signature-pad.ts +238 -0
- package/angular/projects/goodui/src/lib/sparkline.html +15 -0
- package/angular/projects/goodui/src/lib/sparkline.ts +106 -0
- package/angular/projects/goodui/src/lib/status-icon.ts +79 -0
- package/angular/projects/goodui/src/lib/subnav.ts +156 -0
- package/angular/projects/goodui/src/lib/switch.ts +54 -0
- package/angular/projects/goodui/src/lib/table.ts +538 -0
- package/angular/projects/goodui/src/lib/tabs.ts +251 -0
- package/angular/projects/goodui/src/lib/textarea.ts +83 -0
- package/angular/projects/goodui/src/lib/theme.ts +49 -0
- package/angular/projects/goodui/src/lib/timeline.ts +252 -0
- package/angular/projects/goodui/src/lib/topbar.ts +402 -0
- package/angular/projects/goodui/src/lib/typography.ts +250 -0
- package/angular/projects/goodui/src/lib/world-map-data.ts +3 -0
- package/angular/projects/goodui/src/lib/world-map.html +73 -0
- package/angular/projects/goodui/src/lib/world-map.ts +391 -0
- package/angular/projects/goodui/src/month-calendar.css +47 -0
- package/angular/projects/goodui/src/pdf-preview.css +25 -0
- package/angular/projects/goodui/src/progress.css +38 -0
- package/angular/projects/goodui/src/public-api.ts +74 -0
- package/angular/projects/goodui/src/range-slider.css +54 -0
- package/angular/projects/goodui/src/resizable.css +32 -0
- package/angular/projects/goodui/src/rich-text-editor.css +33 -0
- package/angular/projects/goodui/src/select-font.css +16 -0
- package/angular/projects/goodui/src/signature-pad.css +14 -0
- package/angular/projects/goodui/src/styles.css +1105 -0
- package/angular/projects/goodui/src/timeline.css +138 -0
- package/angular/projects/goodui/src/tokens.generated.css +754 -0
- package/design/component-map.json +2233 -0
- package/design-tokens/penpot.tokens.json +3339 -0
- package/design.md +452 -0
- package/guides/README.md +17 -0
- package/guides/components/action-bar.md +43 -0
- package/guides/components/action-group.md +43 -0
- package/guides/components/action-menu.md +22 -0
- package/guides/components/alert.md +28 -0
- package/guides/components/assistant-panel.md +50 -0
- package/guides/components/avatar-menu.md +34 -0
- package/guides/components/badge.md +39 -0
- package/guides/components/bar-chart.md +40 -0
- package/guides/components/breadcrumbs.md +37 -0
- package/guides/components/button.md +40 -0
- package/guides/components/calendar.md +166 -0
- package/guides/components/card.md +62 -0
- package/guides/components/chart-axis.md +5 -0
- package/guides/components/chart-bar.md +5 -0
- package/guides/components/chart-data.md +58 -0
- package/guides/components/chart-histogram.md +16 -0
- package/guides/components/chart-line.md +5 -0
- package/guides/components/chart-scatter.md +14 -0
- package/guides/components/checkbox.md +36 -0
- package/guides/components/code-block.md +35 -0
- package/guides/components/color-controls.md +22 -0
- package/guides/components/column.md +5 -0
- package/guides/components/columns.md +13 -0
- package/guides/components/date-input.md +62 -0
- package/guides/components/detail-list.md +25 -0
- package/guides/components/dropdown.md +48 -0
- package/guides/components/error-page.md +31 -0
- package/guides/components/expandable.md +36 -0
- package/guides/components/form.md +49 -0
- package/guides/components/group.md +41 -0
- package/guides/components/histogram.md +45 -0
- package/guides/components/icon.md +13 -0
- package/guides/components/image-input.md +34 -0
- package/guides/components/input-phone.md +45 -0
- package/guides/components/input.md +59 -0
- package/guides/components/line-chart.md +37 -0
- package/guides/components/link.md +31 -0
- package/guides/components/listbox.md +109 -0
- package/guides/components/main-menu.md +11 -0
- package/guides/components/main-view.md +21 -0
- package/guides/components/modal.md +58 -0
- package/guides/components/month-calendar.md +88 -0
- package/guides/components/notifications.md +76 -0
- package/guides/components/number-input.md +21 -0
- package/guides/components/pdf-preview.md +38 -0
- package/guides/components/pin-input.md +37 -0
- package/guides/components/progress.md +41 -0
- package/guides/components/radio-group.md +41 -0
- package/guides/components/range-slider.md +42 -0
- package/guides/components/rating.md +39 -0
- package/guides/components/resizable-pane.md +3 -0
- package/guides/components/resizable.md +75 -0
- package/guides/components/rich-text-editor.md +113 -0
- package/guides/components/scatter-chart.md +43 -0
- package/guides/components/search.md +9 -0
- package/guides/components/select-font.md +16 -0
- package/guides/components/select.md +65 -0
- package/guides/components/settings.md +11 -0
- package/guides/components/sidebar.md +47 -0
- package/guides/components/signature-pad.md +45 -0
- package/guides/components/sparkline.md +31 -0
- package/guides/components/status-icon.md +32 -0
- package/guides/components/submenus.md +30 -0
- package/guides/components/subnav.md +54 -0
- package/guides/components/switch.md +48 -0
- package/guides/components/table.md +256 -0
- package/guides/components/tabs.md +46 -0
- package/guides/components/textarea.md +44 -0
- package/guides/components/theme-toggle.md +33 -0
- package/guides/components/timeline-section.md +7 -0
- package/guides/components/timeline-step.md +12 -0
- package/guides/components/timeline.md +179 -0
- package/guides/components/topbar.md +83 -0
- package/guides/components/typography.md +155 -0
- package/guides/components/world-map.md +72 -0
- package/guides/contributing/design-to-code.md +261 -0
- package/guides/deployment/drone.md +77 -0
- package/guides/examples/user-registration.md +11 -0
- package/guides/foundations/naming.md +7 -0
- package/guides/foundations/tokens.md +203 -0
- package/guides/intro.md +80 -0
- package/guides/layout/app-layout.md +64 -0
- package/guides/layout/layout-rules.md +16 -0
- package/homepage/src/app/examples/calendar-workspace/calendar-workspace-page.html +22 -0
- package/homepage/src/app/examples/calendar-workspace/calendar-workspace-page.ts +111 -0
- package/homepage/src/app/examples/calendar-workspace/source-code.generated.ts +3 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.html +166 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.ts +134 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/cloudhoster-store.ts +92 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.html +93 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.ts +115 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.html +202 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.ts +143 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.html +70 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.ts +44 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/home-page.html +70 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/home-page.ts +32 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/source-code.generated.ts +12 -0
- package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.html +208 -0
- package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.ts +214 -0
- package/homepage/src/app/examples/case-studies/vpshoster/overview-page.html +35 -0
- package/homepage/src/app/examples/case-studies/vpshoster/overview-page.ts +17 -0
- package/homepage/src/app/examples/case-studies/vpshoster/servers-page.html +111 -0
- package/homepage/src/app/examples/case-studies/vpshoster/servers-page.ts +206 -0
- package/homepage/src/app/examples/case-studies/vpshoster/source-code.generated.ts +6 -0
- package/homepage/src/app/examples/case-studies/vpshoster/vps-store.ts +92 -0
- package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.html +35 -0
- package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.ts +17 -0
- package/homepage/src/app/examples/error-pages/error-pages-example-page.html +27 -0
- package/homepage/src/app/examples/error-pages/error-pages-example-page.ts +34 -0
- package/homepage/src/app/examples/error-pages/not-found-page.html +8 -0
- package/homepage/src/app/examples/error-pages/not-found-page.ts +19 -0
- package/homepage/src/app/examples/error-pages/server-error-page.html +8 -0
- package/homepage/src/app/examples/error-pages/server-error-page.ts +20 -0
- package/homepage/src/app/examples/error-pages/source-code.generated.ts +7 -0
- package/homepage/src/app/examples/mail-compose/mail-compose-page.html +25 -0
- package/homepage/src/app/examples/mail-compose/mail-compose-page.ts +28 -0
- package/homepage/src/app/examples/mail-workspace/mail-workspace-page.html +59 -0
- package/homepage/src/app/examples/mail-workspace/mail-workspace-page.ts +128 -0
- package/homepage/src/app/examples/mail-workspace/source-code.generated.ts +3 -0
- package/homepage/src/app/examples/notifications/notifications-page.html +51 -0
- package/homepage/src/app/examples/notifications/notifications-page.ts +133 -0
- package/homepage/src/app/examples/notifications/source-code.generated.ts +3 -0
- package/homepage/src/app/examples/pdf-reader/pdf-reader-page.html +27 -0
- package/homepage/src/app/examples/pdf-reader/pdf-reader-page.ts +39 -0
- package/homepage/src/app/examples/pdf-reader/source-code.generated.ts +3 -0
- package/homepage/src/app/examples/user-registration/source-code.generated.ts +5 -0
- package/homepage/src/app/examples/user-registration/user-registration-example-page.html +11 -0
- package/homepage/src/app/examples/user-registration/user-registration-example-page.ts +21 -0
- package/homepage/src/app/examples/user-registration/user-registration-form.html +116 -0
- package/homepage/src/app/examples/user-registration/user-registration-form.ts +93 -0
- package/homepage/src/app/examples/user-registration/user-registration-page.html +11 -0
- package/homepage/src/app/examples/user-registration/user-registration-page.ts +23 -0
- package/package.json +2 -2
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
<good-main-view title="Billing" eyebrow="Cloudhoster · Account"
|
|
2
|
+
description="Estimated usage, invoices, and spend controls in one place.">
|
|
3
|
+
<div good-main-view-actions><good-action-group>
|
|
4
|
+
<good-link route="/examples/case-studies/cloudhoster">Overview</good-link>
|
|
5
|
+
<good-button variant="outline" size="small" (click)="sourceOpen.set(true)">View source</good-button>
|
|
6
|
+
</good-action-group></div>
|
|
7
|
+
<good-section>
|
|
8
|
+
<good-alert tone="info" appearance="light" title="Usage at a glance"
|
|
9
|
+
message="The figures below are illustrative and update from this local case study." />
|
|
10
|
+
<good-tabs ariaLabel="Billing sections">
|
|
11
|
+
<good-tab value="overview" label="Overview" [selected]="true">
|
|
12
|
+
<good-card>
|
|
13
|
+
<good-card-header title="Current month" [headingLevel]="3" tone="secondary" />
|
|
14
|
+
<good-columns [columns]="2">
|
|
15
|
+
<good-column>
|
|
16
|
+
<good-hint>Estimated usage for this month</good-hint>
|
|
17
|
+
<good-heading [level]="2">{{ store.totalMonthly() | currency:'USD' }}</good-heading>
|
|
18
|
+
<good-paragraph>From {{ store.clusters().length }} active demo cluster{{ store.clusters().length === 1 ? '' : 's' }}.</good-paragraph>
|
|
19
|
+
<good-button variant="outline" (click)="paymentNotice.set('No payment is due in this local demo.')">Make payment</good-button>
|
|
20
|
+
</good-column>
|
|
21
|
+
<good-column><good-detail-list>
|
|
22
|
+
<div goodDetailRow><dt>Available credit</dt><dd>$100.00</dd></div>
|
|
23
|
+
<div goodDetailRow><dt>Estimated usage</dt><dd>{{ store.totalMonthly() | currency:'USD' }}</dd></div>
|
|
24
|
+
<div goodDetailRow><dt>Remaining credit</dt><dd>{{ remaining() | currency:'USD' }}</dd></div>
|
|
25
|
+
</good-detail-list></good-column>
|
|
26
|
+
</good-columns>
|
|
27
|
+
</good-card>
|
|
28
|
+
@if (paymentNotice()) { <good-paragraph role="status">{{ paymentNotice() }}</good-paragraph> }
|
|
29
|
+
<good-columns [columns]="2">
|
|
30
|
+
<good-column><good-card><good-card-header title="Subscriptions" [headingLevel]="3" />
|
|
31
|
+
<good-detail-list>
|
|
32
|
+
<div goodDetailRow><dt>Managed databases</dt><dd>{{ store.clusters().length }}</dd></div>
|
|
33
|
+
<div goodDetailRow><dt>Support plan</dt><dd>Starter</dd></div>
|
|
34
|
+
</good-detail-list>
|
|
35
|
+
</good-card></good-column>
|
|
36
|
+
<good-column><good-card><good-card-header title="Payment methods" [headingLevel]="3" />
|
|
37
|
+
<good-paragraph>No payment method is stored in this local example.</good-paragraph>
|
|
38
|
+
</good-card></good-column>
|
|
39
|
+
</good-columns>
|
|
40
|
+
</good-tab>
|
|
41
|
+
<good-tab value="insights" label="Billing insights">
|
|
42
|
+
<good-group appearance="plain" title="Analyze spend">
|
|
43
|
+
<good-paragraph>Choose a period and grouping, then switch the charts to their data tables for exact values.</good-paragraph>
|
|
44
|
+
<good-action-group>
|
|
45
|
+
<good-button size="small" [variant]="selectedCategory() === 'all' ? 'default' : 'secondary'"
|
|
46
|
+
[ariaPressed]="selectedCategory() === 'all'" (click)="selectedCategory.set('all')">All spend</good-button>
|
|
47
|
+
<good-button size="small" [variant]="selectedCategory() === 'database' ? 'default' : 'secondary'"
|
|
48
|
+
[ariaPressed]="selectedCategory() === 'database'" (click)="selectedCategory.set('database')">Databases</good-button>
|
|
49
|
+
<good-button size="small" [variant]="selectedCategory() === 'compute' ? 'default' : 'secondary'"
|
|
50
|
+
[ariaPressed]="selectedCategory() === 'compute'" (click)="selectedCategory.set('compute')">Compute</good-button>
|
|
51
|
+
</good-action-group>
|
|
52
|
+
<good-action-group>
|
|
53
|
+
<good-select label="Period" [showLabel]="true" [options]="periods" [(value)]="period" />
|
|
54
|
+
<good-select label="Group by" [showLabel]="true" [options]="groupings" [(value)]="groupBy" />
|
|
55
|
+
</good-action-group>
|
|
56
|
+
<good-line-chart title="Daily estimated spend" [sources]="visibleSpendSource()" [showDataToggle]="true">
|
|
57
|
+
<good-chart-axis position="x" type="time" label="Day" />
|
|
58
|
+
<good-chart-axis position="y" type="number" label="USD" [min]="0" />
|
|
59
|
+
@if (selectedCategory() !== 'compute') {
|
|
60
|
+
<good-chart-line source="spend" xKey="day" yKey="database" label="Databases" color="blue" />
|
|
61
|
+
}
|
|
62
|
+
@if (selectedCategory() !== 'database') {
|
|
63
|
+
<good-chart-line source="spend" xKey="day" yKey="compute" label="Compute" color="teal" />
|
|
64
|
+
}
|
|
65
|
+
</good-line-chart>
|
|
66
|
+
<good-bar-chart title="Resource breakdown" [sources]="breakdownSource()" [showDataToggle]="true" orientation="horizontal">
|
|
67
|
+
<good-chart-axis position="x" type="category" label="Product" />
|
|
68
|
+
<good-chart-axis position="y" type="number" label="USD" [min]="0" />
|
|
69
|
+
<good-chart-bar source="breakdown" xKey="product" yKey="amount" label="Estimated spend" color="blue" />
|
|
70
|
+
</good-bar-chart>
|
|
71
|
+
</good-group>
|
|
72
|
+
</good-tab>
|
|
73
|
+
<good-tab value="alerts" label="Spend alerts" [badge]="store.alerts().length">
|
|
74
|
+
<good-group appearance="plain" title="Spend alerts">
|
|
75
|
+
<good-paragraph>Set a monthly budget and choose the thresholds your application should monitor.</good-paragraph>
|
|
76
|
+
@if (store.notice()) { <good-paragraph role="status">{{ store.notice() }}</good-paragraph> }
|
|
77
|
+
@if (!alertFormOpen()) {
|
|
78
|
+
@if (store.alerts().length) {
|
|
79
|
+
<good-button (click)="newAlert()">Create alert</good-button>
|
|
80
|
+
<good-table label="Spend alerts" tableStyle="compact" [data]="store.alerts()" [columns]="alertColumns"
|
|
81
|
+
[getRowId]="alertRowId" [reorderable]="false" emptyMessage="No spend alerts yet. Create one to monitor a budget.">
|
|
82
|
+
<ng-template goodTableCell="budget" let-alert>{{ alert.budget | currency:'USD' }}</ng-template>
|
|
83
|
+
<ng-template goodTableCell="thresholds" let-alert>{{ alert.thresholds.join('%, ') }}%</ng-template>
|
|
84
|
+
<ng-template goodTableCell="id" let-alert>
|
|
85
|
+
<good-action-group spacing="small">
|
|
86
|
+
<good-button variant="ghost" size="small" (click)="editAlert(alert)">Edit</good-button>
|
|
87
|
+
<good-button variant="ghost" size="small" (click)="deletingAlert.set(alert)">Delete</good-button>
|
|
88
|
+
</good-action-group>
|
|
89
|
+
</ng-template>
|
|
90
|
+
</good-table>
|
|
91
|
+
} @else {
|
|
92
|
+
<good-card>
|
|
93
|
+
<good-card-header title="No spend alerts yet" [headingLevel]="3" tone="secondary" />
|
|
94
|
+
<good-paragraph>Create a budget to track the spend you care about.</good-paragraph>
|
|
95
|
+
<good-button (click)="newAlert()">Create your first alert</good-button>
|
|
96
|
+
</good-card>
|
|
97
|
+
}
|
|
98
|
+
} @else {
|
|
99
|
+
<good-subheading [level]="3">{{ editingAlert() ? 'Edit' : 'Create' }} spend alert</good-subheading>
|
|
100
|
+
<good-input label="Alert name" [showLabel]="true" [(value)]="alertName" />
|
|
101
|
+
<good-number-input label="Monthly budget in USD" [showLabel]="true" [min]="1" [max]="100000" [(value)]="alertBudget" />
|
|
102
|
+
<good-select label="Resource scope" [showLabel]="true" [options]="scopes" [(value)]="alertScope" />
|
|
103
|
+
<good-group appearance="plain" spacing="tight" title="Notify at">
|
|
104
|
+
<good-checkbox label="80% of budget" [showLabel]="true" [(checked)]="threshold80" />
|
|
105
|
+
<good-checkbox label="100% of budget" [showLabel]="true" [(checked)]="threshold100" />
|
|
106
|
+
</good-group>
|
|
107
|
+
<good-paragraph>Alerts appear in the GoodUI notification center in a connected application. This demo only saves the alert settings locally.</good-paragraph>
|
|
108
|
+
@if (formError()) { <good-alert tone="destructive" [message]="formError()" /> }
|
|
109
|
+
<good-action-group>
|
|
110
|
+
<good-button (click)="createAlert()">{{ editingAlert() ? 'Save alert' : 'Create alert' }}</good-button>
|
|
111
|
+
<good-button variant="outline" (click)="alertFormOpen.set(false)">Cancel</good-button>
|
|
112
|
+
</good-action-group>
|
|
113
|
+
}
|
|
114
|
+
</good-group>
|
|
115
|
+
</good-tab>
|
|
116
|
+
<good-tab value="history" label="History">
|
|
117
|
+
<good-group appearance="plain" title="Billing history">
|
|
118
|
+
<good-table label="Invoices" tableStyle="compact" [data]="invoices" [columns]="invoiceColumns"
|
|
119
|
+
[getRowId]="invoiceRowId" [reorderable]="false">
|
|
120
|
+
<ng-template goodTableCell="id" let-invoice>
|
|
121
|
+
<good-button variant="ghost" size="small" (click)="selectedInvoice.set(invoice)">{{ invoice.id }}</good-button>
|
|
122
|
+
</ng-template>
|
|
123
|
+
<ng-template goodTableCell="total" let-invoice>{{ invoice.total | currency:'USD' }}</ng-template>
|
|
124
|
+
</good-table>
|
|
125
|
+
</good-group>
|
|
126
|
+
</good-tab>
|
|
127
|
+
<good-tab value="settings" label="Settings">
|
|
128
|
+
<good-group appearance="plain" title="Billing settings">
|
|
129
|
+
<good-detail-list>
|
|
130
|
+
<div goodDetailRow><dt>Company address</dt><dd>Not set in this local demo</dd></div>
|
|
131
|
+
<div goodDetailRow><dt>Tax identification</dt><dd>{{ taxId() || 'Not set' }}</dd></div>
|
|
132
|
+
<div goodDetailRow><dt>Support plan</dt><dd>Starter</dd></div>
|
|
133
|
+
<div goodDetailRow><dt>Purchase orders</dt><dd>None</dd></div>
|
|
134
|
+
</good-detail-list>
|
|
135
|
+
<good-input label="Tax ID" [showLabel]="true" [(value)]="taxId" placeholder="Optional demo value" />
|
|
136
|
+
<good-paragraph>This value stays in memory and is never sent to a payment service.</good-paragraph>
|
|
137
|
+
</good-group>
|
|
138
|
+
</good-tab>
|
|
139
|
+
</good-tabs>
|
|
140
|
+
</good-section>
|
|
141
|
+
</good-main-view>
|
|
142
|
+
|
|
143
|
+
<good-modal [open]="!!deletingAlert()" (openChange)="!$event && deletingAlert.set(null)" size="small">
|
|
144
|
+
<good-modal-header title="Delete spend alert" />
|
|
145
|
+
<good-paragraph>Delete {{ deletingAlert()?.name }} from this local demo?</good-paragraph>
|
|
146
|
+
<good-modal-footer><good-action-group>
|
|
147
|
+
<good-button variant="outline" (click)="deletingAlert.set(null)">Cancel</good-button>
|
|
148
|
+
<good-button variant="destructive" (click)="deleteAlert()">Delete alert</good-button>
|
|
149
|
+
</good-action-group></good-modal-footer>
|
|
150
|
+
</good-modal>
|
|
151
|
+
<good-modal [open]="!!selectedInvoice()" (openChange)="!$event && selectedInvoice.set(null)" size="small">
|
|
152
|
+
<good-modal-header title="Invoice details" />
|
|
153
|
+
<good-detail-list>
|
|
154
|
+
<div goodDetailRow><dt>Invoice</dt><dd>{{ selectedInvoice()?.id }}</dd></div>
|
|
155
|
+
<div goodDetailRow><dt>Period</dt><dd>{{ selectedInvoice()?.period }}</dd></div>
|
|
156
|
+
<div goodDetailRow><dt>Amount</dt><dd>{{ selectedInvoice()?.total | currency:'USD' }}</dd></div>
|
|
157
|
+
<div goodDetailRow><dt>Status</dt><dd>{{ selectedInvoice()?.status }}</dd></div>
|
|
158
|
+
</good-detail-list>
|
|
159
|
+
<good-modal-footer><good-button variant="outline" (click)="selectedInvoice.set(null)">Close</good-button></good-modal-footer>
|
|
160
|
+
</good-modal>
|
|
161
|
+
<good-modal [(open)]="sourceOpen" size="large" [scrollBody]="true">
|
|
162
|
+
<good-modal-header title="Billing source" />
|
|
163
|
+
<good-code-block [code]="htmlSource" language="html" title="billing-page.html" />
|
|
164
|
+
<good-code-block [code]="tsSource" language="typescript" title="billing-page.ts" />
|
|
165
|
+
<good-code-block [code]="storeSource" language="typescript" title="cloudhoster-store.ts" />
|
|
166
|
+
</good-modal>
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { CurrencyPipe } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, inject, signal } from '@angular/core';
|
|
3
|
+
import {
|
|
4
|
+
GoodActionGroupComponent, GoodAlertComponent, GoodBarChartComponent, GoodButtonComponent,
|
|
5
|
+
GoodCardComponent, GoodCardHeaderComponent, GoodChartAxisComponent, GoodChartBarComponent,
|
|
6
|
+
GoodChartDataSource, GoodChartLineComponent, GoodCheckboxComponent, GoodCodeBlockComponent,
|
|
7
|
+
GoodColumnComponent, GoodColumnsComponent, GoodDetailListComponent, GoodDetailRowDirective,
|
|
8
|
+
GoodGroupComponent, GoodHeadingComponent, GoodHintComponent, GoodInputComponent, GoodLineChartComponent,
|
|
9
|
+
GoodLinkComponent, GoodMainViewComponent, GoodModalComponent, GoodModalFooterComponent,
|
|
10
|
+
GoodModalHeaderComponent, GoodNumberInputComponent, GoodParagraphComponent,
|
|
11
|
+
GoodSectionComponent, GoodSelectComponent, GoodSubheadingComponent, GoodTabComponent,
|
|
12
|
+
GoodTableCellDirective, GoodTableColumn, GoodTableComponent, GoodTabsComponent,
|
|
13
|
+
} from '@cloudfrogger/goodui';
|
|
14
|
+
import { CloudhosterStore, DemoSpendAlert } from './cloudhoster-store';
|
|
15
|
+
import { cloudBillingHtml, cloudBillingTs, cloudStoreTs } from './source-code.generated';
|
|
16
|
+
|
|
17
|
+
interface DemoInvoice { id: string; period: string; total: number; status: string }
|
|
18
|
+
|
|
19
|
+
@Component({
|
|
20
|
+
selector: 'example-cloudhoster-billing', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush,
|
|
21
|
+
imports: [CurrencyPipe, GoodActionGroupComponent, GoodAlertComponent, GoodBarChartComponent,
|
|
22
|
+
GoodButtonComponent, GoodCardComponent, GoodCardHeaderComponent, GoodChartAxisComponent,
|
|
23
|
+
GoodChartBarComponent, GoodChartLineComponent, GoodCheckboxComponent, GoodCodeBlockComponent,
|
|
24
|
+
GoodColumnComponent, GoodColumnsComponent, GoodDetailListComponent, GoodDetailRowDirective,
|
|
25
|
+
GoodGroupComponent, GoodHeadingComponent, GoodHintComponent, GoodInputComponent, GoodLineChartComponent,
|
|
26
|
+
GoodLinkComponent, GoodMainViewComponent, GoodModalComponent, GoodModalFooterComponent,
|
|
27
|
+
GoodModalHeaderComponent, GoodNumberInputComponent, GoodParagraphComponent,
|
|
28
|
+
GoodSectionComponent, GoodSelectComponent, GoodSubheadingComponent, GoodTabComponent,
|
|
29
|
+
GoodTableCellDirective, GoodTableComponent, GoodTabsComponent],
|
|
30
|
+
templateUrl: './billing-page.html',
|
|
31
|
+
})
|
|
32
|
+
export class CloudhosterBillingPageComponent {
|
|
33
|
+
readonly store = inject(CloudhosterStore);
|
|
34
|
+
readonly sourceOpen = signal(false);
|
|
35
|
+
readonly alertFormOpen = signal(false);
|
|
36
|
+
readonly editingAlert = signal<DemoSpendAlert | null>(null);
|
|
37
|
+
readonly deletingAlert = signal<DemoSpendAlert | null>(null);
|
|
38
|
+
readonly selectedInvoice = signal<DemoInvoice | null>(null);
|
|
39
|
+
readonly alertName = signal('Monthly budget');
|
|
40
|
+
readonly alertBudget = signal(100);
|
|
41
|
+
readonly alertScope = signal<string | null>('All resources');
|
|
42
|
+
readonly threshold80 = signal(true);
|
|
43
|
+
readonly threshold100 = signal(true);
|
|
44
|
+
readonly formError = signal('');
|
|
45
|
+
readonly paymentNotice = signal('');
|
|
46
|
+
readonly taxId = signal('');
|
|
47
|
+
readonly period = signal<string | null>('Current month');
|
|
48
|
+
readonly groupBy = signal<string | null>('Product');
|
|
49
|
+
readonly selectedCategory = signal<'all' | 'database' | 'compute'>('all');
|
|
50
|
+
readonly periods = [{ value: 'Current month', label: 'Current month' },
|
|
51
|
+
{ value: 'Last month', label: 'Last month' }, { value: 'Last 30 days', label: 'Last 30 days' }];
|
|
52
|
+
readonly groupings = [{ value: 'Product', label: 'Product' }, { value: 'Project', label: 'Project' }];
|
|
53
|
+
readonly scopes = [{ value: 'All resources', label: 'All resources' },
|
|
54
|
+
{ value: 'Databases', label: 'Databases' }, { value: 'Compute', label: 'Compute' }];
|
|
55
|
+
readonly invoices: DemoInvoice[] = [
|
|
56
|
+
{ id: 'INV-2026-10', period: 'October 2026', total: 60.90, status: 'Paid' },
|
|
57
|
+
{ id: 'INV-2026-09', period: 'September 2026', total: 60.90, status: 'Paid' },
|
|
58
|
+
{ id: 'INV-2026-08', period: 'August 2026', total: 53.40, status: 'Paid' },
|
|
59
|
+
];
|
|
60
|
+
readonly invoiceColumns: GoodTableColumn<DemoInvoice>[] = [
|
|
61
|
+
{ accessorKey: 'period', header: 'Billing period' },
|
|
62
|
+
{ accessorKey: 'id', header: 'Invoice', meta: { visibleFrom: 'sm' } },
|
|
63
|
+
{ accessorKey: 'total', header: 'Amount', meta: { align: 'end' } },
|
|
64
|
+
{ accessorKey: 'status', header: 'Status', meta: { visibleFrom: 'sm' } },
|
|
65
|
+
];
|
|
66
|
+
readonly alertColumns: GoodTableColumn<DemoSpendAlert>[] = [
|
|
67
|
+
{ accessorKey: 'name', header: 'Name' },
|
|
68
|
+
{ accessorKey: 'budget', header: 'Monthly budget', meta: { align: 'end' } },
|
|
69
|
+
{ accessorKey: 'thresholds', header: 'Thresholds', meta: { visibleFrom: 'sm' } },
|
|
70
|
+
{ accessorKey: 'id', header: 'Actions' },
|
|
71
|
+
];
|
|
72
|
+
readonly alertRowId = (item: DemoSpendAlert) => item.id;
|
|
73
|
+
readonly invoiceRowId = (item: DemoInvoice) => item.id;
|
|
74
|
+
readonly spendSource: GoodChartDataSource[] = [{
|
|
75
|
+
id: 'spend',
|
|
76
|
+
keys: [{ key: 'day', type: 'date' }, { key: 'database', type: 'number', unit: '$' },
|
|
77
|
+
{ key: 'compute', type: 'number', unit: '$' }],
|
|
78
|
+
rows: Array.from({ length: 12 }, (_, index) => ({
|
|
79
|
+
day: `2026-11-${String(index + 1).padStart(2, '0')}`,
|
|
80
|
+
database: 2.1 + (index % 3) * .2, compute: .5 + (index % 2) * .15,
|
|
81
|
+
})),
|
|
82
|
+
}];
|
|
83
|
+
readonly visibleSpendSource = computed<GoodChartDataSource[]>(() => {
|
|
84
|
+
const factor = this.period() === 'Last month' ? .85 : this.period() === 'Last 30 days' ? 1.12 : 1;
|
|
85
|
+
const month = this.period() === 'Last month' ? '10' : '11';
|
|
86
|
+
return this.spendSource.map(source => ({ ...source, rows: source.rows.map(row => ({
|
|
87
|
+
...row, day: String(row['day']).replace('-11-', `-${month}-`),
|
|
88
|
+
database: Number(row['database']) * factor, compute: Number(row['compute']) * factor,
|
|
89
|
+
})) }));
|
|
90
|
+
});
|
|
91
|
+
readonly breakdownSource = computed<GoodChartDataSource[]>(() => {
|
|
92
|
+
const factor = this.period() === 'Last month' ? .85 : this.period() === 'Last 30 days' ? 1.12 : 1;
|
|
93
|
+
const byProject = this.groupBy() === 'Project';
|
|
94
|
+
const rows = byProject
|
|
95
|
+
? [{ product: 'Production', amount: 60.90 }, { product: 'Development', amount: 17.40 }]
|
|
96
|
+
: [{ product: 'Databases', amount: 60.90 }, { product: 'Compute', amount: 12 },
|
|
97
|
+
{ product: 'Storage', amount: 5.40 }];
|
|
98
|
+
return [{ id: 'breakdown', keys: [{ key: 'product', type: 'category' },
|
|
99
|
+
{ key: 'amount', type: 'number', unit: '$' }], rows: rows.map(row => ({ ...row, amount: row.amount * factor })) }];
|
|
100
|
+
});
|
|
101
|
+
readonly remaining = computed(() => Math.max(0, 100 - this.store.totalMonthly()));
|
|
102
|
+
readonly htmlSource = cloudBillingHtml;
|
|
103
|
+
readonly tsSource = cloudBillingTs;
|
|
104
|
+
readonly storeSource = cloudStoreTs;
|
|
105
|
+
|
|
106
|
+
newAlert(): void {
|
|
107
|
+
this.editingAlert.set(null); this.alertName.set('Monthly budget'); this.alertBudget.set(100);
|
|
108
|
+
this.alertScope.set('All resources'); this.threshold80.set(true); this.threshold100.set(true);
|
|
109
|
+
this.formError.set(''); this.alertFormOpen.set(true);
|
|
110
|
+
}
|
|
111
|
+
editAlert(alert: DemoSpendAlert): void {
|
|
112
|
+
this.editingAlert.set(alert); this.alertName.set(alert.name); this.alertBudget.set(alert.budget);
|
|
113
|
+
this.alertScope.set(alert.scope); this.threshold80.set(alert.thresholds.includes(80));
|
|
114
|
+
this.threshold100.set(alert.thresholds.includes(100)); this.formError.set(''); this.alertFormOpen.set(true);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
createAlert(): void {
|
|
118
|
+
const name = this.alertName().trim();
|
|
119
|
+
const thresholds = [this.threshold80() ? 80 : 0, this.threshold100() ? 100 : 0].filter(Boolean);
|
|
120
|
+
if (!name || this.alertBudget() <= 0 || !thresholds.length) {
|
|
121
|
+
this.formError.set('Enter a name, a positive budget, and at least one threshold.'); return;
|
|
122
|
+
}
|
|
123
|
+
const details = { name, budget: this.alertBudget(), thresholds, scope: this.alertScope() || 'All resources' };
|
|
124
|
+
const editing = this.editingAlert();
|
|
125
|
+
if (editing) this.store.updateAlert(editing.id, details);
|
|
126
|
+
else this.store.addAlert(details);
|
|
127
|
+
this.alertFormOpen.set(false); this.formError.set('');
|
|
128
|
+
}
|
|
129
|
+
deleteAlert(): void {
|
|
130
|
+
const alert = this.deletingAlert();
|
|
131
|
+
if (alert) this.store.deleteAlert(alert.id);
|
|
132
|
+
this.deletingAlert.set(null);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Injectable, computed, signal } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
export interface DemoCluster {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
engine: string;
|
|
7
|
+
version: string;
|
|
8
|
+
edition: string;
|
|
9
|
+
region: string;
|
|
10
|
+
cpu: number;
|
|
11
|
+
memoryGb: number;
|
|
12
|
+
storageGb: number;
|
|
13
|
+
autoscale: boolean;
|
|
14
|
+
monthlyPrice: number;
|
|
15
|
+
status: 'provisioning' | 'online';
|
|
16
|
+
tags: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface DemoPool {
|
|
20
|
+
id: string;
|
|
21
|
+
clusterId: string;
|
|
22
|
+
name: string;
|
|
23
|
+
database: string;
|
|
24
|
+
mode: string;
|
|
25
|
+
size: number;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface DemoSpendAlert {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
budget: number;
|
|
32
|
+
thresholds: number[];
|
|
33
|
+
scope: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@Injectable({ providedIn: 'root' })
|
|
37
|
+
export class CloudhosterStore {
|
|
38
|
+
readonly clusters = signal<DemoCluster[]>([{
|
|
39
|
+
id: 'db-demo', name: 'app-postgres', engine: 'PostgreSQL', version: '18', edition: 'Standard',
|
|
40
|
+
region: 'New York', cpu: 2, memoryGb: 4, storageGb: 60, autoscale: true,
|
|
41
|
+
monthlyPrice: 60.90, status: 'online', tags: 'production',
|
|
42
|
+
}]);
|
|
43
|
+
readonly pools = signal<DemoPool[]>([{
|
|
44
|
+
id: 'pool-app', clusterId: 'db-demo', name: 'app-pool', database: 'app', mode: 'transaction', size: 20,
|
|
45
|
+
}]);
|
|
46
|
+
readonly alerts = signal<DemoSpendAlert[]>([]);
|
|
47
|
+
readonly notice = signal('');
|
|
48
|
+
readonly totalMonthly = computed(() => this.clusters().reduce((sum, item) => sum + item.monthlyPrice, 0));
|
|
49
|
+
|
|
50
|
+
createCluster(details: Omit<DemoCluster, 'id' | 'status'>): DemoCluster {
|
|
51
|
+
const item: DemoCluster = { ...details, id: `db-${Date.now()}`, status: 'provisioning' };
|
|
52
|
+
this.clusters.update(items => [...items, item]);
|
|
53
|
+
this.notice.set(`${item.name} was added to this local demo.`);
|
|
54
|
+
return item;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
deleteCluster(id: string): void {
|
|
58
|
+
this.clusters.update(items => items.filter(item => item.id !== id));
|
|
59
|
+
this.pools.update(items => items.filter(item => item.clusterId !== id));
|
|
60
|
+
this.notice.set('The demo database was removed.');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
updateCluster(id: string, changes: Partial<DemoCluster>): void {
|
|
64
|
+
this.clusters.update(items => items.map(item => item.id === id ? { ...item, ...changes } : item));
|
|
65
|
+
this.notice.set('Cluster settings updated in this local demo.');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
addPool(details: Omit<DemoPool, 'id'>): void {
|
|
69
|
+
this.pools.update(items => [...items, { ...details, id: `pool-${Date.now()}` }]);
|
|
70
|
+
this.notice.set('Connection pool added to this local demo.');
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
deletePool(id: string): void {
|
|
74
|
+
this.pools.update(items => items.filter(item => item.id !== id));
|
|
75
|
+
this.notice.set('Connection pool removed from this local demo.');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
addAlert(details: Omit<DemoSpendAlert, 'id'>): void {
|
|
79
|
+
this.alerts.update(items => [...items, { ...details, id: `alert-${Date.now()}` }]);
|
|
80
|
+
this.notice.set('Spend alert added to this local demo.');
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
updateAlert(id: string, details: Omit<DemoSpendAlert, 'id'>): void {
|
|
84
|
+
this.alerts.update(items => items.map(item => item.id === id ? { id, ...details } : item));
|
|
85
|
+
this.notice.set('Spend alert updated in this local demo.');
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
deleteAlert(id: string): void {
|
|
89
|
+
this.alerts.update(items => items.filter(item => item.id !== id));
|
|
90
|
+
this.notice.set('Spend alert removed from this local demo.');
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
<good-main-view layout="fill">
|
|
2
|
+
<good-assistant-panel label="Monthly estimate" appearance="soft" [(open)]="summaryOpen">
|
|
3
|
+
<good-assistant-main>
|
|
4
|
+
<good-section>
|
|
5
|
+
<good-prose>
|
|
6
|
+
<good-heading-group>
|
|
7
|
+
<good-eyebrow>Cloudhoster · Managed databases</good-eyebrow>
|
|
8
|
+
<good-heading>Create database cluster</good-heading>
|
|
9
|
+
<good-summary>Build the database your application needs.</good-summary>
|
|
10
|
+
</good-heading-group>
|
|
11
|
+
<good-paragraph>Five choices, one live estimate. This demo saves a local cluster record.</good-paragraph>
|
|
12
|
+
</good-prose>
|
|
13
|
+
</good-section>
|
|
14
|
+
<good-timeline appearance="sections" color="brand" ariaLabel="Database configuration steps">
|
|
15
|
+
<good-timeline-section title="Database engine" state="completed">
|
|
16
|
+
<good-group appearance="plain">
|
|
17
|
+
<good-radio-group label="Engine" [options]="engineOptions" [value]="engine()" (valueChange)="chooseEngine($event)" />
|
|
18
|
+
<good-select label="Version" [showLabel]="true" [options]="versions()" [(value)]="version" />
|
|
19
|
+
</good-group>
|
|
20
|
+
</good-timeline-section>
|
|
21
|
+
<good-timeline-section title="Edition and location" state="completed">
|
|
22
|
+
<good-group appearance="plain">
|
|
23
|
+
<good-radio-group label="Edition" [options]="editionOptions" orientation="horizontal" [(value)]="edition" />
|
|
24
|
+
<good-select label="Region" [showLabel]="true" [options]="regions" [(value)]="region" />
|
|
25
|
+
</good-group>
|
|
26
|
+
</good-timeline-section>
|
|
27
|
+
<good-timeline-section title="Compute" [state]="plan() ? 'completed' : 'attention'">
|
|
28
|
+
<good-group appearance="plain">
|
|
29
|
+
<good-paragraph>Choose shared resources for general workloads, or dedicated CPUs for sustained load.</good-paragraph>
|
|
30
|
+
<good-tabs ariaLabel="Compute families" (tabActivated)="chooseFamily($event.id)">
|
|
31
|
+
<good-tab value="shared" label="Shared CPU" [selected]="true">
|
|
32
|
+
<good-radio-group label="Shared plan" [options]="sharedPlans" [(value)]="plan" />
|
|
33
|
+
</good-tab>
|
|
34
|
+
<good-tab value="dedicated" label="Dedicated CPU">
|
|
35
|
+
<good-radio-group label="Dedicated plan" [options]="dedicatedPlans" [(value)]="plan" />
|
|
36
|
+
</good-tab>
|
|
37
|
+
</good-tabs>
|
|
38
|
+
</good-group>
|
|
39
|
+
</good-timeline-section>
|
|
40
|
+
<good-timeline-section title="Storage" state="completed">
|
|
41
|
+
<good-group appearance="plain">
|
|
42
|
+
<good-number-input label="Storage in GB" [showLabel]="true" [min]="10" [max]="1000" [step]="10"
|
|
43
|
+
[(value)]="storageGb" />
|
|
44
|
+
<good-checkbox label="Automatically grow storage when needed" [showLabel]="true" [(checked)]="autoscale" />
|
|
45
|
+
<good-paragraph>Storage adds {{ storagePrice() | currency:'USD' }} per month to this estimate.</good-paragraph>
|
|
46
|
+
</good-group>
|
|
47
|
+
</good-timeline-section>
|
|
48
|
+
<good-timeline-section title="Name and create" [state]="name().trim() ? 'current' : 'attention'">
|
|
49
|
+
<good-group appearance="plain">
|
|
50
|
+
<good-input label="Cluster name" [showLabel]="true" [required]="true" [(value)]="name"
|
|
51
|
+
placeholder="app-postgres" />
|
|
52
|
+
<good-input label="Tags" [showLabel]="true" [(value)]="tags" placeholder="production, api" />
|
|
53
|
+
@if (error()) { <good-alert tone="destructive" title="Check the cluster name" [message]="error()" /> }
|
|
54
|
+
<good-action-group>
|
|
55
|
+
<good-button (click)="create()">Create database cluster</good-button>
|
|
56
|
+
<good-button variant="outline" (click)="cancel()">Cancel</good-button>
|
|
57
|
+
</good-action-group>
|
|
58
|
+
</good-group>
|
|
59
|
+
</good-timeline-section>
|
|
60
|
+
</good-timeline>
|
|
61
|
+
</good-assistant-main>
|
|
62
|
+
<good-assistant-header><good-subheading [level]="2">Monthly estimate</good-subheading></good-assistant-header>
|
|
63
|
+
<good-assistant-body>
|
|
64
|
+
<good-prose>
|
|
65
|
+
<good-subheading [level]="3">{{ engine() }} · {{ edition() }}</good-subheading>
|
|
66
|
+
<good-paragraph>{{ cpu() }} vCPU · {{ memoryGb() }} GB RAM · {{ region() }}</good-paragraph>
|
|
67
|
+
<good-detail-list>
|
|
68
|
+
<div goodDetailRow><dt>Compute</dt><dd>{{ planPrice() | currency:'USD' }}</dd></div>
|
|
69
|
+
<div goodDetailRow><dt>Storage · {{ storageGb() }} GB</dt><dd>{{ storagePrice() | currency:'USD' }}</dd></div>
|
|
70
|
+
<div goodDetailRow><dt>Autoscale</dt><dd>{{ autoscale() ? 'On' : 'Off' }}</dd></div>
|
|
71
|
+
</good-detail-list>
|
|
72
|
+
</good-prose>
|
|
73
|
+
</good-assistant-body>
|
|
74
|
+
<good-assistant-footer>
|
|
75
|
+
<good-prose>
|
|
76
|
+
<good-separator variant="line" />
|
|
77
|
+
<good-subheading [level]="3">{{ totalPrice() | currency:'USD' }} / month</good-subheading>
|
|
78
|
+
<good-hint>Illustrative estimate, before tax.</good-hint>
|
|
79
|
+
<good-button variant="ghost" size="small" (click)="sourceOpen.set(true)">View source</good-button>
|
|
80
|
+
</good-prose>
|
|
81
|
+
</good-assistant-footer>
|
|
82
|
+
<good-assistant-mobile>
|
|
83
|
+
<good-paragraph>{{ engine() }} · {{ cpu() }} vCPU · {{ storageGb() }} GB</good-paragraph>
|
|
84
|
+
<good-subheading [level]="3">{{ totalPrice() | currency:'USD' }} / month</good-subheading>
|
|
85
|
+
</good-assistant-mobile>
|
|
86
|
+
</good-assistant-panel>
|
|
87
|
+
</good-main-view>
|
|
88
|
+
<good-modal [(open)]="sourceOpen" size="large" [scrollBody]="true">
|
|
89
|
+
<good-modal-header title="Database creation source" />
|
|
90
|
+
<good-code-block [code]="htmlSource" language="html" title="create-database-page.html" />
|
|
91
|
+
<good-code-block [code]="tsSource" language="typescript" title="create-database-page.ts" />
|
|
92
|
+
<good-code-block [code]="storeSource" language="typescript" title="cloudhoster-store.ts" />
|
|
93
|
+
</good-modal>
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { CurrencyPipe } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, inject, signal } from '@angular/core';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import {
|
|
5
|
+
GoodActionGroupComponent, GoodAlertComponent, GoodAssistantBodyComponent, GoodAssistantFooterComponent,
|
|
6
|
+
GoodAssistantHeaderComponent, GoodAssistantMainComponent, GoodAssistantMobileComponent,
|
|
7
|
+
GoodAssistantPanelComponent, GoodButtonComponent, GoodCheckboxComponent, GoodCodeBlockComponent,
|
|
8
|
+
GoodDetailListComponent, GoodDetailRowDirective, GoodEyebrowComponent, GoodGroupComponent, GoodHeadingComponent,
|
|
9
|
+
GoodHeadingGroupComponent, GoodHintComponent,
|
|
10
|
+
GoodInputComponent, GoodMainViewComponent, GoodModalComponent, GoodModalHeaderComponent,
|
|
11
|
+
GoodNumberInputComponent, GoodParagraphComponent, GoodProseComponent, GoodRadioGroupComponent,
|
|
12
|
+
GoodSectionComponent, GoodSelectComponent, GoodSeparatorComponent, GoodSubheadingComponent,
|
|
13
|
+
GoodSummaryComponent, GoodTabComponent, GoodTabsComponent, GoodTimelineComponent, GoodTimelineSectionComponent,
|
|
14
|
+
} from '@cloudfrogger/goodui';
|
|
15
|
+
import { CloudhosterStore } from './cloudhoster-store';
|
|
16
|
+
import { cloudCreateHtml, cloudCreateTs, cloudStoreTs } from './source-code.generated';
|
|
17
|
+
|
|
18
|
+
@Component({
|
|
19
|
+
selector: 'example-cloudhoster-create-database', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
+
imports: [CurrencyPipe, GoodActionGroupComponent, GoodAlertComponent, GoodAssistantBodyComponent, GoodAssistantFooterComponent,
|
|
21
|
+
GoodAssistantHeaderComponent, GoodAssistantMainComponent, GoodAssistantMobileComponent,
|
|
22
|
+
GoodAssistantPanelComponent, GoodButtonComponent, GoodCheckboxComponent, GoodCodeBlockComponent,
|
|
23
|
+
GoodDetailListComponent, GoodDetailRowDirective, GoodEyebrowComponent, GoodGroupComponent, GoodHeadingComponent,
|
|
24
|
+
GoodHeadingGroupComponent, GoodHintComponent,
|
|
25
|
+
GoodInputComponent, GoodMainViewComponent, GoodModalComponent, GoodModalHeaderComponent,
|
|
26
|
+
GoodNumberInputComponent, GoodParagraphComponent, GoodProseComponent, GoodRadioGroupComponent,
|
|
27
|
+
GoodSectionComponent, GoodSelectComponent, GoodSeparatorComponent, GoodSubheadingComponent,
|
|
28
|
+
GoodSummaryComponent, GoodTabComponent, GoodTabsComponent, GoodTimelineComponent, GoodTimelineSectionComponent],
|
|
29
|
+
templateUrl: './create-database-page.html',
|
|
30
|
+
})
|
|
31
|
+
export class CloudhosterCreateDatabasePageComponent {
|
|
32
|
+
private readonly router = inject(Router);
|
|
33
|
+
private readonly route = inject(ActivatedRoute);
|
|
34
|
+
private readonly requestedEngine = this.route.snapshot.queryParamMap.get('engine');
|
|
35
|
+
private readonly initialEngine = this.requestedEngine === 'MySQL' || this.requestedEngine === 'MongoDB'
|
|
36
|
+
? this.requestedEngine : 'PostgreSQL';
|
|
37
|
+
readonly store = inject(CloudhosterStore);
|
|
38
|
+
readonly summaryOpen = signal(false);
|
|
39
|
+
readonly sourceOpen = signal(false);
|
|
40
|
+
readonly error = signal('');
|
|
41
|
+
readonly engine = signal<string | null>(this.initialEngine);
|
|
42
|
+
readonly version = signal<string | null>(this.initialEngine === 'MySQL' ? '8.4' : this.initialEngine === 'MongoDB' ? '8.0' : '18');
|
|
43
|
+
readonly edition = signal<string | null>('Standard');
|
|
44
|
+
readonly region = signal<string | null>('New York');
|
|
45
|
+
readonly cpuFamily = signal('shared');
|
|
46
|
+
readonly plan = signal<string | null>('basic');
|
|
47
|
+
readonly storageGb = signal(10);
|
|
48
|
+
readonly autoscale = signal(true);
|
|
49
|
+
readonly name = signal(this.initialEngine === 'MySQL' ? 'app-mysql-2' : this.initialEngine === 'MongoDB' ? 'app-mongo-2' : 'app-postgres-2');
|
|
50
|
+
readonly tags = signal('');
|
|
51
|
+
readonly engineOptions = [
|
|
52
|
+
{ value: 'PostgreSQL', label: 'PostgreSQL', description: 'Relational data and extensions' },
|
|
53
|
+
{ value: 'MySQL', label: 'MySQL', description: 'Popular open-source SQL database' },
|
|
54
|
+
{ value: 'MongoDB', label: 'MongoDB', description: 'Document-oriented storage' },
|
|
55
|
+
];
|
|
56
|
+
readonly editionOptions = [
|
|
57
|
+
{ value: 'Standard', label: 'Standard', description: 'Predictable workloads and essential insights' },
|
|
58
|
+
{ value: 'Advanced', label: 'Advanced', description: 'More headroom and expanded observability' },
|
|
59
|
+
];
|
|
60
|
+
readonly sharedPlans = [
|
|
61
|
+
{ value: 'basic', label: 'Basic · 1 vCPU / 1 GB', description: '$13.00 per month' },
|
|
62
|
+
{ value: 'balanced', label: 'Balanced · 2 vCPU / 4 GB', description: '$60.90 per month' },
|
|
63
|
+
];
|
|
64
|
+
readonly dedicatedPlans = [
|
|
65
|
+
{ value: 'dedicated', label: 'Dedicated · 4 vCPU / 8 GB', description: '$122.10 per month' },
|
|
66
|
+
];
|
|
67
|
+
readonly versions = computed(() => ({
|
|
68
|
+
PostgreSQL: ['18', '17'], MySQL: ['8.4', '8.0'], MongoDB: ['8.0', '7.0'],
|
|
69
|
+
}[this.engine() || 'PostgreSQL'] || ['18', '17']).map(value => ({ value, label: value })));
|
|
70
|
+
readonly regions = [{ value: 'New York', label: 'New York' }, { value: 'Frankfurt', label: 'Frankfurt' },
|
|
71
|
+
{ value: 'Singapore', label: 'Singapore' }];
|
|
72
|
+
readonly planPrice = computed(() => this.plan() === 'dedicated' ? 122.10 : this.plan() === 'balanced' ? 60.90 : 13);
|
|
73
|
+
readonly cpu = computed(() => this.plan() === 'dedicated' ? 4 : this.plan() === 'balanced' ? 2 : 1);
|
|
74
|
+
readonly memoryGb = computed(() => this.plan() === 'dedicated' ? 8 : this.plan() === 'balanced' ? 4 : 1);
|
|
75
|
+
readonly storagePrice = computed(() => Math.max(10, this.storageGb()) * .215);
|
|
76
|
+
readonly totalPrice = computed(() => this.planPrice() + this.storagePrice());
|
|
77
|
+
readonly htmlSource = cloudCreateHtml;
|
|
78
|
+
readonly tsSource = cloudCreateTs;
|
|
79
|
+
readonly storeSource = cloudStoreTs;
|
|
80
|
+
|
|
81
|
+
chooseFamily(id: string): void {
|
|
82
|
+
this.cpuFamily.set(id);
|
|
83
|
+
this.plan.set(id === 'dedicated' ? 'dedicated' : 'basic');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
chooseEngine(value: string | null): void {
|
|
87
|
+
const suggestedNames = ['app-postgres-2', 'app-mysql-2', 'app-mongo-2'];
|
|
88
|
+
const useSuggestedName = suggestedNames.includes(this.name());
|
|
89
|
+
this.engine.set(value);
|
|
90
|
+
this.version.set(({
|
|
91
|
+
PostgreSQL: '18', MySQL: '8.4', MongoDB: '8.0',
|
|
92
|
+
} as Record<string, string>)[value || 'PostgreSQL'] || '18');
|
|
93
|
+
if (useSuggestedName) this.name.set(({
|
|
94
|
+
PostgreSQL: 'app-postgres-2', MySQL: 'app-mysql-2', MongoDB: 'app-mongo-2',
|
|
95
|
+
} as Record<string, string>)[value || 'PostgreSQL'] || 'app-postgres-2');
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
create(): void {
|
|
99
|
+
const name = this.name().trim().toLowerCase();
|
|
100
|
+
if (!/^[a-z0-9][a-z0-9-]{2,42}$/.test(name)) {
|
|
101
|
+
this.error.set('Use 3–43 lowercase letters, digits, or hyphens for the cluster name.'); return;
|
|
102
|
+
}
|
|
103
|
+
if (this.store.clusters().some(item => item.name === name)) {
|
|
104
|
+
this.error.set('Choose a name that is not already used in this demo.'); return;
|
|
105
|
+
}
|
|
106
|
+
this.error.set('');
|
|
107
|
+
const item = this.store.createCluster({ name, engine: this.engine() || 'PostgreSQL',
|
|
108
|
+
version: this.version() || '18', edition: this.edition() || 'Standard',
|
|
109
|
+
region: this.region() || 'New York', cpu: this.cpu(), memoryGb: this.memoryGb(),
|
|
110
|
+
storageGb: Math.max(10, this.storageGb()), autoscale: this.autoscale(),
|
|
111
|
+
monthlyPrice: this.totalPrice(), tags: this.tags().trim() });
|
|
112
|
+
void this.router.navigate(['/examples/case-studies/cloudhoster/databases', item.id]);
|
|
113
|
+
}
|
|
114
|
+
cancel(): void { void this.router.navigateByUrl('/examples/case-studies/cloudhoster/databases'); }
|
|
115
|
+
}
|