diff --git a/.agents/skills/angular-developer/SKILL.md b/.agents/skills/angular-developer/SKILL.md new file mode 100644 index 000000000..f332e3e08 --- /dev/null +++ b/.agents/skills/angular-developer/SKILL.md @@ -0,0 +1,130 @@ +--- +name: angular-developer +description: Generates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices on reactivity (signals, linkedSignal, resource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, or CLI tooling. +license: MIT +metadata: + author: Copyright 2026 Google LLC + version: '1.0' +--- + +# Angular Developer Guidelines + +1. Always analyze the project's Angular version before providing guidance, as best practices and available features can vary significantly between versions. If creating a new project with Angular CLI, do not specify a version unless prompted by the user. + +2. When generating code, follow Angular's style guide and best practices for maintainability and performance. Use the Angular CLI for scaffolding components, services, directives, pipes, and routes to ensure consistency. + +3. Once you finish generating code, run `ng build` to ensure there are no build errors. If there are errors, analyze the error messages and fix them before proceeding. Do not skip this step, as it is critical for ensuring the generated code is correct and functional. + +## Creating New Projects + +If no guidelines are provided by the user, here are same default rules to follow when creating a new Angular project: + +1. Use the latest stable version of Angular unless the user specifies otherwise. +2. Use Signals Forms for form management in new projects (available in Angular v21 and newer) [Find out more](references/signal-forms.md). + +**Execution Rules for `ng new`:** +When asked to create a new Angular project, you must determine the correct execution command by following these strict steps: + +**Step 1: Check for an explicit user version.** + +- **IF** the user requests a specific version (e.g., Angular 15), bypass local installations and strictly use `npx`. +- **Command:** `npx @angular/cli@ new ` + +**Step 2: Check for an existing Angular installation.** + +- **IF** no specific version is requested, run `ng version` in the terminal to check if the Angular CLI is already installed on the system. +- **IF** the command succeeds and returns an installed version, use the local/global installation directly. +- **Command:** `ng new ` + +**Step 3: Fallback to Latest.** + +- **IF** no specific version is requested AND the `ng version` command fails (indicating no Angular installation exists), you must use `npx` to fetch the latest version. +- **Command:** `npx @angular/cli@latest new ` + +## Components + +When working with Angular components, consult the following references based on the task: + +- **Fundamentals**: Anatomy, metadata, core concepts, and template control flow (@if, @for, @switch). Read [components.md](references/components.md) +- **Inputs**: Signal-based inputs, transforms, and model inputs. Read [inputs.md](references/inputs.md) +- **Outputs**: Signal-based outputs and custom event best practices. Read [outputs.md](references/outputs.md) +- **Host Elements**: Host bindings and attribute injection. Read [host-elements.md](references/host-elements.md) + +If you require deeper documentation not found in the references above, read the documentation at `https://angular.dev/guide/components`. + +## Reactivity and Data Management + +When managing state and data reactivity, use Angular Signals and consult the following references: + +- **Signals Overview**: Core signal concepts (`signal`, `computed`), reactive contexts, and `untracked`. Read [signals-overview.md](references/signals-overview.md) +- **Dependent State (`linkedSignal`)**: Creating writable state linked to source signals. Read [linked-signal.md](references/linked-signal.md) +- **Async Reactivity (`resource`)**: Fetching asynchronous data directly into signal state. Read [resource.md](references/resource.md) +- **Side Effects (`effect`)**: Logging, third-party DOM manipulation (`afterRenderEffect`), and when NOT to use effects. Read [effects.md](references/effects.md) + +## Forms + +In most cases for new apps, **prefer signal forms**. When making a forms decision, analyze the project and consider the following guidelines: + +- if the application is using v21 or newer and this is a new form, **prefer signal forms**. + -For older applications or when working with existing forms, use the appropriate form type that matches the applications current form strategy. + +- **Signal Forms**: Use signals for form state management. Read [signal-forms.md](references/signal-forms.md) +- **Template-driven forms**: Use for simple forms. Read [template-driven-forms.md](references/template-driven-forms.md) +- **Reactive forms**: Use for complex forms. Read [reactive-forms.md](references/reactive-forms.md) + +## Dependency Injection + +When implementing dependency injection in Angular, follow these guidelines: + +- **Fundamentals**: Overview of Dependency Injection, services, and the `inject()` function. Read [di-fundamentals.md](references/di-fundamentals.md) +- **Creating and Using Services**: Creating services, the `providedIn: 'root'` option, and injecting into components or other services. Read [creating-services.md](references/creating-services.md) +- **Defining Dependency Providers**: Automatic vs manual provision, `InjectionToken`, `useClass`, `useValue`, `useFactory`, and scopes. Read [defining-providers.md](references/defining-providers.md) +- **Injection Context**: Where `inject()` is allowed, `runInInjectionContext`, and `assertInInjectionContext`. Read [injection-context.md](references/injection-context.md) +- **Hierarchical Injectors**: The `EnvironmentInjector` vs `ElementInjector`, resolution rules, modifiers (`optional`, `skipSelf`), and `providers` vs `viewProviders`. Read [hierarchical-injectors.md](references/hierarchical-injectors.md) + +## Angular Aria + +When building accessible custom components for any of the following patterns: Accordion, Listbox, Combobox, Menu, Tabs, Toolbar, Tree, Grid, consult the following reference: + +- **Angular Aria Components**: Building headless, accessible components (Accordion, Listbox, Combobox, Menu, Tabs, Toolbar, Tree, Grid) and styling ARIA attributes. Read [angular-aria.md](references/angular-aria.md) + +## Routing + +When implementing navigation in Angular, consult the following references: + +- **Define Routes**: URL paths, static vs dynamic segments, wildcards, and redirects. Read [define-routes.md](references/define-routes.md) +- **Route Loading Strategies**: Eager vs lazy loading, and context-aware loading. Read [loading-strategies.md](references/loading-strategies.md) +- **Show Routes with Outlets**: Using ``, nested outlets, and named outlets. Read [show-routes-with-outlets.md](references/show-routes-with-outlets.md) +- **Navigate to Routes**: Declarative navigation with `RouterLink` and programmatic navigation with `Router`. Read [navigate-to-routes.md](references/navigate-to-routes.md) +- **Control Route Access with Guards**: Implementing `CanActivate`, `CanMatch`, and other guards for security. Read [route-guards.md](references/route-guards.md) +- **Data Resolvers**: Pre-fetching data before route activation with `ResolveFn`. Read [data-resolvers.md](references/data-resolvers.md) +- **Router Lifecycle and Events**: Chronological order of navigation events and debugging. Read [router-lifecycle.md](references/router-lifecycle.md) +- **Rendering Strategies**: CSR, SSG (Prerendering), and SSR with hydration. Read [rendering-strategies.md](references/rendering-strategies.md) +- **Route Transition Animations**: Enabling and customizing the View Transitions API. Read [route-animations.md](references/route-animations.md) + +If you require deeper documentation or more context, visit the [official Angular Routing guide](https://angular.dev/guide/routing). + +## Styling and Animations + +When implementing styling and animations in Angular, consult the following references: + +- **Using Tailwind CSS with Angular**: Integrating Tailwind CSS into Angular projects. Read [tailwind-css.md](references/tailwind-css.md) +- **Angular Animations**: Using native CSS (recommended) or the legacy DSL for dynamic effects. Read [angular-animations.md](references/angular-animations.md) +- **Styling components**: Best practices for component styles and encapsulation. Read [component-styling.md](references/component-styling.md) + +## Testing + +When writing or updating tests, consult the following references based on the task: + +- **Fundamentals**: Best practices for unit testing (Vitest), async patterns, and `TestBed`. Read [testing-fundamentals.md](references/testing-fundamentals.md) +- **Component Harnesses**: Standard patterns for robust component interaction. Read [component-harnesses.md](references/component-harnesses.md) +- **Router Testing**: Using `RouterTestingHarness` for reliable navigation tests. Read [router-testing.md](references/router-testing.md) +- **End-to-End (E2E) Testing**: Best practices for E2E tests with Cypress. Read [e2e-testing.md](references/e2e-testing.md) + +## Tooling + +When working with Angular tooling, consult the following references: + +- **Angular CLI**: Creating applications, generating code (components, routes, services), serving, and building. Read [cli.md](references/cli.md) +- **Code Modernization**: Automatically refactoring to modern standards using migrations. Read [migrations.md](references/migrations.md) +- **Angular MCP Server**: Available tools, configuration, and experimental features. Read [mcp.md](references/mcp.md) diff --git a/.agents/skills/angular-developer/references/angular-animations.md b/.agents/skills/angular-developer/references/angular-animations.md new file mode 100644 index 000000000..c96c4d9c6 --- /dev/null +++ b/.agents/skills/angular-developer/references/angular-animations.md @@ -0,0 +1,160 @@ +# Angular Animations + +When animating elements in Angular, **first analyze the project's Angular version** in `package.json`. +For modern applications (**Angular v20.2 and above**), prefer using native CSS with `animate.enter` and `animate.leave`. For older applications, you may need to use the deprecated `@angular/animations` package. + +## 1. Native CSS Animations (v20.2+ Recommended) + +Modern Angular provides `animate.enter` and `animate.leave` to animate elements as they enter or leave the DOM. They apply CSS classes at the appropriate times. + +### `animate.enter` and `animate.leave` + +Use these directly on elements to apply CSS classes during the enter or leave phase. Angular automatically removes the enter classes when the animation completes. For `animate.leave`, Angular waits for the animation to finish before removing the element from the DOM. + +`animate.enter` example: + +```html +@if (isShown()) { +
+

The box is entering.

+
+} +``` + +```css +/* Ensure you have a starting style if using transitions instead of keyframes */ +.enter-container { + border: 1px solid #dddddd; + margin-top: 1em; + padding: 20px; + font-weight: bold; + font-size: 20px; +} +.enter-container p { + margin: 0; +} +.enter-animation { + animation: slide-fade 1s; +} +@keyframes slide-fade { + from { + opacity: 0; + transform: translateY(20px); + } + to { + opacity: 1; + transform: translateY(0); + } +} +``` + +_Note: `animate.leave` may be added to child elements being removed._ + +### Event Bindings and Third-party Libraries + +You can bind to `(animate.enter)` and `(animate.leave)` to call functions or use JS libraries like GSAP. + +```html +@if(show()) { +
...
+} +``` + +```ts +import { AnimationCallbackEvent } from '@angular/core'; + +onLeave(event: AnimationCallbackEvent) { + // Custom animation logic here + // CRITICAL: You MUST call animationComplete() when done so Angular removes the element! + event.animationComplete(); +} +``` + +## 2. Advanced CSS Animations + +CSS offers robust tools for advanced animation sequences. + +### Animating State and Styles + +Toggle CSS classes on elements using property binding to trigger transitions. + +```html +
...
+``` + +```css +div { + transition: height 0.3s ease-out; + height: 100px; +} +div.open { + height: 200px; +} +``` + +### Animating Auto Height + +You can use `css-grid` to animate to auto height. + +```css +.container { + display: grid; + grid-template-rows: 0fr; + transition: grid-template-rows 0.3s; +} +.container.open { + grid-template-rows: 1fr; +} +.container > div { + overflow: hidden; +} +``` + +### Staggering and Parallel Animations + +- **Staggering**: Use `animation-delay` or `transition-delay` with different values for items in a list. +- **Parallel**: Apply multiple animations in the `animation` shorthand (e.g., `animation: rotate 3s, fade-in 2s;`). + +### Programmatic Control + +Retrieve animations directly using standard Web APIs: + +```ts +const animations = element.getAnimations(); +animations.forEach((anim) => anim.pause()); +``` + +## 3. Legacy Animations DSL (Deprecated) + +For older projects (pre v20.2 or where `@angular/animations` is already heavily used), you use the component metadata DSL. + +**Important:** Do not mix legacy animations and `animate.enter`/`leave` in the same component. + +### Setup + +```ts +bootstrapApplication(App, { + providers: [provideAnimationsAsync()], +}); +``` + +### Defining Transitions + +```ts +import {signal} from '@angular/core'; +import {trigger, state, style, animate, transition} from '@angular/animations'; + +@Component({ + animations: [ + trigger('openClose', [ + state('open', style({opacity: 1})), + state('closed', style({opacity: 0})), + transition('open <=> closed', [animate('0.5s')]), + ]), + ], + template: `
...
`, +}) +export class OpenClose { + isOpen = signal(true); +} +``` diff --git a/.agents/skills/angular-developer/references/angular-aria.md b/.agents/skills/angular-developer/references/angular-aria.md new file mode 100644 index 000000000..2dd0cf451 --- /dev/null +++ b/.agents/skills/angular-developer/references/angular-aria.md @@ -0,0 +1,410 @@ +# Angular Aria + +Angular Aria (`@angular/aria`) is a collection of headless, accessible directives that implement common WAI-ARIA patterns. These directives handle keyboard interactions, ARIA attributes, focus management, and screen reader support. + +**As an AI Agent, your role is to provide the HTML structure and CSS styling**, while the directives handle the complex accessibility logic. + +## Styling Headless Components + +Because Angular Aria components are headless, they do not come with default styles. You **must** use CSS to style different states based on the ARIA attributes or structural classes the directives automatically apply. + +Common ARIA attributes to target in CSS: + +- `[aria-expanded="true"]` / `[aria-expanded="false"]` +- `[aria-selected="true"]` +- `[aria-disabled="true"]` +- `[aria-current="page"]` (for navigation) + +--- + +**CRITICAL**: Before using this package, it must be installed via the package manager. Confirm that it has been installed in the project. Use `npm install @angular/aria` to install if necessary. + +## 1. Accordion + +Organizes related content into expandable/collapsible sections. + +**Usage:** The Accordion is a layout component designed to organize content into logical groups that users can expand one at a time to reduce scrolling on content-heavy pages. Use it for FAQs, long forms, or progressive disclosure of information, but avoid it for primary navigation or scenarios where users must view multiple sections of content simultaneously. + +**Imports:** `import { AccordionContent, AccordionGroup, AccordionPanel, AccordionTrigger } from '@angular/aria/accordion';` + +**Directives:** `ngAccordionGroup`, `ngAccordionTrigger`, `ngAccordionPanel`, `ngAccordionContent` (for lazy loading). + +```ts +@Component({ + selector: 'app-cmp', + imports: [AccordionContent, AccordionGroup, AccordionPanel, AccordionTrigger], + template: `...`, + styles: [], +}) +export class App { + protected readonly title = signal('angular-app'); +} +``` + +```html +
+
+ +
+ +

Lazy loaded content here.

+
+
+
+
+``` + +**Styling Strategy:** +Target the `[aria-expanded]` attribute on the trigger to rotate icons, and style the panel visibility. + +```css +.accordion-header[aria-expanded='true'] .icon { + transform: rotate(180deg); +} + +/* The panel directive handles DOM removal, but you can style the transition */ +.accordion-panel { + padding: 1rem; + border-top: 1px solid #ccc; +} +``` + +--- + +## 2. Listbox + +A foundational directive for displaying a list of options. Used for visible selection lists (not dropdowns). + +**Usage:** Visible selectable lists (single or multi-select). + +**Imports:** `import {Listbox, Option} from '@angular/aria/listbox';` + +**Directives:** `ngListbox`, `ngOption`. + +```ts +@Component({ + selector: 'app-cmp', + imports: [Listbox, Option], + template: `...`, + styles: [], +}) +export class App { + protected readonly title = signal('angular-app'); +} +``` + +```html + +
    +
  • Apple
  • +
  • Banana
  • +
+``` + +**Styling Strategy:** +Target `[aria-selected="true"]` for selected state and `:focus-visible` or `[data-active]` for the focused item (Angular Aria uses roving tabindex or activedescendant). + +```css +.option { + padding: 8px; + cursor: pointer; +} +.option[aria-selected='true'] { + background: #e0f7fa; + font-weight: bold; +} +/* Focus state managed by aria */ +.option:focus-visible { + outline: 2px solid blue; +} +``` + +--- + +## 3. Combobox, Select, and Multiselect + +These patterns combine `ngCombobox` with a popup containing an `ngListbox`. + +- **Combobox**: Text input + popup (used for Autocomplete). +- **Select**: Readonly Combobox + single-select Listbox. +- **Multiselect**: Readonly Combobox + multi-select Listbox. + +**Usage:** The Combobox is a low-level primitive directive that synchronizes a text input with a popup, serving as the foundational logic for autocomplete, select, and multiselect patterns. Use it specifically for building custom filtering, unique selection requirements, or specialized input-to-popup coordination that deviates from standard, documented components. + +**Imports:** + +``` + import {Combobox, ComboboxInput, ComboboxPopupContainer} from '@angular/aria/combobox'; + import {Listbox, Option} from '@angular/aria/listbox'; +``` + +**Directives:** `ngCombobox`, `ngComboboxInput`, `ngComboboxPopupContainer`, `ngListbox`, `ngOption`. + +```html + +
+ + + + + +
+``` + +**Styling Strategy:** +Style the popup container to look like a dropdown floating above content (often paired with CDK Overlay). + +```css +.select-trigger { + width: 200px; + padding: 8px; + text-align: left; +} +.dropdown-menu { + list-style: none; + padding: 0; + margin: 0; + border: 1px solid #ccc; + background: white; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} +``` + +--- + +## 4. Menu and Menubar + +For actions, commands, and context menus (not for form selection). + +**Usage:** The Menubar is a high-level navigation pattern designed for building desktop-style application command bars (e.g., File, Edit, View) that stay persistent across an interface. It is best utilized for organizing complex commands into logical top-level categories with full horizontal keyboard support, but it should be avoided for simple standalone action lists or mobile-first layouts where horizontal space is constrained. + +**Imports:** `import {MenuBar, Menu, MenuContent, MenuItem} from '@angular/aria/menu';` + +**Directives:** `ngMenuBar`, `ngMenu`, `ngMenuItem`, `ngMenuTrigger`. + +```html + + + + +``` + +**Styling Strategy:** +Use flexbox for the menubar. Hide/show submenus based on the trigger's state. + +```css +.menubar { + display: flex; + gap: 10px; + list-style: none; + padding: 0; +} +.menu { + background: white; + border: 1px solid #ccc; + padding: 5px 0; +} +.menu li { + padding: 5px 15px; + cursor: pointer; +} +``` + +--- + +## 5. Tabs + +Layered content sections where only one panel is visible. + +**Usage:** The Tabs component is used to organize related content into distinct, navigable sections, allowing users to switch between categories or views without leaving the page. It is ideal for settings panels, multi-topic documentation, or dashboards, but should be avoided for sequential workflows (steppers) or when navigation involves more than 7–8 sections. + +**Imports:** `import {Tab, Tabs, TabList, TabPanel, TabContent} from '@angular/aria/tabs';` + +**Directives:** `ngTabs`, `ngTabList`, `ngTab`, `ngTabPanel`, `ngTabContent`. + +```html +
+
    +
  • Profile
  • +
  • Security
  • +
+ +
+ Profile Settings +
+
+ Security Settings +
+
+``` + +**Styling Strategy:** +Target `[aria-selected="true"]` on the tab buttons. + +```css +.tab-list { + display: flex; + border-bottom: 2px solid #ccc; + list-style: none; + padding: 0; +} +.tab-btn { + padding: 10px 20px; + cursor: pointer; + border-bottom: 2px solid transparent; +} +.tab-btn[aria-selected='true'] { + border-bottom-color: blue; + font-weight: bold; +} +.tab-panel { + padding: 20px; +} +``` + +--- + +## 6. Toolbar + +Groups related controls (like text formatting). + +**Usage:** The Toolbar is an organizational component designed to group frequently accessed, related controls into a single logical container. It is best used to enhance keyboard efficiency (via arrow-key navigation) and visual structure for workflows requiring repeated actions, such as text formatting or media controls. + +**Imports:** `import {Toolbar, ToolbarWidget, ToolbarWidgetGroup} from '@angular/aria/toolbar';` + +**Directives:** `ngToolbar`, `ngToolbarWidget`, `ngToolbarWidgetGroup`. + +```html +
+
+ + +
+
+``` + +**Styling Strategy:** +Target `[aria-pressed="true"]` (for toggle buttons) or `[aria-checked="true"]` (for radio groups) within the toolbar. + +```css +.toolbar { + display: flex; + gap: 5px; + padding: 8px; + background: #f5f5f5; +} +.tool-btn { + padding: 5px 10px; + border: 1px solid #ccc; +} +.tool-btn[aria-pressed='true'], +.tool-btn[aria-checked='true'] { + background: #ddd; +} +``` + +--- + +## 7. Tree + +Displays hierarchical data (file systems, nested nav). + +**Usage:** The Tree component is designed for navigating and displaying deeply nested, hierarchical data structures like file systems, organization charts, or complex site architectures. It should be used specifically for multi-level relationships where users need to expand or collapse branches, but it should be avoided for flat lists, data tables, or simple selection menus. + +**Imports:** `import {Tree, TreeItem, TreeItemGroup} from '@angular/aria/tree';` + +**Directives:** `ngTree`, `ngTreeItem`, `ngTreeGroup`. + +```html +
    +
  • + Documents +
      +
    • Resume.pdf
    • +
    +
  • +
+``` + +**Styling Strategy:** +Target `[aria-expanded]` to show/hide children or rotate chevron icons. Use `padding-left` on nested groups to show hierarchy. + +```css +.tree, +.tree-group { + list-style: none; + padding-left: 20px; +} +.tree-label::before { + content: '▶ '; + display: inline-block; + transition: transform 0.2s; +} +li[aria-expanded='true'] > .tree-label::before { + transform: rotate(90deg); +} +``` + +## 8. Grid + +A two-dimensional interactive collection of cells enabling navigation via arrow keys. + +**Usage:** Data tables, calendars, spreadsheets, and layout patterns for interactive elements. +**Directives:** `ngGrid`, `ngGridRow`, `ngGridCell`, `ngGridCellWidget`. + +```html + + + + + + + + + +
NameStatus
Project A + +
+``` + +**Styling Strategy:** +Target `[aria-selected="true"]` for selected cells and `:focus-visible` for the active cell (roving tabindex) or `[aria-activedescendant]` on the container. + +```css +.grid-table { + border-collapse: collapse; +} +[ngGridCell] { + padding: 8px; + border: 1px solid #ddd; +} +[ngGridCell][aria-selected='true'] { + background: #e3f2fd; +} +/* Focus state managed by roving tabindex */ +[ngGridCell]:focus-visible { + outline: 2px solid #2196f3; + outline-offset: -2px; +} +``` + +## General Rules for Agents + +1. **Never use native HTML elements like ` + +
+ +
+ +
+ @for (alias of aliases.controls; track $index) { + + } +
+ + + +``` + +## Accessing Controls + +Use getters for easy access to controls, especially for `FormArray`. + +```ts +get aliases() { + return this.profileForm.get('aliases') as FormArray; +} + +addAlias() { + this.aliases.push(this.fb.control('')); +} +``` + +## Updating Values + +- `patchValue()`: Updates only the specified properties. Fails silently on structural mismatches. +- `setValue()`: Replaces the entire model. Strictly enforces the form structure. + +```ts +updateProfile() { + this.profileForm.patchValue({ + firstName: 'Nancy', + address: { street: '123 Drew Street' } + }); +} +``` + +## Unified Change Events + +Modern Angular (v18+) provides a single `events` observable on all controls to track value, status, pristine, touched, reset, and submit events. + +```ts +import {ValueChangeEvent, StatusChangeEvent} from '@angular/forms'; + +this.profileForm.events.subscribe((event) => { + if (event instanceof ValueChangeEvent) { + console.log('New value:', event.value); + } +}); +``` + +## Manual State Management + +- `markAsTouched()` / `markAllAsTouched()`: Useful for showing validation errors on submit. +- `markAsDirty()` / `markAsPristine()`: Tracks if the value has been modified. +- `updateValueAndValidity()`: Manually triggers recalculation of value and status. +- Options `{ emitEvent: false }` or `{ onlySelf: true }` can be passed to most methods to control propagation. diff --git a/.agents/skills/angular-developer/references/rendering-strategies.md b/.agents/skills/angular-developer/references/rendering-strategies.md new file mode 100644 index 000000000..3b4260022 --- /dev/null +++ b/.agents/skills/angular-developer/references/rendering-strategies.md @@ -0,0 +1,44 @@ +# Rendering Strategies + +Angular supports multiple rendering strategies to optimize for SEO, performance, and interactivity. + +## 1. Client-Side Rendering (CSR) + +**Default Strategy.** Content is rendered entirely in the browser. + +- **Use case**: Interactive dashboards, internal tools. +- **Pros**: Simplest to configure, low server cost. +- **Cons**: Poor SEO, slower initial content visibility (must wait for JS). + +## 2. Static Site Generation (SSG / Prerendering) + +Content is pre-rendered into static HTML files at **build time**. + +- **Use case**: Marketing pages, blogs, documentation. +- **Pros**: Fastest initial load, excellent SEO, CDN-friendly. +- **Cons**: Requires rebuild for content updates, not for user-specific data. + +## 3. Server-Side Rendering (SSR) + +Content is rendered on the server for the **initial request**. Subsequent navigations happen client-side (SPA style). + +- **Use case**: E-commerce product pages, news sites, personalized dynamic content. +- **Pros**: Excellent SEO, fast initial content visibility. +- **Cons**: Requires a server (Node.js), higher server cost/latency. + +## Hydration + +Hydration is the process of making server-rendered HTML interactive in the browser. + +- **Full Hydration**: The entire app becomes interactive at once. +- **Incremental Hydration**: (Advanced) Parts become interactive as needed using `@defer` blocks. +- **Event Replay**: Captures and replays user events that happened before hydration finished. + +## Decision Matrix + +| Requirement | Strategy | +| :------------------------------ | :------------------- | +| **SEO + Static Content** | SSG | +| **SEO + Dynamic Content** | SSR | +| **No SEO + High Interactivity** | CSR | +| **Mixed** | Hybrid (Route-based) | diff --git a/.agents/skills/angular-developer/references/resource.md b/.agents/skills/angular-developer/references/resource.md new file mode 100644 index 000000000..e356ea51b --- /dev/null +++ b/.agents/skills/angular-developer/references/resource.md @@ -0,0 +1,77 @@ +# Async Reactivity with `resource` + +> [!IMPORTANT] +> The `resource` API is currently experimental in Angular. + +A `Resource` incorporates asynchronous data fetching into Angular's signal-based reactivity. It executes an async loader function whenever its dependencies change, exposing the status and result as synchronous signals. + +## Basic Usage + +The `resource` function accepts an options object with two main properties: + +1. `params`: A reactive computation (like `computed`). When signals read here change, the resource re-fetches. +2. `loader`: An async function that fetches data based on the parameters. + +```ts +import { Component, resource, signal, computed } from '@angular/core'; + +@Component({...}) +export class UserProfile { + userId = signal('123'); + + userResource = resource({ + // Reactively tracking userId + params: () => ({ id: this.userId() }), + + // Executes whenever params change + loader: async ({ params, abortSignal }) => { + const response = await fetch(`/api/users/${params.id}`, { signal: abortSignal }); + if (!response.ok) throw new Error('Network error'); + return response.json(); + } + }); + + // Use the resource value in computed signals + userName = computed(() => { + if (this.userResource.hasValue()) { + return this.userResource.value()?.name; + } else { + return 'Loading...'; + } + }); +} +``` + +## Aborting Requests + +If the `params` signal changes while a previous loader is still running, the `Resource` will attempt to abort the outstanding request using the provided `abortSignal`. **Always pass `abortSignal` to your `fetch` calls.** + +## Reloading Data + +You can imperatively force the resource to re-run the loader without the params changing by calling `.reload()`. + +```ts +this.userResource.reload(); +``` + +## Resource Status Signals + +The `Resource` object provides several signals to read its current state: + +- `value()`: The resolved data, or `undefined`. +- `hasValue()`: Type-guard boolean. `true` if a value exists. +- `isLoading()`: Boolean indicating if the loader is currently running. +- `error()`: The error thrown by the loader, or `undefined`. +- `status()`: A string constant representing the exact state (`'idle'`, `'loading'`, `'resolved'`, `'error'`, `'reloading'`, `'local'`). + +## Local Mutation + +You can optimistically update the resource's value directly. This changes the status to `'local'`. + +```ts +this.userResource.value.set({name: 'Optimistic Update'}); +``` + +## Reactive Data Fetching with `httpResource` + +If you are using Angular's `HttpClient`, prefer using `httpResource`. It is a specialized wrapper that leverages the Angular HTTP stack (including interceptors) while providing the same signal-based resource API. diff --git a/.agents/skills/angular-developer/references/route-animations.md b/.agents/skills/angular-developer/references/route-animations.md new file mode 100644 index 000000000..56cebbede --- /dev/null +++ b/.agents/skills/angular-developer/references/route-animations.md @@ -0,0 +1,56 @@ +# Route Transition Animations + +Angular Router supports the browser's **View Transitions API** for smooth visual transitions between routes. + +## Enabling View Transitions + +Add `withViewTransitions()` to your router configuration. + +```ts +provideRouter(routes, withViewTransitions()); +``` + +This is a **progressive enhancement**. In browsers that don't support the API, the router will still work but without the transition animation. + +## How it Works + +1. Browser takes a screenshot of the old state. +2. Router updates the DOM (activates new component). +3. Browser takes a screenshot of the new state. +4. Browser animates between the two states. + +## Customizing with CSS + +Transitions are customized in **global CSS files** (not component-scoped CSS). + +Use the `::view-transition-old()` and `::view-transition-new()` pseudo-elements. + +```css +/* Example: Cross-fade + Slide */ +::view-transition-old(root) { + animation: 90ms cubic-bezier(0.4, 0, 1, 1) both fade-out; +} +::view-transition-new(root) { + animation: 210ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in; +} +``` + +## Advanced Control + +Use `onViewTransitionCreated` to skip transitions or customize behavior based on the navigation context. + +```ts +withViewTransitions({ + onViewTransitionCreated: ({transition, from, to}) => { + // Skip animation for specific routes + if (to.url === '/no-animation') { + transition.skipTransition(); + } + }, +}); +``` + +## Best Practices + +- **Global Styles**: Always define transition animations in `styles.css` to avoid view encapsulation issues. +- **View Transition Names**: Assign unique `view-transition-name` to elements that should transition smoothly across routes (e.g., a header image). diff --git a/.agents/skills/angular-developer/references/route-guards.md b/.agents/skills/angular-developer/references/route-guards.md new file mode 100644 index 000000000..9169d5431 --- /dev/null +++ b/.agents/skills/angular-developer/references/route-guards.md @@ -0,0 +1,52 @@ +# Route Guards + +Route guards control whether a user can navigate to or leave a route. + +## Types of Guards + +- **`CanActivate`**: Can the user access this route? (e.g., Auth check). +- **`CanActivateChild`**: Can the user access children of this route? +- **`CanDeactivate`**: Can the user leave this route? (e.g., Unsaved changes). +- **`CanMatch`**: Should this route even be considered for matching? (e.g., Feature flags). If it returns `false`, the router continues checking other routes. + +## Creating a Guard + +Guards are typically functional since Angular 15. + +```ts +export const authGuard: CanActivateFn = (route, state) => { + const authService = inject(AuthService); + const router = inject(Router); + + if (authService.isLoggedIn()) { + return true; + } + + // Redirect to login + return router.parseUrl('/login'); +}; +``` + +## Applying Guards + +Add them to the route configuration as an array. They execute in order. + +```ts +{ + path: 'admin', + component: Admin, + canActivate: [authGuard], + canActivateChild: [adminChildGuard], + canDeactivate: [unsavedChangesGuard] +} +``` + +## Return Values + +- `boolean`: `true` to allow, `false` to block. +- `UrlTree` or `RedirectCommand`: Redirect to a different route. +- `Observable` or `Promise`: Resolves to the above types. + +## Security Note + +**Client-side guards are NOT a substitute for server-side security.** Always verify permissions on the server. diff --git a/.agents/skills/angular-developer/references/router-lifecycle.md b/.agents/skills/angular-developer/references/router-lifecycle.md new file mode 100644 index 000000000..be9aeb6ec --- /dev/null +++ b/.agents/skills/angular-developer/references/router-lifecycle.md @@ -0,0 +1,45 @@ +# Router Lifecycle and Events + +Angular Router emits events through the `Router.events` observable, allowing you to track the navigation lifecycle from start to finish. + +## Common Router Events (Chronological) + +1. **`NavigationStart`**: Navigation begins. +2. **`RoutesRecognized`**: Router matches the URL to a route. +3. **`GuardsCheckStart` / `End`**: Evaluation of `canActivate`, `canMatch`, etc. +4. **`ResolveStart` / `End`**: Data resolution phase (fetching data via resolvers). +5. **`NavigationEnd`**: Navigation completed successfully. +6. **`NavigationCancel`**: Navigation canceled (e.g., guard returned `false`). +7. **`NavigationError`**: Navigation failed (e.g., error in resolver). + +## Subscribing to Events + +Inject the `Router` and filter the `events` observable. + +```ts +import {Router, NavigationStart, NavigationEnd} from '@angular/router'; + +export class MyService { + private router = inject(Router); + + constructor() { + this.router.events.pipe(filter((e) => e instanceof NavigationEnd)).subscribe((event) => { + console.log('Navigated to:', event.url); + }); + } +} +``` + +## Debugging + +Enable detailed console logging of all routing events during application bootstrap. + +```ts +provideRouter(routes, withDebugTracing()); +``` + +## Common Use Cases + +- **Loading Indicators**: Show a spinner when `NavigationStart` fires and hide it on `NavigationEnd`/`Cancel`/`Error`. +- **Analytics**: Track page views by listening for `NavigationEnd`. +- **Scroll Management**: Respond to `Scroll` events for custom scroll behavior. diff --git a/.agents/skills/angular-developer/references/router-testing.md b/.agents/skills/angular-developer/references/router-testing.md new file mode 100644 index 000000000..fc18d9cad --- /dev/null +++ b/.agents/skills/angular-developer/references/router-testing.md @@ -0,0 +1,87 @@ +# Testing with the RouterTestingHarness + +When testing components that involve routing, it is crucial **not to mock the Router or related services**. Instead, use the `RouterTestingHarness`, which provides a robust and reliable way to test routing logic in an environment that closely mirrors a real application. + +Using the harness ensures you are testing the actual router configuration, guards, and resolvers, leading to more meaningful tests. + +## Setting Up for Router Testing + +The `RouterTestingHarness` is the primary tool for testing routing scenarios. You also need to provide your test routes using the `provideRouter` function in your `TestBed` configuration. + +### Example Setup + +```ts +import {TestBed} from '@angular/core/testing'; +import {provideRouter} from '@angular/router'; +import {RouterTestingHarness} from '@angular/router/testing'; +import {Dashboard} from './dashboard.component'; +import {HeroDetail} from './hero-detail.component'; + +describe('Dashboard Component Routing', () => { + let harness: RouterTestingHarness; + + beforeEach(async () => { + // 1. Configure TestBed with test routes + await TestBed.configureTestingModule({ + providers: [ + // Use provideRouter with your test-specific routes + provideRouter([ + {path: '', component: Dashboard}, + {path: 'heroes/:id', component: HeroDetail}, + ]), + ], + }).compileComponents(); + + // 2. Create the RouterTestingHarness + harness = await RouterTestingHarness.create(); + }); +}); +``` + +### Key Concepts + +1. **`provideRouter([...])`**: Provide a test-specific routing configuration. This should include the routes necessary for the component-under-test to function correctly. +2. **`RouterTestingHarness.create()`**: Asynchronously creates and initializes the harness and performs an initial navigation to the root URL (`/`). + +## Writing Router Tests + +Once the harness is created, you can use it to drive navigation and make assertions on the state of the router and the activated components. + +### Example: Testing Navigation + +```ts +it('should navigate to a hero detail when a hero is selected', async () => { + // 1. Navigate to the initial component and get its instance + const dashboard = await harness.navigateByUrl('/', Dashboard); + + // Suppose the dashboard has a method to select a hero + const heroToSelect = {id: 42, name: 'Test Hero'}; + dashboard.selectHero(heroToSelect); + + // Wait for stability after the action that triggers navigation + await harness.fixture.whenStable(); + + // 2. Assert on the URL + expect(harness.router.url).toEqual('/heroes/42'); + + // 3. Get the activated component after navigation + const heroDetail = await harness.getHarness(HeroDetail); + + // 4. Assert on the state of the new component + expect(await heroDetail.componentInstance.hero.name).toBe('Test Hero'); +}); + +it('should get the activated component directly', async () => { + // Navigate and get the component instance in one step + const dashboardInstance = await harness.navigateByUrl('/', Dashboard); + + expect(dashboardInstance).toBeInstanceOf(Dashboard); +}); +``` + +### Best Practices + +- **Navigate with the Harness:** Always use `harness.navigateByUrl()` to simulate navigation. This method returns a promise that resolves with the instance of the activated component. +- **Access the Router State:** Use `harness.router` to access the live router instance and assert on its state (e.g., `harness.router.url`). +- **Get Activated Components:** Use `harness.getHarness(ComponentType)` to get an instance of a component harness for the currently activated routed component, or `harness.routeDebugElement` to get the `DebugElement`. +- **Wait for Stability:** After performing an action that causes navigation, always `await harness.fixture.whenStable()` to ensure the routing is complete before making assertions. diff --git a/.agents/skills/angular-developer/references/show-routes-with-outlets.md b/.agents/skills/angular-developer/references/show-routes-with-outlets.md new file mode 100644 index 000000000..af43f014f --- /dev/null +++ b/.agents/skills/angular-developer/references/show-routes-with-outlets.md @@ -0,0 +1,68 @@ +# Show Routes with Outlets + +The `RouterOutlet` directive is a placeholder where Angular renders the component for the current URL. + +## Basic Usage + +Include `` in your template. Angular inserts the routed component as a sibling immediately following the outlet. + +```html + + + +``` + +## Nested Outlets + +Child routes require their own `` within the parent component's template. + +```ts +// Parent component template +

Settings

+ +``` + +## Named Outlets (Secondary Routes) + +Pages can have multiple outlets. Assign a `name` to an outlet to target it specifically. The default name is `'primary'`. + +```html + + + + +``` + +Define the `outlet` in the route config: + +```ts +{ + path: 'chat', + component: Chat, + outlet: 'sidebar' +} +``` + +## Outlet Lifecycle Events + +`RouterOutlet` emits events when components are changed: + +- `activate`: New component instantiated. +- `deactivate`: Component destroyed. +- `attach` / `detach`: Used with `RouteReuseStrategy`. + +```html + +``` + +## Passing Data via `routerOutletData` + +You can pass contextual data to the routed component using the `routerOutletData` input. The component accesses this via the `ROUTER_OUTLET_DATA` injection token as a signal. + +```ts +// In Parent + + +// In Routed Component +outletData = inject(ROUTER_OUTLET_DATA) as Signal<{ theme: string }>; +``` diff --git a/.agents/skills/angular-developer/references/signal-forms.md b/.agents/skills/angular-developer/references/signal-forms.md new file mode 100644 index 000000000..992fab10c --- /dev/null +++ b/.agents/skills/angular-developer/references/signal-forms.md @@ -0,0 +1,897 @@ +# Signal Forms + +Signal Forms are the recommended approach for handling forms in modern Angular applications (v21+). They provide a reactive, type-safe, and model-driven way to manage form state using Angular Signals. + +**CRITICAL**: You MUST use Angular's new Signal Forms API for all form-related functionality. Do NOT use null as a value or type of any fields. + +## Imports + +You can import the following from `@angular/forms/signals`: + +```ts +import { + form, + FormField, + submit, + // Rules for field state + disabled, + hidden, + readonly, + debounce, + // Schema helpers + applyWhen, + applyEach, + schema, + // Custom validation + validate, + validateHttp, + validateStandardSchema, + // Metadata + metadata, +} from '@angular/forms/signals'; +``` + +## Creating a Form + +Use the `form()` function with a Signal model. The structure of the form is derived directly from the model. + +```ts +import {Component, signal} from '@angular/core'; +import {form, FormField} from '@angular/forms/signals'; + +@Component({ + // ... + imports: [FormField], +}) +export class Example { + // 1. Define your model with initial values (avoid undefined) + userModel = signal({ + name: '', // CRITICAL: NEVER use null or undefined as initial values + email: '', + age: 0, // Use 0 for numbers, NOT null + address: { + street: '', + city: '', + }, + hobbies: [] as string[], // Use [] for arrays, NOT null + }); + + // WRONG - DO NOT DO THIS: + // badModel = signal({ + // name: null, // ERROR: use '' instead + // age: null, // ERROR: use 0 instead + // items: null // ERROR: use [] instead + // }); + + // 2. Create the form + userForm = form(this.userModel); +} +``` + +## Validation + +Import validators from `@angular/forms/signals`. + +```ts +import {required, email, min, max, minLength, maxLength, pattern} from '@angular/forms/signals'; +``` + +Use them in the schema function passed to `form()`: + +```ts +userForm = form(this.userModel, (schemaPath) => { + // Required + required(schemaPath.name, {message: 'Name is required'}); + + // Conditional required. + required(schemaPath.name, { + when({valueOf}) { + return valueOf(schemaPath.age) > 10; + }, + }); + // when is only available for required + // Do NOT do this: pattern(p.name, /xxx/, {when /* ERROR */) + + // Email + email(schemaPath.email, {message: 'Invalid email'}); + + // Min/Max for numbers + min(schemaPath.age, 18); + max(schemaPath.age, 100); + + // MinLength/MaxLength for strings/arrays + minLength(schemaPath.password, 8); + maxLength(schemaPath.description, 500); + + // Pattern (Regex) + pattern(schemaPath.zipCode, /^\d{5}$/); +}); +``` + +## FieldState vs FormField: The Parental Requirement + +It's important to understand the difference between **FormField** (the structure) and **FieldState** (the actual data/signals). + +**RULE**: You must **CALL** a field as a function to access its state signals (valid, touched, dirty, hidden, etc.). + +```ts +// f is a FormField (structural) +const f = form(signal({cat: {name: 'pirojok-the-cat', age: 5}})); + +f.cat.name; // FormField: You can't get flags from here! +f.cat.name.touched(); // ERROR: touched() does not exist on FormField + +f.cat.name(); // FieldState: Calling it gives you access to signals +f.cat.name().touched(); // VALID: Accessing the signal +f.cat().name.touched(); // ERROR: f.cat() is state, it doesn't have children! +``` + +Similarly in a template: + +```html + +@if (bookingForm.hotelDetails.hidden()) { ... } + + +@if (bookingForm.hotelDetails().hidden()) { ... } +``` + +## Disabled / Readonly / Hidden + +Control field status using rules in the schema. + +```ts +import {disabled, readonly, hidden} from '@angular/forms/signals'; + +userForm = form(this.userModel, (schemaPath) => { + // Conditionally disabled + disabled(schemaPath.password, ({valueOf}) => !valueOf(schemaPath.createAccount)); + + // Conditionally hidden (does NOT remove from model, just marks as hidden) + hidden(schemaPath.shippingAddress, ({valueOf}) => valueOf(schemaPath.sameAsBilling)); + + // Readonly + readonly(schemaPath.username); +}); +``` + +## Binding + +Import `FormField` and use the `[formField]` directive. + +```ts +import {FormField} from '@angular/forms/signals'; +``` + +All props on state, such as `disabled`, `hidden`, `readonly` and `name` are bound automatically. +Do _NOT_ bind the `name` field. + +**CRITICAL: FORBIDDEN ATTRIBUTES** +When using `[formField]`, you MUST NOT set the following attributes in the template (either static or bound): + +- `min`, `max` (Use validators in the schema instead) +- `value`, `[value]`, `[attr.value]` (Already handled by `[formField]`) +- `[attr.min]`, `[attr.max]` +- `[disabled]`, `[readonly]` (Already handled by `[formField]`) + +Do NOT do this: `` or ``. + +```html + + + + + + + + + + + +``` + +## Reactive Forms + +**Do NOT import** `FormControl`, `FormGroup`, `FormArray`, or `FormBuilder` from `@angular/forms`. Signal Forms replace these concepts entirely. +Signal forms does NOT have a builder. + +## Accessing State + +Each field in the form is a function that returns its state. + +```ts +// Access the field by calling it +const emailState = this.userForm.email(); + +// Value (WritableSignal) +const value = this.userForm().value(); + +// Validation State (Signals) +const isValid = this.userForm().valid(); +const isInvalid = this.userForm().invalid(); +const errors = this.userForm().errors(); // Array of errors +const isPending = this.userForm().pending(); // Async validation pending + +// Interaction State (Signals) +const isTouched = this.userForm().touched(); +const isDirty = this.userForm().dirty(); + +// Availability State (Signals) +const isDisabled = this.userForm().disabled(); +const isHidden = this.userForm().hidden(); +const isReadonly = this.userForm().readonly(); +``` + +IMPORTANT!: Make sure to call the field to get it state. + +```ts +form().invalid() +form.field().dirty() +form.field.subfield().touched() +form.a.b.c.d().value() +form.address.ssn().pending() +form().reset() + +// The only exception is length: +form.children.length +form.length // NOTE: no parenthesis! +form.client.addresses.length // No "()" + +@for (income of form.addresses; track $index) {/**/} +``` + +## Submitting + +Use the `submit()` function. It automatically marks all fields as touched before running the action. + +**CRITICAL**: The callback to `submit()` MUST be `async` and MUST return a Promise. + +```ts +import { submit } from '@angular/forms/signals'; + +// CORRECT - async callback +onSubmit() { + submit(this.userForm, async () => { + // This only runs if the form is valid + await this.apiService.save(this.userModel()); + console.log('Saved!'); + }); +} + +// WRONG - missing async keyword +onSubmit() { + submit(this.userForm, () => { // ERROR: must be async + console.log('Saved!'); + }); +} +``` + +## Handling Errors + +`field().errors()` returns the errors array of ValidationError: + +```ts +interface ValidationError { + readonly kind: string; + readonly message?: string; +} +``` + +Do _NOT_ return null from validators. +When there are no errors, return undefined + +### Context + +Functions passed to rules like `validate()`, `disabled()`, `applyWhen` take a context object. It is **CRITICAL** to understand its structure: + +```ts +validate( + schemaPath.username, + ({ + value, // Signal: Writable current value of the field + fieldTree, // FieldTree: Sub-fields (if it's a group/array) + state, // FieldState: Access flags like state.valid(), state.dirty() + valueOf, // (path) => T: Read values of OTHER fields (tracking dependencies), e.g. valueOf(schemaPath.password) + stateOf, // (path) => FieldState: Access state (valid/dirty) of OTHER fields, e.g. stateOf(schemaPath.password).valid() + pathKeys, // Signal: Path from root to this field + }) => { + // WRONG: if (touched()) ... (touched is not in context) + // RIGHT: if (state.touched()) ... + + if (value() === 'admin') { + return {kind: 'reserved', message: 'Username admin is reserved'}; + } + }, +); +``` + +### IMPORTANT: Paths are NOT Signals + +Inside the `form()` callback, `schemaPath` and its children (e.g., `schemaPath.user.name`) are **NOT** signals and are **NOT** callable. + +```ts +// WRONG - This will throw an error: +applyWhen(p.ssn, () => p.ssn().touched(), (ssnField) => { ... }); + +// RIGHT - Use stateOf() to get the state of a path: +applyWhen(p.ssn, ({ stateOf }) => stateOf(p.ssn).touched(), (ssnField) => { ... }); + +// RIGHT - Use valueOf() to get the value of a path: +applyWhen(p.ssn, ({ valueOf }) => valueOf(p.ssn) !== '', (ssnField) => { ... }); +``` + +### Multiple Items + +- Use `applyEach` for applying rules per item. +- **CRITICAL**: `applyEach` callback takes ONLY ONE argument (the item path), NOT two: + +```ts +// CORRECT - single argument +applyEach(s.items, (item) => { + required(item.name); +}); + +// WRONG - do NOT pass index +applyEach(s.items, (item, index) => { + // ERROR: callback takes 1 argument + required(item.name); +}); +``` + +- In the template use `@for` to iterate over the items. +- To remove an item from an array, just remove appropriate item from the array in the data. +- **`select` binding**: You CAN bind to `` (string[]) | Use checkboxes for array fields | +| **readonly attribute** | `` | Use `readonly()` rule in schema | +| **min/max attributes** | `` | Use `min()` and `max()` rules in schema | +| **value binding** | `` | Do NOT use `[value]` with `[formField]` | +| **when option** | `pattern(p.x, /.../, {when: ...})` | `when` only works with `required()` | +| **Submit callback** | `submit(form, () => { ... })` | `submit(form, async () => { ... })` | +| **Async params** | `params: s.field` | `params: ({ value }) => value()` | +| **Async onError** | Omitting `onError` | `onError` is REQUIRED in `validateAsync` | +| **resource() API** | `request: signal` | `params: signal` | +| **applyEach args** | `applyEach(s.items, (item, index) => ...)` | `applyEach(s.items, (item) => ...)` | +| **Nested @for** | `$parent.$index` | Use `let outerIndex = $index` | +| **FormState import** | `import { FormState }` | `FormState` does not exist, use `FieldState` | +| **Null in model** | `signal({ name: null })` | `signal({ name: '' })` or `signal({ age: 0 })` | +| **Validate syntax** | `validate(s.field, { value } => ...)` | `validate(s.field, ({ value }) => ...)` | +| **Checkbox Array** | `[formField]="form.tags"` (string[]) | Checkboxes ONLY bind to `boolean` | + +## Big Form Example + +### `src/app/app.ts` + +```ts +import {Component, signal, ChangeDetectionStrategy} from '@angular/core'; +import { + form, + FormField, + submit, + required, + email, + min, + hidden, + applyEach, + validate, +} from '@angular/forms/signals'; + +@Component({ + selector: 'app-root', + standalone: true, + imports: [FormField], + templateUrl: './app.html', + changeDetection: ChangeDetectionStrategy.OnPush, +}) +export class App { + model = signal({ + personalInfo: { + firstName: '', + lastName: '', + email: '', + age: 0, + }, + tripDetails: { + destination: 'Mars', + launchDate: '', + }, + package: { + tier: 'economy', + extras: [] as string[], + }, + companions: [] as Array<{name: string; relation: string}>, + }); + + bookingForm = form(this.model, (s) => { + required(s.personalInfo.firstName, {message: 'First name is required'}); + required(s.personalInfo.lastName, {message: 'Last name is required'}); + required(s.personalInfo.email, {message: 'Email is required'}); + email(s.personalInfo.email, {message: 'Invalid email address'}); + required(s.personalInfo.age, {message: 'Age is required'}); + min(s.personalInfo.age, 18, {message: 'Must be at least 18'}); + + required(s.tripDetails.destination); + required(s.tripDetails.launchDate); + validate(s.tripDetails.launchDate, ({value}) => { + const date = new Date(value()); + if (isNaN(date.getTime())) return undefined; + const today = new Date(); + if (date < today) { + return {kind: 'pastData', message: 'Launch date must be in the future'}; + } + return undefined; + }); + + // valueOf is used to access values of other fields in rules + hidden(s.package.extras, ({valueOf}) => valueOf(s.package.tier) === 'economy'); + + applyEach(s.companions, (companion) => { + required(companion.name, {message: 'Companion name required'}); + required(companion.relation, {message: 'Relation required'}); + }); + }); + + addCompanion() { + this.model.update((m) => ({ + ...m, + companions: [...m.companions, {name: '', relation: ''}], + })); + } + + removeCompanion(index: number) { + this.model.update((m) => ({ + ...m, + companions: m.companions.filter((_, i) => i !== index), + })); + } + + onSubmit() { + // CRITICAL: submit callback MUST be async + submit(this.bookingForm, async () => { + console.log('Booking Confirmed:', this.model()); + // If you need to do async work: + // await this.apiService.save(this.model()); + }); + } +} +``` + +### `src/app/app.html` + +```html +
+

Interstellar Booking

+ +
+

Personal Info

+ + + + + + + + +
+ +
+

Trip Details

+ + + + +
+ +
+

Package

+ + + + + + @if (!bookingForm.package.extras().hidden()) { +
+

Extras

+ + +
+ } +
+ +
+

Companions

+ + + @for (companion of bookingForm.companions; track $index) { +
+ + @if (companion.name().touched() && companion.name().errors().length) { + {{ companion.name().errors()[0].message }} + } + + + @if (companion.relation().touched() && companion.relation().errors().length) { + {{ companion.relation().errors()[0].message }} + } + + +
+ } +
+ + +
+``` + +## Recovering from Build Errors + +If you encounter build errors, here are the most common fixes: + +### `Property 'value' does not exist on type 'FieldTree'` + +**Problem**: Accessing `.value()` directly on a field without calling it first. + +```ts +// WRONG +const val = this.form.field.value(); +// RIGHT +const val = this.form.field().value(); +``` + +### `Property 'set' does not exist on type 'FieldTree'` + +**Problem**: Trying to set values on the form tree. Signal Forms are model-driven. + +```ts +// WRONG +this.form.address.street.set('Main St'); +// RIGHT - update the model signal instead +this.model.update((m) => ({...m, address: {...m.address, street: 'Main St'}})); +``` + +### `Type 'string[]' is not assignable to type 'string'` + +**Problem**: Binding `[formField]` to an array field with a single-value ` + ... + + + + +``` + +### `NG8022: Setting the 'readonly/min/max/value' attribute is not allowed` + +**Problem**: Conflict between HTML attributes and `[formField]` directive. + +```html + + + + + +min(s.age, 18); max(s.age, 99); // Then just: + +``` + +### `TS2322: Type 'string[]' is not assignable to type 'boolean'` + +**Problem**: Binding a checkbox to an array field instead of a boolean field. + +```html + + + + + + + +model = signal({ hasWifi: false, hasGym: false }); + +``` + +### `'when' does not exist in type` for pattern/email/min/max + +**Problem**: Using `when` option with validators other than `required`. + +```ts +// WRONG - when only works with required +pattern(s.ssn, /^\d{3}-\d{2}-\d{4}$/, {when: isJoint}); + +// RIGHT - use applyWhen for conditional non-required validators +applyWhen(s.ssn, isJoint, (ssnPath) => { + pattern(ssnPath, /^\d{3}-\d{2}-\d{4}$/); +}); +``` + +### `Expected 3 arguments, but got 2` for applyWhen + +**Problem**: Missing the path argument in `applyWhen`. + +```ts +// WRONG +applyWhen(isJoint, () => { ... }); + +// RIGHT - applyWhen(path, condition, schemaFn) +applyWhen(s.spouse, ({valueOf}) => valueOf(s.status) === 'joint', (spousePath) => { + required(spousePath.name); +}); +``` + +### `Module has no exported member 'FormState'` + +**Problem**: Importing a non-existent type. + +```ts +// WRONG +import {FormState} from '@angular/forms/signals'; + +// FormState does not exist. If you need type access, the form +// instance provides all necessary state through field().valid(), etc. +``` + +### `No pipe found with name 'number'` / `'json'` / `'date'` + +**Problem**: Using pipes in templates. + +```html + +{{ totalPrice() | number:'1.2-2' }} + + +totalPriceFormatted = computed(() => this.totalPrice().toFixed(2)); + +{{ totalPriceFormatted() }} +``` + +### `$parent.$index` in nested @for loops + +**Problem**: Angular doesn't have `$parent`. + +```html + +@for (item of items; track $index) { @for (sub of item.subs; track $index) { + +} } + + +@for (item of items; track $index; let outerIdx = $index) { @for (sub of item.subs; track $index) { + +} } +``` diff --git a/.agents/skills/angular-developer/references/signals-overview.md b/.agents/skills/angular-developer/references/signals-overview.md new file mode 100644 index 000000000..07fb6ed9d --- /dev/null +++ b/.agents/skills/angular-developer/references/signals-overview.md @@ -0,0 +1,94 @@ +# Angular Signals Overview + +Signals are the foundation of reactivity in modern Angular applications. A **signal** is a wrapper around a value that notifies interested consumers when that value changes. + +## Writable Signals (`signal`) + +Use `signal()` to create state that can be directly updated. + +```ts +import {signal} from '@angular/core'; + +// Create a writable signal +const count = signal(0); + +// Read the value (always requires calling the getter function) +console.log(count()); + +// Update the value directly +count.set(3); + +// Update based on the previous value +count.update((value) => value + 1); +``` + +### Exposing as Readonly + +When exposing state from a service, it is a best practice to expose a readonly version to prevent external mutation. + +```ts +private readonly _count = signal(0); +// Consumers can read this, but cannot call .set() or .update() +readonly count = this._count.asReadonly(); +``` + +## Computed Signals (`computed`) + +Use `computed()` to create read-only signals that derive their value from other signals. + +- **Lazily Evaluated**: The derivation function doesn't run until the computed signal is read. +- **Memoized**: The result is cached. It only recalculates when one of the signals it depends on changes. +- **Dynamic Dependencies**: Only the signals _actually read_ during the derivation are tracked. + +```ts +import {signal, computed} from '@angular/core'; + +const count = signal(0); +const doubleCount = computed(() => count() * 2); + +// doubleCount automatically updates when count changes. +``` + +## Reactive Contexts + +A **reactive context** is a runtime state where Angular monitors signal reads to establish a dependency. + +Angular automatically enters a reactive context when evaluating: + +- `computed` signals +- `effect` callbacks +- `linkedSignal` computations +- Component templates + +### Untracked Reads (`untracked`) + +If you need to read a signal inside a reactive context _without_ creating a dependency (so that the context doesn't re-run when the signal changes), use `untracked()`. + +```ts +import {effect, untracked} from '@angular/core'; + +effect(() => { + // This effect only runs when currentUser changes. + // It does NOT run when counter changes, even though counter is read here. + console.log(`User: ${currentUser()}, Count: ${untracked(counter)}`); +}); +``` + +### Async Operations in Reactive Contexts + +The reactive context is only active for **synchronous** code. Signal reads after an `await` will not be tracked. **Always read signals before asynchronous boundaries.** + +```ts +// ❌ INCORRECT: theme() is not tracked because it is read after await +effect(async () => { + const data = await fetchUserData(); + console.log(theme()); +}); + +// ✅ CORRECT: Read the signal before the await +effect(async () => { + const currentTheme = theme(); + const data = await fetchUserData(); + console.log(currentTheme); +}); +``` diff --git a/.agents/skills/angular-developer/references/tailwind-css.md b/.agents/skills/angular-developer/references/tailwind-css.md new file mode 100644 index 000000000..9139fcdca --- /dev/null +++ b/.agents/skills/angular-developer/references/tailwind-css.md @@ -0,0 +1,69 @@ +# Using Tailwind CSS with Angular + +Tailwind CSS is a utility-first CSS framework that integrates seamlessly with Angular. + +**CRITICAL AGENT GUIDANCE: ALWAYS focus on Tailwind CSS v4 practices. DO NOT revert to old Tailwind v3 patterns (like creating `tailwind.config.js` with `@tailwind` directives) as this will break the application build. Modern Angular projects use Tailwind v4.** + +## Automated Setup (Recommended) + +The easiest way to add Tailwind CSS to an Angular project is via the Angular CLI: + +```shell +ng add tailwindcss +``` + +This will automatically: + +1. Install `tailwindcss` and peer dependencies. +2. Configure the project to use Tailwind CSS. +3. Add the proper import to your global styles. + +## Manual Setup (Tailwind v4) + +If setting up manually, use the following Tailwind v4 pattern: + +### 1. Install Dependencies + +Install Tailwind CSS and PostCSS: + +```shell +npm install tailwindcss @tailwindcss/postcss postcss +``` + +### 2. Configure PostCSS + +Create a `.postcssrc.json` file in the project root: + +```json +{ + "plugins": { + "@tailwindcss/postcss": {} + } +} +``` + +_(Do NOT create a `tailwind.config.js` file! Configuration in v4 is handled through CSS variables)._ + +### 3. Import Tailwind CSS + +In your global styles file (e.g., `src/styles.css`), add the standard v4 import: + +```css +@import 'tailwindcss'; +``` + +_(If using SCSS, use `@use 'tailwindcss';` instead)._ + +### 4. Use Utility Classes + +You can now use Tailwind classes directly in your component templates: + +```html +

Hello world!

+``` + +## Summary for AI Agents + +- **Do not use `@tailwind base; @tailwind components; @tailwind utilities;`**. Use `@import 'tailwindcss';`. +- **Do not create `tailwind.config.js`**. Configuration is managed directly in CSS via theme variables or using PostCSS configurations. +- Stick strictly to v4 syntax and workflows. diff --git a/.agents/skills/angular-developer/references/template-driven-forms.md b/.agents/skills/angular-developer/references/template-driven-forms.md new file mode 100644 index 000000000..1907eeb99 --- /dev/null +++ b/.agents/skills/angular-developer/references/template-driven-forms.md @@ -0,0 +1,114 @@ +# Template-Driven Forms + +Template-driven forms use two-way data binding (`[(ngModel)]`) to update the data model in the component as changes are made in the template and vice versa. They are ideal for simple forms and use directives in the HTML template to manage form state and validation. + +## Core Directives + +Template-driven forms rely on the `FormsModule` which provides these key directives: + +- `NgModel`: Reconciles value changes in the form element with the data model (`[(ngModel)]`). +- `NgForm`: Automatically creates a top-level `FormGroup` bound to the `
` tag. +- `NgModelGroup`: Creates a nested `FormGroup` bound to a DOM element. + +## Setup + +First, import `FormsModule` into your component or module. + +```ts +import {Component} from '@angular/core'; +import {FormsModule} from '@angular/forms'; + +@Component({ + selector: 'app-user-form', + imports: [FormsModule], + templateUrl: './user-form.component.html', +}) +export class UserForm { + user = {name: '', role: 'Guest'}; + + onSubmit() { + console.log('Form submitted!', this.user); + } +} +``` + +## Building the Form Template + +### Two-Way Binding with `[(ngModel)]` + +Use `[(ngModel)]` on input elements. **Every element using `[(ngModel)]` MUST have a `name` attribute.** Angular uses the `name` attribute to register the control with the parent `NgForm`. + +```html + + +
+ + +
+ + +
+ + +
+ + + +
+``` + +## Form and Control State + +Angular automatically applies CSS classes to controls and forms based on their state: + +| State | Class if True | Class if False | +| :------------- | :-------------------------------- | :------------- | +| Visited | `ng-touched` | `ng-untouched` | +| Value Changed | `ng-dirty` | `ng-pristine` | +| Value is Valid | `ng-valid` | `ng-invalid` | +| Form Submitted | `ng-submitted` (on `
` only) | - | + +You can use these classes to provide visual feedback in your CSS: + +```css +.ng-valid[required], +.ng-valid.required { + border-left: 5px solid #42a948; /* green */ +} +.ng-invalid:not(form) { + border-left: 5px solid #a94442; /* red */ +} +``` + +## Validation and Error Messages + +To display error messages conditionally, export the `ngModel` directive to a template reference variable (e.g., `#nameCtrl="ngModel"`). + +```html + + + +@if (nameCtrl.invalid && (nameCtrl.dirty || nameCtrl.touched)) { +
+ @if (nameCtrl.errors?.['required']) { +
Name is required.
+ } +
+} +``` + +## Submitting the Form + +1. Use the `(ngSubmit)` event on the `` element. +2. Bind the submit button's disabled state to the overall form validity using the `NgForm` template reference variable (e.g., `[disabled]="!userForm.form.valid"`). + +## Resetting the Form + +To programmatically reset the form to its pristine state (clearing values and validation flags), use the `reset()` method on the `NgForm` instance. + +```html + +``` diff --git a/.agents/skills/angular-developer/references/testing-fundamentals.md b/.agents/skills/angular-developer/references/testing-fundamentals.md new file mode 100644 index 000000000..d58ada3a5 --- /dev/null +++ b/.agents/skills/angular-developer/references/testing-fundamentals.md @@ -0,0 +1,66 @@ +# Testing Fundamentals + +This guide covers the fundamental principles and practices for writing unit tests in this repository, which uses Vitest as the test runner. + +## Core Philosophy: Zoneless & Async-First + +This project follows a modern, zoneless testing approach. State changes schedule updates asynchronously, and tests must account for this. + +**Do NOT** use `fixture.detectChanges()` to manually trigger updates. +**ALWAYS** use the "Act, Wait, Assert" pattern: + +1. **Act:** Update state or perform an action (e.g., set a component input, click a button). +2. **Wait:** Use `await fixture.whenStable()` to allow the framework to process the scheduled update and render the changes. +3. **Assert:** Verify the outcome. + +### Basic Test Structure Example + +```ts +import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {MyComponent} from './my.component'; + +describe('MyComponent', () => { + let component: MyComponent; + let fixture: ComponentFixture; + let h1: HTMLElement; + + beforeEach(async () => { + // 1. Configure the test module + await TestBed.configureTestingModule({ + imports: [MyComponent], + }).compileComponents(); + + // 2. Create the component fixture + fixture = TestBed.createComponent(MyComponent); + component = fixture.componentInstance; + h1 = fixture.nativeElement.querySelector('h1'); + }); + + it('should display the default title', async () => { + // ACT: (Implicit) Component is created with default state. + // WAIT for initial data binding. + await fixture.whenStable(); + // ASSERT the initial state. + expect(h1.textContent).toContain('Default Title'); + }); + + it('should display a different title after a change', async () => { + // ACT: Change the component's title property. + component.title.set('New Test Title'); + + // WAIT for the asynchronous update to complete. + await fixture.whenStable(); + + // ASSERT the DOM has been updated. + expect(h1.textContent).toContain('New Test Title'); + }); +}); +``` + +## TestBed and ComponentFixture + +- **`TestBed`**: The primary utility for creating a test-specific Angular module. Use `TestBed.configureTestingModule({...})` in your `beforeEach` to declare components, provide services, and set up imports needed for your test. +- **`ComponentFixture`**: A handle on the created component instance and its environment. + - `fixture.componentInstance`: Access the component's class instance. + - `fixture.nativeElement`: Access the component's root DOM element. + - `fixture.debugElement`: An Angular-specific wrapper around the `nativeElement` that provides safer, platform-agnostic ways to query the DOM (e.g., `debugElement.query(By.css('p'))`). diff --git a/.agents/skills/nestjs-best-practices/AGENTS.md b/.agents/skills/nestjs-best-practices/AGENTS.md new file mode 100644 index 000000000..d14ec242c --- /dev/null +++ b/.agents/skills/nestjs-best-practices/AGENTS.md @@ -0,0 +1,5958 @@ +# NestJS Best Practices + +**Version 1.1.0** +NestJS Best Practices +January 2026 + +> **Note:** +> This document is mainly for agents and LLMs to follow when maintaining, +> generating, or refactoring NestJS codebases. Humans may also find it +> useful, but guidance here is optimized for automation and consistency +> by AI-assisted workflows. + +--- + +## Abstract + +Comprehensive best practices and architecture guide for NestJS applications, designed for AI agents and LLMs. Contains 40 rules across 10 categories, prioritized by impact from critical (architecture, dependency injection) to incremental (DevOps patterns). Each rule includes detailed explanations, real-world examples comparing incorrect vs. correct implementations, and specific impact metrics to guide automated refactoring and code generation. + +--- + +## Table of Contents + +1. [Architecture](#1-architecture) — **CRITICAL** + - 1.1 [Avoid Circular Dependencies](#11-avoid-circular-dependencies) + - 1.2 [Organize by Feature Modules](#12-organize-by-feature-modules) + - 1.3 [Use Proper Module Sharing Patterns](#13-use-proper-module-sharing-patterns) + - 1.4 [Single Responsibility for Services](#14-single-responsibility-for-services) + - 1.5 [Use Event-Driven Architecture for Decoupling](#15-use-event-driven-architecture-for-decoupling) + - 1.6 [Use Repository Pattern for Data Access](#16-use-repository-pattern-for-data-access) +2. [Dependency Injection](#2-dependency-injection) — **CRITICAL** + - 2.1 [Avoid Service Locator Anti-Pattern](#21-avoid-service-locator-anti-pattern) + - 2.2 [Apply Interface Segregation Principle](#22-apply-interface-segregation-principle) + - 2.3 [Honor Liskov Substitution Principle](#23-honor-liskov-substitution-principle) + - 2.4 [Prefer Constructor Injection](#24-prefer-constructor-injection) + - 2.5 [Understand Provider Scopes](#25-understand-provider-scopes) + - 2.6 [Use Injection Tokens for Interfaces](#26-use-injection-tokens-for-interfaces) +3. [Error Handling](#3-error-handling) — **HIGH** + - 3.1 [Handle Async Errors Properly](#31-handle-async-errors-properly) + - 3.2 [Throw HTTP Exceptions from Services](#32-throw-http-exceptions-from-services) + - 3.3 [Use Exception Filters for Error Handling](#33-use-exception-filters-for-error-handling) +4. [Security](#4-security) — **HIGH** + - 4.1 [Implement Secure JWT Authentication](#41-implement-secure-jwt-authentication) + - 4.2 [Implement Rate Limiting](#42-implement-rate-limiting) + - 4.3 [Sanitize Output to Prevent XSS](#43-sanitize-output-to-prevent-xss) + - 4.4 [Use Guards for Authentication and Authorization](#44-use-guards-for-authentication-and-authorization) + - 4.5 [Validate All Input with DTOs and Pipes](#45-validate-all-input-with-dtos-and-pipes) +5. [Performance](#5-performance) — **HIGH** + - 5.1 [Use Async Lifecycle Hooks Correctly](#51-use-async-lifecycle-hooks-correctly) + - 5.2 [Use Lazy Loading for Large Modules](#52-use-lazy-loading-for-large-modules) + - 5.3 [Optimize Database Queries](#53-optimize-database-queries) + - 5.4 [Use Caching Strategically](#54-use-caching-strategically) +6. [Testing](#6-testing) — **MEDIUM-HIGH** + - 6.1 [Use Supertest for E2E Testing](#61-use-supertest-for-e2e-testing) + - 6.2 [Mock External Services in Tests](#62-mock-external-services-in-tests) + - 6.3 [Use Testing Module for Unit Tests](#63-use-testing-module-for-unit-tests) +7. [Database & ORM](#7-database-orm) — **MEDIUM-HIGH** + - 7.1 [Avoid N+1 Query Problems](#71-avoid-n-1-query-problems) + - 7.2 [Use Database Migrations](#72-use-database-migrations) + - 7.3 [Use Transactions for Multi-Step Operations](#73-use-transactions-for-multi-step-operations) +8. [API Design](#8-api-design) — **MEDIUM** + - 8.1 [Use DTOs and Serialization for API Responses](#81-use-dtos-and-serialization-for-api-responses) + - 8.2 [Use Interceptors for Cross-Cutting Concerns](#82-use-interceptors-for-cross-cutting-concerns) + - 8.3 [Use Pipes for Input Transformation](#83-use-pipes-for-input-transformation) + - 8.4 [Use API Versioning for Breaking Changes](#84-use-api-versioning-for-breaking-changes) +9. [Microservices](#9-microservices) — **MEDIUM** + - 9.1 [Implement Health Checks for Microservices](#91-implement-health-checks-for-microservices) + - 9.2 [Use Message and Event Patterns Correctly](#92-use-message-and-event-patterns-correctly) + - 9.3 [Use Message Queues for Background Jobs](#93-use-message-queues-for-background-jobs) +10. [DevOps & Deployment](#10-devops-deployment) — **LOW-MEDIUM** + - 10.1 [Implement Graceful Shutdown](#101-implement-graceful-shutdown) + - 10.2 [Use ConfigModule for Environment Configuration](#102-use-configmodule-for-environment-configuration) + - 10.3 [Use Structured Logging](#103-use-structured-logging) + +--- + +## 1. Architecture + +**Section Impact: CRITICAL** + +### 1.1 Avoid Circular Dependencies + +**Impact: CRITICAL** — "#1 cause of runtime crashes" + +Circular dependencies occur when Module A imports Module B, and Module B imports Module A (directly or transitively). NestJS can sometimes resolve these through forward references, but they indicate architectural problems and should be avoided. This is the #1 cause of runtime crashes in NestJS applications. + +**Incorrect (circular module imports):** + +```typescript +// users.module.ts +@Module({ + imports: [OrdersModule], // Orders needs Users, Users needs Orders = circular + providers: [UsersService], + exports: [UsersService], +}) +export class UsersModule {} + +// orders.module.ts +@Module({ + imports: [UsersModule], // Circular dependency! + providers: [OrdersService], + exports: [OrdersService], +}) +export class OrdersModule {} +``` + +**Correct (extract shared logic or use events):** + +```typescript +// Option 1: Extract shared logic to a third module +// shared.module.ts +@Module({ + providers: [SharedService], + exports: [SharedService], +}) +export class SharedModule {} + +// users.module.ts +@Module({ + imports: [SharedModule], + providers: [UsersService], +}) +export class UsersModule {} + +// orders.module.ts +@Module({ + imports: [SharedModule], + providers: [OrdersService], +}) +export class OrdersModule {} + +// Option 2: Use events for decoupled communication +// users.service.ts +@Injectable() +export class UsersService { + constructor(private eventEmitter: EventEmitter2) {} + + async createUser(data: CreateUserDto) { + const user = await this.userRepo.save(data); + this.eventEmitter.emit('user.created', user); + return user; + } +} + +// orders.service.ts +@Injectable() +export class OrdersService { + @OnEvent('user.created') + handleUserCreated(user: User) { + // React to user creation without direct dependency + } +} +``` + +Reference: [NestJS Circular Dependency](https://docs.nestjs.com/fundamentals/circular-dependency) + +--- + +### 1.2 Organize by Feature Modules + +**Impact: CRITICAL** — "3-5x faster onboarding and development" + +Organize your application into feature modules that encapsulate related functionality. Each feature module should be self-contained with its own controllers, services, entities, and DTOs. Avoid organizing by technical layer (all controllers together, all services together). This enables 3-5x faster onboarding and feature development. + +**Incorrect (technical layer organization):** + +```typescript +// Technical layer organization (anti-pattern) +src/ +├── controllers/ +│ ├── users.controller.ts +│ ├── orders.controller.ts +│ └── products.controller.ts +├── services/ +│ ├── users.service.ts +│ ├── orders.service.ts +│ └── products.service.ts +├── entities/ +│ ├── user.entity.ts +│ ├── order.entity.ts +│ └── product.entity.ts +└── app.module.ts // Imports everything directly +``` + +**Correct (feature module organization):** + +```typescript +// Feature module organization +src/ +├── users/ +│ ├── dto/ +│ │ ├── create-user.dto.ts +│ │ └── update-user.dto.ts +│ ├── entities/ +│ │ └── user.entity.ts +│ ├── users.controller.ts +│ ├── users.service.ts +│ ├── users.repository.ts +│ └── users.module.ts +├── orders/ +│ ├── dto/ +│ ├── entities/ +│ ├── orders.controller.ts +│ ├── orders.service.ts +│ └── orders.module.ts +├── shared/ +│ ├── guards/ +│ ├── interceptors/ +│ ├── filters/ +│ └── shared.module.ts +└── app.module.ts + +// users.module.ts +@Module({ + imports: [TypeOrmModule.forFeature([User])], + controllers: [UsersController], + providers: [UsersService, UsersRepository], + exports: [UsersService], // Only export what others need +}) +export class UsersModule {} + +// app.module.ts +@Module({ + imports: [ + ConfigModule.forRoot(), + TypeOrmModule.forRoot(), + UsersModule, + OrdersModule, + SharedModule, + ], +}) +export class AppModule {} +``` + +Reference: [NestJS Modules](https://docs.nestjs.com/modules) + +--- + +### 1.3 Use Proper Module Sharing Patterns + +**Impact: CRITICAL** — Prevents duplicate instances, memory leaks, and state inconsistency + +NestJS modules are singletons by default. When a service is properly exported from a module and that module is imported elsewhere, the same instance is shared. However, providing a service in multiple modules creates separate instances, leading to memory waste, state inconsistency, and confusing behavior. Always encapsulate services in dedicated modules, export them explicitly, and import the module where needed. + +**Incorrect (service provided in multiple modules):** + +```typescript +// StorageService provided directly in multiple modules - WRONG +// storage.service.ts +@Injectable() +export class StorageService { + private cache = new Map(); // Each instance has separate state! + + store(key: string, value: any) { + this.cache.set(key, value); + } +} + +// app.module.ts +@Module({ + providers: [StorageService], // Instance #1 + controllers: [AppController], +}) +export class AppModule {} + +// videos.module.ts +@Module({ + providers: [StorageService], // Instance #2 - different from AppModule! + controllers: [VideosController], +}) +export class VideosModule {} + +// Problems: +// 1. Two separate StorageService instances exist +// 2. cache.set() in VideosModule doesn't affect AppModule's cache +// 3. Memory wasted on duplicate instances +// 4. Debugging nightmares when state doesn't sync +``` + +**Correct (dedicated module with exports):** + +```typescript +// storage/storage.module.ts +@Module({ + providers: [StorageService], + exports: [StorageService], // Make available to importers +}) +export class StorageModule {} + +// videos/videos.module.ts +@Module({ + imports: [StorageModule], // Import the module, not the service + controllers: [VideosController], + providers: [VideosService], +}) +export class VideosModule {} + +// channels/channels.module.ts +@Module({ + imports: [StorageModule], // Same instance shared + controllers: [ChannelsController], + providers: [ChannelsService], +}) +export class ChannelsModule {} + +// app.module.ts +@Module({ + imports: [ + StorageModule, // Only if AppModule itself needs StorageService + VideosModule, + ChannelsModule, + ], +}) +export class AppModule {} + +// Now all modules share the SAME StorageService instance +``` + +**When to use @Global() (sparingly):** + +```typescript +// ONLY for truly cross-cutting concerns +@Global() +@Module({ + providers: [ConfigService, LoggerService], + exports: [ConfigService, LoggerService], +}) +export class CoreModule {} + +// Import once in AppModule +@Module({ + imports: [CoreModule], // Registered globally, available everywhere +}) +export class AppModule {} + +// Other modules don't need to import CoreModule +@Module({ + controllers: [UsersController], + providers: [UsersService], // Can inject ConfigService without importing +}) +export class UsersModule {} + +// WARNING: Don't make everything global! +// - Hides dependencies (can't see what a module needs from imports) +// - Makes testing harder +// - Reserve for: config, logging, database connections +``` + +**Module re-exporting pattern:** + +```typescript +// common.module.ts - shared utilities +@Module({ + providers: [DateService, ValidationService], + exports: [DateService, ValidationService], +}) +export class CommonModule {} + +// core.module.ts - re-exports common for convenience +@Module({ + imports: [CommonModule, DatabaseModule], + exports: [CommonModule, DatabaseModule], // Re-export for consumers +}) +export class CoreModule {} + +// feature.module.ts - imports CoreModule, gets both +@Module({ + imports: [CoreModule], // Gets CommonModule + DatabaseModule + controllers: [FeatureController], +}) +export class FeatureModule {} +``` + +Reference: [NestJS Modules](https://docs.nestjs.com/modules#shared-modules) + +--- + +### 1.4 Single Responsibility for Services + +**Impact: CRITICAL** — "40%+ improvement in testability" + +Each service should have a single, well-defined responsibility. Avoid "god services" that handle multiple unrelated concerns. If a service name includes "And" or handles more than one domain concept, it likely violates single responsibility. This reduces complexity and improves testability by 40%+. + +**Incorrect (god service anti-pattern):** + +```typescript +// God service anti-pattern +@Injectable() +export class UserAndOrderService { + constructor( + private userRepo: UserRepository, + private orderRepo: OrderRepository, + private mailer: MailService, + private payment: PaymentService, + ) {} + + async createUser(dto: CreateUserDto) { + const user = await this.userRepo.save(dto); + await this.mailer.sendWelcome(user); + return user; + } + + async createOrder(userId: string, dto: CreateOrderDto) { + const order = await this.orderRepo.save({ userId, ...dto }); + await this.payment.charge(order); + await this.mailer.sendOrderConfirmation(order); + return order; + } + + async calculateOrderStats(userId: string) { + // Stats logic mixed in + } + + async validatePayment(orderId: string) { + // Payment logic mixed in + } +} +``` + +**Correct (focused services with single responsibility):** + +```typescript +// Focused services with single responsibility +@Injectable() +export class UsersService { + constructor(private userRepo: UserRepository) {} + + async create(dto: CreateUserDto): Promise { + return this.userRepo.save(dto); + } + + async findById(id: string): Promise { + return this.userRepo.findOneOrFail({ where: { id } }); + } +} + +@Injectable() +export class OrdersService { + constructor(private orderRepo: OrderRepository) {} + + async create(userId: string, dto: CreateOrderDto): Promise { + return this.orderRepo.save({ userId, ...dto }); + } + + async findByUser(userId: string): Promise { + return this.orderRepo.find({ where: { userId } }); + } +} + +@Injectable() +export class OrderStatsService { + constructor(private orderRepo: OrderRepository) {} + + async calculateForUser(userId: string): Promise { + // Focused stats calculation + } +} + +// Orchestration in controller or dedicated orchestrator +@Controller('orders') +export class OrdersController { + constructor( + private orders: OrdersService, + private payment: PaymentService, + private notifications: NotificationService, + ) {} + + @Post() + async create(@CurrentUser() user: User, @Body() dto: CreateOrderDto) { + const order = await this.orders.create(user.id, dto); + await this.payment.charge(order); + await this.notifications.sendOrderConfirmation(order); + return order; + } +} +``` + +Reference: [NestJS Providers](https://docs.nestjs.com/providers) + +--- + +### 1.5 Use Event-Driven Architecture for Decoupling + +**Impact: MEDIUM-HIGH** — Enables async processing and modularity + +Use `@nestjs/event-emitter` for intra-service events and message brokers for inter-service communication. Events allow modules to react to changes without direct dependencies, improving modularity and enabling async processing. + +**Incorrect (direct service coupling):** + +```typescript +// Direct service coupling +@Injectable() +export class OrdersService { + constructor( + private inventoryService: InventoryService, + private emailService: EmailService, + private analyticsService: AnalyticsService, + private notificationService: NotificationService, + private loyaltyService: LoyaltyService, + ) {} + + async createOrder(dto: CreateOrderDto): Promise { + const order = await this.repo.save(dto); + + // Tight coupling - OrdersService knows about all consumers + await this.inventoryService.reserve(order.items); + await this.emailService.sendConfirmation(order); + await this.analyticsService.track('order_created', order); + await this.notificationService.push(order.userId, 'Order placed'); + await this.loyaltyService.addPoints(order.userId, order.total); + + // Adding new behavior requires modifying this service + return order; + } +} +``` + +**Correct (event-driven decoupling):** + +```typescript +// Use EventEmitter for decoupling +import { EventEmitter2 } from '@nestjs/event-emitter'; + +// Define event +export class OrderCreatedEvent { + constructor( + public readonly orderId: string, + public readonly userId: string, + public readonly items: OrderItem[], + public readonly total: number, + ) {} +} + +// Service emits events +@Injectable() +export class OrdersService { + constructor( + private eventEmitter: EventEmitter2, + private repo: Repository, + ) {} + + async createOrder(dto: CreateOrderDto): Promise { + const order = await this.repo.save(dto); + + // Emit event - no knowledge of consumers + this.eventEmitter.emit( + 'order.created', + new OrderCreatedEvent(order.id, order.userId, order.items, order.total), + ); + + return order; + } +} + +// Listeners in separate modules +@Injectable() +export class InventoryListener { + @OnEvent('order.created') + async handleOrderCreated(event: OrderCreatedEvent): Promise { + await this.inventoryService.reserve(event.items); + } +} + +@Injectable() +export class EmailListener { + @OnEvent('order.created') + async handleOrderCreated(event: OrderCreatedEvent): Promise { + await this.emailService.sendConfirmation(event.orderId); + } +} + +@Injectable() +export class AnalyticsListener { + @OnEvent('order.created') + async handleOrderCreated(event: OrderCreatedEvent): Promise { + await this.analyticsService.track('order_created', { + orderId: event.orderId, + total: event.total, + }); + } +} +``` + +Reference: [NestJS Events](https://docs.nestjs.com/techniques/events) + +--- + +### 1.6 Use Repository Pattern for Data Access + +**Impact: HIGH** — Decouples business logic from database + +Create custom repositories to encapsulate complex queries and database logic. This keeps services focused on business logic, makes testing easier with mock repositories, and allows changing database implementations without affecting business code. + +**Incorrect (complex queries in services):** + +```typescript +// Complex queries in services +@Injectable() +export class UsersService { + constructor( + @InjectRepository(User) private repo: Repository, + ) {} + + async findActiveWithOrders(minOrders: number): Promise { + // Complex query logic mixed with business logic + return this.repo + .createQueryBuilder('user') + .leftJoinAndSelect('user.orders', 'order') + .where('user.isActive = :active', { active: true }) + .andWhere('user.deletedAt IS NULL') + .groupBy('user.id') + .having('COUNT(order.id) >= :min', { min: minOrders }) + .orderBy('user.createdAt', 'DESC') + .getMany(); + } + + // Service becomes bloated with query logic +} +``` + +**Correct (custom repository with encapsulated queries):** + +```typescript +// Custom repository with encapsulated queries +@Injectable() +export class UsersRepository { + constructor( + @InjectRepository(User) private repo: Repository, + ) {} + + async findById(id: string): Promise { + return this.repo.findOne({ where: { id } }); + } + + async findByEmail(email: string): Promise { + return this.repo.findOne({ where: { email } }); + } + + async findActiveWithMinOrders(minOrders: number): Promise { + return this.repo + .createQueryBuilder('user') + .leftJoinAndSelect('user.orders', 'order') + .where('user.isActive = :active', { active: true }) + .andWhere('user.deletedAt IS NULL') + .groupBy('user.id') + .having('COUNT(order.id) >= :min', { min: minOrders }) + .orderBy('user.createdAt', 'DESC') + .getMany(); + } + + async save(user: User): Promise { + return this.repo.save(user); + } +} + +// Clean service with business logic only +@Injectable() +export class UsersService { + constructor(private usersRepo: UsersRepository) {} + + async getActiveUsersWithOrders(): Promise { + return this.usersRepo.findActiveWithMinOrders(1); + } + + async create(dto: CreateUserDto): Promise { + const existing = await this.usersRepo.findByEmail(dto.email); + if (existing) { + throw new ConflictException('Email already registered'); + } + + const user = new User(); + user.email = dto.email; + user.name = dto.name; + return this.usersRepo.save(user); + } +} +``` + +Reference: [Repository Pattern](https://martinfowler.com/eaaCatalog/repository.html) + +--- + +## 2. Dependency Injection + +**Section Impact: CRITICAL** + +### 2.1 Avoid Service Locator Anti-Pattern + +**Impact: HIGH** — Hides dependencies and breaks testability + +Avoid using `ModuleRef.get()` or global containers to resolve dependencies at runtime. This hides dependencies, makes code harder to test, and breaks the benefits of dependency injection. Use constructor injection instead. + +**Incorrect (service locator anti-pattern):** + +```typescript +// Use ModuleRef to get dependencies dynamically +@Injectable() +export class OrdersService { + constructor(private moduleRef: ModuleRef) {} + + async createOrder(dto: CreateOrderDto): Promise { + // Dependencies are hidden - not visible in constructor + const usersService = this.moduleRef.get(UsersService); + const inventoryService = this.moduleRef.get(InventoryService); + const paymentService = this.moduleRef.get(PaymentService); + + const user = await usersService.findOne(dto.userId); + // ... rest of logic + } +} + +// Global singleton container +class ServiceContainer { + private static instance: ServiceContainer; + private services = new Map(); + + static getInstance(): ServiceContainer { + if (!this.instance) { + this.instance = new ServiceContainer(); + } + return this.instance; + } + + get(key: string): T { + return this.services.get(key); + } +} +``` + +**Correct (constructor injection with explicit dependencies):** + +```typescript +// Use constructor injection - dependencies are explicit +@Injectable() +export class OrdersService { + constructor( + private usersService: UsersService, + private inventoryService: InventoryService, + private paymentService: PaymentService, + ) {} + + async createOrder(dto: CreateOrderDto): Promise { + const user = await this.usersService.findOne(dto.userId); + const inventory = await this.inventoryService.check(dto.items); + // Dependencies are clear and testable + } +} + +// Easy to test with mocks +describe('OrdersService', () => { + let service: OrdersService; + + beforeEach(async () => { + const module = await Test.createTestingModule({ + providers: [ + OrdersService, + { provide: UsersService, useValue: mockUsersService }, + { provide: InventoryService, useValue: mockInventoryService }, + { provide: PaymentService, useValue: mockPaymentService }, + ], + }).compile(); + + service = module.get(OrdersService); + }); +}); + +// VALID: Factory pattern for dynamic instantiation +@Injectable() +export class HandlerFactory { + constructor(private moduleRef: ModuleRef) {} + + getHandler(type: string): Handler { + switch (type) { + case 'email': + return this.moduleRef.get(EmailHandler); + case 'sms': + return this.moduleRef.get(SmsHandler); + default: + return this.moduleRef.get(DefaultHandler); + } + } +} +``` + +Reference: [NestJS Module Reference](https://docs.nestjs.com/fundamentals/module-ref) + +--- + +### 2.2 Apply Interface Segregation Principle + +**Impact: HIGH** — Reduces coupling and improves testability by 30-50% + +Clients should not be forced to depend on interfaces they don't use. In NestJS, this means keeping interfaces small and focused on specific capabilities rather than creating "fat" interfaces that bundle unrelated methods. When a service only needs to send emails, it shouldn't depend on an interface that also includes SMS, push notifications, and logging. Split large interfaces into role-based ones. + +**Incorrect (fat interface forcing unused dependencies):** + +```typescript +// Fat interface - forces all consumers to depend on everything +interface NotificationService { + sendEmail(to: string, subject: string, body: string): Promise; + sendSms(phone: string, message: string): Promise; + sendPush(userId: string, notification: PushPayload): Promise; + sendSlack(channel: string, message: string): Promise; + logNotification(type: string, payload: any): Promise; + getDeliveryStatus(id: string): Promise; + retryFailed(id: string): Promise; + scheduleNotification(dto: ScheduleDto): Promise; +} + +// Consumer only needs email, but must mock everything for tests +@Injectable() +export class OrdersService { + constructor( + private notifications: NotificationService, // Depends on 8 methods, uses 1 + ) {} + + async confirmOrder(order: Order): Promise { + await this.notifications.sendEmail( + order.customer.email, + 'Order Confirmed', + `Your order ${order.id} has been confirmed.`, + ); + } +} + +// Testing is painful - must mock unused methods +const mockNotificationService = { + sendEmail: jest.fn(), + sendSms: jest.fn(), // Never used, but required + sendPush: jest.fn(), // Never used, but required + sendSlack: jest.fn(), // Never used, but required + logNotification: jest.fn(), // Never used, but required + getDeliveryStatus: jest.fn(), // Never used, but required + retryFailed: jest.fn(), // Never used, but required + scheduleNotification: jest.fn(), // Never used, but required +}; +``` + +**Correct (segregated interfaces by capability):** + +```typescript +// Segregated interfaces - each focused on one capability +interface EmailSender { + sendEmail(to: string, subject: string, body: string): Promise; +} + +interface SmsSender { + sendSms(phone: string, message: string): Promise; +} + +interface PushSender { + sendPush(userId: string, notification: PushPayload): Promise; +} + +interface NotificationLogger { + logNotification(type: string, payload: any): Promise; +} + +interface NotificationScheduler { + scheduleNotification(dto: ScheduleDto): Promise; +} + +// Implementation can implement multiple interfaces +@Injectable() +export class NotificationService implements EmailSender, SmsSender, PushSender { + async sendEmail(to: string, subject: string, body: string): Promise { + // Email implementation + } + + async sendSms(phone: string, message: string): Promise { + // SMS implementation + } + + async sendPush(userId: string, notification: PushPayload): Promise { + // Push implementation + } +} + +// Or separate implementations +@Injectable() +export class SendGridEmailService implements EmailSender { + async sendEmail(to: string, subject: string, body: string): Promise { + // SendGrid-specific implementation + } +} + +// Consumer depends only on what it needs +@Injectable() +export class OrdersService { + constructor( + @Inject(EMAIL_SENDER) private emailSender: EmailSender, // Minimal dependency + ) {} + + async confirmOrder(order: Order): Promise { + await this.emailSender.sendEmail( + order.customer.email, + 'Order Confirmed', + `Your order ${order.id} has been confirmed.`, + ); + } +} + +// Testing is simple - only mock what's used +const mockEmailSender: EmailSender = { + sendEmail: jest.fn(), +}; + +// Module registration with tokens +export const EMAIL_SENDER = Symbol('EMAIL_SENDER'); +export const SMS_SENDER = Symbol('SMS_SENDER'); + +@Module({ + providers: [ + { provide: EMAIL_SENDER, useClass: SendGridEmailService }, + { provide: SMS_SENDER, useClass: TwilioSmsService }, + ], + exports: [EMAIL_SENDER, SMS_SENDER], +}) +export class NotificationModule {} +``` + +**Combining interfaces when needed:** + +```typescript +// Sometimes a consumer legitimately needs multiple capabilities +interface EmailAndSmsSender extends EmailSender, SmsSender {} + +// Or use intersection types +type MultiChannelSender = EmailSender & SmsSender & PushSender; + +// Consumer that genuinely needs multiple channels +@Injectable() +export class AlertService { + constructor( + @Inject(MULTI_CHANNEL_SENDER) + private sender: EmailSender & SmsSender, + ) {} + + async sendCriticalAlert(user: User, message: string): Promise { + await Promise.all([ + this.sender.sendEmail(user.email, 'Critical Alert', message), + this.sender.sendSms(user.phone, message), + ]); + } +} +``` + +Reference: [Interface Segregation Principle](https://en.wikipedia.org/wiki/Interface_segregation_principle) + +--- + +### 2.3 Honor Liskov Substitution Principle + +**Impact: HIGH** — Ensures implementations are truly interchangeable without breaking callers + +Subtypes must be substitutable for their base types without altering program correctness. In NestJS with dependency injection, this means any implementation of an interface or abstract class must honor the contract completely. A mock payment service used in tests must behave like a real payment service (return similar shapes, handle errors the same way). Violating LSP causes subtle bugs when swapping implementations. + +**Incorrect (implementation violates the contract):** + +```typescript +// Base interface with clear contract +interface PaymentGateway { + /** + * Charges the specified amount. + * @returns PaymentResult on success + * @throws PaymentFailedException on payment failure + */ + charge(amount: number, currency: string): Promise; +} + +// Production implementation - follows the contract +@Injectable() +export class StripeService implements PaymentGateway { + async charge(amount: number, currency: string): Promise { + const response = await this.stripe.charges.create({ amount, currency }); + return { success: true, transactionId: response.id, amount }; + } +} + +// Mock that violates LSP - different behavior! +@Injectable() +export class MockPaymentService implements PaymentGateway { + async charge(amount: number, currency: string): Promise { + // VIOLATION 1: Throws for valid input (contract says return PaymentResult) + if (amount > 1000) { + throw new Error('Mock does not support large amounts'); + } + + // VIOLATION 2: Returns null instead of PaymentResult + if (currency !== 'USD') { + return null as any; // Real service would convert or reject properly + } + + // VIOLATION 3: Missing required field + return { success: true } as PaymentResult; // Missing transactionId! + } +} + +// Consumer trusts the contract +@Injectable() +export class OrdersService { + constructor(@Inject(PAYMENT_GATEWAY) private payment: PaymentGateway) {} + + async checkout(order: Order): Promise { + const result = await this.payment.charge(order.total, order.currency); + // These fail with MockPaymentService: + await this.saveTransaction(result.transactionId); // undefined! + await this.sendReceipt(result); // might be null! + } +} +``` + +**Correct (implementations honor the contract):** + +```typescript +// Well-defined interface with documented behavior +interface PaymentGateway { + /** + * Charges the specified amount. + * @param amount - Amount in smallest currency unit (cents) + * @param currency - ISO 4217 currency code + * @returns PaymentResult with transactionId, success status, and amount + * @throws PaymentFailedException if charge is declined + * @throws InvalidCurrencyException if currency is not supported + */ + charge(amount: number, currency: string): Promise; + + /** + * Refunds a previous charge. + * @throws TransactionNotFoundException if transactionId is invalid + */ + refund(transactionId: string, amount?: number): Promise; +} + +// Production implementation +@Injectable() +export class StripeService implements PaymentGateway { + async charge(amount: number, currency: string): Promise { + try { + const response = await this.stripe.charges.create({ amount, currency }); + return { + success: true, + transactionId: response.id, + amount: response.amount, + }; + } catch (error) { + if (error.type === 'card_error') { + throw new PaymentFailedException(error.message); + } + throw error; + } + } + + async refund(transactionId: string, amount?: number): Promise { + // Implementation... + } +} + +// Mock that honors LSP - same contract, same behavior shape +@Injectable() +export class MockPaymentService implements PaymentGateway { + private transactions = new Map(); + + async charge(amount: number, currency: string): Promise { + // Honor the contract: validate currency like real service would + if (!['USD', 'EUR', 'GBP'].includes(currency)) { + throw new InvalidCurrencyException(`Unsupported currency: ${currency}`); + } + + // Simulate decline for specific test scenarios + if (amount === 99999) { + throw new PaymentFailedException('Card declined (test scenario)'); + } + + // Return same shape as production + const result: PaymentResult = { + success: true, + transactionId: `mock_${Date.now()}_${Math.random().toString(36)}`, + amount, + }; + + this.transactions.set(result.transactionId, result); + return result; + } + + async refund(transactionId: string, amount?: number): Promise { + // Honor the contract: throw if transaction not found + if (!this.transactions.has(transactionId)) { + throw new TransactionNotFoundException(transactionId); + } + + return { + success: true, + refundId: `refund_${transactionId}`, + amount: amount ?? this.transactions.get(transactionId)!.amount, + }; + } +} + +// Consumer can swap implementations safely +@Injectable() +export class OrdersService { + constructor(@Inject(PAYMENT_GATEWAY) private payment: PaymentGateway) {} + + async checkout(order: Order): Promise { + try { + const result = await this.payment.charge(order.total, order.currency); + // Works with both StripeService and MockPaymentService + order.transactionId = result.transactionId; + order.status = 'paid'; + return order; + } catch (error) { + if (error instanceof PaymentFailedException) { + order.status = 'payment_failed'; + return order; + } + throw error; + } + } +} +``` + +**Testing LSP compliance:** + +```typescript +// Shared test suite that any implementation must pass +function testPaymentGatewayContract( + createGateway: () => PaymentGateway, +) { + describe('PaymentGateway contract', () => { + let gateway: PaymentGateway; + + beforeEach(() => { + gateway = createGateway(); + }); + + it('returns PaymentResult with all required fields', async () => { + const result = await gateway.charge(1000, 'USD'); + expect(result).toHaveProperty('success'); + expect(result).toHaveProperty('transactionId'); + expect(result).toHaveProperty('amount'); + expect(typeof result.transactionId).toBe('string'); + }); + + it('throws InvalidCurrencyException for unsupported currency', async () => { + await expect(gateway.charge(1000, 'INVALID')) + .rejects.toThrow(InvalidCurrencyException); + }); + + it('throws TransactionNotFoundException for invalid refund', async () => { + await expect(gateway.refund('nonexistent')) + .rejects.toThrow(TransactionNotFoundException); + }); + }); +} + +// Run against all implementations +describe('StripeService', () => { + testPaymentGatewayContract(() => new StripeService(mockStripeClient)); +}); + +describe('MockPaymentService', () => { + testPaymentGatewayContract(() => new MockPaymentService()); +}); +``` + +Reference: [Liskov Substitution Principle](https://en.wikipedia.org/wiki/Liskov_substitution_principle) + +--- + +### 2.4 Prefer Constructor Injection + +**Impact: CRITICAL** — Required for proper DI and testing + +Always use constructor injection over property injection. Constructor injection makes dependencies explicit, enables TypeScript type checking, ensures dependencies are available when the class is instantiated, and improves testability. This is required for proper DI, testing, and TypeScript support. + +**Incorrect (property injection with hidden dependencies):** + +```typescript +// Property injection - avoid unless necessary +@Injectable() +export class UsersService { + @Inject() + private userRepo: UserRepository; // Hidden dependency + + @Inject('CONFIG') + private config: ConfigType; // Also hidden + + async findAll() { + return this.userRepo.find(); + } +} + +// Problems: +// 1. Dependencies not visible in constructor +// 2. Service can be instantiated without dependencies in tests +// 3. TypeScript can't enforce dependency types at instantiation +``` + +**Correct (constructor injection with explicit dependencies):** + +```typescript +// Constructor injection - explicit and testable +@Injectable() +export class UsersService { + constructor( + private readonly userRepo: UserRepository, + @Inject('CONFIG') private readonly config: ConfigType, + ) {} + + async findAll(): Promise { + return this.userRepo.find(); + } +} + +// Testing is straightforward +describe('UsersService', () => { + let service: UsersService; + let mockRepo: jest.Mocked; + + beforeEach(() => { + mockRepo = { + find: jest.fn(), + save: jest.fn(), + } as any; + + service = new UsersService(mockRepo, { dbUrl: 'test' }); + }); + + it('should find all users', async () => { + mockRepo.find.mockResolvedValue([{ id: '1', name: 'Test' }]); + const result = await service.findAll(); + expect(result).toHaveLength(1); + }); +}); + +// Only use property injection for optional dependencies +@Injectable() +export class LoggingService { + @Optional() + @Inject('ANALYTICS') + private analytics?: AnalyticsService; + + log(message: string) { + console.log(message); + this.analytics?.track('log', message); // Optional enhancement + } +} +``` + +Reference: [NestJS Providers](https://docs.nestjs.com/providers) + +--- + +### 2.5 Understand Provider Scopes + +**Impact: CRITICAL** — Prevents data leaks and performance issues + +NestJS has three provider scopes: DEFAULT (singleton), REQUEST (per-request instance), and TRANSIENT (new instance for each injection). Most providers should be singletons. Request-scoped providers have performance implications as they bubble up through the dependency tree. Understanding scopes prevents memory leaks and incorrect data sharing. + +**Incorrect (wrong scope usage):** + +```typescript +// Request-scoped when not needed (performance hit) +@Injectable({ scope: Scope.REQUEST }) +export class UsersService { + // This creates a new instance for EVERY request + // All dependencies also become request-scoped + async findAll() { + return this.userRepo.find(); + } +} + +// Singleton with mutable request state +@Injectable() // Default: singleton +export class RequestContextService { + private userId: string; // DANGER: Shared across all requests! + + setUser(userId: string) { + this.userId = userId; // Overwrites for all concurrent requests + } + + getUser() { + return this.userId; // Returns wrong user! + } +} +``` + +**Correct (appropriate scope for each use case):** + +```typescript +// Singleton for stateless services (default, most common) +@Injectable() +export class UsersService { + constructor(private readonly userRepo: UserRepository) {} + + async findById(id: string): Promise { + return this.userRepo.findOne({ where: { id } }); + } +} + +// Request-scoped ONLY when you need request context +@Injectable({ scope: Scope.REQUEST }) +export class RequestContextService { + private userId: string; + + setUser(userId: string) { + this.userId = userId; + } + + getUser(): string { + return this.userId; + } +} + +// Better: Use NestJS built-in request context +import { REQUEST } from '@nestjs/core'; +import { Request } from 'express'; + +@Injectable({ scope: Scope.REQUEST }) +export class AuditService { + constructor(@Inject(REQUEST) private request: Request) {} + + log(action: string) { + console.log(`User ${this.request.user?.id} performed ${action}`); + } +} + +// Best: Use ClsModule for async context (no scope bubble-up) +import { ClsService } from 'nestjs-cls'; + +@Injectable() // Stays singleton! +export class AuditService { + constructor(private cls: ClsService) {} + + log(action: string) { + const userId = this.cls.get('userId'); + console.log(`User ${userId} performed ${action}`); + } +} +``` + +Reference: [NestJS Injection Scopes](https://docs.nestjs.com/fundamentals/injection-scopes) + +--- + +### 2.6 Use Injection Tokens for Interfaces + +**Impact: HIGH** — Enables interface-based DI at runtime + +TypeScript interfaces are erased at compile time and can't be used as injection tokens. Use string tokens, symbols, or abstract classes when you want to inject implementations of interfaces. This enables swapping implementations for testing or different environments. + +**Incorrect (interface can't be used as token):** + +```typescript +// Interface can't be used as injection token +interface PaymentGateway { + charge(amount: number): Promise; +} + +@Injectable() +export class StripeService implements PaymentGateway { + charge(amount: number) { /* ... */ } +} + +@Injectable() +export class OrdersService { + // This WON'T work - PaymentGateway doesn't exist at runtime + constructor(private payment: PaymentGateway) {} +} +``` + +**Correct (symbol tokens or abstract classes):** + +```typescript +// Option 1: String/Symbol tokens (most flexible) +export const PAYMENT_GATEWAY = Symbol('PAYMENT_GATEWAY'); + +export interface PaymentGateway { + charge(amount: number): Promise; +} + +@Injectable() +export class StripeService implements PaymentGateway { + async charge(amount: number): Promise { + // Stripe implementation + } +} + +@Injectable() +export class MockPaymentService implements PaymentGateway { + async charge(amount: number): Promise { + return { success: true, id: 'mock-id' }; + } +} + +// Module registration +@Module({ + providers: [ + { + provide: PAYMENT_GATEWAY, + useClass: process.env.NODE_ENV === 'test' + ? MockPaymentService + : StripeService, + }, + ], + exports: [PAYMENT_GATEWAY], +}) +export class PaymentModule {} + +// Injection +@Injectable() +export class OrdersService { + constructor( + @Inject(PAYMENT_GATEWAY) private payment: PaymentGateway, + ) {} + + async createOrder(dto: CreateOrderDto) { + await this.payment.charge(dto.amount); + } +} + +// Option 2: Abstract class (carries runtime type info) +export abstract class PaymentGateway { + abstract charge(amount: number): Promise; +} + +@Injectable() +export class StripeService extends PaymentGateway { + async charge(amount: number): Promise { + // Implementation + } +} + +// No @Inject needed with abstract class +@Injectable() +export class OrdersService { + constructor(private payment: PaymentGateway) {} +} +``` + +Reference: [NestJS Custom Providers](https://docs.nestjs.com/fundamentals/custom-providers) + +--- + +## 3. Error Handling + +**Section Impact: HIGH** + +### 3.1 Handle Async Errors Properly + +**Impact: HIGH** — Prevents process crashes from unhandled rejections + +NestJS automatically catches errors from async route handlers, but errors from background tasks, event handlers, and manually created promises can crash your application. Always handle async errors explicitly and use global handlers as a safety net. + +**Incorrect (fire-and-forget without error handling):** + +```typescript +// Fire-and-forget without error handling +@Injectable() +export class UsersService { + async createUser(dto: CreateUserDto): Promise { + const user = await this.repo.save(dto); + + // Fire and forget - if this fails, error is unhandled! + this.emailService.sendWelcome(user.email); + + return user; + } +} + +// Unhandled promise in event handler +@Injectable() +export class OrdersService { + @OnEvent('order.created') + handleOrderCreated(event: OrderCreatedEvent) { + // This returns a promise but it's not awaited! + this.processOrder(event); + // Errors will crash the process + } + + private async processOrder(event: OrderCreatedEvent): Promise { + await this.inventoryService.reserve(event.items); + await this.notificationService.send(event.userId); + } +} + +// Missing try-catch in scheduled tasks +@Cron('0 0 * * *') +async dailyCleanup(): Promise { + await this.cleanupService.run(); + // If this throws, no error handling +} +``` + +**Correct (explicit async error handling):** + +```typescript +// Handle fire-and-forget with explicit catch +@Injectable() +export class UsersService { + private readonly logger = new Logger(UsersService.name); + + async createUser(dto: CreateUserDto): Promise { + const user = await this.repo.save(dto); + + // Explicitly catch and log errors + this.emailService.sendWelcome(user.email).catch((error) => { + this.logger.error('Failed to send welcome email', error.stack); + // Optionally queue for retry + }); + + return user; + } +} + +// Properly handle async event handlers +@Injectable() +export class OrdersService { + private readonly logger = new Logger(OrdersService.name); + + @OnEvent('order.created') + async handleOrderCreated(event: OrderCreatedEvent): Promise { + try { + await this.processOrder(event); + } catch (error) { + this.logger.error('Failed to process order', { event, error }); + // Don't rethrow - would crash the process + await this.deadLetterQueue.add('order.created', event); + } + } +} + +// Safe scheduled tasks +@Injectable() +export class CleanupService { + private readonly logger = new Logger(CleanupService.name); + + @Cron('0 0 * * *') + async dailyCleanup(): Promise { + try { + await this.cleanupService.run(); + this.logger.log('Daily cleanup completed'); + } catch (error) { + this.logger.error('Daily cleanup failed', error.stack); + // Alert or retry logic + } + } +} + +// Global unhandled rejection handler in main.ts +async function bootstrap() { + const app = await NestFactory.create(AppModule); + const logger = new Logger('Bootstrap'); + + process.on('unhandledRejection', (reason, promise) => { + logger.error('Unhandled Rejection at:', promise, 'reason:', reason); + }); + + process.on('uncaughtException', (error) => { + logger.error('Uncaught Exception:', error); + process.exit(1); + }); + + await app.listen(3000); +} +``` + +Reference: [Node.js Unhandled Rejections](https://nodejs.org/api/process.html#event-unhandledrejection) + +--- + +### 3.2 Throw HTTP Exceptions from Services + +**Impact: HIGH** — Keeps controllers thin and simplifies error handling + +It's acceptable (and often preferable) to throw `HttpException` subclasses from services in HTTP applications. This keeps controllers thin and allows services to communicate appropriate error states. For truly layer-agnostic services, use domain exceptions that map to HTTP status codes. + +**Incorrect (return error objects instead of throwing):** + +```typescript +// Return error objects instead of throwing +@Injectable() +export class UsersService { + async findById(id: string): Promise<{ user?: User; error?: string }> { + const user = await this.repo.findOne({ where: { id } }); + if (!user) { + return { error: 'User not found' }; // Controller must check this + } + return { user }; + } +} + +@Controller('users') +export class UsersController { + @Get(':id') + async findOne(@Param('id') id: string) { + const result = await this.usersService.findById(id); + if (result.error) { + throw new NotFoundException(result.error); + } + return result.user; + } +} +``` + +**Correct (throw exceptions directly from service):** + +```typescript +// Throw exceptions directly from service +@Injectable() +export class UsersService { + constructor(private readonly repo: UserRepository) {} + + async findById(id: string): Promise { + const user = await this.repo.findOne({ where: { id } }); + if (!user) { + throw new NotFoundException(`User #${id} not found`); + } + return user; + } + + async create(dto: CreateUserDto): Promise { + const existing = await this.repo.findOne({ + where: { email: dto.email }, + }); + if (existing) { + throw new ConflictException('Email already registered'); + } + return this.repo.save(dto); + } + + async update(id: string, dto: UpdateUserDto): Promise { + const user = await this.findById(id); // Throws if not found + Object.assign(user, dto); + return this.repo.save(user); + } +} + +// Controller stays thin +@Controller('users') +export class UsersController { + @Get(':id') + findOne(@Param('id') id: string): Promise { + return this.usersService.findById(id); + } + + @Post() + create(@Body() dto: CreateUserDto): Promise { + return this.usersService.create(dto); + } +} + +// For layer-agnostic services, use domain exceptions +export class EntityNotFoundException extends Error { + constructor( + public readonly entity: string, + public readonly id: string, + ) { + super(`${entity} with ID "${id}" not found`); + } +} + +// Map to HTTP in exception filter +@Catch(EntityNotFoundException) +export class EntityNotFoundFilter implements ExceptionFilter { + catch(exception: EntityNotFoundException, host: ArgumentsHost) { + const ctx = host.switchToHttp(); + const response = ctx.getResponse(); + + response.status(404).json({ + statusCode: 404, + message: exception.message, + entity: exception.entity, + id: exception.id, + }); + } +} +``` + +Reference: [NestJS Exception Filters](https://docs.nestjs.com/exception-filters) + +--- + +### 3.3 Use Exception Filters for Error Handling + +**Impact: HIGH** — Consistent, centralized error handling + +Never catch exceptions and manually format error responses in controllers. Use NestJS exception filters to handle errors consistently across your application. Create custom exception filters for specific error types and a global filter for unhandled exceptions. + +**Incorrect (manual error handling in controllers):** + +```typescript +// Manual error handling in controllers +@Controller('users') +export class UsersController { + @Get(':id') + async findOne(@Param('id') id: string, @Res() res: Response) { + try { + const user = await this.usersService.findById(id); + if (!user) { + return res.status(404).json({ + statusCode: 404, + message: 'User not found', + }); + } + return res.json(user); + } catch (error) { + console.error(error); + return res.status(500).json({ + statusCode: 500, + message: 'Internal server error', + }); + } + } +} +``` + +**Correct (exception filters with consistent handling):** + +```typescript +// Use built-in and custom exceptions +@Controller('users') +export class UsersController { + @Get(':id') + async findOne(@Param('id') id: string): Promise { + const user = await this.usersService.findById(id); + if (!user) { + throw new NotFoundException(`User #${id} not found`); + } + return user; + } +} + +// Custom domain exception +export class UserNotFoundException extends NotFoundException { + constructor(userId: string) { + super({ + statusCode: 404, + error: 'Not Found', + message: `User with ID "${userId}" not found`, + code: 'USER_NOT_FOUND', + }); + } +} + +// Custom exception filter for domain errors +@Catch(DomainException) +export class DomainExceptionFilter implements ExceptionFilter { + catch(exception: DomainException, host: ArgumentsHost) { + const ctx = host.switchToHttp(); + const response = ctx.getResponse(); + const request = ctx.getRequest(); + + const status = exception.getStatus?.() || 400; + + response.status(status).json({ + statusCode: status, + code: exception.code, + message: exception.message, + timestamp: new Date().toISOString(), + path: request.url, + }); + } +} + +// Global exception filter for unhandled errors +@Catch() +export class AllExceptionsFilter implements ExceptionFilter { + constructor(private readonly logger: Logger) {} + + catch(exception: unknown, host: ArgumentsHost) { + const ctx = host.switchToHttp(); + const response = ctx.getResponse(); + const request = ctx.getRequest(); + + const status = + exception instanceof HttpException + ? exception.getStatus() + : HttpStatus.INTERNAL_SERVER_ERROR; + + const message = + exception instanceof HttpException + ? exception.message + : 'Internal server error'; + + this.logger.error( + `${request.method} ${request.url}`, + exception instanceof Error ? exception.stack : exception, + ); + + response.status(status).json({ + statusCode: status, + message, + timestamp: new Date().toISOString(), + path: request.url, + }); + } +} + +// Register globally in main.ts +app.useGlobalFilters( + new AllExceptionsFilter(app.get(Logger)), + new DomainExceptionFilter(), +); + +// Or via module +@Module({ + providers: [ + { + provide: APP_FILTER, + useClass: AllExceptionsFilter, + }, + ], +}) +export class AppModule {} +``` + +Reference: [NestJS Exception Filters](https://docs.nestjs.com/exception-filters) + +--- + +## 4. Security + +**Section Impact: HIGH** + +### 4.1 Implement Secure JWT Authentication + +**Impact: CRITICAL** — Essential for secure APIs + +Use `@nestjs/jwt` with `@nestjs/passport` for authentication. Store secrets securely, use appropriate token lifetimes, implement refresh tokens, and validate tokens properly. Never expose sensitive data in JWT payloads. + +**Incorrect (insecure JWT implementation):** + +```typescript +// Hardcode secrets +@Module({ + imports: [ + JwtModule.register({ + secret: 'my-secret-key', // Exposed in code + signOptions: { expiresIn: '7d' }, // Too long + }), + ], +}) +export class AuthModule {} + +// Store sensitive data in JWT +async login(user: User): Promise<{ accessToken: string }> { + const payload = { + sub: user.id, + email: user.email, + password: user.password, // NEVER include password! + ssn: user.ssn, // NEVER include sensitive data! + isAdmin: user.isAdmin, // Can be tampered if not verified + }; + return { accessToken: this.jwtService.sign(payload) }; +} + +// Skip token validation +@Injectable() +export class JwtStrategy extends PassportStrategy(Strategy) { + constructor() { + super({ + jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(), + secretOrKey: 'my-secret', + }); + } + + async validate(payload: any): Promise { + return payload; // No validation of user existence + } +} +``` + +**Correct (secure JWT with refresh tokens):** + +```typescript +// Secure JWT configuration +@Module({ + imports: [ + JwtModule.registerAsync({ + imports: [ConfigModule], + inject: [ConfigService], + useFactory: (config: ConfigService) => ({ + secret: config.get('JWT_SECRET'), + signOptions: { + expiresIn: '15m', // Short-lived access tokens + issuer: config.get('JWT_ISSUER'), + audience: config.get('JWT_AUDIENCE'), + }, + }), + }), + PassportModule.register({ defaultStrategy: 'jwt' }), + ], +}) +export class AuthModule {} + +// Minimal JWT payload +@Injectable() +export class AuthService { + async login(user: User): Promise { + // Only include necessary, non-sensitive data + const payload: JwtPayload = { + sub: user.id, + email: user.email, + roles: user.roles, + iat: Math.floor(Date.now() / 1000), + }; + + const accessToken = this.jwtService.sign(payload); + const refreshToken = await this.createRefreshToken(user.id); + + return { accessToken, refreshToken, expiresIn: 900 }; + } + + private async createRefreshToken(userId: string): Promise { + const token = randomBytes(32).toString('hex'); + const hashedToken = await bcrypt.hash(token, 10); + + await this.refreshTokenRepo.save({ + userId, + token: hashedToken, + expiresAt: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000), // 7 days + }); + + return token; + } +} + +// Proper JWT strategy with validation +@Injectable() +export class JwtStrategy extends PassportStrategy(Strategy) { + constructor( + private config: ConfigService, + private usersService: UsersService, + ) { + super({ + jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(), + secretOrKey: config.get('JWT_SECRET'), + ignoreExpiration: false, + issuer: config.get('JWT_ISSUER'), + audience: config.get('JWT_AUDIENCE'), + }); + } + + async validate(payload: JwtPayload): Promise { + // Verify user still exists and is active + const user = await this.usersService.findById(payload.sub); + + if (!user || !user.isActive) { + throw new UnauthorizedException('User not found or inactive'); + } + + // Verify token wasn't issued before password change + if (user.passwordChangedAt) { + const tokenIssuedAt = new Date(payload.iat * 1000); + if (tokenIssuedAt < user.passwordChangedAt) { + throw new UnauthorizedException('Token invalidated by password change'); + } + } + + return user; + } +} +``` + +Reference: [NestJS Authentication](https://docs.nestjs.com/security/authentication) + +--- + +### 4.2 Implement Rate Limiting + +**Impact: HIGH** — Protects against abuse and ensures fair resource usage + +Use `@nestjs/throttler` to limit request rates per client. Apply different limits for different endpoints - stricter for auth endpoints, more relaxed for read operations. Consider using Redis for distributed rate limiting in clustered deployments. + +**Incorrect (no rate limiting on sensitive endpoints):** + +```typescript +// No rate limiting on sensitive endpoints +@Controller('auth') +export class AuthController { + @Post('login') + async login(@Body() dto: LoginDto): Promise { + // Attackers can brute-force credentials + return this.authService.login(dto); + } + + @Post('forgot-password') + async forgotPassword(@Body() dto: ForgotPasswordDto): Promise { + // Can be abused to spam users with emails + return this.authService.sendResetEmail(dto.email); + } +} + +// Same limits for all endpoints +@UseGuards(ThrottlerGuard) +@Controller('api') +export class ApiController { + @Get('public-data') + async getPublic() {} // Should allow more requests + + @Post('process-payment') + async payment() {} // Should be more restrictive +} +``` + +**Correct (configured throttler with endpoint-specific limits):** + +```typescript +// Configure throttler globally with multiple limits +import { ThrottlerModule, ThrottlerGuard } from '@nestjs/throttler'; + +@Module({ + imports: [ + ThrottlerModule.forRoot([ + { + name: 'short', + ttl: 1000, // 1 second + limit: 3, // 3 requests per second + }, + { + name: 'medium', + ttl: 10000, // 10 seconds + limit: 20, // 20 requests per 10 seconds + }, + { + name: 'long', + ttl: 60000, // 1 minute + limit: 100, // 100 requests per minute + }, + ]), + ], + providers: [ + { + provide: APP_GUARD, + useClass: ThrottlerGuard, + }, + ], +}) +export class AppModule {} + +// Override limits per endpoint +@Controller('auth') +export class AuthController { + @Post('login') + @Throttle({ short: { limit: 5, ttl: 60000 } }) // 5 attempts per minute + async login(@Body() dto: LoginDto): Promise { + return this.authService.login(dto); + } + + @Post('forgot-password') + @Throttle({ short: { limit: 3, ttl: 3600000 } }) // 3 per hour + async forgotPassword(@Body() dto: ForgotPasswordDto): Promise { + return this.authService.sendResetEmail(dto.email); + } +} + +// Skip throttling for certain routes +@Controller('health') +export class HealthController { + @Get() + @SkipThrottle() + check(): string { + return 'OK'; + } +} + +// Custom throttle per user type +@Injectable() +export class CustomThrottlerGuard extends ThrottlerGuard { + protected async getTracker(req: Request): Promise { + // Use user ID if authenticated, IP otherwise + return req.user?.id || req.ip; + } + + protected async getLimit(context: ExecutionContext): Promise { + const request = context.switchToHttp().getRequest(); + + // Higher limits for authenticated users + if (request.user) { + return request.user.isPremium ? 1000 : 200; + } + + return 50; // Anonymous users + } +} +``` + +Reference: [NestJS Throttler](https://docs.nestjs.com/security/rate-limiting) + +--- + +### 4.3 Sanitize Output to Prevent XSS + +**Impact: HIGH** — XSS vulnerabilities can compromise user sessions and data + +While NestJS APIs typically return JSON (which browsers don't execute), XSS risks exist when rendering HTML, storing user content, or when frontend frameworks improperly handle API responses. Sanitize user-generated content before storage and use proper Content-Type headers. + +**Incorrect (storing raw HTML without sanitization):** + +```typescript +// Store raw HTML from users +@Injectable() +export class CommentsService { + async create(dto: CreateCommentDto): Promise { + // User can inject: + return this.repo.save({ + content: dto.content, // Raw, unsanitized + authorId: dto.authorId, + }); + } +} + +// Return HTML without sanitization +@Controller('pages') +export class PagesController { + @Get(':slug') + @Header('Content-Type', 'text/html') + async getPage(@Param('slug') slug: string): Promise { + const page = await this.pagesService.findBySlug(slug); + // If page.content contains user input, XSS is possible + return `${page.content}`; + } +} + +// Reflect user input in errors +@Get(':id') +async findOne(@Param('id') id: string): Promise { + const user = await this.repo.findOne({ where: { id } }); + if (!user) { + // XSS if id contains malicious content and error is rendered + throw new NotFoundException(`User ${id} not found`); + } + return user; +} +``` + +**Correct (sanitize content and use proper headers):** + +```typescript +// Sanitize HTML content before storage +import * as sanitizeHtml from 'sanitize-html'; + +@Injectable() +export class CommentsService { + private readonly sanitizeOptions: sanitizeHtml.IOptions = { + allowedTags: ['b', 'i', 'em', 'strong', 'a', 'p', 'br'], + allowedAttributes: { + a: ['href', 'title'], + }, + allowedSchemes: ['http', 'https', 'mailto'], + }; + + async create(dto: CreateCommentDto): Promise { + return this.repo.save({ + content: sanitizeHtml(dto.content, this.sanitizeOptions), + authorId: dto.authorId, + }); + } +} + +// Use validation pipe to strip HTML +import { Transform } from 'class-transformer'; + +export class CreatePostDto { + @IsString() + @MaxLength(1000) + @Transform(({ value }) => sanitizeHtml(value, { allowedTags: [] })) + title: string; + + @IsString() + @Transform(({ value }) => + sanitizeHtml(value, { + allowedTags: ['p', 'br', 'b', 'i', 'a'], + allowedAttributes: { a: ['href'] }, + }), + ) + content: string; +} + +// Set proper Content-Type headers +@Controller('api') +export class ApiController { + @Get('data') + @Header('Content-Type', 'application/json') + async getData(): Promise { + // JSON response - browser won't execute scripts + return this.service.getData(); + } +} + +// Sanitize error messages +@Get(':id') +async findOne(@Param('id', ParseUUIDPipe) id: string): Promise { + const user = await this.repo.findOne({ where: { id } }); + if (!user) { + // UUID validation ensures safe format + throw new NotFoundException('User not found'); + } + return user; +} + +// Use Helmet for CSP headers +import helmet from 'helmet'; + +async function bootstrap() { + const app = await NestFactory.create(AppModule); + + app.use( + helmet({ + contentSecurityPolicy: { + directives: { + defaultSrc: ["'self'"], + scriptSrc: ["'self'"], + styleSrc: ["'self'", "'unsafe-inline'"], + imgSrc: ["'self'", 'data:', 'https:'], + }, + }, + }), + ); + + await app.listen(3000); +} +``` + +Reference: [OWASP XSS Prevention](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html) + +--- + +### 4.4 Use Guards for Authentication and Authorization + +**Impact: HIGH** — Enforces access control before handlers execute + +Guards determine whether a request should be handled based on authentication state, roles, permissions, or other conditions. They run after middleware but before pipes and interceptors, making them ideal for access control. Use guards instead of manual checks in controllers. + +**Incorrect (manual auth checks in every handler):** + +```typescript +// Manual auth checks in every handler +@Controller('admin') +export class AdminController { + @Get('users') + async getUsers(@Request() req) { + if (!req.user) { + throw new UnauthorizedException(); + } + if (!req.user.roles.includes('admin')) { + throw new ForbiddenException(); + } + return this.adminService.getUsers(); + } + + @Delete('users/:id') + async deleteUser(@Request() req, @Param('id') id: string) { + if (!req.user) { + throw new UnauthorizedException(); + } + if (!req.user.roles.includes('admin')) { + throw new ForbiddenException(); + } + return this.adminService.deleteUser(id); + } +} +``` + +**Correct (guards with declarative decorators):** + +```typescript +// JWT Auth Guard +@Injectable() +export class JwtAuthGuard implements CanActivate { + constructor( + private jwtService: JwtService, + private reflector: Reflector, + ) {} + + async canActivate(context: ExecutionContext): Promise { + // Check for @Public() decorator + const isPublic = this.reflector.getAllAndOverride('isPublic', [ + context.getHandler(), + context.getClass(), + ]); + if (isPublic) return true; + + const request = context.switchToHttp().getRequest(); + const token = this.extractToken(request); + + if (!token) { + throw new UnauthorizedException('No token provided'); + } + + try { + request.user = await this.jwtService.verifyAsync(token); + return true; + } catch { + throw new UnauthorizedException('Invalid token'); + } + } + + private extractToken(request: Request): string | undefined { + const [type, token] = request.headers.authorization?.split(' ') ?? []; + return type === 'Bearer' ? token : undefined; + } +} + +// Roles Guard +@Injectable() +export class RolesGuard implements CanActivate { + constructor(private reflector: Reflector) {} + + canActivate(context: ExecutionContext): boolean { + const requiredRoles = this.reflector.getAllAndOverride('roles', [ + context.getHandler(), + context.getClass(), + ]); + + if (!requiredRoles) return true; + + const { user } = context.switchToHttp().getRequest(); + return requiredRoles.some((role) => user.roles?.includes(role)); + } +} + +// Decorators +export const Public = () => SetMetadata('isPublic', true); +export const Roles = (...roles: Role[]) => SetMetadata('roles', roles); + +// Register guards globally +@Module({ + providers: [ + { provide: APP_GUARD, useClass: JwtAuthGuard }, + { provide: APP_GUARD, useClass: RolesGuard }, + ], +}) +export class AppModule {} + +// Clean controller +@Controller('admin') +@Roles(Role.Admin) // Applied to all routes +export class AdminController { + @Get('users') + getUsers(): Promise { + return this.adminService.getUsers(); + } + + @Delete('users/:id') + deleteUser(@Param('id') id: string): Promise { + return this.adminService.deleteUser(id); + } + + @Public() // Override: no auth required + @Get('health') + health() { + return { status: 'ok' }; + } +} +``` + +Reference: [NestJS Guards](https://docs.nestjs.com/guards) + +--- + +### 4.5 Validate All Input with DTOs and Pipes + +**Impact: HIGH** — First line of defense against attacks + +Always validate incoming data using class-validator decorators on DTOs and the global ValidationPipe. Never trust user input. Validate all request bodies, query parameters, and route parameters before processing. + +**Incorrect (trust raw input without validation):** + +```typescript +// Trust raw input without validation +@Controller('users') +export class UsersController { + @Post() + create(@Body() body: any) { + // body could contain anything - SQL injection, XSS, etc. + return this.usersService.create(body); + } + + @Get() + findAll(@Query() query: any) { + // query.limit could be "'; DROP TABLE users; --" + return this.usersService.findAll(query.limit); + } +} + +// DTOs without validation decorators +export class CreateUserDto { + name: string; // No validation + email: string; // Could be "not-an-email" + age: number; // Could be "abc" or -999 +} +``` + +**Correct (validated DTOs with global ValidationPipe):** + +```typescript +// Enable ValidationPipe globally in main.ts +async function bootstrap() { + const app = await NestFactory.create(AppModule); + + app.useGlobalPipes( + new ValidationPipe({ + whitelist: true, // Strip unknown properties + forbidNonWhitelisted: true, // Throw on unknown properties + transform: true, // Auto-transform to DTO types + transformOptions: { + enableImplicitConversion: true, + }, + }), + ); + + await app.listen(3000); +} + +// Create well-validated DTOs +import { + IsString, + IsEmail, + IsInt, + Min, + Max, + IsOptional, + MinLength, + MaxLength, + Matches, + IsNotEmpty, +} from 'class-validator'; +import { Transform, Type } from 'class-transformer'; + +export class CreateUserDto { + @IsString() + @IsNotEmpty() + @MinLength(2) + @MaxLength(100) + @Transform(({ value }) => value?.trim()) + name: string; + + @IsEmail() + @Transform(({ value }) => value?.toLowerCase().trim()) + email: string; + + @IsInt() + @Min(0) + @Max(150) + age: number; + + @IsString() + @MinLength(8) + @MaxLength(100) + @Matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)/, { + message: 'Password must contain uppercase, lowercase, and number', + }) + password: string; +} + +// Query DTO with defaults and transformation +export class FindUsersQueryDto { + @IsOptional() + @IsString() + @MaxLength(100) + search?: string; + + @IsOptional() + @Type(() => Number) + @IsInt() + @Min(1) + @Max(100) + limit: number = 20; + + @IsOptional() + @Type(() => Number) + @IsInt() + @Min(0) + offset: number = 0; +} + +// Param validation +export class UserIdParamDto { + @IsUUID('4') + id: string; +} + +@Controller('users') +export class UsersController { + @Post() + create(@Body() dto: CreateUserDto): Promise { + // dto is guaranteed to be valid + return this.usersService.create(dto); + } + + @Get() + findAll(@Query() query: FindUsersQueryDto): Promise { + // query.limit is a number, query.search is sanitized + return this.usersService.findAll(query); + } + + @Get(':id') + findOne(@Param() params: UserIdParamDto): Promise { + // params.id is a valid UUID + return this.usersService.findById(params.id); + } +} +``` + +Reference: [NestJS Validation](https://docs.nestjs.com/techniques/validation) + +--- + +## 5. Performance + +**Section Impact: HIGH** + +### 5.1 Use Async Lifecycle Hooks Correctly + +**Impact: HIGH** — Improper async handling blocks application startup + +NestJS lifecycle hooks (`onModuleInit`, `onApplicationBootstrap`, etc.) support async operations. However, misusing them can block application startup or cause race conditions. Understand the lifecycle order and use hooks appropriately. + +**Incorrect (fire-and-forget async without await):** + +```typescript +// Fire-and-forget async without await +@Injectable() +export class DatabaseService implements OnModuleInit { + onModuleInit() { + // This runs but doesn't block - app starts before DB is ready! + this.connect(); + } + + private async connect() { + await this.pool.connect(); + console.log('Database connected'); + } +} + +// Heavy blocking operations in constructor +@Injectable() +export class ConfigService { + private config: Config; + + constructor() { + // BLOCKS entire module instantiation synchronously + this.config = fs.readFileSync('config.json'); + } +} +``` + +**Correct (return promises from async hooks):** + +```typescript +// Return promise from async hooks +@Injectable() +export class DatabaseService implements OnModuleInit { + private pool: Pool; + + async onModuleInit(): Promise { + // NestJS waits for this to complete before continuing + await this.pool.connect(); + console.log('Database connected'); + } + + async onModuleDestroy(): Promise { + // Clean up resources on shutdown + await this.pool.end(); + console.log('Database disconnected'); + } +} + +// Use onApplicationBootstrap for cross-module dependencies +@Injectable() +export class CacheWarmerService implements OnApplicationBootstrap { + constructor( + private cache: CacheService, + private products: ProductsService, + ) {} + + async onApplicationBootstrap(): Promise { + // All modules are initialized, safe to warm cache + const products = await this.products.findPopular(); + await this.cache.warmup(products); + } +} + +// Heavy init in async hooks, not constructor +@Injectable() +export class ConfigService implements OnModuleInit { + private config: Config; + + constructor() { + // Keep constructor synchronous and fast + } + + async onModuleInit(): Promise { + // Async loading in lifecycle hook + this.config = await this.loadConfig(); + } + + private async loadConfig(): Promise { + const file = await fs.promises.readFile('config.json'); + return JSON.parse(file.toString()); + } + + get(key: string): T { + return this.config[key]; + } +} + +// Enable shutdown hooks in main.ts +async function bootstrap() { + const app = await NestFactory.create(AppModule); + app.enableShutdownHooks(); // Enable SIGTERM/SIGINT handling + await app.listen(3000); +} +``` + +Reference: [NestJS Lifecycle Events](https://docs.nestjs.com/fundamentals/lifecycle-events) + +--- + +### 5.2 Use Lazy Loading for Large Modules + +**Impact: MEDIUM** — Improves startup time for large applications + +NestJS supports lazy-loading modules, which defers initialization until first use. This is valuable for large applications where some features are rarely used, serverless deployments where cold start time matters, or when certain modules have heavy initialization costs. + +**Incorrect (loading everything eagerly):** + +```typescript +// Load everything eagerly in a large app +@Module({ + imports: [ + UsersModule, + OrdersModule, + PaymentsModule, + ReportsModule, // Heavy, rarely used + AnalyticsModule, // Heavy, rarely used + AdminModule, // Only admins use this + LegacyModule, // Migration module, rarely used + BulkImportModule, // Used once a month + ], +}) +export class AppModule {} + +// All modules initialize at startup, even if never used +// Slow cold starts in serverless +// Memory wasted on unused modules +``` + +**Correct (lazy load rarely-used modules):** + +```typescript +// Use LazyModuleLoader for optional modules +import { LazyModuleLoader } from '@nestjs/core'; + +@Injectable() +export class ReportsService { + constructor(private lazyModuleLoader: LazyModuleLoader) {} + + async generateReport(type: string): Promise { + // Load module only when needed + const { ReportsModule } = await import('./reports/reports.module'); + const moduleRef = await this.lazyModuleLoader.load(() => ReportsModule); + + const reportsService = moduleRef.get(ReportsGeneratorService); + return reportsService.generate(type); + } +} + +// Lazy load admin features with caching +@Injectable() +export class AdminService { + private adminModule: ModuleRef | null = null; + + constructor(private lazyModuleLoader: LazyModuleLoader) {} + + private async getAdminModule(): Promise { + if (!this.adminModule) { + const { AdminModule } = await import('./admin/admin.module'); + this.adminModule = await this.lazyModuleLoader.load(() => AdminModule); + } + return this.adminModule; + } + + async runAdminTask(task: string): Promise { + const moduleRef = await this.getAdminModule(); + const taskRunner = moduleRef.get(AdminTaskRunner); + await taskRunner.run(task); + } +} + +// Reusable lazy loader service +@Injectable() +export class ModuleLoaderService { + private loadedModules = new Map(); + + constructor(private lazyModuleLoader: LazyModuleLoader) {} + + async load( + key: string, + importFn: () => Promise<{ default: Type } | Type>, + ): Promise { + if (!this.loadedModules.has(key)) { + const module = await importFn(); + const moduleType = 'default' in module ? module.default : module; + const moduleRef = await this.lazyModuleLoader.load(() => moduleType); + this.loadedModules.set(key, moduleRef); + } + return this.loadedModules.get(key)!; + } +} + +// Preload modules in background after startup +@Injectable() +export class ModulePreloader implements OnApplicationBootstrap { + constructor(private lazyModuleLoader: LazyModuleLoader) {} + + async onApplicationBootstrap(): Promise { + setTimeout(async () => { + await this.preloadModule(() => import('./reports/reports.module')); + }, 5000); // 5 seconds after startup + } + + private async preloadModule(importFn: () => Promise): Promise { + try { + const module = await importFn(); + const moduleType = module.default || Object.values(module)[0]; + await this.lazyModuleLoader.load(() => moduleType); + } catch (error) { + console.warn('Failed to preload module', error); + } + } +} +``` + +Reference: [NestJS Lazy Loading Modules](https://docs.nestjs.com/fundamentals/lazy-loading-modules) + +--- + +### 5.3 Optimize Database Queries + +**Impact: HIGH** — Database queries are typically the largest source of latency + +Select only needed columns, use proper indexes, avoid over-fetching relations, and consider query performance when designing your data access. Most API slowness traces back to inefficient database queries. + +**Incorrect (over-fetching data and missing indexes):** + +```typescript +// Select everything when you need few fields +@Injectable() +export class UsersService { + async findAllEmails(): Promise { + const users = await this.repo.find(); + // Fetches ALL columns for ALL users + return users.map((u) => u.email); + } + + async getUserSummary(id: string): Promise { + const user = await this.repo.findOne({ + where: { id }, + relations: ['posts', 'posts.comments', 'posts.comments.author', 'followers'], + }); + // Over-fetches massive relation tree + return { name: user.name, postCount: user.posts.length }; + } +} + +// No indexes on frequently queried columns +@Entity() +export class Order { + @Column() + userId: string; // No index - full table scan on every lookup + + @Column() + status: string; // No index - slow status filtering +} +``` + +**Correct (select only needed data with proper indexes):** + +```typescript +// Select only needed columns +@Injectable() +export class UsersService { + async findAllEmails(): Promise { + const users = await this.repo.find({ + select: ['email'], // Only fetch email column + }); + return users.map((u) => u.email); + } + + // Use QueryBuilder for complex selections + async getUserSummary(id: string): Promise { + return this.repo + .createQueryBuilder('user') + .select('user.name', 'name') + .addSelect('COUNT(post.id)', 'postCount') + .leftJoin('user.posts', 'post') + .where('user.id = :id', { id }) + .groupBy('user.id') + .getRawOne(); + } + + // Fetch relations only when needed + async getFullProfile(id: string): Promise { + return this.repo.findOne({ + where: { id }, + relations: ['posts'], // Only immediate relation + select: { + id: true, + name: true, + email: true, + posts: { + id: true, + title: true, + }, + }, + }); + } +} + +// Add indexes on frequently queried columns +@Entity() +@Index(['userId']) +@Index(['status']) +@Index(['createdAt']) +@Index(['userId', 'status']) // Composite index for common query pattern +export class Order { + @PrimaryGeneratedColumn('uuid') + id: string; + + @Column() + userId: string; + + @Column() + status: string; + + @CreateDateColumn() + createdAt: Date; +} + +// Always paginate large datasets +@Injectable() +export class OrdersService { + async findAll(page = 1, limit = 20): Promise> { + const [items, total] = await this.repo.findAndCount({ + skip: (page - 1) * limit, + take: limit, + order: { createdAt: 'DESC' }, + }); + + return { + items, + meta: { + page, + limit, + total, + totalPages: Math.ceil(total / limit), + }, + }; + } +} +``` + +Reference: [TypeORM Query Builder](https://typeorm.io/select-query-builder) + +--- + +### 5.4 Use Caching Strategically + +**Impact: HIGH** — Dramatically reduces database load and response times + +Implement caching for expensive operations, frequently accessed data, and external API calls. Use NestJS CacheModule with appropriate TTLs and cache invalidation strategies. Don't cache everything - focus on high-impact areas. + +**Incorrect (no caching or caching everything):** + +```typescript +// No caching for expensive, repeated queries +@Injectable() +export class ProductsService { + async getPopular(): Promise { + // Runs complex aggregation query EVERY request + return this.productsRepo + .createQueryBuilder('p') + .leftJoin('p.orders', 'o') + .select('p.*, COUNT(o.id) as orderCount') + .groupBy('p.id') + .orderBy('orderCount', 'DESC') + .limit(20) + .getMany(); + } +} + +// Cache everything without thought +@Injectable() +export class UsersService { + @CacheKey('users') + @CacheTTL(3600) + @UseInterceptors(CacheInterceptor) + async findAll(): Promise { + // Caching user list for 1 hour is wrong if data changes frequently + return this.usersRepo.find(); + } +} +``` + +**Correct (strategic caching with proper invalidation):** + +```typescript +// Setup caching module +@Module({ + imports: [ + CacheModule.registerAsync({ + imports: [ConfigModule], + inject: [ConfigService], + useFactory: (config: ConfigService) => ({ + stores: [ + new KeyvRedis(config.get('REDIS_URL')), + ], + ttl: 60 * 1000, // Default 60s + }), + }), + ], +}) +export class AppModule {} + +// Manual caching for granular control +@Injectable() +export class ProductsService { + constructor( + @Inject(CACHE_MANAGER) private cache: Cache, + private productsRepo: ProductRepository, + ) {} + + async getPopular(): Promise { + const cacheKey = 'products:popular'; + + // Try cache first + const cached = await this.cache.get(cacheKey); + if (cached) return cached; + + // Cache miss - fetch and cache + const products = await this.fetchPopularProducts(); + await this.cache.set(cacheKey, products, 5 * 60 * 1000); // 5 min TTL + return products; + } + + // Invalidate cache on changes + async updateProduct(id: string, dto: UpdateProductDto): Promise { + const product = await this.productsRepo.save({ id, ...dto }); + await this.cache.del('products:popular'); // Invalidate + return product; + } +} + +// Decorator-based caching with auto-interceptor +@Controller('categories') +@UseInterceptors(CacheInterceptor) +export class CategoriesController { + @Get() + @CacheTTL(30 * 60 * 1000) // 30 minutes - categories rarely change + findAll(): Promise { + return this.categoriesService.findAll(); + } + + @Get(':id') + @CacheTTL(60 * 1000) // 1 minute + @CacheKey('category') + findOne(@Param('id') id: string): Promise { + return this.categoriesService.findOne(id); + } +} + +// Event-based cache invalidation +@Injectable() +export class CacheInvalidationService { + constructor(@Inject(CACHE_MANAGER) private cache: Cache) {} + + @OnEvent('product.created') + @OnEvent('product.updated') + @OnEvent('product.deleted') + async invalidateProductCaches(event: ProductEvent) { + await Promise.all([ + this.cache.del('products:popular'), + this.cache.del(`product:${event.productId}`), + ]); + } +} +``` + +Reference: [NestJS Caching](https://docs.nestjs.com/techniques/caching) + +--- + +## 6. Testing + +**Section Impact: MEDIUM-HIGH** + +### 6.1 Use Supertest for E2E Testing + +**Impact: HIGH** — Validates the full request/response cycle + +End-to-end tests use Supertest to make real HTTP requests against your NestJS application. They test the full stack including middleware, guards, pipes, and interceptors. E2E tests catch integration issues that unit tests miss. + +**Incorrect (no proper E2E setup or teardown):** + +```typescript +// Only unit test controllers +describe('UsersController', () => { + it('should return users', async () => { + const service = { findAll: jest.fn().mockResolvedValue([]) }; + const controller = new UsersController(service as any); + + const result = await controller.findAll(); + + expect(result).toEqual([]); + // Doesn't test: routes, guards, pipes, serialization + }); +}); + +// E2E tests without proper setup/teardown +describe('Users API', () => { + it('should create user', async () => { + const app = await NestFactory.create(AppModule); + // No proper initialization + // No cleanup after test + // Hits real database + }); +}); +``` + +**Correct (proper E2E setup with Supertest):** + +```typescript +// Proper E2E test setup +import { Test, TestingModule } from '@nestjs/testing'; +import { INestApplication, ValidationPipe } from '@nestjs/common'; +import * as request from 'supertest'; +import { AppModule } from '../src/app.module'; + +describe('UsersController (e2e)', () => { + let app: INestApplication; + + beforeAll(async () => { + const moduleFixture: TestingModule = await Test.createTestingModule({ + imports: [AppModule], + }).compile(); + + app = moduleFixture.createNestApplication(); + + // Apply same config as production + app.useGlobalPipes( + new ValidationPipe({ + whitelist: true, + transform: true, + forbidNonWhitelisted: true, + }), + ); + + await app.init(); + }); + + afterAll(async () => { + await app.close(); + }); + + describe('/users (POST)', () => { + it('should create a user', () => { + return request(app.getHttpServer()) + .post('/users') + .send({ name: 'John', email: 'john@test.com' }) + .expect(201) + .expect((res) => { + expect(res.body).toHaveProperty('id'); + expect(res.body.name).toBe('John'); + expect(res.body.email).toBe('john@test.com'); + }); + }); + + it('should return 400 for invalid email', () => { + return request(app.getHttpServer()) + .post('/users') + .send({ name: 'John', email: 'invalid-email' }) + .expect(400) + .expect((res) => { + expect(res.body.message).toContain('email'); + }); + }); + }); + + describe('/users/:id (GET)', () => { + it('should return 404 for non-existent user', () => { + return request(app.getHttpServer()) + .get('/users/non-existent-id') + .expect(404); + }); + }); +}); + +// Testing with authentication +describe('Protected Routes (e2e)', () => { + let app: INestApplication; + let authToken: string; + + beforeAll(async () => { + const moduleFixture = await Test.createTestingModule({ + imports: [AppModule], + }).compile(); + + app = moduleFixture.createNestApplication(); + app.useGlobalPipes(new ValidationPipe({ whitelist: true })); + await app.init(); + + // Get auth token + const loginResponse = await request(app.getHttpServer()) + .post('/auth/login') + .send({ email: 'test@test.com', password: 'password' }); + + authToken = loginResponse.body.accessToken; + }); + + it('should return 401 without token', () => { + return request(app.getHttpServer()) + .get('/users/me') + .expect(401); + }); + + it('should return user profile with valid token', () => { + return request(app.getHttpServer()) + .get('/users/me') + .set('Authorization', `Bearer ${authToken}`) + .expect(200) + .expect((res) => { + expect(res.body.email).toBe('test@test.com'); + }); + }); +}); + +// Database isolation for E2E tests +describe('Orders API (e2e)', () => { + let app: INestApplication; + let dataSource: DataSource; + + beforeAll(async () => { + const moduleFixture = await Test.createTestingModule({ + imports: [ + ConfigModule.forRoot({ + envFilePath: '.env.test', // Test database config + }), + AppModule, + ], + }).compile(); + + app = moduleFixture.createNestApplication(); + dataSource = moduleFixture.get(DataSource); + await app.init(); + }); + + beforeEach(async () => { + // Clean database between tests + await dataSource.synchronize(true); + }); + + afterAll(async () => { + await dataSource.destroy(); + await app.close(); + }); +}); +``` + +Reference: [NestJS E2E Testing](https://docs.nestjs.com/fundamentals/testing#end-to-end-testing) + +--- + +### 6.2 Mock External Services in Tests + +**Impact: HIGH** — Ensures fast, reliable, deterministic tests + +Never call real external services (APIs, databases, message queues) in unit tests. Mock them to ensure tests are fast, deterministic, and don't incur costs. Use realistic mock data and test edge cases like timeouts and errors. + +**Incorrect (calling real APIs and databases):** + +```typescript +// Call real APIs in tests +describe('PaymentService', () => { + it('should process payment', async () => { + const service = new PaymentService(new StripeClient(realApiKey)); + // Hits real Stripe API! + const result = await service.charge('tok_visa', 1000); + // Slow, costs money, flaky + }); +}); + +// Use real database +describe('UsersService', () => { + beforeEach(async () => { + await connection.query('DELETE FROM users'); // Modifies real DB + }); + + it('should create user', async () => { + const user = await service.create({ email: 'test@test.com' }); + // Side effects on shared database + }); +}); + +// Incomplete mocks +const mockHttpService = { + get: jest.fn().mockResolvedValue({ data: {} }), + // Missing error scenarios, missing other methods +}; +``` + +**Correct (mock all external dependencies):** + +```typescript +// Mock HTTP service properly +describe('WeatherService', () => { + let service: WeatherService; + let httpService: jest.Mocked; + + beforeEach(async () => { + const module = await Test.createTestingModule({ + providers: [ + WeatherService, + { + provide: HttpService, + useValue: { + get: jest.fn(), + post: jest.fn(), + }, + }, + ], + }).compile(); + + service = module.get(WeatherService); + httpService = module.get(HttpService); + }); + + it('should return weather data', async () => { + const mockResponse = { + data: { temperature: 72, humidity: 45 }, + status: 200, + statusText: 'OK', + headers: {}, + config: {}, + }; + + httpService.get.mockReturnValue(of(mockResponse)); + + const result = await service.getWeather('NYC'); + + expect(result).toEqual({ temperature: 72, humidity: 45 }); + }); + + it('should handle API timeout', async () => { + httpService.get.mockReturnValue( + throwError(() => new Error('ETIMEDOUT')), + ); + + await expect(service.getWeather('NYC')).rejects.toThrow('Weather service unavailable'); + }); + + it('should handle rate limiting', async () => { + httpService.get.mockReturnValue( + throwError(() => ({ + response: { status: 429, data: { message: 'Rate limited' } }, + })), + ); + + await expect(service.getWeather('NYC')).rejects.toThrow(TooManyRequestsException); + }); +}); + +// Mock repository instead of database +describe('UsersService', () => { + let service: UsersService; + let repo: jest.Mocked>; + + beforeEach(async () => { + const mockRepo = { + find: jest.fn(), + findOne: jest.fn(), + save: jest.fn(), + delete: jest.fn(), + createQueryBuilder: jest.fn(), + }; + + const module = await Test.createTestingModule({ + providers: [ + UsersService, + { provide: getRepositoryToken(User), useValue: mockRepo }, + ], + }).compile(); + + service = module.get(UsersService); + repo = module.get(getRepositoryToken(User)); + }); + + it('should find user by id', async () => { + const mockUser = { id: '1', name: 'John', email: 'john@test.com' }; + repo.findOne.mockResolvedValue(mockUser); + + const result = await service.findById('1'); + + expect(result).toEqual(mockUser); + expect(repo.findOne).toHaveBeenCalledWith({ where: { id: '1' } }); + }); +}); + +// Create mock factory for complex SDKs +function createMockStripe(): jest.Mocked { + return { + paymentIntents: { + create: jest.fn(), + retrieve: jest.fn(), + confirm: jest.fn(), + cancel: jest.fn(), + }, + customers: { + create: jest.fn(), + retrieve: jest.fn(), + }, + } as any; +} + +// Mock time for time-dependent tests +describe('TokenService', () => { + beforeEach(() => { + jest.useFakeTimers(); + jest.setSystemTime(new Date('2024-01-15')); + }); + + afterEach(() => { + jest.useRealTimers(); + }); + + it('should expire token after 1 hour', async () => { + const token = await service.createToken(); + + // Fast-forward time + jest.advanceTimersByTime(61 * 60 * 1000); + + expect(await service.isValid(token)).toBe(false); + }); +}); +``` + +Reference: [Jest Mocking](https://jestjs.io/docs/mock-functions) + +--- + +### 6.3 Use Testing Module for Unit Tests + +**Impact: HIGH** — Enables proper isolated testing with mocked dependencies + +Use `@nestjs/testing` module to create isolated test environments with mocked dependencies. This ensures your tests run fast, don't depend on external services, and properly test your business logic in isolation. + +**Incorrect (manual instantiation bypassing DI):** + +```typescript +// Instantiate services manually without DI +describe('UsersService', () => { + it('should create user', async () => { + // Manual instantiation bypasses DI + const repo = new UserRepository(); // Real repo! + const service = new UsersService(repo); + + const user = await service.create({ name: 'Test' }); + // This hits the real database! + }); +}); + +// Test implementation details +describe('UsersController', () => { + it('should call service', async () => { + const service = { create: jest.fn() }; + const controller = new UsersController(service as any); + + await controller.create({ name: 'Test' }); + + expect(service.create).toHaveBeenCalled(); // Tests implementation, not behavior + }); +}); +``` + +**Correct (use Test.createTestingModule with mocked dependencies):** + +```typescript +// Use Test.createTestingModule for proper DI +import { Test, TestingModule } from '@nestjs/testing'; + +describe('UsersService', () => { + let service: UsersService; + let repo: jest.Mocked; + + beforeEach(async () => { + const module: TestingModule = await Test.createTestingModule({ + providers: [ + UsersService, + { + provide: UserRepository, + useValue: { + save: jest.fn(), + findOne: jest.fn(), + find: jest.fn(), + }, + }, + ], + }).compile(); + + service = module.get(UsersService); + repo = module.get(UserRepository); + }); + + afterEach(() => { + jest.clearAllMocks(); + }); + + describe('create', () => { + it('should save and return user', async () => { + const dto = { name: 'John', email: 'john@test.com' }; + const expectedUser = { id: '1', ...dto }; + + repo.save.mockResolvedValue(expectedUser); + + const result = await service.create(dto); + + expect(result).toEqual(expectedUser); + expect(repo.save).toHaveBeenCalledWith(dto); + }); + + it('should throw on duplicate email', async () => { + repo.findOne.mockResolvedValue({ id: '1', email: 'test@test.com' }); + + await expect( + service.create({ name: 'Test', email: 'test@test.com' }), + ).rejects.toThrow(ConflictException); + }); + }); + + describe('findById', () => { + it('should return user when found', async () => { + const user = { id: '1', name: 'John' }; + repo.findOne.mockResolvedValue(user); + + const result = await service.findById('1'); + + expect(result).toEqual(user); + }); + + it('should throw NotFoundException when not found', async () => { + repo.findOne.mockResolvedValue(null); + + await expect(service.findById('999')).rejects.toThrow(NotFoundException); + }); + }); +}); + +// Testing guards and interceptors +describe('RolesGuard', () => { + let guard: RolesGuard; + let reflector: Reflector; + + beforeEach(async () => { + const module = await Test.createTestingModule({ + providers: [RolesGuard, Reflector], + }).compile(); + + guard = module.get(RolesGuard); + reflector = module.get(Reflector); + }); + + it('should allow when no roles required', () => { + const context = createMockExecutionContext({ user: { roles: [] } }); + jest.spyOn(reflector, 'getAllAndOverride').mockReturnValue(undefined); + + expect(guard.canActivate(context)).toBe(true); + }); + + it('should allow admin for admin-only route', () => { + const context = createMockExecutionContext({ user: { roles: ['admin'] } }); + jest.spyOn(reflector, 'getAllAndOverride').mockReturnValue(['admin']); + + expect(guard.canActivate(context)).toBe(true); + }); +}); + +function createMockExecutionContext(request: Partial): ExecutionContext { + return { + switchToHttp: () => ({ + getRequest: () => request, + }), + getHandler: () => jest.fn(), + getClass: () => jest.fn(), + } as ExecutionContext; +} +``` + +Reference: [NestJS Testing](https://docs.nestjs.com/fundamentals/testing) + +--- + +## 7. Database & ORM + +**Section Impact: MEDIUM-HIGH** + +### 7.1 Avoid N+1 Query Problems + +**Impact: HIGH** — N+1 queries are one of the most common performance killers + +N+1 queries occur when you fetch a list of entities, then make an additional query for each entity to load related data. Use eager loading with `relations`, query builder joins, or DataLoader to batch queries efficiently. + +**Incorrect (lazy loading in loops causes N+1):** + +```typescript +// Lazy loading in loops causes N+1 +@Injectable() +export class OrdersService { + async getOrdersWithItems(userId: string): Promise { + const orders = await this.orderRepo.find({ where: { userId } }); + // 1 query for orders + + for (const order of orders) { + // N additional queries - one per order! + order.items = await this.itemRepo.find({ where: { orderId: order.id } }); + } + + return orders; + } +} + +// Accessing lazy relations without loading +@Controller('users') +export class UsersController { + @Get() + async findAll(): Promise { + const users = await this.userRepo.find(); + // If User.posts is lazy-loaded, serializing triggers N queries + return users; // Each user.posts access = 1 query + } +} +``` + +**Correct (use relations for eager loading):** + +```typescript +// Use relations option for eager loading +@Injectable() +export class OrdersService { + async getOrdersWithItems(userId: string): Promise { + // Single query with JOIN + return this.orderRepo.find({ + where: { userId }, + relations: ['items', 'items.product'], + }); + } +} + +// Use QueryBuilder for complex joins +@Injectable() +export class UsersService { + async getUsersWithPostCounts(): Promise { + return this.userRepo + .createQueryBuilder('user') + .leftJoin('user.posts', 'post') + .select('user.id', 'id') + .addSelect('user.name', 'name') + .addSelect('COUNT(post.id)', 'postCount') + .groupBy('user.id') + .getRawMany(); + } + + async getActiveUsersWithPosts(): Promise { + return this.userRepo + .createQueryBuilder('user') + .leftJoinAndSelect('user.posts', 'post') + .leftJoinAndSelect('post.comments', 'comment') + .where('user.isActive = :active', { active: true }) + .andWhere('post.status = :status', { status: 'published' }) + .getMany(); + } +} + +// Use find options for specific fields +async getOrderSummaries(userId: string): Promise { + return this.orderRepo.find({ + where: { userId }, + relations: ['items'], + select: { + id: true, + total: true, + status: true, + items: { + id: true, + quantity: true, + price: true, + }, + }, + }); +} + +// Use DataLoader for GraphQL to batch and cache queries +import DataLoader from 'dataloader'; + +@Injectable({ scope: Scope.REQUEST }) +export class PostsLoader { + constructor(private postsService: PostsService) {} + + readonly batchPosts = new DataLoader(async (userIds) => { + // Single query for all users' posts + const posts = await this.postsService.findByUserIds([...userIds]); + + // Group by userId + const postsMap = new Map(); + for (const post of posts) { + const userPosts = postsMap.get(post.userId) || []; + userPosts.push(post); + postsMap.set(post.userId, userPosts); + } + + // Return in same order as input + return userIds.map((id) => postsMap.get(id) || []); + }); +} + +// In resolver +@ResolveField() +async posts(@Parent() user: User): Promise { + // DataLoader batches multiple calls into single query + return this.postsLoader.batchPosts.load(user.id); +} + +// Enable query logging in development to detect N+1 +TypeOrmModule.forRoot({ + logging: ['query', 'error'], + logger: 'advanced-console', +}); +``` + +Reference: [TypeORM Relations](https://typeorm.io/relations) + +--- + +### 7.2 Use Database Migrations + +**Impact: HIGH** — Enables safe, repeatable database schema changes + +Never use `synchronize: true` in production. Use migrations for all schema changes. Migrations provide version control for your database, enable safe rollbacks, and ensure consistency across all environments. + +**Incorrect (using synchronize or manual SQL):** + +```typescript +// Use synchronize in production +TypeOrmModule.forRoot({ + type: 'postgres', + synchronize: true, // DANGEROUS in production! + // Can drop columns, tables, or data +}); + +// Manual SQL in production +@Injectable() +export class DatabaseService { + async addColumn(): Promise { + await this.dataSource.query('ALTER TABLE users ADD COLUMN age INT'); + // No version control, no rollback, inconsistent across envs + } +} + +// Modify entities without migration +@Entity() +export class User { + @Column() + email: string; + + @Column() // Added without migration + newField: string; // Will crash in production if synchronize is false +} +``` + +**Correct (use migrations for all schema changes):** + +```typescript +// Configure TypeORM for migrations +// data-source.ts +export const dataSource = new DataSource({ + type: 'postgres', + host: process.env.DB_HOST, + port: parseInt(process.env.DB_PORT), + username: process.env.DB_USERNAME, + password: process.env.DB_PASSWORD, + database: process.env.DB_NAME, + entities: ['dist/**/*.entity.js'], + migrations: ['dist/migrations/*.js'], + synchronize: false, // Always false in production + migrationsRun: true, // Run migrations on startup +}); + +// app.module.ts +TypeOrmModule.forRootAsync({ + inject: [ConfigService], + useFactory: (config: ConfigService) => ({ + type: 'postgres', + host: config.get('DB_HOST'), + synchronize: config.get('NODE_ENV') === 'development', // Only in dev + migrations: ['dist/migrations/*.js'], + migrationsRun: true, + }), +}); + +// migrations/1705312800000-AddUserAge.ts +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class AddUserAge1705312800000 implements MigrationInterface { + name = 'AddUserAge1705312800000'; + + public async up(queryRunner: QueryRunner): Promise { + // Add column with default to handle existing rows + await queryRunner.query(` + ALTER TABLE "users" ADD "age" integer DEFAULT 0 + `); + + // Add index for frequently queried columns + await queryRunner.query(` + CREATE INDEX "IDX_users_age" ON "users" ("age") + `); + } + + public async down(queryRunner: QueryRunner): Promise { + // Always implement down for rollback + await queryRunner.query(`DROP INDEX "IDX_users_age"`); + await queryRunner.query(`ALTER TABLE "users" DROP COLUMN "age"`); + } +} + +// Safe column rename (two-step) +export class RenameNameToFullName1705312900000 implements MigrationInterface { + public async up(queryRunner: QueryRunner): Promise { + // Step 1: Add new column + await queryRunner.query(` + ALTER TABLE "users" ADD "full_name" varchar(255) + `); + + // Step 2: Copy data + await queryRunner.query(` + UPDATE "users" SET "full_name" = "name" + `); + + // Step 3: Add NOT NULL constraint + await queryRunner.query(` + ALTER TABLE "users" ALTER COLUMN "full_name" SET NOT NULL + `); + + // Step 4: Drop old column (after verifying app works) + await queryRunner.query(` + ALTER TABLE "users" DROP COLUMN "name" + `); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "users" ADD "name" varchar(255)`); + await queryRunner.query(`UPDATE "users" SET "name" = "full_name"`); + await queryRunner.query(`ALTER TABLE "users" DROP COLUMN "full_name"`); + } +} +``` + +Reference: [TypeORM Migrations](https://typeorm.io/migrations) + +--- + +### 7.3 Use Transactions for Multi-Step Operations + +**Impact: HIGH** — Ensures data consistency in multi-step operations + +When multiple database operations must succeed or fail together, wrap them in a transaction. This prevents partial updates that leave your data in an inconsistent state. Use TypeORM's transaction APIs or the DataSource query runner for complex scenarios. + +**Incorrect (multiple saves without transaction):** + +```typescript +// Multiple saves without transaction +@Injectable() +export class OrdersService { + async createOrder(userId: string, items: OrderItem[]): Promise { + // If any step fails, data is inconsistent + const order = await this.orderRepo.save({ userId, status: 'pending' }); + + for (const item of items) { + await this.orderItemRepo.save({ orderId: order.id, ...item }); + await this.inventoryRepo.decrement({ productId: item.productId }, 'stock', item.quantity); + } + + await this.paymentService.charge(order.id); + // If payment fails, order and inventory are already modified! + + return order; + } +} +``` + +**Correct (use DataSource.transaction for automatic rollback):** + +```typescript +// Use DataSource.transaction() for automatic rollback +@Injectable() +export class OrdersService { + constructor(private dataSource: DataSource) {} + + async createOrder(userId: string, items: OrderItem[]): Promise { + return this.dataSource.transaction(async (manager) => { + // All operations use the same transactional manager + const order = await manager.save(Order, { userId, status: 'pending' }); + + for (const item of items) { + await manager.save(OrderItem, { orderId: order.id, ...item }); + await manager.decrement( + Inventory, + { productId: item.productId }, + 'stock', + item.quantity, + ); + } + + // If this throws, everything rolls back + await this.paymentService.chargeWithManager(manager, order.id); + + return order; + }); + } +} + +// QueryRunner for manual transaction control +@Injectable() +export class TransferService { + constructor(private dataSource: DataSource) {} + + async transfer(fromId: string, toId: string, amount: number): Promise { + const queryRunner = this.dataSource.createQueryRunner(); + await queryRunner.connect(); + await queryRunner.startTransaction(); + + try { + // Debit source account + await queryRunner.manager.decrement( + Account, + { id: fromId }, + 'balance', + amount, + ); + + // Verify sufficient funds + const source = await queryRunner.manager.findOne(Account, { + where: { id: fromId }, + }); + if (source.balance < 0) { + throw new BadRequestException('Insufficient funds'); + } + + // Credit destination account + await queryRunner.manager.increment( + Account, + { id: toId }, + 'balance', + amount, + ); + + // Log the transaction + await queryRunner.manager.save(TransactionLog, { + fromId, + toId, + amount, + timestamp: new Date(), + }); + + await queryRunner.commitTransaction(); + } catch (error) { + await queryRunner.rollbackTransaction(); + throw error; + } finally { + await queryRunner.release(); + } + } +} + +// Repository method with transaction support +@Injectable() +export class UsersRepository { + constructor( + @InjectRepository(User) private repo: Repository, + private dataSource: DataSource, + ) {} + + async createWithProfile( + userData: CreateUserDto, + profileData: CreateProfileDto, + ): Promise { + return this.dataSource.transaction(async (manager) => { + const user = await manager.save(User, userData); + await manager.save(Profile, { ...profileData, userId: user.id }); + return user; + }); + } +} +``` + +Reference: [TypeORM Transactions](https://typeorm.io/transactions) + +--- + +## 8. API Design + +**Section Impact: MEDIUM** + +### 8.1 Use DTOs and Serialization for API Responses + +**Impact: MEDIUM** — Response DTOs prevent accidental data exposure and ensure consistency + +Never return entity objects directly from controllers. Use response DTOs with class-transformer's `@Exclude()` and `@Expose()` decorators to control exactly what data is sent to clients. This prevents accidental exposure of sensitive fields and provides a stable API contract. + +**Incorrect (returning entities directly or manual spreading):** + +```typescript +// Return entities directly +@Controller('users') +export class UsersController { + @Get(':id') + async findOne(@Param('id') id: string): Promise { + return this.usersService.findById(id); + // Returns: { id, email, passwordHash, ssn, internalNotes, ... } + // Exposes sensitive data! + } +} + +// Manual object spreading (error-prone) +@Get(':id') +async findOne(@Param('id') id: string) { + const user = await this.usersService.findById(id); + return { + id: user.id, + email: user.email, + name: user.name, + // Easy to forget to exclude sensitive fields + // Hard to maintain across endpoints + }; +} +``` + +**Correct (use class-transformer with @Exclude and response DTOs):** + +```typescript +// Enable class-transformer globally +async function bootstrap() { + const app = await NestFactory.create(AppModule); + app.useGlobalInterceptors(new ClassSerializerInterceptor(app.get(Reflector))); + await app.listen(3000); +} + +// Entity with serialization control +@Entity() +export class User { + @PrimaryGeneratedColumn('uuid') + id: string; + + @Column() + email: string; + + @Column() + name: string; + + @Column() + @Exclude() // Never include in responses + passwordHash: string; + + @Column({ nullable: true }) + @Exclude() + ssn: string; + + @Column({ default: false }) + @Exclude({ toPlainOnly: true }) // Exclude from response, allow in requests + isAdmin: boolean; + + @CreateDateColumn() + createdAt: Date; + + @Column() + @Exclude() + internalNotes: string; +} + +// Now returning entity is safe +@Controller('users') +export class UsersController { + @Get(':id') + async findOne(@Param('id') id: string): Promise { + return this.usersService.findById(id); + // Returns: { id, email, name, createdAt } + // Sensitive fields excluded automatically + } +} + +// For different response shapes, use explicit DTOs +export class UserResponseDto { + @Expose() + id: string; + + @Expose() + email: string; + + @Expose() + name: string; + + @Expose() + @Transform(({ obj }) => obj.posts?.length || 0) + postCount: number; + + constructor(partial: Partial) { + Object.assign(this, partial); + } +} + +export class UserDetailResponseDto extends UserResponseDto { + @Expose() + createdAt: Date; + + @Expose() + @Type(() => PostResponseDto) + posts: PostResponseDto[]; +} + +// Controller with explicit DTOs +@Controller('users') +export class UsersController { + @Get() + @SerializeOptions({ type: UserResponseDto }) + async findAll(): Promise { + const users = await this.usersService.findAll(); + return users.map(u => plainToInstance(UserResponseDto, u)); + } + + @Get(':id') + async findOne(@Param('id') id: string): Promise { + const user = await this.usersService.findByIdWithPosts(id); + return plainToInstance(UserDetailResponseDto, user, { + excludeExtraneousValues: true, + }); + } +} + +// Groups for conditional serialization +export class UserDto { + @Expose() + id: string; + + @Expose() + name: string; + + @Expose({ groups: ['admin'] }) + email: string; + + @Expose({ groups: ['admin'] }) + createdAt: Date; + + @Expose({ groups: ['admin', 'owner'] }) + settings: UserSettings; +} + +@Controller('users') +export class UsersController { + @Get() + @SerializeOptions({ groups: ['public'] }) + async findAllPublic(): Promise { + // Returns: { id, name } + } + + @Get('admin') + @UseGuards(AdminGuard) + @SerializeOptions({ groups: ['admin'] }) + async findAllAdmin(): Promise { + // Returns: { id, name, email, createdAt } + } + + @Get('me') + @SerializeOptions({ groups: ['owner'] }) + async getProfile(@CurrentUser() user: User): Promise { + // Returns: { id, name, settings } + } +} +``` + +Reference: [NestJS Serialization](https://docs.nestjs.com/techniques/serialization) + +--- + +### 8.2 Use Interceptors for Cross-Cutting Concerns + +**Impact: MEDIUM-HIGH** — Interceptors provide clean separation for cross-cutting logic + +Interceptors can transform responses, add logging, handle caching, and measure performance without polluting your business logic. They wrap the route handler execution, giving you access to both the request and response streams. + +**Incorrect (logging and transformation in every method):** + +```typescript +// Logging in every controller method +@Controller('users') +export class UsersController { + @Get() + async findAll(): Promise { + const start = Date.now(); + this.logger.log('findAll called'); + + const users = await this.usersService.findAll(); + + this.logger.log(`findAll completed in ${Date.now() - start}ms`); + return users; + } + + @Get(':id') + async findOne(@Param('id') id: string): Promise { + const start = Date.now(); + this.logger.log(`findOne called with id: ${id}`); + + const user = await this.usersService.findOne(id); + + this.logger.log(`findOne completed in ${Date.now() - start}ms`); + return user; + } + // Repeated in every method! +} + +// Manual response wrapping +@Get() +async findAll(): Promise<{ data: User[]; meta: Meta }> { + const users = await this.usersService.findAll(); + return { + data: users, + meta: { timestamp: new Date(), count: users.length }, + }; +} +``` + +**Correct (use interceptors for cross-cutting concerns):** + +```typescript +// Logging interceptor +@Injectable() +export class LoggingInterceptor implements NestInterceptor { + private readonly logger = new Logger('HTTP'); + + intercept(context: ExecutionContext, next: CallHandler): Observable { + const request = context.switchToHttp().getRequest(); + const { method, url, body } = request; + const now = Date.now(); + + return next.handle().pipe( + tap({ + next: (data) => { + const response = context.switchToHttp().getResponse(); + this.logger.log( + `${method} ${url} ${response.statusCode} - ${Date.now() - now}ms`, + ); + }, + error: (error) => { + this.logger.error( + `${method} ${url} ${error.status || 500} - ${Date.now() - now}ms`, + error.stack, + ); + }, + }), + ); + } +} + +// Response transformation interceptor +@Injectable() +export class TransformInterceptor implements NestInterceptor> { + intercept(context: ExecutionContext, next: CallHandler): Observable> { + return next.handle().pipe( + map((data) => ({ + data, + meta: { + timestamp: new Date().toISOString(), + path: context.switchToHttp().getRequest().url, + }, + })), + ); + } +} + +// Timeout interceptor +@Injectable() +export class TimeoutInterceptor implements NestInterceptor { + intercept(context: ExecutionContext, next: CallHandler): Observable { + return next.handle().pipe( + timeout(5000), + catchError((err) => { + if (err instanceof TimeoutError) { + throw new RequestTimeoutException('Request timed out'); + } + throw err; + }), + ); + } +} + +// Apply globally or per-controller +@Module({ + providers: [ + { provide: APP_INTERCEPTOR, useClass: LoggingInterceptor }, + { provide: APP_INTERCEPTOR, useClass: TransformInterceptor }, + ], +}) +export class AppModule {} + +// Or per-controller +@Controller('users') +@UseInterceptors(LoggingInterceptor) +export class UsersController { + @Get() + async findAll(): Promise { + // Clean business logic only + return this.usersService.findAll(); + } +} + +// Custom cache interceptor with TTL +@Injectable() +export class HttpCacheInterceptor implements NestInterceptor { + constructor( + private cacheManager: Cache, + private reflector: Reflector, + ) {} + + async intercept(context: ExecutionContext, next: CallHandler): Promise> { + const request = context.switchToHttp().getRequest(); + + // Only cache GET requests + if (request.method !== 'GET') { + return next.handle(); + } + + const cacheKey = this.generateKey(request); + const ttl = this.reflector.get('cacheTTL', context.getHandler()) || 300; + + const cached = await this.cacheManager.get(cacheKey); + if (cached) { + return of(cached); + } + + return next.handle().pipe( + tap((response) => { + this.cacheManager.set(cacheKey, response, ttl); + }), + ); + } + + private generateKey(request: Request): string { + return `cache:${request.url}:${JSON.stringify(request.query)}`; + } +} + +// Usage with custom TTL +@Get() +@SetMetadata('cacheTTL', 600) +@UseInterceptors(HttpCacheInterceptor) +async findAll(): Promise { + return this.usersService.findAll(); +} + +// Error mapping interceptor +@Injectable() +export class ErrorMappingInterceptor implements NestInterceptor { + intercept(context: ExecutionContext, next: CallHandler): Observable { + return next.handle().pipe( + catchError((error) => { + if (error instanceof EntityNotFoundError) { + throw new NotFoundException(error.message); + } + if (error instanceof QueryFailedError) { + if (error.message.includes('duplicate')) { + throw new ConflictException('Resource already exists'); + } + } + throw error; + }), + ); + } +} +``` + +Reference: [NestJS Interceptors](https://docs.nestjs.com/interceptors) + +--- + +### 8.3 Use Pipes for Input Transformation + +**Impact: MEDIUM** — Pipes ensure clean, validated data reaches your handlers + +Use built-in pipes like `ParseIntPipe`, `ParseUUIDPipe`, and `DefaultValuePipe` for common transformations. Create custom pipes for business-specific transformations. Pipes separate validation/transformation logic from controllers. + +**Incorrect (manual type parsing in handlers):** + +```typescript +// Manual type parsing in handlers +@Controller('users') +export class UsersController { + @Get(':id') + async findOne(@Param('id') id: string): Promise { + // Manual validation in every handler + const uuid = id.trim(); + if (!isUUID(uuid)) { + throw new BadRequestException('Invalid UUID'); + } + return this.usersService.findOne(uuid); + } + + @Get() + async findAll( + @Query('page') page: string, + @Query('limit') limit: string, + ): Promise { + // Manual parsing and defaults + const pageNum = parseInt(page) || 1; + const limitNum = parseInt(limit) || 10; + return this.usersService.findAll(pageNum, limitNum); + } +} + +// Type coercion without validation +@Get() +async search(@Query('price') price: string): Promise { + const priceNum = +price; // NaN if invalid, no error + return this.productsService.findByPrice(priceNum); +} +``` + +**Correct (use built-in and custom pipes):** + +```typescript +// Use built-in pipes for common transformations +@Controller('users') +export class UsersController { + @Get(':id') + async findOne(@Param('id', ParseUUIDPipe) id: string): Promise { + // id is guaranteed to be a valid UUID + return this.usersService.findOne(id); + } + + @Get() + async findAll( + @Query('page', new DefaultValuePipe(1), ParseIntPipe) page: number, + @Query('limit', new DefaultValuePipe(10), ParseIntPipe) limit: number, + ): Promise { + // Automatic defaults and type conversion + return this.usersService.findAll(page, limit); + } + + @Get('by-status/:status') + async findByStatus( + @Param('status', new ParseEnumPipe(UserStatus)) status: UserStatus, + ): Promise { + return this.usersService.findByStatus(status); + } +} + +// Custom pipe for business logic +@Injectable() +export class ParseDatePipe implements PipeTransform { + transform(value: string): Date { + const date = new Date(value); + if (isNaN(date.getTime())) { + throw new BadRequestException('Invalid date format'); + } + return date; + } +} + +@Get('reports') +async getReports( + @Query('from', ParseDatePipe) from: Date, + @Query('to', ParseDatePipe) to: Date, +): Promise { + return this.reportsService.findBetween(from, to); +} + +// Custom transformation pipes +@Injectable() +export class NormalizeEmailPipe implements PipeTransform { + transform(value: string): string { + if (!value) return value; + return value.trim().toLowerCase(); + } +} + +// Parse comma-separated values +@Injectable() +export class ParseArrayPipe implements PipeTransform { + transform(value: string): string[] { + if (!value) return []; + return value.split(',').map((v) => v.trim()).filter(Boolean); + } +} + +@Get('products') +async findProducts( + @Query('ids', ParseArrayPipe) ids: string[], + @Query('email', NormalizeEmailPipe) email: string, +): Promise { + // ids is already an array, email is normalized + return this.productsService.findByIds(ids); +} + +// Sanitize HTML input +@Injectable() +export class SanitizeHtmlPipe implements PipeTransform { + transform(value: string): string { + if (!value) return value; + return sanitizeHtml(value, { allowedTags: [] }); + } +} + +// Global validation pipe with transformation +app.useGlobalPipes( + new ValidationPipe({ + whitelist: true, // Strip non-DTO properties + transform: true, // Auto-transform to DTO types + transformOptions: { + enableImplicitConversion: true, // Convert query strings to numbers + }, + forbidNonWhitelisted: true, // Throw on extra properties + }), +); + +// DTO with transformation decorators +export class FindProductsDto { + @IsOptional() + @Type(() => Number) + @IsInt() + @Min(1) + page?: number = 1; + + @IsOptional() + @Type(() => Number) + @IsInt() + @Min(1) + @Max(100) + limit?: number = 10; + + @IsOptional() + @Transform(({ value }) => value?.toLowerCase()) + @IsString() + search?: string; + + @IsOptional() + @Transform(({ value }) => value?.split(',')) + @IsArray() + @IsString({ each: true }) + categories?: string[]; +} + +@Get() +async findAll(@Query() dto: FindProductsDto): Promise { + // dto is already transformed and validated + return this.productsService.findAll(dto); +} + +// Pipe error customization +@Injectable() +export class CustomParseIntPipe extends ParseIntPipe { + constructor() { + super({ + exceptionFactory: (error) => + new BadRequestException(`${error} must be a valid integer`), + }); + } +} + +// Or use options on built-in pipes +@Get(':id') +async findOne( + @Param( + 'id', + new ParseIntPipe({ + errorHttpStatusCode: HttpStatus.NOT_ACCEPTABLE, + exceptionFactory: () => new NotAcceptableException('ID must be numeric'), + }), + ) + id: number, +): Promise { + return this.itemsService.findOne(id); +} +``` + +Reference: [NestJS Pipes](https://docs.nestjs.com/pipes) + +--- + +### 8.4 Use API Versioning for Breaking Changes + +**Impact: MEDIUM** — Versioning allows you to evolve APIs without breaking existing clients + +Use NestJS built-in versioning when making breaking changes to your API. Choose a versioning strategy (URI, header, or media type) and apply it consistently. This allows old clients to continue working while new clients use updated endpoints. + +**Incorrect (breaking changes without versioning):** + +```typescript +// Breaking changes without versioning +@Controller('users') +export class UsersController { + @Get(':id') + async findOne(@Param('id') id: string): Promise { + // Original response: { id, name, email } + // Later changed to: { id, firstName, lastName, emailAddress } + // Old clients break! + return this.usersService.findOne(id); + } +} + +// Manual versioning in routes +@Controller('v1/users') +export class UsersV1Controller {} + +@Controller('v2/users') +export class UsersV2Controller {} +// Inconsistent, error-prone, hard to maintain +``` + +**Correct (use NestJS built-in versioning):** + +```typescript +// Enable versioning in main.ts +async function bootstrap() { + const app = await NestFactory.create(AppModule); + + // URI versioning: /v1/users, /v2/users + app.enableVersioning({ + type: VersioningType.URI, + defaultVersion: '1', + }); + + // Or header versioning: X-API-Version: 1 + app.enableVersioning({ + type: VersioningType.HEADER, + header: 'X-API-Version', + defaultVersion: '1', + }); + + // Or media type: Accept: application/json;v=1 + app.enableVersioning({ + type: VersioningType.MEDIA_TYPE, + key: 'v=', + defaultVersion: '1', + }); + + await app.listen(3000); +} + +// Version-specific controllers +@Controller('users') +@Version('1') +export class UsersV1Controller { + @Get(':id') + async findOne(@Param('id') id: string): Promise { + const user = await this.usersService.findOne(id); + // V1 response format + return { + id: user.id, + name: user.name, + email: user.email, + }; + } +} + +@Controller('users') +@Version('2') +export class UsersV2Controller { + @Get(':id') + async findOne(@Param('id') id: string): Promise { + const user = await this.usersService.findOne(id); + // V2 response format with breaking changes + return { + id: user.id, + firstName: user.firstName, + lastName: user.lastName, + emailAddress: user.email, + createdAt: user.createdAt, + }; + } +} + +// Per-route versioning - different versions for different routes +@Controller('users') +export class UsersController { + @Get() + @Version('1') + findAllV1(): Promise { + return this.usersService.findAllV1(); + } + + @Get() + @Version('2') + findAllV2(): Promise { + return this.usersService.findAllV2(); + } + + @Get(':id') + @Version(['1', '2']) // Same handler for multiple versions + findOne(@Param('id') id: string): Promise { + return this.usersService.findOne(id); + } + + @Post() + @Version(VERSION_NEUTRAL) // Available in all versions + create(@Body() dto: CreateUserDto): Promise { + return this.usersService.create(dto); + } +} + +// Shared service with version-specific logic +@Injectable() +export class UsersService { + async findOne(id: string, version: string): Promise { + const user = await this.repo.findOne({ where: { id } }); + + if (version === '1') { + return this.toV1Response(user); + } + return this.toV2Response(user); + } + + private toV1Response(user: User): UserV1Response { + return { + id: user.id, + name: `${user.firstName} ${user.lastName}`, + email: user.email, + }; + } + + private toV2Response(user: User): UserV2Response { + return { + id: user.id, + firstName: user.firstName, + lastName: user.lastName, + emailAddress: user.email, + createdAt: user.createdAt, + }; + } +} + +// Controller extracts version +@Controller('users') +export class UsersController { + @Get(':id') + async findOne( + @Param('id') id: string, + @Headers('X-API-Version') version: string = '1', + ): Promise { + return this.usersService.findOne(id, version); + } +} + +// Deprecation strategy - mark old versions as deprecated +@Controller('users') +@Version('1') +@UseInterceptors(DeprecationInterceptor) +export class UsersV1Controller { + // All V1 routes will include deprecation warning +} + +@Injectable() +export class DeprecationInterceptor implements NestInterceptor { + intercept(context: ExecutionContext, next: CallHandler): Observable { + const response = context.switchToHttp().getResponse(); + response.setHeader('Deprecation', 'true'); + response.setHeader('Sunset', 'Sat, 1 Jan 2025 00:00:00 GMT'); + response.setHeader('Link', '; rel="successor-version"'); + + return next.handle(); + } +} +``` + +Reference: [NestJS Versioning](https://docs.nestjs.com/techniques/versioning) + +--- + +## 9. Microservices + +**Section Impact: MEDIUM** + +### 9.1 Implement Health Checks for Microservices + +**Impact: MEDIUM-HIGH** — Health checks enable orchestrators to manage service lifecycle + +Implement liveness and readiness probes using `@nestjs/terminus`. Liveness checks determine if the service should be restarted. Readiness checks determine if the service can accept traffic. Proper health checks enable Kubernetes and load balancers to route traffic correctly. + +**Incorrect (simple ping that doesn't check dependencies):** + +```typescript +// Simple ping that doesn't check dependencies +@Controller('health') +export class HealthController { + @Get() + check(): string { + return 'OK'; // Service might be unhealthy but returns OK + } +} + +// Health check that blocks on slow dependencies +@Controller('health') +export class HealthController { + @Get() + async check(): Promise { + // If database is slow, health check times out + await this.userRepo.findOne({ where: { id: '1' } }); + await this.redis.ping(); + await this.externalApi.healthCheck(); + return 'OK'; + } +} +``` + +**Correct (use @nestjs/terminus for comprehensive health checks):** + +```typescript +// Use @nestjs/terminus for comprehensive health checks +import { + HealthCheckService, + HttpHealthIndicator, + TypeOrmHealthIndicator, + HealthCheck, + DiskHealthIndicator, + MemoryHealthIndicator, +} from '@nestjs/terminus'; + +@Controller('health') +export class HealthController { + constructor( + private health: HealthCheckService, + private http: HttpHealthIndicator, + private db: TypeOrmHealthIndicator, + private disk: DiskHealthIndicator, + private memory: MemoryHealthIndicator, + ) {} + + // Liveness probe - is the service alive? + @Get('live') + @HealthCheck() + liveness() { + return this.health.check([ + // Basic checks only + () => this.memory.checkHeap('memory_heap', 200 * 1024 * 1024), // 200MB + ]); + } + + // Readiness probe - can the service handle traffic? + @Get('ready') + @HealthCheck() + readiness() { + return this.health.check([ + () => this.db.pingCheck('database'), + () => + this.http.pingCheck('redis', 'http://redis:6379', { timeout: 1000 }), + () => + this.disk.checkStorage('disk', { path: '/', thresholdPercent: 0.9 }), + ]); + } + + // Deep health check for debugging + @Get('deep') + @HealthCheck() + deepCheck() { + return this.health.check([ + () => this.db.pingCheck('database'), + () => this.memory.checkHeap('memory_heap', 200 * 1024 * 1024), + () => this.memory.checkRSS('memory_rss', 300 * 1024 * 1024), + () => + this.disk.checkStorage('disk', { path: '/', thresholdPercent: 0.9 }), + () => + this.http.pingCheck('external-api', 'https://api.example.com/health'), + ]); + } +} + +// Custom indicator for business-specific health +@Injectable() +export class QueueHealthIndicator extends HealthIndicator { + constructor(private queueService: QueueService) { + super(); + } + + async isHealthy(key: string): Promise { + const queueStats = await this.queueService.getStats(); + + const isHealthy = queueStats.failedCount < 100; + const result = this.getStatus(key, isHealthy, { + waiting: queueStats.waitingCount, + active: queueStats.activeCount, + failed: queueStats.failedCount, + }); + + if (!isHealthy) { + throw new HealthCheckError('Queue unhealthy', result); + } + + return result; + } +} + +// Redis health indicator +@Injectable() +export class RedisHealthIndicator extends HealthIndicator { + constructor(@InjectRedis() private redis: Redis) { + super(); + } + + async isHealthy(key: string): Promise { + try { + const pong = await this.redis.ping(); + return this.getStatus(key, pong === 'PONG'); + } catch (error) { + throw new HealthCheckError('Redis check failed', this.getStatus(key, false)); + } + } +} + +// Use custom indicators +@Get('ready') +@HealthCheck() +readiness() { + return this.health.check([ + () => this.db.pingCheck('database'), + () => this.redis.isHealthy('redis'), + () => this.queue.isHealthy('job-queue'), + ]); +} + +// Graceful shutdown handling +@Injectable() +export class GracefulShutdownService implements OnApplicationShutdown { + private isShuttingDown = false; + + isShutdown(): boolean { + return this.isShuttingDown; + } + + async onApplicationShutdown(signal: string): Promise { + this.isShuttingDown = true; + console.log(`Shutting down on ${signal}`); + + // Wait for in-flight requests + await new Promise((resolve) => setTimeout(resolve, 5000)); + } +} + +// Health check respects shutdown state +@Get('ready') +@HealthCheck() +readiness() { + if (this.shutdownService.isShutdown()) { + throw new ServiceUnavailableException('Shutting down'); + } + + return this.health.check([ + () => this.db.pingCheck('database'), + ]); +} +``` + +### Kubernetes Configuration + +```yaml +# Kubernetes deployment with probes +apiVersion: apps/v1 +kind: Deployment +metadata: + name: api-service +spec: + template: + spec: + containers: + - name: api + image: api-service:latest + ports: + - containerPort: 3000 + livenessProbe: + httpGet: + path: /health/live + port: 3000 + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 3 + readinessProbe: + httpGet: + path: /health/ready + port: 3000 + initialDelaySeconds: 5 + periodSeconds: 5 + timeoutSeconds: 3 + failureThreshold: 3 + startupProbe: + httpGet: + path: /health/live + port: 3000 + initialDelaySeconds: 0 + periodSeconds: 5 + failureThreshold: 30 +``` + +Reference: [NestJS Terminus](https://docs.nestjs.com/recipes/terminus) + +--- + +### 9.2 Use Message and Event Patterns Correctly + +**Impact: MEDIUM** — Proper patterns ensure reliable microservice communication + +NestJS microservices support two communication patterns: request-response (MessagePattern) and event-based (EventPattern). Use MessagePattern when you need a response, and EventPattern for fire-and-forget notifications. Understanding the difference prevents communication bugs. + +**Incorrect (using wrong pattern for use case):** + +```typescript +// Use @MessagePattern for fire-and-forget +@Controller() +export class NotificationsController { + @MessagePattern('user.created') + async handleUserCreated(data: UserCreatedEvent) { + // This WAITS for response, blocking the sender + await this.emailService.sendWelcome(data.email); + // If email fails, sender gets an error (coupling!) + } +} + +// Use @EventPattern expecting a response +@Controller() +export class OrdersController { + @EventPattern('inventory.check') + async checkInventory(data: CheckInventoryDto) { + const available = await this.inventory.check(data); + return available; // This return value is IGNORED with @EventPattern! + } +} + +// Tight coupling in client +@Injectable() +export class UsersService { + async createUser(dto: CreateUserDto): Promise { + const user = await this.repo.save(dto); + + // Blocks until notification service responds + await this.client.send('user.created', user).toPromise(); + // If notification service is down, user creation fails! + + return user; + } +} +``` + +**Correct (use MessagePattern for request-response, EventPattern for fire-and-forget):** + +```typescript +// MessagePattern: Request-Response (when you NEED a response) +@Controller() +export class InventoryController { + @MessagePattern({ cmd: 'check_inventory' }) + async checkInventory(data: CheckInventoryDto): Promise { + const result = await this.inventoryService.check(data.productId, data.quantity); + return result; // Response sent back to caller + } +} + +// Client expects response +@Injectable() +export class OrdersService { + async createOrder(dto: CreateOrderDto): Promise { + // Check inventory - we NEED this response to proceed + const inventory = await firstValueFrom( + this.inventoryClient.send( + { cmd: 'check_inventory' }, + { productId: dto.productId, quantity: dto.quantity }, + ), + ); + + if (!inventory.available) { + throw new BadRequestException('Insufficient inventory'); + } + + return this.repo.save(dto); + } +} + +// EventPattern: Fire-and-Forget (for notifications, side effects) +@Controller() +export class NotificationsController { + @EventPattern('user.created') + async handleUserCreated(data: UserCreatedEvent): Promise { + // No return value needed - just process the event + await this.emailService.sendWelcome(data.email); + await this.analyticsService.track('user_signup', data); + // If this fails, it doesn't affect the sender + } +} + +// Client emits event without waiting +@Injectable() +export class UsersService { + async createUser(dto: CreateUserDto): Promise { + const user = await this.repo.save(dto); + + // Fire and forget - doesn't block, doesn't wait + this.eventClient.emit('user.created', { + userId: user.id, + email: user.email, + timestamp: new Date(), + }); + + return user; // User creation succeeds regardless of event handling + } +} + +// Hybrid pattern for critical events +@Injectable() +export class OrdersService { + async createOrder(dto: CreateOrderDto): Promise { + const order = await this.repo.save(dto); + + // Critical: inventory reservation (use MessagePattern) + const reserved = await firstValueFrom( + this.inventoryClient.send({ cmd: 'reserve_inventory' }, { + orderId: order.id, + items: dto.items, + }), + ); + + if (!reserved.success) { + await this.repo.delete(order.id); + throw new BadRequestException('Could not reserve inventory'); + } + + // Non-critical: notifications (use EventPattern) + this.eventClient.emit('order.created', { + orderId: order.id, + userId: dto.userId, + total: dto.total, + }); + + return order; + } +} + +// Error handling patterns +// MessagePattern errors propagate to caller +@MessagePattern({ cmd: 'get_user' }) +async getUser(userId: string): Promise { + const user = await this.repo.findOne({ where: { id: userId } }); + if (!user) { + throw new RpcException('User not found'); // Received by caller + } + return user; +} + +// EventPattern errors should be handled locally +@EventPattern('order.created') +async handleOrderCreated(data: OrderCreatedEvent): Promise { + try { + await this.processOrder(data); + } catch (error) { + // Log and potentially retry - don't throw + this.logger.error('Failed to process order event', error); + await this.deadLetterQueue.add(data); + } +} +``` + +Reference: [NestJS Microservices](https://docs.nestjs.com/microservices/basics) + +--- + +### 9.3 Use Message Queues for Background Jobs + +**Impact: MEDIUM-HIGH** — Queues enable reliable background processing + +Use `@nestjs/bullmq` for background job processing. Queues decouple long-running tasks from HTTP requests, enable retry logic, and distribute workload across workers. Use them for emails, file processing, notifications, and any task that shouldn't block user requests. + +**Incorrect (long-running tasks in HTTP handlers):** + +```typescript +// Long-running tasks in HTTP handlers +@Controller('reports') +export class ReportsController { + @Post() + async generate(@Body() dto: GenerateReportDto): Promise { + // This blocks the request for potentially minutes + const data = await this.fetchLargeDataset(dto); + const report = await this.processData(data); // Slow! + await this.sendEmail(dto.email, report); // Can fail! + return report; // Client times out + } +} + +// Fire-and-forget without retry +@Injectable() +export class EmailService { + async sendWelcome(email: string): Promise { + // If this fails, email is never sent + await this.mailer.send({ to: email, template: 'welcome' }); + // No retry, no tracking, no visibility + } +} + +// Use setInterval for scheduled tasks +setInterval(async () => { + await cleanupOldRecords(); +}, 60000); // No error handling, memory leaks +``` + +**Correct (use BullMQ for background processing):** + +```typescript +// Configure BullMQ +import { BullModule } from '@nestjs/bullmq'; + +@Module({ + imports: [ + BullModule.forRoot({ + connection: { + host: 'localhost', + port: 6379, + }, + defaultJobOptions: { + removeOnComplete: 1000, + removeOnFail: 5000, + attempts: 3, + backoff: { + type: 'exponential', + delay: 1000, + }, + }, + }), + BullModule.registerQueue( + { name: 'email' }, + { name: 'reports' }, + { name: 'notifications' }, + ), + ], +}) +export class QueueModule {} + +// Producer: Add jobs to queue +@Injectable() +export class ReportsService { + constructor( + @InjectQueue('reports') private reportsQueue: Queue, + ) {} + + async requestReport(dto: GenerateReportDto): Promise<{ jobId: string }> { + // Return immediately, process in background + const job = await this.reportsQueue.add('generate', dto, { + priority: dto.urgent ? 1 : 10, + delay: dto.scheduledFor ? Date.parse(dto.scheduledFor) - Date.now() : 0, + }); + + return { jobId: job.id }; + } + + async getJobStatus(jobId: string): Promise { + const job = await this.reportsQueue.getJob(jobId); + return { + status: await job.getState(), + progress: job.progress, + result: job.returnvalue, + }; + } +} + +// Consumer: Process jobs +@Processor('reports') +export class ReportsProcessor { + private readonly logger = new Logger(ReportsProcessor.name); + + @Process('generate') + async generateReport(job: Job): Promise { + this.logger.log(`Processing report job ${job.id}`); + + // Update progress + await job.updateProgress(10); + + const data = await this.fetchData(job.data); + await job.updateProgress(50); + + const report = await this.processData(data); + await job.updateProgress(90); + + await this.saveReport(report); + await job.updateProgress(100); + + return report; + } + + @OnQueueActive() + onActive(job: Job) { + this.logger.log(`Processing job ${job.id}`); + } + + @OnQueueCompleted() + onCompleted(job: Job, result: any) { + this.logger.log(`Job ${job.id} completed`); + } + + @OnQueueFailed() + onFailed(job: Job, error: Error) { + this.logger.error(`Job ${job.id} failed: ${error.message}`); + } +} + +// Email queue with retry +@Processor('email') +export class EmailProcessor { + @Process('send') + async sendEmail(job: Job): Promise { + const { to, template, data } = job.data; + + try { + await this.mailer.send({ + to, + template, + context: data, + }); + } catch (error) { + // BullMQ will retry based on job options + throw error; + } + } +} + +// Usage +@Injectable() +export class NotificationService { + constructor(@InjectQueue('email') private emailQueue: Queue) {} + + async sendWelcome(user: User): Promise { + await this.emailQueue.add( + 'send', + { + to: user.email, + template: 'welcome', + data: { name: user.name }, + }, + { + attempts: 5, + backoff: { type: 'exponential', delay: 5000 }, + }, + ); + } +} + +// Scheduled jobs +@Injectable() +export class ScheduledJobsService implements OnModuleInit { + constructor(@InjectQueue('maintenance') private queue: Queue) {} + + async onModuleInit(): Promise { + // Clean up old reports daily at midnight + await this.queue.add( + 'cleanup', + {}, + { + repeat: { cron: '0 0 * * *' }, + jobId: 'daily-cleanup', // Prevent duplicates + }, + ); + + // Send digest every hour + await this.queue.add( + 'digest', + {}, + { + repeat: { every: 60 * 60 * 1000 }, + jobId: 'hourly-digest', + }, + ); + } +} + +@Processor('maintenance') +export class MaintenanceProcessor { + @Process('cleanup') + async cleanup(): Promise { + await this.cleanupOldReports(); + await this.cleanupExpiredSessions(); + } + + @Process('digest') + async sendDigest(): Promise { + const users = await this.getUsersForDigest(); + for (const user of users) { + await this.emailQueue.add('send', { to: user.email, template: 'digest' }); + } + } +} + +// Queue monitoring with Bull Board +import { BullBoardModule } from '@bull-board/nestjs'; +import { BullMQAdapter } from '@bull-board/api/bullMQAdapter'; + +@Module({ + imports: [ + BullBoardModule.forRoot({ + route: '/admin/queues', + adapter: ExpressAdapter, + }), + BullBoardModule.forFeature({ + name: 'email', + adapter: BullMQAdapter, + }), + BullBoardModule.forFeature({ + name: 'reports', + adapter: BullMQAdapter, + }), + ], +}) +export class AdminModule {} +``` + +Reference: [NestJS Queues](https://docs.nestjs.com/techniques/queues) + +--- + +## 10. DevOps & Deployment + +**Section Impact: LOW-MEDIUM** + +### 10.1 Implement Graceful Shutdown + +**Impact: MEDIUM-HIGH** — Proper shutdown handling ensures zero-downtime deployments + +Handle SIGTERM and SIGINT signals to gracefully shutdown your NestJS application. Stop accepting new requests, wait for in-flight requests to complete, close database connections, and clean up resources. This prevents data loss and connection errors during deployments. + +**Incorrect (ignoring shutdown signals):** + +```typescript +// Ignore shutdown signals +async function bootstrap() { + const app = await NestFactory.create(AppModule); + await app.listen(3000); + // App crashes immediately on SIGTERM + // In-flight requests fail + // Database connections are abruptly closed +} + +// Long-running tasks without cancellation +@Injectable() +export class ProcessingService { + async processLargeFile(file: File): Promise { + // No way to interrupt this during shutdown + for (let i = 0; i < file.chunks.length; i++) { + await this.processChunk(file.chunks[i]); + // May run for minutes, blocking shutdown + } + } +} +``` + +**Correct (enable shutdown hooks and handle cleanup):** + +```typescript +// Enable shutdown hooks in main.ts +async function bootstrap() { + const app = await NestFactory.create(AppModule); + + // Enable shutdown hooks + app.enableShutdownHooks(); + + // Optional: Add timeout for forced shutdown + const server = await app.listen(3000); + server.setTimeout(30000); // 30 second timeout + + // Handle graceful shutdown + const signals = ['SIGTERM', 'SIGINT']; + signals.forEach((signal) => { + process.on(signal, async () => { + console.log(`Received ${signal}, starting graceful shutdown...`); + + // Stop accepting new connections + server.close(async () => { + console.log('HTTP server closed'); + await app.close(); + process.exit(0); + }); + + // Force exit after timeout + setTimeout(() => { + console.error('Forced shutdown after timeout'); + process.exit(1); + }, 30000); + }); + }); +} + +// Lifecycle hooks for cleanup +@Injectable() +export class DatabaseService implements OnApplicationShutdown { + private readonly connections: Connection[] = []; + + async onApplicationShutdown(signal?: string): Promise { + console.log(`Database service shutting down on ${signal}`); + + // Close all connections gracefully + await Promise.all( + this.connections.map((conn) => conn.close()), + ); + + console.log('All database connections closed'); + } +} + +// Queue processor with graceful shutdown +@Injectable() +export class QueueService implements OnApplicationShutdown, OnModuleDestroy { + private isShuttingDown = false; + + onModuleDestroy(): void { + this.isShuttingDown = true; + } + + async onApplicationShutdown(): Promise { + // Wait for current jobs to complete + await this.queue.close(); + } + + async processJob(job: Job): Promise { + if (this.isShuttingDown) { + throw new Error('Service is shutting down'); + } + await this.doWork(job); + } +} + +// WebSocket gateway cleanup +@WebSocketGateway() +export class EventsGateway implements OnApplicationShutdown { + @WebSocketServer() + server: Server; + + async onApplicationShutdown(): Promise { + // Notify all connected clients + this.server.emit('shutdown', { message: 'Server is shutting down' }); + + // Close all connections + this.server.disconnectSockets(); + } +} + +// Health check integration +@Injectable() +export class ShutdownService { + private isShuttingDown = false; + + startShutdown(): void { + this.isShuttingDown = true; + } + + isShutdown(): boolean { + return this.isShuttingDown; + } +} + +@Controller('health') +export class HealthController { + constructor(private shutdownService: ShutdownService) {} + + @Get('ready') + @HealthCheck() + readiness(): Promise { + // Return 503 during shutdown - k8s stops sending traffic + if (this.shutdownService.isShutdown()) { + throw new ServiceUnavailableException('Shutting down'); + } + + return this.health.check([ + () => this.db.pingCheck('database'), + ]); + } +} + +// Integrate with shutdown +@Injectable() +export class AppShutdownService implements OnApplicationShutdown { + constructor(private shutdownService: ShutdownService) {} + + async onApplicationShutdown(): Promise { + // Mark as unhealthy first + this.shutdownService.startShutdown(); + + // Wait for k8s to update endpoints + await this.sleep(5000); + + // Then proceed with cleanup + } +} + +// Request tracking for in-flight requests +@Injectable() +export class RequestTracker implements NestMiddleware, OnApplicationShutdown { + private activeRequests = 0; + private isShuttingDown = false; + private shutdownPromise: Promise | null = null; + private resolveShutdown: (() => void) | null = null; + + use(req: Request, res: Response, next: NextFunction): void { + if (this.isShuttingDown) { + res.status(503).send('Service Unavailable'); + return; + } + + this.activeRequests++; + + res.on('finish', () => { + this.activeRequests--; + if (this.isShuttingDown && this.activeRequests === 0 && this.resolveShutdown) { + this.resolveShutdown(); + } + }); + + next(); + } + + async onApplicationShutdown(): Promise { + this.isShuttingDown = true; + + if (this.activeRequests > 0) { + console.log(`Waiting for ${this.activeRequests} requests to complete`); + this.shutdownPromise = new Promise((resolve) => { + this.resolveShutdown = resolve; + }); + + // Wait with timeout + await Promise.race([ + this.shutdownPromise, + new Promise((resolve) => setTimeout(resolve, 30000)), + ]); + } + + console.log('All requests completed'); + } +} +``` + +Reference: [NestJS Lifecycle Events](https://docs.nestjs.com/fundamentals/lifecycle-events) + +--- + +### 10.2 Use ConfigModule for Environment Configuration + +**Impact: LOW-MEDIUM** — Proper configuration prevents deployment failures + +Use `@nestjs/config` for environment-based configuration. Validate configuration at startup to fail fast on misconfigurations. Use namespaced configuration for organization and type safety. + +**Incorrect (accessing process.env directly):** + +```typescript +// Access process.env directly +@Injectable() +export class DatabaseService { + constructor() { + // No validation, can fail at runtime + this.connection = new Pool({ + host: process.env.DB_HOST, + port: parseInt(process.env.DB_PORT), // NaN if missing + password: process.env.DB_PASSWORD, // undefined if missing + }); + } +} + +// Scattered env access +@Injectable() +export class EmailService { + sendEmail() { + // Different services access env differently + const apiKey = process.env.SENDGRID_API_KEY || 'default'; + // Typos go unnoticed: process.env.SENDGRID_API_KY + } +} +``` + +**Correct (use @nestjs/config with validation):** + +```typescript +// Setup validated configuration +import { ConfigModule, ConfigService, registerAs } from '@nestjs/config'; +import * as Joi from 'joi'; + +// config/database.config.ts +export const databaseConfig = registerAs('database', () => ({ + host: process.env.DB_HOST, + port: parseInt(process.env.DB_PORT, 10), + username: process.env.DB_USERNAME, + password: process.env.DB_PASSWORD, + database: process.env.DB_NAME, +})); + +// config/app.config.ts +export const appConfig = registerAs('app', () => ({ + port: parseInt(process.env.PORT, 10) || 3000, + environment: process.env.NODE_ENV || 'development', + apiPrefix: process.env.API_PREFIX || 'api', +})); + +// config/validation.schema.ts +export const validationSchema = Joi.object({ + NODE_ENV: Joi.string() + .valid('development', 'production', 'test') + .default('development'), + PORT: Joi.number().default(3000), + DB_HOST: Joi.string().required(), + DB_PORT: Joi.number().default(5432), + DB_USERNAME: Joi.string().required(), + DB_PASSWORD: Joi.string().required(), + DB_NAME: Joi.string().required(), + JWT_SECRET: Joi.string().min(32).required(), + REDIS_URL: Joi.string().uri().required(), +}); + +// app.module.ts +@Module({ + imports: [ + ConfigModule.forRoot({ + isGlobal: true, // Available everywhere without importing + load: [databaseConfig, appConfig], + validationSchema, + validationOptions: { + abortEarly: true, // Stop on first error + allowUnknown: true, // Allow other env vars + }, + }), + TypeOrmModule.forRootAsync({ + inject: [ConfigService], + useFactory: (config: ConfigService) => ({ + type: 'postgres', + host: config.get('database.host'), + port: config.get('database.port'), + username: config.get('database.username'), + password: config.get('database.password'), + database: config.get('database.database'), + autoLoadEntities: true, + }), + }), + ], +}) +export class AppModule {} + +// Type-safe configuration access +export interface AppConfig { + port: number; + environment: 'development' | 'production' | 'test'; + apiPrefix: string; +} + +export interface DatabaseConfig { + host: string; + port: number; + username: string; + password: string; + database: string; +} + +// Type-safe access +@Injectable() +export class AppService { + constructor(private config: ConfigService) {} + + getPort(): number { + // Type-safe with generic + return this.config.get('app.port'); + } + + getDatabaseConfig(): DatabaseConfig { + return this.config.get('database'); + } +} + +// Inject namespaced config directly +@Injectable() +export class DatabaseService { + constructor( + @Inject(databaseConfig.KEY) + private dbConfig: ConfigType, + ) { + // Full type inference! + const host = this.dbConfig.host; // string + const port = this.dbConfig.port; // number + } +} + +// Environment files support +ConfigModule.forRoot({ + envFilePath: [ + `.env.${process.env.NODE_ENV}.local`, + `.env.${process.env.NODE_ENV}`, + '.env.local', + '.env', + ], +}); + +// .env.development +// DB_HOST=localhost +// DB_PORT=5432 + +// .env.production +// DB_HOST=prod-db.example.com +// DB_PORT=5432 +``` + +Reference: [NestJS Configuration](https://docs.nestjs.com/techniques/configuration) + +--- + +### 10.3 Use Structured Logging + +**Impact: MEDIUM-HIGH** — Structured logging enables effective debugging and monitoring + +Use NestJS Logger with structured JSON output in production. Include contextual information (request ID, user ID, operation) to trace requests across services. Avoid console.log and implement proper log levels. + +**Incorrect (using console.log in production):** + +```typescript +// Use console.log in production +@Injectable() +export class UsersService { + async createUser(dto: CreateUserDto): Promise { + console.log('Creating user:', dto); + // Not structured, no levels, lost in production logs + + try { + const user = await this.repo.save(dto); + console.log('User created:', user.id); + return user; + } catch (error) { + console.log('Error:', error); // Using log for errors + throw error; + } + } +} + +// Log sensitive data +console.log('Login attempt:', { email, password }); // SECURITY RISK! + +// Inconsistent log format +logger.log('User ' + userId + ' created at ' + new Date()); +// Hard to parse, no structure +``` + +**Correct (use structured logging with context):** + +```typescript +// Configure logger in main.ts +async function bootstrap() { + const app = await NestFactory.create(AppModule, { + logger: + process.env.NODE_ENV === 'production' + ? ['error', 'warn', 'log'] + : ['error', 'warn', 'log', 'debug', 'verbose'], + }); +} + +// Use NestJS Logger with context +@Injectable() +export class UsersService { + private readonly logger = new Logger(UsersService.name); + + async createUser(dto: CreateUserDto): Promise { + this.logger.log('Creating user', { email: dto.email }); + + try { + const user = await this.repo.save(dto); + this.logger.log('User created', { userId: user.id }); + return user; + } catch (error) { + this.logger.error('Failed to create user', error.stack, { + email: dto.email, + }); + throw error; + } + } +} + +// Custom logger for JSON output +@Injectable() +export class JsonLogger implements LoggerService { + log(message: string, context?: object): void { + console.log( + JSON.stringify({ + level: 'info', + timestamp: new Date().toISOString(), + message, + ...context, + }), + ); + } + + error(message: string, trace?: string, context?: object): void { + console.error( + JSON.stringify({ + level: 'error', + timestamp: new Date().toISOString(), + message, + trace, + ...context, + }), + ); + } + + warn(message: string, context?: object): void { + console.warn( + JSON.stringify({ + level: 'warn', + timestamp: new Date().toISOString(), + message, + ...context, + }), + ); + } + + debug(message: string, context?: object): void { + console.debug( + JSON.stringify({ + level: 'debug', + timestamp: new Date().toISOString(), + message, + ...context, + }), + ); + } +} + +// Request context logging with ClsModule +import { ClsModule, ClsService } from 'nestjs-cls'; + +@Module({ + imports: [ + ClsModule.forRoot({ + global: true, + middleware: { + mount: true, + generateId: true, + }, + }), + ], +}) +export class AppModule {} + +// Middleware to set request context +@Injectable() +export class RequestContextMiddleware implements NestMiddleware { + constructor(private cls: ClsService) {} + + use(req: Request, res: Response, next: NextFunction): void { + const requestId = req.headers['x-request-id'] || randomUUID(); + this.cls.set('requestId', requestId); + this.cls.set('userId', req.user?.id); + + res.setHeader('x-request-id', requestId); + next(); + } +} + +// Logger that includes request context +@Injectable() +export class ContextLogger { + constructor(private cls: ClsService) {} + + log(message: string, data?: object): void { + console.log( + JSON.stringify({ + level: 'info', + timestamp: new Date().toISOString(), + requestId: this.cls.get('requestId'), + userId: this.cls.get('userId'), + message, + ...data, + }), + ); + } + + error(message: string, error: Error, data?: object): void { + console.error( + JSON.stringify({ + level: 'error', + timestamp: new Date().toISOString(), + requestId: this.cls.get('requestId'), + userId: this.cls.get('userId'), + message, + error: error.message, + stack: error.stack, + ...data, + }), + ); + } +} + +// Pino integration for high-performance logging +import { LoggerModule } from 'nestjs-pino'; + +@Module({ + imports: [ + LoggerModule.forRoot({ + pinoHttp: { + level: process.env.NODE_ENV === 'production' ? 'info' : 'debug', + transport: + process.env.NODE_ENV !== 'production' + ? { target: 'pino-pretty' } + : undefined, + redact: ['req.headers.authorization', 'req.body.password'], + serializers: { + req: (req) => ({ + method: req.method, + url: req.url, + query: req.query, + }), + res: (res) => ({ + statusCode: res.statusCode, + }), + }, + }, + }), + ], +}) +export class AppModule {} + +// Usage with Pino +@Injectable() +export class UsersService { + constructor(private logger: PinoLogger) { + this.logger.setContext(UsersService.name); + } + + async findOne(id: string): Promise { + this.logger.info({ userId: id }, 'Finding user'); + // Pino uses first arg for data, second for message + } +} +``` + +Reference: [NestJS Logger](https://docs.nestjs.com/techniques/logger) + +--- + +## References + +- https://docs.nestjs.com +- https://github.com/nestjs/nest +- https://typeorm.io +- https://github.com/typestack/class-validator +- https://github.com/goldbergyoni/nodebestpractices + +--- + +*Generated by build-agents.ts on 2026-01-16* diff --git a/.agents/skills/nestjs-best-practices/SKILL.md b/.agents/skills/nestjs-best-practices/SKILL.md new file mode 100644 index 000000000..de75eac99 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/SKILL.md @@ -0,0 +1,130 @@ +--- +name: nestjs-best-practices +description: NestJS best practices and architecture patterns for building production-ready applications. This skill should be used when writing, reviewing, or refactoring NestJS code to ensure proper patterns for modules, dependency injection, security, and performance. +license: MIT +metadata: + author: Kadajett + version: "1.1.0" +--- + +# NestJS Best Practices + +Comprehensive best practices guide for NestJS applications. Contains 40 rules across 10 categories, prioritized by impact to guide automated refactoring and code generation. + +## When to Apply + +Reference these guidelines when: + +- Writing new NestJS modules, controllers, or services +- Implementing authentication and authorization +- Reviewing code for architecture and security issues +- Refactoring existing NestJS codebases +- Optimizing performance or database queries +- Building microservices architectures + +## Rule Categories by Priority + +| Priority | Category | Impact | Prefix | +|----------|----------|--------|--------| +| 1 | Architecture | CRITICAL | `arch-` | +| 2 | Dependency Injection | CRITICAL | `di-` | +| 3 | Error Handling | HIGH | `error-` | +| 4 | Security | HIGH | `security-` | +| 5 | Performance | HIGH | `perf-` | +| 6 | Testing | MEDIUM-HIGH | `test-` | +| 7 | Database & ORM | MEDIUM-HIGH | `db-` | +| 8 | API Design | MEDIUM | `api-` | +| 9 | Microservices | MEDIUM | `micro-` | +| 10 | DevOps & Deployment | LOW-MEDIUM | `devops-` | + +## Quick Reference + +### 1. Architecture (CRITICAL) + +- `arch-avoid-circular-deps` - Avoid circular module dependencies +- `arch-feature-modules` - Organize by feature, not technical layer +- `arch-module-sharing` - Proper module exports/imports, avoid duplicate providers +- `arch-single-responsibility` - Focused services over "god services" +- `arch-use-repository-pattern` - Abstract database logic for testability +- `arch-use-events` - Event-driven architecture for decoupling + +### 2. Dependency Injection (CRITICAL) + +- `di-avoid-service-locator` - Avoid service locator anti-pattern +- `di-interface-segregation` - Interface Segregation Principle (ISP) +- `di-liskov-substitution` - Liskov Substitution Principle (LSP) +- `di-prefer-constructor-injection` - Constructor over property injection +- `di-scope-awareness` - Understand singleton/request/transient scopes +- `di-use-interfaces-tokens` - Use injection tokens for interfaces + +### 3. Error Handling (HIGH) + +- `error-use-exception-filters` - Centralized exception handling +- `error-throw-http-exceptions` - Use NestJS HTTP exceptions +- `error-handle-async-errors` - Handle async errors properly + +### 4. Security (HIGH) + +- `security-auth-jwt` - Secure JWT authentication +- `security-validate-all-input` - Validate with class-validator +- `security-use-guards` - Authentication and authorization guards +- `security-sanitize-output` - Prevent XSS attacks +- `security-rate-limiting` - Implement rate limiting + +### 5. Performance (HIGH) + +- `perf-async-hooks` - Proper async lifecycle hooks +- `perf-use-caching` - Implement caching strategies +- `perf-optimize-database` - Optimize database queries +- `perf-lazy-loading` - Lazy load modules for faster startup + +### 6. Testing (MEDIUM-HIGH) + +- `test-use-testing-module` - Use NestJS testing utilities +- `test-e2e-supertest` - E2E testing with Supertest +- `test-mock-external-services` - Mock external dependencies + +### 7. Database & ORM (MEDIUM-HIGH) + +- `db-use-transactions` - Transaction management +- `db-avoid-n-plus-one` - Avoid N+1 query problems +- `db-use-migrations` - Use migrations for schema changes + +### 8. API Design (MEDIUM) + +- `api-use-dto-serialization` - DTO and response serialization +- `api-use-interceptors` - Cross-cutting concerns +- `api-versioning` - API versioning strategies +- `api-use-pipes` - Input transformation with pipes + +### 9. Microservices (MEDIUM) + +- `micro-use-patterns` - Message and event patterns +- `micro-use-health-checks` - Health checks for orchestration +- `micro-use-queues` - Background job processing + +### 10. DevOps & Deployment (LOW-MEDIUM) + +- `devops-use-config-module` - Environment configuration +- `devops-use-logging` - Structured logging +- `devops-graceful-shutdown` - Zero-downtime deployments + +## How to Use + +Read individual rule files for detailed explanations and code examples: + +``` +rules/arch-avoid-circular-deps.md +rules/security-validate-all-input.md +rules/_sections.md +``` + +Each rule file contains: +- Brief explanation of why it matters +- Incorrect code example with explanation +- Correct code example with explanation +- Additional context and references + +## Full Compiled Document + +For the complete guide with all rules expanded: `AGENTS.md` diff --git a/.agents/skills/nestjs-best-practices/rules/_sections.md b/.agents/skills/nestjs-best-practices/rules/_sections.md new file mode 100644 index 000000000..91bc8029a --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/_sections.md @@ -0,0 +1,56 @@ +# Sections + +This file defines all sections, their ordering, impact levels, and descriptions. +The section ID (in parentheses) is the filename prefix used to group rules. + +--- + +## 1. Architecture (arch) + +**Impact:** CRITICAL +**Description:** Proper module organization and dependency management are the foundation of maintainable NestJS applications. Circular dependencies and god services are the #1 architecture killer. + +## 2. Dependency Injection (di) + +**Impact:** CRITICAL +**Description:** NestJS's IoC container is powerful but can be misused. Understanding scopes, injection tokens, and proper patterns is essential for testable code. + +## 3. Error Handling (error) + +**Impact:** HIGH +**Description:** Consistent error handling improves debugging, user experience, and API reliability. Centralized exception filters ensure uniform error responses. + +## 4. Security (security) + +**Impact:** HIGH +**Description:** Security vulnerabilities can be catastrophic. Input validation, authentication, authorization, and data protection are non-negotiable. + +## 5. Performance (perf) + +**Impact:** HIGH +**Description:** Optimizing request handling, caching, and database queries directly impacts application responsiveness and scalability. + +## 6. Testing (test) + +**Impact:** MEDIUM-HIGH +**Description:** Well-tested applications are more reliable. NestJS testing utilities enable comprehensive unit and e2e coverage. + +## 7. Database & ORM (db) + +**Impact:** MEDIUM-HIGH +**Description:** Proper database access patterns, transactions, and query optimization are crucial for data-intensive applications. + +## 8. API Design (api) + +**Impact:** MEDIUM +**Description:** RESTful conventions, versioning, DTOs, and consistent response formats improve API usability and maintainability. + +## 9. Microservices (micro) + +**Impact:** MEDIUM +**Description:** Building distributed systems requires understanding message patterns, health checks, and inter-service communication. + +## 10. DevOps & Deployment (devops) + +**Impact:** LOW-MEDIUM +**Description:** Configuration management, structured logging, and graceful shutdown ensure production readiness and zero-downtime deployments. diff --git a/.agents/skills/nestjs-best-practices/rules/_template.md b/.agents/skills/nestjs-best-practices/rules/_template.md new file mode 100644 index 000000000..1e9e70703 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/_template.md @@ -0,0 +1,28 @@ +--- +title: Rule Title Here +impact: MEDIUM +impactDescription: Optional description of impact (e.g., "20-50% improvement") +tags: tag1, tag2 +--- + +## Rule Title Here + +**Impact: MEDIUM (optional impact description)** + +Brief explanation of the rule and why it matters. This should be clear and concise, explaining the performance implications. + +**Incorrect (description of what's wrong):** + +```typescript +// Bad code example here +const bad = example() +``` + +**Correct (description of what's right):** + +```typescript +// Good code example here +const good = example() +``` + +Reference: [Link to documentation or resource](https://example.com) diff --git a/.agents/skills/nestjs-best-practices/rules/api-use-dto-serialization.md b/.agents/skills/nestjs-best-practices/rules/api-use-dto-serialization.md new file mode 100644 index 000000000..be95c07f7 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/api-use-dto-serialization.md @@ -0,0 +1,182 @@ +--- +title: Use DTOs and Serialization for API Responses +impact: MEDIUM +impactDescription: Response DTOs prevent accidental data exposure and ensure consistency +tags: api, dto, serialization, class-transformer +--- + +## Use DTOs and Serialization for API Responses + +Never return entity objects directly from controllers. Use response DTOs with class-transformer's `@Exclude()` and `@Expose()` decorators to control exactly what data is sent to clients. This prevents accidental exposure of sensitive fields and provides a stable API contract. + +**Incorrect (returning entities directly or manual spreading):** + +```typescript +// Return entities directly +@Controller('users') +export class UsersController { + @Get(':id') + async findOne(@Param('id') id: string): Promise { + return this.usersService.findById(id); + // Returns: { id, email, passwordHash, ssn, internalNotes, ... } + // Exposes sensitive data! + } +} + +// Manual object spreading (error-prone) +@Get(':id') +async findOne(@Param('id') id: string) { + const user = await this.usersService.findById(id); + return { + id: user.id, + email: user.email, + name: user.name, + // Easy to forget to exclude sensitive fields + // Hard to maintain across endpoints + }; +} +``` + +**Correct (use class-transformer with @Exclude and response DTOs):** + +```typescript +// Enable class-transformer globally +async function bootstrap() { + const app = await NestFactory.create(AppModule); + app.useGlobalInterceptors(new ClassSerializerInterceptor(app.get(Reflector))); + await app.listen(3000); +} + +// Entity with serialization control +@Entity() +export class User { + @PrimaryGeneratedColumn('uuid') + id: string; + + @Column() + email: string; + + @Column() + name: string; + + @Column() + @Exclude() // Never include in responses + passwordHash: string; + + @Column({ nullable: true }) + @Exclude() + ssn: string; + + @Column({ default: false }) + @Exclude({ toPlainOnly: true }) // Exclude from response, allow in requests + isAdmin: boolean; + + @CreateDateColumn() + createdAt: Date; + + @Column() + @Exclude() + internalNotes: string; +} + +// Now returning entity is safe +@Controller('users') +export class UsersController { + @Get(':id') + async findOne(@Param('id') id: string): Promise { + return this.usersService.findById(id); + // Returns: { id, email, name, createdAt } + // Sensitive fields excluded automatically + } +} + +// For different response shapes, use explicit DTOs +export class UserResponseDto { + @Expose() + id: string; + + @Expose() + email: string; + + @Expose() + name: string; + + @Expose() + @Transform(({ obj }) => obj.posts?.length || 0) + postCount: number; + + constructor(partial: Partial) { + Object.assign(this, partial); + } +} + +export class UserDetailResponseDto extends UserResponseDto { + @Expose() + createdAt: Date; + + @Expose() + @Type(() => PostResponseDto) + posts: PostResponseDto[]; +} + +// Controller with explicit DTOs +@Controller('users') +export class UsersController { + @Get() + @SerializeOptions({ type: UserResponseDto }) + async findAll(): Promise { + const users = await this.usersService.findAll(); + return users.map(u => plainToInstance(UserResponseDto, u)); + } + + @Get(':id') + async findOne(@Param('id') id: string): Promise { + const user = await this.usersService.findByIdWithPosts(id); + return plainToInstance(UserDetailResponseDto, user, { + excludeExtraneousValues: true, + }); + } +} + +// Groups for conditional serialization +export class UserDto { + @Expose() + id: string; + + @Expose() + name: string; + + @Expose({ groups: ['admin'] }) + email: string; + + @Expose({ groups: ['admin'] }) + createdAt: Date; + + @Expose({ groups: ['admin', 'owner'] }) + settings: UserSettings; +} + +@Controller('users') +export class UsersController { + @Get() + @SerializeOptions({ groups: ['public'] }) + async findAllPublic(): Promise { + // Returns: { id, name } + } + + @Get('admin') + @UseGuards(AdminGuard) + @SerializeOptions({ groups: ['admin'] }) + async findAllAdmin(): Promise { + // Returns: { id, name, email, createdAt } + } + + @Get('me') + @SerializeOptions({ groups: ['owner'] }) + async getProfile(@CurrentUser() user: User): Promise { + // Returns: { id, name, settings } + } +} +``` + +Reference: [NestJS Serialization](https://docs.nestjs.com/techniques/serialization) diff --git a/.agents/skills/nestjs-best-practices/rules/api-use-interceptors.md b/.agents/skills/nestjs-best-practices/rules/api-use-interceptors.md new file mode 100644 index 000000000..522ab3d52 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/api-use-interceptors.md @@ -0,0 +1,202 @@ +--- +title: Use Interceptors for Cross-Cutting Concerns +impact: MEDIUM-HIGH +impactDescription: Interceptors provide clean separation for cross-cutting logic +tags: api, interceptors, logging, caching +--- + +## Use Interceptors for Cross-Cutting Concerns + +Interceptors can transform responses, add logging, handle caching, and measure performance without polluting your business logic. They wrap the route handler execution, giving you access to both the request and response streams. + +**Incorrect (logging and transformation in every method):** + +```typescript +// Logging in every controller method +@Controller('users') +export class UsersController { + @Get() + async findAll(): Promise { + const start = Date.now(); + this.logger.log('findAll called'); + + const users = await this.usersService.findAll(); + + this.logger.log(`findAll completed in ${Date.now() - start}ms`); + return users; + } + + @Get(':id') + async findOne(@Param('id') id: string): Promise { + const start = Date.now(); + this.logger.log(`findOne called with id: ${id}`); + + const user = await this.usersService.findOne(id); + + this.logger.log(`findOne completed in ${Date.now() - start}ms`); + return user; + } + // Repeated in every method! +} + +// Manual response wrapping +@Get() +async findAll(): Promise<{ data: User[]; meta: Meta }> { + const users = await this.usersService.findAll(); + return { + data: users, + meta: { timestamp: new Date(), count: users.length }, + }; +} +``` + +**Correct (use interceptors for cross-cutting concerns):** + +```typescript +// Logging interceptor +@Injectable() +export class LoggingInterceptor implements NestInterceptor { + private readonly logger = new Logger('HTTP'); + + intercept(context: ExecutionContext, next: CallHandler): Observable { + const request = context.switchToHttp().getRequest(); + const { method, url, body } = request; + const now = Date.now(); + + return next.handle().pipe( + tap({ + next: (data) => { + const response = context.switchToHttp().getResponse(); + this.logger.log( + `${method} ${url} ${response.statusCode} - ${Date.now() - now}ms`, + ); + }, + error: (error) => { + this.logger.error( + `${method} ${url} ${error.status || 500} - ${Date.now() - now}ms`, + error.stack, + ); + }, + }), + ); + } +} + +// Response transformation interceptor +@Injectable() +export class TransformInterceptor implements NestInterceptor> { + intercept(context: ExecutionContext, next: CallHandler): Observable> { + return next.handle().pipe( + map((data) => ({ + data, + meta: { + timestamp: new Date().toISOString(), + path: context.switchToHttp().getRequest().url, + }, + })), + ); + } +} + +// Timeout interceptor +@Injectable() +export class TimeoutInterceptor implements NestInterceptor { + intercept(context: ExecutionContext, next: CallHandler): Observable { + return next.handle().pipe( + timeout(5000), + catchError((err) => { + if (err instanceof TimeoutError) { + throw new RequestTimeoutException('Request timed out'); + } + throw err; + }), + ); + } +} + +// Apply globally or per-controller +@Module({ + providers: [ + { provide: APP_INTERCEPTOR, useClass: LoggingInterceptor }, + { provide: APP_INTERCEPTOR, useClass: TransformInterceptor }, + ], +}) +export class AppModule {} + +// Or per-controller +@Controller('users') +@UseInterceptors(LoggingInterceptor) +export class UsersController { + @Get() + async findAll(): Promise { + // Clean business logic only + return this.usersService.findAll(); + } +} + +// Custom cache interceptor with TTL +@Injectable() +export class HttpCacheInterceptor implements NestInterceptor { + constructor( + private cacheManager: Cache, + private reflector: Reflector, + ) {} + + async intercept(context: ExecutionContext, next: CallHandler): Promise> { + const request = context.switchToHttp().getRequest(); + + // Only cache GET requests + if (request.method !== 'GET') { + return next.handle(); + } + + const cacheKey = this.generateKey(request); + const ttl = this.reflector.get('cacheTTL', context.getHandler()) || 300; + + const cached = await this.cacheManager.get(cacheKey); + if (cached) { + return of(cached); + } + + return next.handle().pipe( + tap((response) => { + this.cacheManager.set(cacheKey, response, ttl); + }), + ); + } + + private generateKey(request: Request): string { + return `cache:${request.url}:${JSON.stringify(request.query)}`; + } +} + +// Usage with custom TTL +@Get() +@SetMetadata('cacheTTL', 600) +@UseInterceptors(HttpCacheInterceptor) +async findAll(): Promise { + return this.usersService.findAll(); +} + +// Error mapping interceptor +@Injectable() +export class ErrorMappingInterceptor implements NestInterceptor { + intercept(context: ExecutionContext, next: CallHandler): Observable { + return next.handle().pipe( + catchError((error) => { + if (error instanceof EntityNotFoundError) { + throw new NotFoundException(error.message); + } + if (error instanceof QueryFailedError) { + if (error.message.includes('duplicate')) { + throw new ConflictException('Resource already exists'); + } + } + throw error; + }), + ); + } +} +``` + +Reference: [NestJS Interceptors](https://docs.nestjs.com/interceptors) diff --git a/.agents/skills/nestjs-best-practices/rules/api-use-pipes.md b/.agents/skills/nestjs-best-practices/rules/api-use-pipes.md new file mode 100644 index 000000000..72b9a6e9d --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/api-use-pipes.md @@ -0,0 +1,205 @@ +--- +title: Use Pipes for Input Transformation +impact: MEDIUM +impactDescription: Pipes ensure clean, validated data reaches your handlers +tags: api, pipes, validation, transformation +--- + +## Use Pipes for Input Transformation + +Use built-in pipes like `ParseIntPipe`, `ParseUUIDPipe`, and `DefaultValuePipe` for common transformations. Create custom pipes for business-specific transformations. Pipes separate validation/transformation logic from controllers. + +**Incorrect (manual type parsing in handlers):** + +```typescript +// Manual type parsing in handlers +@Controller('users') +export class UsersController { + @Get(':id') + async findOne(@Param('id') id: string): Promise { + // Manual validation in every handler + const uuid = id.trim(); + if (!isUUID(uuid)) { + throw new BadRequestException('Invalid UUID'); + } + return this.usersService.findOne(uuid); + } + + @Get() + async findAll( + @Query('page') page: string, + @Query('limit') limit: string, + ): Promise { + // Manual parsing and defaults + const pageNum = parseInt(page) || 1; + const limitNum = parseInt(limit) || 10; + return this.usersService.findAll(pageNum, limitNum); + } +} + +// Type coercion without validation +@Get() +async search(@Query('price') price: string): Promise { + const priceNum = +price; // NaN if invalid, no error + return this.productsService.findByPrice(priceNum); +} +``` + +**Correct (use built-in and custom pipes):** + +```typescript +// Use built-in pipes for common transformations +@Controller('users') +export class UsersController { + @Get(':id') + async findOne(@Param('id', ParseUUIDPipe) id: string): Promise { + // id is guaranteed to be a valid UUID + return this.usersService.findOne(id); + } + + @Get() + async findAll( + @Query('page', new DefaultValuePipe(1), ParseIntPipe) page: number, + @Query('limit', new DefaultValuePipe(10), ParseIntPipe) limit: number, + ): Promise { + // Automatic defaults and type conversion + return this.usersService.findAll(page, limit); + } + + @Get('by-status/:status') + async findByStatus( + @Param('status', new ParseEnumPipe(UserStatus)) status: UserStatus, + ): Promise { + return this.usersService.findByStatus(status); + } +} + +// Custom pipe for business logic +@Injectable() +export class ParseDatePipe implements PipeTransform { + transform(value: string): Date { + const date = new Date(value); + if (isNaN(date.getTime())) { + throw new BadRequestException('Invalid date format'); + } + return date; + } +} + +@Get('reports') +async getReports( + @Query('from', ParseDatePipe) from: Date, + @Query('to', ParseDatePipe) to: Date, +): Promise { + return this.reportsService.findBetween(from, to); +} + +// Custom transformation pipes +@Injectable() +export class NormalizeEmailPipe implements PipeTransform { + transform(value: string): string { + if (!value) return value; + return value.trim().toLowerCase(); + } +} + +// Parse comma-separated values +@Injectable() +export class ParseArrayPipe implements PipeTransform { + transform(value: string): string[] { + if (!value) return []; + return value.split(',').map((v) => v.trim()).filter(Boolean); + } +} + +@Get('products') +async findProducts( + @Query('ids', ParseArrayPipe) ids: string[], + @Query('email', NormalizeEmailPipe) email: string, +): Promise { + // ids is already an array, email is normalized + return this.productsService.findByIds(ids); +} + +// Sanitize HTML input +@Injectable() +export class SanitizeHtmlPipe implements PipeTransform { + transform(value: string): string { + if (!value) return value; + return sanitizeHtml(value, { allowedTags: [] }); + } +} + +// Global validation pipe with transformation +app.useGlobalPipes( + new ValidationPipe({ + whitelist: true, // Strip non-DTO properties + transform: true, // Auto-transform to DTO types + transformOptions: { + enableImplicitConversion: true, // Convert query strings to numbers + }, + forbidNonWhitelisted: true, // Throw on extra properties + }), +); + +// DTO with transformation decorators +export class FindProductsDto { + @IsOptional() + @Type(() => Number) + @IsInt() + @Min(1) + page?: number = 1; + + @IsOptional() + @Type(() => Number) + @IsInt() + @Min(1) + @Max(100) + limit?: number = 10; + + @IsOptional() + @Transform(({ value }) => value?.toLowerCase()) + @IsString() + search?: string; + + @IsOptional() + @Transform(({ value }) => value?.split(',')) + @IsArray() + @IsString({ each: true }) + categories?: string[]; +} + +@Get() +async findAll(@Query() dto: FindProductsDto): Promise { + // dto is already transformed and validated + return this.productsService.findAll(dto); +} + +// Pipe error customization +@Injectable() +export class CustomParseIntPipe extends ParseIntPipe { + constructor() { + super({ + exceptionFactory: (error) => + new BadRequestException(`${error} must be a valid integer`), + }); + } +} + +// Or use options on built-in pipes +@Get(':id') +async findOne( + @Param( + 'id', + new ParseIntPipe({ + errorHttpStatusCode: HttpStatus.NOT_ACCEPTABLE, + exceptionFactory: () => new NotAcceptableException('ID must be numeric'), + }), + ) + id: number, +): Promise { + return this.itemsService.findOne(id); +} +``` + +Reference: [NestJS Pipes](https://docs.nestjs.com/pipes) diff --git a/.agents/skills/nestjs-best-practices/rules/api-versioning.md b/.agents/skills/nestjs-best-practices/rules/api-versioning.md new file mode 100644 index 000000000..5e4546ca0 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/api-versioning.md @@ -0,0 +1,191 @@ +--- +title: Use API Versioning for Breaking Changes +impact: MEDIUM +impactDescription: Versioning allows you to evolve APIs without breaking existing clients +tags: api, versioning, breaking-changes, compatibility +--- + +## Use API Versioning for Breaking Changes + +Use NestJS built-in versioning when making breaking changes to your API. Choose a versioning strategy (URI, header, or media type) and apply it consistently. This allows old clients to continue working while new clients use updated endpoints. + +**Incorrect (breaking changes without versioning):** + +```typescript +// Breaking changes without versioning +@Controller('users') +export class UsersController { + @Get(':id') + async findOne(@Param('id') id: string): Promise { + // Original response: { id, name, email } + // Later changed to: { id, firstName, lastName, emailAddress } + // Old clients break! + return this.usersService.findOne(id); + } +} + +// Manual versioning in routes +@Controller('v1/users') +export class UsersV1Controller {} + +@Controller('v2/users') +export class UsersV2Controller {} +// Inconsistent, error-prone, hard to maintain +``` + +**Correct (use NestJS built-in versioning):** + +```typescript +// Enable versioning in main.ts +async function bootstrap() { + const app = await NestFactory.create(AppModule); + + // URI versioning: /v1/users, /v2/users + app.enableVersioning({ + type: VersioningType.URI, + defaultVersion: '1', + }); + + // Or header versioning: X-API-Version: 1 + app.enableVersioning({ + type: VersioningType.HEADER, + header: 'X-API-Version', + defaultVersion: '1', + }); + + // Or media type: Accept: application/json;v=1 + app.enableVersioning({ + type: VersioningType.MEDIA_TYPE, + key: 'v=', + defaultVersion: '1', + }); + + await app.listen(3000); +} + +// Version-specific controllers +@Controller('users') +@Version('1') +export class UsersV1Controller { + @Get(':id') + async findOne(@Param('id') id: string): Promise { + const user = await this.usersService.findOne(id); + // V1 response format + return { + id: user.id, + name: user.name, + email: user.email, + }; + } +} + +@Controller('users') +@Version('2') +export class UsersV2Controller { + @Get(':id') + async findOne(@Param('id') id: string): Promise { + const user = await this.usersService.findOne(id); + // V2 response format with breaking changes + return { + id: user.id, + firstName: user.firstName, + lastName: user.lastName, + emailAddress: user.email, + createdAt: user.createdAt, + }; + } +} + +// Per-route versioning - different versions for different routes +@Controller('users') +export class UsersController { + @Get() + @Version('1') + findAllV1(): Promise { + return this.usersService.findAllV1(); + } + + @Get() + @Version('2') + findAllV2(): Promise { + return this.usersService.findAllV2(); + } + + @Get(':id') + @Version(['1', '2']) // Same handler for multiple versions + findOne(@Param('id') id: string): Promise { + return this.usersService.findOne(id); + } + + @Post() + @Version(VERSION_NEUTRAL) // Available in all versions + create(@Body() dto: CreateUserDto): Promise { + return this.usersService.create(dto); + } +} + +// Shared service with version-specific logic +@Injectable() +export class UsersService { + async findOne(id: string, version: string): Promise { + const user = await this.repo.findOne({ where: { id } }); + + if (version === '1') { + return this.toV1Response(user); + } + return this.toV2Response(user); + } + + private toV1Response(user: User): UserV1Response { + return { + id: user.id, + name: `${user.firstName} ${user.lastName}`, + email: user.email, + }; + } + + private toV2Response(user: User): UserV2Response { + return { + id: user.id, + firstName: user.firstName, + lastName: user.lastName, + emailAddress: user.email, + createdAt: user.createdAt, + }; + } +} + +// Controller extracts version +@Controller('users') +export class UsersController { + @Get(':id') + async findOne( + @Param('id') id: string, + @Headers('X-API-Version') version: string = '1', + ): Promise { + return this.usersService.findOne(id, version); + } +} + +// Deprecation strategy - mark old versions as deprecated +@Controller('users') +@Version('1') +@UseInterceptors(DeprecationInterceptor) +export class UsersV1Controller { + // All V1 routes will include deprecation warning +} + +@Injectable() +export class DeprecationInterceptor implements NestInterceptor { + intercept(context: ExecutionContext, next: CallHandler): Observable { + const response = context.switchToHttp().getResponse(); + response.setHeader('Deprecation', 'true'); + response.setHeader('Sunset', 'Sat, 1 Jan 2025 00:00:00 GMT'); + response.setHeader('Link', '; rel="successor-version"'); + + return next.handle(); + } +} +``` + +Reference: [NestJS Versioning](https://docs.nestjs.com/techniques/versioning) diff --git a/.agents/skills/nestjs-best-practices/rules/arch-avoid-circular-deps.md b/.agents/skills/nestjs-best-practices/rules/arch-avoid-circular-deps.md new file mode 100644 index 000000000..aea5c8be5 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/arch-avoid-circular-deps.md @@ -0,0 +1,80 @@ +--- +title: Avoid Circular Dependencies +impact: CRITICAL +impactDescription: "#1 cause of runtime crashes" +tags: architecture, modules, dependencies +--- + +## Avoid Circular Dependencies + +Circular dependencies occur when Module A imports Module B, and Module B imports Module A (directly or transitively). NestJS can sometimes resolve these through forward references, but they indicate architectural problems and should be avoided. This is the #1 cause of runtime crashes in NestJS applications. + +**Incorrect (circular module imports):** + +```typescript +// users.module.ts +@Module({ + imports: [OrdersModule], // Orders needs Users, Users needs Orders = circular + providers: [UsersService], + exports: [UsersService], +}) +export class UsersModule {} + +// orders.module.ts +@Module({ + imports: [UsersModule], // Circular dependency! + providers: [OrdersService], + exports: [OrdersService], +}) +export class OrdersModule {} +``` + +**Correct (extract shared logic or use events):** + +```typescript +// Option 1: Extract shared logic to a third module +// shared.module.ts +@Module({ + providers: [SharedService], + exports: [SharedService], +}) +export class SharedModule {} + +// users.module.ts +@Module({ + imports: [SharedModule], + providers: [UsersService], +}) +export class UsersModule {} + +// orders.module.ts +@Module({ + imports: [SharedModule], + providers: [OrdersService], +}) +export class OrdersModule {} + +// Option 2: Use events for decoupled communication +// users.service.ts +@Injectable() +export class UsersService { + constructor(private eventEmitter: EventEmitter2) {} + + async createUser(data: CreateUserDto) { + const user = await this.userRepo.save(data); + this.eventEmitter.emit('user.created', user); + return user; + } +} + +// orders.service.ts +@Injectable() +export class OrdersService { + @OnEvent('user.created') + handleUserCreated(user: User) { + // React to user creation without direct dependency + } +} +``` + +Reference: [NestJS Circular Dependency](https://docs.nestjs.com/fundamentals/circular-dependency) diff --git a/.agents/skills/nestjs-best-practices/rules/arch-feature-modules.md b/.agents/skills/nestjs-best-practices/rules/arch-feature-modules.md new file mode 100644 index 000000000..4f3ef5679 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/arch-feature-modules.md @@ -0,0 +1,82 @@ +--- +title: Organize by Feature Modules +impact: CRITICAL +impactDescription: "3-5x faster onboarding and development" +tags: architecture, modules, organization +--- + +## Organize by Feature Modules + +Organize your application into feature modules that encapsulate related functionality. Each feature module should be self-contained with its own controllers, services, entities, and DTOs. Avoid organizing by technical layer (all controllers together, all services together). This enables 3-5x faster onboarding and feature development. + +**Incorrect (technical layer organization):** + +```typescript +// Technical layer organization (anti-pattern) +src/ +├── controllers/ +│ ├── users.controller.ts +│ ├── orders.controller.ts +│ └── products.controller.ts +├── services/ +│ ├── users.service.ts +│ ├── orders.service.ts +│ └── products.service.ts +├── entities/ +│ ├── user.entity.ts +│ ├── order.entity.ts +│ └── product.entity.ts +└── app.module.ts // Imports everything directly +``` + +**Correct (feature module organization):** + +```typescript +// Feature module organization +src/ +├── users/ +│ ├── dto/ +│ │ ├── create-user.dto.ts +│ │ └── update-user.dto.ts +│ ├── entities/ +│ │ └── user.entity.ts +│ ├── users.controller.ts +│ ├── users.service.ts +│ ├── users.repository.ts +│ └── users.module.ts +├── orders/ +│ ├── dto/ +│ ├── entities/ +│ ├── orders.controller.ts +│ ├── orders.service.ts +│ └── orders.module.ts +├── shared/ +│ ├── guards/ +│ ├── interceptors/ +│ ├── filters/ +│ └── shared.module.ts +└── app.module.ts + +// users.module.ts +@Module({ + imports: [TypeOrmModule.forFeature([User])], + controllers: [UsersController], + providers: [UsersService, UsersRepository], + exports: [UsersService], // Only export what others need +}) +export class UsersModule {} + +// app.module.ts +@Module({ + imports: [ + ConfigModule.forRoot(), + TypeOrmModule.forRoot(), + UsersModule, + OrdersModule, + SharedModule, + ], +}) +export class AppModule {} +``` + +Reference: [NestJS Modules](https://docs.nestjs.com/modules) diff --git a/.agents/skills/nestjs-best-practices/rules/arch-module-sharing.md b/.agents/skills/nestjs-best-practices/rules/arch-module-sharing.md new file mode 100644 index 000000000..06ab76786 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/arch-module-sharing.md @@ -0,0 +1,141 @@ +--- +title: Use Proper Module Sharing Patterns +impact: CRITICAL +impactDescription: Prevents duplicate instances, memory leaks, and state inconsistency +tags: architecture, modules, sharing, exports +--- + +## Use Proper Module Sharing Patterns + +NestJS modules are singletons by default. When a service is properly exported from a module and that module is imported elsewhere, the same instance is shared. However, providing a service in multiple modules creates separate instances, leading to memory waste, state inconsistency, and confusing behavior. Always encapsulate services in dedicated modules, export them explicitly, and import the module where needed. + +**Incorrect (service provided in multiple modules):** + +```typescript +// StorageService provided directly in multiple modules - WRONG +// storage.service.ts +@Injectable() +export class StorageService { + private cache = new Map(); // Each instance has separate state! + + store(key: string, value: any) { + this.cache.set(key, value); + } +} + +// app.module.ts +@Module({ + providers: [StorageService], // Instance #1 + controllers: [AppController], +}) +export class AppModule {} + +// videos.module.ts +@Module({ + providers: [StorageService], // Instance #2 - different from AppModule! + controllers: [VideosController], +}) +export class VideosModule {} + +// Problems: +// 1. Two separate StorageService instances exist +// 2. cache.set() in VideosModule doesn't affect AppModule's cache +// 3. Memory wasted on duplicate instances +// 4. Debugging nightmares when state doesn't sync +``` + +**Correct (dedicated module with exports):** + +```typescript +// storage/storage.module.ts +@Module({ + providers: [StorageService], + exports: [StorageService], // Make available to importers +}) +export class StorageModule {} + +// videos/videos.module.ts +@Module({ + imports: [StorageModule], // Import the module, not the service + controllers: [VideosController], + providers: [VideosService], +}) +export class VideosModule {} + +// channels/channels.module.ts +@Module({ + imports: [StorageModule], // Same instance shared + controllers: [ChannelsController], + providers: [ChannelsService], +}) +export class ChannelsModule {} + +// app.module.ts +@Module({ + imports: [ + StorageModule, // Only if AppModule itself needs StorageService + VideosModule, + ChannelsModule, + ], +}) +export class AppModule {} + +// Now all modules share the SAME StorageService instance +``` + +**When to use @Global() (sparingly):** + +```typescript +// ONLY for truly cross-cutting concerns +@Global() +@Module({ + providers: [ConfigService, LoggerService], + exports: [ConfigService, LoggerService], +}) +export class CoreModule {} + +// Import once in AppModule +@Module({ + imports: [CoreModule], // Registered globally, available everywhere +}) +export class AppModule {} + +// Other modules don't need to import CoreModule +@Module({ + controllers: [UsersController], + providers: [UsersService], // Can inject ConfigService without importing +}) +export class UsersModule {} + +// WARNING: Don't make everything global! +// - Hides dependencies (can't see what a module needs from imports) +// - Makes testing harder +// - Reserve for: config, logging, database connections +``` + +**Module re-exporting pattern:** + +```typescript +// common.module.ts - shared utilities +@Module({ + providers: [DateService, ValidationService], + exports: [DateService, ValidationService], +}) +export class CommonModule {} + +// core.module.ts - re-exports common for convenience +@Module({ + imports: [CommonModule, DatabaseModule], + exports: [CommonModule, DatabaseModule], // Re-export for consumers +}) +export class CoreModule {} + +// feature.module.ts - imports CoreModule, gets both +@Module({ + imports: [CoreModule], // Gets CommonModule + DatabaseModule + controllers: [FeatureController], +}) +export class FeatureModule {} +``` + +Reference: [NestJS Modules](https://docs.nestjs.com/modules#shared-modules) diff --git a/.agents/skills/nestjs-best-practices/rules/arch-single-responsibility.md b/.agents/skills/nestjs-best-practices/rules/arch-single-responsibility.md new file mode 100644 index 000000000..6ffc46eb2 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/arch-single-responsibility.md @@ -0,0 +1,106 @@ +--- +title: Single Responsibility for Services +impact: CRITICAL +impactDescription: "40%+ improvement in testability" +tags: architecture, services, single-responsibility +--- + +## Single Responsibility for Services + +Each service should have a single, well-defined responsibility. Avoid "god services" that handle multiple unrelated concerns. If a service name includes "And" or handles more than one domain concept, it likely violates single responsibility. This reduces complexity and improves testability by 40%+. + +**Incorrect (god service anti-pattern):** + +```typescript +// God service anti-pattern +@Injectable() +export class UserAndOrderService { + constructor( + private userRepo: UserRepository, + private orderRepo: OrderRepository, + private mailer: MailService, + private payment: PaymentService, + ) {} + + async createUser(dto: CreateUserDto) { + const user = await this.userRepo.save(dto); + await this.mailer.sendWelcome(user); + return user; + } + + async createOrder(userId: string, dto: CreateOrderDto) { + const order = await this.orderRepo.save({ userId, ...dto }); + await this.payment.charge(order); + await this.mailer.sendOrderConfirmation(order); + return order; + } + + async calculateOrderStats(userId: string) { + // Stats logic mixed in + } + + async validatePayment(orderId: string) { + // Payment logic mixed in + } +} +``` + +**Correct (focused services with single responsibility):** + +```typescript +// Focused services with single responsibility +@Injectable() +export class UsersService { + constructor(private userRepo: UserRepository) {} + + async create(dto: CreateUserDto): Promise { + return this.userRepo.save(dto); + } + + async findById(id: string): Promise { + return this.userRepo.findOneOrFail({ where: { id } }); + } +} + +@Injectable() +export class OrdersService { + constructor(private orderRepo: OrderRepository) {} + + async create(userId: string, dto: CreateOrderDto): Promise { + return this.orderRepo.save({ userId, ...dto }); + } + + async findByUser(userId: string): Promise { + return this.orderRepo.find({ where: { userId } }); + } +} + +@Injectable() +export class OrderStatsService { + constructor(private orderRepo: OrderRepository) {} + + async calculateForUser(userId: string): Promise { + // Focused stats calculation + } +} + +// Orchestration in controller or dedicated orchestrator +@Controller('orders') +export class OrdersController { + constructor( + private orders: OrdersService, + private payment: PaymentService, + private notifications: NotificationService, + ) {} + + @Post() + async create(@CurrentUser() user: User, @Body() dto: CreateOrderDto) { + const order = await this.orders.create(user.id, dto); + await this.payment.charge(order); + await this.notifications.sendOrderConfirmation(order); + return order; + } +} +``` + +Reference: [NestJS Providers](https://docs.nestjs.com/providers) diff --git a/.agents/skills/nestjs-best-practices/rules/arch-use-events.md b/.agents/skills/nestjs-best-practices/rules/arch-use-events.md new file mode 100644 index 000000000..f8cda270f --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/arch-use-events.md @@ -0,0 +1,108 @@ +--- +title: Use Event-Driven Architecture for Decoupling +impact: MEDIUM-HIGH +impactDescription: Enables async processing and modularity +tags: architecture, events, decoupling +--- + +## Use Event-Driven Architecture for Decoupling + +Use `@nestjs/event-emitter` for intra-service events and message brokers for inter-service communication. Events allow modules to react to changes without direct dependencies, improving modularity and enabling async processing. + +**Incorrect (direct service coupling):** + +```typescript +// Direct service coupling +@Injectable() +export class OrdersService { + constructor( + private inventoryService: InventoryService, + private emailService: EmailService, + private analyticsService: AnalyticsService, + private notificationService: NotificationService, + private loyaltyService: LoyaltyService, + ) {} + + async createOrder(dto: CreateOrderDto): Promise { + const order = await this.repo.save(dto); + + // Tight coupling - OrdersService knows about all consumers + await this.inventoryService.reserve(order.items); + await this.emailService.sendConfirmation(order); + await this.analyticsService.track('order_created', order); + await this.notificationService.push(order.userId, 'Order placed'); + await this.loyaltyService.addPoints(order.userId, order.total); + + // Adding new behavior requires modifying this service + return order; + } +} +``` + +**Correct (event-driven decoupling):** + +```typescript +// Use EventEmitter for decoupling +import { EventEmitter2 } from '@nestjs/event-emitter'; + +// Define event +export class OrderCreatedEvent { + constructor( + public readonly orderId: string, + public readonly userId: string, + public readonly items: OrderItem[], + public readonly total: number, + ) {} +} + +// Service emits events +@Injectable() +export class OrdersService { + constructor( + private eventEmitter: EventEmitter2, + private repo: Repository, + ) {} + + async createOrder(dto: CreateOrderDto): Promise { + const order = await this.repo.save(dto); + + // Emit event - no knowledge of consumers + this.eventEmitter.emit( + 'order.created', + new OrderCreatedEvent(order.id, order.userId, order.items, order.total), + ); + + return order; + } +} + +// Listeners in separate modules +@Injectable() +export class InventoryListener { + @OnEvent('order.created') + async handleOrderCreated(event: OrderCreatedEvent): Promise { + await this.inventoryService.reserve(event.items); + } +} + +@Injectable() +export class EmailListener { + @OnEvent('order.created') + async handleOrderCreated(event: OrderCreatedEvent): Promise { + await this.emailService.sendConfirmation(event.orderId); + } +} + +@Injectable() +export class AnalyticsListener { + @OnEvent('order.created') + async handleOrderCreated(event: OrderCreatedEvent): Promise { + await this.analyticsService.track('order_created', { + orderId: event.orderId, + total: event.total, + }); + } +} +``` + +Reference: [NestJS Events](https://docs.nestjs.com/techniques/events) diff --git a/.agents/skills/nestjs-best-practices/rules/arch-use-repository-pattern.md b/.agents/skills/nestjs-best-practices/rules/arch-use-repository-pattern.md new file mode 100644 index 000000000..75df38101 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/arch-use-repository-pattern.md @@ -0,0 +1,97 @@ +--- +title: Use Repository Pattern for Data Access +impact: HIGH +impactDescription: Decouples business logic from database +tags: architecture, repository, data-access +--- + +## Use Repository Pattern for Data Access + +Create custom repositories to encapsulate complex queries and database logic. This keeps services focused on business logic, makes testing easier with mock repositories, and allows changing database implementations without affecting business code. + +**Incorrect (complex queries in services):** + +```typescript +// Complex queries in services +@Injectable() +export class UsersService { + constructor( + @InjectRepository(User) private repo: Repository, + ) {} + + async findActiveWithOrders(minOrders: number): Promise { + // Complex query logic mixed with business logic + return this.repo + .createQueryBuilder('user') + .leftJoinAndSelect('user.orders', 'order') + .where('user.isActive = :active', { active: true }) + .andWhere('user.deletedAt IS NULL') + .groupBy('user.id') + .having('COUNT(order.id) >= :min', { min: minOrders }) + .orderBy('user.createdAt', 'DESC') + .getMany(); + } + + // Service becomes bloated with query logic +} +``` + +**Correct (custom repository with encapsulated queries):** + +```typescript +// Custom repository with encapsulated queries +@Injectable() +export class UsersRepository { + constructor( + @InjectRepository(User) private repo: Repository, + ) {} + + async findById(id: string): Promise { + return this.repo.findOne({ where: { id } }); + } + + async findByEmail(email: string): Promise { + return this.repo.findOne({ where: { email } }); + } + + async findActiveWithMinOrders(minOrders: number): Promise { + return this.repo + .createQueryBuilder('user') + .leftJoinAndSelect('user.orders', 'order') + .where('user.isActive = :active', { active: true }) + .andWhere('user.deletedAt IS NULL') + .groupBy('user.id') + .having('COUNT(order.id) >= :min', { min: minOrders }) + .orderBy('user.createdAt', 'DESC') + .getMany(); + } + + async save(user: User): Promise { + return this.repo.save(user); + } +} + +// Clean service with business logic only +@Injectable() +export class UsersService { + constructor(private usersRepo: UsersRepository) {} + + async getActiveUsersWithOrders(): Promise { + return this.usersRepo.findActiveWithMinOrders(1); + } + + async create(dto: CreateUserDto): Promise { + const existing = await this.usersRepo.findByEmail(dto.email); + if (existing) { + throw new ConflictException('Email already registered'); + } + + const user = new User(); + user.email = dto.email; + user.name = dto.name; + return this.usersRepo.save(user); + } +} +``` + +Reference: [Repository Pattern](https://martinfowler.com/eaaCatalog/repository.html) diff --git a/.agents/skills/nestjs-best-practices/rules/db-avoid-n-plus-one.md b/.agents/skills/nestjs-best-practices/rules/db-avoid-n-plus-one.md new file mode 100644 index 000000000..a93ec4b59 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/db-avoid-n-plus-one.md @@ -0,0 +1,139 @@ +--- +title: Avoid N+1 Query Problems +impact: HIGH +impactDescription: N+1 queries are one of the most common performance killers +tags: database, n-plus-one, queries, performance +--- + +## Avoid N+1 Query Problems + +N+1 queries occur when you fetch a list of entities, then make an additional query for each entity to load related data. Use eager loading with `relations`, query builder joins, or DataLoader to batch queries efficiently. + +**Incorrect (lazy loading in loops causes N+1):** + +```typescript +// Lazy loading in loops causes N+1 +@Injectable() +export class OrdersService { + async getOrdersWithItems(userId: string): Promise { + const orders = await this.orderRepo.find({ where: { userId } }); + // 1 query for orders + + for (const order of orders) { + // N additional queries - one per order! + order.items = await this.itemRepo.find({ where: { orderId: order.id } }); + } + + return orders; + } +} + +// Accessing lazy relations without loading +@Controller('users') +export class UsersController { + @Get() + async findAll(): Promise { + const users = await this.userRepo.find(); + // If User.posts is lazy-loaded, serializing triggers N queries + return users; // Each user.posts access = 1 query + } +} +``` + +**Correct (use relations for eager loading):** + +```typescript +// Use relations option for eager loading +@Injectable() +export class OrdersService { + async getOrdersWithItems(userId: string): Promise { + // Single query with JOIN + return this.orderRepo.find({ + where: { userId }, + relations: ['items', 'items.product'], + }); + } +} + +// Use QueryBuilder for complex joins +@Injectable() +export class UsersService { + async getUsersWithPostCounts(): Promise { + return this.userRepo + .createQueryBuilder('user') + .leftJoin('user.posts', 'post') + .select('user.id', 'id') + .addSelect('user.name', 'name') + .addSelect('COUNT(post.id)', 'postCount') + .groupBy('user.id') + .getRawMany(); + } + + async getActiveUsersWithPosts(): Promise { + return this.userRepo + .createQueryBuilder('user') + .leftJoinAndSelect('user.posts', 'post') + .leftJoinAndSelect('post.comments', 'comment') + .where('user.isActive = :active', { active: true }) + .andWhere('post.status = :status', { status: 'published' }) + .getMany(); + } +} + +// Use find options for specific fields +async getOrderSummaries(userId: string): Promise { + return this.orderRepo.find({ + where: { userId }, + relations: ['items'], + select: { + id: true, + total: true, + status: true, + items: { + id: true, + quantity: true, + price: true, + }, + }, + }); +} + +// Use DataLoader for GraphQL to batch and cache queries +import DataLoader from 'dataloader'; + +@Injectable({ scope: Scope.REQUEST }) +export class PostsLoader { + constructor(private postsService: PostsService) {} + + readonly batchPosts = new DataLoader(async (userIds) => { + // Single query for all users' posts + const posts = await this.postsService.findByUserIds([...userIds]); + + // Group by userId + const postsMap = new Map(); + for (const post of posts) { + const userPosts = postsMap.get(post.userId) || []; + userPosts.push(post); + postsMap.set(post.userId, userPosts); + } + + // Return in same order as input + return userIds.map((id) => postsMap.get(id) || []); + }); +} + +// In resolver +@ResolveField() +async posts(@Parent() user: User): Promise { + // DataLoader batches multiple calls into single query + return this.postsLoader.batchPosts.load(user.id); +} + +// Enable query logging in development to detect N+1 +TypeOrmModule.forRoot({ + logging: ['query', 'error'], + logger: 'advanced-console', +}); +``` + +Reference: [TypeORM Relations](https://typeorm.io/relations) diff --git a/.agents/skills/nestjs-best-practices/rules/db-use-migrations.md b/.agents/skills/nestjs-best-practices/rules/db-use-migrations.md new file mode 100644 index 000000000..4c3b72408 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/db-use-migrations.md @@ -0,0 +1,129 @@ +--- +title: Use Database Migrations +impact: HIGH +impactDescription: Enables safe, repeatable database schema changes +tags: database, migrations, typeorm, schema +--- + +## Use Database Migrations + +Never use `synchronize: true` in production. Use migrations for all schema changes. Migrations provide version control for your database, enable safe rollbacks, and ensure consistency across all environments. + +**Incorrect (using synchronize or manual SQL):** + +```typescript +// Use synchronize in production +TypeOrmModule.forRoot({ + type: 'postgres', + synchronize: true, // DANGEROUS in production! + // Can drop columns, tables, or data +}); + +// Manual SQL in production +@Injectable() +export class DatabaseService { + async addColumn(): Promise { + await this.dataSource.query('ALTER TABLE users ADD COLUMN age INT'); + // No version control, no rollback, inconsistent across envs + } +} + +// Modify entities without migration +@Entity() +export class User { + @Column() + email: string; + + @Column() // Added without migration + newField: string; // Will crash in production if synchronize is false +} +``` + +**Correct (use migrations for all schema changes):** + +```typescript +// Configure TypeORM for migrations +// data-source.ts +export const dataSource = new DataSource({ + type: 'postgres', + host: process.env.DB_HOST, + port: parseInt(process.env.DB_PORT), + username: process.env.DB_USERNAME, + password: process.env.DB_PASSWORD, + database: process.env.DB_NAME, + entities: ['dist/**/*.entity.js'], + migrations: ['dist/migrations/*.js'], + synchronize: false, // Always false in production + migrationsRun: true, // Run migrations on startup +}); + +// app.module.ts +TypeOrmModule.forRootAsync({ + inject: [ConfigService], + useFactory: (config: ConfigService) => ({ + type: 'postgres', + host: config.get('DB_HOST'), + synchronize: config.get('NODE_ENV') === 'development', // Only in dev + migrations: ['dist/migrations/*.js'], + migrationsRun: true, + }), +}); + +// migrations/1705312800000-AddUserAge.ts +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class AddUserAge1705312800000 implements MigrationInterface { + name = 'AddUserAge1705312800000'; + + public async up(queryRunner: QueryRunner): Promise { + // Add column with default to handle existing rows + await queryRunner.query(` + ALTER TABLE "users" ADD "age" integer DEFAULT 0 + `); + + // Add index for frequently queried columns + await queryRunner.query(` + CREATE INDEX "IDX_users_age" ON "users" ("age") + `); + } + + public async down(queryRunner: QueryRunner): Promise { + // Always implement down for rollback + await queryRunner.query(`DROP INDEX "IDX_users_age"`); + await queryRunner.query(`ALTER TABLE "users" DROP COLUMN "age"`); + } +} + +// Safe column rename (two-step) +export class RenameNameToFullName1705312900000 implements MigrationInterface { + public async up(queryRunner: QueryRunner): Promise { + // Step 1: Add new column + await queryRunner.query(` + ALTER TABLE "users" ADD "full_name" varchar(255) + `); + + // Step 2: Copy data + await queryRunner.query(` + UPDATE "users" SET "full_name" = "name" + `); + + // Step 3: Add NOT NULL constraint + await queryRunner.query(` + ALTER TABLE "users" ALTER COLUMN "full_name" SET NOT NULL + `); + + // Step 4: Drop old column (after verifying app works) + await queryRunner.query(` + ALTER TABLE "users" DROP COLUMN "name" + `); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "users" ADD "name" varchar(255)`); + await queryRunner.query(`UPDATE "users" SET "name" = "full_name"`); + await queryRunner.query(`ALTER TABLE "users" DROP COLUMN "full_name"`); + } +} +``` + +Reference: [TypeORM Migrations](https://typeorm.io/migrations) diff --git a/.agents/skills/nestjs-best-practices/rules/db-use-transactions.md b/.agents/skills/nestjs-best-practices/rules/db-use-transactions.md new file mode 100644 index 000000000..543bf974f --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/db-use-transactions.md @@ -0,0 +1,140 @@ +--- +title: Use Transactions for Multi-Step Operations +impact: HIGH +impactDescription: Ensures data consistency in multi-step operations +tags: database, transactions, typeorm, consistency +--- + +## Use Transactions for Multi-Step Operations + +When multiple database operations must succeed or fail together, wrap them in a transaction. This prevents partial updates that leave your data in an inconsistent state. Use TypeORM's transaction APIs or the DataSource query runner for complex scenarios. + +**Incorrect (multiple saves without transaction):** + +```typescript +// Multiple saves without transaction +@Injectable() +export class OrdersService { + async createOrder(userId: string, items: OrderItem[]): Promise { + // If any step fails, data is inconsistent + const order = await this.orderRepo.save({ userId, status: 'pending' }); + + for (const item of items) { + await this.orderItemRepo.save({ orderId: order.id, ...item }); + await this.inventoryRepo.decrement({ productId: item.productId }, 'stock', item.quantity); + } + + await this.paymentService.charge(order.id); + // If payment fails, order and inventory are already modified! + + return order; + } +} +``` + +**Correct (use DataSource.transaction for automatic rollback):** + +```typescript +// Use DataSource.transaction() for automatic rollback +@Injectable() +export class OrdersService { + constructor(private dataSource: DataSource) {} + + async createOrder(userId: string, items: OrderItem[]): Promise { + return this.dataSource.transaction(async (manager) => { + // All operations use the same transactional manager + const order = await manager.save(Order, { userId, status: 'pending' }); + + for (const item of items) { + await manager.save(OrderItem, { orderId: order.id, ...item }); + await manager.decrement( + Inventory, + { productId: item.productId }, + 'stock', + item.quantity, + ); + } + + // If this throws, everything rolls back + await this.paymentService.chargeWithManager(manager, order.id); + + return order; + }); + } +} + +// QueryRunner for manual transaction control +@Injectable() +export class TransferService { + constructor(private dataSource: DataSource) {} + + async transfer(fromId: string, toId: string, amount: number): Promise { + const queryRunner = this.dataSource.createQueryRunner(); + await queryRunner.connect(); + await queryRunner.startTransaction(); + + try { + // Debit source account + await queryRunner.manager.decrement( + Account, + { id: fromId }, + 'balance', + amount, + ); + + // Verify sufficient funds + const source = await queryRunner.manager.findOne(Account, { + where: { id: fromId }, + }); + if (source.balance < 0) { + throw new BadRequestException('Insufficient funds'); + } + + // Credit destination account + await queryRunner.manager.increment( + Account, + { id: toId }, + 'balance', + amount, + ); + + // Log the transaction + await queryRunner.manager.save(TransactionLog, { + fromId, + toId, + amount, + timestamp: new Date(), + }); + + await queryRunner.commitTransaction(); + } catch (error) { + await queryRunner.rollbackTransaction(); + throw error; + } finally { + await queryRunner.release(); + } + } +} + +// Repository method with transaction support +@Injectable() +export class UsersRepository { + constructor( + @InjectRepository(User) private repo: Repository, + private dataSource: DataSource, + ) {} + + async createWithProfile( + userData: CreateUserDto, + profileData: CreateProfileDto, + ): Promise { + return this.dataSource.transaction(async (manager) => { + const user = await manager.save(User, userData); + await manager.save(Profile, { ...profileData, userId: user.id }); + return user; + }); + } +} +``` + +Reference: [TypeORM Transactions](https://typeorm.io/transactions) diff --git a/.agents/skills/nestjs-best-practices/rules/devops-graceful-shutdown.md b/.agents/skills/nestjs-best-practices/rules/devops-graceful-shutdown.md new file mode 100644 index 000000000..b3b18f820 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/devops-graceful-shutdown.md @@ -0,0 +1,222 @@ +--- +title: Implement Graceful Shutdown +impact: MEDIUM-HIGH +impactDescription: Proper shutdown handling ensures zero-downtime deployments +tags: devops, graceful-shutdown, lifecycle, kubernetes +--- + +## Implement Graceful Shutdown + +Handle SIGTERM and SIGINT signals to gracefully shutdown your NestJS application. Stop accepting new requests, wait for in-flight requests to complete, close database connections, and clean up resources. This prevents data loss and connection errors during deployments. + +**Incorrect (ignoring shutdown signals):** + +```typescript +// Ignore shutdown signals +async function bootstrap() { + const app = await NestFactory.create(AppModule); + await app.listen(3000); + // App crashes immediately on SIGTERM + // In-flight requests fail + // Database connections are abruptly closed +} + +// Long-running tasks without cancellation +@Injectable() +export class ProcessingService { + async processLargeFile(file: File): Promise { + // No way to interrupt this during shutdown + for (let i = 0; i < file.chunks.length; i++) { + await this.processChunk(file.chunks[i]); + // May run for minutes, blocking shutdown + } + } +} +``` + +**Correct (enable shutdown hooks and handle cleanup):** + +```typescript +// Enable shutdown hooks in main.ts +async function bootstrap() { + const app = await NestFactory.create(AppModule); + + // Enable shutdown hooks + app.enableShutdownHooks(); + + // Optional: Add timeout for forced shutdown + const server = await app.listen(3000); + server.setTimeout(30000); // 30 second timeout + + // Handle graceful shutdown + const signals = ['SIGTERM', 'SIGINT']; + signals.forEach((signal) => { + process.on(signal, async () => { + console.log(`Received ${signal}, starting graceful shutdown...`); + + // Stop accepting new connections + server.close(async () => { + console.log('HTTP server closed'); + await app.close(); + process.exit(0); + }); + + // Force exit after timeout + setTimeout(() => { + console.error('Forced shutdown after timeout'); + process.exit(1); + }, 30000); + }); + }); +} + +// Lifecycle hooks for cleanup +@Injectable() +export class DatabaseService implements OnApplicationShutdown { + private readonly connections: Connection[] = []; + + async onApplicationShutdown(signal?: string): Promise { + console.log(`Database service shutting down on ${signal}`); + + // Close all connections gracefully + await Promise.all( + this.connections.map((conn) => conn.close()), + ); + + console.log('All database connections closed'); + } +} + +// Queue processor with graceful shutdown +@Injectable() +export class QueueService implements OnApplicationShutdown, OnModuleDestroy { + private isShuttingDown = false; + + onModuleDestroy(): void { + this.isShuttingDown = true; + } + + async onApplicationShutdown(): Promise { + // Wait for current jobs to complete + await this.queue.close(); + } + + async processJob(job: Job): Promise { + if (this.isShuttingDown) { + throw new Error('Service is shutting down'); + } + await this.doWork(job); + } +} + +// WebSocket gateway cleanup +@WebSocketGateway() +export class EventsGateway implements OnApplicationShutdown { + @WebSocketServer() + server: Server; + + async onApplicationShutdown(): Promise { + // Notify all connected clients + this.server.emit('shutdown', { message: 'Server is shutting down' }); + + // Close all connections + this.server.disconnectSockets(); + } +} + +// Health check integration +@Injectable() +export class ShutdownService { + private isShuttingDown = false; + + startShutdown(): void { + this.isShuttingDown = true; + } + + isShutdown(): boolean { + return this.isShuttingDown; + } +} + +@Controller('health') +export class HealthController { + constructor(private shutdownService: ShutdownService) {} + + @Get('ready') + @HealthCheck() + readiness(): Promise { + // Return 503 during shutdown - k8s stops sending traffic + if (this.shutdownService.isShutdown()) { + throw new ServiceUnavailableException('Shutting down'); + } + + return this.health.check([ + () => this.db.pingCheck('database'), + ]); + } +} + +// Integrate with shutdown +@Injectable() +export class AppShutdownService implements OnApplicationShutdown { + constructor(private shutdownService: ShutdownService) {} + + async onApplicationShutdown(): Promise { + // Mark as unhealthy first + this.shutdownService.startShutdown(); + + // Wait for k8s to update endpoints + await this.sleep(5000); + + // Then proceed with cleanup + } +} + +// Request tracking for in-flight requests +@Injectable() +export class RequestTracker implements NestMiddleware, OnApplicationShutdown { + private activeRequests = 0; + private isShuttingDown = false; + private shutdownPromise: Promise | null = null; + private resolveShutdown: (() => void) | null = null; + + use(req: Request, res: Response, next: NextFunction): void { + if (this.isShuttingDown) { + res.status(503).send('Service Unavailable'); + return; + } + + this.activeRequests++; + + res.on('finish', () => { + this.activeRequests--; + if (this.isShuttingDown && this.activeRequests === 0 && this.resolveShutdown) { + this.resolveShutdown(); + } + }); + + next(); + } + + async onApplicationShutdown(): Promise { + this.isShuttingDown = true; + + if (this.activeRequests > 0) { + console.log(`Waiting for ${this.activeRequests} requests to complete`); + this.shutdownPromise = new Promise((resolve) => { + this.resolveShutdown = resolve; + }); + + // Wait with timeout + await Promise.race([ + this.shutdownPromise, + new Promise((resolve) => setTimeout(resolve, 30000)), + ]); + } + + console.log('All requests completed'); + } +} +``` + +Reference: [NestJS Lifecycle Events](https://docs.nestjs.com/fundamentals/lifecycle-events) diff --git a/.agents/skills/nestjs-best-practices/rules/devops-use-config-module.md b/.agents/skills/nestjs-best-practices/rules/devops-use-config-module.md new file mode 100644 index 000000000..a9483dedf --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/devops-use-config-module.md @@ -0,0 +1,167 @@ +--- +title: Use ConfigModule for Environment Configuration +impact: LOW-MEDIUM +impactDescription: Proper configuration prevents deployment failures +tags: devops, configuration, environment, validation +--- + +## Use ConfigModule for Environment Configuration + +Use `@nestjs/config` for environment-based configuration. Validate configuration at startup to fail fast on misconfigurations. Use namespaced configuration for organization and type safety. + +**Incorrect (accessing process.env directly):** + +```typescript +// Access process.env directly +@Injectable() +export class DatabaseService { + constructor() { + // No validation, can fail at runtime + this.connection = new Pool({ + host: process.env.DB_HOST, + port: parseInt(process.env.DB_PORT), // NaN if missing + password: process.env.DB_PASSWORD, // undefined if missing + }); + } +} + +// Scattered env access +@Injectable() +export class EmailService { + sendEmail() { + // Different services access env differently + const apiKey = process.env.SENDGRID_API_KEY || 'default'; + // Typos go unnoticed: process.env.SENDGRID_API_KY + } +} +``` + +**Correct (use @nestjs/config with validation):** + +```typescript +// Setup validated configuration +import { ConfigModule, ConfigService, registerAs } from '@nestjs/config'; +import * as Joi from 'joi'; + +// config/database.config.ts +export const databaseConfig = registerAs('database', () => ({ + host: process.env.DB_HOST, + port: parseInt(process.env.DB_PORT, 10), + username: process.env.DB_USERNAME, + password: process.env.DB_PASSWORD, + database: process.env.DB_NAME, +})); + +// config/app.config.ts +export const appConfig = registerAs('app', () => ({ + port: parseInt(process.env.PORT, 10) || 3000, + environment: process.env.NODE_ENV || 'development', + apiPrefix: process.env.API_PREFIX || 'api', +})); + +// config/validation.schema.ts +export const validationSchema = Joi.object({ + NODE_ENV: Joi.string() + .valid('development', 'production', 'test') + .default('development'), + PORT: Joi.number().default(3000), + DB_HOST: Joi.string().required(), + DB_PORT: Joi.number().default(5432), + DB_USERNAME: Joi.string().required(), + DB_PASSWORD: Joi.string().required(), + DB_NAME: Joi.string().required(), + JWT_SECRET: Joi.string().min(32).required(), + REDIS_URL: Joi.string().uri().required(), +}); + +// app.module.ts +@Module({ + imports: [ + ConfigModule.forRoot({ + isGlobal: true, // Available everywhere without importing + load: [databaseConfig, appConfig], + validationSchema, + validationOptions: { + abortEarly: true, // Stop on first error + allowUnknown: true, // Allow other env vars + }, + }), + TypeOrmModule.forRootAsync({ + inject: [ConfigService], + useFactory: (config: ConfigService) => ({ + type: 'postgres', + host: config.get('database.host'), + port: config.get('database.port'), + username: config.get('database.username'), + password: config.get('database.password'), + database: config.get('database.database'), + autoLoadEntities: true, + }), + }), + ], +}) +export class AppModule {} + +// Type-safe configuration access +export interface AppConfig { + port: number; + environment: 'development' | 'production' | 'test'; + apiPrefix: string; +} + +export interface DatabaseConfig { + host: string; + port: number; + username: string; + password: string; + database: string; +} + +// Type-safe access +@Injectable() +export class AppService { + constructor(private config: ConfigService) {} + + getPort(): number { + // Type-safe with generic + return this.config.get('app.port'); + } + + getDatabaseConfig(): DatabaseConfig { + return this.config.get('database'); + } +} + +// Inject namespaced config directly +@Injectable() +export class DatabaseService { + constructor( + @Inject(databaseConfig.KEY) + private dbConfig: ConfigType, + ) { + // Full type inference! + const host = this.dbConfig.host; // string + const port = this.dbConfig.port; // number + } +} + +// Environment files support +ConfigModule.forRoot({ + envFilePath: [ + `.env.${process.env.NODE_ENV}.local`, + `.env.${process.env.NODE_ENV}`, + '.env.local', + '.env', + ], +}); + +// .env.development +// DB_HOST=localhost +// DB_PORT=5432 + +// .env.production +// DB_HOST=prod-db.example.com +// DB_PORT=5432 +``` + +Reference: [NestJS Configuration](https://docs.nestjs.com/techniques/configuration) diff --git a/.agents/skills/nestjs-best-practices/rules/devops-use-logging.md b/.agents/skills/nestjs-best-practices/rules/devops-use-logging.md new file mode 100644 index 000000000..5fb0162bd --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/devops-use-logging.md @@ -0,0 +1,232 @@ +--- +title: Use Structured Logging +impact: MEDIUM-HIGH +impactDescription: Structured logging enables effective debugging and monitoring +tags: devops, logging, structured-logs, pino +--- + +## Use Structured Logging + +Use NestJS Logger with structured JSON output in production. Include contextual information (request ID, user ID, operation) to trace requests across services. Avoid console.log and implement proper log levels. + +**Incorrect (using console.log in production):** + +```typescript +// Use console.log in production +@Injectable() +export class UsersService { + async createUser(dto: CreateUserDto): Promise { + console.log('Creating user:', dto); + // Not structured, no levels, lost in production logs + + try { + const user = await this.repo.save(dto); + console.log('User created:', user.id); + return user; + } catch (error) { + console.log('Error:', error); // Using log for errors + throw error; + } + } +} + +// Log sensitive data +console.log('Login attempt:', { email, password }); // SECURITY RISK! + +// Inconsistent log format +logger.log('User ' + userId + ' created at ' + new Date()); +// Hard to parse, no structure +``` + +**Correct (use structured logging with context):** + +```typescript +// Configure logger in main.ts +async function bootstrap() { + const app = await NestFactory.create(AppModule, { + logger: + process.env.NODE_ENV === 'production' + ? ['error', 'warn', 'log'] + : ['error', 'warn', 'log', 'debug', 'verbose'], + }); +} + +// Use NestJS Logger with context +@Injectable() +export class UsersService { + private readonly logger = new Logger(UsersService.name); + + async createUser(dto: CreateUserDto): Promise { + this.logger.log('Creating user', { email: dto.email }); + + try { + const user = await this.repo.save(dto); + this.logger.log('User created', { userId: user.id }); + return user; + } catch (error) { + this.logger.error('Failed to create user', error.stack, { + email: dto.email, + }); + throw error; + } + } +} + +// Custom logger for JSON output +@Injectable() +export class JsonLogger implements LoggerService { + log(message: string, context?: object): void { + console.log( + JSON.stringify({ + level: 'info', + timestamp: new Date().toISOString(), + message, + ...context, + }), + ); + } + + error(message: string, trace?: string, context?: object): void { + console.error( + JSON.stringify({ + level: 'error', + timestamp: new Date().toISOString(), + message, + trace, + ...context, + }), + ); + } + + warn(message: string, context?: object): void { + console.warn( + JSON.stringify({ + level: 'warn', + timestamp: new Date().toISOString(), + message, + ...context, + }), + ); + } + + debug(message: string, context?: object): void { + console.debug( + JSON.stringify({ + level: 'debug', + timestamp: new Date().toISOString(), + message, + ...context, + }), + ); + } +} + +// Request context logging with ClsModule +import { ClsModule, ClsService } from 'nestjs-cls'; + +@Module({ + imports: [ + ClsModule.forRoot({ + global: true, + middleware: { + mount: true, + generateId: true, + }, + }), + ], +}) +export class AppModule {} + +// Middleware to set request context +@Injectable() +export class RequestContextMiddleware implements NestMiddleware { + constructor(private cls: ClsService) {} + + use(req: Request, res: Response, next: NextFunction): void { + const requestId = req.headers['x-request-id'] || randomUUID(); + this.cls.set('requestId', requestId); + this.cls.set('userId', req.user?.id); + + res.setHeader('x-request-id', requestId); + next(); + } +} + +// Logger that includes request context +@Injectable() +export class ContextLogger { + constructor(private cls: ClsService) {} + + log(message: string, data?: object): void { + console.log( + JSON.stringify({ + level: 'info', + timestamp: new Date().toISOString(), + requestId: this.cls.get('requestId'), + userId: this.cls.get('userId'), + message, + ...data, + }), + ); + } + + error(message: string, error: Error, data?: object): void { + console.error( + JSON.stringify({ + level: 'error', + timestamp: new Date().toISOString(), + requestId: this.cls.get('requestId'), + userId: this.cls.get('userId'), + message, + error: error.message, + stack: error.stack, + ...data, + }), + ); + } +} + +// Pino integration for high-performance logging +import { LoggerModule } from 'nestjs-pino'; + +@Module({ + imports: [ + LoggerModule.forRoot({ + pinoHttp: { + level: process.env.NODE_ENV === 'production' ? 'info' : 'debug', + transport: + process.env.NODE_ENV !== 'production' + ? { target: 'pino-pretty' } + : undefined, + redact: ['req.headers.authorization', 'req.body.password'], + serializers: { + req: (req) => ({ + method: req.method, + url: req.url, + query: req.query, + }), + res: (res) => ({ + statusCode: res.statusCode, + }), + }, + }, + }), + ], +}) +export class AppModule {} + +// Usage with Pino +@Injectable() +export class UsersService { + constructor(private logger: PinoLogger) { + this.logger.setContext(UsersService.name); + } + + async findOne(id: string): Promise { + this.logger.info({ userId: id }, 'Finding user'); + // Pino uses first arg for data, second for message + } +} +``` + +Reference: [NestJS Logger](https://docs.nestjs.com/techniques/logger) diff --git a/.agents/skills/nestjs-best-practices/rules/di-avoid-service-locator.md b/.agents/skills/nestjs-best-practices/rules/di-avoid-service-locator.md new file mode 100644 index 000000000..d4c04b479 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/di-avoid-service-locator.md @@ -0,0 +1,104 @@ +--- +title: Avoid Service Locator Anti-Pattern +impact: HIGH +impactDescription: Hides dependencies and breaks testability +tags: dependency-injection, anti-patterns, testing +--- + +## Avoid Service Locator Anti-Pattern + +Avoid using `ModuleRef.get()` or global containers to resolve dependencies at runtime. This hides dependencies, makes code harder to test, and breaks the benefits of dependency injection. Use constructor injection instead. + +**Incorrect (service locator anti-pattern):** + +```typescript +// Use ModuleRef to get dependencies dynamically +@Injectable() +export class OrdersService { + constructor(private moduleRef: ModuleRef) {} + + async createOrder(dto: CreateOrderDto): Promise { + // Dependencies are hidden - not visible in constructor + const usersService = this.moduleRef.get(UsersService); + const inventoryService = this.moduleRef.get(InventoryService); + const paymentService = this.moduleRef.get(PaymentService); + + const user = await usersService.findOne(dto.userId); + // ... rest of logic + } +} + +// Global singleton container +class ServiceContainer { + private static instance: ServiceContainer; + private services = new Map(); + + static getInstance(): ServiceContainer { + if (!this.instance) { + this.instance = new ServiceContainer(); + } + return this.instance; + } + + get(key: string): T { + return this.services.get(key); + } +} +``` + +**Correct (constructor injection with explicit dependencies):** + +```typescript +// Use constructor injection - dependencies are explicit +@Injectable() +export class OrdersService { + constructor( + private usersService: UsersService, + private inventoryService: InventoryService, + private paymentService: PaymentService, + ) {} + + async createOrder(dto: CreateOrderDto): Promise { + const user = await this.usersService.findOne(dto.userId); + const inventory = await this.inventoryService.check(dto.items); + // Dependencies are clear and testable + } +} + +// Easy to test with mocks +describe('OrdersService', () => { + let service: OrdersService; + + beforeEach(async () => { + const module = await Test.createTestingModule({ + providers: [ + OrdersService, + { provide: UsersService, useValue: mockUsersService }, + { provide: InventoryService, useValue: mockInventoryService }, + { provide: PaymentService, useValue: mockPaymentService }, + ], + }).compile(); + + service = module.get(OrdersService); + }); +}); + +// VALID: Factory pattern for dynamic instantiation +@Injectable() +export class HandlerFactory { + constructor(private moduleRef: ModuleRef) {} + + getHandler(type: string): Handler { + switch (type) { + case 'email': + return this.moduleRef.get(EmailHandler); + case 'sms': + return this.moduleRef.get(SmsHandler); + default: + return this.moduleRef.get(DefaultHandler); + } + } +} +``` + +Reference: [NestJS Module Reference](https://docs.nestjs.com/fundamentals/module-ref) diff --git a/.agents/skills/nestjs-best-practices/rules/di-interface-segregation.md b/.agents/skills/nestjs-best-practices/rules/di-interface-segregation.md new file mode 100644 index 000000000..8c96cd814 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/di-interface-segregation.md @@ -0,0 +1,165 @@ +--- +title: Apply Interface Segregation Principle +impact: HIGH +impactDescription: Reduces coupling and improves testability by 30-50% +tags: dependency-injection, interfaces, solid, isp +--- + +## Apply Interface Segregation Principle + +Clients should not be forced to depend on interfaces they don't use. In NestJS, this means keeping interfaces small and focused on specific capabilities rather than creating "fat" interfaces that bundle unrelated methods. When a service only needs to send emails, it shouldn't depend on an interface that also includes SMS, push notifications, and logging. Split large interfaces into role-based ones. + +**Incorrect (fat interface forcing unused dependencies):** + +```typescript +// Fat interface - forces all consumers to depend on everything +interface NotificationService { + sendEmail(to: string, subject: string, body: string): Promise; + sendSms(phone: string, message: string): Promise; + sendPush(userId: string, notification: PushPayload): Promise; + sendSlack(channel: string, message: string): Promise; + logNotification(type: string, payload: any): Promise; + getDeliveryStatus(id: string): Promise; + retryFailed(id: string): Promise; + scheduleNotification(dto: ScheduleDto): Promise; +} + +// Consumer only needs email, but must mock everything for tests +@Injectable() +export class OrdersService { + constructor( + private notifications: NotificationService, // Depends on 8 methods, uses 1 + ) {} + + async confirmOrder(order: Order): Promise { + await this.notifications.sendEmail( + order.customer.email, + 'Order Confirmed', + `Your order ${order.id} has been confirmed.`, + ); + } +} + +// Testing is painful - must mock unused methods +const mockNotificationService = { + sendEmail: jest.fn(), + sendSms: jest.fn(), // Never used, but required + sendPush: jest.fn(), // Never used, but required + sendSlack: jest.fn(), // Never used, but required + logNotification: jest.fn(), // Never used, but required + getDeliveryStatus: jest.fn(), // Never used, but required + retryFailed: jest.fn(), // Never used, but required + scheduleNotification: jest.fn(), // Never used, but required +}; +``` + +**Correct (segregated interfaces by capability):** + +```typescript +// Segregated interfaces - each focused on one capability +interface EmailSender { + sendEmail(to: string, subject: string, body: string): Promise; +} + +interface SmsSender { + sendSms(phone: string, message: string): Promise; +} + +interface PushSender { + sendPush(userId: string, notification: PushPayload): Promise; +} + +interface NotificationLogger { + logNotification(type: string, payload: any): Promise; +} + +interface NotificationScheduler { + scheduleNotification(dto: ScheduleDto): Promise; +} + +// Implementation can implement multiple interfaces +@Injectable() +export class NotificationService implements EmailSender, SmsSender, PushSender { + async sendEmail(to: string, subject: string, body: string): Promise { + // Email implementation + } + + async sendSms(phone: string, message: string): Promise { + // SMS implementation + } + + async sendPush(userId: string, notification: PushPayload): Promise { + // Push implementation + } +} + +// Or separate implementations +@Injectable() +export class SendGridEmailService implements EmailSender { + async sendEmail(to: string, subject: string, body: string): Promise { + // SendGrid-specific implementation + } +} + +// Consumer depends only on what it needs +@Injectable() +export class OrdersService { + constructor( + @Inject(EMAIL_SENDER) private emailSender: EmailSender, // Minimal dependency + ) {} + + async confirmOrder(order: Order): Promise { + await this.emailSender.sendEmail( + order.customer.email, + 'Order Confirmed', + `Your order ${order.id} has been confirmed.`, + ); + } +} + +// Testing is simple - only mock what's used +const mockEmailSender: EmailSender = { + sendEmail: jest.fn(), +}; + +// Module registration with tokens +export const EMAIL_SENDER = Symbol('EMAIL_SENDER'); +export const SMS_SENDER = Symbol('SMS_SENDER'); + +@Module({ + providers: [ + { provide: EMAIL_SENDER, useClass: SendGridEmailService }, + { provide: SMS_SENDER, useClass: TwilioSmsService }, + ], + exports: [EMAIL_SENDER, SMS_SENDER], +}) +export class NotificationModule {} +``` + +**Combining interfaces when needed:** + +```typescript +// Sometimes a consumer legitimately needs multiple capabilities +interface EmailAndSmsSender extends EmailSender, SmsSender {} + +// Or use intersection types +type MultiChannelSender = EmailSender & SmsSender & PushSender; + +// Consumer that genuinely needs multiple channels +@Injectable() +export class AlertService { + constructor( + @Inject(MULTI_CHANNEL_SENDER) + private sender: EmailSender & SmsSender, + ) {} + + async sendCriticalAlert(user: User, message: string): Promise { + await Promise.all([ + this.sender.sendEmail(user.email, 'Critical Alert', message), + this.sender.sendSms(user.phone, message), + ]); + } +} +``` + +Reference: [Interface Segregation Principle](https://en.wikipedia.org/wiki/Interface_segregation_principle) diff --git a/.agents/skills/nestjs-best-practices/rules/di-liskov-substitution.md b/.agents/skills/nestjs-best-practices/rules/di-liskov-substitution.md new file mode 100644 index 000000000..d6701178d --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/di-liskov-substitution.md @@ -0,0 +1,221 @@ +--- +title: Honor Liskov Substitution Principle +impact: HIGH +impactDescription: Ensures implementations are truly interchangeable without breaking callers +tags: dependency-injection, inheritance, solid, lsp +--- + +## Honor Liskov Substitution Principle + +Subtypes must be substitutable for their base types without altering program correctness. In NestJS with dependency injection, this means any implementation of an interface or abstract class must honor the contract completely. A mock payment service used in tests must behave like a real payment service (return similar shapes, handle errors the same way). Violating LSP causes subtle bugs when swapping implementations. + +**Incorrect (implementation violates the contract):** + +```typescript +// Base interface with clear contract +interface PaymentGateway { + /** + * Charges the specified amount. + * @returns PaymentResult on success + * @throws PaymentFailedException on payment failure + */ + charge(amount: number, currency: string): Promise; +} + +// Production implementation - follows the contract +@Injectable() +export class StripeService implements PaymentGateway { + async charge(amount: number, currency: string): Promise { + const response = await this.stripe.charges.create({ amount, currency }); + return { success: true, transactionId: response.id, amount }; + } +} + +// Mock that violates LSP - different behavior! +@Injectable() +export class MockPaymentService implements PaymentGateway { + async charge(amount: number, currency: string): Promise { + // VIOLATION 1: Throws for valid input (contract says return PaymentResult) + if (amount > 1000) { + throw new Error('Mock does not support large amounts'); + } + + // VIOLATION 2: Returns null instead of PaymentResult + if (currency !== 'USD') { + return null as any; // Real service would convert or reject properly + } + + // VIOLATION 3: Missing required field + return { success: true } as PaymentResult; // Missing transactionId! + } +} + +// Consumer trusts the contract +@Injectable() +export class OrdersService { + constructor(@Inject(PAYMENT_GATEWAY) private payment: PaymentGateway) {} + + async checkout(order: Order): Promise { + const result = await this.payment.charge(order.total, order.currency); + // These fail with MockPaymentService: + await this.saveTransaction(result.transactionId); // undefined! + await this.sendReceipt(result); // might be null! + } +} +``` + +**Correct (implementations honor the contract):** + +```typescript +// Well-defined interface with documented behavior +interface PaymentGateway { + /** + * Charges the specified amount. + * @param amount - Amount in smallest currency unit (cents) + * @param currency - ISO 4217 currency code + * @returns PaymentResult with transactionId, success status, and amount + * @throws PaymentFailedException if charge is declined + * @throws InvalidCurrencyException if currency is not supported + */ + charge(amount: number, currency: string): Promise; + + /** + * Refunds a previous charge. + * @throws TransactionNotFoundException if transactionId is invalid + */ + refund(transactionId: string, amount?: number): Promise; +} + +// Production implementation +@Injectable() +export class StripeService implements PaymentGateway { + async charge(amount: number, currency: string): Promise { + try { + const response = await this.stripe.charges.create({ amount, currency }); + return { + success: true, + transactionId: response.id, + amount: response.amount, + }; + } catch (error) { + if (error.type === 'card_error') { + throw new PaymentFailedException(error.message); + } + throw error; + } + } + + async refund(transactionId: string, amount?: number): Promise { + // Implementation... + } +} + +// Mock that honors LSP - same contract, same behavior shape +@Injectable() +export class MockPaymentService implements PaymentGateway { + private transactions = new Map(); + + async charge(amount: number, currency: string): Promise { + // Honor the contract: validate currency like real service would + if (!['USD', 'EUR', 'GBP'].includes(currency)) { + throw new InvalidCurrencyException(`Unsupported currency: ${currency}`); + } + + // Simulate decline for specific test scenarios + if (amount === 99999) { + throw new PaymentFailedException('Card declined (test scenario)'); + } + + // Return same shape as production + const result: PaymentResult = { + success: true, + transactionId: `mock_${Date.now()}_${Math.random().toString(36)}`, + amount, + }; + + this.transactions.set(result.transactionId, result); + return result; + } + + async refund(transactionId: string, amount?: number): Promise { + // Honor the contract: throw if transaction not found + if (!this.transactions.has(transactionId)) { + throw new TransactionNotFoundException(transactionId); + } + + return { + success: true, + refundId: `refund_${transactionId}`, + amount: amount ?? this.transactions.get(transactionId)!.amount, + }; + } +} + +// Consumer can swap implementations safely +@Injectable() +export class OrdersService { + constructor(@Inject(PAYMENT_GATEWAY) private payment: PaymentGateway) {} + + async checkout(order: Order): Promise { + try { + const result = await this.payment.charge(order.total, order.currency); + // Works with both StripeService and MockPaymentService + order.transactionId = result.transactionId; + order.status = 'paid'; + return order; + } catch (error) { + if (error instanceof PaymentFailedException) { + order.status = 'payment_failed'; + return order; + } + throw error; + } + } +} +``` + +**Testing LSP compliance:** + +```typescript +// Shared test suite that any implementation must pass +function testPaymentGatewayContract( + createGateway: () => PaymentGateway, +) { + describe('PaymentGateway contract', () => { + let gateway: PaymentGateway; + + beforeEach(() => { + gateway = createGateway(); + }); + + it('returns PaymentResult with all required fields', async () => { + const result = await gateway.charge(1000, 'USD'); + expect(result).toHaveProperty('success'); + expect(result).toHaveProperty('transactionId'); + expect(result).toHaveProperty('amount'); + expect(typeof result.transactionId).toBe('string'); + }); + + it('throws InvalidCurrencyException for unsupported currency', async () => { + await expect(gateway.charge(1000, 'INVALID')) + .rejects.toThrow(InvalidCurrencyException); + }); + + it('throws TransactionNotFoundException for invalid refund', async () => { + await expect(gateway.refund('nonexistent')) + .rejects.toThrow(TransactionNotFoundException); + }); + }); +} + +// Run against all implementations +describe('StripeService', () => { + testPaymentGatewayContract(() => new StripeService(mockStripeClient)); +}); + +describe('MockPaymentService', () => { + testPaymentGatewayContract(() => new MockPaymentService()); +}); +``` + +Reference: [Liskov Substitution Principle](https://en.wikipedia.org/wiki/Liskov_substitution_principle) diff --git a/.agents/skills/nestjs-best-practices/rules/di-prefer-constructor-injection.md b/.agents/skills/nestjs-best-practices/rules/di-prefer-constructor-injection.md new file mode 100644 index 000000000..c4a3274c5 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/di-prefer-constructor-injection.md @@ -0,0 +1,86 @@ +--- +title: Prefer Constructor Injection +impact: CRITICAL +impactDescription: Required for proper DI and testing +tags: dependency-injection, constructor, testing +--- + +## Prefer Constructor Injection + +Always use constructor injection over property injection. Constructor injection makes dependencies explicit, enables TypeScript type checking, ensures dependencies are available when the class is instantiated, and improves testability. This is required for proper DI, testing, and TypeScript support. + +**Incorrect (property injection with hidden dependencies):** + +```typescript +// Property injection - avoid unless necessary +@Injectable() +export class UsersService { + @Inject() + private userRepo: UserRepository; // Hidden dependency + + @Inject('CONFIG') + private config: ConfigType; // Also hidden + + async findAll() { + return this.userRepo.find(); + } +} + +// Problems: +// 1. Dependencies not visible in constructor +// 2. Service can be instantiated without dependencies in tests +// 3. TypeScript can't enforce dependency types at instantiation +``` + +**Correct (constructor injection with explicit dependencies):** + +```typescript +// Constructor injection - explicit and testable +@Injectable() +export class UsersService { + constructor( + private readonly userRepo: UserRepository, + @Inject('CONFIG') private readonly config: ConfigType, + ) {} + + async findAll(): Promise { + return this.userRepo.find(); + } +} + +// Testing is straightforward +describe('UsersService', () => { + let service: UsersService; + let mockRepo: jest.Mocked; + + beforeEach(() => { + mockRepo = { + find: jest.fn(), + save: jest.fn(), + } as any; + + service = new UsersService(mockRepo, { dbUrl: 'test' }); + }); + + it('should find all users', async () => { + mockRepo.find.mockResolvedValue([{ id: '1', name: 'Test' }]); + const result = await service.findAll(); + expect(result).toHaveLength(1); + }); +}); + +// Only use property injection for optional dependencies +@Injectable() +export class LoggingService { + @Optional() + @Inject('ANALYTICS') + private analytics?: AnalyticsService; + + log(message: string) { + console.log(message); + this.analytics?.track('log', message); // Optional enhancement + } +} +``` + +Reference: [NestJS Providers](https://docs.nestjs.com/providers) diff --git a/.agents/skills/nestjs-best-practices/rules/di-scope-awareness.md b/.agents/skills/nestjs-best-practices/rules/di-scope-awareness.md new file mode 100644 index 000000000..a6c77efbd --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/di-scope-awareness.md @@ -0,0 +1,94 @@ +--- +title: Understand Provider Scopes +impact: CRITICAL +impactDescription: Prevents data leaks and performance issues +tags: dependency-injection, scopes, request-context +--- + +## Understand Provider Scopes + +NestJS has three provider scopes: DEFAULT (singleton), REQUEST (per-request instance), and TRANSIENT (new instance for each injection). Most providers should be singletons. Request-scoped providers have performance implications as they bubble up through the dependency tree. Understanding scopes prevents memory leaks and incorrect data sharing. + +**Incorrect (wrong scope usage):** + +```typescript +// Request-scoped when not needed (performance hit) +@Injectable({ scope: Scope.REQUEST }) +export class UsersService { + // This creates a new instance for EVERY request + // All dependencies also become request-scoped + async findAll() { + return this.userRepo.find(); + } +} + +// Singleton with mutable request state +@Injectable() // Default: singleton +export class RequestContextService { + private userId: string; // DANGER: Shared across all requests! + + setUser(userId: string) { + this.userId = userId; // Overwrites for all concurrent requests + } + + getUser() { + return this.userId; // Returns wrong user! + } +} +``` + +**Correct (appropriate scope for each use case):** + +```typescript +// Singleton for stateless services (default, most common) +@Injectable() +export class UsersService { + constructor(private readonly userRepo: UserRepository) {} + + async findById(id: string): Promise { + return this.userRepo.findOne({ where: { id } }); + } +} + +// Request-scoped ONLY when you need request context +@Injectable({ scope: Scope.REQUEST }) +export class RequestContextService { + private userId: string; + + setUser(userId: string) { + this.userId = userId; + } + + getUser(): string { + return this.userId; + } +} + +// Better: Use NestJS built-in request context +import { REQUEST } from '@nestjs/core'; +import { Request } from 'express'; + +@Injectable({ scope: Scope.REQUEST }) +export class AuditService { + constructor(@Inject(REQUEST) private request: Request) {} + + log(action: string) { + console.log(`User ${this.request.user?.id} performed ${action}`); + } +} + +// Best: Use ClsModule for async context (no scope bubble-up) +import { ClsService } from 'nestjs-cls'; + +@Injectable() // Stays singleton! +export class AuditService { + constructor(private cls: ClsService) {} + + log(action: string) { + const userId = this.cls.get('userId'); + console.log(`User ${userId} performed ${action}`); + } +} +``` + +Reference: [NestJS Injection Scopes](https://docs.nestjs.com/fundamentals/injection-scopes) diff --git a/.agents/skills/nestjs-best-practices/rules/di-use-interfaces-tokens.md b/.agents/skills/nestjs-best-practices/rules/di-use-interfaces-tokens.md new file mode 100644 index 000000000..f5376a17f --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/di-use-interfaces-tokens.md @@ -0,0 +1,101 @@ +--- +title: Use Injection Tokens for Interfaces +impact: HIGH +impactDescription: Enables interface-based DI at runtime +tags: dependency-injection, tokens, interfaces +--- + +## Use Injection Tokens for Interfaces + +TypeScript interfaces are erased at compile time and can't be used as injection tokens. Use string tokens, symbols, or abstract classes when you want to inject implementations of interfaces. This enables swapping implementations for testing or different environments. + +**Incorrect (interface can't be used as token):** + +```typescript +// Interface can't be used as injection token +interface PaymentGateway { + charge(amount: number): Promise; +} + +@Injectable() +export class StripeService implements PaymentGateway { + charge(amount: number) { /* ... */ } +} + +@Injectable() +export class OrdersService { + // This WON'T work - PaymentGateway doesn't exist at runtime + constructor(private payment: PaymentGateway) {} +} +``` + +**Correct (symbol tokens or abstract classes):** + +```typescript +// Option 1: String/Symbol tokens (most flexible) +export const PAYMENT_GATEWAY = Symbol('PAYMENT_GATEWAY'); + +export interface PaymentGateway { + charge(amount: number): Promise; +} + +@Injectable() +export class StripeService implements PaymentGateway { + async charge(amount: number): Promise { + // Stripe implementation + } +} + +@Injectable() +export class MockPaymentService implements PaymentGateway { + async charge(amount: number): Promise { + return { success: true, id: 'mock-id' }; + } +} + +// Module registration +@Module({ + providers: [ + { + provide: PAYMENT_GATEWAY, + useClass: process.env.NODE_ENV === 'test' + ? MockPaymentService + : StripeService, + }, + ], + exports: [PAYMENT_GATEWAY], +}) +export class PaymentModule {} + +// Injection +@Injectable() +export class OrdersService { + constructor( + @Inject(PAYMENT_GATEWAY) private payment: PaymentGateway, + ) {} + + async createOrder(dto: CreateOrderDto) { + await this.payment.charge(dto.amount); + } +} + +// Option 2: Abstract class (carries runtime type info) +export abstract class PaymentGateway { + abstract charge(amount: number): Promise; +} + +@Injectable() +export class StripeService extends PaymentGateway { + async charge(amount: number): Promise { + // Implementation + } +} + +// No @Inject needed with abstract class +@Injectable() +export class OrdersService { + constructor(private payment: PaymentGateway) {} +} +``` + +Reference: [NestJS Custom Providers](https://docs.nestjs.com/fundamentals/custom-providers) diff --git a/.agents/skills/nestjs-best-practices/rules/error-handle-async-errors.md b/.agents/skills/nestjs-best-practices/rules/error-handle-async-errors.md new file mode 100644 index 000000000..36c3f6af3 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/error-handle-async-errors.md @@ -0,0 +1,125 @@ +--- +title: Handle Async Errors Properly +impact: HIGH +impactDescription: Prevents process crashes from unhandled rejections +tags: error-handling, async, promises +--- + +## Handle Async Errors Properly + +NestJS automatically catches errors from async route handlers, but errors from background tasks, event handlers, and manually created promises can crash your application. Always handle async errors explicitly and use global handlers as a safety net. + +**Incorrect (fire-and-forget without error handling):** + +```typescript +// Fire-and-forget without error handling +@Injectable() +export class UsersService { + async createUser(dto: CreateUserDto): Promise { + const user = await this.repo.save(dto); + + // Fire and forget - if this fails, error is unhandled! + this.emailService.sendWelcome(user.email); + + return user; + } +} + +// Unhandled promise in event handler +@Injectable() +export class OrdersService { + @OnEvent('order.created') + handleOrderCreated(event: OrderCreatedEvent) { + // This returns a promise but it's not awaited! + this.processOrder(event); + // Errors will crash the process + } + + private async processOrder(event: OrderCreatedEvent): Promise { + await this.inventoryService.reserve(event.items); + await this.notificationService.send(event.userId); + } +} + +// Missing try-catch in scheduled tasks +@Cron('0 0 * * *') +async dailyCleanup(): Promise { + await this.cleanupService.run(); + // If this throws, no error handling +} +``` + +**Correct (explicit async error handling):** + +```typescript +// Handle fire-and-forget with explicit catch +@Injectable() +export class UsersService { + private readonly logger = new Logger(UsersService.name); + + async createUser(dto: CreateUserDto): Promise { + const user = await this.repo.save(dto); + + // Explicitly catch and log errors + this.emailService.sendWelcome(user.email).catch((error) => { + this.logger.error('Failed to send welcome email', error.stack); + // Optionally queue for retry + }); + + return user; + } +} + +// Properly handle async event handlers +@Injectable() +export class OrdersService { + private readonly logger = new Logger(OrdersService.name); + + @OnEvent('order.created') + async handleOrderCreated(event: OrderCreatedEvent): Promise { + try { + await this.processOrder(event); + } catch (error) { + this.logger.error('Failed to process order', { event, error }); + // Don't rethrow - would crash the process + await this.deadLetterQueue.add('order.created', event); + } + } +} + +// Safe scheduled tasks +@Injectable() +export class CleanupService { + private readonly logger = new Logger(CleanupService.name); + + @Cron('0 0 * * *') + async dailyCleanup(): Promise { + try { + await this.cleanupService.run(); + this.logger.log('Daily cleanup completed'); + } catch (error) { + this.logger.error('Daily cleanup failed', error.stack); + // Alert or retry logic + } + } +} + +// Global unhandled rejection handler in main.ts +async function bootstrap() { + const app = await NestFactory.create(AppModule); + const logger = new Logger('Bootstrap'); + + process.on('unhandledRejection', (reason, promise) => { + logger.error('Unhandled Rejection at:', promise, 'reason:', reason); + }); + + process.on('uncaughtException', (error) => { + logger.error('Uncaught Exception:', error); + process.exit(1); + }); + + await app.listen(3000); +} +``` + +Reference: [Node.js Unhandled Rejections](https://nodejs.org/api/process.html#event-unhandledrejection) diff --git a/.agents/skills/nestjs-best-practices/rules/error-throw-http-exceptions.md b/.agents/skills/nestjs-best-practices/rules/error-throw-http-exceptions.md new file mode 100644 index 000000000..6aad9fa35 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/error-throw-http-exceptions.md @@ -0,0 +1,114 @@ +--- +title: Throw HTTP Exceptions from Services +impact: HIGH +impactDescription: Keeps controllers thin and simplifies error handling +tags: error-handling, exceptions, services +--- + +## Throw HTTP Exceptions from Services + +It's acceptable (and often preferable) to throw `HttpException` subclasses from services in HTTP applications. This keeps controllers thin and allows services to communicate appropriate error states. For truly layer-agnostic services, use domain exceptions that map to HTTP status codes. + +**Incorrect (return error objects instead of throwing):** + +```typescript +// Return error objects instead of throwing +@Injectable() +export class UsersService { + async findById(id: string): Promise<{ user?: User; error?: string }> { + const user = await this.repo.findOne({ where: { id } }); + if (!user) { + return { error: 'User not found' }; // Controller must check this + } + return { user }; + } +} + +@Controller('users') +export class UsersController { + @Get(':id') + async findOne(@Param('id') id: string) { + const result = await this.usersService.findById(id); + if (result.error) { + throw new NotFoundException(result.error); + } + return result.user; + } +} +``` + +**Correct (throw exceptions directly from service):** + +```typescript +// Throw exceptions directly from service +@Injectable() +export class UsersService { + constructor(private readonly repo: UserRepository) {} + + async findById(id: string): Promise { + const user = await this.repo.findOne({ where: { id } }); + if (!user) { + throw new NotFoundException(`User #${id} not found`); + } + return user; + } + + async create(dto: CreateUserDto): Promise { + const existing = await this.repo.findOne({ + where: { email: dto.email }, + }); + if (existing) { + throw new ConflictException('Email already registered'); + } + return this.repo.save(dto); + } + + async update(id: string, dto: UpdateUserDto): Promise { + const user = await this.findById(id); // Throws if not found + Object.assign(user, dto); + return this.repo.save(user); + } +} + +// Controller stays thin +@Controller('users') +export class UsersController { + @Get(':id') + findOne(@Param('id') id: string): Promise { + return this.usersService.findById(id); + } + + @Post() + create(@Body() dto: CreateUserDto): Promise { + return this.usersService.create(dto); + } +} + +// For layer-agnostic services, use domain exceptions +export class EntityNotFoundException extends Error { + constructor( + public readonly entity: string, + public readonly id: string, + ) { + super(`${entity} with ID "${id}" not found`); + } +} + +// Map to HTTP in exception filter +@Catch(EntityNotFoundException) +export class EntityNotFoundFilter implements ExceptionFilter { + catch(exception: EntityNotFoundException, host: ArgumentsHost) { + const ctx = host.switchToHttp(); + const response = ctx.getResponse(); + + response.status(404).json({ + statusCode: 404, + message: exception.message, + entity: exception.entity, + id: exception.id, + }); + } +} +``` + +Reference: [NestJS Exception Filters](https://docs.nestjs.com/exception-filters) diff --git a/.agents/skills/nestjs-best-practices/rules/error-use-exception-filters.md b/.agents/skills/nestjs-best-practices/rules/error-use-exception-filters.md new file mode 100644 index 000000000..635823a82 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/error-use-exception-filters.md @@ -0,0 +1,140 @@ +--- +title: Use Exception Filters for Error Handling +impact: HIGH +impactDescription: Consistent, centralized error handling +tags: error-handling, exception-filters, consistency +--- + +## Use Exception Filters for Error Handling + +Never catch exceptions and manually format error responses in controllers. Use NestJS exception filters to handle errors consistently across your application. Create custom exception filters for specific error types and a global filter for unhandled exceptions. + +**Incorrect (manual error handling in controllers):** + +```typescript +// Manual error handling in controllers +@Controller('users') +export class UsersController { + @Get(':id') + async findOne(@Param('id') id: string, @Res() res: Response) { + try { + const user = await this.usersService.findById(id); + if (!user) { + return res.status(404).json({ + statusCode: 404, + message: 'User not found', + }); + } + return res.json(user); + } catch (error) { + console.error(error); + return res.status(500).json({ + statusCode: 500, + message: 'Internal server error', + }); + } + } +} +``` + +**Correct (exception filters with consistent handling):** + +```typescript +// Use built-in and custom exceptions +@Controller('users') +export class UsersController { + @Get(':id') + async findOne(@Param('id') id: string): Promise { + const user = await this.usersService.findById(id); + if (!user) { + throw new NotFoundException(`User #${id} not found`); + } + return user; + } +} + +// Custom domain exception +export class UserNotFoundException extends NotFoundException { + constructor(userId: string) { + super({ + statusCode: 404, + error: 'Not Found', + message: `User with ID "${userId}" not found`, + code: 'USER_NOT_FOUND', + }); + } +} + +// Custom exception filter for domain errors +@Catch(DomainException) +export class DomainExceptionFilter implements ExceptionFilter { + catch(exception: DomainException, host: ArgumentsHost) { + const ctx = host.switchToHttp(); + const response = ctx.getResponse(); + const request = ctx.getRequest(); + + const status = exception.getStatus?.() || 400; + + response.status(status).json({ + statusCode: status, + code: exception.code, + message: exception.message, + timestamp: new Date().toISOString(), + path: request.url, + }); + } +} + +// Global exception filter for unhandled errors +@Catch() +export class AllExceptionsFilter implements ExceptionFilter { + constructor(private readonly logger: Logger) {} + + catch(exception: unknown, host: ArgumentsHost) { + const ctx = host.switchToHttp(); + const response = ctx.getResponse(); + const request = ctx.getRequest(); + + const status = + exception instanceof HttpException + ? exception.getStatus() + : HttpStatus.INTERNAL_SERVER_ERROR; + + const message = + exception instanceof HttpException + ? exception.message + : 'Internal server error'; + + this.logger.error( + `${request.method} ${request.url}`, + exception instanceof Error ? exception.stack : exception, + ); + + response.status(status).json({ + statusCode: status, + message, + timestamp: new Date().toISOString(), + path: request.url, + }); + } +} + +// Register globally in main.ts +app.useGlobalFilters( + new AllExceptionsFilter(app.get(Logger)), + new DomainExceptionFilter(), +); + +// Or via module +@Module({ + providers: [ + { + provide: APP_FILTER, + useClass: AllExceptionsFilter, + }, + ], +}) +export class AppModule {} +``` + +Reference: [NestJS Exception Filters](https://docs.nestjs.com/exception-filters) diff --git a/.agents/skills/nestjs-best-practices/rules/micro-use-health-checks.md b/.agents/skills/nestjs-best-practices/rules/micro-use-health-checks.md new file mode 100644 index 000000000..0b10d926d --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/micro-use-health-checks.md @@ -0,0 +1,226 @@ +--- +title: Implement Health Checks for Microservices +impact: MEDIUM-HIGH +impactDescription: Health checks enable orchestrators to manage service lifecycle +tags: microservices, health-checks, terminus, kubernetes +--- + +## Implement Health Checks for Microservices + +Implement liveness and readiness probes using `@nestjs/terminus`. Liveness checks determine if the service should be restarted. Readiness checks determine if the service can accept traffic. Proper health checks enable Kubernetes and load balancers to route traffic correctly. + +**Incorrect (simple ping that doesn't check dependencies):** + +```typescript +// Simple ping that doesn't check dependencies +@Controller('health') +export class HealthController { + @Get() + check(): string { + return 'OK'; // Service might be unhealthy but returns OK + } +} + +// Health check that blocks on slow dependencies +@Controller('health') +export class HealthController { + @Get() + async check(): Promise { + // If database is slow, health check times out + await this.userRepo.findOne({ where: { id: '1' } }); + await this.redis.ping(); + await this.externalApi.healthCheck(); + return 'OK'; + } +} +``` + +**Correct (use @nestjs/terminus for comprehensive health checks):** + +```typescript +// Use @nestjs/terminus for comprehensive health checks +import { + HealthCheckService, + HttpHealthIndicator, + TypeOrmHealthIndicator, + HealthCheck, + DiskHealthIndicator, + MemoryHealthIndicator, +} from '@nestjs/terminus'; + +@Controller('health') +export class HealthController { + constructor( + private health: HealthCheckService, + private http: HttpHealthIndicator, + private db: TypeOrmHealthIndicator, + private disk: DiskHealthIndicator, + private memory: MemoryHealthIndicator, + ) {} + + // Liveness probe - is the service alive? + @Get('live') + @HealthCheck() + liveness() { + return this.health.check([ + // Basic checks only + () => this.memory.checkHeap('memory_heap', 200 * 1024 * 1024), // 200MB + ]); + } + + // Readiness probe - can the service handle traffic? + @Get('ready') + @HealthCheck() + readiness() { + return this.health.check([ + () => this.db.pingCheck('database'), + () => + this.http.pingCheck('redis', 'http://redis:6379', { timeout: 1000 }), + () => + this.disk.checkStorage('disk', { path: '/', thresholdPercent: 0.9 }), + ]); + } + + // Deep health check for debugging + @Get('deep') + @HealthCheck() + deepCheck() { + return this.health.check([ + () => this.db.pingCheck('database'), + () => this.memory.checkHeap('memory_heap', 200 * 1024 * 1024), + () => this.memory.checkRSS('memory_rss', 300 * 1024 * 1024), + () => + this.disk.checkStorage('disk', { path: '/', thresholdPercent: 0.9 }), + () => + this.http.pingCheck('external-api', 'https://api.example.com/health'), + ]); + } +} + +// Custom indicator for business-specific health +@Injectable() +export class QueueHealthIndicator extends HealthIndicator { + constructor(private queueService: QueueService) { + super(); + } + + async isHealthy(key: string): Promise { + const queueStats = await this.queueService.getStats(); + + const isHealthy = queueStats.failedCount < 100; + const result = this.getStatus(key, isHealthy, { + waiting: queueStats.waitingCount, + active: queueStats.activeCount, + failed: queueStats.failedCount, + }); + + if (!isHealthy) { + throw new HealthCheckError('Queue unhealthy', result); + } + + return result; + } +} + +// Redis health indicator +@Injectable() +export class RedisHealthIndicator extends HealthIndicator { + constructor(@InjectRedis() private redis: Redis) { + super(); + } + + async isHealthy(key: string): Promise { + try { + const pong = await this.redis.ping(); + return this.getStatus(key, pong === 'PONG'); + } catch (error) { + throw new HealthCheckError('Redis check failed', this.getStatus(key, false)); + } + } +} + +// Use custom indicators +@Get('ready') +@HealthCheck() +readiness() { + return this.health.check([ + () => this.db.pingCheck('database'), + () => this.redis.isHealthy('redis'), + () => this.queue.isHealthy('job-queue'), + ]); +} + +// Graceful shutdown handling +@Injectable() +export class GracefulShutdownService implements OnApplicationShutdown { + private isShuttingDown = false; + + isShutdown(): boolean { + return this.isShuttingDown; + } + + async onApplicationShutdown(signal: string): Promise { + this.isShuttingDown = true; + console.log(`Shutting down on ${signal}`); + + // Wait for in-flight requests + await new Promise((resolve) => setTimeout(resolve, 5000)); + } +} + +// Health check respects shutdown state +@Get('ready') +@HealthCheck() +readiness() { + if (this.shutdownService.isShutdown()) { + throw new ServiceUnavailableException('Shutting down'); + } + + return this.health.check([ + () => this.db.pingCheck('database'), + ]); +} +``` + +### Kubernetes Configuration + +```yaml +# Kubernetes deployment with probes +apiVersion: apps/v1 +kind: Deployment +metadata: + name: api-service +spec: + template: + spec: + containers: + - name: api + image: api-service:latest + ports: + - containerPort: 3000 + livenessProbe: + httpGet: + path: /health/live + port: 3000 + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 3 + readinessProbe: + httpGet: + path: /health/ready + port: 3000 + initialDelaySeconds: 5 + periodSeconds: 5 + timeoutSeconds: 3 + failureThreshold: 3 + startupProbe: + httpGet: + path: /health/live + port: 3000 + initialDelaySeconds: 0 + periodSeconds: 5 + failureThreshold: 30 +``` + +Reference: [NestJS Terminus](https://docs.nestjs.com/recipes/terminus) diff --git a/.agents/skills/nestjs-best-practices/rules/micro-use-patterns.md b/.agents/skills/nestjs-best-practices/rules/micro-use-patterns.md new file mode 100644 index 000000000..82d7c722d --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/micro-use-patterns.md @@ -0,0 +1,167 @@ +--- +title: Use Message and Event Patterns Correctly +impact: MEDIUM +impactDescription: Proper patterns ensure reliable microservice communication +tags: microservices, message-pattern, event-pattern, communication +--- + +## Use Message and Event Patterns Correctly + +NestJS microservices support two communication patterns: request-response (MessagePattern) and event-based (EventPattern). Use MessagePattern when you need a response, and EventPattern for fire-and-forget notifications. Understanding the difference prevents communication bugs. + +**Incorrect (using wrong pattern for use case):** + +```typescript +// Use @MessagePattern for fire-and-forget +@Controller() +export class NotificationsController { + @MessagePattern('user.created') + async handleUserCreated(data: UserCreatedEvent) { + // This WAITS for response, blocking the sender + await this.emailService.sendWelcome(data.email); + // If email fails, sender gets an error (coupling!) + } +} + +// Use @EventPattern expecting a response +@Controller() +export class OrdersController { + @EventPattern('inventory.check') + async checkInventory(data: CheckInventoryDto) { + const available = await this.inventory.check(data); + return available; // This return value is IGNORED with @EventPattern! + } +} + +// Tight coupling in client +@Injectable() +export class UsersService { + async createUser(dto: CreateUserDto): Promise { + const user = await this.repo.save(dto); + + // Blocks until notification service responds + await this.client.send('user.created', user).toPromise(); + // If notification service is down, user creation fails! + + return user; + } +} +``` + +**Correct (use MessagePattern for request-response, EventPattern for fire-and-forget):** + +```typescript +// MessagePattern: Request-Response (when you NEED a response) +@Controller() +export class InventoryController { + @MessagePattern({ cmd: 'check_inventory' }) + async checkInventory(data: CheckInventoryDto): Promise { + const result = await this.inventoryService.check(data.productId, data.quantity); + return result; // Response sent back to caller + } +} + +// Client expects response +@Injectable() +export class OrdersService { + async createOrder(dto: CreateOrderDto): Promise { + // Check inventory - we NEED this response to proceed + const inventory = await firstValueFrom( + this.inventoryClient.send( + { cmd: 'check_inventory' }, + { productId: dto.productId, quantity: dto.quantity }, + ), + ); + + if (!inventory.available) { + throw new BadRequestException('Insufficient inventory'); + } + + return this.repo.save(dto); + } +} + +// EventPattern: Fire-and-Forget (for notifications, side effects) +@Controller() +export class NotificationsController { + @EventPattern('user.created') + async handleUserCreated(data: UserCreatedEvent): Promise { + // No return value needed - just process the event + await this.emailService.sendWelcome(data.email); + await this.analyticsService.track('user_signup', data); + // If this fails, it doesn't affect the sender + } +} + +// Client emits event without waiting +@Injectable() +export class UsersService { + async createUser(dto: CreateUserDto): Promise { + const user = await this.repo.save(dto); + + // Fire and forget - doesn't block, doesn't wait + this.eventClient.emit('user.created', { + userId: user.id, + email: user.email, + timestamp: new Date(), + }); + + return user; // User creation succeeds regardless of event handling + } +} + +// Hybrid pattern for critical events +@Injectable() +export class OrdersService { + async createOrder(dto: CreateOrderDto): Promise { + const order = await this.repo.save(dto); + + // Critical: inventory reservation (use MessagePattern) + const reserved = await firstValueFrom( + this.inventoryClient.send({ cmd: 'reserve_inventory' }, { + orderId: order.id, + items: dto.items, + }), + ); + + if (!reserved.success) { + await this.repo.delete(order.id); + throw new BadRequestException('Could not reserve inventory'); + } + + // Non-critical: notifications (use EventPattern) + this.eventClient.emit('order.created', { + orderId: order.id, + userId: dto.userId, + total: dto.total, + }); + + return order; + } +} + +// Error handling patterns +// MessagePattern errors propagate to caller +@MessagePattern({ cmd: 'get_user' }) +async getUser(userId: string): Promise { + const user = await this.repo.findOne({ where: { id: userId } }); + if (!user) { + throw new RpcException('User not found'); // Received by caller + } + return user; +} + +// EventPattern errors should be handled locally +@EventPattern('order.created') +async handleOrderCreated(data: OrderCreatedEvent): Promise { + try { + await this.processOrder(data); + } catch (error) { + // Log and potentially retry - don't throw + this.logger.error('Failed to process order event', error); + await this.deadLetterQueue.add(data); + } +} +``` + +Reference: [NestJS Microservices](https://docs.nestjs.com/microservices/basics) diff --git a/.agents/skills/nestjs-best-practices/rules/micro-use-queues.md b/.agents/skills/nestjs-best-practices/rules/micro-use-queues.md new file mode 100644 index 000000000..f9bc6725f --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/micro-use-queues.md @@ -0,0 +1,252 @@ +--- +title: Use Message Queues for Background Jobs +impact: MEDIUM-HIGH +impactDescription: Queues enable reliable background processing +tags: microservices, queues, bullmq, background-jobs +--- + +## Use Message Queues for Background Jobs + +Use `@nestjs/bullmq` for background job processing. Queues decouple long-running tasks from HTTP requests, enable retry logic, and distribute workload across workers. Use them for emails, file processing, notifications, and any task that shouldn't block user requests. + +**Incorrect (long-running tasks in HTTP handlers):** + +```typescript +// Long-running tasks in HTTP handlers +@Controller('reports') +export class ReportsController { + @Post() + async generate(@Body() dto: GenerateReportDto): Promise { + // This blocks the request for potentially minutes + const data = await this.fetchLargeDataset(dto); + const report = await this.processData(data); // Slow! + await this.sendEmail(dto.email, report); // Can fail! + return report; // Client times out + } +} + +// Fire-and-forget without retry +@Injectable() +export class EmailService { + async sendWelcome(email: string): Promise { + // If this fails, email is never sent + await this.mailer.send({ to: email, template: 'welcome' }); + // No retry, no tracking, no visibility + } +} + +// Use setInterval for scheduled tasks +setInterval(async () => { + await cleanupOldRecords(); +}, 60000); // No error handling, memory leaks +``` + +**Correct (use BullMQ for background processing):** + +```typescript +// Configure BullMQ +import { BullModule } from '@nestjs/bullmq'; + +@Module({ + imports: [ + BullModule.forRoot({ + connection: { + host: 'localhost', + port: 6379, + }, + defaultJobOptions: { + removeOnComplete: 1000, + removeOnFail: 5000, + attempts: 3, + backoff: { + type: 'exponential', + delay: 1000, + }, + }, + }), + BullModule.registerQueue( + { name: 'email' }, + { name: 'reports' }, + { name: 'notifications' }, + ), + ], +}) +export class QueueModule {} + +// Producer: Add jobs to queue +@Injectable() +export class ReportsService { + constructor( + @InjectQueue('reports') private reportsQueue: Queue, + ) {} + + async requestReport(dto: GenerateReportDto): Promise<{ jobId: string }> { + // Return immediately, process in background + const job = await this.reportsQueue.add('generate', dto, { + priority: dto.urgent ? 1 : 10, + delay: dto.scheduledFor ? Date.parse(dto.scheduledFor) - Date.now() : 0, + }); + + return { jobId: job.id }; + } + + async getJobStatus(jobId: string): Promise { + const job = await this.reportsQueue.getJob(jobId); + return { + status: await job.getState(), + progress: job.progress, + result: job.returnvalue, + }; + } +} + +// Consumer: Process jobs +@Processor('reports') +export class ReportsProcessor { + private readonly logger = new Logger(ReportsProcessor.name); + + @Process('generate') + async generateReport(job: Job): Promise { + this.logger.log(`Processing report job ${job.id}`); + + // Update progress + await job.updateProgress(10); + + const data = await this.fetchData(job.data); + await job.updateProgress(50); + + const report = await this.processData(data); + await job.updateProgress(90); + + await this.saveReport(report); + await job.updateProgress(100); + + return report; + } + + @OnQueueActive() + onActive(job: Job) { + this.logger.log(`Processing job ${job.id}`); + } + + @OnQueueCompleted() + onCompleted(job: Job, result: any) { + this.logger.log(`Job ${job.id} completed`); + } + + @OnQueueFailed() + onFailed(job: Job, error: Error) { + this.logger.error(`Job ${job.id} failed: ${error.message}`); + } +} + +// Email queue with retry +@Processor('email') +export class EmailProcessor { + @Process('send') + async sendEmail(job: Job): Promise { + const { to, template, data } = job.data; + + try { + await this.mailer.send({ + to, + template, + context: data, + }); + } catch (error) { + // BullMQ will retry based on job options + throw error; + } + } +} + +// Usage +@Injectable() +export class NotificationService { + constructor(@InjectQueue('email') private emailQueue: Queue) {} + + async sendWelcome(user: User): Promise { + await this.emailQueue.add( + 'send', + { + to: user.email, + template: 'welcome', + data: { name: user.name }, + }, + { + attempts: 5, + backoff: { type: 'exponential', delay: 5000 }, + }, + ); + } +} + +// Scheduled jobs +@Injectable() +export class ScheduledJobsService implements OnModuleInit { + constructor(@InjectQueue('maintenance') private queue: Queue) {} + + async onModuleInit(): Promise { + // Clean up old reports daily at midnight + await this.queue.add( + 'cleanup', + {}, + { + repeat: { cron: '0 0 * * *' }, + jobId: 'daily-cleanup', // Prevent duplicates + }, + ); + + // Send digest every hour + await this.queue.add( + 'digest', + {}, + { + repeat: { every: 60 * 60 * 1000 }, + jobId: 'hourly-digest', + }, + ); + } +} + +@Processor('maintenance') +export class MaintenanceProcessor { + @Process('cleanup') + async cleanup(): Promise { + await this.cleanupOldReports(); + await this.cleanupExpiredSessions(); + } + + @Process('digest') + async sendDigest(): Promise { + const users = await this.getUsersForDigest(); + for (const user of users) { + await this.emailQueue.add('send', { to: user.email, template: 'digest' }); + } + } +} + +// Queue monitoring with Bull Board +import { BullBoardModule } from '@bull-board/nestjs'; +import { BullMQAdapter } from '@bull-board/api/bullMQAdapter'; + +@Module({ + imports: [ + BullBoardModule.forRoot({ + route: '/admin/queues', + adapter: ExpressAdapter, + }), + BullBoardModule.forFeature({ + name: 'email', + adapter: BullMQAdapter, + }), + BullBoardModule.forFeature({ + name: 'reports', + adapter: BullMQAdapter, + }), + ], +}) +export class AdminModule {} +``` + +Reference: [NestJS Queues](https://docs.nestjs.com/techniques/queues) diff --git a/.agents/skills/nestjs-best-practices/rules/perf-async-hooks.md b/.agents/skills/nestjs-best-practices/rules/perf-async-hooks.md new file mode 100644 index 000000000..7ca007710 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/perf-async-hooks.md @@ -0,0 +1,109 @@ +--- +title: Use Async Lifecycle Hooks Correctly +impact: HIGH +impactDescription: Improper async handling blocks application startup +tags: performance, lifecycle, async, hooks +--- + +## Use Async Lifecycle Hooks Correctly + +NestJS lifecycle hooks (`onModuleInit`, `onApplicationBootstrap`, etc.) support async operations. However, misusing them can block application startup or cause race conditions. Understand the lifecycle order and use hooks appropriately. + +**Incorrect (fire-and-forget async without await):** + +```typescript +// Fire-and-forget async without await +@Injectable() +export class DatabaseService implements OnModuleInit { + onModuleInit() { + // This runs but doesn't block - app starts before DB is ready! + this.connect(); + } + + private async connect() { + await this.pool.connect(); + console.log('Database connected'); + } +} + +// Heavy blocking operations in constructor +@Injectable() +export class ConfigService { + private config: Config; + + constructor() { + // BLOCKS entire module instantiation synchronously + this.config = fs.readFileSync('config.json'); + } +} +``` + +**Correct (return promises from async hooks):** + +```typescript +// Return promise from async hooks +@Injectable() +export class DatabaseService implements OnModuleInit { + private pool: Pool; + + async onModuleInit(): Promise { + // NestJS waits for this to complete before continuing + await this.pool.connect(); + console.log('Database connected'); + } + + async onModuleDestroy(): Promise { + // Clean up resources on shutdown + await this.pool.end(); + console.log('Database disconnected'); + } +} + +// Use onApplicationBootstrap for cross-module dependencies +@Injectable() +export class CacheWarmerService implements OnApplicationBootstrap { + constructor( + private cache: CacheService, + private products: ProductsService, + ) {} + + async onApplicationBootstrap(): Promise { + // All modules are initialized, safe to warm cache + const products = await this.products.findPopular(); + await this.cache.warmup(products); + } +} + +// Heavy init in async hooks, not constructor +@Injectable() +export class ConfigService implements OnModuleInit { + private config: Config; + + constructor() { + // Keep constructor synchronous and fast + } + + async onModuleInit(): Promise { + // Async loading in lifecycle hook + this.config = await this.loadConfig(); + } + + private async loadConfig(): Promise { + const file = await fs.promises.readFile('config.json'); + return JSON.parse(file.toString()); + } + + get(key: string): T { + return this.config[key]; + } +} + +// Enable shutdown hooks in main.ts +async function bootstrap() { + const app = await NestFactory.create(AppModule); + app.enableShutdownHooks(); // Enable SIGTERM/SIGINT handling + await app.listen(3000); +} +``` + +Reference: [NestJS Lifecycle Events](https://docs.nestjs.com/fundamentals/lifecycle-events) diff --git a/.agents/skills/nestjs-best-practices/rules/perf-lazy-loading.md b/.agents/skills/nestjs-best-practices/rules/perf-lazy-loading.md new file mode 100644 index 000000000..8bcc5828c --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/perf-lazy-loading.md @@ -0,0 +1,121 @@ +--- +title: Use Lazy Loading for Large Modules +impact: MEDIUM +impactDescription: Improves startup time for large applications +tags: performance, lazy-loading, modules, optimization +--- + +## Use Lazy Loading for Large Modules + +NestJS supports lazy-loading modules, which defers initialization until first use. This is valuable for large applications where some features are rarely used, serverless deployments where cold start time matters, or when certain modules have heavy initialization costs. + +**Incorrect (loading everything eagerly):** + +```typescript +// Load everything eagerly in a large app +@Module({ + imports: [ + UsersModule, + OrdersModule, + PaymentsModule, + ReportsModule, // Heavy, rarely used + AnalyticsModule, // Heavy, rarely used + AdminModule, // Only admins use this + LegacyModule, // Migration module, rarely used + BulkImportModule, // Used once a month + ], +}) +export class AppModule {} + +// All modules initialize at startup, even if never used +// Slow cold starts in serverless +// Memory wasted on unused modules +``` + +**Correct (lazy load rarely-used modules):** + +```typescript +// Use LazyModuleLoader for optional modules +import { LazyModuleLoader } from '@nestjs/core'; + +@Injectable() +export class ReportsService { + constructor(private lazyModuleLoader: LazyModuleLoader) {} + + async generateReport(type: string): Promise { + // Load module only when needed + const { ReportsModule } = await import('./reports/reports.module'); + const moduleRef = await this.lazyModuleLoader.load(() => ReportsModule); + + const reportsService = moduleRef.get(ReportsGeneratorService); + return reportsService.generate(type); + } +} + +// Lazy load admin features with caching +@Injectable() +export class AdminService { + private adminModule: ModuleRef | null = null; + + constructor(private lazyModuleLoader: LazyModuleLoader) {} + + private async getAdminModule(): Promise { + if (!this.adminModule) { + const { AdminModule } = await import('./admin/admin.module'); + this.adminModule = await this.lazyModuleLoader.load(() => AdminModule); + } + return this.adminModule; + } + + async runAdminTask(task: string): Promise { + const moduleRef = await this.getAdminModule(); + const taskRunner = moduleRef.get(AdminTaskRunner); + await taskRunner.run(task); + } +} + +// Reusable lazy loader service +@Injectable() +export class ModuleLoaderService { + private loadedModules = new Map(); + + constructor(private lazyModuleLoader: LazyModuleLoader) {} + + async load( + key: string, + importFn: () => Promise<{ default: Type } | Type>, + ): Promise { + if (!this.loadedModules.has(key)) { + const module = await importFn(); + const moduleType = 'default' in module ? module.default : module; + const moduleRef = await this.lazyModuleLoader.load(() => moduleType); + this.loadedModules.set(key, moduleRef); + } + return this.loadedModules.get(key)!; + } +} + +// Preload modules in background after startup +@Injectable() +export class ModulePreloader implements OnApplicationBootstrap { + constructor(private lazyModuleLoader: LazyModuleLoader) {} + + async onApplicationBootstrap(): Promise { + setTimeout(async () => { + await this.preloadModule(() => import('./reports/reports.module')); + }, 5000); // 5 seconds after startup + } + + private async preloadModule(importFn: () => Promise): Promise { + try { + const module = await importFn(); + const moduleType = module.default || Object.values(module)[0]; + await this.lazyModuleLoader.load(() => moduleType); + } catch (error) { + console.warn('Failed to preload module', error); + } + } +} +``` + +Reference: [NestJS Lazy Loading Modules](https://docs.nestjs.com/fundamentals/lazy-loading-modules) diff --git a/.agents/skills/nestjs-best-practices/rules/perf-optimize-database.md b/.agents/skills/nestjs-best-practices/rules/perf-optimize-database.md new file mode 100644 index 000000000..964189f7d --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/perf-optimize-database.md @@ -0,0 +1,131 @@ +--- +title: Optimize Database Queries +impact: HIGH +impactDescription: Database queries are typically the largest source of latency +tags: performance, database, queries, optimization +--- + +## Optimize Database Queries + +Select only needed columns, use proper indexes, avoid over-fetching relations, and consider query performance when designing your data access. Most API slowness traces back to inefficient database queries. + +**Incorrect (over-fetching data and missing indexes):** + +```typescript +// Select everything when you need few fields +@Injectable() +export class UsersService { + async findAllEmails(): Promise { + const users = await this.repo.find(); + // Fetches ALL columns for ALL users + return users.map((u) => u.email); + } + + async getUserSummary(id: string): Promise { + const user = await this.repo.findOne({ + where: { id }, + relations: ['posts', 'posts.comments', 'posts.comments.author', 'followers'], + }); + // Over-fetches massive relation tree + return { name: user.name, postCount: user.posts.length }; + } +} + +// No indexes on frequently queried columns +@Entity() +export class Order { + @Column() + userId: string; // No index - full table scan on every lookup + + @Column() + status: string; // No index - slow status filtering +} +``` + +**Correct (select only needed data with proper indexes):** + +```typescript +// Select only needed columns +@Injectable() +export class UsersService { + async findAllEmails(): Promise { + const users = await this.repo.find({ + select: ['email'], // Only fetch email column + }); + return users.map((u) => u.email); + } + + // Use QueryBuilder for complex selections + async getUserSummary(id: string): Promise { + return this.repo + .createQueryBuilder('user') + .select('user.name', 'name') + .addSelect('COUNT(post.id)', 'postCount') + .leftJoin('user.posts', 'post') + .where('user.id = :id', { id }) + .groupBy('user.id') + .getRawOne(); + } + + // Fetch relations only when needed + async getFullProfile(id: string): Promise { + return this.repo.findOne({ + where: { id }, + relations: ['posts'], // Only immediate relation + select: { + id: true, + name: true, + email: true, + posts: { + id: true, + title: true, + }, + }, + }); + } +} + +// Add indexes on frequently queried columns +@Entity() +@Index(['userId']) +@Index(['status']) +@Index(['createdAt']) +@Index(['userId', 'status']) // Composite index for common query pattern +export class Order { + @PrimaryGeneratedColumn('uuid') + id: string; + + @Column() + userId: string; + + @Column() + status: string; + + @CreateDateColumn() + createdAt: Date; +} + +// Always paginate large datasets +@Injectable() +export class OrdersService { + async findAll(page = 1, limit = 20): Promise> { + const [items, total] = await this.repo.findAndCount({ + skip: (page - 1) * limit, + take: limit, + order: { createdAt: 'DESC' }, + }); + + return { + items, + meta: { + page, + limit, + total, + totalPages: Math.ceil(total / limit), + }, + }; + } +} +``` + +Reference: [TypeORM Query Builder](https://typeorm.io/select-query-builder) diff --git a/.agents/skills/nestjs-best-practices/rules/perf-use-caching.md b/.agents/skills/nestjs-best-practices/rules/perf-use-caching.md new file mode 100644 index 000000000..71706907b --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/perf-use-caching.md @@ -0,0 +1,128 @@ +--- +title: Use Caching Strategically +impact: HIGH +impactDescription: Dramatically reduces database load and response times +tags: performance, caching, redis, optimization +--- + +## Use Caching Strategically + +Implement caching for expensive operations, frequently accessed data, and external API calls. Use NestJS CacheModule with appropriate TTLs and cache invalidation strategies. Don't cache everything - focus on high-impact areas. + +**Incorrect (no caching or caching everything):** + +```typescript +// No caching for expensive, repeated queries +@Injectable() +export class ProductsService { + async getPopular(): Promise { + // Runs complex aggregation query EVERY request + return this.productsRepo + .createQueryBuilder('p') + .leftJoin('p.orders', 'o') + .select('p.*, COUNT(o.id) as orderCount') + .groupBy('p.id') + .orderBy('orderCount', 'DESC') + .limit(20) + .getMany(); + } +} + +// Cache everything without thought +@Injectable() +export class UsersService { + @CacheKey('users') + @CacheTTL(3600) + @UseInterceptors(CacheInterceptor) + async findAll(): Promise { + // Caching user list for 1 hour is wrong if data changes frequently + return this.usersRepo.find(); + } +} +``` + +**Correct (strategic caching with proper invalidation):** + +```typescript +// Setup caching module +@Module({ + imports: [ + CacheModule.registerAsync({ + imports: [ConfigModule], + inject: [ConfigService], + useFactory: (config: ConfigService) => ({ + stores: [ + new KeyvRedis(config.get('REDIS_URL')), + ], + ttl: 60 * 1000, // Default 60s + }), + }), + ], +}) +export class AppModule {} + +// Manual caching for granular control +@Injectable() +export class ProductsService { + constructor( + @Inject(CACHE_MANAGER) private cache: Cache, + private productsRepo: ProductRepository, + ) {} + + async getPopular(): Promise { + const cacheKey = 'products:popular'; + + // Try cache first + const cached = await this.cache.get(cacheKey); + if (cached) return cached; + + // Cache miss - fetch and cache + const products = await this.fetchPopularProducts(); + await this.cache.set(cacheKey, products, 5 * 60 * 1000); // 5 min TTL + return products; + } + + // Invalidate cache on changes + async updateProduct(id: string, dto: UpdateProductDto): Promise { + const product = await this.productsRepo.save({ id, ...dto }); + await this.cache.del('products:popular'); // Invalidate + return product; + } +} + +// Decorator-based caching with auto-interceptor +@Controller('categories') +@UseInterceptors(CacheInterceptor) +export class CategoriesController { + @Get() + @CacheTTL(30 * 60 * 1000) // 30 minutes - categories rarely change + findAll(): Promise { + return this.categoriesService.findAll(); + } + + @Get(':id') + @CacheTTL(60 * 1000) // 1 minute + @CacheKey('category') + findOne(@Param('id') id: string): Promise { + return this.categoriesService.findOne(id); + } +} + +// Event-based cache invalidation +@Injectable() +export class CacheInvalidationService { + constructor(@Inject(CACHE_MANAGER) private cache: Cache) {} + + @OnEvent('product.created') + @OnEvent('product.updated') + @OnEvent('product.deleted') + async invalidateProductCaches(event: ProductEvent) { + await Promise.all([ + this.cache.del('products:popular'), + this.cache.del(`product:${event.productId}`), + ]); + } +} +``` + +Reference: [NestJS Caching](https://docs.nestjs.com/techniques/caching) diff --git a/.agents/skills/nestjs-best-practices/rules/security-auth-jwt.md b/.agents/skills/nestjs-best-practices/rules/security-auth-jwt.md new file mode 100644 index 000000000..a0d1ff031 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/security-auth-jwt.md @@ -0,0 +1,146 @@ +--- +title: Implement Secure JWT Authentication +impact: CRITICAL +impactDescription: Essential for secure APIs +tags: security, jwt, authentication, tokens +--- + +## Implement Secure JWT Authentication + +Use `@nestjs/jwt` with `@nestjs/passport` for authentication. Store secrets securely, use appropriate token lifetimes, implement refresh tokens, and validate tokens properly. Never expose sensitive data in JWT payloads. + +**Incorrect (insecure JWT implementation):** + +```typescript +// Hardcode secrets +@Module({ + imports: [ + JwtModule.register({ + secret: 'my-secret-key', // Exposed in code + signOptions: { expiresIn: '7d' }, // Too long + }), + ], +}) +export class AuthModule {} + +// Store sensitive data in JWT +async login(user: User): Promise<{ accessToken: string }> { + const payload = { + sub: user.id, + email: user.email, + password: user.password, // NEVER include password! + ssn: user.ssn, // NEVER include sensitive data! + isAdmin: user.isAdmin, // Can be tampered if not verified + }; + return { accessToken: this.jwtService.sign(payload) }; +} + +// Skip token validation +@Injectable() +export class JwtStrategy extends PassportStrategy(Strategy) { + constructor() { + super({ + jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(), + secretOrKey: 'my-secret', + }); + } + + async validate(payload: any): Promise { + return payload; // No validation of user existence + } +} +``` + +**Correct (secure JWT with refresh tokens):** + +```typescript +// Secure JWT configuration +@Module({ + imports: [ + JwtModule.registerAsync({ + imports: [ConfigModule], + inject: [ConfigService], + useFactory: (config: ConfigService) => ({ + secret: config.get('JWT_SECRET'), + signOptions: { + expiresIn: '15m', // Short-lived access tokens + issuer: config.get('JWT_ISSUER'), + audience: config.get('JWT_AUDIENCE'), + }, + }), + }), + PassportModule.register({ defaultStrategy: 'jwt' }), + ], +}) +export class AuthModule {} + +// Minimal JWT payload +@Injectable() +export class AuthService { + async login(user: User): Promise { + // Only include necessary, non-sensitive data + const payload: JwtPayload = { + sub: user.id, + email: user.email, + roles: user.roles, + iat: Math.floor(Date.now() / 1000), + }; + + const accessToken = this.jwtService.sign(payload); + const refreshToken = await this.createRefreshToken(user.id); + + return { accessToken, refreshToken, expiresIn: 900 }; + } + + private async createRefreshToken(userId: string): Promise { + const token = randomBytes(32).toString('hex'); + const hashedToken = await bcrypt.hash(token, 10); + + await this.refreshTokenRepo.save({ + userId, + token: hashedToken, + expiresAt: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000), // 7 days + }); + + return token; + } +} + +// Proper JWT strategy with validation +@Injectable() +export class JwtStrategy extends PassportStrategy(Strategy) { + constructor( + private config: ConfigService, + private usersService: UsersService, + ) { + super({ + jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(), + secretOrKey: config.get('JWT_SECRET'), + ignoreExpiration: false, + issuer: config.get('JWT_ISSUER'), + audience: config.get('JWT_AUDIENCE'), + }); + } + + async validate(payload: JwtPayload): Promise { + // Verify user still exists and is active + const user = await this.usersService.findById(payload.sub); + + if (!user || !user.isActive) { + throw new UnauthorizedException('User not found or inactive'); + } + + // Verify token wasn't issued before password change + if (user.passwordChangedAt) { + const tokenIssuedAt = new Date(payload.iat * 1000); + if (tokenIssuedAt < user.passwordChangedAt) { + throw new UnauthorizedException('Token invalidated by password change'); + } + } + + return user; + } +} +``` + +Reference: [NestJS Authentication](https://docs.nestjs.com/security/authentication) diff --git a/.agents/skills/nestjs-best-practices/rules/security-rate-limiting.md b/.agents/skills/nestjs-best-practices/rules/security-rate-limiting.md new file mode 100644 index 000000000..7d39e9c8c --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/security-rate-limiting.md @@ -0,0 +1,125 @@ +--- +title: Implement Rate Limiting +impact: HIGH +impactDescription: Protects against abuse and ensures fair resource usage +tags: security, rate-limiting, throttler, protection +--- + +## Implement Rate Limiting + +Use `@nestjs/throttler` to limit request rates per client. Apply different limits for different endpoints - stricter for auth endpoints, more relaxed for read operations. Consider using Redis for distributed rate limiting in clustered deployments. + +**Incorrect (no rate limiting on sensitive endpoints):** + +```typescript +// No rate limiting on sensitive endpoints +@Controller('auth') +export class AuthController { + @Post('login') + async login(@Body() dto: LoginDto): Promise { + // Attackers can brute-force credentials + return this.authService.login(dto); + } + + @Post('forgot-password') + async forgotPassword(@Body() dto: ForgotPasswordDto): Promise { + // Can be abused to spam users with emails + return this.authService.sendResetEmail(dto.email); + } +} + +// Same limits for all endpoints +@UseGuards(ThrottlerGuard) +@Controller('api') +export class ApiController { + @Get('public-data') + async getPublic() {} // Should allow more requests + + @Post('process-payment') + async payment() {} // Should be more restrictive +} +``` + +**Correct (configured throttler with endpoint-specific limits):** + +```typescript +// Configure throttler globally with multiple limits +import { ThrottlerModule, ThrottlerGuard } from '@nestjs/throttler'; + +@Module({ + imports: [ + ThrottlerModule.forRoot([ + { + name: 'short', + ttl: 1000, // 1 second + limit: 3, // 3 requests per second + }, + { + name: 'medium', + ttl: 10000, // 10 seconds + limit: 20, // 20 requests per 10 seconds + }, + { + name: 'long', + ttl: 60000, // 1 minute + limit: 100, // 100 requests per minute + }, + ]), + ], + providers: [ + { + provide: APP_GUARD, + useClass: ThrottlerGuard, + }, + ], +}) +export class AppModule {} + +// Override limits per endpoint +@Controller('auth') +export class AuthController { + @Post('login') + @Throttle({ short: { limit: 5, ttl: 60000 } }) // 5 attempts per minute + async login(@Body() dto: LoginDto): Promise { + return this.authService.login(dto); + } + + @Post('forgot-password') + @Throttle({ short: { limit: 3, ttl: 3600000 } }) // 3 per hour + async forgotPassword(@Body() dto: ForgotPasswordDto): Promise { + return this.authService.sendResetEmail(dto.email); + } +} + +// Skip throttling for certain routes +@Controller('health') +export class HealthController { + @Get() + @SkipThrottle() + check(): string { + return 'OK'; + } +} + +// Custom throttle per user type +@Injectable() +export class CustomThrottlerGuard extends ThrottlerGuard { + protected async getTracker(req: Request): Promise { + // Use user ID if authenticated, IP otherwise + return req.user?.id || req.ip; + } + + protected async getLimit(context: ExecutionContext): Promise { + const request = context.switchToHttp().getRequest(); + + // Higher limits for authenticated users + if (request.user) { + return request.user.isPremium ? 1000 : 200; + } + + return 50; // Anonymous users + } +} +``` + +Reference: [NestJS Throttler](https://docs.nestjs.com/security/rate-limiting) diff --git a/.agents/skills/nestjs-best-practices/rules/security-sanitize-output.md b/.agents/skills/nestjs-best-practices/rules/security-sanitize-output.md new file mode 100644 index 000000000..78e3d396a --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/security-sanitize-output.md @@ -0,0 +1,139 @@ +--- +title: Sanitize Output to Prevent XSS +impact: HIGH +impactDescription: XSS vulnerabilities can compromise user sessions and data +tags: security, xss, sanitization, html +--- + +## Sanitize Output to Prevent XSS + +While NestJS APIs typically return JSON (which browsers don't execute), XSS risks exist when rendering HTML, storing user content, or when frontend frameworks improperly handle API responses. Sanitize user-generated content before storage and use proper Content-Type headers. + +**Incorrect (storing raw HTML without sanitization):** + +```typescript +// Store raw HTML from users +@Injectable() +export class CommentsService { + async create(dto: CreateCommentDto): Promise { + // User can inject: + return this.repo.save({ + content: dto.content, // Raw, unsanitized + authorId: dto.authorId, + }); + } +} + +// Return HTML without sanitization +@Controller('pages') +export class PagesController { + @Get(':slug') + @Header('Content-Type', 'text/html') + async getPage(@Param('slug') slug: string): Promise { + const page = await this.pagesService.findBySlug(slug); + // If page.content contains user input, XSS is possible + return `${page.content}`; + } +} + +// Reflect user input in errors +@Get(':id') +async findOne(@Param('id') id: string): Promise { + const user = await this.repo.findOne({ where: { id } }); + if (!user) { + // XSS if id contains malicious content and error is rendered + throw new NotFoundException(`User ${id} not found`); + } + return user; +} +``` + +**Correct (sanitize content and use proper headers):** + +```typescript +// Sanitize HTML content before storage +import * as sanitizeHtml from 'sanitize-html'; + +@Injectable() +export class CommentsService { + private readonly sanitizeOptions: sanitizeHtml.IOptions = { + allowedTags: ['b', 'i', 'em', 'strong', 'a', 'p', 'br'], + allowedAttributes: { + a: ['href', 'title'], + }, + allowedSchemes: ['http', 'https', 'mailto'], + }; + + async create(dto: CreateCommentDto): Promise { + return this.repo.save({ + content: sanitizeHtml(dto.content, this.sanitizeOptions), + authorId: dto.authorId, + }); + } +} + +// Use validation pipe to strip HTML +import { Transform } from 'class-transformer'; + +export class CreatePostDto { + @IsString() + @MaxLength(1000) + @Transform(({ value }) => sanitizeHtml(value, { allowedTags: [] })) + title: string; + + @IsString() + @Transform(({ value }) => + sanitizeHtml(value, { + allowedTags: ['p', 'br', 'b', 'i', 'a'], + allowedAttributes: { a: ['href'] }, + }), + ) + content: string; +} + +// Set proper Content-Type headers +@Controller('api') +export class ApiController { + @Get('data') + @Header('Content-Type', 'application/json') + async getData(): Promise { + // JSON response - browser won't execute scripts + return this.service.getData(); + } +} + +// Sanitize error messages +@Get(':id') +async findOne(@Param('id', ParseUUIDPipe) id: string): Promise { + const user = await this.repo.findOne({ where: { id } }); + if (!user) { + // UUID validation ensures safe format + throw new NotFoundException('User not found'); + } + return user; +} + +// Use Helmet for CSP headers +import helmet from 'helmet'; + +async function bootstrap() { + const app = await NestFactory.create(AppModule); + + app.use( + helmet({ + contentSecurityPolicy: { + directives: { + defaultSrc: ["'self'"], + scriptSrc: ["'self'"], + styleSrc: ["'self'", "'unsafe-inline'"], + imgSrc: ["'self'", 'data:', 'https:'], + }, + }, + }), + ); + + await app.listen(3000); +} +``` + +Reference: [OWASP XSS Prevention](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html) diff --git a/.agents/skills/nestjs-best-practices/rules/security-use-guards.md b/.agents/skills/nestjs-best-practices/rules/security-use-guards.md new file mode 100644 index 000000000..fb1359c4a --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/security-use-guards.md @@ -0,0 +1,135 @@ +--- +title: Use Guards for Authentication and Authorization +impact: HIGH +impactDescription: Enforces access control before handlers execute +tags: security, guards, authentication, authorization +--- + +## Use Guards for Authentication and Authorization + +Guards determine whether a request should be handled based on authentication state, roles, permissions, or other conditions. They run after middleware but before pipes and interceptors, making them ideal for access control. Use guards instead of manual checks in controllers. + +**Incorrect (manual auth checks in every handler):** + +```typescript +// Manual auth checks in every handler +@Controller('admin') +export class AdminController { + @Get('users') + async getUsers(@Request() req) { + if (!req.user) { + throw new UnauthorizedException(); + } + if (!req.user.roles.includes('admin')) { + throw new ForbiddenException(); + } + return this.adminService.getUsers(); + } + + @Delete('users/:id') + async deleteUser(@Request() req, @Param('id') id: string) { + if (!req.user) { + throw new UnauthorizedException(); + } + if (!req.user.roles.includes('admin')) { + throw new ForbiddenException(); + } + return this.adminService.deleteUser(id); + } +} +``` + +**Correct (guards with declarative decorators):** + +```typescript +// JWT Auth Guard +@Injectable() +export class JwtAuthGuard implements CanActivate { + constructor( + private jwtService: JwtService, + private reflector: Reflector, + ) {} + + async canActivate(context: ExecutionContext): Promise { + // Check for @Public() decorator + const isPublic = this.reflector.getAllAndOverride('isPublic', [ + context.getHandler(), + context.getClass(), + ]); + if (isPublic) return true; + + const request = context.switchToHttp().getRequest(); + const token = this.extractToken(request); + + if (!token) { + throw new UnauthorizedException('No token provided'); + } + + try { + request.user = await this.jwtService.verifyAsync(token); + return true; + } catch { + throw new UnauthorizedException('Invalid token'); + } + } + + private extractToken(request: Request): string | undefined { + const [type, token] = request.headers.authorization?.split(' ') ?? []; + return type === 'Bearer' ? token : undefined; + } +} + +// Roles Guard +@Injectable() +export class RolesGuard implements CanActivate { + constructor(private reflector: Reflector) {} + + canActivate(context: ExecutionContext): boolean { + const requiredRoles = this.reflector.getAllAndOverride('roles', [ + context.getHandler(), + context.getClass(), + ]); + + if (!requiredRoles) return true; + + const { user } = context.switchToHttp().getRequest(); + return requiredRoles.some((role) => user.roles?.includes(role)); + } +} + +// Decorators +export const Public = () => SetMetadata('isPublic', true); +export const Roles = (...roles: Role[]) => SetMetadata('roles', roles); + +// Register guards globally +@Module({ + providers: [ + { provide: APP_GUARD, useClass: JwtAuthGuard }, + { provide: APP_GUARD, useClass: RolesGuard }, + ], +}) +export class AppModule {} + +// Clean controller +@Controller('admin') +@Roles(Role.Admin) // Applied to all routes +export class AdminController { + @Get('users') + getUsers(): Promise { + return this.adminService.getUsers(); + } + + @Delete('users/:id') + deleteUser(@Param('id') id: string): Promise { + return this.adminService.deleteUser(id); + } + + @Public() // Override: no auth required + @Get('health') + health() { + return { status: 'ok' }; + } +} +``` + +Reference: [NestJS Guards](https://docs.nestjs.com/guards) diff --git a/.agents/skills/nestjs-best-practices/rules/security-validate-all-input.md b/.agents/skills/nestjs-best-practices/rules/security-validate-all-input.md new file mode 100644 index 000000000..f489d064e --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/security-validate-all-input.md @@ -0,0 +1,150 @@ +--- +title: Validate All Input with DTOs and Pipes +impact: HIGH +impactDescription: First line of defense against attacks +tags: security, validation, dto, pipes +--- + +## Validate All Input with DTOs and Pipes + +Always validate incoming data using class-validator decorators on DTOs and the global ValidationPipe. Never trust user input. Validate all request bodies, query parameters, and route parameters before processing. + +**Incorrect (trust raw input without validation):** + +```typescript +// Trust raw input without validation +@Controller('users') +export class UsersController { + @Post() + create(@Body() body: any) { + // body could contain anything - SQL injection, XSS, etc. + return this.usersService.create(body); + } + + @Get() + findAll(@Query() query: any) { + // query.limit could be "'; DROP TABLE users; --" + return this.usersService.findAll(query.limit); + } +} + +// DTOs without validation decorators +export class CreateUserDto { + name: string; // No validation + email: string; // Could be "not-an-email" + age: number; // Could be "abc" or -999 +} +``` + +**Correct (validated DTOs with global ValidationPipe):** + +```typescript +// Enable ValidationPipe globally in main.ts +async function bootstrap() { + const app = await NestFactory.create(AppModule); + + app.useGlobalPipes( + new ValidationPipe({ + whitelist: true, // Strip unknown properties + forbidNonWhitelisted: true, // Throw on unknown properties + transform: true, // Auto-transform to DTO types + transformOptions: { + enableImplicitConversion: true, + }, + }), + ); + + await app.listen(3000); +} + +// Create well-validated DTOs +import { + IsString, + IsEmail, + IsInt, + Min, + Max, + IsOptional, + MinLength, + MaxLength, + Matches, + IsNotEmpty, +} from 'class-validator'; +import { Transform, Type } from 'class-transformer'; + +export class CreateUserDto { + @IsString() + @IsNotEmpty() + @MinLength(2) + @MaxLength(100) + @Transform(({ value }) => value?.trim()) + name: string; + + @IsEmail() + @Transform(({ value }) => value?.toLowerCase().trim()) + email: string; + + @IsInt() + @Min(0) + @Max(150) + age: number; + + @IsString() + @MinLength(8) + @MaxLength(100) + @Matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)/, { + message: 'Password must contain uppercase, lowercase, and number', + }) + password: string; +} + +// Query DTO with defaults and transformation +export class FindUsersQueryDto { + @IsOptional() + @IsString() + @MaxLength(100) + search?: string; + + @IsOptional() + @Type(() => Number) + @IsInt() + @Min(1) + @Max(100) + limit: number = 20; + + @IsOptional() + @Type(() => Number) + @IsInt() + @Min(0) + offset: number = 0; +} + +// Param validation +export class UserIdParamDto { + @IsUUID('4') + id: string; +} + +@Controller('users') +export class UsersController { + @Post() + create(@Body() dto: CreateUserDto): Promise { + // dto is guaranteed to be valid + return this.usersService.create(dto); + } + + @Get() + findAll(@Query() query: FindUsersQueryDto): Promise { + // query.limit is a number, query.search is sanitized + return this.usersService.findAll(query); + } + + @Get(':id') + findOne(@Param() params: UserIdParamDto): Promise { + // params.id is a valid UUID + return this.usersService.findById(params.id); + } +} +``` + +Reference: [NestJS Validation](https://docs.nestjs.com/techniques/validation) diff --git a/.agents/skills/nestjs-best-practices/rules/test-e2e-supertest.md b/.agents/skills/nestjs-best-practices/rules/test-e2e-supertest.md new file mode 100644 index 000000000..426551385 --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/test-e2e-supertest.md @@ -0,0 +1,178 @@ +--- +title: Use Supertest for E2E Testing +impact: HIGH +impactDescription: Validates the full request/response cycle +tags: testing, e2e, supertest, integration +--- + +## Use Supertest for E2E Testing + +End-to-end tests use Supertest to make real HTTP requests against your NestJS application. They test the full stack including middleware, guards, pipes, and interceptors. E2E tests catch integration issues that unit tests miss. + +**Incorrect (no proper E2E setup or teardown):** + +```typescript +// Only unit test controllers +describe('UsersController', () => { + it('should return users', async () => { + const service = { findAll: jest.fn().mockResolvedValue([]) }; + const controller = new UsersController(service as any); + + const result = await controller.findAll(); + + expect(result).toEqual([]); + // Doesn't test: routes, guards, pipes, serialization + }); +}); + +// E2E tests without proper setup/teardown +describe('Users API', () => { + it('should create user', async () => { + const app = await NestFactory.create(AppModule); + // No proper initialization + // No cleanup after test + // Hits real database + }); +}); +``` + +**Correct (proper E2E setup with Supertest):** + +```typescript +// Proper E2E test setup +import { Test, TestingModule } from '@nestjs/testing'; +import { INestApplication, ValidationPipe } from '@nestjs/common'; +import * as request from 'supertest'; +import { AppModule } from '../src/app.module'; + +describe('UsersController (e2e)', () => { + let app: INestApplication; + + beforeAll(async () => { + const moduleFixture: TestingModule = await Test.createTestingModule({ + imports: [AppModule], + }).compile(); + + app = moduleFixture.createNestApplication(); + + // Apply same config as production + app.useGlobalPipes( + new ValidationPipe({ + whitelist: true, + transform: true, + forbidNonWhitelisted: true, + }), + ); + + await app.init(); + }); + + afterAll(async () => { + await app.close(); + }); + + describe('/users (POST)', () => { + it('should create a user', () => { + return request(app.getHttpServer()) + .post('/users') + .send({ name: 'John', email: 'john@test.com' }) + .expect(201) + .expect((res) => { + expect(res.body).toHaveProperty('id'); + expect(res.body.name).toBe('John'); + expect(res.body.email).toBe('john@test.com'); + }); + }); + + it('should return 400 for invalid email', () => { + return request(app.getHttpServer()) + .post('/users') + .send({ name: 'John', email: 'invalid-email' }) + .expect(400) + .expect((res) => { + expect(res.body.message).toContain('email'); + }); + }); + }); + + describe('/users/:id (GET)', () => { + it('should return 404 for non-existent user', () => { + return request(app.getHttpServer()) + .get('/users/non-existent-id') + .expect(404); + }); + }); +}); + +// Testing with authentication +describe('Protected Routes (e2e)', () => { + let app: INestApplication; + let authToken: string; + + beforeAll(async () => { + const moduleFixture = await Test.createTestingModule({ + imports: [AppModule], + }).compile(); + + app = moduleFixture.createNestApplication(); + app.useGlobalPipes(new ValidationPipe({ whitelist: true })); + await app.init(); + + // Get auth token + const loginResponse = await request(app.getHttpServer()) + .post('/auth/login') + .send({ email: 'test@test.com', password: 'password' }); + + authToken = loginResponse.body.accessToken; + }); + + it('should return 401 without token', () => { + return request(app.getHttpServer()) + .get('/users/me') + .expect(401); + }); + + it('should return user profile with valid token', () => { + return request(app.getHttpServer()) + .get('/users/me') + .set('Authorization', `Bearer ${authToken}`) + .expect(200) + .expect((res) => { + expect(res.body.email).toBe('test@test.com'); + }); + }); +}); + +// Database isolation for E2E tests +describe('Orders API (e2e)', () => { + let app: INestApplication; + let dataSource: DataSource; + + beforeAll(async () => { + const moduleFixture = await Test.createTestingModule({ + imports: [ + ConfigModule.forRoot({ + envFilePath: '.env.test', // Test database config + }), + AppModule, + ], + }).compile(); + + app = moduleFixture.createNestApplication(); + dataSource = moduleFixture.get(DataSource); + await app.init(); + }); + + beforeEach(async () => { + // Clean database between tests + await dataSource.synchronize(true); + }); + + afterAll(async () => { + await dataSource.destroy(); + await app.close(); + }); +}); +``` + +Reference: [NestJS E2E Testing](https://docs.nestjs.com/fundamentals/testing#end-to-end-testing) diff --git a/.agents/skills/nestjs-best-practices/rules/test-mock-external-services.md b/.agents/skills/nestjs-best-practices/rules/test-mock-external-services.md new file mode 100644 index 000000000..e29b595ad --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/test-mock-external-services.md @@ -0,0 +1,179 @@ +--- +title: Mock External Services in Tests +impact: HIGH +impactDescription: Ensures fast, reliable, deterministic tests +tags: testing, mocking, external-services, jest +--- + +## Mock External Services in Tests + +Never call real external services (APIs, databases, message queues) in unit tests. Mock them to ensure tests are fast, deterministic, and don't incur costs. Use realistic mock data and test edge cases like timeouts and errors. + +**Incorrect (calling real APIs and databases):** + +```typescript +// Call real APIs in tests +describe('PaymentService', () => { + it('should process payment', async () => { + const service = new PaymentService(new StripeClient(realApiKey)); + // Hits real Stripe API! + const result = await service.charge('tok_visa', 1000); + // Slow, costs money, flaky + }); +}); + +// Use real database +describe('UsersService', () => { + beforeEach(async () => { + await connection.query('DELETE FROM users'); // Modifies real DB + }); + + it('should create user', async () => { + const user = await service.create({ email: 'test@test.com' }); + // Side effects on shared database + }); +}); + +// Incomplete mocks +const mockHttpService = { + get: jest.fn().mockResolvedValue({ data: {} }), + // Missing error scenarios, missing other methods +}; +``` + +**Correct (mock all external dependencies):** + +```typescript +// Mock HTTP service properly +describe('WeatherService', () => { + let service: WeatherService; + let httpService: jest.Mocked; + + beforeEach(async () => { + const module = await Test.createTestingModule({ + providers: [ + WeatherService, + { + provide: HttpService, + useValue: { + get: jest.fn(), + post: jest.fn(), + }, + }, + ], + }).compile(); + + service = module.get(WeatherService); + httpService = module.get(HttpService); + }); + + it('should return weather data', async () => { + const mockResponse = { + data: { temperature: 72, humidity: 45 }, + status: 200, + statusText: 'OK', + headers: {}, + config: {}, + }; + + httpService.get.mockReturnValue(of(mockResponse)); + + const result = await service.getWeather('NYC'); + + expect(result).toEqual({ temperature: 72, humidity: 45 }); + }); + + it('should handle API timeout', async () => { + httpService.get.mockReturnValue( + throwError(() => new Error('ETIMEDOUT')), + ); + + await expect(service.getWeather('NYC')).rejects.toThrow('Weather service unavailable'); + }); + + it('should handle rate limiting', async () => { + httpService.get.mockReturnValue( + throwError(() => ({ + response: { status: 429, data: { message: 'Rate limited' } }, + })), + ); + + await expect(service.getWeather('NYC')).rejects.toThrow(TooManyRequestsException); + }); +}); + +// Mock repository instead of database +describe('UsersService', () => { + let service: UsersService; + let repo: jest.Mocked>; + + beforeEach(async () => { + const mockRepo = { + find: jest.fn(), + findOne: jest.fn(), + save: jest.fn(), + delete: jest.fn(), + createQueryBuilder: jest.fn(), + }; + + const module = await Test.createTestingModule({ + providers: [ + UsersService, + { provide: getRepositoryToken(User), useValue: mockRepo }, + ], + }).compile(); + + service = module.get(UsersService); + repo = module.get(getRepositoryToken(User)); + }); + + it('should find user by id', async () => { + const mockUser = { id: '1', name: 'John', email: 'john@test.com' }; + repo.findOne.mockResolvedValue(mockUser); + + const result = await service.findById('1'); + + expect(result).toEqual(mockUser); + expect(repo.findOne).toHaveBeenCalledWith({ where: { id: '1' } }); + }); +}); + +// Create mock factory for complex SDKs +function createMockStripe(): jest.Mocked { + return { + paymentIntents: { + create: jest.fn(), + retrieve: jest.fn(), + confirm: jest.fn(), + cancel: jest.fn(), + }, + customers: { + create: jest.fn(), + retrieve: jest.fn(), + }, + } as any; +} + +// Mock time for time-dependent tests +describe('TokenService', () => { + beforeEach(() => { + jest.useFakeTimers(); + jest.setSystemTime(new Date('2024-01-15')); + }); + + afterEach(() => { + jest.useRealTimers(); + }); + + it('should expire token after 1 hour', async () => { + const token = await service.createToken(); + + // Fast-forward time + jest.advanceTimersByTime(61 * 60 * 1000); + + expect(await service.isValid(token)).toBe(false); + }); +}); +``` + +Reference: [Jest Mocking](https://jestjs.io/docs/mock-functions) diff --git a/.agents/skills/nestjs-best-practices/rules/test-use-testing-module.md b/.agents/skills/nestjs-best-practices/rules/test-use-testing-module.md new file mode 100644 index 000000000..de256f57d --- /dev/null +++ b/.agents/skills/nestjs-best-practices/rules/test-use-testing-module.md @@ -0,0 +1,153 @@ +--- +title: Use Testing Module for Unit Tests +impact: HIGH +impactDescription: Enables proper isolated testing with mocked dependencies +tags: testing, unit-tests, mocking, jest +--- + +## Use Testing Module for Unit Tests + +Use `@nestjs/testing` module to create isolated test environments with mocked dependencies. This ensures your tests run fast, don't depend on external services, and properly test your business logic in isolation. + +**Incorrect (manual instantiation bypassing DI):** + +```typescript +// Instantiate services manually without DI +describe('UsersService', () => { + it('should create user', async () => { + // Manual instantiation bypasses DI + const repo = new UserRepository(); // Real repo! + const service = new UsersService(repo); + + const user = await service.create({ name: 'Test' }); + // This hits the real database! + }); +}); + +// Test implementation details +describe('UsersController', () => { + it('should call service', async () => { + const service = { create: jest.fn() }; + const controller = new UsersController(service as any); + + await controller.create({ name: 'Test' }); + + expect(service.create).toHaveBeenCalled(); // Tests implementation, not behavior + }); +}); +``` + +**Correct (use Test.createTestingModule with mocked dependencies):** + +```typescript +// Use Test.createTestingModule for proper DI +import { Test, TestingModule } from '@nestjs/testing'; + +describe('UsersService', () => { + let service: UsersService; + let repo: jest.Mocked; + + beforeEach(async () => { + const module: TestingModule = await Test.createTestingModule({ + providers: [ + UsersService, + { + provide: UserRepository, + useValue: { + save: jest.fn(), + findOne: jest.fn(), + find: jest.fn(), + }, + }, + ], + }).compile(); + + service = module.get(UsersService); + repo = module.get(UserRepository); + }); + + afterEach(() => { + jest.clearAllMocks(); + }); + + describe('create', () => { + it('should save and return user', async () => { + const dto = { name: 'John', email: 'john@test.com' }; + const expectedUser = { id: '1', ...dto }; + + repo.save.mockResolvedValue(expectedUser); + + const result = await service.create(dto); + + expect(result).toEqual(expectedUser); + expect(repo.save).toHaveBeenCalledWith(dto); + }); + + it('should throw on duplicate email', async () => { + repo.findOne.mockResolvedValue({ id: '1', email: 'test@test.com' }); + + await expect( + service.create({ name: 'Test', email: 'test@test.com' }), + ).rejects.toThrow(ConflictException); + }); + }); + + describe('findById', () => { + it('should return user when found', async () => { + const user = { id: '1', name: 'John' }; + repo.findOne.mockResolvedValue(user); + + const result = await service.findById('1'); + + expect(result).toEqual(user); + }); + + it('should throw NotFoundException when not found', async () => { + repo.findOne.mockResolvedValue(null); + + await expect(service.findById('999')).rejects.toThrow(NotFoundException); + }); + }); +}); + +// Testing guards and interceptors +describe('RolesGuard', () => { + let guard: RolesGuard; + let reflector: Reflector; + + beforeEach(async () => { + const module = await Test.createTestingModule({ + providers: [RolesGuard, Reflector], + }).compile(); + + guard = module.get(RolesGuard); + reflector = module.get(Reflector); + }); + + it('should allow when no roles required', () => { + const context = createMockExecutionContext({ user: { roles: [] } }); + jest.spyOn(reflector, 'getAllAndOverride').mockReturnValue(undefined); + + expect(guard.canActivate(context)).toBe(true); + }); + + it('should allow admin for admin-only route', () => { + const context = createMockExecutionContext({ user: { roles: ['admin'] } }); + jest.spyOn(reflector, 'getAllAndOverride').mockReturnValue(['admin']); + + expect(guard.canActivate(context)).toBe(true); + }); +}); + +function createMockExecutionContext(request: Partial): ExecutionContext { + return { + switchToHttp: () => ({ + getRequest: () => request, + }), + getHandler: () => jest.fn(), + getClass: () => jest.fn(), + } as ExecutionContext; +} +``` + +Reference: [NestJS Testing](https://docs.nestjs.com/fundamentals/testing) diff --git a/.claude/skills/angular-developer b/.claude/skills/angular-developer new file mode 120000 index 000000000..f6e9d2af3 --- /dev/null +++ b/.claude/skills/angular-developer @@ -0,0 +1 @@ +../../.agents/skills/angular-developer \ No newline at end of file diff --git a/.claude/skills/nestjs-best-practices b/.claude/skills/nestjs-best-practices new file mode 120000 index 000000000..ed0955adb --- /dev/null +++ b/.claude/skills/nestjs-best-practices @@ -0,0 +1 @@ +../../.agents/skills/nestjs-best-practices \ No newline at end of file diff --git a/.config/prisma.ts b/.config/prisma.ts index 64691136c..4556ba305 100644 --- a/.config/prisma.ts +++ b/.config/prisma.ts @@ -6,6 +6,9 @@ import { join } from 'node:path'; expand(config({ quiet: true })); export default defineConfig({ + datasource: { + url: process.env.DIRECT_URL ?? process.env.DATABASE_URL + }, migrations: { path: join(__dirname, '..', 'prisma', 'migrations'), seed: `node ${join(__dirname, '..', 'prisma', 'seed.mts')}` diff --git a/.env.dev b/.env.dev index d0c9a1576..b7ad632f8 100644 --- a/.env.dev +++ b/.env.dev @@ -12,7 +12,7 @@ POSTGRES_PASSWORD= # VARIOUS ACCESS_TOKEN_SALT= -DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer +DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}?connect_timeout=300 JWT_SECRET_KEY= # DEVELOPMENT diff --git a/.env.example b/.env.example index e4a935626..1f43bfd45 100644 --- a/.env.example +++ b/.env.example @@ -12,5 +12,5 @@ POSTGRES_PASSWORD= # VARIOUS ACCESS_TOKEN_SALT= -DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer +DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?connect_timeout=300 JWT_SECRET_KEY= diff --git a/.gitignore b/.gitignore index 0f5a1651e..ab31ae269 100644 --- a/.gitignore +++ b/.gitignore @@ -32,6 +32,8 @@ npm-debug.log .env.prod .github/instructions/nx.instructions.md .nx/cache +.nx/polygraph +.nx/self-healing .nx/workspace-data /.sass-cache /connect.lock diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000..7253a5cee --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +min-release-age=7 diff --git a/.prettierignore b/.prettierignore index 27e509393..ff97b3cbc 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,7 @@ +/.agents/skills/angular-developer +/.agents/skills/nestjs-best-practices /.nx/cache +/.nx/self-healing /.nx/workspace-data /apps/client/src/polyfills.ts /dist diff --git a/.vscode/launch.json b/.vscode/launch.json index c1f19e7f0..6d36314d2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -18,12 +18,20 @@ "autoAttachChildProcesses": true, "console": "integratedTerminal", "cwd": "${workspaceFolder}/apps/api", - "envFile": "${workspaceFolder}/.env", + "env": { + "GHOSTFOLIO_ENV_FILE": "${workspaceFolder}/.env" + }, "name": "Debug API", "outFiles": ["${workspaceFolder}/dist/apps/api/**/*.js"], "program": "${workspaceFolder}/apps/api/src/main.ts", "request": "launch", - "runtimeArgs": ["--nolazy", "-r", "ts-node/register"], + "runtimeArgs": [ + "--nolazy", + "-r", + "ts-node/register", + "-r", + "${workspaceFolder}/tools/load-env.ts" + ], "skipFiles": [ "${workspaceFolder}/node_modules/**/*.js", "/**/*.js" diff --git a/CHANGELOG.md b/CHANGELOG.md index 47d2ee2e9..495618e37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,181 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## 2.255.0 - 2026-03-20 +## 3.7.0 - 2026-06-02 + +### Added + +- Added support for routing selected requests through the _OpenRouter_ `web_fetch` tool in the `FetchService` + +### Changed + +- Extended the countries mapping in the data enhancer for asset profile data via _Trackinsight_ +- Removed the deprecated attributes (`assetClass`, `assetClassLabel`, `assetSubClass`, `assetSubClassLabel`, `countries`, `currency`, `dataSource`, `holdings`, `name`, `sectors`, `symbol` and `url`) from the holdings of the portfolio details endpoint response +- Upgraded `Nx` from version `22.7.2` to `22.7.5` + +### Fixed + +- Resolved an issue in the impersonation mode where the values did not match the owner’s currency +- Fixed the environment variable expansion in the `.env` file when debugging via _Visual Studio Code_ + +## 3.6.0 - 2026-05-28 + +### Added + +- Added `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY` environment variable support to outbound HTTP requests +- Added the `FetchService` to centralize outbound HTTP requests + +### Changed + +- Extracted the floating action buttons (FAB) to a reusable component +- Upgraded `nestjs` from version `11.1.19` to `11.1.21` +- Upgraded `yahoo-finance2` from version `3.14.0` to `3.14.2` + +## 3.5.0 - 2026-05-24 + +### Added + +- Configured the `min-release-age` in `.npmrc` + +### Changed + +- Removed the deprecated attributes (`assetClass`, `countries`, `currency`, `dataSource`, `name`, `sectors`, `symbol` and `url`) from the holdings of the public portfolio endpoint response +- Removed the deprecated `api/v1/order` endpoints +- Upgraded `@keyv/redis` from version `4.4.0` to `5.1.6` + +### Fixed + +- Fixed a layout regression that caused a double scrollbar on pages without tabs +- Resolved an issue with missing cash positions caused by an incorrect data source + +## 3.4.0 - 2026-05-21 + +### Added + +- Added the icon column to the benchmark component +- Added support for the `DIRECT_URL` environment variable to enable direct database connections + +### Changed + +- Improved the pagination in the activities table of the account detail dialog +- Improved the pagination in the activities table of the holding detail dialog +- Randomized the placeholder in the assistant +- Filtered out sectors with zero weight for ETF and mutual fund assets in the _Yahoo Finance_ data enhancer +- Enabled the _Bull Dashboard_ in the admin control panel without requiring an environment variable (experimental) +- Improved the verification of the _Stripe_ checkout session when creating a subscription +- Relaxed the URL validation in the asset profile DTOs to accept both `HTTP` and `HTTPS` protocols +- Relaxed the URL validation in the platform DTOs to accept both `HTTP` and `HTTPS` protocols +- Extracted the page tabs to a reusable component +- Improved the language localization for German (`de`) +- Improved the language localization for Spanish (`es`) +- Upgraded `bull-board` from version `7.0.0` to `7.1.5` +- Upgraded `Nx` from version `22.7.1` to `22.7.2` + +### Fixed + +- Resolved an issue with the cash balance calculation of an account for `SELL` activities to ensure fees are correctly subtracted +- Resolved an exception in the portfolio details endpoint when an asset profile is unmatched + +## 3.3.0 - 2026-05-14 + +### Added + +- Added `nestjs-best-practices` skills + +### Changed + +- Deactivated asset profiles automatically on delisting in the _Financial Modeling Prep_ service +- Migrated various components from `NgClass` to class bindings +- Refreshed the cryptocurrencies list +- Improved the language localization for Spanish (`es`) +- Cleaned up the _Webpack Bundle Analyzer_ setup +- Upgraded `@internationalized/number` from version `3.6.5` to `3.6.6` +- Upgraded `@ionic/angular` from version `8.8.1` to `8.8.5` +- Upgraded `@openrouter/ai-sdk-provider` from version `0.7.2` to `2.9.0` +- Upgraded `ai` from version `4.3.16` to `6.0.174` +- Upgraded `bull-board` from version `6.20.3` to `7.0.0` +- Upgraded `countries-and-timezones` from version `3.8.0` to `3.9.0` +- Upgraded `fuse.js` from version `7.1.0` to `7.3.0` +- Upgraded `Nx` from version `22.6.5` to `22.7.1` +- Upgraded `papaparse` from version `5.3.1` to `5.5.3` +- Upgraded `prisma` from version `7.7.0` to `7.8.0` + +### Fixed + +- Synchronized the native browser elements with the theme to improve the dark mode +- Fixed a visual regression in the bottom navigation bar on mobile + +## 3.2.0 - 2026-05-03 + +### Added + +- Added `angular-developer` skills + +### Changed + +- Harmonized the unit styling in the value component +- Upgraded `stripe` from version `20.4.1` to `21.0.1` + +### Fixed + +- Resolved a validation error with an empty URL in the asset profile details dialog of the admin control panel +- Resolved an issue where charts and components defaulted to _Roboto_ instead of the preconfigured _Inter_ font family + +## 3.1.0 - 2026-04-29 + +### Added + +- Added the _EuroAlternative_ logo to the logo carousel on the landing page +- Integrated a theme switcher into _Storybook_ to support toggling between the light and dark mode + +### Changed + +- Modernized the layout of the overview tab in the admin control panel +- Improved the styling of the paginator across various table components +- Improved the language localization for German (`de`) + +### Fixed + +- Optimized the spacing of the logo in the header +- Fixed the _Storybook_ setup by resolving missing `@angular/material` styles + +## 3.0.1 - 2026-04-26 + +### Changed + +- Moved the copy-to-clipboard button for the ISIN number in the holding detail dialog from experimental to general availability +- Moved the copy-to-clipboard button for the symbol in the holding detail dialog from experimental to general availability +- Improved the styling of buttons and input fields across various components +- Upgraded `prettier` from version `3.8.2` to `3.8.3` + +### Fixed + +- Fixed the cash label in the holdings table of the portfolio holdings page +- Fixed the cash label in the holdings table of the public page + +## 3.0.0 - 2026-04-23 + +### Added + +- Added a blog post: _Announcing Ghostfolio 3.0_ + +### Changed + +- Migrated from _Material Design_ 2 to _Material Design_ 3 +- Moved the total amount, change and performance with currency effects on the analysis page from experimental to general availability +- Refreshed the cryptocurrencies list +- Upgraded `countup.js` from version `2.9.0` to `2.10.0` +- Upgraded `jsonpath` from version `1.2.1` to `1.3.0` +- Upgraded `nestjs` from version `11.1.14` to `11.1.19` +- Upgraded `ngx-markdown` from version `21.1.0` to `21.2.0` +- Upgraded `Nx` from version `22.6.4` to `22.6.5` +- Upgraded `prisma` from version `6.19.0` to `7.7.0` + +### Todo + +- **Breaking Change**: The `sslmode=prefer` parameter in `DATABASE_URL` is no longer supported. Please update your environment variables (see `.env`) to use `sslmode=require` if _SSL_ is enabled or remove the `sslmode` parameter entirely if _SSL_ is not used. + +## 2.255.0 - 2026-04-20 ### Changed @@ -22,7 +196,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed the missing value column of the accounts table component on mobile -## 2.254.0 - 2026-03-10 +## 2.254.0 - 2026-04-10 ### Added @@ -40,7 +214,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improved the style of the activity type component -## 2.253.0 - 2026-03-06 +## 2.253.0 - 2026-04-06 ### Added @@ -60,7 +234,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed the allocations by ETF provider chart on the allocations page in the _Presenter View_ - Fixed the allocations by platform chart on the allocations page in the _Presenter View_ -## 2.252.0 - 2026-03-02 +## 2.252.0 - 2026-04-02 ### Added diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 6ea0b5e40..5b1b36afb 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -84,6 +84,12 @@ https://ghostfol.io/development/storybook 1. Run `npx npm-check-updates --upgrade --target "minor" --filter "/@angular.*/"` +### NestJS + +#### Upgrade (minor versions) + +1. Run `npx npm-check-updates --upgrade --target "minor" --filter "/@nestjs.*/"` + ### Nx #### Upgrade diff --git a/README.md b/README.md index d019721c1..8557d4330 100644 --- a/README.md +++ b/README.md @@ -85,26 +85,27 @@ We provide official container images hosted on [Docker Hub](https://hub.docker.c ### Supported Environment Variables -| Name | Type | Default Value | Description | -| --------------------------- | --------------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `ACCESS_TOKEN_SALT` | `string` | | A random string used as salt for access tokens | -| `API_KEY_COINGECKO_DEMO` | `string` (optional) |   | The _CoinGecko_ Demo API key | -| `API_KEY_COINGECKO_PRO` | `string` (optional) | | The _CoinGecko_ Pro API key | -| `DATABASE_URL` | `string` | | The database connection URL, e.g. `postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}?sslmode=prefer` | -| `ENABLE_FEATURE_AUTH_TOKEN` | `boolean` (optional) | `true` | Enables authentication via security token | -| `HOST` | `string` (optional) | `0.0.0.0` | The host where the Ghostfolio application will run on | -| `JWT_SECRET_KEY` | `string` | | A random string used for _JSON Web Tokens_ (JWT) | -| `LOG_LEVELS` | `string[]` (optional) | | The logging levels for the Ghostfolio application, e.g. `["debug","error","log","warn"]` | -| `PORT` | `number` (optional) | `3333` | The port where the Ghostfolio application will run on | -| `POSTGRES_DB` | `string` | | The name of the _PostgreSQL_ database | -| `POSTGRES_PASSWORD` | `string` | | The password of the _PostgreSQL_ database | -| `POSTGRES_USER` | `string` | | The user of the _PostgreSQL_ database | -| `REDIS_DB` | `number` (optional) | `0` | The database index of _Redis_ | -| `REDIS_HOST` | `string` | | The host where _Redis_ is running | -| `REDIS_PASSWORD` | `string` | | The password of _Redis_ | -| `REDIS_PORT` | `number` | | The port where _Redis_ is running | -| `REQUEST_TIMEOUT` | `number` (optional) | `2000` | The timeout of network requests to data providers in milliseconds | -| `ROOT_URL` | `string` (optional) | `http://0.0.0.0:3333` | The root URL of the Ghostfolio application, used for generating callback URLs and external links. | +| Name | Type | Default Value | Description | +| --------------------------- | --------------------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ACCESS_TOKEN_SALT` | `string` | | A random string used as salt for access tokens | +| `API_KEY_COINGECKO_DEMO` | `string` (optional) |   | The _CoinGecko_ Demo API key | +| `API_KEY_COINGECKO_PRO` | `string` (optional) | | The _CoinGecko_ Pro API key | +| `DATABASE_URL` | `string` | | The database connection URL. If using a connection pooler, use the pooled connection URL here. e.g. `postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}` | +| `DIRECT_URL` | `string` (optional) | | The direct database connection URL used by the _Prisma CLI_ (e.g. for schema migrations) and seeding, bypassing any connection poolers (falls back to `DATABASE_URL`) | +| `ENABLE_FEATURE_AUTH_TOKEN` | `boolean` (optional) | `true` | Enables authentication via security token | +| `HOST` | `string` (optional) | `0.0.0.0` | The host where the Ghostfolio application will run on | +| `JWT_SECRET_KEY` | `string` | | A random string used for _JSON Web Tokens_ (JWT) | +| `LOG_LEVELS` | `string[]` (optional) | | The logging levels for the Ghostfolio application, e.g. `["debug","error","log","warn"]` | +| `PORT` | `number` (optional) | `3333` | The port where the Ghostfolio application will run on | +| `POSTGRES_DB` | `string` | | The name of the _PostgreSQL_ database | +| `POSTGRES_PASSWORD` | `string` | | The password of the _PostgreSQL_ database | +| `POSTGRES_USER` | `string` | | The user of the _PostgreSQL_ database | +| `REDIS_DB` | `number` (optional) | `0` | The database index of _Redis_ | +| `REDIS_HOST` | `string` | | The host where _Redis_ is running | +| `REDIS_PASSWORD` | `string` | | The password of _Redis_ | +| `REDIS_PORT` | `number` | | The port where _Redis_ is running | +| `REQUEST_TIMEOUT` | `number` (optional) | `2000` | The timeout of network requests to data providers in milliseconds | +| `ROOT_URL` | `string` (optional) | `http://0.0.0.0:3333` | The root URL of the Ghostfolio application, used for generating callback URLs and external links. | #### OpenID Connect OIDC (Experimental) diff --git a/apps/api/src/app/access/access.controller.ts b/apps/api/src/app/access/access.controller.ts index d1e3273dd..edc1b4751 100644 --- a/apps/api/src/app/access/access.controller.ts +++ b/apps/api/src/app/access/access.controller.ts @@ -2,6 +2,7 @@ import { HasPermission } from '@ghostfolio/api/decorators/has-permission.decorat import { HasPermissionGuard } from '@ghostfolio/api/guards/has-permission.guard'; import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; import { CreateAccessDto, UpdateAccessDto } from '@ghostfolio/common/dtos'; +import { SubscriptionType } from '@ghostfolio/common/enums'; import { Access, AccessSettings } from '@ghostfolio/common/interfaces'; import { permissions } from '@ghostfolio/common/permissions'; import type { RequestWithUser } from '@ghostfolio/common/types'; @@ -83,7 +84,7 @@ export class AccessController { ): Promise { if ( this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION') && - this.request.user.subscription.type === 'Basic' + this.request.user.subscription.type === SubscriptionType.Basic ) { throw new HttpException( getReasonPhrase(StatusCodes.FORBIDDEN), @@ -122,7 +123,7 @@ export class AccessController { ): Promise { if ( this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION') && - this.request.user.subscription.type === 'Basic' + this.request.user.subscription.type === SubscriptionType.Basic ) { throw new HttpException( getReasonPhrase(StatusCodes.FORBIDDEN), diff --git a/apps/api/src/app/account/account.controller.ts b/apps/api/src/app/account/account.controller.ts index 052720176..d44b716c0 100644 --- a/apps/api/src/app/account/account.controller.ts +++ b/apps/api/src/app/account/account.controller.ts @@ -1,5 +1,6 @@ import { AccountBalanceService } from '@ghostfolio/api/app/account-balance/account-balance.service'; import { PortfolioService } from '@ghostfolio/api/app/portfolio/portfolio.service'; +import { UserService } from '@ghostfolio/api/app/user/user.service'; import { HasPermission } from '@ghostfolio/api/decorators/has-permission.decorator'; import { HasPermissionGuard } from '@ghostfolio/api/guards/has-permission.guard'; import { RedactValuesInResponseInterceptor } from '@ghostfolio/api/interceptors/redact-values-in-response/redact-values-in-response.interceptor'; @@ -50,7 +51,8 @@ export class AccountController { private readonly apiService: ApiService, private readonly impersonationService: ImpersonationService, private readonly portfolioService: PortfolioService, - @Inject(REQUEST) private readonly request: RequestWithUser + @Inject(REQUEST) private readonly request: RequestWithUser, + private readonly userService: UserService ) {} @Delete(':id') @@ -137,11 +139,14 @@ export class AccountController { ): Promise { const impersonationUserId = await this.impersonationService.validateImpersonationId(impersonationId); + const userId = impersonationUserId || this.request.user.id; + + const { settings } = await this.userService.user({ id: userId }); return this.accountBalanceService.getAccountBalances({ + userId, filters: [{ id, type: 'ACCOUNT' }], - userCurrency: this.request.user.settings.settings.baseCurrency, - userId: impersonationUserId || this.request.user.id + userCurrency: settings.settings.baseCurrency }); } diff --git a/apps/api/src/app/account/account.module.ts b/apps/api/src/app/account/account.module.ts index fb89bb2b6..253c7fb1d 100644 --- a/apps/api/src/app/account/account.module.ts +++ b/apps/api/src/app/account/account.module.ts @@ -1,5 +1,6 @@ import { AccountBalanceModule } from '@ghostfolio/api/app/account-balance/account-balance.module'; import { PortfolioModule } from '@ghostfolio/api/app/portfolio/portfolio.module'; +import { UserModule } from '@ghostfolio/api/app/user/user.module'; import { RedactValuesInResponseModule } from '@ghostfolio/api/interceptors/redact-values-in-response/redact-values-in-response.module'; import { ApiModule } from '@ghostfolio/api/services/api/api.module'; import { ConfigurationModule } from '@ghostfolio/api/services/configuration/configuration.module'; @@ -23,7 +24,8 @@ import { AccountService } from './account.service'; ImpersonationModule, PortfolioModule, PrismaModule, - RedactValuesInResponseModule + RedactValuesInResponseModule, + UserModule ], providers: [AccountService] }) diff --git a/apps/api/src/app/activities/activities.controller.ts b/apps/api/src/app/activities/activities.controller.ts index 6b0440dc4..e847f600d 100644 --- a/apps/api/src/app/activities/activities.controller.ts +++ b/apps/api/src/app/activities/activities.controller.ts @@ -43,11 +43,7 @@ import { StatusCodes, getReasonPhrase } from 'http-status-codes'; import { ActivitiesService } from './activities.service'; -@Controller([ - 'activities', - /** @deprecated */ - 'order' -]) +@Controller('activities') export class ActivitiesController { public constructor( private readonly activitiesService: ActivitiesService, diff --git a/apps/api/src/app/activities/activities.service.ts b/apps/api/src/app/activities/activities.service.ts index 58b9c11a4..821185e11 100644 --- a/apps/api/src/app/activities/activities.service.ts +++ b/apps/api/src/app/activities/activities.service.ts @@ -214,19 +214,18 @@ export class ActivitiesService { }); if (updateAccountBalance === true) { - let amount = new Big(data.unitPrice) - .mul(data.quantity) - .plus(data.fee) - .toNumber(); + let amount = new Big(data.unitPrice).mul(data.quantity); if (['BUY', 'FEE'].includes(data.type)) { - amount = new Big(amount).mul(-1).toNumber(); + amount = amount.mul(-1); } + amount = amount.minus(data.fee); + await this.accountService.updateAccountBalance({ accountId, - amount, userId, + amount: amount.toNumber(), currency: data.SymbolProfile.connectOrCreate.create.currency, date: data.date as Date }); diff --git a/apps/api/src/app/admin/admin.service.ts b/apps/api/src/app/admin/admin.service.ts index 27abb6254..0bf5c3925 100644 --- a/apps/api/src/app/admin/admin.service.ts +++ b/apps/api/src/app/admin/admin.service.ts @@ -36,7 +36,6 @@ import { BadRequestException, HttpException, Injectable, - Logger, NotFoundException } from '@nestjs/common'; import { @@ -44,7 +43,6 @@ import { AssetSubClass, DataSource, Prisma, - PrismaClient, Property, SymbolProfile } from '@prisma/client'; @@ -280,186 +278,178 @@ export class AdminService { const extendedPrismaClient = this.getExtendedPrismaClient(); - try { - const symbolProfileResult = await Promise.all([ - extendedPrismaClient.symbolProfile.findMany({ - skip, - take, - where, - orderBy: [...orderBy, { id: sortDirection }], - select: { - _count: { - select: { - activities: true, - watchedBy: true - } - }, - activities: { - orderBy: [{ date: 'asc' }], - select: { date: true }, - take: 1 - }, - assetClass: true, - assetSubClass: true, - comment: true, - countries: true, - currency: true, - dataSource: true, - id: true, - isActive: true, - isUsedByUsersWithSubscription: true, - name: true, - scraperConfiguration: true, - sectors: true, - symbol: true, - SymbolProfileOverrides: true - } - }), - this.prismaService.symbolProfile.count({ where }) - ]); - const assetProfiles = symbolProfileResult[0]; - let count = symbolProfileResult[1]; - - const lastMarketPrices = await this.prismaService.marketData.findMany({ - distinct: ['dataSource', 'symbol'], - orderBy: { date: 'desc' }, + const symbolProfileResult = await Promise.all([ + extendedPrismaClient.symbolProfile.findMany({ + skip, + take, + where, + orderBy: [...orderBy, { id: sortDirection }], select: { + _count: { + select: { + activities: true, + watchedBy: true + } + }, + activities: { + orderBy: [{ date: 'asc' }], + select: { date: true }, + take: 1 + }, + assetClass: true, + assetSubClass: true, + comment: true, + countries: true, + currency: true, dataSource: true, - marketPrice: true, - symbol: true + id: true, + isActive: true, + isUsedByUsersWithSubscription: true, + name: true, + scraperConfiguration: true, + sectors: true, + symbol: true, + SymbolProfileOverrides: true + } + }), + this.prismaService.symbolProfile.count({ where }) + ]); + const assetProfiles = symbolProfileResult[0]; + let count = symbolProfileResult[1]; + + const lastMarketPrices = await this.prismaService.marketData.findMany({ + distinct: ['dataSource', 'symbol'], + orderBy: { date: 'desc' }, + select: { + dataSource: true, + marketPrice: true, + symbol: true + }, + where: { + dataSource: { + in: assetProfiles.map(({ dataSource }) => { + return dataSource; + }) }, - where: { - dataSource: { - in: assetProfiles.map(({ dataSource }) => { - return dataSource; - }) - }, - symbol: { - in: assetProfiles.map(({ symbol }) => { - return symbol; - }) - } + symbol: { + in: assetProfiles.map(({ symbol }) => { + return symbol; + }) } - }); + } + }); - const lastMarketPriceMap = new Map(); + const lastMarketPriceMap = new Map(); - for (const { dataSource, marketPrice, symbol } of lastMarketPrices) { - lastMarketPriceMap.set( - getAssetProfileIdentifier({ dataSource, symbol }), - marketPrice - ); - } + for (const { dataSource, marketPrice, symbol } of lastMarketPrices) { + lastMarketPriceMap.set( + getAssetProfileIdentifier({ dataSource, symbol }), + marketPrice + ); + } + + let marketData: AdminMarketDataItem[] = await Promise.all( + assetProfiles.map( + async ({ + _count, + activities, + assetClass, + assetSubClass, + comment, + countries, + currency, + dataSource, + id, + isActive, + isUsedByUsersWithSubscription, + name, + sectors, + symbol, + SymbolProfileOverrides + }) => { + let countriesCount = countries ? Object.keys(countries).length : 0; + + const lastMarketPrice = lastMarketPriceMap.get( + getAssetProfileIdentifier({ dataSource, symbol }) + ); + + const marketDataItemCount = + marketDataItems.find((marketDataItem) => { + return ( + marketDataItem.dataSource === dataSource && + marketDataItem.symbol === symbol + ); + })?._count ?? 0; + + let sectorsCount = sectors ? Object.keys(sectors).length : 0; + + if (SymbolProfileOverrides) { + assetClass = SymbolProfileOverrides.assetClass ?? assetClass; + assetSubClass = + SymbolProfileOverrides.assetSubClass ?? assetSubClass; + + if ( + (SymbolProfileOverrides.countries as unknown as Prisma.JsonArray) + ?.length > 0 + ) { + countriesCount = ( + SymbolProfileOverrides.countries as unknown as Prisma.JsonArray + ).length; + } + + name = SymbolProfileOverrides.name ?? name; + + if ( + (SymbolProfileOverrides.sectors as unknown as Sector[])?.length > + 0 + ) { + sectorsCount = ( + SymbolProfileOverrides.sectors as unknown as Prisma.JsonArray + ).length; + } + } - let marketData: AdminMarketDataItem[] = await Promise.all( - assetProfiles.map( - async ({ - _count, - activities, + return { assetClass, assetSubClass, comment, - countries, + countriesCount, currency, dataSource, id, isActive, - isUsedByUsersWithSubscription, + lastMarketPrice, + marketDataItemCount, name, - sectors, + sectorsCount, symbol, - SymbolProfileOverrides - }) => { - let countriesCount = countries ? Object.keys(countries).length : 0; - - const lastMarketPrice = lastMarketPriceMap.get( - getAssetProfileIdentifier({ dataSource, symbol }) - ); - - const marketDataItemCount = - marketDataItems.find((marketDataItem) => { - return ( - marketDataItem.dataSource === dataSource && - marketDataItem.symbol === symbol - ); - })?._count ?? 0; - - let sectorsCount = sectors ? Object.keys(sectors).length : 0; - - if (SymbolProfileOverrides) { - assetClass = SymbolProfileOverrides.assetClass ?? assetClass; - assetSubClass = - SymbolProfileOverrides.assetSubClass ?? assetSubClass; - - if ( - ( - SymbolProfileOverrides.countries as unknown as Prisma.JsonArray - )?.length > 0 - ) { - countriesCount = ( - SymbolProfileOverrides.countries as unknown as Prisma.JsonArray - ).length; - } - - name = SymbolProfileOverrides.name ?? name; - - if ( - (SymbolProfileOverrides.sectors as unknown as Sector[]) - ?.length > 0 - ) { - sectorsCount = ( - SymbolProfileOverrides.sectors as unknown as Prisma.JsonArray - ).length; - } - } - - return { - assetClass, - assetSubClass, - comment, - currency, - countriesCount, - dataSource, - id, - isActive, - lastMarketPrice, - name, - symbol, - marketDataItemCount, - sectorsCount, - activitiesCount: _count.activities, - date: activities?.[0]?.date, - isUsedByUsersWithSubscription: - await isUsedByUsersWithSubscription, - watchedByCount: _count.watchedBy - }; - } - ) - ); - - if (presetId) { - if (presetId === 'ETF_WITHOUT_COUNTRIES') { - marketData = marketData.filter(({ countriesCount }) => { - return countriesCount === 0; - }); - } else if (presetId === 'ETF_WITHOUT_SECTORS') { - marketData = marketData.filter(({ sectorsCount }) => { - return sectorsCount === 0; - }); + activitiesCount: _count.activities, + date: activities?.[0]?.date, + isUsedByUsersWithSubscription: await isUsedByUsersWithSubscription, + watchedByCount: _count.watchedBy + }; } + ) + ); - count = marketData.length; + if (presetId) { + if (presetId === 'ETF_WITHOUT_COUNTRIES') { + marketData = marketData.filter(({ countriesCount }) => { + return countriesCount === 0; + }); + } else if (presetId === 'ETF_WITHOUT_SECTORS') { + marketData = marketData.filter(({ sectorsCount }) => { + return sectorsCount === 0; + }); } - return { - count, - marketData - }; - } finally { - await extendedPrismaClient.$disconnect(); - - Logger.debug('Disconnect extended prisma client', 'AdminService'); + count = marketData.length; } + + return { + count, + marketData + }; } public async getMarketDataBySymbol({ @@ -586,8 +576,8 @@ export class AdminService { } try { - Promise.all([ - await this.symbolProfileService.updateAssetProfileIdentifier( + await Promise.all([ + this.symbolProfileService.updateAssetProfileIdentifier( { dataSource, symbol @@ -597,7 +587,7 @@ export class AdminService { symbol: newSymbol as string } ), - await this.marketDataService.updateAssetProfileIdentifier( + this.marketDataService.updateAssetProfileIdentifier( { dataSource, symbol @@ -609,12 +599,15 @@ export class AdminService { ) ]); - return this.symbolProfileService.getSymbolProfiles([ - { - dataSource: DataSource[newDataSource.toString()], - symbol: newSymbol as string - } - ])?.[0]; + const [updatedAssetProfile] = + await this.symbolProfileService.getSymbolProfiles([ + { + dataSource: DataSource[newDataSource.toString()], + symbol: newSymbol as string + } + ]); + + return updatedAssetProfile; } catch { throw new HttpException( getReasonPhrase(StatusCodes.BAD_REQUEST), @@ -660,12 +653,15 @@ export class AdminService { updatedSymbolProfile ); - return this.symbolProfileService.getSymbolProfiles([ - { - dataSource: dataSource as DataSource, - symbol: symbol as string - } - ])?.[0]; + const [updatedAssetProfile] = + await this.symbolProfileService.getSymbolProfiles([ + { + dataSource: dataSource as DataSource, + symbol: symbol as string + } + ]); + + return updatedAssetProfile; } } @@ -704,8 +700,6 @@ export class AdminService { } private getExtendedPrismaClient() { - Logger.debug('Connect extended prisma client', 'AdminService'); - const symbolProfileExtension = Prisma.defineExtension((client) => { return client.$extends({ result: { @@ -746,7 +740,7 @@ export class AdminService { }); }); - return new PrismaClient().$extends(symbolProfileExtension); + return this.prismaService.$extends(symbolProfileExtension); } private async getMarketDataForCurrencies(): Promise { diff --git a/apps/api/src/app/app.module.ts b/apps/api/src/app/app.module.ts index 3316f9ce4..4857c7e14 100644 --- a/apps/api/src/app/app.module.ts +++ b/apps/api/src/app/app.module.ts @@ -74,29 +74,25 @@ import { UserModule } from './user/user.module'; AuthDeviceModule, AuthModule, BenchmarksModule, - ...(process.env.ENABLE_FEATURE_BULL_BOARD === 'true' - ? [ - BullBoardModule.forRoot({ - adapter: ExpressAdapter, - boardOptions: { - uiConfig: { - boardLogo: { - height: 0, - path: '', - width: 0 - }, - boardTitle: 'Job Queues', - favIcon: { - alternative: '/assets/favicon-32x32.png', - default: '/assets/favicon-32x32.png' - } - } - }, - middleware: BullBoardAuthMiddleware, - route: BULL_BOARD_ROUTE - }) - ] - : []), + BullBoardModule.forRoot({ + adapter: ExpressAdapter, + boardOptions: { + uiConfig: { + boardLogo: { + height: 0, + path: '', + width: 0 + }, + boardTitle: 'Job Queues', + favIcon: { + alternative: '/assets/favicon-32x32.png', + default: '/assets/favicon-32x32.png' + } + } + }, + middleware: BullBoardAuthMiddleware, + route: BULL_BOARD_ROUTE + }), BullModule.forRoot({ redis: { db: parseInt(process.env.REDIS_DB ?? '0', 10), diff --git a/apps/api/src/app/auth/auth.module.ts b/apps/api/src/app/auth/auth.module.ts index 9fc5d0925..f55093bbf 100644 --- a/apps/api/src/app/auth/auth.module.ts +++ b/apps/api/src/app/auth/auth.module.ts @@ -5,6 +5,8 @@ import { UserModule } from '@ghostfolio/api/app/user/user.module'; import { ApiKeyService } from '@ghostfolio/api/services/api-key/api-key.service'; import { ConfigurationModule } from '@ghostfolio/api/services/configuration/configuration.module'; import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; +import { FetchModule } from '@ghostfolio/api/services/fetch/fetch.module'; +import { FetchService } from '@ghostfolio/api/services/fetch/fetch.service'; import { PrismaModule } from '@ghostfolio/api/services/prisma/prisma.module'; import { PropertyModule } from '@ghostfolio/api/services/property/property.module'; @@ -23,6 +25,7 @@ import { OidcStrategy } from './oidc.strategy'; controllers: [AuthController], imports: [ ConfigurationModule, + FetchModule, JwtModule.register({ secret: process.env.JWT_SECRET_KEY, signOptions: { expiresIn: '180 days' } @@ -40,11 +43,12 @@ import { OidcStrategy } from './oidc.strategy'; GoogleStrategy, JwtStrategy, { - inject: [AuthService, ConfigurationService], + inject: [AuthService, ConfigurationService, FetchService], provide: OidcStrategy, useFactory: async ( authService: AuthService, - configurationService: ConfigurationService + configurationService: ConfigurationService, + fetchService: FetchService ) => { const isOidcEnabled = configurationService.get( 'ENABLE_FEATURE_AUTH_OIDC' @@ -81,7 +85,7 @@ import { OidcStrategy } from './oidc.strategy'; } else { // Fetch OIDC configuration from discovery endpoint try { - const response = await fetch( + const response = await fetchService.fetch( `${issuer}/.well-known/openid-configuration` ); diff --git a/apps/api/src/app/endpoints/ai/ai.module.ts b/apps/api/src/app/endpoints/ai/ai.module.ts index eab4ecf8b..5267f40c8 100644 --- a/apps/api/src/app/endpoints/ai/ai.module.ts +++ b/apps/api/src/app/endpoints/ai/ai.module.ts @@ -28,6 +28,7 @@ import { AiService } from './ai.service'; @Module({ controllers: [AiController], + exports: [AiService], imports: [ ActivitiesModule, ApiModule, diff --git a/apps/api/src/app/endpoints/ai/ai.service.ts b/apps/api/src/app/endpoints/ai/ai.service.ts index d07768d69..d0ef17844 100644 --- a/apps/api/src/app/endpoints/ai/ai.service.ts +++ b/apps/api/src/app/endpoints/ai/ai.service.ts @@ -1,4 +1,5 @@ import { PortfolioService } from '@ghostfolio/api/app/portfolio/portfolio.service'; +import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; import { PropertyService } from '@ghostfolio/api/services/property/property.service'; import { PROPERTY_API_KEY_OPENROUTER, @@ -36,11 +37,18 @@ export class AiService { ]; public constructor( + private readonly configurationService: ConfigurationService, private readonly portfolioService: PortfolioService, private readonly propertyService: PropertyService ) {} - public async generateText({ prompt }: { prompt: string }) { + public async generateText({ + prompt, + requestTimeout = this.configurationService.get('REQUEST_TIMEOUT') + }: { + prompt: string; + requestTimeout?: number; + }) { const openRouterApiKey = await this.propertyService.getByKey( PROPERTY_API_KEY_OPENROUTER ); @@ -55,7 +63,8 @@ export class AiService { return generateText({ prompt, - model: openRouterService.chat(openRouterModel) + model: openRouterService.chat(openRouterModel), + timeout: requestTimeout }); } @@ -92,11 +101,13 @@ export class AiService { .map( ({ allocationInPercentage, - assetClass, - assetSubClass, - currency, - name: label, - symbol + assetProfile: { + assetClass, + assetSubClass, + currency, + name: label, + symbol + } }) => { return AiService.HOLDINGS_TABLE_COLUMN_DEFINITIONS.reduce( (row, { key, name }) => { diff --git a/apps/api/src/app/endpoints/benchmarks/benchmarks.controller.ts b/apps/api/src/app/endpoints/benchmarks/benchmarks.controller.ts index 970925777..74bb6b672 100644 --- a/apps/api/src/app/endpoints/benchmarks/benchmarks.controller.ts +++ b/apps/api/src/app/endpoints/benchmarks/benchmarks.controller.ts @@ -5,7 +5,10 @@ import { TransformDataSourceInResponseInterceptor } from '@ghostfolio/api/interc import { ApiService } from '@ghostfolio/api/services/api/api.service'; import { BenchmarkService } from '@ghostfolio/api/services/benchmark/benchmark.service'; import { getIntervalFromDateRange } from '@ghostfolio/common/calculation-helper'; -import { HEADER_KEY_IMPERSONATION } from '@ghostfolio/common/config'; +import { + DEFAULT_DATE_RANGE, + HEADER_KEY_IMPERSONATION +} from '@ghostfolio/common/config'; import type { AssetProfileIdentifier, BenchmarkMarketDataDetailsResponse, @@ -118,7 +121,7 @@ export class BenchmarksController { @Param('dataSource') dataSource: DataSource, @Param('startDateString') startDateString: string, @Param('symbol') symbol: string, - @Query('range') dateRange: DateRange = 'max', + @Query('range') dateRange: DateRange = DEFAULT_DATE_RANGE, @Query('accounts') filterByAccounts?: string, @Query('assetClasses') filterByAssetClasses?: string, @Query('dataSource') filterByDataSource?: string, diff --git a/apps/api/src/app/endpoints/data-providers/ghostfolio/ghostfolio.module.ts b/apps/api/src/app/endpoints/data-providers/ghostfolio/ghostfolio.module.ts index 01691bcf4..484f30ee3 100644 --- a/apps/api/src/app/endpoints/data-providers/ghostfolio/ghostfolio.module.ts +++ b/apps/api/src/app/endpoints/data-providers/ghostfolio/ghostfolio.module.ts @@ -12,6 +12,7 @@ import { GoogleSheetsService } from '@ghostfolio/api/services/data-provider/goog import { ManualService } from '@ghostfolio/api/services/data-provider/manual/manual.service'; import { RapidApiService } from '@ghostfolio/api/services/data-provider/rapid-api/rapid-api.service'; import { YahooFinanceService } from '@ghostfolio/api/services/data-provider/yahoo-finance/yahoo-finance.service'; +import { FetchModule } from '@ghostfolio/api/services/fetch/fetch.module'; import { MarketDataModule } from '@ghostfolio/api/services/market-data/market-data.module'; import { PrismaModule } from '@ghostfolio/api/services/prisma/prisma.module'; import { PropertyModule } from '@ghostfolio/api/services/property/property.module'; @@ -27,6 +28,7 @@ import { GhostfolioService } from './ghostfolio.service'; imports: [ CryptocurrencyModule, DataProviderModule, + FetchModule, MarketDataModule, PrismaModule, PropertyModule, diff --git a/apps/api/src/app/endpoints/data-providers/ghostfolio/ghostfolio.service.ts b/apps/api/src/app/endpoints/data-providers/ghostfolio/ghostfolio.service.ts index d088bf3ac..3f91dbecc 100644 --- a/apps/api/src/app/endpoints/data-providers/ghostfolio/ghostfolio.service.ts +++ b/apps/api/src/app/endpoints/data-providers/ghostfolio/ghostfolio.service.ts @@ -8,6 +8,7 @@ import { GetQuotesParams, GetSearchParams } from '@ghostfolio/api/services/data-provider/interfaces/data-provider.interface'; +import { FetchService } from '@ghostfolio/api/services/fetch/fetch.service'; import { PrismaService } from '@ghostfolio/api/services/prisma/prisma.service'; import { PropertyService } from '@ghostfolio/api/services/property/property.service'; import { @@ -36,6 +37,7 @@ export class GhostfolioService { public constructor( private readonly configurationService: ConfigurationService, private readonly dataProviderService: DataProviderService, + private readonly fetchService: FetchService, private readonly prismaService: PrismaService, private readonly propertyService: PropertyService ) {} @@ -355,6 +357,7 @@ export class GhostfolioService { private getDataProviderInfo(): DataProviderInfo { const ghostfolioDataProviderService = new GhostfolioDataProviderService( this.configurationService, + this.fetchService, this.propertyService ); diff --git a/apps/api/src/app/endpoints/market-data/market-data.controller.ts b/apps/api/src/app/endpoints/market-data/market-data.controller.ts index 0dae82d2c..f6857283b 100644 --- a/apps/api/src/app/endpoints/market-data/market-data.controller.ts +++ b/apps/api/src/app/endpoints/market-data/market-data.controller.ts @@ -120,10 +120,10 @@ export class MarketDataController { if (!canReadAllAssetProfiles && !canReadOwnAssetProfile) { throw new HttpException( - assetProfile.userId + assetProfile?.userId ? getReasonPhrase(StatusCodes.NOT_FOUND) : getReasonPhrase(StatusCodes.FORBIDDEN), - assetProfile.userId ? StatusCodes.NOT_FOUND : StatusCodes.FORBIDDEN + assetProfile?.userId ? StatusCodes.NOT_FOUND : StatusCodes.FORBIDDEN ); } diff --git a/apps/api/src/app/endpoints/public/public.controller.ts b/apps/api/src/app/endpoints/public/public.controller.ts index 08fa8377c..b760e54ff 100644 --- a/apps/api/src/app/endpoints/public/public.controller.ts +++ b/apps/api/src/app/endpoints/public/public.controller.ts @@ -7,6 +7,7 @@ import { TransformDataSourceInResponseInterceptor } from '@ghostfolio/api/interc import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data/exchange-rate-data.service'; import { DEFAULT_CURRENCY } from '@ghostfolio/common/config'; +import { SubscriptionType } from '@ghostfolio/common/enums'; import { getSum } from '@ghostfolio/common/helper'; import { AccessSettings, @@ -24,7 +25,11 @@ import { UseInterceptors } from '@nestjs/common'; import { REQUEST } from '@nestjs/core'; -import { Type as ActivityType, AssetSubClass } from '@prisma/client'; +import { + AssetClass, + AssetSubClass, + Type as ActivityType +} from '@prisma/client'; import { Big } from 'big.js'; import { StatusCodes, getReasonPhrase } from 'http-status-codes'; @@ -62,7 +67,7 @@ export class PublicController { }); if (this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION')) { - hasDetails = user.subscription.type === 'Premium'; + hasDetails = user.subscription.type === SubscriptionType.Premium; } // Get filter configuration from access settings @@ -147,8 +152,9 @@ export class PublicController { const filteredHoldings = Object.fromEntries( Object.entries(holdings).filter(([, holding]) => { // Remove only cash holdings that match the base currency - const isCash = holding.assetSubClass === AssetSubClass.CASH; - const isBaseCurrency = holding.symbol === baseCurrency; + const isCash = + holding.assetProfile.assetSubClass === AssetSubClass.CASH; + const isBaseCurrency = holding.assetProfile.symbol === baseCurrency; return !(isCash && isBaseCurrency); }) ); @@ -249,11 +255,11 @@ export class PublicController { const totalValue = getSum( Object.values(filteredHoldings).map( - ({ currency, marketPrice, quantity }) => { + ({ assetProfile, marketPrice, quantity }) => { return new Big( this.exchangeRateDataService.toCurrency( quantity * marketPrice, - currency, + assetProfile.currency, this.request.user?.settings?.settings.baseCurrency ?? DEFAULT_CURRENCY ) @@ -268,19 +274,41 @@ export class PublicController { publicPortfolioResponse.holdings[symbol] = { allocationInPercentage: portfolioPosition.valueInBaseCurrency / totalValue, - assetClass: hasDetails ? portfolioPosition.assetClass : undefined, - assetProfile: hasDetails ? portfolioPosition.assetProfile : undefined, - countries: hasDetails ? portfolioPosition.countries : [], - currency: hasDetails ? portfolioPosition.currency : undefined, - dataSource: portfolioPosition.dataSource, + assetProfile: { + ...portfolioPosition.assetProfile, + assetClass: + hasDetails || + portfolioPosition.assetProfile.assetClass === AssetClass.LIQUIDITY + ? portfolioPosition.assetProfile.assetClass + : undefined, + assetClassLabel: + hasDetails || + portfolioPosition.assetProfile.assetClass === AssetClass.LIQUIDITY + ? portfolioPosition.assetProfile.assetClassLabel + : undefined, + assetSubClass: + hasDetails || + portfolioPosition.assetProfile.assetSubClass === AssetSubClass.CASH + ? portfolioPosition.assetProfile.assetSubClass + : undefined, + assetSubClassLabel: + hasDetails || + portfolioPosition.assetProfile.assetSubClass === AssetSubClass.CASH + ? portfolioPosition.assetProfile.assetSubClassLabel + : undefined, + ...(hasDetails + ? {} + : { + countries: [], + currency: undefined, + holdings: [], + sectors: [] + }) + }, dateOfFirstActivity: portfolioPosition.dateOfFirstActivity, markets: hasDetails ? portfolioPosition.markets : undefined, - name: portfolioPosition.name, netPerformancePercentWithCurrencyEffect: portfolioPosition.netPerformancePercentWithCurrencyEffect, - sectors: hasDetails ? portfolioPosition.sectors : [], - symbol: portfolioPosition.symbol, - url: portfolioPosition.url, valueInPercentage: portfolioPosition.valueInBaseCurrency / totalValue }; } diff --git a/apps/api/src/app/endpoints/sitemap/sitemap.service.ts b/apps/api/src/app/endpoints/sitemap/sitemap.service.ts index e7e05330f..cf4b5052f 100644 --- a/apps/api/src/app/endpoints/sitemap/sitemap.service.ts +++ b/apps/api/src/app/endpoints/sitemap/sitemap.service.ts @@ -120,6 +120,10 @@ export class SitemapService { { languageCode: 'en', routerLink: ['2025', '11', 'black-weeks-2025'] + }, + { + languageCode: 'en', + routerLink: ['2026', '04', 'ghostfolio-3'] } ] .map(({ languageCode, routerLink }) => { diff --git a/apps/api/src/app/health/health.controller.ts b/apps/api/src/app/health/health.controller.ts index 5542ae933..35f3fa348 100644 --- a/apps/api/src/app/health/health.controller.ts +++ b/apps/api/src/app/health/health.controller.ts @@ -1,5 +1,7 @@ +import { AiService } from '@ghostfolio/api/app/endpoints/ai/ai.service'; import { TransformDataSourceInRequestInterceptor } from '@ghostfolio/api/interceptors/transform-data-source-in-request/transform-data-source-in-request.interceptor'; import { + AiServiceHealthResponse, DataEnhancerHealthResponse, DataProviderHealthResponse } from '@ghostfolio/common/interfaces'; @@ -9,6 +11,7 @@ import { Get, HttpException, HttpStatus, + Logger, Param, Res, UseInterceptors @@ -21,7 +24,10 @@ import { HealthService } from './health.service'; @Controller('health') export class HealthController { - public constructor(private readonly healthService: HealthService) {} + public constructor( + private readonly aiService: AiService, + private readonly healthService: HealthService + ) {} @Get() public async getHealth(@Res() response: Response) { @@ -40,6 +46,29 @@ export class HealthController { } } + @Get('ai') + public async getHealthOfAiService( + @Res() response: Response + ): Promise> { + try { + const { text } = await this.aiService.generateText({ + prompt: `Reply with the word "OK" and nothing else.` + }); + + if (text === 'OK') { + return response + .status(HttpStatus.OK) + .json({ status: getReasonPhrase(StatusCodes.OK) }); + } + } catch (error) { + Logger.error(error, 'HealthController'); + } + + return response + .status(HttpStatus.SERVICE_UNAVAILABLE) + .json({ status: getReasonPhrase(StatusCodes.SERVICE_UNAVAILABLE) }); + } + @Get('data-enhancer/:name') public async getHealthOfDataEnhancer( @Param('name') name: string, diff --git a/apps/api/src/app/health/health.module.ts b/apps/api/src/app/health/health.module.ts index b8c4d5810..c36924121 100644 --- a/apps/api/src/app/health/health.module.ts +++ b/apps/api/src/app/health/health.module.ts @@ -1,3 +1,4 @@ +import { AiModule } from '@ghostfolio/api/app/endpoints/ai/ai.module'; import { RedisCacheModule } from '@ghostfolio/api/app/redis-cache/redis-cache.module'; import { TransformDataSourceInRequestModule } from '@ghostfolio/api/interceptors/transform-data-source-in-request/transform-data-source-in-request.module'; import { DataEnhancerModule } from '@ghostfolio/api/services/data-provider/data-enhancer/data-enhancer.module'; @@ -12,6 +13,7 @@ import { HealthService } from './health.service'; @Module({ controllers: [HealthController], imports: [ + AiModule, DataEnhancerModule, DataProviderModule, PropertyModule, diff --git a/apps/api/src/app/logo/logo.module.ts b/apps/api/src/app/logo/logo.module.ts index 1f59df1c8..8eede126a 100644 --- a/apps/api/src/app/logo/logo.module.ts +++ b/apps/api/src/app/logo/logo.module.ts @@ -1,5 +1,6 @@ import { TransformDataSourceInRequestModule } from '@ghostfolio/api/interceptors/transform-data-source-in-request/transform-data-source-in-request.module'; import { ConfigurationModule } from '@ghostfolio/api/services/configuration/configuration.module'; +import { FetchModule } from '@ghostfolio/api/services/fetch/fetch.module'; import { SymbolProfileModule } from '@ghostfolio/api/services/symbol-profile/symbol-profile.module'; import { Module } from '@nestjs/common'; @@ -11,6 +12,7 @@ import { LogoService } from './logo.service'; controllers: [LogoController], imports: [ ConfigurationModule, + FetchModule, SymbolProfileModule, TransformDataSourceInRequestModule ], diff --git a/apps/api/src/app/logo/logo.service.ts b/apps/api/src/app/logo/logo.service.ts index ba1acdd29..551d62438 100644 --- a/apps/api/src/app/logo/logo.service.ts +++ b/apps/api/src/app/logo/logo.service.ts @@ -1,4 +1,5 @@ import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; +import { FetchService } from '@ghostfolio/api/services/fetch/fetch.service'; import { SymbolProfileService } from '@ghostfolio/api/services/symbol-profile/symbol-profile.service'; import { AssetProfileIdentifier } from '@ghostfolio/common/interfaces'; @@ -10,6 +11,7 @@ import { StatusCodes, getReasonPhrase } from 'http-status-codes'; export class LogoService { public constructor( private readonly configurationService: ConfigurationService, + private readonly fetchService: FetchService, private readonly symbolProfileService: SymbolProfileService ) {} @@ -43,15 +45,17 @@ export class LogoService { } private async getBuffer(aUrl: string) { - const blob = await fetch( - `https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${aUrl}&size=64`, - { - headers: { 'User-Agent': 'request' }, - signal: AbortSignal.timeout( - this.configurationService.get('REQUEST_TIMEOUT') - ) - } - ).then((res) => res.blob()); + const blob = await this.fetchService + .fetch( + `https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${aUrl}&size=64`, + { + headers: { 'User-Agent': 'request' }, + signal: AbortSignal.timeout( + this.configurationService.get('REQUEST_TIMEOUT') + ) + } + ) + .then((res) => res.blob()); return { buffer: await blob.arrayBuffer().then((arrayBuffer) => { diff --git a/apps/api/src/app/portfolio/current-rate.service.ts b/apps/api/src/app/portfolio/current-rate.service.ts index b454b01cd..f0a451975 100644 --- a/apps/api/src/app/portfolio/current-rate.service.ts +++ b/apps/api/src/app/portfolio/current-rate.service.ts @@ -2,7 +2,10 @@ import { ActivitiesService } from '@ghostfolio/api/app/activities/activities.ser import { LogPerformance } from '@ghostfolio/api/interceptors/performance-logging/performance-logging.interceptor'; import { DataProviderService } from '@ghostfolio/api/services/data-provider/data-provider.service'; import { MarketDataService } from '@ghostfolio/api/services/market-data/market-data.service'; -import { resetHours } from '@ghostfolio/common/helper'; +import { + getAssetProfileIdentifier, + resetHours +} from '@ghostfolio/common/helper'; import { AssetProfileIdentifier, DataProviderInfo, @@ -114,8 +117,8 @@ export class CurrentRateService { errors: quoteErrors.map(({ dataSource, symbol }) => { return { dataSource, symbol }; }), - values: uniqBy(values, ({ date, symbol }) => { - return `${date}-${symbol}`; + values: uniqBy(values, ({ dataSource, date, symbol }) => { + return `${date}-${getAssetProfileIdentifier({ dataSource, symbol })}`; }) }; @@ -124,7 +127,11 @@ export class CurrentRateService { try { // If missing quote, fallback to the latest available historical market price let value: GetValueObject = response.values.find((currentValue) => { - return currentValue.symbol === symbol && isToday(currentValue.date); + return ( + currentValue.dataSource === dataSource && + currentValue.symbol === symbol && + isToday(currentValue.date) + ); }); if (!value) { @@ -147,7 +154,11 @@ export class CurrentRateService { const [latestValue] = response.values .filter((currentValue) => { - return currentValue.symbol === symbol && currentValue.marketPrice; + return ( + currentValue.dataSource === dataSource && + currentValue.marketPrice && + currentValue.symbol === symbol + ); }) .sort((a, b) => { if (a.date < b.date) { diff --git a/apps/api/src/app/portfolio/portfolio.controller.ts b/apps/api/src/app/portfolio/portfolio.controller.ts index 9c41aecb9..ca94605f9 100644 --- a/apps/api/src/app/portfolio/portfolio.controller.ts +++ b/apps/api/src/app/portfolio/portfolio.controller.ts @@ -1,4 +1,5 @@ import { ActivitiesService } from '@ghostfolio/api/app/activities/activities.service'; +import { UserService } from '@ghostfolio/api/app/user/user.service'; import { HasPermission } from '@ghostfolio/api/decorators/has-permission.decorator'; import { HasPermissionGuard } from '@ghostfolio/api/guards/has-permission.guard'; import { @@ -14,9 +15,11 @@ import { ConfigurationService } from '@ghostfolio/api/services/configuration/con import { ImpersonationService } from '@ghostfolio/api/services/impersonation/impersonation.service'; import { getIntervalFromDateRange } from '@ghostfolio/common/calculation-helper'; import { + DEFAULT_DATE_RANGE, HEADER_KEY_IMPERSONATION, UNKNOWN_KEY } from '@ghostfolio/common/config'; +import { SubscriptionType } from '@ghostfolio/common/enums'; import { PortfolioDetails, PortfolioDividendsResponse, @@ -68,7 +71,8 @@ export class PortfolioController { private readonly configurationService: ConfigurationService, private readonly impersonationService: ImpersonationService, private readonly portfolioService: PortfolioService, - @Inject(REQUEST) private readonly request: RequestWithUser + @Inject(REQUEST) private readonly request: RequestWithUser, + private readonly userService: UserService ) {} @Get('details') @@ -81,7 +85,7 @@ export class PortfolioController { @Query('accounts') filterByAccounts?: string, @Query('assetClasses') filterByAssetClasses?: string, @Query('dataSource') filterByDataSource?: string, - @Query('range') dateRange: DateRange = 'max', + @Query('range') dateRange: DateRange = DEFAULT_DATE_RANGE, @Query('symbol') filterBySymbol?: string, @Query('tags') filterByTags?: string, @Query('withMarkets') withMarketsParam = 'false' @@ -92,7 +96,8 @@ export class PortfolioController { let hasError = false; if (this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION')) { - hasDetails = this.request.user.subscription.type === 'Premium'; + hasDetails = + this.request.user.subscription.type === SubscriptionType.Premium; } const filters = this.apiService.buildFiltersFromQueryParams({ @@ -141,10 +146,10 @@ export class PortfolioController { .reduce((a, b) => a + b, 0); const totalValue = Object.values(holdings) - .filter(({ assetClass, assetSubClass }) => { + .filter(({ assetProfile }) => { return ( - assetClass !== AssetClass.LIQUIDITY && - assetSubClass !== AssetSubClass.CASH + assetProfile.assetClass !== AssetClass.LIQUIDITY && + assetProfile.assetSubClass !== AssetSubClass.CASH ); }) .map(({ valueInBaseCurrency }) => { @@ -214,22 +219,41 @@ export class PortfolioController { for (const [symbol, portfolioPosition] of Object.entries(holdings)) { holdings[symbol] = { ...portfolioPosition, - assetClass: - hasDetails || portfolioPosition.assetClass === AssetClass.LIQUIDITY - ? portfolioPosition.assetClass - : undefined, - assetSubClass: - hasDetails || portfolioPosition.assetSubClass === AssetSubClass.CASH - ? portfolioPosition.assetSubClass - : undefined, - countries: hasDetails ? portfolioPosition.countries : [], - currency: hasDetails ? portfolioPosition.currency : undefined, - holdings: hasDetails ? portfolioPosition.holdings : [], + assetProfile: { + ...portfolioPosition.assetProfile, + assetClass: + hasDetails || + portfolioPosition.assetProfile.assetClass === AssetClass.LIQUIDITY + ? portfolioPosition.assetProfile.assetClass + : undefined, + assetClassLabel: + hasDetails || + portfolioPosition.assetProfile.assetClass === AssetClass.LIQUIDITY + ? portfolioPosition.assetProfile.assetClassLabel + : undefined, + assetSubClass: + hasDetails || + portfolioPosition.assetProfile.assetSubClass === AssetSubClass.CASH + ? portfolioPosition.assetProfile.assetSubClass + : undefined, + assetSubClassLabel: + hasDetails || + portfolioPosition.assetProfile.assetSubClass === AssetSubClass.CASH + ? portfolioPosition.assetProfile.assetSubClassLabel + : undefined, + ...(hasDetails + ? {} + : { + countries: [], + currency: undefined, + holdings: [], + sectors: [] + }) + }, markets: hasDetails ? portfolioPosition.markets : undefined, marketsAdvanced: hasDetails ? portfolioPosition.marketsAdvanced - : undefined, - sectors: hasDetails ? portfolioPosition.sectors : [] + : undefined }; } @@ -304,7 +328,7 @@ export class PortfolioController { @Query('assetClasses') filterByAssetClasses?: string, @Query('dataSource') filterByDataSource?: string, @Query('groupBy') groupBy?: GroupBy, - @Query('range') dateRange: DateRange = 'max', + @Query('range') dateRange: DateRange = DEFAULT_DATE_RANGE, @Query('symbol') filterBySymbol?: string, @Query('tags') filterByTags?: string ): Promise { @@ -318,7 +342,10 @@ export class PortfolioController { const impersonationUserId = await this.impersonationService.validateImpersonationId(impersonationId); - const userCurrency = this.request.user.settings.settings.baseCurrency; + const userId = impersonationUserId || this.request.user.id; + + const { settings } = await this.userService.user({ id: userId }); + const userCurrency = settings.settings.baseCurrency; const { endDate, startDate } = getIntervalFromDateRange({ dateRange }); @@ -327,7 +354,7 @@ export class PortfolioController { filters, startDate, userCurrency, - userId: impersonationUserId || this.request.user.id, + userId, types: ['DIVIDEND'] }); @@ -356,7 +383,7 @@ export class PortfolioController { if ( this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION') && - this.request.user.subscription.type === 'Basic' + this.request.user.subscription.type === SubscriptionType.Basic ) { dividends = dividends.map((item) => { return nullifyValuesInObject(item, ['investment']); @@ -405,7 +432,7 @@ export class PortfolioController { @Query('dataSource') filterByDataSource?: string, @Query('holdingType') filterByHoldingType?: string, @Query('query') filterBySearchQuery?: string, - @Query('range') dateRange: DateRange = 'max', + @Query('range') dateRange: DateRange = DEFAULT_DATE_RANGE, @Query('symbol') filterBySymbol?: string, @Query('tags') filterByTags?: string ): Promise { @@ -438,7 +465,7 @@ export class PortfolioController { @Query('assetClasses') filterByAssetClasses?: string, @Query('dataSource') filterByDataSource?: string, @Query('groupBy') groupBy?: GroupBy, - @Query('range') dateRange: DateRange = 'max', + @Query('range') dateRange: DateRange = DEFAULT_DATE_RANGE, @Query('symbol') filterBySymbol?: string, @Query('tags') filterByTags?: string ): Promise { @@ -484,7 +511,7 @@ export class PortfolioController { if ( this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION') && - this.request.user.subscription.type === 'Basic' + this.request.user.subscription.type === SubscriptionType.Basic ) { investments = investments.map((item) => { return nullifyValuesInObject(item, ['investment']); @@ -510,7 +537,7 @@ export class PortfolioController { @Query('accounts') filterByAccounts?: string, @Query('assetClasses') filterByAssetClasses?: string, @Query('dataSource') filterByDataSource?: string, - @Query('range') dateRange: DateRange = 'max', + @Query('range') dateRange: DateRange = DEFAULT_DATE_RANGE, @Query('symbol') filterBySymbol?: string, @Query('tags') filterByTags?: string, @Query('withExcludedAccounts') withExcludedAccountsParam = 'false' @@ -596,7 +623,7 @@ export class PortfolioController { if ( this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION') && - this.request.user.subscription.type === 'Basic' + this.request.user.subscription.type === SubscriptionType.Basic ) { performanceInformation.chart = performanceInformation.chart.map( (item) => { @@ -624,7 +651,7 @@ export class PortfolioController { if ( this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION') && - this.request.user.subscription.type === 'Basic' + this.request.user.subscription.type === SubscriptionType.Basic ) { for (const category of report.xRay.categories) { category.rules = null; diff --git a/apps/api/src/app/portfolio/portfolio.service.spec.ts b/apps/api/src/app/portfolio/portfolio.service.spec.ts new file mode 100644 index 000000000..da846c45d --- /dev/null +++ b/apps/api/src/app/portfolio/portfolio.service.spec.ts @@ -0,0 +1,272 @@ +import { AccountService } from '@ghostfolio/api/app/account/account.service'; +import { CashDetails } from '@ghostfolio/api/app/account/interfaces/cash-details.interface'; +import { ActivitiesService } from '@ghostfolio/api/app/activities/activities.service'; +import { userDummyData } from '@ghostfolio/api/app/portfolio/calculator/portfolio-calculator-test-utils'; +import { PortfolioCalculatorFactory } from '@ghostfolio/api/app/portfolio/calculator/portfolio-calculator.factory'; +import { UserService } from '@ghostfolio/api/app/user/user.service'; +import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; +import { DataProviderService } from '@ghostfolio/api/services/data-provider/data-provider.service'; +import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data/exchange-rate-data.service'; +import { ImpersonationService } from '@ghostfolio/api/services/impersonation/impersonation.service'; +import { SymbolProfileService } from '@ghostfolio/api/services/symbol-profile/symbol-profile.service'; +import { parseDate } from '@ghostfolio/common/helper'; + +import { Account, DataSource } from '@prisma/client'; +import { Big } from 'big.js'; +import { randomUUID } from 'node:crypto'; + +import { PortfolioService } from './portfolio.service'; + +describe('PortfolioService', () => { + let accountService: AccountService; + let activitiesService: ActivitiesService; + let configurationService: ConfigurationService; + let dataProviderService: DataProviderService; + let exchangeRateDataService: ExchangeRateDataService; + let impersonationService: ImpersonationService; + let portfolioCalculatorFactory: PortfolioCalculatorFactory; + let portfolioService: PortfolioService; + let symbolProfileService: SymbolProfileService; + let userService: UserService; + + beforeEach(() => { + configurationService = new ConfigurationService(); + + dataProviderService = new DataProviderService( + configurationService, + null, + null, + null, + null, + null + ); + + exchangeRateDataService = new ExchangeRateDataService( + null, + null, + null, + null + ); + + accountService = new AccountService( + null, + null, + exchangeRateDataService, + null + ); + + activitiesService = new ActivitiesService( + null, + accountService, + null, + dataProviderService, + null, + exchangeRateDataService, + null, + null + ); + + impersonationService = new ImpersonationService(null, null); + + portfolioCalculatorFactory = new PortfolioCalculatorFactory( + configurationService, + null, + exchangeRateDataService, + null, + null + ); + + symbolProfileService = new SymbolProfileService(null); + + userService = new UserService( + null, + null, + null, + null, + null, + null, + null, + null + ); + + portfolioService = new PortfolioService( + null, + accountService, + activitiesService, + null, + portfolioCalculatorFactory, + dataProviderService, + exchangeRateDataService, + null, + impersonationService, + null, + null, + symbolProfileService, + userService + ); + }); + + describe('getCashSymbolProfiles', () => { + it('should use the exchange-rate data source so the symbol-profile join in getDetails matches the calculator positions', () => { + jest + .spyOn(dataProviderService, 'getDataSourceForExchangeRates') + .mockReturnValue(DataSource.YAHOO); + + const cashDetails: CashDetails = { + accounts: [ + { + balance: 2000, + comment: null, + createdAt: parseDate('2024-01-01'), + currency: 'USD', + id: randomUUID(), + isExcluded: false, + name: 'USD', + platformId: null, + updatedAt: parseDate('2024-01-01'), + userId: userDummyData.id + } + ], + balanceInBaseCurrency: 1820 + }; + + const assetProfiles = ( + portfolioService as unknown as { + getCashSymbolProfiles: ( + aCashDetails: CashDetails + ) => { dataSource: DataSource; symbol: string }[]; + } + ).getCashSymbolProfiles(cashDetails); + + expect(assetProfiles).toHaveLength(1); + expect(assetProfiles[0].dataSource).toBe(DataSource.YAHOO); + expect(assetProfiles[0].symbol).toBe('USD'); + }); + }); + + describe('getDetails', () => { + it('should return cash holdings when the calculator emits cash positions with the exchange-rate data source', async () => { + const accountId = randomUUID(); + + const cashAccount: Account = { + balance: 2000, + comment: null, + createdAt: parseDate('2024-01-01'), + currency: 'USD', + id: accountId, + isExcluded: false, + name: 'USD', + platformId: null, + updatedAt: parseDate('2024-01-01'), + userId: userDummyData.id + }; + + jest.spyOn(accountService, 'getCashDetails').mockResolvedValue({ + accounts: [cashAccount], + balanceInBaseCurrency: 1820 + }); + + jest + .spyOn(activitiesService, 'getActivitiesForPortfolioCalculator') + .mockResolvedValue({ activities: [], count: 0 }); + + jest + .spyOn(dataProviderService, 'getDataSourceForExchangeRates') + .mockReturnValue(DataSource.YAHOO); + + jest + .spyOn(impersonationService, 'validateImpersonationId') + .mockResolvedValue(null); + + jest + .spyOn(symbolProfileService, 'getSymbolProfiles') + .mockResolvedValue([]); + + jest.spyOn(userService, 'user').mockResolvedValue({ + accessesGet: [], + accounts: [], + activityCount: 0, + dataProviderGhostfolioDailyRequests: 0, + id: userDummyData.id, + settings: { + settings: { + baseCurrency: 'CHF' + } + } + } as unknown as Awaited>); + + const usdPosition = { + activitiesCount: 1, + averagePrice: new Big(1), + currency: 'USD', + dataSource: DataSource.YAHOO, + dateOfFirstActivity: '2024-01-01', + dividend: new Big(0), + dividendInBaseCurrency: new Big(0), + fee: new Big(0), + feeInBaseCurrency: new Big(0), + grossPerformance: new Big(0), + grossPerformancePercentage: new Big(0), + grossPerformancePercentageWithCurrencyEffect: new Big(0), + grossPerformanceWithCurrencyEffect: new Big(0), + investment: new Big(1820), + investmentWithCurrencyEffect: new Big(1820), + marketPrice: 1, + marketPriceInBaseCurrency: 0.91, + netPerformance: new Big(0), + netPerformancePercentage: new Big(0), + netPerformancePercentageWithCurrencyEffectMap: {}, + netPerformanceWithCurrencyEffectMap: {}, + quantity: new Big(2000), + symbol: 'USD', + tags: [], + timeWeightedInvestment: new Big(0), + timeWeightedInvestmentWithCurrencyEffect: new Big(0), + valueInBaseCurrency: new Big(1820) + }; + + jest + .spyOn(portfolioCalculatorFactory, 'createCalculator') + .mockReturnValue({ + getSnapshot: jest.fn().mockResolvedValue({ + activitiesCount: 1, + createdAt: parseDate('2024-01-01'), + currentValueInBaseCurrency: new Big(1820), + errors: [], + hasErrors: false, + historicalData: [], + positions: [usdPosition], + totalFeesWithCurrencyEffect: new Big(0), + totalInterestWithCurrencyEffect: new Big(0), + totalInvestment: new Big(1820), + totalInvestmentWithCurrencyEffect: new Big(1820), + totalLiabilitiesWithCurrencyEffect: new Big(0) + }) + } as unknown as ReturnType< + typeof portfolioCalculatorFactory.createCalculator + >); + + jest + .spyOn( + portfolioService as unknown as { + getValueOfAccountsAndPlatforms: () => Promise<{ + accounts: object; + platforms: object; + }>; + }, + 'getValueOfAccountsAndPlatforms' + ) + .mockResolvedValue({ accounts: {}, platforms: {} }); + + const { holdings } = await portfolioService.getDetails({ + filters: [], + impersonationId: userDummyData.id, + userId: userDummyData.id + }); + + expect(holdings['USD']).toBeDefined(); + expect(holdings['USD'].assetProfile.dataSource).toBe(DataSource.YAHOO); + expect(holdings['USD'].assetProfile.symbol).toBe('USD'); + }); + }); +}); diff --git a/apps/api/src/app/portfolio/portfolio.service.ts b/apps/api/src/app/portfolio/portfolio.service.ts index 60b413cf9..37d76bcfa 100644 --- a/apps/api/src/app/portfolio/portfolio.service.ts +++ b/apps/api/src/app/portfolio/portfolio.service.ts @@ -32,11 +32,17 @@ import { } from '@ghostfolio/common/calculation-helper'; import { DEFAULT_CURRENCY, + DEFAULT_DATE_RANGE, TAG_ID_EMERGENCY_FUND, TAG_ID_EXCLUDE_FROM_ANALYSIS, UNKNOWN_KEY } from '@ghostfolio/common/config'; -import { DATE_FORMAT, getSum, parseDate } from '@ghostfolio/common/helper'; +import { + DATE_FORMAT, + getAssetProfileIdentifier, + getSum, + parseDate +} from '@ghostfolio/common/helper'; import { AccountsResponse, Activity, @@ -64,7 +70,7 @@ import { } from '@ghostfolio/common/types'; import { PerformanceCalculationType } from '@ghostfolio/common/types/performance-calculation-type.type'; -import { Inject, Injectable } from '@nestjs/common'; +import { Inject, Injectable, Logger } from '@nestjs/common'; import { REQUEST } from '@nestjs/core'; import { Account, @@ -158,7 +164,7 @@ export class PortfolioService { }; } - const [accounts, details] = await Promise.all([ + const [accounts, details, user] = await Promise.all([ this.accountService.accounts({ where, include: { @@ -172,10 +178,11 @@ export class PortfolioService { withExcludedAccounts, impersonationId: userId, userId: this.request.user.id - }) + }), + this.userService.user({ id: userId }) ]); - const userCurrency = this.request.user.settings.settings.baseCurrency; + const userCurrency = this.getUserCurrency(user); return Promise.all( accounts.map(async (account) => { @@ -465,7 +472,7 @@ export class PortfolioService { } public async getDetails({ - dateRange = 'max', + dateRange = DEFAULT_DATE_RANGE, filters, impersonationId, userId, @@ -558,9 +565,17 @@ export class PortfolioService { const cashSymbolProfiles = this.getCashSymbolProfiles(cashDetails); symbolProfiles.push(...cashSymbolProfiles); - const symbolProfileMap: { [symbol: string]: EnhancedSymbolProfile } = {}; + const symbolProfileMap: { + [assetProfileIdentifier: string]: EnhancedSymbolProfile; + } = {}; + for (const symbolProfile of symbolProfiles) { - symbolProfileMap[symbolProfile.symbol] = symbolProfile; + symbolProfileMap[ + getAssetProfileIdentifier({ + dataSource: symbolProfile.dataSource, + symbol: symbolProfile.symbol + }) + ] = symbolProfile; } const portfolioItemsNow: { [symbol: string]: TimelinePosition } = {}; @@ -570,7 +585,7 @@ export class PortfolioService { for (const { activitiesCount, - currency, + dataSource, dateOfFirstActivity, dividend, grossPerformance, @@ -600,7 +615,17 @@ export class PortfolioService { } } - const assetProfile = symbolProfileMap[symbol]; + const assetProfile = + symbolProfileMap[getAssetProfileIdentifier({ dataSource, symbol })]; + + if (!assetProfile) { + Logger.warn( + `Asset profile not found for ${symbol} (${dataSource})`, + 'PortfolioService' + ); + + continue; + } let markets: PortfolioPosition['markets']; let marketsAdvanced: PortfolioPosition['marketsAdvanced']; @@ -613,16 +638,13 @@ export class PortfolioService { holdings[symbol] = { activitiesCount, - currency, markets, marketsAdvanced, marketPrice, - symbol, tags, allocationInPercentage: filteredValueInBaseCurrency.eq(0) ? 0 : valueInBaseCurrency.div(filteredValueInBaseCurrency).toNumber(), - assetClass: assetProfile.assetClass, assetProfile: { assetClass: assetProfile.assetClass, assetSubClass: assetProfile.assetSubClass, @@ -645,9 +667,6 @@ export class PortfolioService { symbol: assetProfile.symbol, url: assetProfile.url }, - assetSubClass: assetProfile.assetSubClass, - countries: assetProfile.countries, - dataSource: assetProfile.dataSource, dateOfFirstActivity: parseDate(dateOfFirstActivity), dividend: dividend?.toNumber() ?? 0, grossPerformance: grossPerformance?.toNumber() ?? 0, @@ -656,19 +675,7 @@ export class PortfolioService { grossPerformancePercentageWithCurrencyEffect?.toNumber() ?? 0, grossPerformanceWithCurrencyEffect: grossPerformanceWithCurrencyEffect?.toNumber() ?? 0, - holdings: assetProfile.holdings.map( - ({ allocationInPercentage, name }) => { - return { - allocationInPercentage, - name, - valueInBaseCurrency: valueInBaseCurrency - .mul(allocationInPercentage) - .toNumber() - }; - } - ), investment: investment.toNumber(), - name: assetProfile.name, netPerformance: netPerformance?.toNumber() ?? 0, netPerformancePercent: netPerformancePercentage?.toNumber() ?? 0, netPerformancePercentWithCurrencyEffect: @@ -678,8 +685,6 @@ export class PortfolioService { netPerformanceWithCurrencyEffect: netPerformanceWithCurrencyEffectMap?.[dateRange]?.toNumber() ?? 0, quantity: quantity.toNumber(), - sectors: assetProfile.sectors, - url: assetProfile.url, valueInBaseCurrency: valueInBaseCurrency.toNumber() }; } @@ -989,7 +994,7 @@ export class PortfolioService { } public async getPerformance({ - dateRange = 'max', + dateRange = DEFAULT_DATE_RANGE, filters, impersonationId, userId @@ -1447,8 +1452,8 @@ export class PortfolioService { for (const [, position] of Object.entries(holdings)) { const value = position.valueInBaseCurrency; - if (position.assetClass !== AssetClass.LIQUIDITY) { - if (position.countries.length > 0) { + if (position.assetProfile.assetClass !== AssetClass.LIQUIDITY) { + if (position.assetProfile.countries.length > 0) { markets.developedMarkets.valueInBaseCurrency += position.markets.developedMarkets * value; markets.emergingMarkets.valueInBaseCurrency += @@ -1587,7 +1592,7 @@ export class PortfolioService { assetSubClass: AssetSubClass.CASH, countries: [], createdAt: account.createdAt, - dataSource: DataSource.MANUAL, + dataSource: this.dataProviderService.getDataSourceForExchangeRates(), holdings: [], id: currency, isActive: true, @@ -1694,11 +1699,8 @@ export class PortfolioService { currency: string; }): PortfolioPosition { return { - currency, activitiesCount: 0, allocationInPercentage: 0, - assetClass: AssetClass.LIQUIDITY, - assetSubClass: AssetSubClass.CASH, assetProfile: { currency, assetClass: AssetClass.LIQUIDITY, @@ -1710,25 +1712,19 @@ export class PortfolioService { sectors: [], symbol: currency }, - countries: [], - dataSource: undefined, dateOfFirstActivity: undefined, dividend: 0, grossPerformance: 0, grossPerformancePercent: 0, grossPerformancePercentWithCurrencyEffect: 0, grossPerformanceWithCurrencyEffect: 0, - holdings: [], investment: balance, marketPrice: 0, - name: currency, netPerformance: 0, netPerformancePercent: 0, netPerformancePercentWithCurrencyEffect: 0, netPerformanceWithCurrencyEffect: 0, quantity: 0, - sectors: [], - symbol: currency, tags: [], valueInBaseCurrency: balance }; diff --git a/apps/api/src/app/subscription/subscription.controller.ts b/apps/api/src/app/subscription/subscription.controller.ts index e1c705fdd..3e6316ec6 100644 --- a/apps/api/src/app/subscription/subscription.controller.ts +++ b/apps/api/src/app/subscription/subscription.controller.ts @@ -100,10 +100,12 @@ export class SubscriptionController { request.query.checkoutSessionId as string ); - Logger.log( - `Subscription for user '${userId}' has been created via Stripe`, - 'SubscriptionController' - ); + if (userId) { + Logger.log( + `Subscription for user '${userId}' has been created via Stripe`, + 'SubscriptionController' + ); + } response.redirect( `${this.configurationService.get( diff --git a/apps/api/src/app/subscription/subscription.service.ts b/apps/api/src/app/subscription/subscription.service.ts index 877ea0ee4..557d81976 100644 --- a/apps/api/src/app/subscription/subscription.service.ts +++ b/apps/api/src/app/subscription/subscription.service.ts @@ -17,7 +17,7 @@ import { } from '@ghostfolio/common/types'; import { Injectable, Logger } from '@nestjs/common'; -import { Subscription } from '@prisma/client'; +import { Prisma, Subscription } from '@prisma/client'; import { addMilliseconds, isBefore } from 'date-fns'; import ms, { StringValue } from 'ms'; import Stripe from 'stripe'; @@ -35,7 +35,7 @@ export class SubscriptionService { this.stripe = new Stripe( this.configurationService.get('STRIPE_SECRET_KEY'), { - apiVersion: '2026-02-25.clover' + apiVersion: '2026-03-25.dahlia' } ); } @@ -108,11 +108,13 @@ export class SubscriptionService { duration = '1 year', durationExtension, price, + stripeCheckoutSessionId, userId }: { duration?: StringValue; durationExtension?: StringValue; price: number; + stripeCheckoutSessionId?: string; userId: string; }) { let expiresAt = addMilliseconds(new Date(), ms(duration)); @@ -125,6 +127,7 @@ export class SubscriptionService { data: { expiresAt, price, + stripeCheckoutSessionId, user: { connect: { id: userId @@ -136,25 +139,42 @@ export class SubscriptionService { public async createSubscriptionViaStripe(aCheckoutSessionId: string) { try { - let durationExtension: StringValue; - const session = await this.stripe.checkout.sessions.retrieve(aCheckoutSessionId); + if (session.payment_status !== 'paid' || session.status !== 'complete') { + throw new Error( + `Stripe Checkout Session '${aCheckoutSessionId}' has not been paid (status=${session.status}, payment_status=${session.payment_status})` + ); + } + const subscriptionOffer: SubscriptionOffer = JSON.parse( session.metadata.subscriptionOffer ?? '{}' ); - if (subscriptionOffer) { - durationExtension = subscriptionOffer.durationExtension; + const durationExtension = subscriptionOffer?.durationExtension; + + try { + await this.createSubscription({ + durationExtension, + price: session.amount_total / 100, + stripeCheckoutSessionId: session.id, + userId: session.client_reference_id + }); + } catch (error) { + if ( + error instanceof Prisma.PrismaClientKnownRequestError && + error.code === 'P2002' + ) { + Logger.log( + `Stripe Checkout Session '${session.id}' has already been redeemed`, + 'SubscriptionService' + ); + } else { + throw error; + } } - await this.createSubscription({ - durationExtension, - price: session.amount_total / 100, - userId: session.client_reference_id - }); - return session.client_reference_id; } catch (error) { Logger.error(error, 'SubscriptionService'); diff --git a/apps/api/src/app/user/user.service.ts b/apps/api/src/app/user/user.service.ts index 370f5d422..9d8d9da9d 100644 --- a/apps/api/src/app/user/user.service.ts +++ b/apps/api/src/app/user/user.service.ts @@ -26,12 +26,14 @@ import { PropertyService } from '@ghostfolio/api/services/property/property.serv import { TagService } from '@ghostfolio/api/services/tag/tag.service'; import { DEFAULT_CURRENCY, + DEFAULT_DATE_RANGE, DEFAULT_LANGUAGE_CODE, PROPERTY_IS_READ_ONLY_MODE, PROPERTY_SYSTEM_MESSAGE, TAG_ID_EXCLUDE_FROM_ANALYSIS, locale as defaultLocale } from '@ghostfolio/common/config'; +import { SubscriptionType } from '@ghostfolio/common/enums'; import { User as IUser, SystemMessage, @@ -47,7 +49,7 @@ import { PerformanceCalculationType } from '@ghostfolio/common/types/performance import { Injectable } from '@nestjs/common'; import { EventEmitter2 } from '@nestjs/event-emitter'; -import { Prisma, Role, User } from '@prisma/client'; +import { Prisma, Role, Settings, User } from '@prisma/client'; import { differenceInDays, subDays } from 'date-fns'; import { without } from 'lodash'; import { createHmac } from 'node:crypto'; @@ -107,7 +109,14 @@ export class UserService { }): Promise { const { id, permissions, settings, subscription } = user; - const userData = await Promise.all([ + const [ + access, + accounts, + activitiesCount, + firstActivity, + impersonationUserSettings, + tagsForUser + ] = await Promise.all([ this.prismaService.access.findMany({ include: { user: true @@ -132,16 +141,17 @@ export class UserService { }, where: { userId: impersonationUserId || user.id } }), + impersonationUserId + ? this.prismaService.settings.findUnique({ + where: { userId: impersonationUserId } + }) + : Promise.resolve(null), this.tagService.getTagsForUser(impersonationUserId || user.id) ]); - const access = userData[0]; - const accounts = userData[1]; - const activitiesCount = userData[2]; - const firstActivity = userData[3]; - let tags = userData[4].filter((tag) => { - return tag.id !== TAG_ID_EXCLUDE_FROM_ANALYSIS; - }); + const baseCurrency = + (impersonationUserSettings?.settings as UserSettings)?.baseCurrency ?? + (settings.settings as UserSettings)?.baseCurrency; let systemMessage: SystemMessage; @@ -154,9 +164,13 @@ export class UserService { systemMessage = systemMessageProperty; } + let tags = tagsForUser.filter((tag) => { + return tag.id !== TAG_ID_EXCLUDE_FROM_ANALYSIS; + }); + if ( this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION') && - subscription.type === 'Basic' + subscription.type === SubscriptionType.Basic ) { tags = []; } @@ -181,6 +195,7 @@ export class UserService { dateOfFirstActivity: firstActivity?.date ?? new Date(), settings: { ...(settings.settings as UserSettings), + baseCurrency, locale: (settings.settings as UserSettings)?.locale ?? locale } }; @@ -280,7 +295,8 @@ export class UserService { (user.settings.settings as UserSettings).dateRange = (user.settings.settings as UserSettings).viewMode === 'ZEN' ? 'max' - : ((user.settings.settings as UserSettings)?.dateRange ?? 'max'); + : ((user.settings.settings as UserSettings)?.dateRange ?? + DEFAULT_DATE_RANGE); // Set default value for performance calculation type if (!(user.settings.settings as UserSettings)?.performanceCalculationType) { @@ -443,7 +459,7 @@ export class UserService { createdAt: user.createdAt }); - if (user.subscription?.type === 'Basic') { + if (user.subscription?.type === SubscriptionType.Basic) { const daysSinceRegistration = differenceInDays( new Date(), user.createdAt @@ -485,7 +501,7 @@ export class UserService { // Reset holdings view mode user.settings.settings.holdingsViewMode = undefined; - } else if (user.subscription?.type === 'Premium') { + } else if (user.subscription?.type === SubscriptionType.Premium) { if (!hasRole(user, Role.DEMO)) { currentPermissions.push(permissions.createApiKey); currentPermissions.push(permissions.enableDataProviderGhostfolio); @@ -531,7 +547,7 @@ export class UserService { } if (hasRole(user, Role.ADMIN)) { - if (this.configurationService.get('ENABLE_FEATURE_BULL_BOARD')) { + if ((user.settings.settings as UserSettings).isExperimentalFeatures) { currentPermissions.push(permissions.accessAdminControlBullBoard); } diff --git a/apps/api/src/assets/cryptocurrencies/cryptocurrencies.json b/apps/api/src/assets/cryptocurrencies/cryptocurrencies.json index 96502ca05..ea88dd4c1 100644 --- a/apps/api/src/assets/cryptocurrencies/cryptocurrencies.json +++ b/apps/api/src/assets/cryptocurrencies/cryptocurrencies.json @@ -40,6 +40,7 @@ "0NE": "Stone", "0X0": "0x0.ai", "0X1": "0x1.tools: AI Multi-tool Plaform", + "0X63SPIKE": "Spike", "0XBTC": "0xBitcoin", "0XCOCO": "0xCoco", "0XDEV": "DEVAI", @@ -192,6 +193,7 @@ "AARK": "Aark", "AART": "ALL.ART", "AAST": "AASToken", + "AASTEROID": "Alien Asteroid", "AAT": "Agricultural Trade Chain", "AAVAWBTC": "Aave aWBTC", "AAVE": "Aave", @@ -279,7 +281,7 @@ "ACTA": "Acta Finance", "ACTIN": "Actinium", "ACTN": "Action Coin", - "ACU": "ACU Platform", + "ACU": "Acurast Token", "ACX": "Across Protocol", "ACXT": "ACDX Exchange Token", "ACYC": "All Coins Yield Capital", @@ -388,7 +390,7 @@ "AGATA": "Agatech", "AGATOKEN": "AGA Token", "AGB": "Apes Go Bananas", - "AGC": "Argocoin", + "AGC": "Alien Green Cat", "AGEN": "Agent Krasnov", "AGENT": "AgentLayer", "AGENTFUN": "AgentFun.AI", @@ -416,6 +418,7 @@ "AGOV": "Answer Governance", "AGPC": "AGPC", "AGRI": "AgriDex Token", + "AGRICULTURALUNIONS": "Agricultural Unions", "AGRO": "Bit Agro", "AGRS": "Agoras Token", "AGS": "Aegis", @@ -604,6 +607,7 @@ "ALBART": "Albärt", "ALBE": "ALBETROS", "ALBEDO": "ALBEDO", + "ALBON": "Albemarle (Ondo Tokenized)", "ALBT": "AllianceBlock", "ALC": "Arab League Coin", "ALCAZAR": "Alcazar", @@ -699,6 +703,7 @@ "ALTMAN": "SAM", "ALTOCAR": "AltoCar", "ALTR": "Altranium", + "ALTSZN": "ALTSEASON", "ALTT": "Altcoinist", "ALU": "Altura", "ALUSD": "Alchemix USD", @@ -773,7 +778,7 @@ "ANALY": "Analysoor", "ANARCHISTS": "Anarchists Prime", "ANAT": "Anatolia Token", - "ANB": "Angryb", + "ANB": "Ant BlockChain", "ANC": "Anchor Protocol", "ANCHOR": "AnchorSwap", "ANCIENTKING": "Ancient Kingdom", @@ -798,6 +803,7 @@ "ANGLE": "ANGLE", "ANGO": "Aureus Nummus Gold", "ANGRYSLERF": "ANGRYSLERF", + "ANGRYTOKEN": "Angryb", "ANI": "Ani Grok Companion (anicompanion.net)", "ANIM": "Animalia", "ANIMA": "Realm Anima", @@ -992,6 +998,7 @@ "ARG": "Argentine Football Association Fan Token", "ARGENTUM": "Argentum", "ARGO": "ArGoApp", + "ARGOCOIN": "Argocoin", "ARGON": "Argon", "ARGUS": "ArgusCoin", "ARI": "AriCoin", @@ -1047,6 +1054,7 @@ "ARTDRAW": "ArtDraw", "ARTE": "Artemine", "ARTEM": "Artem", + "ARTEMIS": "OFFICIAL ARTEMIS", "ARTEON": "Arteon", "ARTEQ": "artèQ", "ARTEX": "Artex", @@ -1120,6 +1128,11 @@ "ASTA": "ASTA", "ASTER": "Aster", "ASTERINU": "Aster INU", + "ASTEROID": "Asteroid Shiba", + "ASTEROIDBOT": "Asteroid Bot", + "ASTEROIDCOIN": "ASTEROID", + "ASTEROIDETH": "Asteroid", + "ASTEROIDFIT": "ASTEROID", "ASTHERUSUSDF": "Astherus USDF", "ASTO": "Altered State Token", "ASTON": "Aston", @@ -1389,7 +1402,6 @@ "BABI": "Babylons", "BABL": "Babylon Finance", "BABY": "Babylon", - "BABY4": "Baby 4", "BABYANDY": "Baby Andy", "BABYASTER": "Baby Aster", "BABYB": "Baby Bali", @@ -1564,6 +1576,7 @@ "BANANO": "Banano", "BANC": "Babes and Nerds", "BANCA": "BANCA", + "BANCORUSD": "USD Bancor", "BAND": "Band Protocol", "BANDEX": "Banana Index", "BANDIT": "Bandit on Base", @@ -1602,11 +1615,12 @@ "BART": "BarterTrade", "BARTKRC": "BART Token", "BARY": "Bary", + "BAS": "BNB Attestation Service", "BASEAI": "BaseAI", "BASEBEAR": "BBQ", "BASECAT": "BASE CAT", "BASECOIN": "BASECOIN", - "BASED": "Based Money", + "BASED": "Based Token", "BASEDAI": "BasedAI", "BASEDALF": "Based Alf", "BASEDB": "Based Bonk", @@ -1614,12 +1628,13 @@ "BASEDCOPE": "COPE", "BASEDFINANCE": "Based", "BASEDHOPPY": "Based Hoppy (basedhoppy.vip)", + "BASEDMONEY": "Based Money", + "BASEDMONEYV1": "Based Money v1", "BASEDP": "Based Pepe", "BASEDR": "Based Rabbit", "BASEDS": "BasedSwap", "BASEDSB": "Based Street Bets", "BASEDTURBO": "Based Turbo", - "BASEDV1": "Based Money v1", "BASEHEROES": "Baseheroes", "BASEPROTOCOL": "Base Protocol", "BASESWAPX": "BaseX", @@ -1637,6 +1652,7 @@ "BASISSHAREV2": "Basis Share", "BASK": "BasketDAO", "BAST": "Bast", + "BASTEROID": "BABY ASTEROID", "BASTET": "Bastet Goddess", "BAT": "Basic Attention Token", "BATCH": "BATCH Token", @@ -1767,7 +1783,7 @@ "BDID": "BDID", "BDIN": "BendDAO BDIN", "BDL": "Bitdeal", - "BDOG": "Bulldog Token", + "BDOG": "BurnDog", "BDOGITO": "BullDogito", "BDOT": "Binance Wrapped DOT", "BDP": "Big Data Protocol", @@ -1835,6 +1851,7 @@ "BELA": "Bela", "BELG": "Belgian Malinois", "BELIEVE": "Believe", + "BELKA": "The Dancing Squirrel", "BELL": "Bellscoin", "BELLE": "Isabelle", "BELLS": "Bellscoin", @@ -1871,8 +1888,9 @@ "BERN": "BERNcash", "BERNIE": "BERNIE SENDERS", "BERRIE": "Berrie Token", - "BERRY": "Berry", + "BERRY": "Strawberry AI", "BERRYS": "BerrySwap", + "BERRYSTORE": "Berry", "BERT": "Bertram The Pomeranian", "BES": "battle esports coin", "BESA": "Besa Gaming", @@ -1924,6 +1942,7 @@ "BGB": "Bitget token", "BGBG": "BigMouthFrog", "BGBP": "Binance GBP Stable Coin", + "BGBTC": "Bitget Wrapped BTC", "BGBV1": "Bitget Token v1", "BGC": "Bee Token", "BGCI": "Bloomberg Galaxy Crypto Index", @@ -1978,6 +1997,7 @@ "BIDI": "Bidipass", "BIDP": "BID Protocol", "BIDR": "Binance IDR Stable Coin", + "BIDUON": "Baidu (Ondo Tokenized)", "BIDZ": "BIDZ Coin", "BIDZV1": "BIDZ Coin v1", "BIFI": "Beefy.Finance", @@ -2122,6 +2142,7 @@ "BITTO": "BITTO", "BITTON": "Bitton", "BITTY": "The Bitcoin Mascot", + "BITUBU": "UBU", "BITUPTOKEN": "BitUP Token", "BITUSD": "bitUSD", "BITV": "Bitvolt", @@ -2185,6 +2206,7 @@ "BLC": "BlakeCoin", "BLCT": "Bloomzed Loyalty Club Ticket", "BLD": "Agoric", + "BLEND": "Fluent", "BLENDR": "Blendr Network", "BLEPE": "Blepe", "BLERF": "BLERF", @@ -2207,7 +2229,7 @@ "BLKC": "BlackHat Coin", "BLKD": "Blinked", "BLKS": "Blockshipping", - "BLM": "Blombard", + "BLM": "BLM coin", "BLN": "Bulleon", "BLNM": "Bolenum", "BLOB": "B.O.B the Blob", @@ -2236,6 +2258,7 @@ "BLOCX": "BLOCX.", "BLOGGE": "Bloggercube", "BLOK": "Bloktopia", + "BLOMBARD": "Blombard", "BLOO": "bloo foster coin", "BLOOCYS": "BlooCYS", "BLOODY": "Bloody Token", @@ -2584,7 +2607,7 @@ "BOZO": "BOZO", "BOZOH": "bozo Hybrid", "BOZY": "Book of Crazy", - "BP": "BunnyPark", + "BP": "Backpack", "BPAD": "BlokPad", "BPADA": "Binance-Peg Cardano (Binance Bridge)", "BPAVAX": "Binance-Peg Avalanche (Binance Bridge)", @@ -2650,6 +2673,7 @@ "BREAD": "Breadchain Cooperative", "BREE": "CBDAO", "BREED": "BreederDAO", + "BRENT": "Brent Crude", "BREPE": "BREPE", "BRETARDIO": "Bretardio", "BRETT": "Brett Base", @@ -2868,6 +2892,7 @@ "BTFA": "Banana Task Force Ape", "BTG": "Bitcoin Gold", "BTGON": "B2Gold (Ondo Tokenized)", + "BTGOON": "BitGo Holdings (Ondo Tokenized)", "BTH": "Bithereum", "BTK": "Bostoken", "BTL": "Bitlocus", @@ -2961,10 +2986,12 @@ "BUL": "bul", "BULDAK": "Buldak", "BULEI": "Bulei", - "BULL": "Tron Bull", + "BULL": "Bull", "BULLA": "BULLA", "BULLBEAR": "BullBear AI", "BULLC": "BuySell", + "BULLDOG": "BullDog Coin", + "BULLDOGTOKEN": "Bulldog Token", "BULLF": "BULL FINANCE", "BULLGOD": "Bull God", "BULLI": "Bullish On Ethereum", @@ -2997,6 +3024,7 @@ "BUNNY": "Pancake Bunny", "BUNNYINU": "Bunny Inu", "BUNNYM": "BUNNY MEV BOT", + "BUNNYP": "BunnyPark", "BUNNYROCKET": "BunnyRocket", "BURG": "Burger", "BURGER": "Burger Swap", @@ -3207,7 +3235,8 @@ "CARTIER": "Cartier", "CARV": "CARV", "CAS": "Cashaa", - "CASH": "CashCoin", + "CASH": "CASH", + "CASHCOIN": "CashCoin", "CASHIO": "Cashio Dollar", "CASHLY": "Cashly", "CASHT": "Cash Tech", @@ -3232,7 +3261,7 @@ "CATCEO": "CATCEO", "CATCH": "SpaceCatch", "CATCO": "CatCoin", - "CATCOIN": "CatCoin", + "CATCOINCASH": "CatCoin", "CATCOINETH": "Catcoin", "CATCOINIO": "Catcoin", "CATCOINOFSOL": "Cat Coin", @@ -3377,7 +3406,6 @@ "CDOGE": "cyberdoge", "CDPT": "Creditor Data Platform", "CDRX": "CDRX", - "CDT": "CheckDot", "CDX": "CDX Network", "CDY": "Bitcoin Candy", "CDragon": "Clumsy Dragon", @@ -3488,7 +3516,7 @@ "CHARTIQ": "ChartIQ", "CHAS": "Chasm", "CHASH": "CleverHash", - "CHAT": "Solchat", + "CHAT": "OpenChat", "CHATAI": "ChatAI Token", "CHATGPT": "AI Dragon", "CHATOSHI": "chAtoshI", @@ -3498,6 +3526,7 @@ "CHC": "ChainCoin", "CHD": "CharityDAO", "CHECK": "Checkmate", + "CHECKDOT": "CheckDot", "CHECKR": "CheckerChain", "CHECOIN": "CheCoin", "CHED": "Giggleched", @@ -3558,6 +3587,7 @@ "CHINU": "Chubby Inu", "CHIP": "Chip", "CHIPI": "chipi", + "CHIPP": "Chip", "CHIPPY": "Chippy", "CHIPS": "CHIPS", "CHIRP": "Chirp Token", @@ -3826,7 +3856,8 @@ "COFIX": "CoFIX", "COFOUNDIT": "Cofound.it", "COG": "Cognitio", - "COGE": "Cogecoin", + "COGE": "Copper Doge", + "COGECOIN": "Cogecoin", "COGEN": "Cogenero", "COGI": "COGI", "COGS": "Cogmento", @@ -4334,6 +4365,7 @@ "CVX": "Convex Finance", "CVXCRV": "Convex CRV", "CVXFXS": "Convex FXS", + "CVXON": "Chevron (Ondo Tokenized)", "CVXX": "Chevron xStock", "CW": "CardWallet", "CWA": "Chris World Asset", @@ -4350,6 +4382,7 @@ "CWR": "Cowrium", "CWS": "Crowns", "CWT": "CrossWallet", + "CWU": "Commonwealth", "CWV": "CryptoWave", "CWX": "Crypto-X", "CWXT": "CryptoWorldXToken", @@ -4673,6 +4706,7 @@ "DEFIK": "DeFi Kingdoms JADE", "DEFIL": "DeFIL", "DEFILAB": "Defi", + "DEFINITIVE": "Edge", "DEFISCALE": "DeFiScale", "DEFISSI": "DEFI.ssi", "DEFIT": "Digital Fitness", @@ -4723,6 +4757,7 @@ "DEPAY": "DePay", "DEPIN": "DEPIN", "DEPINU": "Depression Inu", + "DEPLOYR": "Deployr", "DEPO": "Depo", "DEPTH": "Depth Token", "DEQ": "Dequant", @@ -5343,7 +5378,9 @@ "DTV": "DraperTV", "DTX": "DataBroker DAO", "DUA": "Brillion", - "DUAL": "Dual Finance", + "DUAL": "DUAL", + "DUALDAOTOKEN": "Dual Finance", + "DUALV1": "BLOCKv", "DUB": "DubCoin", "DUBAICAT": "Dubai Cat", "DUBBZ": "Dubbz", @@ -5487,6 +5524,7 @@ "EARTH": "Earth Token", "EARTHCOIN": "EarthCoin", "EARTHM": "Earthmeta", + "EARTHY": "Little Earth Buddy", "EASY": "EASY", "EASYF": "EasyFeedback", "EASYMINE": "EasyMine", @@ -5528,6 +5566,7 @@ "ECHO": "Echo", "ECHOBOT": "ECHO BOT", "ECHOD": "EchoDEX", + "ECHON": "iShares MSCI Chile ETF (Ondo Tokenized)", "ECHT": "e-Chat", "ECI": "Euro Cup Inu", "ECKODAO": "eckoDAO", @@ -5566,7 +5605,7 @@ "EDEXA": "edeXa Security Token", "EDFI": "EdFi", "EDG": "Edgeless", - "EDGE": "Definitive", + "EDGE": "edgeX", "EDGEACTIVITY": "EDGE Activity Token", "EDGEAI": "EdgeAI", "EDGEN": "LayerEdge", @@ -5650,6 +5689,7 @@ "EIGENP": "Eigenpie", "EIM": "Expert Infra", "EIQT": "IQ Prediction", + "EITHER": "Eitherway", "EJAC": "EJA Coin", "EJS": "Enjinstarter", "EKG": "Ekon Gold", @@ -5765,6 +5805,7 @@ "EML": "EML Protocol", "EMMM": "emmm", "EMN.CUR": "Eastman Chemical", + "EMOGINETWORK": "EMOGI Network", "EMOJI": "MOMOJI", "EMON": "Ethermon", "EMONEYEUR": "e-Money EUR", @@ -6063,10 +6104,11 @@ "EUSX": "eUSX", "EUT": "EarnUp Token", "EUTBL": "Spiko EU T-Bills Money Market Fund", - "EV": "EVAI", + "EV": "Everything", "EVA": "Evadore", "EVAA": "EVAA Protocol", "EVAI": "EVA Intelligence", + "EVAIIO": "EVAI", "EVAL": "Chromia's EVAL by Virtuals", "EVAN": "Evanesco Network", "EVAULT": "EthereumVault", @@ -6087,6 +6129,7 @@ "EVERGROW": "EverGrowCoin", "EVERLIFE": "EverLife.AI", "EVERMOON": "EverMoon", + "EVERRISE": "EverRise", "EVERV": "EverValue Coin", "EVERY": "Everyworld", "EVIL": "EvilCoin", @@ -6137,6 +6180,7 @@ "EXN": "Exeno", "EXNT": "EXNT", "EXO": "Exosis", + "EXODON": "Exodus Movement (Ondo Tokenized)", "EXOS": "Exobots", "EXP": "Expanse", "EXPAND": "Gems", @@ -6190,6 +6234,7 @@ "FACTR": "Defactor", "FACTRPAY": "FactR", "FACY": "ArAIstotle Fact Checker", + "FADEWALLET": "FadeWallet Token", "FADO": "FADO Go", "FAFO": "FAFO", "FAFOSOL": "Fafo", @@ -6289,6 +6334,7 @@ "FCT": "FirmaChain", "FCTC": "FaucetCoin", "FCTR": "FactorDAO", + "FCXON": "Freeport-McMoRan (Ondo Tokenized)", "FDC": "FDrive Coin", "FDGC": "FINTECH DIGITAL GOLD COIN", "FDLS": "FIDELIS", @@ -6341,6 +6387,7 @@ "FFCT": "FortFC", "FFM": "Files.fm Library", "FFN": "Fairy Forest", + "FFOGON": "Franklin Focused Growth ETF (Ondo Tokenized)", "FFTP": "FIGHT FOR THE PEOPLE", "FFUEL": "getFIFO", "FFYI": "Fiscus FYI", @@ -6512,6 +6559,7 @@ "FLOOR": "FloorDAO", "FLOP": "Big Floppa", "FLOPPA": "Floppa Cat", + "FLOR": "FLORK", "FLORK": "FLORK BNB", "FLORKY": "Florky", "FLOSHIDO": "FLOSHIDO INU", @@ -6526,6 +6574,7 @@ "FLOWP": "Flow Protocol", "FLOYX": "Floyx", "FLP": "Gameflip", + "FLQLON": "Franklin US Large Cap Multifactor Index ETF (Ondo Tokenized)", "FLR": "Flare", "FLRBRG": "Floor Cheese Burger", "FLRS": "Flourish Coin", @@ -6779,6 +6828,7 @@ "FSN": "Fusion", "FSNV1": "Fusion v1", "FSO": "FSociety", + "FSOLON": "Fidelity Solana Fund (Ondo Tokenized)", "FST": "FreeStyle Token", "FSTC": "FastCoin", "FSTR": "Fourth Star", @@ -7101,12 +7151,14 @@ "GENIESWAP": "GenieSwap", "GENIESWAPV1": "GenieSwap v1", "GENIFYART": "Genify ART", + "GENIUS": "Genius", "GENIX": "Genix", "GENO": "GenomeFi", "GENOME": "GenomesDao", "GENS": "Genshiro", "GENSLR": "Good Gensler", "GENSTAKE": "Genstake", + "GENSYN": "Gensyn", "GENT": "Gentleman", "GENX": "Genx Token", "GENXNET": "Genesis Network", @@ -7289,6 +7341,7 @@ "GLR": "Glory Finance", "GLS": "Glacier", "GLT": "GlobalToken", + "GLTRON": "abrdn Physical Precious Metals Basket Shares ETF (Ondo Tokenized)", "GLUE": "Glue", "GLX": "GalaxyCoin", "GLYPH": "GlyphCoin", @@ -7545,10 +7598,11 @@ "GRIDZ": "GridZone.io", "GRIFFAIN": "GRIFFAIN", "GRIFT": "ORBIT", - "GRIM": "GRIMREAPER", + "GRIM": "GrimHustle", "GRIMACE": "Grimace", "GRIMEVO": "Grim EVO", "GRIMEX": "SpaceGrime", + "GRIMREAPER": "GRIMREAPER", "GRIN": "Grin", "GRIND": "Self Improving", "GRIPPY": "GRIPPY", @@ -7740,6 +7794,7 @@ "HACHIK": "Hachiko", "HACHIKO": "Hachiko Inu Token", "HACHIKOINU": "Hachiko Inu", + "HACHIKOTOKEN": "Hachiko", "HACHIONB": "Hachi On Base", "HACHITOKEN": "Hachi", "HACK": "HACK", @@ -7747,6 +7802,7 @@ "HAEDAL": "Haedal Protocol", "HAGGIS": "New Born Haggis Pygmy Hippo", "HAHA": "Hasaki", + "HAHAYESRIZO": "Haha Yes Hedgehog", "HAI": "Hacken Token", "HAIO": "HAiO", "HAIR": " HairDAO", @@ -7776,6 +7832,7 @@ "HANACOIN": "Hanacoin", "HANAETH": "Hana", "HANAETHCTO": "HANA", + "HANC": "OddHanc", "HAND": "ShowHand", "HANDY": "Handy", "HANK": "Hank", @@ -7806,6 +7863,7 @@ "HASBIK": "Hasbulla", "HASH": "Provenance Blockchain", "HASHAI": "HashAI", + "HASHCOIN": "HASH Coin", "HASHNET": "HashNet BitEco", "HASHT": "HASH Token", "HASUI": "Haedal", @@ -7927,6 +7985,7 @@ "HEWE": "Health & Wealth", "HEX": "HEX", "HEXC": "HexCoin", + "HEYFLORK": "HeyFlork", "HEZ": "Hermez Network Token", "HF": "Have Fun", "HFI": "Holder Finance", @@ -8320,11 +8379,12 @@ "IBG": "iBG Token", "IBGT": "Infrared BGT", "IBIT": "InfinityBit Token", + "IBITON": "iShares Bitcoin Trust (Ondo Tokenized)", "IBMX": "International Business Machines xStock", "IBNB": "iBNB", "IBP": "Innovation Blockchain Payment", "IBS": "Irbis Network", - "IC": "Ignition", + "IC": "Icy", "ICA": "Icarus Network", "ICAP": "ICAP Token", "ICASH": "ICASH", @@ -8411,8 +8471,10 @@ "IG": "IG Token ", "IGCH": "IG-Crypto Holding", "IGG": "IG Gold", + "IGGT": "The Invincible Game Token", "IGI": "Igi", "IGNIS": "Ignis", + "IGNITION": "Ignition", "IGT": "Infinitar", "IGTT": "IGT", "IGU": "IguVerse", @@ -8467,7 +8529,6 @@ "IMS": "Independent Money System", "IMST": "Imsmart", "IMT": "Immortal Token", - "IMU": "Immunefi", "IMUSIFY": "imusify", "IMVR": "ImmVRse", "IMX": "Immutable X", @@ -8480,11 +8541,13 @@ "INCEPT": "Incept", "INCNT": "Incent", "INCO": "InfinitiCoin", + "INCOME": "Universal High Income", "INCORGNITO": "Incorgnito", "INCP": "InceptionCoin", "INCREMENTUM": "Incrementum", "INCX": "INCX Coin", "IND": "Indorse", + "INDAON": "iShares MSCI India ETF (Ondo Tokenized)", "INDAY": "Independence Day", "INDEPENDENCEDAY": "Independence Day", "INDEX": "Index Cooperative", @@ -8526,7 +8589,8 @@ "INNBC": "Innovative Bioresearch Coin", "INNOU": "Innou", "INNOVAMINEX": "InnovaMinex", - "INO": "Ino Coin", + "INO": "InoAi", + "INOCOIN": "Ino Coin", "INOVAI": "INOVAI", "INP": "Ionic Pocket Token", "INRT": "INRToken", @@ -8591,6 +8655,7 @@ "IONC": "IONChain", "IONOMY": "Ionomy", "IONP": "Ion Power Token", + "IONQON": "IonQ (Ondo Tokenized)", "IONX": "Charged Particles", "IONZ": "IONZ", "IOP": "Internet of People", @@ -8674,6 +8739,7 @@ "ITALOCOIN": "Italocoin", "ITAM": "ITAM Games", "ITAMCUBE": "CUBE", + "ITAON": "iShares US Aerospace and Defense ETF (Ondo Tokenized)", "ITC": "IoT Chain", "ITE": "Idle Tribe Era", "ITEM": "ITEMVERSE", @@ -8709,6 +8775,7 @@ "IVY": "IvyKoin", "IVZ": "InvisibleCoin", "IW": "iWallet", + "IWC": "IWC", "IWFT": "İstanbul Wild Cats", "IWMON": "iShares Russell 2000 ETF (Ondo Tokenized)", "IWT": "IwToken", @@ -9346,6 +9413,7 @@ "KONET": "KONET", "KONG": "KONG", "KONO": "Konomi Network", + "KOON": "Coca-Cola (Ondo Tokenized)", "KORA": "Kortana", "KORC": "King of Referral Coin", "KORE": "KORE Vault", @@ -9382,6 +9450,7 @@ "KRD": "Krypton DAO", "KREDS": "KREDS", "KREST": "krest Network", + "KRGN": "Kerrigan Network", "KRIDA": "KridaFans", "KRIPTO": "Kripto", "KRL": "Kryll", @@ -9458,6 +9527,7 @@ "KWAI": "KWAI", "KWATT": "4New", "KWD": "KIWI DEFI", + "KWEBON": "KraneShares CSI China Internet ETF (Ondo Tokenized)", "KWEEN": "KWEEN", "KWENTA": "Kwenta", "KWH": "KWHCoin", @@ -9845,6 +9915,7 @@ "LMR": "Lumerin", "LMT": "LIMITUS", "LMTOKEN": "LM Token", + "LMTON": "Lockheed (Ondo Tokenized)", "LMTS": "Limitless Official Token", "LMWR": "LimeWire Token", "LMXC": "LimonX", @@ -9897,7 +9968,7 @@ "LOKA": "League of Kingdoms", "LOKR": "Polkalokr", "LOKY": "Loky by Virtuals", - "LOL": "EMOGI Network", + "LOL": "LOL", "LOLA": "Lola", "LOLATHECAT": "Lola", "LOLC": "LOL Coin", @@ -9907,9 +9978,11 @@ "LOLO": "Lolo", "LOLONBSC": "LOL", "LON": "Tokenlon", - "LONG": "Longdrink Finance", + "LONG": "LONG", + "LONGDRINK": "Longdrink Finance", "LONGEVITY": "longevity", "LONGFU": "LONGFU", + "LONGFUN": "Long", "LONGM": "Long Mao", "LONGSHINE": "LongShine", "LOOBY": "Looby by Stephen Bliss", @@ -10084,6 +10157,7 @@ "LUNES": "Lunes", "LUNG": "LunaGens", "LUNR": "Lunr Token", + "LUNRON": "Intuitive Machines (Ondo Tokenized)", "LUPIN": "LUPIN", "LUR": "Lumera", "LUS": "Luna Rush", @@ -10261,7 +10335,8 @@ "MANUSAI": "Manus AI Agent", "MANYU": "Manyu", "MANYUDOG": "MANYU", - "MAO": "Mao", + "MAO": "MAO", + "MAOMEME": "Mao", "MAOW": "MAOW", "MAP": "MAP Protocol", "MAPC": "MapCoin", @@ -10360,6 +10435,7 @@ "MAXL": "Maxi protocol", "MAXR": "Max Revive", "MAXX": "MAXX Finance", + "MAXXING": "Maxxing", "MAY": "Mayflower", "MAYA": "Maya", "MAYACOIN": "MayaCoin", @@ -10667,6 +10743,8 @@ "MEXC": "MEXC Token", "MEXP": "MOJI Experience Points", "MEY": "Mey Network", + "MEZO": "MEZO", + "MEZOUSD": "Mezo USD", "MEZZ": "MEZZ Token", "MF": "Moonwalk Fitness", "MF1": "Meta Finance", @@ -10713,7 +10791,8 @@ "MHT": "Mouse Haunt", "MHUNT": "MetaShooter", "MI": "XiaoMiCoin", - "MIA": "MiamiCoin", + "MIA": "MIA", + "MIAMICOIN": "MiamiCoin", "MIAO": "MIAOCoin", "MIB": "Mobile Integrated Blockchain", "MIBO": "miBoodle", @@ -11034,7 +11113,7 @@ "MOLO": "MOLO CHAIN", "MOLT": "Moltbook", "MOLTID": "MoltID", - "MOM": "Mother of Memes", + "MOM": "MOM", "MOMA": "Mochi Market", "MOMIJI": "MAGA Momiji", "MOMO": "Momo", @@ -11120,6 +11199,7 @@ "MOONEY": "Moon DAO", "MOONI": "MOON INU", "MOONION": "Moonions", + "MOONKIN": "MOONKIN", "MOONKIZE": "MoonKize", "MOONLIGHT": "Moonlight Token", "MOONPIG": "Moonpig", @@ -11156,6 +11236,7 @@ "MOTG": "MetaOctagon", "MOTH": "MOTH", "MOTHER": "Mother Iggy", + "MOTHEROFMEMES": "Mother of Memes", "MOTI": "Motion", "MOTION": "motion", "MOTIONCOIN": "Motion", @@ -11533,6 +11614,7 @@ "NBAR": "NOBAR", "NBC": "Niobium", "NBD": "Never Back Down", + "NBISON": "Nebius Group (Ondo Tokenized)", "NBIT": "NetBit", "NBL": "Nobility", "NBLU": "NuriTopia", @@ -11609,6 +11691,7 @@ "NEKOS": "Nekocoin", "NEKTAR": "Nektar Token", "NEMO": "NEMO", + "NEMON": "Newmont (Ondo Tokenized)", "NEMS": "The Nemesis", "NEO": "NEO", "NEOG": "NEO Gold", @@ -11898,6 +11981,7 @@ "NOVA": "Nova Finance", "NOVAAI": "Nova AI", "NOW": "NOW Token", + "NOWON": "ServiceNow (Ondo Tokenized)", "NOX": "NITRO", "NOXB": "Noxbox", "NPAS": "New Paradigm Assets Solution", @@ -12140,7 +12224,7 @@ "OEX": "OEX", "OF": "OFCOIN", "OFBC": "OneFinBank Coin", - "OFC": "$OFC Coin", + "OFC": "OneFootball Club", "OFCR": "CryptoPolice", "OFE": "Ofero", "OFF": "BlastOff", @@ -12178,6 +12262,7 @@ "OHNOGG": "OHNHO (ohno.gg)", "OHO": "OHO", "OICOIN": "Osmium Investment Coin", + "OIHON": "VanEck Oil Services ETF (Ondo Tokenized)", "OIIAOIIA": "spinning cat", "OIK": "Space Nation", "OIL": "Oiler", @@ -12274,10 +12359,12 @@ "ONION": "DeepOnion", "ONIT": "ONBUFF", "ONIX": "Onix", - "ONL": "On.Live", + "ONL": "OneLink", "ONLINE": "Onlinebase", + "ONLIVE": "On.Live", "ONLY": "OnlyCam", "ONLYCUMIES": "OnlyCumies", + "ONLYFANSCOINS": "$OFC Coin", "ONNO": "Onno Vault", "ONOMY": "Onomy Protocol", "ONOT": "ONO", @@ -12334,6 +12421,7 @@ "OPES": "Opes", "OPET": "ÕpetFoundation", "OPEX": "Optherium Token", + "OPG": "OpenGradient", "OPHX": "Operation Phoenix", "OPINU": "Optimus Inu", "OPIUM": "Opium", @@ -12506,6 +12594,7 @@ "OXY2": "Cryptoxygen", "OXYC": "Oxycoin", "OYS": "Oyster Platform", + "OYSTERPEARL": "Oyster Pearl", "OZG": "Ozagold", "OZK": "OrdiZK", "OZMPC": "Ozempic", @@ -12633,6 +12722,7 @@ "PATRIOT": "Patriot", "PATTON": "Patton", "PAUL": "Elephant Penguin", + "PAVEON": "Global X US Infrastructure Development ETF (Ondo Tokenized)", "PAVIA": "Pavia", "PAVO": "Pavocoin", "PAW": "PAWSWAP", @@ -13021,7 +13111,6 @@ "PINMO": "Pinmo", "PINO": "Pinocchu", "PINS": "PINs Network Token", - "PINU": "Piccolo Inu", "PINU100X": "Pi INU 100x", "PIO": "Pioneershares", "PIP": "Pip", @@ -13356,6 +13445,7 @@ "PPI": "Primpy", "PPIZZA": "P Pizza", "PPL": "Pink Panther Lovers", + "PPLTON": "abrdn Physical Platinum Shares ETF (Ondo Tokenized)", "PPM": "Punk Panda Messenger", "PPN": "Puppies Network", "PPOVR": "POVR", @@ -13402,6 +13492,7 @@ "PRIMATE": "Primate", "PRIME": "Echelon Prime", "PRIMECHAIN": "PrimeChain", + "PRIMECOIN": "PrimeCoin", "PRIMEETH": "Prime Staked ETH", "PRIMEX": "Primex Finance", "PRIN": "Print The Pepe", @@ -13412,7 +13503,7 @@ "PRISMA": "Prisma Finance", "PRIVIX": "Privix", "PRIX": "Privatix", - "PRL": "Oyster Pearl", + "PRL": "Perle", "PRM": "PrismChain", "PRMX": "PREMA", "PRNT": "Prime Numbers", @@ -13442,6 +13533,7 @@ "PROTEO": "Proteo DeFi", "PROTO": "Protocon", "PROTOCOLZ": "Protocol Zero", + "PROTOKEN": "Pro Token", "PROTON": "Proton", "PROUD": "PROUD Money", "PROVE": "Succinct", @@ -13540,6 +13632,7 @@ "PUMPB": "Pump", "PUMPBTC": "pumpBTC", "PUMPBTCXYZ": "PumpBTC", + "PUMPCADE": "PUMPCADE", "PUMPFUNBAN": "Pump Fun Ban", "PUMPIT": "BOGDANOFF", "PUMPTRUMP": "PUMP TRUMP", @@ -13749,6 +13842,7 @@ "QUBE": "Qube", "QUBIC": "Qubic", "QUBITICA": "Qubitica", + "QUBTON": "Quantum Computing (Ondo Tokenized)", "QUBY": "Quby", "QUDEFI": "Qudefi", "QUE": "Queen Of Memes", @@ -13923,6 +14017,7 @@ "RDR": "Rise of Defenders", "RDS": "Reger Diamond", "RDT": "Ridotto", + "RDWON": "Redwire (Ondo Tokenized)", "RDX": "Redux Protocol", "REA": "Realisto", "REACH": "/Reach", @@ -13985,6 +14080,7 @@ "REFI": "Realfinance Network", "REFLECT": "REFLECT", "REFLECTO": "Reflecto", + "REFLECTOUSD": "Reflecto USD", "REFTOKEN": "RefToken", "REFUND": "Refund", "REG": "RealToken Ecosystem Governance", @@ -13994,6 +14090,7 @@ "REGEN": "Regen Network", "REGENT": "REGENT COIN", "REGI": "Resistance Girl", + "REGNON": "Regeneron Pharmaceuticals (Ondo Tokenized)", "REGRET": "Regret", "REHA": "Resistance Hamster", "REHAB": "NFT Rehab", @@ -14058,6 +14155,7 @@ "RETSA": "Retsa Coin", "REU": "REUCOIN", "REUNI": "Reunit Wallet", + "REUR": "Royal Euro", "REUSDC": "Relend USDC", "REV": "Revain", "REV3L": "REV3AL", @@ -14158,7 +14256,8 @@ "RIPT": "RiptideCoin", "RIPTO": "RiptoBuX", "RIS": "Riser", - "RISE": "EverRise", + "RISE": "Rise NASA", + "RISECOIN": "Rise coin", "RISEP": "Rise Protocol", "RISEVISION": "Rise", "RISITA": "Risitas", @@ -14166,6 +14265,7 @@ "RITE": "ritestream", "RITO": "Ritocoin", "RITZ": "Ritz.Game", + "RIV": "RIV Coin", "RIVER": "River", "RIVERPTS": "River Point Reward Token", "RIVUS": "RivusDAO", @@ -14181,6 +14281,7 @@ "RKC": "Royal Kingdom Coin", "RKEY": "RKEY", "RKI": "RAKHI", + "RKLBON": "Rocket Lab (Ondo Tokenized)", "RKN": "RAKON", "RKR": "REAKTOR", "RKT": "Rock Token", @@ -14380,6 +14481,7 @@ "RUGPROOF": "Launchpad", "RUGPULL": "Captain Rug Pull", "RUGZ": "pulltherug.finance", + "RUJI": "Rujira", "RULER": "Ruler Protocol", "RUM": "RUM Pirates of The Arrland Token", "RUN": "Speedrun", @@ -14394,7 +14496,7 @@ "RUP": "Rupee", "RUPX": "Rupaya", "RURI": "Ruri - Truth Terminal's Crush", - "RUSD": "Reflecto USD", + "RUSD": "Royal Dollar", "RUSH": "RUSH COIN", "RUSHCMC": "RUSHCMC", "RUSSELL": "Russell", @@ -14602,7 +14704,7 @@ "SBCH": "Smart Bitcoin Cash", "SBE": "Sombe", "SBEFE": "BEFE", - "SBET": "SBET", + "SBET": "Sports Bet", "SBF": "SBF In Jail", "SBGO": "Bingo Share", "SBIO": "Vector Space Biosciences, Inc.", @@ -14613,6 +14715,7 @@ "SBSC": "Subscriptio", "SBT": "SOLBIT", "SBTC": "Super Bitcoin", + "SBUXON": "Starbucks (Ondo Tokenized)", "SC": "Siacoin", "SC20": "Shine Chain", "SCA": "Scallop", @@ -14629,6 +14732,7 @@ "SCASH": "SpaceCash", "SCAT": "Sad Cat Token", "SCC": "StockChain Coin", + "SCCOON": "Southern Copper (Ondo Tokenized)", "SCCP": "S.C. Corinthians Fan Token", "SCDS": "Shrine Cloud Storage Network", "SCF": "Smoking Chicken Fish", @@ -15008,6 +15112,7 @@ "SHX": "Stronghold Token", "SHXV1": "Stronghold Token v1", "SHY": "Shytoshi Kusama", + "SHYON": "iShares 1-3 Year Treasury Bond ETF (Ondo Tokenized)", "SHYTCOIN": "ShytCoin", "SI": "Siren", "SI14": "Si14", @@ -15202,6 +15307,7 @@ "SLUGDENG": "SLUG DENG", "SLUMBO": "SLUMBO", "SLVLUSD": "Staked Level USD", + "SLVN": "SLVNToken", "SLVON": "iShares Silver Trust (Ondo Tokenized)", "SLVX": "eToro Silver", "SLX": "SLIMEX", @@ -15293,6 +15399,7 @@ "SNC": "SunContract", "SNCT": "SnakeCity", "SND": "Sandcoin", + "SNDKON": "SanDisk (Ondo Tokenized)", "SNE": "StrongNode", "SNEED": "Sneed", "SNEK": "Snek", @@ -15410,6 +15517,7 @@ "SOLCAT": "CatSolHat", "SOLCATMEME": "SOLCAT", "SOLCEX": "SolCex", + "SOLCHAT": "Solchat", "SOLCHICKSSHARDS": "SolChicks Shards", "SOLE": "SoleCoin", "SOLER": "Solerium", @@ -15420,6 +15528,7 @@ "SOLFUN": "SolFun", "SOLGOAT": "SOLGOAT", "SOLGUN": "Solgun", + "SOLIB": "Solitaire Blossom", "SOLIC": "Solice", "SOLID": "Solidified", "SOLIDSEX": "SOLIDsex: Tokenized veSOLID", @@ -15583,7 +15692,12 @@ "SPIDER": "Spider Man", "SPIDERMAN": "SPIDERMAN BITCOIN", "SPIDEY": "Spidey", - "SPIKE": "Spiking", + "SPIK": "Spike", + "SPIKE": "SPIKE", + "SPIKE1984": "Spike 1984", + "SPIKECOIN": "SPIKE", + "SPIKEFURIE": "SPIKE", + "SPIKING": "Spiking", "SPILLWAYS": "SpillWays", "SPIN": "SPIN Protocol", "SPINT": "Spintria", @@ -15591,6 +15705,7 @@ "SPITT": "Hawk Ttuuaahh", "SPIZ": "SPACE-iZ", "SPK": "Spark", + "SPKI": "SPIKE INU", "SPKL": "SpokLottery", "SPKTR": "Ghost Coin", "SPKY": "GhostyCash", @@ -15612,6 +15727,7 @@ "SPOOL": "Spool DAO Token", "SPORE": "Spore", "SPORT": "SportsCoin", + "SPORTBET": "SBET", "SPORTFUN": "Sport.fun", "SPORTS": "ZenSports", "SPORTSFIX": "SportsFix", @@ -15880,6 +15996,7 @@ "STRA": "STRAY", "STRAKS": "Straks", "STRAT": "Strategic Hub for Innovation in Blockchain", + "STRAWBE": "Strawberry In Bloom", "STRAX": "Stratis", "STRAY": "Stray Dog", "STRAYDOG": "Stray Dog", @@ -15927,6 +16044,7 @@ "STV": "Sativa Coin", "STWEMIX": "Staked WEMIX", "STX": "Stacks", + "STXON": "Seagate (Ondo Tokenized)", "STYL": "Stylike Governance", "STYLE": "Style", "STZ": "99Starz", @@ -16571,6 +16689,7 @@ "TKX": "Tokenize Xchange", "TKY": "THEKEY Token", "TLC": "Trillioner", + "TLF": "Tradeleaf", "TLM": "Alien Worlds", "TLN": "Trustlines Network", "TLOS": "Telos", @@ -16746,6 +16865,7 @@ "TRADECHAIN": "Trade Chain", "TRADETIDE": "Trade Tide Token", "TRADEX": "TradeX AI", + "TRADIX": "Tradix", "TRADOOR": "Tradoor", "TRAI": "Trackgood AI", "TRAID": "Traid", @@ -16826,6 +16946,7 @@ "TROLLRUN": "TROLL", "TROLLS": "trolls in a memes world", "TRONBETLIVE": "TRONbetLive", + "TRONBULL": "Tron Bull", "TRONDOG": "TronDog", "TRONI": "Tron Inu", "TRONP": "Donald Tronp", @@ -16960,6 +17081,7 @@ "TTM": "Tradetomato", "TTN": "TTN", "TTNT": "TITA Project", + "TTPA": "TRUMPTOPIA", "TTT": "TRUMPETTOKEN", "TTTU": "T-Project", "TTU": "TaTaTu", @@ -17022,7 +17144,7 @@ "TWP": "TrumpWifPanda", "TWT": "Trust Wallet Token", "TWURTLE": "twurtle the turtle", - "TX": "Tradix", + "TX": "tx", "TX20": "Trex20", "TXA": "TXA", "TXAG": "tSILVER", @@ -17075,6 +17197,7 @@ "UBQ": "Ubiq", "UBT": "UniBright", "UBTC": "UnitedBitcoin", + "UBU": "UBU", "UBX": "UBIX Network", "UBXN": "UpBots Token", "UBXS": "UBXS", @@ -17104,6 +17227,7 @@ "UDT": "Unlock Protocol", "UE": "UE Coin", "UEC": "United Emirates Coin", + "UECON": "Uranium Energy (Ondo Tokenized)", "UEDC": "United Emirate Decentralized Coin", "UENC": "UniversalEnergyChain", "UET": "Useless Ethereum Token", @@ -17169,6 +17293,7 @@ "UNBNK": "Unbanked", "UNBREAKABLE": "UnbreakableCoin", "UNC": "UnCoin", + "UNCEROID": "unc asteroid", "UNCL": "UNCL", "UNCN": "Unseen", "UNCOMMONGOODS": "UNCOMMON•GOODS", @@ -17182,6 +17307,7 @@ "UNF": "Unfed Coin", "UNFI": "Unifi Protocol DAO", "UNFK": "UNFK", + "UNGON": "US Natural Gas Fund (Ondo Tokenized)", "UNHX": "UnitedHealth xStock", "UNI": "Uniswap Protocol Token", "UNIART": "UNIART", @@ -17219,6 +17345,7 @@ "UNITE": "Unite", "UNITED": "UnitedCoins", "UNITEDTRADERS": "United Traders Token", + "UNITOKEN": "Uni Token", "UNITPROV2": "Unit Protocol New", "UNITRADE": "UniTrade", "UNITREEAI": "Unitree G1 AI", @@ -17235,16 +17362,18 @@ "UNO": "UnoRe", "UNOB": "Unobtanium", "UNP": "UNIPOLY", + "UNPON": "Union Pacific Corporation (Ondo Tokenized)", "UNQ": "UNQ", "UNQT": "Unique Utility Token", "UNR": "Unirealchain", "UNRC": "UniversalRoyalCoin", "UNS": "UNS TOKEN", "UNSHETH": "unshETH Ether", + "UNT": "UnityWallet Token", "UNW": "UniWorld", "UOP": "Utopia Genesis Foundation", "UOS": "UOS", - "UP": "UpToken", + "UP": "Superform", "UPC": "UPCX", "UPCG": "Upcomings", "UPCO2": "Universal Carbon", @@ -17259,6 +17388,7 @@ "UPRO": "ULTRAPRO", "UPS": "UPFI Network", "UPT": "UPROCK", + "UPTOKEN": "UpToken", "UPTOP": "UPTOP", "UPTOS": "UPTOS", "UPUNK": "Unicly CryptoPunks Collection", @@ -17269,6 +17399,7 @@ "URAC": "Uranus", "URALS": "Urals Coin", "URANUS": "Uranus", + "URAON": "Global X Uranium ETF (Ondo Tokenized)", "URFA": "Urfaspor Token", "URMOM": "urmom", "URO": "Urolithin A", @@ -17296,7 +17427,7 @@ "USDAI": "USDai", "USDAP": "Bond Appetite USD", "USDAVALON": "USDa", - "USDB": "USD Bancor", + "USDB": "Blynex USD", "USDBC": "Bridged USDC", "USDBLAST": "USDB Blast", "USDC": "USD Coin", @@ -17412,13 +17543,14 @@ "UTNP": "Universa", "UTON": "uTON", "UTOPIA": "Utopia", + "UTOPIAUSD": "Utopia USD", "UTT": "uTrade", "UTU": "UTU Protocol", "UTX": "UTIX", "UTYA": "Utya", "UTYAB": "Utya Black", "UUC": "USA Unity Coin", - "UUSD": "Utopia USD", + "UUSD": "Unity USD", "UUU": "U Network", "UVT": "UvToken", "UW3S": "Utility Web3Shot", @@ -17516,7 +17648,7 @@ "VEC2": "VectorCoin 2.0", "VECT": "Vectorium", "VECTOR": "VectorChat.ai", - "VEE": "BLOCKv", + "VEE": "Vee Token", "VEED": "VEED", "VEEN": "LIVEEN", "VEETOKEN": "Vee Token", @@ -17579,6 +17711,7 @@ "VEXT": "Veloce", "VFIL": "Venus Filecoin", "VFOX": "VFOX", + "VFSON": "VinFast Auto (Ondo Tokenized)", "VFT": "Value Finance", "VFX": "ViFoxCoin", "VFY": "zkVerify", @@ -17621,7 +17754,8 @@ "VIKKY": "VikkyToken", "VILADY": "Vitalik Milady", "VIM": "VicMove", - "VIN": "VinChain", + "VIN": "VulgarTycoon", + "VINCHAIN": "VinChain", "VINCI": "VINCI", "VINE": "Vine Coin", "VINU": "Vita Inu", @@ -17698,6 +17832,7 @@ "VNM": "Venom", "VNN": "VINU Network", "VNO": "Veno Finance", + "VNQON": "Vanguard Real Estate ETF (Ondo Tokenized)", "VNST": "VNST Stablecoin", "VNT": "VNT Chain", "VNTR": "Venture Mind AI", @@ -17716,6 +17851,7 @@ "VOL": "Volume Network", "VOLBOOST": "VolBoost", "VOLLAR": "Vollar", + "VOLM": "VOLM", "VOLR": "Volare Network", "VOLT": "Volt Inu", "VOLTA": "Volta Club", @@ -17770,6 +17906,7 @@ "VRSW": "VirtuSwap", "VRT": "Venus Reward Token", "VRTX": "Vertex Protocol", + "VRTXON": "Vertex Pharmaceuticals (Ondo Tokenized)", "VRTY": "Verity", "VRX": "Verox", "VS": "veSync", @@ -17783,6 +17920,7 @@ "VSOL": "VSolidus", "VSP": "Vesper Finance", "VSTA": "Vesta Finance", + "VSTON": "Vistra (Ondo Tokenized)", "VSTR": "Vestra DAO", "VSUI": "Volo Staked SUI", "VSX": "Versus-X", @@ -17977,6 +18115,7 @@ "WCUSD": "Wrapped Celo Dollar", "WDAI": "Dai (Wormhole)", "WDC": "WorldCoin", + "WDCON": "Western Digital (Ondo Tokenized)", "WDOG": "Winterdog", "WDOGE": "Wrapped Dogecoin", "WDOT": "WDOT", @@ -18212,6 +18351,7 @@ "WMM": "Weird Medieval Memes", "WMN": "WebMind Network", "WMNT": "Wrapped Mantle", + "WMON": "Waste Management (Ondo Tokenized)", "WMOXY": "Moxy", "WMT": "World Mobile Token v1", "WMTON": "Walmart (Ondo Tokenized)", @@ -18243,9 +18383,10 @@ "WOID": "WORLD ID", "WOJ": "Wojak Finance", "WOJA": "Wojak", - "WOJAK": "Wojak", + "WOJAK": "wojak", "WOJAK2": "Wojak 2.0 Coin", "WOJAKC": "Wojak Coin", + "WOJAKIO": "Wojak", "WOKB": "Wrapped OKB", "WOKIE": "Wokie Plumpkin by Virtuals", "WOKT": "Wrapped OKT", @@ -18401,6 +18542,7 @@ "WXRP": "Wrapped XRP", "WXT": "WXT", "WYAC": "Woman Yelling At Cat", + "WYDE": "WYDE: End Hunger", "WYN": "Wynn", "WYNN": "Anita Max Wynn", "WYS": "Wysker", @@ -18488,6 +18630,7 @@ "XCG": "Xchange", "XCH": "Chia", "XCHAT": "XChat", + "XCHATSOL": "XChat", "XCHF": "CryptoFranc", "XCHNG": "Chainge Finance", "XCI": "Cannabis Industry Coin", @@ -18543,6 +18686,7 @@ "XENOVERSE": "Xenoverse", "XEP": "Electra Protocol", "XERA": "XERA", + "XERO": "XERO", "XERS": "X Project", "XES": "Proxeus", "XET": "Xfinite Entertainment Token", @@ -18620,6 +18764,7 @@ "XMN": "xMoney", "XMO": "Monero Original", "XMON": "XMON", + "XMONEY": "X Money", "XMOON": "r/CryptoCurrency Moons v1", "XMP": "Mapt.Coin", "XMR": "Monero", @@ -18678,7 +18823,7 @@ "XPL": "Plasma", "XPLA": "XPLA", "XPLL": "ParallelChain", - "XPM": "PrimeCoin", + "XPM": "XPMarket Token", "XPN": "PANTHEON X", "XPND": "Time Raiders", "XPNET": "XP Network", @@ -18797,6 +18942,7 @@ "XVS": "Venus", "XWC": "WhiteCoin", "XWG": "X World Games", + "XWGT": "Wodo Gaming Token", "XWIN": "xWIN Finance", "XWP": "Swap", "XWT": "World Trade Funds", @@ -19039,7 +19185,8 @@ "ZEBU": "ZEBU", "ZEC": "ZCash", "ZECD": "ZCashDarkCoin", - "ZED": "ZedCoins", + "ZED": "ZED Token", + "ZEDCOIN": "ZedCoin", "ZEDD": "ZedDex", "ZEDTOKEN": "Zed Token", "ZEDX": "ZEDX Сoin", diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index f08a09a83..94e389f6a 100644 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -18,11 +18,15 @@ import type { NestExpressApplication } from '@nestjs/platform-express'; import cookieParser from 'cookie-parser'; import { NextFunction, Request, Response } from 'express'; import helmet from 'helmet'; +import { EnvHttpProxyAgent, setGlobalDispatcher } from 'undici'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; async function bootstrap() { + // Respect HTTP_PROXY / HTTPS_PROXY / NO_PROXY for outbound HTTP requests + setGlobalDispatcher(new EnvHttpProxyAgent()); + const configApp = await NestFactory.create(AppModule); const configService = configApp.get(ConfigService); let customLogLevels: LogLevel[]; diff --git a/apps/api/src/middlewares/html-template.middleware.ts b/apps/api/src/middlewares/html-template.middleware.ts index c958718f6..2b8820e81 100644 --- a/apps/api/src/middlewares/html-template.middleware.ts +++ b/apps/api/src/middlewares/html-template.middleware.ts @@ -83,6 +83,10 @@ const locales = { '/en/blog/2025/11/black-weeks-2025': { featureGraphicPath: 'assets/images/blog/black-weeks-2025.jpg', title: `Black Weeks 2025 - ${title}` + }, + '/en/blog/2026/04/ghostfolio-3': { + featureGraphicPath: 'assets/images/blog/ghostfolio-3.jpg', + title: `Announcing Ghostfolio 3.0 - ${title}` } }; diff --git a/apps/api/src/models/rule.ts b/apps/api/src/models/rule.ts index 5603964c5..66cda1d78 100644 --- a/apps/api/src/models/rule.ts +++ b/apps/api/src/models/rule.ts @@ -1,6 +1,5 @@ import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data/exchange-rate-data.service'; import { DEFAULT_LANGUAGE_CODE } from '@ghostfolio/common/config'; -import { groupBy } from '@ghostfolio/common/helper'; import { PortfolioPosition, PortfolioReportRule, @@ -9,6 +8,7 @@ import { } from '@ghostfolio/common/interfaces'; import { Big } from 'big.js'; +import { groupBy } from 'lodash'; import { EvaluationResult } from './interfaces/evaluation-result.interface'; import { RuleInterface } from './interfaces/rule.interface'; @@ -41,10 +41,10 @@ export abstract class Rule implements RuleInterface { public groupCurrentHoldingsByAttribute( holdings: PortfolioPosition[], - attribute: keyof PortfolioPosition, + attribute: `assetProfile.${Extract}`, baseCurrency: string ) { - return Array.from(groupBy(attribute, holdings).entries()).map( + return Object.entries(groupBy(holdings, attribute)).map( ([attributeValue, objs]) => ({ groupKey: attributeValue, investment: objs.reduce( @@ -59,7 +59,7 @@ export abstract class Rule implements RuleInterface { new Big(currentValue.quantity) .mul(currentValue.marketPrice ?? 0) .toNumber(), - currentValue.currency, + currentValue.assetProfile.currency, baseCurrency ), 0 diff --git a/apps/api/src/models/rules/asset-class-cluster-risk/equity.ts b/apps/api/src/models/rules/asset-class-cluster-risk/equity.ts index 372b0bb06..12303fd92 100644 --- a/apps/api/src/models/rules/asset-class-cluster-risk/equity.ts +++ b/apps/api/src/models/rules/asset-class-cluster-risk/equity.ts @@ -27,9 +27,10 @@ export class AssetClassClusterRiskEquity extends Rule { public evaluate(ruleSettings: Settings) { const holdingsGroupedByAssetClass = this.groupCurrentHoldingsByAttribute( this.holdings, - 'assetClass', + 'assetProfile.assetClass', ruleSettings.baseCurrency ); + let totalValue = 0; const equityValueInBaseCurrency = diff --git a/apps/api/src/models/rules/asset-class-cluster-risk/fixed-income.ts b/apps/api/src/models/rules/asset-class-cluster-risk/fixed-income.ts index 404b4cd32..fd7c00f11 100644 --- a/apps/api/src/models/rules/asset-class-cluster-risk/fixed-income.ts +++ b/apps/api/src/models/rules/asset-class-cluster-risk/fixed-income.ts @@ -27,9 +27,10 @@ export class AssetClassClusterRiskFixedIncome extends Rule { public evaluate(ruleSettings: Settings) { const holdingsGroupedByAssetClass = this.groupCurrentHoldingsByAttribute( this.holdings, - 'assetClass', + 'assetProfile.assetClass', ruleSettings.baseCurrency ); + let totalValue = 0; const fixedIncomeValueInBaseCurrency = diff --git a/apps/api/src/models/rules/currency-cluster-risk/base-currency-current-investment.ts b/apps/api/src/models/rules/currency-cluster-risk/base-currency-current-investment.ts index 83c72eeb8..6890fecd6 100644 --- a/apps/api/src/models/rules/currency-cluster-risk/base-currency-current-investment.ts +++ b/apps/api/src/models/rules/currency-cluster-risk/base-currency-current-investment.ts @@ -27,7 +27,7 @@ export class CurrencyClusterRiskBaseCurrencyCurrentInvestment extends Rule { public evaluate(ruleSettings: Settings) { const holdingsGroupedByCurrency = this.groupCurrentHoldingsByAttribute( this.holdings, - 'currency', + 'assetProfile.currency', ruleSettings.baseCurrency ); diff --git a/apps/api/src/services/configuration/configuration.service.ts b/apps/api/src/services/configuration/configuration.service.ts index ad8e84a99..b19508d3e 100644 --- a/apps/api/src/services/configuration/configuration.service.ts +++ b/apps/api/src/services/configuration/configuration.service.ts @@ -44,7 +44,6 @@ export class ConfigurationService { ENABLE_FEATURE_AUTH_GOOGLE: bool({ default: false }), ENABLE_FEATURE_AUTH_OIDC: bool({ default: false }), ENABLE_FEATURE_AUTH_TOKEN: bool({ default: true }), - ENABLE_FEATURE_BULL_BOARD: bool({ default: false }), ENABLE_FEATURE_FEAR_AND_GREED_INDEX: bool({ default: false }), ENABLE_FEATURE_GATHER_NEW_EXCHANGE_RATES: bool({ default: true }), ENABLE_FEATURE_READ_ONLY_MODE: bool({ default: false }), diff --git a/apps/api/src/services/data-provider/coingecko/coingecko.service.ts b/apps/api/src/services/data-provider/coingecko/coingecko.service.ts index d5ed69d06..b01ba177b 100644 --- a/apps/api/src/services/data-provider/coingecko/coingecko.service.ts +++ b/apps/api/src/services/data-provider/coingecko/coingecko.service.ts @@ -7,6 +7,7 @@ import { GetQuotesParams, GetSearchParams } from '@ghostfolio/api/services/data-provider/interfaces/data-provider.interface'; +import { FetchService } from '@ghostfolio/api/services/fetch/fetch.service'; import { DEFAULT_CURRENCY } from '@ghostfolio/common/config'; import { DATE_FORMAT } from '@ghostfolio/common/helper'; import { @@ -32,7 +33,8 @@ export class CoinGeckoService implements DataProviderInterface, OnModuleInit { private headers: HeadersInit = {}; public constructor( - private readonly configurationService: ConfigurationService + private readonly configurationService: ConfigurationService, + private readonly fetchService: FetchService ) {} public onModuleInit() { @@ -67,12 +69,14 @@ export class CoinGeckoService implements DataProviderInterface, OnModuleInit { }; try { - const { name } = await fetch(`${this.apiUrl}/coins/${symbol}`, { - headers: this.headers, - signal: AbortSignal.timeout( - this.configurationService.get('REQUEST_TIMEOUT') - ) - }).then((res) => res.json()); + const { name } = await this.fetchService + .fetch(`${this.apiUrl}/coins/${symbol}`, { + headers: this.headers, + signal: AbortSignal.timeout( + this.configurationService.get('REQUEST_TIMEOUT') + ) + }) + .then((res) => res.json()); response.name = name; } catch (error) { @@ -118,13 +122,15 @@ export class CoinGeckoService implements DataProviderInterface, OnModuleInit { vs_currency: DEFAULT_CURRENCY.toLowerCase() }); - const { error, prices, status } = await fetch( - `${this.apiUrl}/coins/${symbol}/market_chart/range?${queryParams.toString()}`, - { - headers: this.headers, - signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()); + const { error, prices, status } = await this.fetchService + .fetch( + `${this.apiUrl}/coins/${symbol}/market_chart/range?${queryParams.toString()}`, + { + headers: this.headers, + signal: AbortSignal.timeout(requestTimeout) + } + ) + .then((res) => res.json()); if (error?.status) { throw new Error(error.status.error_message); @@ -181,13 +187,12 @@ export class CoinGeckoService implements DataProviderInterface, OnModuleInit { vs_currencies: DEFAULT_CURRENCY.toLowerCase() }); - const quotes = await fetch( - `${this.apiUrl}/simple/price?${queryParams.toString()}`, - { + const quotes = await this.fetchService + .fetch(`${this.apiUrl}/simple/price?${queryParams.toString()}`, { headers: this.headers, signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()); + }) + .then((res) => res.json()); for (const symbol in quotes) { response[symbol] = { @@ -230,13 +235,12 @@ export class CoinGeckoService implements DataProviderInterface, OnModuleInit { query }); - const { coins } = await fetch( - `${this.apiUrl}/search?${queryParams.toString()}`, - { + const { coins } = await this.fetchService + .fetch(`${this.apiUrl}/search?${queryParams.toString()}`, { headers: this.headers, signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()); + }) + .then((res) => res.json()); items = coins.map(({ id: symbol, name }) => { return { diff --git a/apps/api/src/services/data-provider/data-enhancer/data-enhancer.module.ts b/apps/api/src/services/data-provider/data-enhancer/data-enhancer.module.ts index cadf8cf1d..ecad9a673 100644 --- a/apps/api/src/services/data-provider/data-enhancer/data-enhancer.module.ts +++ b/apps/api/src/services/data-provider/data-enhancer/data-enhancer.module.ts @@ -3,6 +3,7 @@ import { CryptocurrencyModule } from '@ghostfolio/api/services/cryptocurrency/cr import { OpenFigiDataEnhancerService } from '@ghostfolio/api/services/data-provider/data-enhancer/openfigi/openfigi.service'; import { TrackinsightDataEnhancerService } from '@ghostfolio/api/services/data-provider/data-enhancer/trackinsight/trackinsight.service'; import { YahooFinanceDataEnhancerService } from '@ghostfolio/api/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service'; +import { FetchModule } from '@ghostfolio/api/services/fetch/fetch.module'; import { Module } from '@nestjs/common'; @@ -16,7 +17,7 @@ import { DataEnhancerService } from './data-enhancer.service'; YahooFinanceDataEnhancerService, 'DataEnhancers' ], - imports: [ConfigurationModule, CryptocurrencyModule], + imports: [ConfigurationModule, CryptocurrencyModule, FetchModule], providers: [ DataEnhancerService, OpenFigiDataEnhancerService, diff --git a/apps/api/src/services/data-provider/data-enhancer/openfigi/openfigi.service.ts b/apps/api/src/services/data-provider/data-enhancer/openfigi/openfigi.service.ts index bb9d0606c..1f5bb74b4 100644 --- a/apps/api/src/services/data-provider/data-enhancer/openfigi/openfigi.service.ts +++ b/apps/api/src/services/data-provider/data-enhancer/openfigi/openfigi.service.ts @@ -1,5 +1,6 @@ import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; import { DataEnhancerInterface } from '@ghostfolio/api/services/data-provider/interfaces/data-enhancer.interface'; +import { FetchService } from '@ghostfolio/api/services/fetch/fetch.service'; import { parseSymbol } from '@ghostfolio/common/helper'; import { Injectable } from '@nestjs/common'; @@ -10,7 +11,8 @@ export class OpenFigiDataEnhancerService implements DataEnhancerInterface { private static baseUrl = 'https://api.openfigi.com'; public constructor( - private readonly configurationService: ConfigurationService + private readonly configurationService: ConfigurationService, + private readonly fetchService: FetchService ) {} public async enhance({ @@ -42,9 +44,8 @@ export class OpenFigiDataEnhancerService implements DataEnhancerInterface { this.configurationService.get('API_KEY_OPEN_FIGI'); } - const mappings = (await fetch( - `${OpenFigiDataEnhancerService.baseUrl}/v3/mapping`, - { + const mappings = (await this.fetchService + .fetch(`${OpenFigiDataEnhancerService.baseUrl}/v3/mapping`, { body: JSON.stringify([ { exchCode: exchange, idType: 'TICKER', idValue: ticker } ]), @@ -54,8 +55,8 @@ export class OpenFigiDataEnhancerService implements DataEnhancerInterface { }, method: 'POST', signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json())) as any[]; + }) + .then((res) => res.json())) as any[]; if (mappings?.length === 1 && mappings[0].data?.length === 1) { const { compositeFIGI, figi, shareClassFIGI } = mappings[0].data[0]; diff --git a/apps/api/src/services/data-provider/data-enhancer/trackinsight/trackinsight.service.ts b/apps/api/src/services/data-provider/data-enhancer/trackinsight/trackinsight.service.ts index 1e297b93b..eeccf725e 100644 --- a/apps/api/src/services/data-provider/data-enhancer/trackinsight/trackinsight.service.ts +++ b/apps/api/src/services/data-provider/data-enhancer/trackinsight/trackinsight.service.ts @@ -1,5 +1,6 @@ import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; import { DataEnhancerInterface } from '@ghostfolio/api/services/data-provider/interfaces/data-enhancer.interface'; +import { FetchService } from '@ghostfolio/api/services/fetch/fetch.service'; import { Holding } from '@ghostfolio/common/interfaces'; import { Country } from '@ghostfolio/common/interfaces/country.interface'; import { Sector } from '@ghostfolio/common/interfaces/sector.interface'; @@ -12,7 +13,8 @@ import { countries } from 'countries-list'; export class TrackinsightDataEnhancerService implements DataEnhancerInterface { private static baseUrl = 'https://www.trackinsight.com/data-api'; private static countriesMapping = { - 'Russian Federation': 'Russia' + 'Russian Federation': 'Russia', + USA: 'United States' }; private static holdingsWeightTreshold = 0.85; private static sectorsMapping = { @@ -23,7 +25,8 @@ export class TrackinsightDataEnhancerService implements DataEnhancerInterface { }; public constructor( - private readonly configurationService: ConfigurationService + private readonly configurationService: ConfigurationService, + private readonly fetchService: FetchService ) {} public async enhance({ @@ -60,12 +63,13 @@ export class TrackinsightDataEnhancerService implements DataEnhancerInterface { return response; } - const profile = await fetch( - `${TrackinsightDataEnhancerService.baseUrl}/funds/${trackinsightSymbol}.json`, - { - signal: AbortSignal.timeout(requestTimeout) - } - ) + const profile = await this.fetchService + .fetch( + `${TrackinsightDataEnhancerService.baseUrl}/funds/${trackinsightSymbol}.json`, + { + signal: AbortSignal.timeout(requestTimeout) + } + ) .then((res) => res.json()) .catch(() => { return {}; @@ -83,12 +87,13 @@ export class TrackinsightDataEnhancerService implements DataEnhancerInterface { response.isin = isin; } - const holdings = await fetch( - `${TrackinsightDataEnhancerService.baseUrl}/holdings/${trackinsightSymbol}.json`, - { - signal: AbortSignal.timeout(requestTimeout) - } - ) + const holdings = await this.fetchService + .fetch( + `${TrackinsightDataEnhancerService.baseUrl}/holdings/${trackinsightSymbol}.json`, + { + signal: AbortSignal.timeout(requestTimeout) + } + ) .then((res) => res.json()) .catch(() => { return {}; @@ -182,12 +187,13 @@ export class TrackinsightDataEnhancerService implements DataEnhancerInterface { requestTimeout: number; symbol: string; }) { - return fetch( - `https://www.trackinsight.com/search-api/search_v2/${symbol}/_/ticker/default/0/3`, - { - signal: AbortSignal.timeout(requestTimeout) - } - ) + return this.fetchService + .fetch( + `https://www.trackinsight.com/search-api/search_v2/${symbol}/_/ticker/default/0/3`, + { + signal: AbortSignal.timeout(requestTimeout) + } + ) .then((res) => res.json()) .then((jsonRes) => { if ( diff --git a/apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.ts b/apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.ts index 72136dc04..30ad81c09 100644 --- a/apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.ts +++ b/apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.ts @@ -218,16 +218,18 @@ export class YahooFinanceDataEnhancerService implements DataEnhancerInterface { }; }) ?? []; - response.sectors = ( - assetProfile.topHoldings?.sectorWeightings ?? [] - ).flatMap((sectorWeighting) => { - return Object.entries(sectorWeighting).map(([sector, weight]) => { - return { - name: this.parseSector(sector), - weight: weight as number - }; + response.sectors = (assetProfile.topHoldings?.sectorWeightings ?? []) + .flatMap((sectorWeighting) => { + return Object.entries(sectorWeighting).map(([sector, weight]) => { + return { + name: this.parseSector(sector), + weight: weight as number + }; + }); + }) + .filter(({ weight }) => { + return weight > 0; }); - }); } else if ( assetSubClass === 'STOCK' && assetProfile.summaryProfile?.country diff --git a/apps/api/src/services/data-provider/data-provider.module.ts b/apps/api/src/services/data-provider/data-provider.module.ts index 71b54f01e..2c6e9fce1 100644 --- a/apps/api/src/services/data-provider/data-provider.module.ts +++ b/apps/api/src/services/data-provider/data-provider.module.ts @@ -10,6 +10,7 @@ import { GoogleSheetsService } from '@ghostfolio/api/services/data-provider/goog import { ManualService } from '@ghostfolio/api/services/data-provider/manual/manual.service'; import { RapidApiService } from '@ghostfolio/api/services/data-provider/rapid-api/rapid-api.service'; import { YahooFinanceService } from '@ghostfolio/api/services/data-provider/yahoo-finance/yahoo-finance.service'; +import { FetchModule } from '@ghostfolio/api/services/fetch/fetch.module'; import { MarketDataModule } from '@ghostfolio/api/services/market-data/market-data.module'; import { PrismaModule } from '@ghostfolio/api/services/prisma/prisma.module'; import { PropertyModule } from '@ghostfolio/api/services/property/property.module'; @@ -26,6 +27,7 @@ import { DataProviderService } from './data-provider.service'; ConfigurationModule, CryptocurrencyModule, DataEnhancerModule, + FetchModule, MarketDataModule, PrismaModule, PropertyModule, diff --git a/apps/api/src/services/data-provider/data-provider.service.ts b/apps/api/src/services/data-provider/data-provider.service.ts index a6b12cce2..5f0a6928a 100644 --- a/apps/api/src/services/data-provider/data-provider.service.ts +++ b/apps/api/src/services/data-provider/data-provider.service.ts @@ -12,6 +12,7 @@ import { PROPERTY_DATA_SOURCE_MAPPING } from '@ghostfolio/common/config'; import { CreateOrderDto } from '@ghostfolio/common/dtos'; +import { SubscriptionType } from '@ghostfolio/common/enums'; import { DATE_FORMAT, getAssetProfileIdentifier, @@ -81,6 +82,7 @@ export class DataProviderService implements OnModuleInit { return false; } + // TODO: Change symbol in response to assetProfileIdentifier public async getAssetProfiles(items: AssetProfileIdentifier[]): Promise<{ [symbol: string]: Partial; }> { @@ -227,7 +229,7 @@ export class DataProviderService implements OnModuleInit { if ( this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION') && - user.subscription.type === 'Basic' + user.subscription.type === SubscriptionType.Basic ) { const dataProvider = this.getDataProvider(DataSource[dataSource]); @@ -329,6 +331,7 @@ export class DataProviderService implements OnModuleInit { }); } + // TODO: Change symbol in response to assetProfileIdentifier public async getHistorical( aItems: AssetProfileIdentifier[], aGranularity: Granularity = 'month', @@ -394,6 +397,7 @@ export class DataProviderService implements OnModuleInit { } } + // TODO: Change symbol in response to assetProfileIdentifier public async getHistoricalRaw({ assetProfileIdentifiers, from, @@ -507,6 +511,7 @@ export class DataProviderService implements OnModuleInit { return result; } + // TODO: Change symbol in response to assetProfileIdentifier public async getQuotes({ items, requestTimeout, @@ -591,7 +596,7 @@ export class DataProviderService implements OnModuleInit { } else if ( dataProvider.getDataProviderInfo().isPremium && this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION') && - user?.subscription.type === 'Basic' + user?.subscription.type === SubscriptionType.Basic ) { // Skip symbols of Premium data providers for users without subscription return false; @@ -780,7 +785,7 @@ export class DataProviderService implements OnModuleInit { }) .map((lookupItem) => { if (this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION')) { - if (user.subscription.type === 'Premium') { + if (user.subscription.type === SubscriptionType.Premium) { lookupItem.dataProviderInfo.isPremium = false; } diff --git a/apps/api/src/services/data-provider/eod-historical-data/eod-historical-data.service.ts b/apps/api/src/services/data-provider/eod-historical-data/eod-historical-data.service.ts index 8c718108c..3fa38842b 100644 --- a/apps/api/src/services/data-provider/eod-historical-data/eod-historical-data.service.ts +++ b/apps/api/src/services/data-provider/eod-historical-data/eod-historical-data.service.ts @@ -7,6 +7,7 @@ import { GetQuotesParams, GetSearchParams } from '@ghostfolio/api/services/data-provider/interfaces/data-provider.interface'; +import { FetchService } from '@ghostfolio/api/services/fetch/fetch.service'; import { SymbolProfileService } from '@ghostfolio/api/services/symbol-profile/symbol-profile.service'; import { DEFAULT_CURRENCY, @@ -41,6 +42,7 @@ export class EodHistoricalDataService public constructor( private readonly configurationService: ConfigurationService, + private readonly fetchService: FetchService, private readonly symbolProfileService: SymbolProfileService ) {} @@ -111,12 +113,11 @@ export class EodHistoricalDataService [date: string]: DataProviderHistoricalResponse; } = {}; - const historicalResult = await fetch( - `${this.URL}/div/${symbol}?${queryParams.toString()}`, - { + const historicalResult = await this.fetchService + .fetch(`${this.URL}/div/${symbol}?${queryParams.toString()}`, { signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()); + }) + .then((res) => res.json()); for (const { date, value } of historicalResult) { response[date] = { @@ -158,12 +159,11 @@ export class EodHistoricalDataService to: format(to, DATE_FORMAT) }); - const response = await fetch( - `${this.URL}/eod/${symbol}?${queryParams.toString()}`, - { + const response = await this.fetchService + .fetch(`${this.URL}/eod/${symbol}?${queryParams.toString()}`, { signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()); + }) + .then((res) => res.json()); return response.reduce( (result, { adjusted_close, date }) => { @@ -223,12 +223,14 @@ export class EodHistoricalDataService s: eodHistoricalDataSymbols.join(',') }); - const realTimeResponse = await fetch( - `${this.URL}/real-time/${eodHistoricalDataSymbols[0]}?${queryParams.toString()}`, - { - signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()); + const realTimeResponse = await this.fetchService + .fetch( + `${this.URL}/real-time/${eodHistoricalDataSymbols[0]}?${queryParams.toString()}`, + { + signal: AbortSignal.timeout(requestTimeout) + } + ) + .then((res) => res.json()); const quotes: { close: number; @@ -430,12 +432,11 @@ export class EodHistoricalDataService api_token: this.apiKey }); - const response = await fetch( - `${this.URL}/search/${query}?${queryParams.toString()}`, - { + const response = await this.fetchService + .fetch(`${this.URL}/search/${query}?${queryParams.toString()}`, { signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()); + }) + .then((res) => res.json()); searchResult = response.map( ({ Code, Currency, Exchange, ISIN: isin, Name: name, Type }) => { diff --git a/apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts b/apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts index 27391130e..fa36a0d17 100644 --- a/apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts +++ b/apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts @@ -1,5 +1,6 @@ import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; import { CryptocurrencyService } from '@ghostfolio/api/services/cryptocurrency/cryptocurrency.service'; +import { AssetProfileDelistedError } from '@ghostfolio/api/services/data-provider/errors/asset-profile-delisted.error'; import { DataProviderInterface, GetAssetProfileParams, @@ -8,6 +9,7 @@ import { GetQuotesParams, GetSearchParams } from '@ghostfolio/api/services/data-provider/interfaces/data-provider.interface'; +import { FetchService } from '@ghostfolio/api/services/fetch/fetch.service'; import { PrismaService } from '@ghostfolio/api/services/prisma/prisma.service'; import { DEFAULT_CURRENCY, @@ -58,6 +60,7 @@ export class FinancialModelingPrepService public constructor( private readonly configurationService: ConfigurationService, private readonly cryptocurrencyService: CryptocurrencyService, + private readonly fetchService: FetchService, private readonly prismaService: PrismaService ) {} @@ -95,12 +98,14 @@ export class FinancialModelingPrepService apikey: this.apiKey }); - const [quote] = await fetch( - `${this.getUrl({ version: 'stable' })}/quote?${queryParams.toString()}`, - { - signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()); + const [quote] = await this.fetchService + .fetch( + `${this.getUrl({ version: 'stable' })}/quote?${queryParams.toString()}`, + { + signal: AbortSignal.timeout(requestTimeout) + } + ) + .then((res) => res.json()); response.assetClass = AssetClass.LIQUIDITY; response.assetSubClass = AssetSubClass.CRYPTOCURRENCY; @@ -114,15 +119,19 @@ export class FinancialModelingPrepService apikey: this.apiKey }); - const [assetProfile] = await fetch( - `${this.getUrl({ version: 'stable' })}/profile?${queryParams.toString()}`, - { - signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()); + const [assetProfile] = await this.fetchService + .fetch( + `${this.getUrl({ version: 'stable' })}/profile?${queryParams.toString()}`, + { + signal: AbortSignal.timeout(requestTimeout) + } + ) + .then((res) => res.json()); if (!assetProfile) { - throw new Error(`${symbol} not found`); + throw new AssetProfileDelistedError( + `No data found, ${symbol} (${this.getName()}) may be delisted` + ); } const { assetClass, assetSubClass } = @@ -140,12 +149,14 @@ export class FinancialModelingPrepService apikey: this.apiKey }); - const etfCountryWeightings = await fetch( - `${this.getUrl({ version: 'stable' })}/etf/country-weightings?${queryParams.toString()}`, - { - signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()); + const etfCountryWeightings = await this.fetchService + .fetch( + `${this.getUrl({ version: 'stable' })}/etf/country-weightings?${queryParams.toString()}`, + { + signal: AbortSignal.timeout(requestTimeout) + } + ) + .then((res) => res.json()); response.countries = etfCountryWeightings .filter(({ country: countryName }) => { @@ -171,12 +182,14 @@ export class FinancialModelingPrepService }; }); - const etfHoldings = await fetch( - `${this.getUrl({ version: 'stable' })}/etf/holdings?${queryParams.toString()}`, - { - signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()); + const etfHoldings = await this.fetchService + .fetch( + `${this.getUrl({ version: 'stable' })}/etf/holdings?${queryParams.toString()}`, + { + signal: AbortSignal.timeout(requestTimeout) + } + ) + .then((res) => res.json()); const sortedTopHoldings = etfHoldings .sort((a, b) => { @@ -190,23 +203,27 @@ export class FinancialModelingPrepService } ); - const [etfInformation] = await fetch( - `${this.getUrl({ version: 'stable' })}/etf/info?${queryParams.toString()}`, - { - signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()); + const [etfInformation] = await this.fetchService + .fetch( + `${this.getUrl({ version: 'stable' })}/etf/info?${queryParams.toString()}`, + { + signal: AbortSignal.timeout(requestTimeout) + } + ) + .then((res) => res.json()); if (etfInformation?.website) { response.url = etfInformation.website; } - const etfSectorWeightings = await fetch( - `${this.getUrl({ version: 'stable' })}/etf/sector-weightings?${queryParams.toString()}`, - { - signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()); + const etfSectorWeightings = await this.fetchService + .fetch( + `${this.getUrl({ version: 'stable' })}/etf/sector-weightings?${queryParams.toString()}`, + { + signal: AbortSignal.timeout(requestTimeout) + } + ) + .then((res) => res.json()); response.sectors = etfSectorWeightings.map( ({ sector, weightPercentage }) => { @@ -283,12 +300,14 @@ export class FinancialModelingPrepService [date: string]: DataProviderHistoricalResponse; } = {}; - const dividends = await fetch( - `${this.getUrl({ version: 'stable' })}/dividends?${queryParams.toString()}`, - { - signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()); + const dividends = await this.fetchService + .fetch( + `${this.getUrl({ version: 'stable' })}/dividends?${queryParams.toString()}`, + { + signal: AbortSignal.timeout(requestTimeout) + } + ) + .then((res) => res.json()); dividends .filter(({ date }) => { @@ -351,12 +370,14 @@ export class FinancialModelingPrepService to: format(currentTo, DATE_FORMAT) }); - const historical = await fetch( - `${this.getUrl({ version: 'stable' })}/historical-price-eod/full?${queryParams.toString()}`, - { - signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()); + const historical = await this.fetchService + .fetch( + `${this.getUrl({ version: 'stable' })}/historical-price-eod/full?${queryParams.toString()}`, + { + signal: AbortSignal.timeout(requestTimeout) + } + ) + .then((res) => res.json()); for (const { close, date } of historical) { if ( @@ -419,14 +440,17 @@ export class FinancialModelingPrepService symbolTarget: { in: symbols } } }), - fetch( - `${this.getUrl({ version: 'stable' })}/batch-quote-short?${queryParams.toString()}`, - { - signal: AbortSignal.timeout(requestTimeout) - } - ).then( - (res) => res.json() as unknown as { price: number; symbol: string }[] - ) + this.fetchService + .fetch( + `${this.getUrl({ version: 'stable' })}/batch-quote-short?${queryParams.toString()}`, + { + signal: AbortSignal.timeout(requestTimeout) + } + ) + .then( + (res) => + res.json() as unknown as { price: number; symbol: string }[] + ) ]); for (const { currency, symbolTarget } of assetProfileResolutions) { @@ -522,12 +546,14 @@ export class FinancialModelingPrepService isin: query.toUpperCase() }); - const result = await fetch( - `${this.getUrl({ version: 'stable' })}/search-isin?${queryParams.toString()}`, - { - signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()); + const result = await this.fetchService + .fetch( + `${this.getUrl({ version: 'stable' })}/search-isin?${queryParams.toString()}`, + { + signal: AbortSignal.timeout(requestTimeout) + } + ) + .then((res) => res.json()); await Promise.all( result.map(({ symbol }) => { @@ -555,18 +581,22 @@ export class FinancialModelingPrepService }); const [nameResults, symbolResults] = await Promise.all([ - fetch( - `${this.getUrl({ version: 'stable' })}/search-name?${queryParams.toString()}`, - { - signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()), - fetch( - `${this.getUrl({ version: 'stable' })}/search-symbol?${queryParams.toString()}`, - { - signal: AbortSignal.timeout(requestTimeout) - } - ).then((res) => res.json()) + this.fetchService + .fetch( + `${this.getUrl({ version: 'stable' })}/search-name?${queryParams.toString()}`, + { + signal: AbortSignal.timeout(requestTimeout) + } + ) + .then((res) => res.json()), + this.fetchService + .fetch( + `${this.getUrl({ version: 'stable' })}/search-symbol?${queryParams.toString()}`, + { + signal: AbortSignal.timeout(requestTimeout) + } + ) + .then((res) => res.json()) ]); const result = uniqBy( diff --git a/apps/api/src/services/data-provider/ghostfolio/ghostfolio.service.ts b/apps/api/src/services/data-provider/ghostfolio/ghostfolio.service.ts index 2b49e89c2..2f2601d5d 100644 --- a/apps/api/src/services/data-provider/ghostfolio/ghostfolio.service.ts +++ b/apps/api/src/services/data-provider/ghostfolio/ghostfolio.service.ts @@ -8,6 +8,7 @@ import { GetQuotesParams, GetSearchParams } from '@ghostfolio/api/services/data-provider/interfaces/data-provider.interface'; +import { FetchService } from '@ghostfolio/api/services/fetch/fetch.service'; import { PropertyService } from '@ghostfolio/api/services/property/property.service'; import { HEADER_KEY_TOKEN, @@ -38,6 +39,7 @@ export class GhostfolioService implements DataProviderInterface { public constructor( private readonly configurationService: ConfigurationService, + private readonly fetchService: FetchService, private readonly propertyService: PropertyService ) {} @@ -52,7 +54,7 @@ export class GhostfolioService implements DataProviderInterface { let assetProfile: DataProviderGhostfolioAssetProfileResponse; try { - const response = await fetch( + const response = await this.fetchService.fetch( `${this.URL}/v1/data-providers/ghostfolio/asset-profile/${symbol}`, { headers: await this.getRequestHeaders(), @@ -122,7 +124,7 @@ export class GhostfolioService implements DataProviderInterface { to: format(to, DATE_FORMAT) }); - const response = await fetch( + const response = await this.fetchService.fetch( `${this.URL}/v2/data-providers/ghostfolio/dividends/${symbol}?${queryParams.toString()}`, { headers: await this.getRequestHeaders(), @@ -174,7 +176,7 @@ export class GhostfolioService implements DataProviderInterface { to: format(to, DATE_FORMAT) }); - const response = await fetch( + const response = await this.fetchService.fetch( `${this.URL}/v2/data-providers/ghostfolio/historical/${symbol}?${queryParams.toString()}`, { headers: await this.getRequestHeaders(), @@ -245,7 +247,7 @@ export class GhostfolioService implements DataProviderInterface { symbols: symbols.join(',') }); - const response = await fetch( + const response = await this.fetchService.fetch( `${this.URL}/v2/data-providers/ghostfolio/quotes?${queryParams.toString()}`, { headers: await this.getRequestHeaders(), @@ -302,7 +304,7 @@ export class GhostfolioService implements DataProviderInterface { query }); - const response = await fetch( + const response = await this.fetchService.fetch( `${this.URL}/v2/data-providers/ghostfolio/lookup?${queryParams.toString()}`, { headers: await this.getRequestHeaders(), diff --git a/apps/api/src/services/data-provider/manual/manual.service.ts b/apps/api/src/services/data-provider/manual/manual.service.ts index 51e65e631..11e0aae6a 100644 --- a/apps/api/src/services/data-provider/manual/manual.service.ts +++ b/apps/api/src/services/data-provider/manual/manual.service.ts @@ -8,6 +8,7 @@ import { GetQuotesParams, GetSearchParams } from '@ghostfolio/api/services/data-provider/interfaces/data-provider.interface'; +import { FetchService } from '@ghostfolio/api/services/fetch/fetch.service'; import { PrismaService } from '@ghostfolio/api/services/prisma/prisma.service'; import { SymbolProfileService } from '@ghostfolio/api/services/symbol-profile/symbol-profile.service'; import { @@ -32,6 +33,7 @@ import { addDays, format, isBefore } from 'date-fns'; export class ManualService implements DataProviderInterface { public constructor( private readonly configurationService: ConfigurationService, + private readonly fetchService: FetchService, private readonly prismaService: PrismaService, private readonly symbolProfileService: SymbolProfileService ) {} @@ -292,7 +294,7 @@ export class ManualService implements DataProviderInterface { }): Promise { let locale = scraperConfiguration.locale; - const response = await fetch(scraperConfiguration.url, { + const response = await this.fetchService.fetch(scraperConfiguration.url, { headers: scraperConfiguration.headers as HeadersInit, signal: AbortSignal.timeout( this.configurationService.get('REQUEST_TIMEOUT') diff --git a/apps/api/src/services/data-provider/rapid-api/rapid-api.service.ts b/apps/api/src/services/data-provider/rapid-api/rapid-api.service.ts index d6bc8d0e4..22896cccc 100644 --- a/apps/api/src/services/data-provider/rapid-api/rapid-api.service.ts +++ b/apps/api/src/services/data-provider/rapid-api/rapid-api.service.ts @@ -7,6 +7,7 @@ import { GetQuotesParams, GetSearchParams } from '@ghostfolio/api/services/data-provider/interfaces/data-provider.interface'; +import { FetchService } from '@ghostfolio/api/services/fetch/fetch.service'; import { ghostfolioFearAndGreedIndexSymbol, ghostfolioFearAndGreedIndexSymbolStocks @@ -26,7 +27,8 @@ import { format } from 'date-fns'; @Injectable() export class RapidApiService implements DataProviderInterface { public constructor( - private readonly configurationService: ConfigurationService + private readonly configurationService: ConfigurationService, + private readonly fetchService: FetchService ) {} public canHandle() { @@ -142,9 +144,8 @@ export class RapidApiService implements DataProviderInterface { oneYearAgo: { value: number; valueText: string }; }> { try { - const { fgi } = await fetch( - `https://fear-and-greed-index.p.rapidapi.com/v1/fgi`, - { + const { fgi } = await this.fetchService + .fetch(`https://fear-and-greed-index.p.rapidapi.com/v1/fgi`, { headers: { useQueryString: 'true', 'x-rapidapi-host': 'fear-and-greed-index.p.rapidapi.com', @@ -153,8 +154,8 @@ export class RapidApiService implements DataProviderInterface { signal: AbortSignal.timeout( this.configurationService.get('REQUEST_TIMEOUT') ) - } - ).then((res) => res.json()); + }) + .then((res) => res.json()); return fgi; } catch (error) { diff --git a/apps/api/src/services/fetch/fetch.module.ts b/apps/api/src/services/fetch/fetch.module.ts new file mode 100644 index 000000000..16e6f5f5d --- /dev/null +++ b/apps/api/src/services/fetch/fetch.module.ts @@ -0,0 +1,11 @@ +import { FetchService } from '@ghostfolio/api/services/fetch/fetch.service'; +import { PropertyModule } from '@ghostfolio/api/services/property/property.module'; + +import { Module } from '@nestjs/common'; + +@Module({ + exports: [FetchService], + imports: [PropertyModule], + providers: [FetchService] +}) +export class FetchModule {} diff --git a/apps/api/src/services/fetch/fetch.service.ts b/apps/api/src/services/fetch/fetch.service.ts new file mode 100644 index 000000000..f32e56a1c --- /dev/null +++ b/apps/api/src/services/fetch/fetch.service.ts @@ -0,0 +1,205 @@ +import { redactPaths } from '@ghostfolio/api/helper/object.helper'; +import { PropertyService } from '@ghostfolio/api/services/property/property.service'; +import { + PROPERTY_API_KEY_OPENROUTER, + PROPERTY_OPENROUTER_MODEL, + PROPERTY_WEB_FETCH_ROUTES +} from '@ghostfolio/common/config'; + +import { Injectable, Logger, OnModuleInit } from '@nestjs/common'; +import { createOpenRouter } from '@openrouter/ai-sdk-provider'; +import { generateText, jsonSchema, tool } from 'ai'; +import ms from 'ms'; + +import { WebFetchRoute } from './interfaces/web-fetch-route.interface'; + +@Injectable() +export class FetchService implements OnModuleInit { + private static readonly REDACTED_QUERY_PARAM_NAMES = ['apikey', 'api_token']; + private static readonly WEB_FETCH_TIMEOUT = ms('30 seconds'); + + private webFetchRoutes: WebFetchRoute[] = []; + + public constructor(private readonly propertyService: PropertyService) {} + + public async onModuleInit() { + this.webFetchRoutes = + (await this.propertyService.getByKey( + PROPERTY_WEB_FETCH_ROUTES + )) ?? []; + } + + public async fetch(input: RequestInfo | URL, init?: RequestInit) { + const method = ( + init?.method ?? + (input instanceof Request ? input.method : undefined) ?? + 'GET' + ).toUpperCase(); + + const url = input instanceof Request ? input.url : input.toString(); + const urlRedacted = this.redactUrl(url); + + Logger.debug(`${method} ${urlRedacted}`, 'FetchService'); + + if (method === 'GET') { + const webFetchRoute = this.getMatchingWebFetchRoute(url); + + if (webFetchRoute) { + const response = await this.fetchViaWebFetchTool({ + url, + webFetchRoute + }); + + if (response) { + return response; + } + } + } + + try { + return await globalThis.fetch(input, init); + } catch (error) { + if (error instanceof Error) { + Logger.error( + `${method} ${urlRedacted} failed: [${error.name}] ${error.message}`, + 'FetchService' + ); + } else { + Logger.error( + `${method} ${urlRedacted} failed: ${String(error)}`, + 'FetchService' + ); + } + + throw error; + } + } + + private async fetchViaWebFetchTool({ + url, + webFetchRoute + }: { + url: string; + webFetchRoute: WebFetchRoute; + }) { + const [openRouterApiKey, openRouterModel] = await Promise.all([ + this.propertyService.getByKey(PROPERTY_API_KEY_OPENROUTER), + this.propertyService.getByKey(PROPERTY_OPENROUTER_MODEL) + ]); + + if (!openRouterApiKey || !openRouterModel) { + return undefined; + } + + try { + const openRouterService = createOpenRouter({ apiKey: openRouterApiKey }); + + const { sources, text } = await generateText({ + model: openRouterService.chat(openRouterModel), + prompt: [ + 'You have access to a web_fetch tool. You MUST call it to retrieve the URL below, do not answer from prior knowledge.', + 'Return the fetched response body exactly as received: raw body only, no commentary, no Markdown, and no code fences.', + `URL: ${url}` + ].join('\n'), + timeout: FetchService.WEB_FETCH_TIMEOUT, + tools: { + // Provider-defined tool: lets OpenRouter perform the actual web + // request server-side via its `web_fetch` engine. `id` and `args` + // are the OpenRouter-specific identifiers; the input schema is left + // open as the arguments are supplied by the model. + web_fetch: tool({ + args: { engine: 'openrouter' }, + id: 'openrouter.web_fetch', + inputSchema: jsonSchema({ + additionalProperties: true, + type: 'object' + }), + type: 'provider' + }) + } + }); + + const candidates = [ + ...(sources ?? []).map((source) => { + return source.providerMetadata?.openrouter?.content; + }), + text + ]; + + for (const candidate of candidates) { + if (typeof candidate !== 'string') { + continue; + } + + const body = candidate.trim(); + + if (!body) { + continue; + } + + if (webFetchRoute.responseContentType?.includes('application/json')) { + try { + JSON.parse(body); + } catch { + continue; + } + } + + Logger.debug( + `Routed ${this.redactUrl(url)} via web fetch tool`, + 'FetchService' + ); + + return new Response(body, { + headers: webFetchRoute.responseContentType + ? { 'content-type': webFetchRoute.responseContentType } + : undefined + }); + } + + return undefined; + } catch (error) { + Logger.error( + `Web fetch tool failed for ${this.redactUrl(url)}: ${ + error instanceof Error ? error.message : String(error) + }`, + 'FetchService' + ); + + return undefined; + } + } + + private getMatchingWebFetchRoute(url: string) { + try { + const { hostname } = new URL(url); + + return this.webFetchRoutes.find(({ domain }) => { + return hostname === domain || hostname.endsWith(`.${domain}`); + }); + } catch { + return undefined; + } + } + + private redactUrl(rawUrl: string): string { + try { + const url = new URL(rawUrl); + + const redacted = redactPaths({ + object: Object.fromEntries(url.searchParams), + paths: FetchService.REDACTED_QUERY_PARAM_NAMES + }); + + for (const [key, value] of Object.entries(redacted)) { + if (value === null) { + url.searchParams.set(key, '*******'); + } + } + + return url.toString(); + } catch { + return rawUrl; + } + } +} diff --git a/apps/api/src/services/fetch/interfaces/web-fetch-route.interface.ts b/apps/api/src/services/fetch/interfaces/web-fetch-route.interface.ts new file mode 100644 index 000000000..efff09398 --- /dev/null +++ b/apps/api/src/services/fetch/interfaces/web-fetch-route.interface.ts @@ -0,0 +1,19 @@ +/** + * Routes outgoing GET requests for a given domain through the OpenRouter + * `web_fetch` tool instead of a direct network request. + * + * Configured via the `WEB_FETCH_ROUTES` property as a JSON array, e.g. + * + * [ + * { + * "domain": "example.com", + * "responseContentType": "application/json" + * } + * ] + * + * Matches the domain itself and its subdomains (e.g. `api.example.com`). + */ +export interface WebFetchRoute { + domain: string; + responseContentType?: string; +} diff --git a/apps/api/src/services/interfaces/environment.interface.ts b/apps/api/src/services/interfaces/environment.interface.ts index 9664ae144..eb3ac86a3 100644 --- a/apps/api/src/services/interfaces/environment.interface.ts +++ b/apps/api/src/services/interfaces/environment.interface.ts @@ -20,7 +20,6 @@ export interface Environment extends CleanedEnvAccessors { ENABLE_FEATURE_AUTH_GOOGLE: boolean; ENABLE_FEATURE_AUTH_OIDC: boolean; ENABLE_FEATURE_AUTH_TOKEN: boolean; - ENABLE_FEATURE_BULL_BOARD: boolean; ENABLE_FEATURE_FEAR_AND_GREED_INDEX: boolean; ENABLE_FEATURE_GATHER_NEW_EXCHANGE_RATES: boolean; ENABLE_FEATURE_READ_ONLY_MODE: boolean; diff --git a/apps/api/src/services/prisma/prisma.service.ts b/apps/api/src/services/prisma/prisma.service.ts index 4673cbd19..cdbc1cdfd 100644 --- a/apps/api/src/services/prisma/prisma.service.ts +++ b/apps/api/src/services/prisma/prisma.service.ts @@ -6,6 +6,7 @@ import { OnModuleInit } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; +import { PrismaPg } from '@prisma/adapter-pg'; import { Prisma, PrismaClient } from '@prisma/client'; @Injectable() @@ -14,6 +15,10 @@ export class PrismaService implements OnModuleInit, OnModuleDestroy { public constructor(configService: ConfigService) { + const adapter = new PrismaPg({ + connectionString: configService.get('DATABASE_URL') + }); + let customLogLevels: LogLevel[]; try { @@ -28,6 +33,7 @@ export class PrismaService : []; super({ + adapter, log, errorFormat: 'colorless' }); diff --git a/apps/api/src/services/queues/data-gathering/data-gathering.module.ts b/apps/api/src/services/queues/data-gathering/data-gathering.module.ts index d163f0d29..5672df5e8 100644 --- a/apps/api/src/services/queues/data-gathering/data-gathering.module.ts +++ b/apps/api/src/services/queues/data-gathering/data-gathering.module.ts @@ -19,18 +19,14 @@ import { DataGatheringProcessor } from './data-gathering.processor'; @Module({ imports: [ - ...(process.env.ENABLE_FEATURE_BULL_BOARD === 'true' - ? [ - BullBoardModule.forFeature({ - adapter: BullAdapter, - name: DATA_GATHERING_QUEUE, - options: { - displayName: 'Data Gathering', - readOnlyMode: process.env.BULL_BOARD_IS_READ_ONLY !== 'false' - } - }) - ] - : []), + BullBoardModule.forFeature({ + adapter: BullAdapter, + name: DATA_GATHERING_QUEUE, + options: { + displayName: 'Data Gathering', + readOnlyMode: process.env.BULL_BOARD_IS_READ_ONLY !== 'false' + } + }), BullModule.registerQueue({ limiter: { duration: ms('4 seconds'), diff --git a/apps/api/src/services/queues/portfolio-snapshot/portfolio-snapshot.module.ts b/apps/api/src/services/queues/portfolio-snapshot/portfolio-snapshot.module.ts index 1260f1cf0..c90f826f6 100644 --- a/apps/api/src/services/queues/portfolio-snapshot/portfolio-snapshot.module.ts +++ b/apps/api/src/services/queues/portfolio-snapshot/portfolio-snapshot.module.ts @@ -25,18 +25,14 @@ import { PortfolioSnapshotProcessor } from './portfolio-snapshot.processor'; imports: [ AccountBalanceModule, ActivitiesModule, - ...(process.env.ENABLE_FEATURE_BULL_BOARD === 'true' - ? [ - BullBoardModule.forFeature({ - adapter: BullAdapter, - name: PORTFOLIO_SNAPSHOT_COMPUTATION_QUEUE, - options: { - displayName: 'Portfolio Snapshot Computation', - readOnlyMode: process.env.BULL_BOARD_IS_READ_ONLY !== 'false' - } - }) - ] - : []), + BullBoardModule.forFeature({ + adapter: BullAdapter, + name: PORTFOLIO_SNAPSHOT_COMPUTATION_QUEUE, + options: { + displayName: 'Portfolio Snapshot Computation', + readOnlyMode: process.env.BULL_BOARD_IS_READ_ONLY !== 'false' + } + }), BullModule.registerQueue({ name: PORTFOLIO_SNAPSHOT_COMPUTATION_QUEUE, settings: { diff --git a/apps/api/src/services/queues/statistics-gathering/statistics-gathering.module.ts b/apps/api/src/services/queues/statistics-gathering/statistics-gathering.module.ts index 1818dd4ec..d6f6d5ccd 100644 --- a/apps/api/src/services/queues/statistics-gathering/statistics-gathering.module.ts +++ b/apps/api/src/services/queues/statistics-gathering/statistics-gathering.module.ts @@ -1,4 +1,5 @@ import { ConfigurationModule } from '@ghostfolio/api/services/configuration/configuration.module'; +import { FetchModule } from '@ghostfolio/api/services/fetch/fetch.module'; import { PropertyModule } from '@ghostfolio/api/services/property/property.module'; import { STATISTICS_GATHERING_QUEUE } from '@ghostfolio/common/config'; @@ -13,7 +14,7 @@ import { StatisticsGatheringService } from './statistics-gathering.service'; @Module({ exports: [BullModule, StatisticsGatheringService], imports: [ - ...(process.env.ENABLE_FEATURE_BULL_BOARD === 'true' + ...(process.env.ENABLE_FEATURE_STATISTICS === 'true' ? [ BullBoardModule.forFeature({ adapter: BullAdapter, @@ -29,6 +30,7 @@ import { StatisticsGatheringService } from './statistics-gathering.service'; name: STATISTICS_GATHERING_QUEUE }), ConfigurationModule, + FetchModule, PropertyModule ], providers: [StatisticsGatheringProcessor, StatisticsGatheringService] diff --git a/apps/api/src/services/queues/statistics-gathering/statistics-gathering.processor.ts b/apps/api/src/services/queues/statistics-gathering/statistics-gathering.processor.ts index 07fc32585..a523ef4f2 100644 --- a/apps/api/src/services/queues/statistics-gathering/statistics-gathering.processor.ts +++ b/apps/api/src/services/queues/statistics-gathering/statistics-gathering.processor.ts @@ -1,4 +1,5 @@ import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; +import { FetchService } from '@ghostfolio/api/services/fetch/fetch.service'; import { PropertyService } from '@ghostfolio/api/services/property/property.service'; import { GATHER_STATISTICS_DOCKER_HUB_PULLS_PROCESS_JOB_NAME, @@ -28,6 +29,7 @@ import { format, subDays } from 'date-fns'; export class StatisticsGatheringProcessor { public constructor( private readonly configurationService: ConfigurationService, + private readonly fetchService: FetchService, private readonly propertyService: PropertyService ) {} @@ -93,12 +95,25 @@ export class StatisticsGatheringProcessor { @Process(GATHER_STATISTICS_UPTIME_PROCESS_JOB_NAME) public async gatherUptimeStatistics() { + const monitorId = await this.propertyService.getByKey( + PROPERTY_BETTER_UPTIME_MONITOR_ID + ); + + if (!monitorId) { + Logger.log( + `Uptime statistics gathering has been skipped as no ${PROPERTY_BETTER_UPTIME_MONITOR_ID} is configured`, + 'StatisticsGatheringProcessor' + ); + + return; + } + Logger.log( 'Uptime statistics gathering has been started', 'StatisticsGatheringProcessor' ); - const uptime = await this.getUptime(); + const uptime = await this.getUptime(monitorId); await this.propertyService.put({ key: PROPERTY_UPTIME, @@ -113,15 +128,14 @@ export class StatisticsGatheringProcessor { private async countDockerHubPulls(): Promise { try { - const { pull_count } = (await fetch( - 'https://hub.docker.com/v2/repositories/ghostfolio/ghostfolio', - { + const { pull_count } = (await this.fetchService + .fetch('https://hub.docker.com/v2/repositories/ghostfolio/ghostfolio', { headers: { 'User-Agent': 'request' }, signal: AbortSignal.timeout( this.configurationService.get('REQUEST_TIMEOUT') ) - } - ).then((res) => res.json())) as { pull_count: number }; + }) + .then((res) => res.json())) as { pull_count: number }; return pull_count; } catch (error) { @@ -133,11 +147,13 @@ export class StatisticsGatheringProcessor { private async countGitHubContributors(): Promise { try { - const body = await fetch('https://github.com/ghostfolio/ghostfolio', { - signal: AbortSignal.timeout( - this.configurationService.get('REQUEST_TIMEOUT') - ) - }).then((res) => res.text()); + const body = await this.fetchService + .fetch('https://github.com/ghostfolio/ghostfolio', { + signal: AbortSignal.timeout( + this.configurationService.get('REQUEST_TIMEOUT') + ) + }) + .then((res) => res.text()); const $ = cheerio.load(body); @@ -161,15 +177,14 @@ export class StatisticsGatheringProcessor { private async countGitHubStargazers(): Promise { try { - const { stargazers_count } = (await fetch( - 'https://api.github.com/repos/ghostfolio/ghostfolio', - { + const { stargazers_count } = (await this.fetchService + .fetch('https://api.github.com/repos/ghostfolio/ghostfolio', { headers: { 'User-Agent': 'request' }, signal: AbortSignal.timeout( this.configurationService.get('REQUEST_TIMEOUT') ) - } - ).then((res) => res.json())) as { stargazers_count: number }; + }) + .then((res) => res.json())) as { stargazers_count: number }; return stargazers_count; } catch (error) { @@ -179,28 +194,26 @@ export class StatisticsGatheringProcessor { } } - private async getUptime(): Promise { + private async getUptime(monitorId: string): Promise { try { - const monitorId = await this.propertyService.getByKey( - PROPERTY_BETTER_UPTIME_MONITOR_ID - ); - - const { data } = await fetch( - `https://uptime.betterstack.com/api/v2/monitors/${monitorId}/sla?from=${format( - subDays(new Date(), 90), - DATE_FORMAT - )}&to${format(new Date(), DATE_FORMAT)}`, - { - headers: { - [HEADER_KEY_TOKEN]: `Bearer ${this.configurationService.get( - 'API_KEY_BETTER_UPTIME' - )}` - }, - signal: AbortSignal.timeout( - this.configurationService.get('REQUEST_TIMEOUT') - ) - } - ).then((res) => res.json()); + const { data } = await this.fetchService + .fetch( + `https://uptime.betterstack.com/api/v2/monitors/${monitorId}/sla?from=${format( + subDays(new Date(), 90), + DATE_FORMAT + )}&to${format(new Date(), DATE_FORMAT)}`, + { + headers: { + [HEADER_KEY_TOKEN]: `Bearer ${this.configurationService.get( + 'API_KEY_BETTER_UPTIME' + )}` + }, + signal: AbortSignal.timeout( + this.configurationService.get('REQUEST_TIMEOUT') + ) + } + ) + .then((res) => res.json()); return data.attributes.availability / 100; } catch (error) { diff --git a/apps/client/src/app/app.component.ts b/apps/client/src/app/app.component.ts index 201c2f994..e1967970d 100644 --- a/apps/client/src/app/app.component.ts +++ b/apps/client/src/app/app.component.ts @@ -28,6 +28,7 @@ import { RouterOutlet } from '@angular/router'; import { DataSource } from '@prisma/client'; +import { Chart } from 'chart.js'; import { addIcons } from 'ionicons'; import { openOutline } from 'ionicons/icons'; import { DeviceDetectorService } from 'ngx-device-detector'; @@ -67,7 +68,7 @@ export class GfAppComponent implements OnInit { private readonly changeDetectorRef = inject(ChangeDetectorRef); private readonly dataService = inject(DataService); private readonly destroyRef = inject(DestroyRef); - private readonly deviceService = inject(DeviceDetectorService); + private readonly deviceDetectorService = inject(DeviceDetectorService); private readonly dialog = inject(MatDialog); private readonly document = inject(DOCUMENT); private readonly impersonationStorageService = inject( @@ -104,7 +105,7 @@ export class GfAppComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.info = this.dataService.fetchInfo(); this.impersonationStorageService @@ -255,6 +256,9 @@ export class GfAppComponent implements OnInit { this.toggleTheme(isDarkTheme); + // Default chart styles + Chart.defaults.font.family = getCssVariable('--font-family-sans-serif'); + window.matchMedia('(prefers-color-scheme: dark)').addListener((event) => { if (!this.user?.settings.colorScheme) { this.toggleTheme(event.matches); @@ -336,7 +340,9 @@ export class GfAppComponent implements OnInit { if (isDarkTheme) { this.document.body.classList.add('theme-dark'); + this.document.body.classList.remove('theme-light'); } else { + this.document.body.classList.add('theme-light'); this.document.body.classList.remove('theme-dark'); } diff --git a/apps/client/src/app/components/access-table/access-table.component.html b/apps/client/src/app/components/access-table/access-table.component.html index 4283d7860..8ba906e0f 100644 --- a/apps/client/src/app/components/access-table/access-table.component.html +++ b/apps/client/src/app/components/access-table/access-table.component.html @@ -53,9 +53,9 @@ - + - + - - - - - }
Housekeeping
@@ -215,4 +139,135 @@
+ + @if (hasPermissionForSubscription) { +
+
+ + + Coupons + + +
+ + + + + + + + + + + + + + + + + + +
+ Code + + + + Duration + + {{ formatStringValue(element.duration) }} + + + + + +
+
+
+ +
+ + + {{ + formatStringValue('7 days') + }} + {{ + formatStringValue('14 days') + }} + {{ + formatStringValue('30 days') + }} + {{ + formatStringValue('90 days') + }} + {{ + formatStringValue('180 days') + }} + {{ + formatStringValue('1 year') + }} + + + +
+
+
+
+
+ } diff --git a/apps/client/src/app/components/admin-platform/admin-platform.component.html b/apps/client/src/app/components/admin-platform/admin-platform.component.html index 7370a19ae..44f5a6eab 100644 --- a/apps/client/src/app/components/admin-platform/admin-platform.component.html +++ b/apps/client/src/app/components/admin-platform/admin-platform.component.html @@ -54,7 +54,7 @@ diff --git a/apps/client/src/app/components/admin-platform/admin-platform.component.ts b/apps/client/src/app/components/admin-platform/admin-platform.component.ts index b8f2af789..a9d135068 100644 --- a/apps/client/src/app/components/admin-platform/admin-platform.component.ts +++ b/apps/client/src/app/components/admin-platform/admin-platform.component.ts @@ -11,10 +11,12 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, + computed, DestroyRef, - Input, + inject, + input, OnInit, - ViewChild + viewChild } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { MatButtonModule } from '@angular/material/button'; @@ -54,27 +56,29 @@ import { CreateOrUpdatePlatformDialogParams } from './create-or-update-platform- templateUrl: './admin-platform.component.html' }) export class GfAdminPlatformComponent implements OnInit { - @Input() locale = getLocale(); - - @ViewChild(MatSort) sort: MatSort; - - public dataSource = new MatTableDataSource(); - public deviceType: string; - public displayedColumns = ['name', 'url', 'accounts', 'actions']; - public platforms: Platform[]; - - public constructor( - private adminService: AdminService, - private changeDetectorRef: ChangeDetectorRef, - private dataService: DataService, - private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, - private dialog: MatDialog, - private notificationService: NotificationService, - private route: ActivatedRoute, - private router: Router, - private userService: UserService - ) { + public readonly locale = input(getLocale()); + + protected dataSource = new MatTableDataSource(); + protected readonly displayedColumns = ['name', 'url', 'accounts', 'actions']; + protected platforms: Platform[]; + + private readonly deviceType = computed( + () => this.deviceDetectorService.deviceInfo().deviceType + ); + private readonly sort = viewChild.required(MatSort); + + private readonly adminService = inject(AdminService); + private readonly changeDetectorRef = inject(ChangeDetectorRef); + private readonly dataService = inject(DataService); + private readonly destroyRef = inject(DestroyRef); + private readonly deviceDetectorService = inject(DeviceDetectorService); + private readonly dialog = inject(MatDialog); + private readonly notificationService = inject(NotificationService); + private readonly route = inject(ActivatedRoute); + private readonly router = inject(Router); + private readonly userService = inject(UserService); + + public constructor() { this.route.queryParams .pipe(takeUntilDestroyed(this.destroyRef)) .subscribe((params) => { @@ -86,7 +90,9 @@ export class GfAdminPlatformComponent implements OnInit { return id === params['platformId']; }); - this.openUpdatePlatformDialog(platform); + if (platform) { + this.openUpdatePlatformDialog(platform); + } } else { this.router.navigate(['.'], { relativeTo: this.route }); } @@ -97,12 +103,10 @@ export class GfAdminPlatformComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; - this.fetchPlatforms(); } - public onDeletePlatform(aId: string) { + protected onDeletePlatform(aId: string) { this.notificationService.confirm({ confirmFn: () => { this.deletePlatform(aId); @@ -112,7 +116,7 @@ export class GfAdminPlatformComponent implements OnInit { }); } - public onUpdatePlatform({ id }: Platform) { + protected onUpdatePlatform({ id }: Platform) { this.router.navigate([], { queryParams: { editPlatformDialog: true, platformId: id } }); @@ -142,7 +146,7 @@ export class GfAdminPlatformComponent implements OnInit { this.platforms = platforms; this.dataSource = new MatTableDataSource(platforms); - this.dataSource.sort = this.sort; + this.dataSource.sort = this.sort(); this.dataSource.sortingDataAccessor = get; this.dataService.updateInfo(); @@ -156,15 +160,9 @@ export class GfAdminPlatformComponent implements OnInit { GfCreateOrUpdatePlatformDialogComponent, CreateOrUpdatePlatformDialogParams >(GfCreateOrUpdatePlatformDialogComponent, { - data: { - platform: { - id: null, - name: null, - url: null - } - }, - height: this.deviceType === 'mobile' ? '98vh' : undefined, - width: this.deviceType === 'mobile' ? '100vw' : '50rem' + data: {} satisfies CreateOrUpdatePlatformDialogParams, + height: this.deviceType() === 'mobile' ? '98vh' : undefined, + width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); dialogRef @@ -191,15 +189,7 @@ export class GfAdminPlatformComponent implements OnInit { }); } - private openUpdatePlatformDialog({ - id, - name, - url - }: { - id: string; - name: string; - url: string; - }) { + private openUpdatePlatformDialog({ id, name, url }: Platform) { const dialogRef = this.dialog.open< GfCreateOrUpdatePlatformDialogComponent, CreateOrUpdatePlatformDialogParams @@ -210,9 +200,9 @@ export class GfAdminPlatformComponent implements OnInit { name, url } - }, - height: this.deviceType === 'mobile' ? '98vh' : undefined, - width: this.deviceType === 'mobile' ? '100vw' : '50rem' + } satisfies CreateOrUpdatePlatformDialogParams, + height: this.deviceType() === 'mobile' ? '98vh' : undefined, + width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); dialogRef diff --git a/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.component.ts b/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.component.ts index 0cfe026a4..b0364f1e3 100644 --- a/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.component.ts +++ b/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.component.ts @@ -46,8 +46,8 @@ export class GfCreateOrUpdatePlatformDialogComponent { private formBuilder: FormBuilder ) { this.platformForm = this.formBuilder.group({ - name: [this.data.platform.name, Validators.required], - url: [this.data.platform.url ?? 'https://', Validators.required] + name: [this.data.platform?.name, Validators.required], + url: [this.data.platform?.url ?? 'https://', Validators.required] }); } @@ -62,7 +62,7 @@ export class GfCreateOrUpdatePlatformDialogComponent { url: this.platformForm.get('url')?.value }; - if (this.data.platform.id) { + if (this.data.platform?.id) { (platform as UpdatePlatformDto).id = this.data.platform.id; await validateObjectForForm({ classDto: UpdatePlatformDto, diff --git a/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.html b/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.html index 0e39d7653..f923b95a6 100644 --- a/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.html +++ b/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/create-or-update-platform-dialog.html @@ -4,7 +4,7 @@ (keyup.enter)="platformForm.valid && onSubmit()" (ngSubmit)="onSubmit()" > - @if (data.platform.id) { + @if (data.platform?.id) {

Update platform

} @else {

Add platform

@@ -30,7 +30,7 @@ /> @if (platformForm.get('url')?.value) { diff --git a/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/interfaces/interfaces.ts b/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/interfaces/interfaces.ts index be4af5407..d3b9ae528 100644 --- a/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/interfaces/interfaces.ts +++ b/apps/client/src/app/components/admin-platform/create-or-update-platform-dialog/interfaces/interfaces.ts @@ -1,5 +1,5 @@ import { Platform } from '@prisma/client'; export interface CreateOrUpdatePlatformDialogParams { - platform: Platform; + platform?: Platform; } diff --git a/apps/client/src/app/components/admin-tag/admin-tag.component.html b/apps/client/src/app/components/admin-tag/admin-tag.component.html index 463a817ff..3c125d5c0 100644 --- a/apps/client/src/app/components/admin-tag/admin-tag.component.html +++ b/apps/client/src/app/components/admin-tag/admin-tag.component.html @@ -47,7 +47,7 @@ diff --git a/apps/client/src/app/components/admin-tag/admin-tag.component.ts b/apps/client/src/app/components/admin-tag/admin-tag.component.ts index 506736156..c00fe3a61 100644 --- a/apps/client/src/app/components/admin-tag/admin-tag.component.ts +++ b/apps/client/src/app/components/admin-tag/admin-tag.component.ts @@ -10,10 +10,12 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, + computed, DestroyRef, - Input, + inject, + input, OnInit, - ViewChild + viewChild } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { MatButtonModule } from '@angular/material/button'; @@ -52,26 +54,33 @@ import { CreateOrUpdateTagDialogParams } from './create-or-update-tag-dialog/int templateUrl: './admin-tag.component.html' }) export class GfAdminTagComponent implements OnInit { - @Input() locale = getLocale(); - - @ViewChild(MatSort) sort: MatSort; - - public dataSource = new MatTableDataSource(); - public deviceType: string; - public displayedColumns = ['name', 'userId', 'activities', 'actions']; - public tags: Tag[]; - - public constructor( - private changeDetectorRef: ChangeDetectorRef, - private dataService: DataService, - private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, - private dialog: MatDialog, - private notificationService: NotificationService, - private route: ActivatedRoute, - private router: Router, - private userService: UserService - ) { + public readonly locale = input(getLocale()); + + protected dataSource = new MatTableDataSource(); + protected readonly displayedColumns = [ + 'name', + 'userId', + 'activities', + 'actions' + ]; + protected tags: Tag[]; + + private readonly deviceType = computed( + () => this.deviceDetectorService.deviceInfo().deviceType + ); + private readonly sort = viewChild.required(MatSort); + + private readonly changeDetectorRef = inject(ChangeDetectorRef); + private readonly dataService = inject(DataService); + private readonly destroyRef = inject(DestroyRef); + private readonly deviceDetectorService = inject(DeviceDetectorService); + private readonly dialog = inject(MatDialog); + private readonly notificationService = inject(NotificationService); + private readonly route = inject(ActivatedRoute); + private readonly router = inject(Router); + private readonly userService = inject(UserService); + + public constructor() { this.route.queryParams .pipe(takeUntilDestroyed(this.destroyRef)) .subscribe((params) => { @@ -83,7 +92,9 @@ export class GfAdminTagComponent implements OnInit { return id === params['tagId']; }); - this.openUpdateTagDialog(tag); + if (tag) { + this.openUpdateTagDialog(tag); + } } else { this.router.navigate(['.'], { relativeTo: this.route }); } @@ -94,12 +105,10 @@ export class GfAdminTagComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; - this.fetchTags(); } - public onDeleteTag(aId: string) { + protected onDeleteTag(aId: string) { this.notificationService.confirm({ confirmFn: () => { this.deleteTag(aId); @@ -109,7 +118,7 @@ export class GfAdminTagComponent implements OnInit { }); } - public onUpdateTag({ id }: Tag) { + protected onUpdateTag({ id }: Tag) { this.router.navigate([], { queryParams: { editTagDialog: true, tagId: id } }); @@ -139,7 +148,7 @@ export class GfAdminTagComponent implements OnInit { this.tags = tags; this.dataSource = new MatTableDataSource(this.tags); - this.dataSource.sort = this.sort; + this.dataSource.sort = this.sort(); this.dataSource.sortingDataAccessor = get; this.dataService.updateInfo(); @@ -153,14 +162,9 @@ export class GfAdminTagComponent implements OnInit { GfCreateOrUpdateTagDialogComponent, CreateOrUpdateTagDialogParams >(GfCreateOrUpdateTagDialogComponent, { - data: { - tag: { - id: null, - name: null - } - }, - height: this.deviceType === 'mobile' ? '98vh' : undefined, - width: this.deviceType === 'mobile' ? '100vw' : '50rem' + data: {} satisfies CreateOrUpdateTagDialogParams, + height: this.deviceType() === 'mobile' ? '98vh' : undefined, + width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); dialogRef @@ -197,9 +201,9 @@ export class GfAdminTagComponent implements OnInit { id, name } - }, - height: this.deviceType === 'mobile' ? '98vh' : undefined, - width: this.deviceType === 'mobile' ? '100vw' : '50rem' + } satisfies CreateOrUpdateTagDialogParams, + height: this.deviceType() === 'mobile' ? '98vh' : undefined, + width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); dialogRef diff --git a/apps/client/src/app/components/admin-tag/create-or-update-tag-dialog/create-or-update-tag-dialog.component.ts b/apps/client/src/app/components/admin-tag/create-or-update-tag-dialog/create-or-update-tag-dialog.component.ts index e22c73478..dac4ea412 100644 --- a/apps/client/src/app/components/admin-tag/create-or-update-tag-dialog/create-or-update-tag-dialog.component.ts +++ b/apps/client/src/app/components/admin-tag/create-or-update-tag-dialog/create-or-update-tag-dialog.component.ts @@ -43,7 +43,7 @@ export class GfCreateOrUpdateTagDialogComponent { private formBuilder: FormBuilder ) { this.tagForm = this.formBuilder.group({ - name: [this.data.tag.name] + name: [this.data.tag?.name] }); } @@ -57,7 +57,7 @@ export class GfCreateOrUpdateTagDialogComponent { name: this.tagForm.get('name')?.value }; - if (this.data.tag.id) { + if (this.data.tag?.id) { (tag as UpdateTagDto).id = this.data.tag.id; await validateObjectForForm({ classDto: UpdateTagDto, diff --git a/apps/client/src/app/components/admin-tag/create-or-update-tag-dialog/create-or-update-tag-dialog.html b/apps/client/src/app/components/admin-tag/create-or-update-tag-dialog/create-or-update-tag-dialog.html index d2fdad30e..876db206c 100644 --- a/apps/client/src/app/components/admin-tag/create-or-update-tag-dialog/create-or-update-tag-dialog.html +++ b/apps/client/src/app/components/admin-tag/create-or-update-tag-dialog/create-or-update-tag-dialog.html @@ -4,7 +4,7 @@ (keyup.enter)="tagForm.valid && onSubmit()" (ngSubmit)="onSubmit()" > - @if (data.tag.id) { + @if (data.tag?.id) {

Update tag

} @else {

Add tag

diff --git a/apps/client/src/app/components/admin-tag/create-or-update-tag-dialog/interfaces/interfaces.ts b/apps/client/src/app/components/admin-tag/create-or-update-tag-dialog/interfaces/interfaces.ts index 4b7f83e93..f4b1104d0 100644 --- a/apps/client/src/app/components/admin-tag/create-or-update-tag-dialog/interfaces/interfaces.ts +++ b/apps/client/src/app/components/admin-tag/create-or-update-tag-dialog/interfaces/interfaces.ts @@ -1,5 +1,5 @@ import { Tag } from '@prisma/client'; export interface CreateOrUpdateTagDialogParams { - tag: Pick; + tag?: Pick; } diff --git a/apps/client/src/app/components/admin-users/admin-users.component.ts b/apps/client/src/app/components/admin-users/admin-users.component.ts index 874bbc1db..93899c9ee 100644 --- a/apps/client/src/app/components/admin-users/admin-users.component.ts +++ b/apps/client/src/app/components/admin-users/admin-users.component.ts @@ -1,8 +1,11 @@ -import { UserDetailDialogParams } from '@ghostfolio/client/components/user-detail-dialog/interfaces/interfaces'; +import { + UserDetailDialogParams, + UserDetailDialogResult +} from '@ghostfolio/client/components/user-detail-dialog/interfaces/interfaces'; import { GfUserDetailDialogComponent } from '@ghostfolio/client/components/user-detail-dialog/user-detail-dialog.component'; import { ImpersonationStorageService } from '@ghostfolio/client/services/impersonation-storage.service'; import { UserService } from '@ghostfolio/client/services/user/user.service'; -import { DEFAULT_PAGE_SIZE } from '@ghostfolio/common/config'; +import { DEFAULT_PAGE_SIZE, locale } from '@ghostfolio/common/config'; import { ConfirmationDialogType } from '@ghostfolio/common/enums'; import { getDateFnsLocale, @@ -25,9 +28,11 @@ import { CommonModule } from '@angular/common'; import { ChangeDetectorRef, Component, + computed, DestroyRef, + inject, OnInit, - ViewChild + viewChild } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { MatButtonModule } from '@angular/material/button'; @@ -76,37 +81,42 @@ import { switchMap, tap } from 'rxjs/operators'; templateUrl: './admin-users.html' }) export class GfAdminUsersComponent implements OnInit { - @ViewChild(MatPaginator) paginator: MatPaginator; - - public dataSource = new MatTableDataSource(); - public defaultDateFormat: string; - public deviceType: string; - public displayedColumns: string[] = []; - public getEmojiFlag = getEmojiFlag; - public hasPermissionForSubscription: boolean; - public hasPermissionToImpersonateAllUsers: boolean; - public info: InfoItem; - public isLoading = false; - public pageSize = DEFAULT_PAGE_SIZE; - public routerLinkAdminControlUsers = + protected dataSource = new MatTableDataSource< + AdminUsersResponse['users'][0] + >(); + protected defaultDateFormat: string; + protected displayedColumns: string[] = []; + protected readonly getEmojiFlag = getEmojiFlag; + protected hasPermissionForSubscription: boolean; + protected hasPermissionToImpersonateAllUsers: boolean; + protected info: InfoItem; + protected isLoading = false; + protected readonly pageSize = DEFAULT_PAGE_SIZE; + protected readonly routerLinkAdminControlUsers = internalRoutes.adminControl.subRoutes.users.routerLink; - public totalItems = 0; - public user: User; + protected totalItems = 0; + protected user: User; + + private readonly deviceType = computed( + () => this.deviceDetectorService.deviceInfo().deviceType + ); + private readonly paginator = viewChild.required(MatPaginator); - public constructor( - private adminService: AdminService, - private changeDetectorRef: ChangeDetectorRef, - private dataService: DataService, - private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, - private dialog: MatDialog, - private impersonationStorageService: ImpersonationStorageService, - private notificationService: NotificationService, - private route: ActivatedRoute, - private router: Router, - private userService: UserService - ) { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + private readonly adminService = inject(AdminService); + private readonly changeDetectorRef = inject(ChangeDetectorRef); + private readonly dataService = inject(DataService); + private readonly destroyRef = inject(DestroyRef); + private readonly deviceDetectorService = inject(DeviceDetectorService); + private readonly dialog = inject(MatDialog); + private readonly impersonationStorageService = inject( + ImpersonationStorageService + ); + private readonly notificationService = inject(NotificationService); + private readonly route = inject(ActivatedRoute); + private readonly router = inject(Router); + private readonly userService = inject(UserService); + + public constructor() { this.info = this.dataService.fetchInfo(); this.hasPermissionForSubscription = hasPermission( @@ -176,7 +186,7 @@ export class GfAdminUsersComponent implements OnInit { this.fetchUsers(); } - public formatDistanceToNow(aDateString: string) { + protected formatDistanceToNow(aDateString: string) { if (aDateString) { const distanceString = formatDistanceToNowStrict(parseISO(aDateString), { addSuffix: true, @@ -192,13 +202,13 @@ export class GfAdminUsersComponent implements OnInit { return ''; } - public onChangePage(page: PageEvent) { + protected onChangePage(page: PageEvent) { this.fetchUsers({ pageIndex: page.pageIndex }); } - public onDeleteUser(aId: string) { + protected onDeleteUser(aId: string) { this.notificationService.confirm({ confirmFn: () => { this.dataService @@ -216,7 +226,7 @@ export class GfAdminUsersComponent implements OnInit { }); } - public onGenerateAccessToken(aUserId: string) { + protected onGenerateAccessToken(aUserId: string) { this.notificationService.confirm({ confirmFn: () => { this.dataService @@ -241,7 +251,7 @@ export class GfAdminUsersComponent implements OnInit { }); } - public onImpersonateUser(aId: string) { + protected onImpersonateUser(aId: string) { if (aId) { this.impersonationStorageService.setId(aId); } else { @@ -251,7 +261,7 @@ export class GfAdminUsersComponent implements OnInit { window.location.reload(); } - public onOpenUserDetailDialog(userId: string) { + protected onOpenUserDetailDialog(userId: string) { this.router.navigate( internalRoutes.adminControl.subRoutes.users.routerLink.concat(userId) ); @@ -260,8 +270,8 @@ export class GfAdminUsersComponent implements OnInit { private fetchUsers({ pageIndex }: { pageIndex: number } = { pageIndex: 0 }) { this.isLoading = true; - if (pageIndex === 0 && this.paginator) { - this.paginator.pageIndex = 0; + if (pageIndex === 0 && this.paginator()) { + this.paginator().pageIndex = 0; } this.adminService @@ -283,18 +293,19 @@ export class GfAdminUsersComponent implements OnInit { private openUserDetailDialog(aUserId: string) { const dialogRef = this.dialog.open< GfUserDetailDialogComponent, - UserDetailDialogParams + UserDetailDialogParams, + UserDetailDialogResult >(GfUserDetailDialogComponent, { autoFocus: false, data: { currentUserId: this.user?.id, - deviceType: this.deviceType, + deviceType: this.deviceType(), hasPermissionForSubscription: this.hasPermissionForSubscription, - locale: this.user?.settings?.locale, + locale: this.user?.settings?.locale ?? locale, userId: aUserId - }, - height: this.deviceType === 'mobile' ? '98vh' : '60vh', - width: this.deviceType === 'mobile' ? '100vw' : '50rem' + } satisfies UserDetailDialogParams, + height: this.deviceType() === 'mobile' ? '98vh' : '60vh', + width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); dialogRef diff --git a/apps/client/src/app/components/admin-users/admin-users.html b/apps/client/src/app/components/admin-users/admin-users.html index 0f9789feb..87ab9defc 100644 --- a/apps/client/src/app/components/admin-users/admin-users.html +++ b/apps/client/src/app/components/admin-users/admin-users.html @@ -19,16 +19,12 @@
{{ element.id }} {{ `${(element.id | slice: 0 : 5)}...` }} @if (element.subscription?.expiresAt) { @@ -198,12 +194,12 @@
@@ -18,12 +18,12 @@ Compare with... - @for (symbolProfile of benchmarks; track symbolProfile) { + @for (symbolProfile of benchmarks(); track symbolProfile) { {{ symbolProfile.name }} @@ -41,7 +41,7 @@
- @if (isLoading) { + @if (isLoading()) {
diff --git a/apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts b/apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts index 2ecefc311..d2dc9e1bb 100644 --- a/apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts +++ b/apps/client/src/app/components/benchmark-comparator/benchmark-comparator.component.ts @@ -22,12 +22,11 @@ import { ChangeDetectionStrategy, Component, type ElementRef, - EventEmitter, - Input, + input, OnChanges, OnDestroy, - Output, - ViewChild + output, + viewChild } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { MatSelectModule } from '@angular/material/select'; @@ -68,24 +67,25 @@ import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; templateUrl: './benchmark-comparator.component.html' }) export class GfBenchmarkComparatorComponent implements OnChanges, OnDestroy { - @Input() benchmark: Partial; - @Input() benchmarkDataItems: LineChartItem[] = []; - @Input() benchmarks: Partial[]; - @Input() colorScheme: ColorScheme; - @Input() isLoading: boolean; - @Input() locale = getLocale(); - @Input() performanceDataItems: LineChartItem[]; - @Input() user: User; + public readonly benchmark = input>(); + public readonly benchmarkDataItems = input([]); + public readonly benchmarks = input[]>(); + public readonly colorScheme = input.required(); + public readonly isLoading = input(); + public readonly locale = input(getLocale()); + public readonly performanceDataItems = input.required(); + public readonly user = input(); - @Output() benchmarkChanged = new EventEmitter(); + public readonly benchmarkChanged = output(); - @ViewChild('chartCanvas') chartCanvas: ElementRef; - - public chart: Chart<'line'>; - public hasPermissionToAccessAdminControl: boolean; - public routerLinkAdminControlMarketData = + protected chart: Chart<'line'>; + protected hasPermissionToAccessAdminControl: boolean; + protected readonly routerLinkAdminControlMarketData = internalRoutes.adminControl.subRoutes.marketData.routerLink; + private readonly chartCanvas = + viewChild.required>('chartCanvas'); + public constructor() { Chart.register( annotationPlugin, @@ -104,27 +104,27 @@ export class GfBenchmarkComparatorComponent implements OnChanges, OnDestroy { public ngOnChanges() { this.hasPermissionToAccessAdminControl = hasPermission( - this.user?.permissions, + this.user()?.permissions, permissions.accessAdminControl ); - if (this.performanceDataItems) { + if (this.performanceDataItems()) { this.initialize(); } } - public onChangeBenchmark(symbolProfileId: string) { - this.benchmarkChanged.next(symbolProfileId); - } - public ngOnDestroy() { this.chart?.destroy(); } + protected onChangeBenchmark(symbolProfileId: string) { + this.benchmarkChanged.emit(symbolProfileId); + } + private initialize() { const benchmarkDataValues: Record = {}; - for (const { date, value } of this.benchmarkDataItems) { + for (const { date, value } of this.benchmarkDataItems()) { benchmarkDataValues[date] = value; } @@ -134,8 +134,11 @@ export class GfBenchmarkComparatorComponent implements OnChanges, OnDestroy { backgroundColor: `rgb(${primaryColorRgb.r}, ${primaryColorRgb.g}, ${primaryColorRgb.b})`, borderColor: `rgb(${primaryColorRgb.r}, ${primaryColorRgb.g}, ${primaryColorRgb.b})`, borderWidth: 2, - data: this.performanceDataItems.map(({ date, value }) => { - return { x: parseDate(date).getTime(), y: value * 100 }; + data: this.performanceDataItems().map(({ date, value }) => { + return { + x: parseDate(date)?.getTime() ?? null, + y: value * 100 + }; }), label: $localize`Portfolio` }, @@ -143,9 +146,9 @@ export class GfBenchmarkComparatorComponent implements OnChanges, OnDestroy { backgroundColor: `rgb(${secondaryColorRgb.r}, ${secondaryColorRgb.g}, ${secondaryColorRgb.b})`, borderColor: `rgb(${secondaryColorRgb.r}, ${secondaryColorRgb.g}, ${secondaryColorRgb.b})`, borderWidth: 2, - data: this.performanceDataItems.map(({ date }) => { + data: this.performanceDataItems().map(({ date }) => { return { - x: parseDate(date).getTime(), + x: parseDate(date)?.getTime() ?? null, y: benchmarkDataValues[date] }; }), @@ -163,7 +166,7 @@ export class GfBenchmarkComparatorComponent implements OnChanges, OnDestroy { this.chart.update(); } else { - this.chart = new Chart(this.chartCanvas.nativeElement, { + this.chart = new Chart<'line'>(this.chartCanvas().nativeElement, { data, options: { animation: false, @@ -172,7 +175,7 @@ export class GfBenchmarkComparatorComponent implements OnChanges, OnDestroy { tension: 0 }, point: { - hoverBackgroundColor: getBackgroundColor(this.colorScheme), + hoverBackgroundColor: getBackgroundColor(this.colorScheme()), hoverRadius: 2, radius: 0 } @@ -183,7 +186,7 @@ export class GfBenchmarkComparatorComponent implements OnChanges, OnDestroy { annotation: { annotations: { yAxis: { - borderColor: `rgba(${getTextColor(this.colorScheme)}, 0.1)`, + borderColor: `rgba(${getTextColor(this.colorScheme())}, 0.1)`, borderWidth: 1, scaleID: 'y', type: 'line', @@ -196,14 +199,14 @@ export class GfBenchmarkComparatorComponent implements OnChanges, OnDestroy { }, tooltip: this.getTooltipPluginConfiguration(), verticalHoverLine: { - color: `rgba(${getTextColor(this.colorScheme)}, 0.1)` + color: `rgba(${getTextColor(this.colorScheme())}, 0.1)` } }, responsive: true, scales: { x: { border: { - color: `rgba(${getTextColor(this.colorScheme)}, 0.1)`, + color: `rgba(${getTextColor(this.colorScheme())}, 0.1)`, width: 1 }, display: true, @@ -212,7 +215,7 @@ export class GfBenchmarkComparatorComponent implements OnChanges, OnDestroy { }, type: 'time', time: { - tooltipFormat: getDateFormatString(this.locale), + tooltipFormat: getDateFormatString(this.locale()), unit: 'year' } }, @@ -228,7 +231,7 @@ export class GfBenchmarkComparatorComponent implements OnChanges, OnDestroy { tick.value === scale.max || tick.value === scale.min ) { - return `rgba(${getTextColor(this.colorScheme)}, 0.1)`; + return `rgba(${getTextColor(this.colorScheme())}, 0.1)`; } return 'transparent'; @@ -247,7 +250,7 @@ export class GfBenchmarkComparatorComponent implements OnChanges, OnDestroy { } }, plugins: [ - getVerticalHoverLinePlugin(this.chartCanvas, this.colorScheme) + getVerticalHoverLinePlugin(this.chartCanvas(), this.colorScheme()) ], type: 'line' }); @@ -258,8 +261,8 @@ export class GfBenchmarkComparatorComponent implements OnChanges, OnDestroy { private getTooltipPluginConfiguration(): Partial> { return { ...getTooltipOptions({ - colorScheme: this.colorScheme, - locale: this.locale, + colorScheme: this.colorScheme(), + locale: this.locale(), unit: '%' }), mode: 'index', diff --git a/apps/client/src/app/components/header/header.component.html b/apps/client/src/app/components/header/header.component.html index 501119b31..ae3121861 100644 --- a/apps/client/src/app/components/header/header.component.html +++ b/apps/client/src/app/components/header/header.component.html @@ -1,30 +1,30 @@ - @if (user) { -
+ @if (user()) { + } - @if (user === null) { -
+ @if (user() === null) { + @@ -350,12 +350,12 @@
  • Features
  • About Pricing - @if (currentRoute !== routePricing && hasPromotion) { + @if (currentRoute() !== routePricing && hasPromotion()) { % } @@ -397,12 +397,12 @@ @if (hasPermissionToAccessFearAndGreedIndex) {
  • Markets
  • -
  • - @if (currentRoute !== 'register' && hasPermissionToCreateUser) { + @if (currentRoute() !== 'register' && hasPermissionToCreateUser) {
  • (); - - @ViewChild('assistant') assistantElement: GfAssistantComponent; - @ViewChild('assistantTrigger') assistentMenuTriggerElement: MatMenuTrigger; - - public hasFilters: boolean; - public hasImpersonationId: boolean; - public hasPermissionForAuthGoogle: boolean; - public hasPermissionForAuthOidc: boolean; - public hasPermissionForAuthToken: boolean; - public hasPermissionForSubscription: boolean; - public hasPermissionToAccessAdminControl: boolean; - public hasPermissionToAccessAssistant: boolean; - public hasPermissionToAccessFearAndGreedIndex: boolean; - public hasPermissionToCreateUser: boolean; - public impersonationId: string; - public internalRoutes = internalRoutes; - public isMenuOpen: boolean; - public routeAbout = publicRoutes.about.path; - public routeFeatures = publicRoutes.features.path; - public routeMarkets = publicRoutes.markets.path; - public routePricing = publicRoutes.pricing.path; - public routeResources = publicRoutes.resources.path; - public routerLinkAbout = publicRoutes.about.routerLink; - public routerLinkAccount = internalRoutes.account.routerLink; - public routerLinkAccounts = internalRoutes.accounts.routerLink; - public routerLinkAdminControl = internalRoutes.adminControl.routerLink; - public routerLinkFeatures = publicRoutes.features.routerLink; - public routerLinkMarkets = publicRoutes.markets.routerLink; - public routerLinkPortfolio = internalRoutes.portfolio.routerLink; - public routerLinkPricing = publicRoutes.pricing.routerLink; - public routerLinkRegister = publicRoutes.register.routerLink; - public routerLinkResources = publicRoutes.resources.routerLink; - - public constructor( - private dataService: DataService, - private destroyRef: DestroyRef, - private dialog: MatDialog, - private impersonationStorageService: ImpersonationStorageService, - private layoutService: LayoutService, - private notificationService: NotificationService, - private router: Router, - private settingsStorageService: SettingsStorageService, - private tokenStorageService: TokenStorageService, - private userService: UserService - ) { + public readonly currentRoute = input.required(); + public readonly deviceType = input.required(); + public readonly hasPermissionToChangeDateRange = input.required(); + public readonly hasPermissionToChangeFilters = input.required(); + public readonly hasPromotion = input.required(); + public readonly hasTabs = input.required(); + public readonly info = input.required(); + public readonly pageTitle = input.required(); + public readonly user = input.required(); + + public readonly signOut = output(); + + protected readonly assistantElement = + viewChild.required('assistant'); + protected readonly assistentMenuTriggerElement = + viewChild.required('assistantTrigger'); + + protected hasFilters: boolean; + protected hasImpersonationId: boolean; + protected hasPermissionForAuthGoogle: boolean; + protected hasPermissionForAuthOidc: boolean; + protected hasPermissionForAuthToken: boolean; + protected hasPermissionForSubscription: boolean; + protected hasPermissionToAccessAdminControl: boolean; + protected hasPermissionToAccessAssistant: boolean; + protected hasPermissionToAccessFearAndGreedIndex: boolean; + protected hasPermissionToCreateUser: boolean; + protected impersonationId: string; + protected readonly internalRoutes = internalRoutes; + protected isMenuOpen: boolean; + protected readonly routeAbout = publicRoutes.about.path; + protected readonly routeFeatures = publicRoutes.features.path; + protected readonly routeMarkets = publicRoutes.markets.path; + protected readonly routePricing = publicRoutes.pricing.path; + protected readonly routeResources = publicRoutes.resources.path; + protected readonly routerLinkAbout = publicRoutes.about.routerLink; + protected readonly routerLinkAccount = internalRoutes.account.routerLink; + protected readonly routerLinkAccounts = internalRoutes.accounts.routerLink; + protected readonly routerLinkAdminControl = + internalRoutes.adminControl.routerLink; + protected readonly routerLinkFeatures = publicRoutes.features.routerLink; + protected readonly routerLinkMarkets = publicRoutes.markets.routerLink; + protected readonly routerLinkPortfolio = internalRoutes.portfolio.routerLink; + protected readonly routerLinkPricing = publicRoutes.pricing.routerLink; + protected readonly routerLinkRegister = publicRoutes.register.routerLink; + protected readonly routerLinkResources = publicRoutes.resources.routerLink; + + private readonly dataService = inject(DataService); + private readonly destroyRef = inject(DestroyRef); + private readonly dialog = inject(MatDialog); + private readonly impersonationStorageService = inject( + ImpersonationStorageService + ); + private readonly layoutService = inject(LayoutService); + private readonly notificationService = inject(NotificationService); + private readonly router = inject(Router); + private readonly settingsStorageService = inject(SettingsStorageService); + private readonly tokenStorageService = inject(TokenStorageService); + private readonly userService = inject(UserService); + + public constructor() { this.impersonationStorageService .onChangeHasImpersonation() .pipe(takeUntilDestroyed(this.destroyRef)) @@ -164,55 +154,71 @@ export class GfHeaderComponent implements OnChanges { }); } + @HostListener('window:keydown', ['$event']) + protected openAssistantWithHotKey(event: KeyboardEvent) { + if ( + event.key === '/' && + event.target instanceof Element && + event.target?.nodeName?.toLowerCase() !== 'input' && + event.target?.nodeName?.toLowerCase() !== 'textarea' && + this.hasPermissionToAccessAssistant + ) { + this.assistantElement().setIsOpen(true); + this.assistentMenuTriggerElement().openMenu(); + + event.preventDefault(); + } + } + public ngOnChanges() { this.hasFilters = this.userService.hasFilters(); this.hasPermissionForAuthGoogle = hasPermission( - this.info?.globalPermissions, + this.info()?.globalPermissions, permissions.enableAuthGoogle ); this.hasPermissionForAuthOidc = hasPermission( - this.info?.globalPermissions, + this.info()?.globalPermissions, permissions.enableAuthOidc ); this.hasPermissionForAuthToken = hasPermission( - this.info?.globalPermissions, + this.info()?.globalPermissions, permissions.enableAuthToken ); this.hasPermissionForSubscription = hasPermission( - this.info?.globalPermissions, + this.info()?.globalPermissions, permissions.enableSubscription ); this.hasPermissionToAccessAdminControl = hasPermission( - this.user?.permissions, + this.user()?.permissions, permissions.accessAdminControl ); this.hasPermissionToAccessAssistant = hasPermission( - this.user?.permissions, + this.user()?.permissions, permissions.accessAssistant ); this.hasPermissionToAccessFearAndGreedIndex = hasPermission( - this.info?.globalPermissions, + this.info()?.globalPermissions, permissions.enableFearAndGreedIndex ); this.hasPermissionToCreateUser = hasPermission( - this.info?.globalPermissions, + this.info()?.globalPermissions, permissions.createUserAccount ); } - public closeAssistant() { - this.assistentMenuTriggerElement?.closeMenu(); + protected closeAssistant() { + this.assistentMenuTriggerElement().closeMenu(); } - public impersonateAccount(aId: string) { + protected impersonateAccount(aId: string) { if (aId) { this.impersonationStorageService.setId(aId); } else { @@ -222,7 +228,7 @@ export class GfHeaderComponent implements OnChanges { window.location.reload(); } - public onDateRangeChange(dateRange: DateRange) { + protected onDateRangeChange(dateRange: DateRange) { this.dataService .putUserSetting({ dateRange }) .pipe(takeUntilDestroyed(this.destroyRef)) @@ -234,7 +240,7 @@ export class GfHeaderComponent implements OnChanges { }); } - public onFiltersChanged(filters: Filter[]) { + protected onFiltersChanged(filters: Filter[]) { const userSetting: UpdateUserSettingDto = {}; for (const filter of filters) { @@ -262,32 +268,33 @@ export class GfHeaderComponent implements OnChanges { }); } - public onLogoClick() { - if (['home', 'zen'].includes(this.currentRoute)) { + protected onLogoClick() { + if (['home', 'zen'].includes(this.currentRoute())) { this.layoutService.getShouldReloadSubject().next(); } } - public onMenuClosed() { + protected onMenuClosed() { this.isMenuOpen = false; } - public onMenuOpened() { + protected onMenuOpened() { this.isMenuOpen = true; } - public onOpenAssistant() { - this.assistantElement.initialize(); + protected onOpenAssistant() { + this.assistantElement().initialize(); } - public onSignOut() { - this.signOut.next(); + protected onSignOut() { + this.signOut.emit(); } - public openLoginDialog() { + protected openLoginDialog() { const dialogRef = this.dialog.open< GfLoginWithAccessTokenDialogComponent, - LoginWithAccessTokenDialogParams + LoginWithAccessTokenDialogParams, + LoginWithAccessTokenDialogResult >(GfLoginWithAccessTokenDialogComponent, { autoFocus: false, data: { @@ -324,7 +331,7 @@ export class GfHeaderComponent implements OnChanges { }); } - public setToken(aToken: string) { + private setToken(aToken: string) { this.tokenStorageService.saveToken( aToken, this.settingsStorageService.getSetting(KEY_STAY_SIGNED_IN) === 'true' diff --git a/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts b/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts index 13ded73eb..8c42e37ea 100644 --- a/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts +++ b/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts @@ -1,5 +1,6 @@ import { UserService } from '@ghostfolio/client/services/user/user.service'; import { + DEFAULT_PAGE_SIZE, NUMERICAL_PRECISION_THRESHOLD_3_FIGURES, NUMERICAL_PRECISION_THRESHOLD_5_FIGURES, NUMERICAL_PRECISION_THRESHOLD_6_FIGURES @@ -29,7 +30,6 @@ import { DataService } from '@ghostfolio/ui/services'; import { GfTagsSelectorComponent } from '@ghostfolio/ui/tags-selector'; import { GfValueComponent } from '@ghostfolio/ui/value'; -import { CommonModule } from '@angular/common'; import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, @@ -49,6 +49,7 @@ import { MatDialogRef } from '@angular/material/dialog'; import { MatFormFieldModule } from '@angular/material/form-field'; +import { PageEvent } from '@angular/material/paginator'; import { SortDirection } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/table'; import { MatTabsModule } from '@angular/material/tabs'; @@ -76,7 +77,6 @@ import { HoldingDetailDialogParams } from './interfaces/interfaces'; changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'd-flex flex-column h-100' }, imports: [ - CommonModule, GfAccountsTableComponent, GfActivitiesTableComponent, GfDataProviderCreditsComponent, @@ -142,6 +142,8 @@ export class GfHoldingDetailDialogComponent implements OnInit { public netPerformancePercentWithCurrencyEffectPrecision = 2; public netPerformanceWithCurrencyEffect: number; public netPerformanceWithCurrencyEffectPrecision = 2; + public pageIndex = 0; + public pageSize = DEFAULT_PAGE_SIZE; public quantity: number; public quantityPrecision = 2; public reportDataGlitchMail: string; @@ -180,10 +182,7 @@ export class GfHoldingDetailDialogComponent implements OnInit { } public ngOnInit() { - const filters: Filter[] = [ - { id: this.data.dataSource, type: 'DATA_SOURCE' }, - { id: this.data.symbol, type: 'SYMBOL' } - ]; + const filters = this.getActivityFilters(); this.holdingForm = this.formBuilder.group({ tags: [] as string[] @@ -242,18 +241,7 @@ export class GfHoldingDetailDialogComponent implements OnInit { this.changeDetectorRef.markForCheck(); }); - this.dataService - .fetchActivities({ - filters, - sortColumn: this.sortColumn, - sortDirection: this.sortDirection - }) - .pipe(takeUntilDestroyed(this.destroyRef)) - .subscribe(({ activities }) => { - this.dataSource = new MatTableDataSource(activities); - - this.changeDetectorRef.markForCheck(); - }); + this.fetchActivities(filters); this.dataService .fetchHoldingDetail({ @@ -545,6 +533,12 @@ export class GfHoldingDetailDialogComponent implements OnInit { }); } + public onChangePage(page: PageEvent) { + this.pageIndex = page.pageIndex; + + this.fetchActivities(); + } + public onCloneActivity(aActivity: Activity) { this.router.navigate( internalRoutes.portfolio.subRoutes.activities.routerLink, @@ -628,6 +622,23 @@ export class GfHoldingDetailDialogComponent implements OnInit { this.dialogRef.close(); } + private fetchActivities(filters: Filter[] = this.getActivityFilters()) { + this.dataService + .fetchActivities({ + filters, + skip: this.pageIndex * this.pageSize, + sortColumn: this.sortColumn, + sortDirection: this.sortDirection, + take: this.pageSize + }) + .pipe(takeUntilDestroyed(this.destroyRef)) + .subscribe(({ activities }) => { + this.dataSource = new MatTableDataSource(activities); + + this.changeDetectorRef.markForCheck(); + }); + } + private fetchMarketData() { this.dataService .fetchMarketDataBySymbol({ @@ -650,4 +661,11 @@ export class GfHoldingDetailDialogComponent implements OnInit { this.changeDetectorRef.markForCheck(); }); } + + private getActivityFilters(): Filter[] { + return [ + { id: this.data.dataSource, type: 'DATA_SOURCE' }, + { id: this.data.symbol, type: 'SYMBOL' } + ]; + } } diff --git a/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html b/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html index 11771dee2..4b04a0986 100644 --- a/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html +++ b/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html @@ -117,13 +117,12 @@ Symbol ISIN @@ -440,11 +437,10 @@ mat-stroked-button (click)="onCloseHolding()" > - Close Holding + Close Holding } @if ( diff --git a/apps/client/src/app/components/home-holdings/home-holdings.component.ts b/apps/client/src/app/components/home-holdings/home-holdings.component.ts index 19a48ccd8..661e21163 100644 --- a/apps/client/src/app/components/home-holdings/home-holdings.component.ts +++ b/apps/client/src/app/components/home-holdings/home-holdings.component.ts @@ -14,7 +14,6 @@ import { DataService } from '@ghostfolio/ui/services'; import { GfToggleComponent } from '@ghostfolio/ui/toggle'; import { GfTreemapChartComponent } from '@ghostfolio/ui/treemap-chart'; -import { CommonModule } from '@angular/common'; import { ChangeDetectorRef, Component, @@ -34,7 +33,6 @@ import { DeviceDetectorService } from 'ngx-device-detector'; @Component({ imports: [ - CommonModule, FormsModule, GfHoldingsTableComponent, GfToggleComponent, @@ -74,7 +72,7 @@ export class GfHomeHoldingsComponent implements OnInit { private changeDetectorRef: ChangeDetectorRef, private dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private impersonationStorageService: ImpersonationStorageService, private router: Router, private userService: UserService @@ -83,7 +81,7 @@ export class GfHomeHoldingsComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.impersonationStorageService .onChangeHasImpersonation() diff --git a/apps/client/src/app/components/home-holdings/home-holdings.html b/apps/client/src/app/components/home-holdings/home-holdings.html index 175c88606..c44df40b3 100644 --- a/apps/client/src/app/components/home-holdings/home-holdings.html +++ b/apps/client/src/app/components/home-holdings/home-holdings.html @@ -44,7 +44,7 @@ (treemapChartClicked)="onHoldingClicked($event)" /> } -
    +
    ([]); + protected readonly deviceType = computed( + () => this.deviceDetectorService.deviceInfo().deviceType + ); + protected readonly fearAndGreedIndex = signal(undefined); + protected readonly fearLabel = $localize`Fear`; + protected readonly greedLabel = $localize`Greed`; + protected hasPermissionToAccessFearAndGreedIndex: boolean; + protected readonly historicalDataItems = signal([]); + protected readonly numberOfDays = 365; + protected user: User; - public constructor( - private changeDetectorRef: ChangeDetectorRef, - private dataService: DataService, - private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, - private userService: UserService - ) { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + private readonly info: InfoItem; + + private readonly changeDetectorRef = inject(ChangeDetectorRef); + private readonly dataService = inject(DataService); + private readonly destroyRef = inject(DestroyRef); + private readonly deviceDetectorService = inject(DeviceDetectorService); + private readonly userService = inject(UserService); + + public constructor() { this.info = this.dataService.fetchInfo(); this.userService.stateChanged @@ -73,7 +78,10 @@ export class GfHomeMarketComponent implements OnInit { permissions.enableFearAndGreedIndex ); - if (this.hasPermissionToAccessFearAndGreedIndex) { + if ( + this.hasPermissionToAccessFearAndGreedIndex && + this.info.fearAndGreedDataSource + ) { this.dataService .fetchSymbolItem({ dataSource: this.info.fearAndGreedDataSource, @@ -82,16 +90,14 @@ export class GfHomeMarketComponent implements OnInit { }) .pipe(takeUntilDestroyed(this.destroyRef)) .subscribe(({ historicalData, marketPrice }) => { - this.fearAndGreedIndex = marketPrice; - this.historicalDataItems = [ + this.fearAndGreedIndex.set(marketPrice); + this.historicalDataItems.set([ ...historicalData, { date: resetHours(new Date()).toISOString(), value: marketPrice } - ]; - - this.changeDetectorRef.markForCheck(); + ]); }); } @@ -99,9 +105,7 @@ export class GfHomeMarketComponent implements OnInit { .fetchBenchmarks() .pipe(takeUntilDestroyed(this.destroyRef)) .subscribe(({ benchmarks }) => { - this.benchmarks = benchmarks; - - this.changeDetectorRef.markForCheck(); + this.benchmarks.set(benchmarks); }); } } diff --git a/apps/client/src/app/components/home-market/home-market.html b/apps/client/src/app/components/home-market/home-market.html index fc7230d35..a782526ee 100644 --- a/apps/client/src/app/components/home-market/home-market.html +++ b/apps/client/src/app/components/home-market/home-market.html @@ -10,7 +10,7 @@ class="mb-3" label="Fear & Greed Index" [colorScheme]="user?.settings?.colorScheme" - [historicalDataItems]="historicalDataItems" + [historicalDataItems]="historicalDataItems()" [isAnimated]="true" [locale]="user?.settings?.locale || undefined" [showXAxis]="true" @@ -22,7 +22,7 @@ />
    @@ -31,13 +31,13 @@
    - @if (benchmarks?.length > 0) { + @if (benchmarks()?.length > 0) {
    diff --git a/apps/client/src/app/components/home-overview/home-overview.component.ts b/apps/client/src/app/components/home-overview/home-overview.component.ts index 58284d27d..ad3556536 100644 --- a/apps/client/src/app/components/home-overview/home-overview.component.ts +++ b/apps/client/src/app/components/home-overview/home-overview.component.ts @@ -2,7 +2,11 @@ import { GfPortfolioPerformanceComponent } from '@ghostfolio/client/components/p import { LayoutService } from '@ghostfolio/client/core/layout.service'; import { ImpersonationStorageService } from '@ghostfolio/client/services/impersonation-storage.service'; import { UserService } from '@ghostfolio/client/services/user/user.service'; -import { NUMERICAL_PRECISION_THRESHOLD_6_FIGURES } from '@ghostfolio/common/config'; +import { + DEFAULT_CURRENCY, + DEFAULT_DATE_RANGE, + NUMERICAL_PRECISION_THRESHOLD_6_FIGURES +} from '@ghostfolio/common/config'; import { AssetProfileIdentifier, LineChartItem, @@ -14,13 +18,14 @@ import { internalRoutes } from '@ghostfolio/common/routes/routes'; import { GfLineChartComponent } from '@ghostfolio/ui/line-chart'; import { DataService } from '@ghostfolio/ui/services'; -import { CommonModule } from '@angular/common'; import { - ChangeDetectorRef, + ChangeDetectionStrategy, Component, - CUSTOM_ELEMENTS_SCHEMA, + computed, DestroyRef, - OnInit + inject, + OnInit, + signal } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { MatButtonModule } from '@angular/material/button'; @@ -28,80 +33,80 @@ import { RouterModule } from '@angular/router'; import { DeviceDetectorService } from 'ngx-device-detector'; @Component({ + changeDetection: ChangeDetectionStrategy.OnPush, imports: [ - CommonModule, GfLineChartComponent, GfPortfolioPerformanceComponent, MatButtonModule, RouterModule ], - schemas: [CUSTOM_ELEMENTS_SCHEMA], selector: 'gf-home-overview', styleUrls: ['./home-overview.scss'], templateUrl: './home-overview.html' }) export class GfHomeOverviewComponent implements OnInit { - public deviceType: string; - public errors: AssetProfileIdentifier[]; - public hasError: boolean; - public hasImpersonationId: boolean; - public hasPermissionToCreateActivity: boolean; - public historicalDataItems: LineChartItem[]; - public isAllTimeHigh: boolean; - public isAllTimeLow: boolean; - public isLoadingPerformance = true; - public performance: PortfolioPerformance; - public performanceLabel = $localize`Performance`; - public precision = 2; - public routerLinkAccounts = internalRoutes.accounts.routerLink; - public routerLinkPortfolio = internalRoutes.portfolio.routerLink; - public routerLinkPortfolioActivities = + protected readonly errors = signal([]); + protected readonly hasImpersonationId = signal(false); + protected readonly historicalDataItems = signal(null); + protected readonly isLoadingPerformance = signal(true); + protected readonly performance = signal(null); + protected readonly performanceLabel = $localize`Performance`; + protected readonly precision = signal(2); + protected readonly user = signal(null); + + protected readonly routerLinkAccounts = internalRoutes.accounts.routerLink; + protected readonly routerLinkPortfolio = internalRoutes.portfolio.routerLink; + protected readonly routerLinkPortfolioActivities = internalRoutes.portfolio.subRoutes.activities.routerLink; - public showDetails = false; - public unit: string; - public user: User; - - public constructor( - private changeDetectorRef: ChangeDetectorRef, - private dataService: DataService, - private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, - private impersonationStorageService: ImpersonationStorageService, - private layoutService: LayoutService, - private userService: UserService - ) { + + protected readonly deviceType = computed( + () => this.deviceDetectorService.deviceInfo().deviceType + ); + + protected readonly hasPermissionToCreateActivity = computed(() => { + return hasPermission(this.user()?.permissions, permissions.createActivity); + }); + + protected readonly showDetails = computed(() => { + const user = this.user(); + + return user + ? !user.settings.isRestrictedView && user.settings.viewMode !== 'ZEN' + : false; + }); + + protected readonly unit = computed(() => { + return this.showDetails() + ? (this.user()?.settings?.baseCurrency ?? DEFAULT_CURRENCY) + : '%'; + }); + + private readonly dataService = inject(DataService); + private readonly destroyRef = inject(DestroyRef); + private readonly deviceDetectorService = inject(DeviceDetectorService); + private readonly impersonationStorageService = inject( + ImpersonationStorageService + ); + private readonly layoutService = inject(LayoutService); + private readonly userService = inject(UserService); + + public constructor() { this.userService.stateChanged .pipe(takeUntilDestroyed(this.destroyRef)) .subscribe((state) => { if (state?.user) { - this.user = state.user; - - this.hasPermissionToCreateActivity = hasPermission( - this.user.permissions, - permissions.createActivity - ); - + this.user.set(state.user); this.update(); } }); } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; - - this.showDetails = - !this.user.settings.isRestrictedView && - this.user.settings.viewMode !== 'ZEN'; - - this.unit = this.showDetails ? this.user.settings.baseCurrency : '%'; - this.impersonationStorageService .onChangeHasImpersonation() .pipe(takeUntilDestroyed(this.destroyRef)) .subscribe((impersonationId) => { - this.hasImpersonationId = !!impersonationId; - - this.changeDetectorRef.markForCheck(); + this.hasImpersonationId.set(!!impersonationId); }); this.layoutService.shouldReloadContent$ @@ -112,40 +117,40 @@ export class GfHomeOverviewComponent implements OnInit { } private update() { - this.historicalDataItems = null; - this.isLoadingPerformance = true; + this.historicalDataItems.set(null); + this.isLoadingPerformance.set(true); this.dataService .fetchPortfolioPerformance({ - range: this.user?.settings?.dateRange + range: this.user()?.settings?.dateRange ?? DEFAULT_DATE_RANGE }) .pipe(takeUntilDestroyed(this.destroyRef)) .subscribe(({ chart, errors, performance }) => { - this.errors = errors; - this.performance = performance; - - this.historicalDataItems = chart.map( - ({ date, netPerformanceInPercentageWithCurrencyEffect }) => { - return { - date, - value: netPerformanceInPercentageWithCurrencyEffect * 100 - }; - } + this.errors.set(errors ?? []); + this.performance.set(performance); + + this.historicalDataItems.set( + chart?.map( + ({ date, netPerformanceInPercentageWithCurrencyEffect }) => { + return { + date, + value: (netPerformanceInPercentageWithCurrencyEffect ?? 0) * 100 + }; + } + ) ?? null ); + this.precision.set(2); + if ( - this.deviceType === 'mobile' && - this.performance.currentValueInBaseCurrency >= + this.deviceType() === 'mobile' && + performance.currentValueInBaseCurrency >= NUMERICAL_PRECISION_THRESHOLD_6_FIGURES ) { - this.precision = 0; + this.precision.set(0); } - this.isLoadingPerformance = false; - - this.changeDetectorRef.markForCheck(); + this.isLoadingPerformance.set(false); }); - - this.changeDetectorRef.markForCheck(); } } diff --git a/apps/client/src/app/components/home-overview/home-overview.html b/apps/client/src/app/components/home-overview/home-overview.html index b36302ded..8361c5b88 100644 --- a/apps/client/src/app/components/home-overview/home-overview.html +++ b/apps/client/src/app/components/home-overview/home-overview.html @@ -2,19 +2,16 @@ class="align-items-center container d-flex flex-column h-100 justify-content-center overview p-0 position-relative" > @if ( - !hasImpersonationId && - hasPermissionToCreateActivity && - user?.activitiesCount === 0 + !hasImpersonationId() && + hasPermissionToCreateActivity() && + user()?.activitiesCount === 0 ) {
    diff --git a/apps/client/src/app/components/home-summary/home-summary.component.ts b/apps/client/src/app/components/home-summary/home-summary.component.ts index 719cfbd29..a63876a54 100644 --- a/apps/client/src/app/components/home-summary/home-summary.component.ts +++ b/apps/client/src/app/components/home-summary/home-summary.component.ts @@ -1,27 +1,27 @@ import { GfPortfolioSummaryComponent } from '@ghostfolio/client/components/portfolio-summary/portfolio-summary.component'; import { ImpersonationStorageService } from '@ghostfolio/client/services/impersonation-storage.service'; import { UserService } from '@ghostfolio/client/services/user/user.service'; -import { - InfoItem, - PortfolioSummary, - User -} from '@ghostfolio/common/interfaces'; +import { PortfolioSummary, User } from '@ghostfolio/common/interfaces'; import { hasPermission, permissions } from '@ghostfolio/common/permissions'; import { DataService } from '@ghostfolio/ui/services'; import { - ChangeDetectorRef, + ChangeDetectionStrategy, Component, + computed, CUSTOM_ELEMENTS_SCHEMA, DestroyRef, - OnInit + inject, + OnInit, + signal } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { MatCardModule } from '@angular/material/card'; -import { MatSnackBarRef, TextOnlySnackBar } from '@angular/material/snack-bar'; import { DeviceDetectorService } from 'ngx-device-detector'; +import { switchMap } from 'rxjs'; @Component({ + changeDetection: ChangeDetectionStrategy.OnPush, imports: [GfPortfolioSummaryComponent, MatCardModule], schemas: [CUSTOM_ELEMENTS_SCHEMA], selector: 'gf-home-summary', @@ -29,87 +29,75 @@ import { DeviceDetectorService } from 'ngx-device-detector'; templateUrl: './home-summary.html' }) export class GfHomeSummaryComponent implements OnInit { - public deviceType: string; - public hasImpersonationId: boolean; - public hasPermissionForSubscription: boolean; - public hasPermissionToUpdateUserSettings: boolean; - public info: InfoItem; - public isLoading = true; - public snackBarRef: MatSnackBarRef; - public summary: PortfolioSummary; - public user: User; + protected readonly hasImpersonationId = signal(false); + protected readonly isLoading = signal(true); + protected readonly summary = signal(undefined); + protected readonly user = signal(undefined); + + protected readonly deviceType = computed( + () => this.deviceDetectorService.deviceInfo().deviceType + ); + + protected readonly hasPermissionToUpdateUserSettings = computed(() => { + const user = this.user(); - public constructor( - private changeDetectorRef: ChangeDetectorRef, - private dataService: DataService, - private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, - private impersonationStorageService: ImpersonationStorageService, - private userService: UserService - ) { - this.info = this.dataService.fetchInfo(); + return user + ? hasPermission(user.permissions, permissions.updateUserSettings) + : false; + }); - this.hasPermissionForSubscription = hasPermission( - this.info?.globalPermissions, - permissions.enableSubscription - ); + private readonly dataService = inject(DataService); + private readonly destroyRef = inject(DestroyRef); + private readonly deviceDetectorService = inject(DeviceDetectorService); + private readonly impersonationStorageService = inject( + ImpersonationStorageService + ); + private readonly userService = inject(UserService); + public constructor() { this.userService.stateChanged .pipe(takeUntilDestroyed(this.destroyRef)) .subscribe((state) => { if (state?.user) { - this.user = state.user; - - this.hasPermissionToUpdateUserSettings = hasPermission( - this.user.permissions, - permissions.updateUserSettings - ); - + this.user.set(state.user); this.update(); } }); } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; - this.impersonationStorageService .onChangeHasImpersonation() .pipe(takeUntilDestroyed(this.destroyRef)) .subscribe((impersonationId) => { - this.hasImpersonationId = !!impersonationId; + this.hasImpersonationId.set(!!impersonationId); }); } - public onChangeEmergencyFund(emergencyFund: number) { + protected onChangeEmergencyFund(emergencyFund: number) { this.dataService .putUserSetting({ emergencyFund }) - .pipe(takeUntilDestroyed(this.destroyRef)) - .subscribe(() => { - this.userService - .get(true) - .pipe(takeUntilDestroyed(this.destroyRef)) - .subscribe((user) => { - this.user = user; - - this.changeDetectorRef.markForCheck(); - }); + .pipe( + switchMap(() => this.userService.get(true)), + takeUntilDestroyed(this.destroyRef) + ) + .subscribe((user) => { + this.user.set(user); }); } private update() { - this.isLoading = true; + this.isLoading.set(true); this.dataService .fetchPortfolioDetails() .pipe(takeUntilDestroyed(this.destroyRef)) .subscribe(({ summary }) => { - this.summary = summary; - this.isLoading = false; + if (summary) { + this.summary.set(summary); + } - this.changeDetectorRef.markForCheck(); + this.isLoading.set(false); }); - - this.changeDetectorRef.markForCheck(); } } diff --git a/apps/client/src/app/components/home-summary/home-summary.html b/apps/client/src/app/components/home-summary/home-summary.html index 064923a04..a6da72b03 100644 --- a/apps/client/src/app/components/home-summary/home-summary.html +++ b/apps/client/src/app/components/home-summary/home-summary.html @@ -1,21 +1,21 @@ -
    +

    Summary

    diff --git a/apps/client/src/app/components/home-watchlist/home-watchlist.component.ts b/apps/client/src/app/components/home-watchlist/home-watchlist.component.ts index 7deace7de..22d829daa 100644 --- a/apps/client/src/app/components/home-watchlist/home-watchlist.component.ts +++ b/apps/client/src/app/components/home-watchlist/home-watchlist.component.ts @@ -8,6 +8,7 @@ import { } from '@ghostfolio/common/interfaces'; import { hasPermission, permissions } from '@ghostfolio/common/permissions'; import { GfBenchmarkComponent } from '@ghostfolio/ui/benchmark'; +import { GfFabComponent } from '@ghostfolio/ui/fab'; import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator'; import { DataService } from '@ghostfolio/ui/services'; @@ -22,12 +23,8 @@ import { OnInit } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; -import { MatButtonModule } from '@angular/material/button'; import { MatDialog } from '@angular/material/dialog'; import { ActivatedRoute, Router, RouterModule } from '@angular/router'; -import { IonIcon } from '@ionic/angular/standalone'; -import { addIcons } from 'ionicons'; -import { addOutline } from 'ionicons/icons'; import { DeviceDetectorService } from 'ngx-device-detector'; import { GfCreateWatchlistItemDialogComponent } from './create-watchlist-item-dialog/create-watchlist-item-dialog.component'; @@ -37,9 +34,8 @@ import { CreateWatchlistItemDialogParams } from './create-watchlist-item-dialog/ changeDetection: ChangeDetectionStrategy.OnPush, imports: [ GfBenchmarkComponent, + GfFabComponent, GfPremiumIndicatorComponent, - IonIcon, - MatButtonModule, RouterModule ], schemas: [CUSTOM_ELEMENTS_SCHEMA], @@ -108,8 +104,6 @@ export class GfHomeWatchlistComponent implements OnInit { this.changeDetectorRef.markForCheck(); } }); - - addIcons({ addOutline }); } public ngOnInit() { diff --git a/apps/client/src/app/components/home-watchlist/home-watchlist.html b/apps/client/src/app/components/home-watchlist/home-watchlist.html index a17259000..e2865b9cf 100644 --- a/apps/client/src/app/components/home-watchlist/home-watchlist.html +++ b/apps/client/src/app/components/home-watchlist/home-watchlist.html @@ -14,6 +14,7 @@ [deviceType]="deviceType()" [hasPermissionToDeleteItem]="hasPermissionToDeleteWatchlistItem" [locale]="user?.settings?.locale || undefined" + [showIcon]="true" [user]="user" (itemDeleted)="onWatchlistItemDeleted($event)" /> @@ -21,15 +22,5 @@
    @if (!hasImpersonationId && hasPermissionToCreateWatchlistItem) { -
    + } diff --git a/apps/client/src/app/components/investment-chart/investment-chart.component.ts b/apps/client/src/app/components/investment-chart/investment-chart.component.ts index 21a7ac85a..691133009 100644 --- a/apps/client/src/app/components/investment-chart/investment-chart.component.ts +++ b/apps/client/src/app/components/investment-chart/investment-chart.component.ts @@ -24,7 +24,7 @@ import { Input, OnChanges, OnDestroy, - ViewChild + viewChild } from '@angular/core'; import { BarController, @@ -55,20 +55,21 @@ import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; templateUrl: './investment-chart.component.html' }) export class GfInvestmentChartComponent implements OnChanges, OnDestroy { - @Input() benchmarkDataItems: InvestmentItem[] = []; - @Input() benchmarkDataLabel = ''; - @Input() colorScheme: ColorScheme; - @Input() currency: string; - @Input() groupBy: GroupBy; - @Input() historicalDataItems: LineChartItem[] = []; - @Input() isInPercentage = false; - @Input() isLoading = false; - @Input() locale = getLocale(); - @Input() savingsRate = 0; + @Input() public readonly benchmarkDataItems: InvestmentItem[] = []; + @Input() public readonly benchmarkDataLabel = ''; + @Input() public readonly colorScheme: ColorScheme; + @Input() public readonly currency: string; + @Input() public readonly groupBy: GroupBy; + @Input() public readonly historicalDataItems: LineChartItem[] = []; + @Input() public readonly isInPercentage = false; + @Input() public readonly isLoading = false; + @Input() public readonly locale = getLocale(); + @Input() public readonly savingsRate = 0; - @ViewChild('chartCanvas') chartCanvas: ElementRef; + private readonly chartCanvas = + viewChild.required>('chartCanvas'); - public chart: Chart<'bar' | 'line'>; + private chart: Chart<'bar' | 'line'>; private investments: InvestmentItem[]; private values: LineChartItem[]; @@ -118,7 +119,7 @@ export class GfInvestmentChartComponent implements OnChanges, OnDestroy { borderWidth: this.groupBy ? 0 : 1, data: this.investments.map(({ date, investment }) => { return { - x: parseDate(date).getTime(), + x: parseDate(date)?.getTime() ?? null, y: this.isInPercentage ? investment * 100 : investment }; }), @@ -138,7 +139,7 @@ export class GfInvestmentChartComponent implements OnChanges, OnDestroy { borderWidth: 2, data: this.values.map(({ date, value }) => { return { - x: parseDate(date).getTime(), + x: parseDate(date)?.getTime() ?? null, y: this.isInPercentage ? value * 100 : value }; }), @@ -165,123 +166,126 @@ export class GfInvestmentChartComponent implements OnChanges, OnDestroy { this.getTooltipPluginConfiguration(); const annotations = this.chart.options.plugins.annotation - .annotations as Record>; + ?.annotations as Record>; if (this.savingsRate && annotations.savingsRate) { annotations.savingsRate.value = this.savingsRate; } this.chart.update(); } else { - this.chart = new Chart(this.chartCanvas.nativeElement, { - data: chartData, - options: { - animation: false, - elements: { - line: { - tension: 0 + this.chart = new Chart<'bar' | 'line'>( + this.chartCanvas().nativeElement, + { + data: chartData, + options: { + animation: false, + elements: { + line: { + tension: 0 + }, + point: { + hoverBackgroundColor: getBackgroundColor(this.colorScheme), + hoverRadius: 2, + radius: 0 + } }, - point: { - hoverBackgroundColor: getBackgroundColor(this.colorScheme), - hoverRadius: 2, - radius: 0 - } - }, - interaction: { intersect: false, mode: 'index' }, - maintainAspectRatio: true, - plugins: { - annotation: { - annotations: { - savingsRate: this.savingsRate - ? { - borderColor: `rgba(${primaryColorRgb.r}, ${primaryColorRgb.g}, ${primaryColorRgb.b}, 0.75)`, - borderWidth: 1, - label: { - backgroundColor: `rgb(${primaryColorRgb.r}, ${primaryColorRgb.g}, ${primaryColorRgb.b})`, - borderRadius: 2, - color: 'white', - content: $localize`Savings Rate`, - display: true, - font: { size: 10, weight: 'normal' }, - padding: { - x: 4, - y: 2 + interaction: { intersect: false, mode: 'index' }, + maintainAspectRatio: true, + plugins: { + annotation: { + annotations: { + savingsRate: this.savingsRate + ? { + borderColor: `rgba(${primaryColorRgb.r}, ${primaryColorRgb.g}, ${primaryColorRgb.b}, 0.75)`, + borderWidth: 1, + label: { + backgroundColor: `rgb(${primaryColorRgb.r}, ${primaryColorRgb.g}, ${primaryColorRgb.b})`, + borderRadius: 2, + color: 'white', + content: $localize`Savings Rate`, + display: true, + font: { size: 10, weight: 'normal' }, + padding: { + x: 4, + y: 2 + }, + position: 'start' }, - position: 'start' - }, - scaleID: 'y', - type: 'line', - value: this.savingsRate - } - : undefined, - yAxis: { - borderColor: `rgba(${getTextColor(this.colorScheme)}, 0.1)`, - borderWidth: 1, - scaleID: 'y', - type: 'line', - value: 0 + scaleID: 'y', + type: 'line', + value: this.savingsRate + } + : undefined, + yAxis: { + borderColor: `rgba(${getTextColor(this.colorScheme)}, 0.1)`, + borderWidth: 1, + scaleID: 'y', + type: 'line', + value: 0 + } } - } - }, - legend: { - display: false - }, - tooltip: this.getTooltipPluginConfiguration(), - verticalHoverLine: { - color: `rgba(${getTextColor(this.colorScheme)}, 0.1)` - } - }, - responsive: true, - scales: { - x: { - border: { - color: `rgba(${getTextColor(this.colorScheme)}, 0.1)`, - width: this.groupBy ? 0 : 1 }, - display: true, - grid: { + legend: { display: false }, - type: 'time', - time: { - tooltipFormat: getDateFormatString(this.locale), - unit: 'year' + tooltip: this.getTooltipPluginConfiguration(), + verticalHoverLine: { + color: `rgba(${getTextColor(this.colorScheme)}, 0.1)` } }, - y: { - border: { - display: false - }, - display: !this.isInPercentage, - grid: { - color: ({ scale, tick }) => { - if ( - tick.value === 0 || - tick.value === scale.max || - tick.value === scale.min - ) { - return `rgba(${getTextColor(this.colorScheme)}, 0.1)`; - } - - return 'transparent'; + responsive: true, + scales: { + x: { + border: { + color: `rgba(${getTextColor(this.colorScheme)}, 0.1)`, + width: this.groupBy ? 0 : 1 + }, + display: true, + grid: { + display: false + }, + type: 'time', + time: { + tooltipFormat: getDateFormatString(this.locale), + unit: 'year' } }, - position: 'right', - ticks: { - callback: (value: number) => { - return transformTickToAbbreviation(value); + y: { + border: { + display: false }, - display: true, - mirror: true, - z: 1 + display: !this.isInPercentage, + grid: { + color: ({ scale, tick }) => { + if ( + tick.value === 0 || + tick.value === scale.max || + tick.value === scale.min + ) { + return `rgba(${getTextColor(this.colorScheme)}, 0.1)`; + } + + return 'transparent'; + } + }, + position: 'right', + ticks: { + callback: (value: number) => { + return transformTickToAbbreviation(value); + }, + display: true, + mirror: true, + z: 1 + } } } - } - }, - plugins: [ - getVerticalHoverLinePlugin(this.chartCanvas, this.colorScheme) - ], - type: this.groupBy ? 'bar' : 'line' - }); + }, + plugins: [ + getVerticalHoverLinePlugin(this.chartCanvas(), this.colorScheme) + ], + type: this.groupBy ? 'bar' : 'line' + } + ); } } } @@ -305,8 +309,12 @@ export class GfInvestmentChartComponent implements OnChanges, OnDestroy { } private isInFuture(aContext: ScriptableLineSegmentContext, aValue: T) { - return isAfter(new Date(aContext?.p1?.parsed?.x), new Date()) - ? aValue - : undefined; + const xValue = aContext?.p1?.parsed?.x; + + if (xValue == null) { + return undefined; + } + + return isAfter(new Date(xValue), new Date()) ? aValue : undefined; } } diff --git a/apps/client/src/app/components/login-with-access-token-dialog/interfaces/interfaces.ts b/apps/client/src/app/components/login-with-access-token-dialog/interfaces/interfaces.ts index e9222e142..b903fcfef 100644 --- a/apps/client/src/app/components/login-with-access-token-dialog/interfaces/interfaces.ts +++ b/apps/client/src/app/components/login-with-access-token-dialog/interfaces/interfaces.ts @@ -5,3 +5,7 @@ export interface LoginWithAccessTokenDialogParams { hasPermissionToUseAuthToken: boolean; title: string; } + +export interface LoginWithAccessTokenDialogResult { + accessToken: string | null; +} diff --git a/apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.component.ts b/apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.component.ts index d79c7a675..d6ce28c96 100644 --- a/apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.component.ts +++ b/apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.component.ts @@ -22,7 +22,10 @@ import { IonIcon } from '@ionic/angular/standalone'; import { addIcons } from 'ionicons'; import { eyeOffOutline, eyeOutline } from 'ionicons/icons'; -import { LoginWithAccessTokenDialogParams } from './interfaces/interfaces'; +import { + LoginWithAccessTokenDialogParams, + LoginWithAccessTokenDialogResult +} from './interfaces/interfaces'; @Component({ changeDetection: ChangeDetectionStrategy.OnPush, @@ -49,7 +52,10 @@ export class GfLoginWithAccessTokenDialogComponent { public constructor( @Inject(MAT_DIALOG_DATA) public data: LoginWithAccessTokenDialogParams, - public dialogRef: MatDialogRef, + public dialogRef: MatDialogRef< + GfLoginWithAccessTokenDialogComponent, + LoginWithAccessTokenDialogResult + >, private settingsStorageService: SettingsStorageService ) { addIcons({ eyeOffOutline, eyeOutline }); diff --git a/apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html b/apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html index 78604456b..4f4bb1867 100644 --- a/apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html +++ b/apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html @@ -13,12 +13,14 @@ (keydown.enter)="onLoginWithAccessToken(); $event.preventDefault()" /> @@ -34,7 +36,7 @@ @if (data.hasPermissionToUseAuthGoogle) { diff --git a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts index 04c0f507c..56e75ec1e 100644 --- a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts +++ b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts @@ -10,7 +10,6 @@ import { import { NotificationService } from '@ghostfolio/ui/notifications'; import { GfValueComponent } from '@ghostfolio/ui/value'; -import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component, @@ -28,7 +27,7 @@ import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; @Component({ changeDetection: ChangeDetectionStrategy.OnPush, - imports: [CommonModule, GfValueComponent, IonIcon, NgxSkeletonLoaderModule], + imports: [GfValueComponent, IonIcon, NgxSkeletonLoaderModule], selector: 'gf-portfolio-performance', styleUrls: ['./portfolio-performance.component.scss'], templateUrl: './portfolio-performance.component.html' @@ -36,8 +35,6 @@ import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; export class GfPortfolioPerformanceComponent implements OnChanges { @Input() deviceType: string; @Input() errors: ResponseError['errors']; - @Input() isAllTimeHigh: boolean; - @Input() isAllTimeLow: boolean; @Input() isLoading: boolean; @Input() locale = getLocale(); @Input() performance: PortfolioPerformance; diff --git a/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html b/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html index 0e26a49a8..e14479425 100644 --- a/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html +++ b/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -181,12 +181,11 @@
    +
    Threshold Min:
    -
    +
    Threshold Max: (MAT_DIALOG_DATA); @@ -85,28 +87,27 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { private readonly userService = inject(UserService); public constructor() { - this.mode = this.data.access?.id ? 'update' : 'create'; + this.mode = this.data.access ? 'update' : 'create'; } public ngOnInit() { - const isPublic = this.data.access.type === 'PUBLIC'; + const access = this.data?.access; + const isPublic = access?.type === 'PUBLIC'; this.accessForm = this.formBuilder.group({ - alias: [this.data.access.alias], + alias: [access?.alias ?? ''], filters: [null], granteeUserId: [ - this.data.access.grantee, - isPublic - ? null - : [(control: AbstractControl) => Validators.required(control)] + access?.grantee ?? null, + isPublic ? null : Validators.required ], permissions: [ - this.data.access.permissions[0], - [(control: AbstractControl) => Validators.required(control)] + access?.permissions[0] ?? AccessPermission.READ_RESTRICTED, + Validators.required ], type: [ - { disabled: this.mode === 'update', value: this.data.access.type }, - [(control: AbstractControl) => Validators.required(control)] + { disabled: this.mode === 'update', value: access?.type ?? 'PRIVATE' }, + Validators.required ] }); @@ -126,7 +127,9 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { } else { granteeUserIdControl?.clearValidators(); granteeUserIdControl?.setValue(null); - permissionsControl?.setValue(this.data.access.permissions[0]); + permissionsControl?.setValue( + access?.permissions[0] ?? AccessPermission.READ_RESTRICTED + ); this.showFilterPanel = true; this.loadFilterData(); } @@ -142,11 +145,11 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { } } - public onCancel() { + protected onCancel() { this.dialogRef.close(); } - public async onSubmit() { + protected async onSubmit() { if (this.mode === 'create') { await this.createAccess(); } else { @@ -193,8 +196,8 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { if (filterValue.holding) { filter.holdings = [ { - dataSource: filterValue.holding.dataSource, - symbol: filterValue.holding.symbol + dataSource: filterValue.holding.assetProfile.dataSource, + symbol: filterValue.holding.assetProfile.symbol } ]; } @@ -207,7 +210,7 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { } private loadFilterData() { - const existingFilter = this.data.access.settings?.filter; + const existingFilter = this.data.access?.settings?.filter; this.userService .get() @@ -233,8 +236,8 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { const assetClassesSet = new Set(); Object.values(response.holdings).forEach((holding) => { - if (holding.assetClass) { - assetClassesSet.add(holding.assetClass); + if (holding.assetProfile.assetClass) { + assetClassesSet.add(holding.assetProfile.assetClass); } }); this.assetClasses = Array.from(assetClassesSet).map((ac) => ({ @@ -277,8 +280,8 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { const holdingData = existingFilter.holdings[0]; const holding = this.holdings.find( (h) => - h.dataSource === holdingData.dataSource && - h.symbol === holdingData.symbol + h.assetProfile.dataSource === holdingData.dataSource && + h.assetProfile.symbol === holdingData.symbol ); if (holding) { filterValue.holding = holding; @@ -335,13 +338,19 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { } private async updateAccess() { + const accessId = this.data.access?.id; + + if (!accessId) { + return; + } + const filter = this.showFilterPanel ? this.buildFilterObject() : undefined; const access: UpdateAccessDto = { alias: this.accessForm.get('alias')?.value, filter, granteeUserId: this.accessForm.get('granteeUserId')?.value, - id: this.data.access.id, + id: accessId, permissions: [this.accessForm.get('permissions')?.value] }; diff --git a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/interfaces/interfaces.ts b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/interfaces/interfaces.ts index b7850fb38..8d1ac0ba9 100644 --- a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/interfaces/interfaces.ts +++ b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/interfaces/interfaces.ts @@ -1,5 +1,5 @@ import { Access } from '@ghostfolio/common/interfaces'; export interface CreateOrUpdateAccessDialogParams { - access: Access; + access?: Access; } diff --git a/apps/client/src/app/components/user-account-access/user-account-access.component.ts b/apps/client/src/app/components/user-account-access/user-account-access.component.ts index ce00d3cf9..b20bc70d9 100644 --- a/apps/client/src/app/components/user-account-access/user-account-access.component.ts +++ b/apps/client/src/app/components/user-account-access/user-account-access.component.ts @@ -4,6 +4,7 @@ import { CreateAccessDto } from '@ghostfolio/common/dtos'; import { ConfirmationDialogType } from '@ghostfolio/common/enums'; import { Access, User } from '@ghostfolio/common/interfaces'; import { hasPermission, permissions } from '@ghostfolio/common/permissions'; +import { GfFabComponent } from '@ghostfolio/ui/fab'; import { NotificationService } from '@ghostfolio/ui/notifications'; import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator'; import { DataService } from '@ghostfolio/ui/services'; @@ -12,14 +13,16 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, + computed, CUSTOM_ELEMENTS_SCHEMA, DestroyRef, + inject, OnInit } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { - AbstractControl, - FormBuilder, + FormControl, + FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; @@ -40,9 +43,9 @@ import { CreateOrUpdateAccessDialogParams } from './create-or-update-access-dial @Component({ changeDetection: ChangeDetectionStrategy.OnPush, - host: { class: 'has-fab' }, imports: [ GfAccessTableComponent, + GfFabComponent, GfPremiumIndicatorComponent, IonIcon, MatButtonModule, @@ -58,33 +61,35 @@ import { CreateOrUpdateAccessDialogParams } from './create-or-update-access-dial templateUrl: './user-account-access.html' }) export class GfUserAccountAccessComponent implements OnInit { - public accessesGet: Access[]; - public accessesGive: Access[]; - public deviceType: string; - public hasPermissionToCreateAccess: boolean; - public hasPermissionToDeleteAccess: boolean; - public hasPermissionToUpdateOwnAccessToken: boolean; - public isAccessTokenHidden = true; - public updateOwnAccessTokenForm = this.formBuilder.group({ - accessToken: [ - '', - [(control: AbstractControl) => Validators.required(control)] - ] + protected accessesGet: Access[]; + protected accessesGive: Access[]; + protected hasPermissionToCreateAccess: boolean; + protected hasPermissionToDeleteAccess: boolean; + protected hasPermissionToUpdateOwnAccessToken: boolean; + protected isAccessTokenHidden = true; + protected readonly updateOwnAccessTokenForm = new FormGroup({ + accessToken: new FormControl('', { + nonNullable: true, + validators: [Validators.required] + }) }); - public user: User; + protected user: User; - public constructor( - private changeDetectorRef: ChangeDetectorRef, - private dataService: DataService, - private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, - private dialog: MatDialog, - private formBuilder: FormBuilder, - private notificationService: NotificationService, - private route: ActivatedRoute, - private router: Router, - private userService: UserService - ) { + private readonly deviceType = computed( + () => this.deviceDetectorService.deviceInfo().deviceType + ); + + private readonly changeDetectorRef = inject(ChangeDetectorRef); + private readonly dataService = inject(DataService); + private readonly destroyRef = inject(DestroyRef); + private readonly deviceDetectorService = inject(DeviceDetectorService); + private readonly dialog = inject(MatDialog); + private readonly notificationService = inject(NotificationService); + private readonly route = inject(ActivatedRoute); + private readonly router = inject(Router); + private readonly userService = inject(UserService); + + public constructor() { const { globalPermissions } = this.dataService.fetchInfo(); this.hasPermissionToDeleteAccess = hasPermission( @@ -131,12 +136,10 @@ export class GfUserAccountAccessComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; - this.update(); } - public onDeleteAccess(aId: string) { + protected onDeleteAccess(aId: string) { this.dataService .deleteAccess(aId) .pipe(takeUntilDestroyed(this.destroyRef)) @@ -147,12 +150,13 @@ export class GfUserAccountAccessComponent implements OnInit { }); } - public onGenerateAccessToken() { + protected onGenerateAccessToken() { this.notificationService.confirm({ confirmFn: () => { this.dataService .updateOwnAccessToken({ - accessToken: this.updateOwnAccessTokenForm.get('accessToken').value + accessToken: + this.updateOwnAccessTokenForm.controls.accessToken.value }) .pipe( catchError(() => { @@ -181,7 +185,7 @@ export class GfUserAccountAccessComponent implements OnInit { }); } - public onUpdateAccess(aId: string) { + protected onUpdateAccess(aId: string) { this.router.navigate([], { queryParams: { accessId: aId, editDialog: true } }); @@ -192,17 +196,9 @@ export class GfUserAccountAccessComponent implements OnInit { GfCreateOrUpdateAccessDialogComponent, CreateOrUpdateAccessDialogParams >(GfCreateOrUpdateAccessDialogComponent, { - data: { - access: { - alias: '', - grantee: null, - id: null, - permissions: ['READ_RESTRICTED'], - type: 'PRIVATE' - } - }, - height: this.deviceType === 'mobile' ? '98vh' : undefined, - width: this.deviceType === 'mobile' ? '100vw' : '50rem' + data: {} satisfies CreateOrUpdateAccessDialogParams, + height: this.deviceType() === 'mobile' ? '98vh' : undefined, + width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); dialogRef.afterClosed().subscribe((access: CreateAccessDto | null) => { @@ -230,15 +226,15 @@ export class GfUserAccountAccessComponent implements OnInit { data: { access: { alias: access.alias, - grantee: access.grantee === 'Public' ? null : access.grantee, + grantee: access.grantee === 'Public' ? undefined : access.grantee, id: access.id, permissions: access.permissions, settings: access.settings, type: access.type } - }, - height: this.deviceType === 'mobile' ? '98vh' : undefined, - width: this.deviceType === 'mobile' ? '100vw' : '50rem' + } satisfies CreateOrUpdateAccessDialogParams, + height: this.deviceType() === 'mobile' ? '98vh' : undefined, + width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); dialogRef.afterClosed().subscribe((result) => { @@ -253,9 +249,9 @@ export class GfUserAccountAccessComponent implements OnInit { private update() { this.accessesGet = this.user.access.map(({ alias, id, permissions }) => { return { - alias, id, permissions, + alias: alias ?? '', grantee: $localize`Me`, type: 'PRIVATE' }; diff --git a/apps/client/src/app/components/user-account-access/user-account-access.html b/apps/client/src/app/components/user-account-access/user-account-access.html index 8160c2c8e..62b1648bb 100644 --- a/apps/client/src/app/components/user-account-access/user-account-access.html +++ b/apps/client/src/app/components/user-account-access/user-account-access.html @@ -19,12 +19,14 @@ [type]="isAccessTokenHidden ? 'password' : 'text'" /> @@ -67,16 +69,6 @@ (accessToUpdate)="onUpdateAccess($event)" /> @if (hasPermissionToCreateAccess) { -
    - - - -
    + }
    diff --git a/apps/client/src/app/components/user-account-settings/user-account-settings.html b/apps/client/src/app/components/user-account-settings/user-account-settings.html index 93ed614cc..f646ef0fd 100644 --- a/apps/client/src/app/components/user-account-settings/user-account-settings.html +++ b/apps/client/src/app/components/user-account-settings/user-account-settings.html @@ -292,12 +292,14 @@ [type]="isAccessTokenHidden ? 'password' : 'text'" />
    -
    +

    Stealth Wealth

    diff --git a/apps/client/src/app/pages/resources/guides/resources-guides.component.html b/apps/client/src/app/pages/resources/guides/resources-guides.component.html index 54b3d1f3e..24a7532b9 100644 --- a/apps/client/src/app/pages/resources/guides/resources-guides.component.html +++ b/apps/client/src/app/pages/resources/guides/resources-guides.component.html @@ -19,7 +19,7 @@
    -
    +

    How do I get my finances in order?

    diff --git a/apps/client/src/app/pages/resources/markets/resources-markets.component.html b/apps/client/src/app/pages/resources/markets/resources-markets.component.html index ce780aedf..7437da1b1 100644 --- a/apps/client/src/app/pages/resources/markets/resources-markets.component.html +++ b/apps/client/src/app/pages/resources/markets/resources-markets.component.html @@ -30,8 +30,8 @@
    -
    -
    +
    +

    Inflation Chart

    Inflation Chart helps you find the intrinsic value of stock diff --git a/apps/client/src/app/pages/resources/overview/resources-overview.component.html b/apps/client/src/app/pages/resources/overview/resources-overview.component.html index 86a334c79..8d1665373 100644 --- a/apps/client/src/app/pages/resources/overview/resources-overview.component.html +++ b/apps/client/src/app/pages/resources/overview/resources-overview.component.html @@ -4,7 +4,7 @@

    Resources

    @for (item of overviewItems; track item) { -
    +

    {{ item.title }}

    {{ item.description }}

    -
    +

    Discover Open Source Alternatives for Personal Finance Tools @@ -22,7 +22,7 @@ personalFinanceTool of personalFinanceTools; track personalFinanceTool ) { - +
    diff --git a/apps/client/src/app/pages/resources/resources-page.component.ts b/apps/client/src/app/pages/resources/resources-page.component.ts index c25ef00d6..52980be85 100644 --- a/apps/client/src/app/pages/resources/resources-page.component.ts +++ b/apps/client/src/app/pages/resources/resources-page.component.ts @@ -1,10 +1,10 @@ -import { TabConfiguration } from '@ghostfolio/common/interfaces'; import { publicRoutes } from '@ghostfolio/common/routes/routes'; +import { + GfPageTabsComponent, + TabConfiguration +} from '@ghostfolio/ui/page-tabs'; -import { Component, OnInit } from '@angular/core'; -import { MatTabsModule } from '@angular/material/tabs'; -import { RouterModule } from '@angular/router'; -import { IonIcon } from '@ionic/angular/standalone'; +import { Component } from '@angular/core'; import { addIcons } from 'ionicons'; import { bookOutline, @@ -12,17 +12,15 @@ import { newspaperOutline, readerOutline } from 'ionicons/icons'; -import { DeviceDetectorService } from 'ngx-device-detector'; @Component({ - host: { class: 'page has-tabs' }, - imports: [IonIcon, MatTabsModule, RouterModule], + host: { class: 'page' }, + imports: [GfPageTabsComponent], selector: 'gf-resources-page', styleUrls: ['./resources-page.scss'], templateUrl: './resources-page.html' }) -export class ResourcesPageComponent implements OnInit { - public deviceType: string; +export class ResourcesPageComponent { public tabs: TabConfiguration[] = [ { iconName: 'reader-outline', @@ -46,11 +44,7 @@ export class ResourcesPageComponent implements OnInit { } ]; - public constructor(private deviceService: DeviceDetectorService) { + public constructor() { addIcons({ bookOutline, libraryOutline, newspaperOutline, readerOutline }); } - - public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; - } } diff --git a/apps/client/src/app/pages/resources/resources-page.html b/apps/client/src/app/pages/resources/resources-page.html index bd1338774..5d1bdce9b 100644 --- a/apps/client/src/app/pages/resources/resources-page.html +++ b/apps/client/src/app/pages/resources/resources-page.html @@ -1,30 +1 @@ - - - - - + diff --git a/apps/client/src/app/pages/user-account/user-account-page.component.ts b/apps/client/src/app/pages/user-account/user-account-page.component.ts index 24c150408..ec7547b3c 100644 --- a/apps/client/src/app/pages/user-account/user-account-page.component.ts +++ b/apps/client/src/app/pages/user-account/user-account-page.component.ts @@ -1,39 +1,30 @@ import { UserService } from '@ghostfolio/client/services/user/user.service'; -import { TabConfiguration, User } from '@ghostfolio/common/interfaces'; +import { User } from '@ghostfolio/common/interfaces'; import { internalRoutes } from '@ghostfolio/common/routes/routes'; - import { - ChangeDetectorRef, - Component, - CUSTOM_ELEMENTS_SCHEMA, - DestroyRef, - OnInit -} from '@angular/core'; + GfPageTabsComponent, + TabConfiguration +} from '@ghostfolio/ui/page-tabs'; + +import { ChangeDetectorRef, Component, DestroyRef } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; -import { MatTabsModule } from '@angular/material/tabs'; -import { RouterModule } from '@angular/router'; -import { IonIcon } from '@ionic/angular/standalone'; import { addIcons } from 'ionicons'; import { diamondOutline, keyOutline, settingsOutline } from 'ionicons/icons'; -import { DeviceDetectorService } from 'ngx-device-detector'; @Component({ - host: { class: 'page has-tabs' }, - imports: [IonIcon, MatTabsModule, RouterModule], - schemas: [CUSTOM_ELEMENTS_SCHEMA], + host: { class: 'page' }, + imports: [GfPageTabsComponent], selector: 'gf-user-account-page', styleUrls: ['./user-account-page.scss'], templateUrl: './user-account-page.html' }) -export class GfUserAccountPageComponent implements OnInit { - public deviceType: string; +export class GfUserAccountPageComponent { public tabs: TabConfiguration[] = []; public user: User; public constructor( private changeDetectorRef: ChangeDetectorRef, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, private userService: UserService ) { this.userService.stateChanged @@ -68,8 +59,4 @@ export class GfUserAccountPageComponent implements OnInit { addIcons({ diamondOutline, keyOutline, settingsOutline }); } - - public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; - } } diff --git a/apps/client/src/app/pages/user-account/user-account-page.html b/apps/client/src/app/pages/user-account/user-account-page.html index bd1338774..5d1bdce9b 100644 --- a/apps/client/src/app/pages/user-account/user-account-page.html +++ b/apps/client/src/app/pages/user-account/user-account-page.html @@ -1,30 +1 @@ - - - - - + diff --git a/apps/client/src/app/pages/zen/zen-page.component.ts b/apps/client/src/app/pages/zen/zen-page.component.ts index 633f15885..4a897093c 100644 --- a/apps/client/src/app/pages/zen/zen-page.component.ts +++ b/apps/client/src/app/pages/zen/zen-page.component.ts @@ -1,37 +1,30 @@ import { UserService } from '@ghostfolio/client/services/user/user.service'; -import { TabConfiguration, User } from '@ghostfolio/common/interfaces'; +import { User } from '@ghostfolio/common/interfaces'; import { internalRoutes } from '@ghostfolio/common/routes/routes'; - import { - ChangeDetectorRef, - Component, - DestroyRef, - OnInit -} from '@angular/core'; + GfPageTabsComponent, + TabConfiguration +} from '@ghostfolio/ui/page-tabs'; + +import { ChangeDetectorRef, Component, DestroyRef } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; -import { MatTabsModule } from '@angular/material/tabs'; -import { RouterModule } from '@angular/router'; -import { IonIcon } from '@ionic/angular/standalone'; import { addIcons } from 'ionicons'; import { albumsOutline, analyticsOutline } from 'ionicons/icons'; -import { DeviceDetectorService } from 'ngx-device-detector'; @Component({ - host: { class: 'page has-tabs' }, - imports: [IonIcon, MatTabsModule, RouterModule], + host: { class: 'page' }, + imports: [GfPageTabsComponent], selector: 'gf-zen-page', styleUrls: ['./zen-page.scss'], templateUrl: './zen-page.html' }) -export class GfZenPageComponent implements OnInit { - public deviceType: string; +export class GfZenPageComponent { public tabs: TabConfiguration[] = []; public user: User; public constructor( private changeDetectorRef: ChangeDetectorRef, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, private userService: UserService ) { this.userService.stateChanged @@ -58,8 +51,4 @@ export class GfZenPageComponent implements OnInit { addIcons({ albumsOutline, analyticsOutline }); } - - public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; - } } diff --git a/apps/client/src/app/pages/zen/zen-page.html b/apps/client/src/app/pages/zen/zen-page.html index bd1338774..5d1bdce9b 100644 --- a/apps/client/src/app/pages/zen/zen-page.html +++ b/apps/client/src/app/pages/zen/zen-page.html @@ -1,30 +1 @@ - - - - - + diff --git a/apps/client/src/app/services/user/user.service.ts b/apps/client/src/app/services/user/user.service.ts index e92eb6bd4..caeea775e 100644 --- a/apps/client/src/app/services/user/user.service.ts +++ b/apps/client/src/app/services/user/user.service.ts @@ -26,7 +26,7 @@ export class UserService extends ObservableStore { public constructor( private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private dialog: MatDialog, private http: HttpClient, private webAuthnService: WebAuthnService @@ -35,7 +35,7 @@ export class UserService extends ObservableStore { this.setState({ user: undefined }, UserStoreActions.Initialize); - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; } public get(force = false) { diff --git a/apps/client/src/assets/images/blog/ghostfolio-3.jpg b/apps/client/src/assets/images/blog/ghostfolio-3.jpg new file mode 100644 index 000000000..2a2c787e8 Binary files /dev/null and b/apps/client/src/assets/images/blog/ghostfolio-3.jpg differ diff --git a/apps/client/src/assets/images/logo-euroalternative.svg b/apps/client/src/assets/images/logo-euroalternative.svg new file mode 100644 index 000000000..44e950857 --- /dev/null +++ b/apps/client/src/assets/images/logo-euroalternative.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/client/src/assets/oss-friends.json b/apps/client/src/assets/oss-friends.json index 2d5b994d3..da409ca2f 100644 --- a/apps/client/src/assets/oss-friends.json +++ b/apps/client/src/assets/oss-friends.json @@ -1,5 +1,5 @@ { - "createdAt": "2025-12-08T00:00:00.000Z", + "createdAt": "2026-05-26T00:00:00.000Z", "data": [ { "name": "Activepieces", @@ -21,11 +21,6 @@ "description": "Fastest LLM gateway with adaptive load balancer, cluster mode, guardrails, 1000+ models support & <100 µs overhead at 5k RPS.", "href": "https://www.getmaxim.ai/bifrost" }, - { - "name": "Cal.com", - "description": "Cal.com is a scheduling tool that helps you schedule meetings without the back-and-forth emails.", - "href": "https://cal.com" - }, { "name": "Cap", "description": "Cap is the open source alternative to Loom. Lightweight, powerful, and cross-platform. Record and share securely in seconds.", @@ -106,6 +101,11 @@ "description": "Simplify working with databases. Build, optimize, and grow your app easily with an intuitive data model, type-safety, automated migrations, connection pooling, caching, and real-time db subscriptions.", "href": "https://www.prisma.io" }, + { + "name": "Rallly", + "description": "Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.", + "href": "https://rallly.co" + }, { "name": "Requestly", "description": "Makes frontend development cycle 10x faster with API Client, Mock Server, Intercept & Modify HTTP Requests and Session Replays.", diff --git a/apps/client/src/locales/messages.ca.xlf b/apps/client/src/locales/messages.ca.xlf index 009d561a4..10fa62f11 100644 --- a/apps/client/src/locales/messages.ca.xlf +++ b/apps/client/src/locales/messages.ca.xlf @@ -10,7 +10,7 @@ apps/client/src/app/components/header/header.component.html - 361 + 356 apps/client/src/app/pages/features/features-page.html @@ -34,15 +34,15 @@ Iniciar sessió apps/client/src/app/components/header/header.component.html - 422 + 421 apps/client/src/app/components/header/header.component.ts - 298 + 296 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 79 + 81 libs/common/src/lib/routes/routes.ts @@ -371,7 +371,7 @@ Balanç de Caixa apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 45 + 43 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -387,7 +387,7 @@ Plataforma apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 90 + 88 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -403,7 +403,7 @@ Balanç de Caixa apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 146 + 142 @@ -455,7 +455,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 135 + 134 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -511,7 +511,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 141 + 140 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -531,15 +531,15 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 201 + 199 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 204 + 202 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 207 + 205 libs/ui/src/lib/account-balances/account-balances.component.html @@ -615,7 +615,7 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 140 + 213 apps/client/src/app/components/admin-platform/admin-platform.component.html @@ -651,7 +651,7 @@ Realment vol suprimir aquest compte? libs/ui/src/lib/accounts-table/accounts-table.component.ts - 148 + 146 @@ -715,11 +715,11 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 151 + 150 libs/ui/src/lib/i18n.ts - 15 + 14 @@ -822,12 +822,20 @@ 2 + + Find an account... + Find an account... + + libs/ui/src/lib/assistant/assistant.component.ts + 471 + + Date Data apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 157 + 156 libs/ui/src/lib/account-balances/account-balances.component.html @@ -899,7 +907,7 @@ Filtra per... apps/client/src/app/components/admin-market-data/admin-market-data.component.ts - 383 + 368 @@ -915,7 +923,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 219 + 217 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -939,7 +947,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 40 + 42 @@ -1015,7 +1023,7 @@ El preu de mercat actual és apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 722 + 743 @@ -1039,7 +1047,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 67 + 69 @@ -1051,7 +1059,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 268 + 266 @@ -1063,11 +1071,11 @@ apps/client/src/app/components/admin-users/admin-users.html - 60 + 56 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 278 + 276 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1087,7 +1095,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 284 + 282 apps/client/src/app/pages/public/public-page.html @@ -1107,7 +1115,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 296 + 294 @@ -1167,7 +1175,7 @@ Asset profile has been saved apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 594 + 618 @@ -1183,7 +1191,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 271 + 268 @@ -1227,7 +1235,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 120 + 119 @@ -1235,7 +1243,7 @@ Està segur qeu vol eliminar aquest cupó? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 196 + 222 @@ -1243,7 +1251,7 @@ Està segur que vol eliminar aquest missatge del sistema? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 209 + 235 @@ -1251,7 +1259,7 @@ Està segur que vol depurar el cache? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 233 + 259 @@ -1259,7 +1267,7 @@ Si us plau, afegeixi el seu missatge del sistema: apps/client/src/app/components/admin-overview/admin-overview.component.ts - 253 + 279 @@ -1267,31 +1275,15 @@ Versió apps/client/src/app/components/admin-overview/admin-overview.html - 7 - - - - User Count - Número d’Usuaris - - apps/client/src/app/components/admin-overview/admin-overview.html - 16 - - - - Activity Count - Número d’Activitats - - apps/client/src/app/components/admin-overview/admin-overview.html - 22 + 11 per User per Usuari - apps/client/src/app/components/admin-overview/admin-overview.html - 31 + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 166 @@ -1307,7 +1299,7 @@ Registrar Usuari apps/client/src/app/components/admin-overview/admin-overview.html - 37 + 50 @@ -1315,7 +1307,7 @@ Mode Només Lecutra apps/client/src/app/components/admin-overview/admin-overview.html - 51 + 64 @@ -1327,7 +1319,15 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 63 + 76 + + + + Find a holding... + Find a holding... + + libs/ui/src/lib/assistant/assistant.component.ts + 472 @@ -1335,7 +1335,7 @@ Missatge del Sistema apps/client/src/app/components/admin-overview/admin-overview.html - 75 + 88 @@ -1343,7 +1343,7 @@ Estableix el Missatge apps/client/src/app/components/admin-overview/admin-overview.html - 97 + 110 @@ -1351,7 +1351,7 @@ Coupons apps/client/src/app/components/admin-overview/admin-overview.html - 105 + 148 @@ -1359,7 +1359,7 @@ Afegir apps/client/src/app/components/admin-overview/admin-overview.html - 185 + 265 libs/ui/src/lib/account-balances/account-balances.component.html @@ -1371,7 +1371,7 @@ Ordre apps/client/src/app/components/admin-overview/admin-overview.html - 193 + 117 @@ -1379,7 +1379,7 @@ Depurar el Cache apps/client/src/app/components/admin-overview/admin-overview.html - 209 + 133 @@ -1427,7 +1427,7 @@ Current year apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 @@ -1531,7 +1531,7 @@ Implicació per Dia apps/client/src/app/components/admin-users/admin-users.html - 140 + 136 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1543,7 +1543,7 @@ Última Solicitut apps/client/src/app/components/admin-users/admin-users.html - 186 + 182 @@ -1551,7 +1551,7 @@ Actuar com un altre Usuari apps/client/src/app/components/admin-users/admin-users.html - 233 + 229 @@ -1559,7 +1559,7 @@ Eliminar Usuari apps/client/src/app/components/admin-users/admin-users.html - 254 + 250 @@ -1567,11 +1567,11 @@ Could not validate form apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 570 + 594 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 573 + 597 @@ -1603,7 +1603,7 @@ apps/client/src/app/components/header/header.component.html - 258 + 257 apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts @@ -1683,7 +1683,7 @@ Sobre Ghostfolio apps/client/src/app/components/header/header.component.html - 326 + 322 apps/client/src/app/pages/about/overview/about-overview-page.html @@ -1695,7 +1695,7 @@ Oooh! El testimoni de seguretat és incorrecte. apps/client/src/app/components/header/header.component.ts - 313 + 311 apps/client/src/app/components/user-account-access/user-account-access.component.ts @@ -1711,7 +1711,7 @@ Preu Mínim apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 130 + 129 @@ -1719,7 +1719,7 @@ Preu Màxim apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 147 + 145 @@ -1727,11 +1727,11 @@ Quantitat apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 157 + 155 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 185 + 183 libs/ui/src/lib/activities-table/activities-table.component.html @@ -1747,7 +1747,7 @@ Rendiment del Dividend apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 196 + 194 @@ -1755,7 +1755,7 @@ Comissions apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 208 + 206 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -1767,7 +1767,7 @@ Indonèsia libs/ui/src/lib/i18n.ts - 91 + 90 @@ -1775,7 +1775,7 @@ Activitat apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 229 + 227 @@ -1783,7 +1783,7 @@ Informar d’un Problema amb les Dades apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 456 + 452 @@ -1791,7 +1791,7 @@ en Actiiu apps/client/src/app/components/home-holdings/home-holdings.component.ts - 63 + 61 @@ -1799,7 +1799,7 @@ Finalitzat apps/client/src/app/components/home-holdings/home-holdings.component.ts - 64 + 62 @@ -1839,7 +1839,7 @@ libs/ui/src/lib/i18n.ts - 109 + 108 @@ -1855,7 +1855,7 @@ libs/ui/src/lib/i18n.ts - 110 + 109 @@ -1899,7 +1899,7 @@ Configura els teus comptes apps/client/src/app/components/home-overview/home-overview.html - 19 + 16 @@ -1907,7 +1907,7 @@ Obtingueu una visió financera completa afegint els vostres comptes bancaris i de corredoria. apps/client/src/app/components/home-overview/home-overview.html - 21 + 18 @@ -1915,7 +1915,7 @@ Captura les teves activitats apps/client/src/app/components/home-overview/home-overview.html - 28 + 25 @@ -1923,7 +1923,7 @@ Registra les teves activitats d’inversió per mantenir la teva cartera actualitzada. apps/client/src/app/components/home-overview/home-overview.html - 30 + 27 @@ -1931,7 +1931,7 @@ Superviseu i analitzeu la vostra cartera apps/client/src/app/components/home-overview/home-overview.html - 37 + 34 @@ -1939,7 +1939,7 @@ Segueix el teu progrés en temps real amb anàlisis i informació exhaustiva. apps/client/src/app/components/home-overview/home-overview.html - 39 + 36 @@ -1947,7 +1947,7 @@ Configurar comptes apps/client/src/app/components/home-overview/home-overview.html - 52 + 49 @@ -1955,7 +1955,7 @@ Current week apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 @@ -1963,7 +1963,7 @@ Afegeix activitat apps/client/src/app/components/home-overview/home-overview.html - 60 + 57 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html @@ -1975,7 +1975,15 @@ Import total apps/client/src/app/components/investment-chart/investment-chart.component.ts - 146 + 147 + + + + Code + Code + + apps/client/src/app/components/admin-overview/admin-overview.html + 159 @@ -1983,7 +1991,7 @@ Taxa d’estalvi apps/client/src/app/components/investment-chart/investment-chart.component.ts - 202 + 205 @@ -2023,7 +2031,7 @@ apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 32 + 34 apps/client/src/app/pages/landing/landing-page.html @@ -2063,7 +2071,7 @@ Inicieu la sessió amb Google apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 44 + 46 @@ -2071,7 +2079,7 @@ Manteniu la sessió iniciada apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 66 + 68 @@ -2087,7 +2095,7 @@ Les dades del mercat s’han retardat apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts - 95 + 94 @@ -2123,7 +2131,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 259 + 257 @@ -2135,7 +2143,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 278 + 276 @@ -2151,7 +2159,7 @@ Actius apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 233 + 232 @@ -2159,7 +2167,7 @@ Poder adquisitiu apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 248 + 247 @@ -2167,7 +2175,7 @@ Exclòs de l’anàlisi apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 274 + 273 @@ -2175,7 +2183,7 @@ Passius apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 302 + 301 apps/client/src/app/pages/features/features-page.html @@ -2187,7 +2195,7 @@ Valor net apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 324 + 323 @@ -2195,7 +2203,7 @@ Rendiment anualitzat apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 338 + 337 @@ -2203,7 +2211,7 @@ Definiu l’import del vostre fons d’emergència. apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 111 + 110 @@ -2355,7 +2363,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 362 + 373 @@ -2363,11 +2371,11 @@ YTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -2375,11 +2383,11 @@ 1 any apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -2387,11 +2395,11 @@ 5 anys apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -2399,7 +2407,7 @@ Performance with currency effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 135 + 134 @@ -2407,11 +2415,11 @@ Màx apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 217 + 221 libs/ui/src/lib/assistant/assistant.component.ts - 414 + 425 @@ -2427,7 +2435,7 @@ Argentina libs/ui/src/lib/i18n.ts - 79 + 78 @@ -2475,7 +2483,7 @@ Accés concedit apps/client/src/app/components/user-account-access/user-account-access.html - 57 + 59 @@ -2566,6 +2574,14 @@ 205 + + Jump to a page... + Jump to a page... + + libs/ui/src/lib/assistant/assistant.component.ts + 473 + + Do you really want to remove this sign in method? De debò vols eliminar aquest mètode d’inici de sessió? @@ -2755,7 +2771,7 @@ Tanca el compte apps/client/src/app/components/user-account-settings/user-account-settings.html - 316 + 318 @@ -2779,7 +2795,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 194 + 191 @@ -2799,7 +2815,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 192 + 189 @@ -2815,7 +2831,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 195 + 192 @@ -2839,7 +2855,7 @@ apps/client/src/app/components/header/header.component.html - 375 + 370 apps/client/src/app/pages/about/overview/about-overview-page.routes.ts @@ -2939,7 +2955,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 97 + 93 apps/client/src/app/components/header/header.component.html @@ -2947,11 +2963,11 @@ apps/client/src/app/components/header/header.component.html - 268 + 267 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 381 + 378 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -3035,7 +3051,7 @@ apps/client/src/app/components/header/header.component.html - 289 + 287 libs/common/src/lib/routes/routes.ts @@ -3055,7 +3071,7 @@ Dades de mercat apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 403 + 400 libs/common/src/lib/routes/routes.ts @@ -3081,6 +3097,10 @@ Users Usuaris + + apps/client/src/app/components/admin-overview/admin-overview.html + 24 + libs/common/src/lib/routes/routes.ts 61 @@ -3103,7 +3123,7 @@ apps/client/src/app/components/header/header.component.html - 248 + 247 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html @@ -3111,11 +3131,11 @@ apps/client/src/app/pages/admin/admin-page.component.ts - 45 + 41 apps/client/src/app/pages/resources/resources-page.component.ts - 29 + 27 libs/common/src/lib/routes/routes.ts @@ -3225,6 +3245,10 @@ apps/client/src/app/pages/blog/2025/11/black-weeks-2025/black-weeks-2025-page.html 147 + + apps/client/src/app/pages/blog/2026/04/ghostfolio-3/ghostfolio-3-page.html + 269 + apps/client/src/app/pages/blog/blog-page.html 5 @@ -3239,11 +3263,11 @@ Could not parse scraper configuration apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 525 + 545 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 528 + 548 @@ -3262,6 +3286,14 @@ 32 + + Duration + Duration + + apps/client/src/app/components/admin-overview/admin-overview.html + 172 + + Frequently Asked Questions (FAQ) Preguntes freqüents (FAQ) @@ -3287,7 +3319,7 @@ General apps/client/src/app/pages/faq/faq-page.component.ts - 41 + 35 @@ -3295,7 +3327,7 @@ Núvol apps/client/src/app/pages/faq/faq-page.component.ts - 46 + 40 libs/common/src/lib/routes/routes.ts @@ -3307,7 +3339,7 @@ Autoallotjament apps/client/src/app/pages/faq/faq-page.component.ts - 52 + 46 libs/common/src/lib/routes/routes.ts @@ -3436,7 +3468,7 @@ Comença apps/client/src/app/components/header/header.component.html - 433 + 432 apps/client/src/app/pages/features/features-page.html @@ -3468,7 +3500,7 @@ Explotacions apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 102 + 100 apps/client/src/app/components/home-holdings/home-holdings.html @@ -3516,7 +3548,7 @@ apps/client/src/app/components/header/header.component.html - 408 + 403 apps/client/src/app/components/home-market/home-market.html @@ -3532,7 +3564,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 39 + 37 libs/common/src/lib/routes/routes.ts @@ -4012,31 +4044,35 @@ Activitats apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 86 + 84 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 113 + 111 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html 226 - apps/client/src/app/components/admin-tag/admin-tag.component.html - 45 + apps/client/src/app/components/admin-overview/admin-overview.html + 38 + + + apps/client/src/app/components/admin-tag/admin-tag.component.html + 45 apps/client/src/app/components/admin-users/admin-users.html - 118 + 114 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 231 + 229 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 348 + 342 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -4120,7 +4156,7 @@ Actualitzar el saldo d’efectiu apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 108 + 109 @@ -4128,7 +4164,7 @@ Preu unitari apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 210 + 208 libs/ui/src/lib/activities-table/activities-table.component.html @@ -4140,7 +4176,7 @@ Activitats d’importació apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 92 + 93 libs/ui/src/lib/activities-table/activities-table.component.html @@ -4156,7 +4192,7 @@ Importar dividends apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 136 + 132 libs/ui/src/lib/activities-table/activities-table.component.html @@ -4172,7 +4208,7 @@ S’estan important dades... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 174 + 171 @@ -4180,7 +4216,7 @@ La importació s’ha completat apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 184 + 181 @@ -4196,7 +4232,7 @@ S’estan validant les dades... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 293 + 291 @@ -4380,7 +4416,7 @@ libs/ui/src/lib/i18n.ts - 17 + 16 @@ -4456,7 +4492,7 @@ Per ETF Holding apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 329 + 327 @@ -4464,7 +4500,7 @@ Aproximació basada en les participacions principals de cada ETF apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 336 + 334 @@ -4492,15 +4528,15 @@ Dividend apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 81 + 79 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 186 + 184 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 372 + 371 apps/client/src/app/pages/features/features-page.html @@ -4508,7 +4544,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 198 + 196 apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts @@ -4516,7 +4552,7 @@ libs/ui/src/lib/i18n.ts - 38 + 37 @@ -4524,7 +4560,7 @@ Inversió apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 171 + 169 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -4572,7 +4608,7 @@ Close Holding apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 447 + 442 @@ -4580,7 +4616,7 @@ Rendiment absolut dels actius apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 168 + 166 @@ -4588,7 +4624,7 @@ Rendiment de l’actiu apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 190 + 188 @@ -4596,7 +4632,7 @@ Rendiment absolut de la moneda apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 211 + 209 @@ -4604,7 +4640,7 @@ Rendiment de la moneda apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 236 + 234 @@ -4612,7 +4648,7 @@ A dalt apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 305 + 303 @@ -4620,7 +4656,7 @@ A baix apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 354 + 352 @@ -4628,7 +4664,7 @@ Evolució de la cartera apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 407 + 405 @@ -4636,7 +4672,7 @@ Cronologia de la inversió apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 436 + 434 @@ -4644,7 +4680,7 @@ Ratxa actual apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 457 + 455 @@ -4652,7 +4688,7 @@ Ratxa més llarga apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 466 + 464 @@ -4660,7 +4696,7 @@ Cronologia de dividends apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 495 + 493 @@ -4692,11 +4728,11 @@ apps/client/src/app/components/header/header.component.html - 313 + 309 apps/client/src/app/components/header/header.component.html - 389 + 384 apps/client/src/app/pages/pricing/pricing-page.routes.ts @@ -4868,11 +4904,11 @@ Could not save asset profile apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 604 + 628 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 607 + 631 @@ -4928,7 +4964,7 @@ Inscripció apps/client/src/app/components/admin-users/admin-users.html - 80 + 76 libs/common/src/lib/routes/routes.ts @@ -5021,7 +5057,7 @@ libs/ui/src/lib/i18n.ts - 100 + 99 @@ -5033,7 +5069,7 @@ libs/ui/src/lib/i18n.ts - 18 + 17 @@ -5281,7 +5317,7 @@ apps/client/src/app/components/header/header.component.html - 301 + 297 apps/client/src/app/pages/resources/overview/resources-overview.component.html @@ -5329,7 +5365,7 @@ El meu Ghostfolio apps/client/src/app/components/header/header.component.html - 277 + 276 apps/client/src/app/pages/user-account/user-account-page.routes.ts @@ -5445,7 +5481,7 @@ Setmana fins avui libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5453,11 +5489,11 @@ WTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5465,7 +5501,7 @@ Mes fins a la data libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5473,11 +5509,11 @@ MTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5485,7 +5521,7 @@ Any fins a la data libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -5493,7 +5529,7 @@ any apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 apps/client/src/app/pages/resources/personal-finance-tools/product-page.html @@ -5505,7 +5541,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -5513,11 +5549,11 @@ anys apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -5617,7 +5653,7 @@ Loan libs/ui/src/lib/i18n.ts - 59 + 58 @@ -5681,11 +5717,11 @@ Interès apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 69 + 67 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 359 + 358 libs/ui/src/lib/fire-calculator/fire-calculator.component.ts @@ -5693,7 +5729,7 @@ libs/ui/src/lib/i18n.ts - 40 + 39 @@ -5737,7 +5773,7 @@ Compte apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 85 + 86 libs/ui/src/lib/activities-table/activities-table.component.html @@ -5777,11 +5813,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 242 + 240 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 286 + 283 libs/ui/src/lib/i18n.ts @@ -5809,11 +5845,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 251 + 249 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 305 + 302 libs/ui/src/lib/i18n.ts @@ -5852,14 +5888,6 @@ 13 - - Switch to Ghostfolio Open Source or Ghostfolio Basic easily - Canvia fàcilment a Ghostfolio Open Source o Ghostfolio Basic - - libs/ui/src/lib/i18n.ts - 14 - - Emergency Fund Fons d’emergència @@ -5873,7 +5901,7 @@ libs/ui/src/lib/i18n.ts - 16 + 15 @@ -5881,7 +5909,7 @@ Subvenció libs/ui/src/lib/i18n.ts - 19 + 18 @@ -5889,7 +5917,7 @@ Risc Alt libs/ui/src/lib/i18n.ts - 20 + 19 @@ -5897,7 +5925,7 @@ Aquesta activitat ja existeix. libs/ui/src/lib/i18n.ts - 21 + 20 @@ -5905,7 +5933,7 @@ Japó libs/ui/src/lib/i18n.ts - 93 + 92 @@ -5913,7 +5941,7 @@ Risc Baix libs/ui/src/lib/i18n.ts - 22 + 21 @@ -5921,7 +5949,7 @@ Mes libs/ui/src/lib/i18n.ts - 23 + 22 @@ -5929,7 +5957,7 @@ Mesos libs/ui/src/lib/i18n.ts - 24 + 23 @@ -5937,7 +5965,7 @@ Altres libs/ui/src/lib/i18n.ts - 25 + 24 libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -5949,7 +5977,7 @@ Predefinit libs/ui/src/lib/i18n.ts - 27 + 26 @@ -5965,7 +5993,7 @@ Provisió de jubilació libs/ui/src/lib/i18n.ts - 28 + 27 @@ -5981,7 +6009,7 @@ Satèl·lit libs/ui/src/lib/i18n.ts - 29 + 28 @@ -6005,11 +6033,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 318 + 314 libs/ui/src/lib/i18n.ts - 30 + 29 @@ -6017,7 +6045,7 @@ Etiqueta libs/ui/src/lib/i18n.ts - 31 + 30 libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html @@ -6029,7 +6057,7 @@ Any libs/ui/src/lib/i18n.ts - 32 + 31 @@ -6037,7 +6065,7 @@ View Details apps/client/src/app/components/admin-users/admin-users.html - 225 + 221 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -6049,7 +6077,7 @@ Anys libs/ui/src/lib/i18n.ts - 33 + 32 @@ -6057,7 +6085,7 @@ Sign in with OpenID Connect apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 55 + 57 @@ -6069,7 +6097,7 @@ libs/ui/src/lib/i18n.ts - 37 + 36 @@ -6077,7 +6105,7 @@ Comissió apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 258 + 255 libs/ui/src/lib/activities-table/activities-table.component.html @@ -6085,7 +6113,7 @@ libs/ui/src/lib/i18n.ts - 39 + 38 @@ -6093,7 +6121,7 @@ Valuós libs/ui/src/lib/i18n.ts - 43 + 42 @@ -6101,7 +6129,7 @@ Passiu libs/ui/src/lib/i18n.ts - 41 + 40 @@ -6113,7 +6141,7 @@ libs/ui/src/lib/i18n.ts - 42 + 41 @@ -6121,11 +6149,11 @@ Efectiu apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 219 + 218 libs/ui/src/lib/i18n.ts - 55 + 54 @@ -6133,7 +6161,7 @@ Mercaderia libs/ui/src/lib/i18n.ts - 47 + 46 @@ -6141,11 +6169,11 @@ Patrimoni apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 57 + 55 libs/ui/src/lib/i18n.ts - 48 + 47 @@ -6153,7 +6181,7 @@ Ingressos Fixos libs/ui/src/lib/i18n.ts - 49 + 48 @@ -6161,7 +6189,7 @@ Liquiditat libs/ui/src/lib/i18n.ts - 50 + 49 @@ -6169,7 +6197,7 @@ Immobiliari libs/ui/src/lib/i18n.ts - 51 + 50 @@ -6185,7 +6213,7 @@ Bona libs/ui/src/lib/i18n.ts - 54 + 53 @@ -6193,7 +6221,7 @@ Criptomoneda libs/ui/src/lib/i18n.ts - 57 + 56 @@ -6201,7 +6229,7 @@ ETF libs/ui/src/lib/i18n.ts - 58 + 57 @@ -6209,7 +6237,7 @@ Fons d’inversió libs/ui/src/lib/i18n.ts - 60 + 59 @@ -6217,7 +6245,7 @@ Metall preciós libs/ui/src/lib/i18n.ts - 61 + 60 @@ -6225,7 +6253,7 @@ Capital privat libs/ui/src/lib/i18n.ts - 62 + 61 @@ -6233,7 +6261,7 @@ Acció libs/ui/src/lib/i18n.ts - 63 + 62 @@ -6241,7 +6269,7 @@ Àfrica libs/ui/src/lib/i18n.ts - 70 + 69 @@ -6249,7 +6277,7 @@ Àsia libs/ui/src/lib/i18n.ts - 71 + 70 @@ -6257,7 +6285,7 @@ Europa libs/ui/src/lib/i18n.ts - 72 + 71 @@ -6265,7 +6293,7 @@ Amèrica del Nord libs/ui/src/lib/i18n.ts - 73 + 72 @@ -6281,7 +6309,7 @@ Oceania libs/ui/src/lib/i18n.ts - 74 + 73 @@ -6289,7 +6317,7 @@ Amèrica del Sud libs/ui/src/lib/i18n.ts - 75 + 74 @@ -6297,7 +6325,7 @@ Por extrema libs/ui/src/lib/i18n.ts - 107 + 106 @@ -6305,7 +6333,7 @@ Avarícia extrema libs/ui/src/lib/i18n.ts - 108 + 107 @@ -6313,7 +6341,7 @@ Neutral libs/ui/src/lib/i18n.ts - 111 + 110 @@ -6361,7 +6389,7 @@ libs/ui/src/lib/top-holdings/top-holdings.component.html - 181 + 186 @@ -6369,7 +6397,7 @@ Mostra més libs/ui/src/lib/top-holdings/top-holdings.component.html - 174 + 179 @@ -6549,7 +6577,7 @@ Australia libs/ui/src/lib/i18n.ts - 80 + 79 @@ -6557,7 +6585,7 @@ Austria libs/ui/src/lib/i18n.ts - 81 + 80 @@ -6565,7 +6593,7 @@ Belgium libs/ui/src/lib/i18n.ts - 82 + 81 @@ -6573,7 +6601,7 @@ Bulgaria libs/ui/src/lib/i18n.ts - 84 + 83 @@ -6589,7 +6617,7 @@ Canada libs/ui/src/lib/i18n.ts - 85 + 84 @@ -6597,7 +6625,7 @@ Czech Republic libs/ui/src/lib/i18n.ts - 86 + 85 @@ -6605,7 +6633,7 @@ Finland libs/ui/src/lib/i18n.ts - 87 + 86 @@ -6613,7 +6641,7 @@ France libs/ui/src/lib/i18n.ts - 88 + 87 @@ -6621,7 +6649,7 @@ Germany libs/ui/src/lib/i18n.ts - 89 + 88 @@ -6629,7 +6657,7 @@ India libs/ui/src/lib/i18n.ts - 90 + 89 @@ -6637,7 +6665,7 @@ Italy libs/ui/src/lib/i18n.ts - 92 + 91 @@ -6645,7 +6673,7 @@ Netherlands libs/ui/src/lib/i18n.ts - 94 + 93 @@ -6653,7 +6681,7 @@ New Zealand libs/ui/src/lib/i18n.ts - 95 + 94 @@ -6661,7 +6689,7 @@ Poland libs/ui/src/lib/i18n.ts - 96 + 95 @@ -6669,7 +6697,7 @@ Romania libs/ui/src/lib/i18n.ts - 97 + 96 @@ -6677,7 +6705,7 @@ South Africa libs/ui/src/lib/i18n.ts - 99 + 98 @@ -6685,7 +6713,7 @@ Thailand libs/ui/src/lib/i18n.ts - 101 + 100 @@ -6693,7 +6721,7 @@ United States libs/ui/src/lib/i18n.ts - 104 + 103 @@ -6701,7 +6729,7 @@ Error apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 713 + 734 @@ -6741,7 +6769,7 @@ Inactive apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html - 88 + 85 @@ -6785,7 +6813,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 341 + 338 apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.html @@ -6825,7 +6853,7 @@ apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 130 + 124 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -6841,7 +6869,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 343 + 340 libs/ui/src/lib/i18n.ts @@ -6861,7 +6889,7 @@ Yes libs/ui/src/lib/i18n.ts - 34 + 33 @@ -6909,7 +6937,7 @@ Threshold Min apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 55 + 52 @@ -6917,7 +6945,7 @@ Threshold Max apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 93 + 87 @@ -6945,8 +6973,12 @@ - has been copied to the clipboard - has been copied to the clipboard + has been copied to the clipboard + has been copied to the clipboard + + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 378 + libs/ui/src/lib/value/value.component.ts 180 @@ -7125,7 +7157,7 @@ Get access to 80’000+ tickers from over 50 exchanges libs/ui/src/lib/i18n.ts - 26 + 25 @@ -7133,7 +7165,7 @@ Ukraine libs/ui/src/lib/i18n.ts - 102 + 101 @@ -7153,7 +7185,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 44 + 42 libs/common/src/lib/routes/routes.ts @@ -7169,7 +7201,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 33 + 31 libs/common/src/lib/routes/routes.ts @@ -7255,7 +7287,7 @@ Please enter your Ghostfolio API key: apps/client/src/app/pages/api/api-page.component.ts - 46 + 62 @@ -7263,7 +7295,7 @@ API Requests Today apps/client/src/app/components/admin-users/admin-users.html - 161 + 157 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -7359,11 +7391,11 @@ apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 109 + 108 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 136 + 130 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -7375,7 +7407,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 352 + 349 libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.html @@ -7399,7 +7431,7 @@ Received Access apps/client/src/app/components/user-account-access/user-account-access.html - 53 + 55 @@ -7423,7 +7455,7 @@ Change with currency effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 116 + 115 @@ -7447,7 +7479,7 @@ Lazy apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7455,7 +7487,7 @@ Instant apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7495,7 +7527,7 @@ end of day apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7503,7 +7535,7 @@ real-time apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7531,7 +7563,7 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 @@ -7543,7 +7575,7 @@ apps/client/src/app/components/home-overview/home-overview.component.ts - 54 + 52 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -7551,11 +7583,11 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 390 + 394 @@ -7587,7 +7619,7 @@ Total amount apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 95 + 94 @@ -7595,7 +7627,7 @@ Armenia libs/ui/src/lib/i18n.ts - 78 + 77 @@ -7603,7 +7635,7 @@ British Virgin Islands libs/ui/src/lib/i18n.ts - 83 + 82 @@ -7611,7 +7643,7 @@ Singapore libs/ui/src/lib/i18n.ts - 98 + 97 @@ -7674,20 +7706,12 @@ 240 - - Find account, holding or page... - Find account, holding or page... - - libs/ui/src/lib/assistant/assistant.component.ts - 115 - - Generate Security Token Generate Security Token apps/client/src/app/components/admin-users/admin-users.html - 243 + 239 @@ -7695,7 +7719,7 @@ United Kingdom libs/ui/src/lib/i18n.ts - 103 + 102 @@ -7744,7 +7768,7 @@ () is already in use. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 649 + 675 @@ -7752,7 +7776,7 @@ An error occurred while updating to (). apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 657 + 683 @@ -7816,7 +7840,7 @@ someone apps/client/src/app/pages/public/public-page.component.ts - 61 + 62 @@ -7848,7 +7872,7 @@ Do you really want to delete this item? libs/ui/src/lib/benchmark/benchmark.component.ts - 139 + 137 @@ -7856,7 +7880,7 @@ Log out apps/client/src/app/components/header/header.component.html - 329 + 325 @@ -7889,7 +7913,7 @@ Demo user account has been synced. apps/client/src/app/components/admin-overview/admin-overview.component.ts - 277 + 303 @@ -7897,7 +7921,7 @@ Sync Demo User Account apps/client/src/app/components/admin-overview/admin-overview.html - 204 + 128 @@ -8103,7 +8127,7 @@ Current month apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 @@ -8276,7 +8300,7 @@ Generate apps/client/src/app/components/user-account-access/user-account-access.html - 43 + 45 @@ -8316,7 +8340,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 39 + 35 @@ -8324,7 +8348,7 @@ Manage Asset Profile apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 471 + 467 @@ -8332,7 +8356,7 @@ Alternative Investment libs/ui/src/lib/i18n.ts - 46 + 45 @@ -8340,7 +8364,7 @@ Collectible libs/ui/src/lib/i18n.ts - 56 + 55 diff --git a/apps/client/src/locales/messages.de.xlf b/apps/client/src/locales/messages.de.xlf index e9d54a973..bfff88889 100644 --- a/apps/client/src/locales/messages.de.xlf +++ b/apps/client/src/locales/messages.de.xlf @@ -138,7 +138,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 135 + 134 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -182,15 +182,15 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 201 + 199 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 204 + 202 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 207 + 205 libs/ui/src/lib/account-balances/account-balances.component.html @@ -266,7 +266,7 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 140 + 213 apps/client/src/app/components/admin-platform/admin-platform.component.html @@ -302,7 +302,7 @@ Möchtest du dieses Konto wirklich löschen? libs/ui/src/lib/accounts-table/accounts-table.component.ts - 148 + 146 @@ -330,11 +330,11 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 151 + 150 libs/ui/src/lib/i18n.ts - 15 + 14 @@ -437,12 +437,20 @@ 2 + + Find an account... + Finde ein Konto... + + libs/ui/src/lib/assistant/assistant.component.ts + 471 + + Date Datum apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 157 + 156 libs/ui/src/lib/account-balances/account-balances.component.html @@ -486,21 +494,13 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 219 + 217 libs/ui/src/lib/holdings-table/holdings-table.component.html 45 - - Activity Count - Anzahl Aktivitäten - - apps/client/src/app/components/admin-overview/admin-overview.html - 22 - - Historical Data Historische Daten @@ -510,7 +510,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 40 + 42 @@ -518,7 +518,7 @@ Möchtest du diesen Gutscheincode wirklich löschen? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 196 + 222 @@ -526,7 +526,7 @@ Möchtest du den Cache wirklich leeren? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 233 + 259 @@ -534,23 +534,15 @@ Bitte gebe deine Systemmeldung ein: apps/client/src/app/components/admin-overview/admin-overview.component.ts - 253 - - - - User Count - Anzahl Benutzer - - apps/client/src/app/components/admin-overview/admin-overview.html - 16 + 279 per User pro Benutzer - apps/client/src/app/components/admin-overview/admin-overview.html - 31 + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 166 @@ -594,7 +586,7 @@ Systemmeldung apps/client/src/app/components/admin-overview/admin-overview.html - 75 + 88 @@ -602,7 +594,7 @@ Systemmeldung setzen apps/client/src/app/components/admin-overview/admin-overview.html - 97 + 110 @@ -610,7 +602,7 @@ Lese-Modus apps/client/src/app/components/admin-overview/admin-overview.html - 51 + 64 @@ -618,7 +610,7 @@ Gutscheincodes apps/client/src/app/components/admin-overview/admin-overview.html - 105 + 148 @@ -626,7 +618,7 @@ Hinzufügen apps/client/src/app/components/admin-overview/admin-overview.html - 185 + 265 libs/ui/src/lib/account-balances/account-balances.component.html @@ -638,7 +630,7 @@ Verwaltung apps/client/src/app/components/admin-overview/admin-overview.html - 193 + 117 @@ -646,7 +638,7 @@ Cache leeren apps/client/src/app/components/admin-overview/admin-overview.html - 209 + 133 @@ -686,7 +678,7 @@ Engagement pro Tag apps/client/src/app/components/admin-users/admin-users.html - 140 + 136 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -698,7 +690,7 @@ Letzte Abfrage apps/client/src/app/components/admin-users/admin-users.html - 186 + 182 @@ -714,7 +706,7 @@ Über Ghostfolio apps/client/src/app/components/header/header.component.html - 326 + 322 apps/client/src/app/pages/about/overview/about-overview-page.html @@ -726,7 +718,7 @@ Registrieren apps/client/src/app/components/header/header.component.html - 433 + 432 apps/client/src/app/pages/features/features-page.html @@ -758,15 +750,15 @@ Einloggen apps/client/src/app/components/header/header.component.html - 422 + 421 apps/client/src/app/components/header/header.component.ts - 298 + 296 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 79 + 81 libs/common/src/lib/routes/routes.ts @@ -782,7 +774,7 @@ Ups! Falsches Sicherheits-Token. apps/client/src/app/components/header/header.component.ts - 313 + 311 apps/client/src/app/components/user-account-access/user-account-access.component.ts @@ -850,7 +842,7 @@ apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 32 + 34 apps/client/src/app/pages/landing/landing-page.html @@ -890,7 +882,7 @@ Einloggen mit Google apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 44 + 46 @@ -898,7 +890,7 @@ Eingeloggt bleiben apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 66 + 68 @@ -926,7 +918,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 259 + 257 @@ -938,7 +930,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 278 + 276 @@ -954,7 +946,7 @@ Kaufkraft apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 248 + 247 @@ -962,7 +954,7 @@ Gesamtvermögen apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 324 + 323 @@ -970,7 +962,7 @@ Performance pro Jahr apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 338 + 337 @@ -978,7 +970,7 @@ Bitte setze den Betrag deines Notfallfonds. apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 111 + 110 @@ -994,7 +986,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 284 + 282 apps/client/src/app/pages/public/public-page.html @@ -1014,7 +1006,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 296 + 294 @@ -1038,7 +1030,7 @@ Datenfehler melden apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 456 + 452 @@ -1078,7 +1070,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 362 + 373 @@ -1086,11 +1078,11 @@ YTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -1098,11 +1090,11 @@ 1J apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -1110,11 +1102,11 @@ 5J apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -1122,7 +1114,7 @@ Performance mit Währungseffekt apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 135 + 134 @@ -1130,11 +1122,11 @@ Max apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 217 + 221 libs/ui/src/lib/assistant/assistant.component.ts - 414 + 425 @@ -1150,7 +1142,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 195 + 192 @@ -1166,7 +1158,7 @@ apps/client/src/app/components/header/header.component.html - 375 + 370 apps/client/src/app/pages/about/overview/about-overview-page.routes.ts @@ -1198,7 +1190,7 @@ Mein Ghostfolio apps/client/src/app/components/header/header.component.html - 277 + 276 apps/client/src/app/pages/user-account/user-account-page.routes.ts @@ -1358,7 +1350,7 @@ Gewährte Zugangsberechtigung apps/client/src/app/components/user-account-access/user-account-access.html - 57 + 59 @@ -1386,7 +1378,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 97 + 93 apps/client/src/app/components/header/header.component.html @@ -1394,11 +1386,11 @@ apps/client/src/app/components/header/header.component.html - 268 + 267 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 381 + 378 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1454,7 +1446,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 141 + 140 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -1470,7 +1462,7 @@ Cash-Bestand apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 45 + 43 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -1486,7 +1478,7 @@ Plattform apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 90 + 88 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -1514,7 +1506,7 @@ apps/client/src/app/components/header/header.component.html - 289 + 287 libs/common/src/lib/routes/routes.ts @@ -1620,6 +1612,10 @@ apps/client/src/app/pages/blog/2025/11/black-weeks-2025/black-weeks-2025-page.html 147 + + apps/client/src/app/pages/blog/2026/04/ghostfolio-3/ghostfolio-3-page.html + 269 + apps/client/src/app/pages/blog/blog-page.html 5 @@ -1637,6 +1633,14 @@ 32 + + Duration + Dauer + + apps/client/src/app/components/admin-overview/admin-overview.html + 172 + + Frequently Asked Questions (FAQ) Häufig gestellte Fragen (FAQ) @@ -1666,7 +1670,7 @@ apps/client/src/app/components/header/header.component.html - 361 + 356 apps/client/src/app/pages/features/features-page.html @@ -1694,7 +1698,7 @@ apps/client/src/app/components/header/header.component.html - 248 + 247 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html @@ -1702,11 +1706,11 @@ apps/client/src/app/pages/admin/admin-page.component.ts - 45 + 41 apps/client/src/app/pages/resources/resources-page.component.ts - 29 + 27 libs/common/src/lib/routes/routes.ts @@ -1730,7 +1734,7 @@ apps/client/src/app/components/header/header.component.html - 408 + 403 apps/client/src/app/components/home-market/home-market.html @@ -1746,7 +1750,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 39 + 37 libs/common/src/lib/routes/routes.ts @@ -1866,7 +1870,7 @@ Zeitstrahl der Investitionen apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 436 + 434 @@ -1874,7 +1878,7 @@ Gewinner apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 305 + 303 @@ -1882,7 +1886,7 @@ Verlierer apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 354 + 352 @@ -1906,7 +1910,7 @@ Positionen apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 102 + 100 apps/client/src/app/components/home-holdings/home-holdings.html @@ -1942,7 +1946,7 @@ Aktuelle Woche apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 @@ -1950,7 +1954,7 @@ Aktivität hinzufügen apps/client/src/app/components/home-overview/home-overview.html - 60 + 57 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html @@ -1966,7 +1970,7 @@ libs/ui/src/lib/i18n.ts - 42 + 41 @@ -1986,7 +1990,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 120 + 119 @@ -1994,11 +1998,11 @@ Anzahl apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 157 + 155 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 185 + 183 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2014,7 +2018,7 @@ Stückpreis apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 210 + 208 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2034,7 +2038,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 271 + 268 @@ -2042,31 +2046,35 @@ Aktivitäten apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 86 + 84 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 113 + 111 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html 226 + + apps/client/src/app/components/admin-overview/admin-overview.html + 38 + apps/client/src/app/components/admin-tag/admin-tag.component.html 45 apps/client/src/app/components/admin-users/admin-users.html - 118 + 114 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 231 + 229 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 348 + 342 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -2090,7 +2098,7 @@ Daten importieren... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 174 + 171 @@ -2098,7 +2106,7 @@ Der Import wurde abgeschlossen apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 184 + 181 @@ -2122,11 +2130,11 @@ apps/client/src/app/components/header/header.component.html - 313 + 309 apps/client/src/app/components/header/header.component.html - 389 + 384 apps/client/src/app/pages/pricing/pricing-page.routes.ts @@ -2154,7 +2162,7 @@ apps/client/src/app/components/header/header.component.html - 258 + 257 apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts @@ -2194,7 +2202,7 @@ Registrierung apps/client/src/app/components/admin-users/admin-users.html - 80 + 76 libs/common/src/lib/routes/routes.ts @@ -2234,7 +2242,7 @@ apps/client/src/app/components/header/header.component.html - 301 + 297 apps/client/src/app/pages/resources/overview/resources-overview.component.html @@ -2282,7 +2290,7 @@ Aktivitäten importieren apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 92 + 93 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2410,7 +2418,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 194 + 191 @@ -2422,7 +2430,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 192 + 189 @@ -2430,7 +2438,7 @@ Minimum Preis apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 130 + 129 @@ -2438,7 +2446,7 @@ Maximum Preis apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 147 + 145 @@ -2450,7 +2458,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 268 + 266 @@ -2462,11 +2470,11 @@ apps/client/src/app/components/admin-users/admin-users.html - 60 + 56 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 278 + 276 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -2482,7 +2490,7 @@ libs/ui/src/lib/i18n.ts - 17 + 16 @@ -2566,11 +2574,11 @@ Verzinsung apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 69 + 67 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 359 + 358 libs/ui/src/lib/fire-calculator/fire-calculator.component.ts @@ -2578,7 +2586,7 @@ libs/ui/src/lib/i18n.ts - 40 + 39 @@ -2618,7 +2626,7 @@ libs/ui/src/lib/i18n.ts - 109 + 108 @@ -2634,7 +2642,7 @@ libs/ui/src/lib/i18n.ts - 110 + 109 @@ -2642,7 +2650,7 @@ Filtern nach... apps/client/src/app/components/admin-market-data/admin-market-data.component.ts - 383 + 368 @@ -2678,11 +2686,11 @@ Das Formular konnte nicht validiert werden apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 570 + 594 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 573 + 597 @@ -2718,7 +2726,7 @@ Von der Analyse ausgenommen apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 274 + 273 @@ -2762,7 +2770,7 @@ Gesamtbetrag apps/client/src/app/components/investment-chart/investment-chart.component.ts - 146 + 147 @@ -2770,7 +2778,15 @@ Portfolio Wertentwicklung apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 407 + 405 + + + + Code + Code + + apps/client/src/app/components/admin-overview/admin-overview.html + 159 @@ -2778,7 +2794,7 @@ Sparrate apps/client/src/app/components/investment-chart/investment-chart.component.ts - 202 + 205 @@ -2786,7 +2802,7 @@ Konto apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 85 + 86 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2818,11 +2834,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 242 + 240 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 286 + 283 libs/ui/src/lib/i18n.ts @@ -2854,11 +2870,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 318 + 314 libs/ui/src/lib/i18n.ts - 30 + 29 @@ -2866,7 +2882,7 @@ Tag libs/ui/src/lib/i18n.ts - 31 + 30 libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html @@ -2878,11 +2894,11 @@ Bargeld apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 219 + 218 libs/ui/src/lib/i18n.ts - 55 + 54 @@ -2890,7 +2906,7 @@ Rohstoff libs/ui/src/lib/i18n.ts - 47 + 46 @@ -2898,11 +2914,11 @@ Beteiligungskapital apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 57 + 55 libs/ui/src/lib/i18n.ts - 48 + 47 @@ -2910,7 +2926,7 @@ Feste Einkünfte libs/ui/src/lib/i18n.ts - 49 + 48 @@ -2918,7 +2934,7 @@ Immobilien libs/ui/src/lib/i18n.ts - 51 + 50 @@ -2934,7 +2950,7 @@ Anleihe libs/ui/src/lib/i18n.ts - 54 + 53 @@ -2942,7 +2958,7 @@ Kryptowährung libs/ui/src/lib/i18n.ts - 57 + 56 @@ -2950,7 +2966,7 @@ ETF libs/ui/src/lib/i18n.ts - 58 + 57 @@ -2958,7 +2974,7 @@ Investmentfonds libs/ui/src/lib/i18n.ts - 60 + 59 @@ -2966,7 +2982,7 @@ Edelmetall libs/ui/src/lib/i18n.ts - 61 + 60 @@ -2974,7 +2990,7 @@ Privates Beteiligungskapital libs/ui/src/lib/i18n.ts - 62 + 61 @@ -2982,7 +2998,7 @@ Aktie libs/ui/src/lib/i18n.ts - 63 + 62 @@ -2998,7 +3014,7 @@ libs/ui/src/lib/i18n.ts - 16 + 15 @@ -3006,7 +3022,7 @@ Andere libs/ui/src/lib/i18n.ts - 25 + 24 libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -3038,7 +3054,7 @@ libs/ui/src/lib/top-holdings/top-holdings.component.html - 181 + 186 @@ -3046,7 +3062,7 @@ Nordamerika libs/ui/src/lib/i18n.ts - 73 + 72 @@ -3054,7 +3070,7 @@ Afrika libs/ui/src/lib/i18n.ts - 70 + 69 @@ -3062,7 +3078,7 @@ Asien libs/ui/src/lib/i18n.ts - 71 + 70 @@ -3070,7 +3086,7 @@ Europa libs/ui/src/lib/i18n.ts - 72 + 71 @@ -3086,7 +3102,7 @@ Ozeanien libs/ui/src/lib/i18n.ts - 74 + 73 @@ -3094,7 +3110,7 @@ Südamerika libs/ui/src/lib/i18n.ts - 75 + 74 @@ -3146,7 +3162,7 @@ Zeitstrahl der Dividenden apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 495 + 493 @@ -3162,15 +3178,15 @@ Dividenden apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 81 + 79 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 186 + 184 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 372 + 371 apps/client/src/app/pages/features/features-page.html @@ -3178,7 +3194,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 198 + 196 apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts @@ -3186,7 +3202,7 @@ libs/ui/src/lib/i18n.ts - 38 + 37 @@ -3206,11 +3222,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 251 + 249 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 305 + 302 libs/ui/src/lib/i18n.ts @@ -3222,7 +3238,7 @@ Benutzer Registrierung apps/client/src/app/components/admin-overview/admin-overview.html - 37 + 50 @@ -3230,7 +3246,7 @@ Daten validieren... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 293 + 291 @@ -3246,7 +3262,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 67 + 69 @@ -3254,7 +3270,7 @@ Marktdaten apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 403 + 400 libs/common/src/lib/routes/routes.ts @@ -3264,6 +3280,10 @@ Users Benutzer + + apps/client/src/app/components/admin-overview/admin-overview.html + 24 + libs/common/src/lib/routes/routes.ts 61 @@ -3314,7 +3334,7 @@ Dividenden importieren apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 136 + 132 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3350,7 +3370,7 @@ Zuwendung libs/ui/src/lib/i18n.ts - 19 + 18 @@ -3358,7 +3378,7 @@ Höheres Risiko libs/ui/src/lib/i18n.ts - 20 + 19 @@ -3366,7 +3386,7 @@ Geringeres Risiko libs/ui/src/lib/i18n.ts - 22 + 21 @@ -3382,7 +3402,7 @@ Altersvorsorge libs/ui/src/lib/i18n.ts - 28 + 27 @@ -3398,7 +3418,7 @@ Satellit libs/ui/src/lib/i18n.ts - 29 + 28 @@ -3650,11 +3670,11 @@ Das Anlageprofil konnte nicht gespeichert werden apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 604 + 628 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 607 + 631 @@ -3670,7 +3690,7 @@ Gebühren apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 208 + 206 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -3749,20 +3769,12 @@ 12 - - Switch to Ghostfolio Open Source or Ghostfolio Basic easily - Einfacher Wechsel zu Ghostfolio Open Source oder Ghostfolio Basic - - libs/ui/src/lib/i18n.ts - 14 - - Loan Darlehen libs/ui/src/lib/i18n.ts - 59 + 58 @@ -3838,7 +3850,7 @@ Benutzer verwenden apps/client/src/app/components/admin-users/admin-users.html - 233 + 229 @@ -3846,7 +3858,7 @@ Benutzer löschen apps/client/src/app/components/admin-users/admin-users.html - 254 + 250 @@ -3894,7 +3906,7 @@ Aktuelles Jahr apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 @@ -3930,7 +3942,7 @@ Das Anlageprofil wurde gespeichert apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 594 + 618 @@ -3954,7 +3966,7 @@ Cash-Bestand aktualisieren apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 108 + 109 @@ -4010,7 +4022,7 @@ Diese Aktivität existiert bereits. libs/ui/src/lib/i18n.ts - 21 + 20 @@ -4074,7 +4086,7 @@ Aktueller Streak apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 457 + 455 @@ -4082,7 +4094,7 @@ Längster Streak apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 466 + 464 @@ -4090,7 +4102,7 @@ Monate libs/ui/src/lib/i18n.ts - 24 + 23 @@ -4098,7 +4110,7 @@ Jahre libs/ui/src/lib/i18n.ts - 33 + 32 @@ -4106,7 +4118,7 @@ Monat libs/ui/src/lib/i18n.ts - 23 + 22 @@ -4114,7 +4126,7 @@ Jahr libs/ui/src/lib/i18n.ts - 32 + 31 @@ -4122,7 +4134,7 @@ Details anzeigen apps/client/src/app/components/admin-users/admin-users.html - 225 + 221 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -4134,7 +4146,7 @@ Verbindlichkeiten apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 302 + 301 apps/client/src/app/pages/features/features-page.html @@ -4274,7 +4286,7 @@ Verbindlichkeit libs/ui/src/lib/i18n.ts - 41 + 40 @@ -4506,7 +4518,7 @@ Einloggen mit OpenID Connect apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 55 + 57 @@ -4518,7 +4530,7 @@ libs/ui/src/lib/i18n.ts - 37 + 36 @@ -4526,7 +4538,7 @@ Wertsache libs/ui/src/lib/i18n.ts - 43 + 42 @@ -4550,7 +4562,7 @@ Anlagevermögen apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 233 + 232 @@ -4558,7 +4570,7 @@ Filtervorlage libs/ui/src/lib/i18n.ts - 27 + 26 @@ -4582,7 +4594,7 @@ Japan libs/ui/src/lib/i18n.ts - 93 + 92 @@ -4606,7 +4618,7 @@ Konten einrichten apps/client/src/app/components/home-overview/home-overview.html - 19 + 16 @@ -4614,7 +4626,7 @@ Verschaffe dir einen umfassenden Überblick, indem du deine Bank- und Wertpapierkonten hinzufügst. apps/client/src/app/components/home-overview/home-overview.html - 21 + 18 @@ -4622,7 +4634,7 @@ Aktivitäten erfassen apps/client/src/app/components/home-overview/home-overview.html - 28 + 25 @@ -4630,7 +4642,7 @@ Erfasse deine Investitionsaktivitäten, um dein Portfolio auf dem neuesten Stand zu halten. apps/client/src/app/components/home-overview/home-overview.html - 30 + 27 @@ -4638,7 +4650,7 @@ Portfolio überwachen und analysieren apps/client/src/app/components/home-overview/home-overview.html - 37 + 34 @@ -4646,7 +4658,7 @@ Verfolge die Entwicklung in Echtzeit mit umfassenden Analysen und Einblicken. apps/client/src/app/components/home-overview/home-overview.html - 39 + 36 @@ -4662,7 +4674,7 @@ Konten einrichten apps/client/src/app/components/home-overview/home-overview.html - 52 + 49 @@ -4830,11 +4842,11 @@ Die Scraper Konfiguration konnte nicht geparsed werden apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 525 + 545 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 528 + 548 @@ -5392,7 +5404,7 @@ libs/ui/src/lib/i18n.ts - 100 + 99 @@ -5404,7 +5416,7 @@ libs/ui/src/lib/i18n.ts - 18 + 17 @@ -5496,7 +5508,7 @@ Gebühr apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 258 + 255 libs/ui/src/lib/activities-table/activities-table.component.html @@ -5504,7 +5516,7 @@ libs/ui/src/lib/i18n.ts - 39 + 38 @@ -5564,7 +5576,7 @@ Version apps/client/src/app/components/admin-overview/admin-overview.html - 7 + 11 @@ -5728,7 +5740,7 @@ Extreme Angst libs/ui/src/lib/i18n.ts - 107 + 106 @@ -5736,7 +5748,7 @@ Extreme Gier libs/ui/src/lib/i18n.ts - 108 + 107 @@ -5744,7 +5756,7 @@ Neutral libs/ui/src/lib/i18n.ts - 111 + 110 @@ -5760,7 +5772,7 @@ Möchtest du diese Systemmeldung wirklich löschen? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 209 + 235 @@ -5784,7 +5796,7 @@ Cash-Bestände apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 146 + 142 @@ -5820,7 +5832,7 @@ Der aktuelle Marktpreis ist apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 722 + 743 @@ -5876,7 +5888,7 @@ Argentinien libs/ui/src/lib/i18n.ts - 79 + 78 @@ -5900,7 +5912,7 @@ Die Marktdaten sind verzögert für apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts - 95 + 94 @@ -5908,7 +5920,7 @@ Investition apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 171 + 169 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -5940,7 +5952,7 @@ Position abschliessen apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 447 + 442 @@ -5948,7 +5960,7 @@ Absolute Anlage Performance apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 168 + 166 @@ -5956,7 +5968,7 @@ Anlage Performance apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 190 + 188 @@ -5964,7 +5976,7 @@ Absolute Währungsperformance apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 211 + 209 @@ -5972,7 +5984,7 @@ Währungsperformance apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 236 + 234 @@ -5980,7 +5992,7 @@ Seit Wochenbeginn libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5988,11 +6000,11 @@ WTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -6000,7 +6012,7 @@ Seit Monatsbeginn libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -6008,11 +6020,11 @@ MTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -6020,7 +6032,7 @@ Seit Jahresbeginn libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -6056,7 +6068,7 @@ Jahr apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 apps/client/src/app/pages/resources/personal-finance-tools/product-page.html @@ -6068,7 +6080,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -6076,11 +6088,11 @@ Jahre apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -6100,7 +6112,15 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 63 + 76 + + + + Find a holding... + Finde eine Position... + + libs/ui/src/lib/assistant/assistant.component.ts + 472 @@ -6108,7 +6128,7 @@ Allgemein apps/client/src/app/pages/faq/faq-page.component.ts - 41 + 35 @@ -6116,7 +6136,7 @@ Cloud apps/client/src/app/pages/faq/faq-page.component.ts - 46 + 40 libs/common/src/lib/routes/routes.ts @@ -6128,7 +6148,7 @@ Self-Hosting apps/client/src/app/pages/faq/faq-page.component.ts - 52 + 46 libs/common/src/lib/routes/routes.ts @@ -6169,7 +6189,7 @@ Aktiv apps/client/src/app/components/home-holdings/home-holdings.component.ts - 63 + 61 @@ -6177,7 +6197,7 @@ Abgeschlossen apps/client/src/app/components/home-holdings/home-holdings.component.ts - 64 + 62 @@ -6185,7 +6205,7 @@ Indonesien libs/ui/src/lib/i18n.ts - 91 + 90 @@ -6193,7 +6213,7 @@ Aktivität apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 229 + 227 @@ -6201,7 +6221,7 @@ Dividendenrendite apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 196 + 194 @@ -6233,7 +6253,7 @@ Liquidität libs/ui/src/lib/i18n.ts - 50 + 49 @@ -6276,6 +6296,14 @@ 205 + + Jump to a page... + Springe zu einer Seite... + + libs/ui/src/lib/assistant/assistant.component.ts + 473 + + Danger Zone Gefahrenzone @@ -6289,7 +6317,7 @@ Konto schliessen apps/client/src/app/components/user-account-settings/user-account-settings.html - 316 + 318 @@ -6297,7 +6325,7 @@ Nach ETF Position apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 329 + 327 @@ -6305,7 +6333,7 @@ Annäherung auf Basis der grössten Positionen pro ETF apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 336 + 334 @@ -6337,7 +6365,7 @@ Mehr anzeigen libs/ui/src/lib/top-holdings/top-holdings.component.html - 174 + 179 @@ -6573,7 +6601,7 @@ Australien libs/ui/src/lib/i18n.ts - 80 + 79 @@ -6581,7 +6609,7 @@ Österreich libs/ui/src/lib/i18n.ts - 81 + 80 @@ -6589,7 +6617,7 @@ Belgien libs/ui/src/lib/i18n.ts - 82 + 81 @@ -6597,7 +6625,7 @@ Bulgarien libs/ui/src/lib/i18n.ts - 84 + 83 @@ -6613,7 +6641,7 @@ Kanada libs/ui/src/lib/i18n.ts - 85 + 84 @@ -6621,7 +6649,7 @@ Tschechien libs/ui/src/lib/i18n.ts - 86 + 85 @@ -6629,7 +6657,7 @@ Finnland libs/ui/src/lib/i18n.ts - 87 + 86 @@ -6637,7 +6665,7 @@ Frankreich libs/ui/src/lib/i18n.ts - 88 + 87 @@ -6645,7 +6673,7 @@ Deutschland libs/ui/src/lib/i18n.ts - 89 + 88 @@ -6653,7 +6681,7 @@ Indien libs/ui/src/lib/i18n.ts - 90 + 89 @@ -6661,7 +6689,7 @@ Italien libs/ui/src/lib/i18n.ts - 92 + 91 @@ -6669,7 +6697,7 @@ Niederlande libs/ui/src/lib/i18n.ts - 94 + 93 @@ -6677,7 +6705,7 @@ Neuseeland libs/ui/src/lib/i18n.ts - 95 + 94 @@ -6685,7 +6713,7 @@ Polen libs/ui/src/lib/i18n.ts - 96 + 95 @@ -6693,7 +6721,7 @@ Rumänien libs/ui/src/lib/i18n.ts - 97 + 96 @@ -6701,7 +6729,7 @@ Südafrika libs/ui/src/lib/i18n.ts - 99 + 98 @@ -6709,7 +6737,7 @@ Thailand libs/ui/src/lib/i18n.ts - 101 + 100 @@ -6717,7 +6745,7 @@ USA libs/ui/src/lib/i18n.ts - 104 + 103 @@ -6725,7 +6753,7 @@ Fehler apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 713 + 734 @@ -6765,7 +6793,7 @@ Inaktiv apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html - 88 + 85 @@ -6809,7 +6837,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 341 + 338 apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.html @@ -6849,7 +6877,7 @@ apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 130 + 124 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -6865,7 +6893,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 343 + 340 libs/ui/src/lib/i18n.ts @@ -6885,7 +6913,7 @@ Ja libs/ui/src/lib/i18n.ts - 34 + 33 @@ -6933,7 +6961,7 @@ Schwellenwert (Minimum) apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 55 + 52 @@ -6941,7 +6969,7 @@ Schwellenwert (Maximum) apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 93 + 87 @@ -6969,8 +6997,12 @@ - has been copied to the clipboard + has been copied to the clipboard wurde in die Zwischenablage kopiert + + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 378 + libs/ui/src/lib/value/value.component.ts 180 @@ -7149,7 +7181,7 @@ Erhalte Zugang zu 80’000+ Tickern von über 50 Handelsplätzen libs/ui/src/lib/i18n.ts - 26 + 25 @@ -7157,7 +7189,7 @@ Ukraine libs/ui/src/lib/i18n.ts - 102 + 101 @@ -7177,7 +7209,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 44 + 42 libs/common/src/lib/routes/routes.ts @@ -7193,7 +7225,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 33 + 31 libs/common/src/lib/routes/routes.ts @@ -7279,7 +7311,7 @@ Bitte gib den API-Schlüssel ein: apps/client/src/app/pages/api/api-page.component.ts - 46 + 62 @@ -7287,7 +7319,7 @@ Heutige API Anfragen apps/client/src/app/components/admin-users/admin-users.html - 161 + 157 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -7383,11 +7415,11 @@ apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 109 + 108 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 136 + 130 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -7399,7 +7431,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 352 + 349 libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.html @@ -7423,7 +7455,7 @@ Erhaltene Zugangsberechtigung apps/client/src/app/components/user-account-access/user-account-access.html - 53 + 55 @@ -7447,7 +7479,7 @@ Änderung mit Währungseffekt apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 116 + 115 @@ -7471,7 +7503,7 @@ Verzögert apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7479,7 +7511,7 @@ Sofort apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7519,7 +7551,7 @@ Tagesende apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7527,7 +7559,7 @@ in Echtzeit apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7555,7 +7587,7 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 @@ -7567,7 +7599,7 @@ apps/client/src/app/components/home-overview/home-overview.component.ts - 54 + 52 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -7575,11 +7607,11 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 390 + 394 @@ -7611,7 +7643,7 @@ Gesamtbetrag apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 95 + 94 @@ -7619,7 +7651,7 @@ Armenien libs/ui/src/lib/i18n.ts - 78 + 77 @@ -7627,7 +7659,7 @@ Britische Jungferninseln libs/ui/src/lib/i18n.ts - 83 + 82 @@ -7635,7 +7667,7 @@ Singapur libs/ui/src/lib/i18n.ts - 98 + 97 @@ -7698,20 +7730,12 @@ 240 - - Find account, holding or page... - Konto, Position oder Seite finden... - - libs/ui/src/lib/assistant/assistant.component.ts - 115 - - Generate Security Token Sicherheits-Token generieren apps/client/src/app/components/admin-users/admin-users.html - 243 + 239 @@ -7719,7 +7743,7 @@ Vereinigtes Königreich libs/ui/src/lib/i18n.ts - 103 + 102 @@ -7768,7 +7792,7 @@ () wird bereits verwendet. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 649 + 675 @@ -7776,7 +7800,7 @@ Bei der Änderung zu () ist ein Fehler aufgetreten. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 657 + 683 @@ -7816,7 +7840,7 @@ jemand apps/client/src/app/pages/public/public-page.component.ts - 61 + 62 @@ -7848,7 +7872,7 @@ Möchtest du diesen Eintrag wirklich löschen? libs/ui/src/lib/benchmark/benchmark.component.ts - 139 + 137 @@ -7856,7 +7880,7 @@ Ausloggen apps/client/src/app/components/header/header.component.html - 329 + 325 @@ -7889,7 +7913,7 @@ Demo Benutzerkonto wurde synchronisiert. apps/client/src/app/components/admin-overview/admin-overview.component.ts - 277 + 303 @@ -7897,7 +7921,7 @@ Synchronisiere Demo Benutzerkonto apps/client/src/app/components/admin-overview/admin-overview.html - 204 + 128 @@ -8103,7 +8127,7 @@ Aktueller Monat apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 @@ -8276,7 +8300,7 @@ Generieren apps/client/src/app/components/user-account-access/user-account-access.html - 43 + 45 @@ -8316,7 +8340,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 39 + 35 @@ -8324,7 +8348,7 @@ Anlageprofil verwalten apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 471 + 467 @@ -8332,7 +8356,7 @@ Alternative Investition libs/ui/src/lib/i18n.ts - 46 + 45 @@ -8340,7 +8364,7 @@ Sammlerobjekt libs/ui/src/lib/i18n.ts - 56 + 55 diff --git a/apps/client/src/locales/messages.es.xlf b/apps/client/src/locales/messages.es.xlf index 1df016d5b..c99924de8 100644 --- a/apps/client/src/locales/messages.es.xlf +++ b/apps/client/src/locales/messages.es.xlf @@ -139,7 +139,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 135 + 134 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -183,15 +183,15 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 201 + 199 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 204 + 202 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 207 + 205 libs/ui/src/lib/account-balances/account-balances.component.html @@ -267,7 +267,7 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 140 + 213 apps/client/src/app/components/admin-platform/admin-platform.component.html @@ -303,7 +303,7 @@ ¿Seguro que quieres eliminar esta cuenta? libs/ui/src/lib/accounts-table/accounts-table.component.ts - 148 + 146 @@ -331,11 +331,11 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 151 + 150 libs/ui/src/lib/i18n.ts - 15 + 14 @@ -438,12 +438,20 @@ 2 + + Find an account... + Buscar una cuenta... + + libs/ui/src/lib/assistant/assistant.component.ts + 471 + + Date Fecha apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 157 + 156 libs/ui/src/lib/account-balances/account-balances.component.html @@ -487,21 +495,13 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 219 + 217 libs/ui/src/lib/holdings-table/holdings-table.component.html 45 - - Activity Count - Número de operaciones - - apps/client/src/app/components/admin-overview/admin-overview.html - 22 - - Historical Data Datos históricos @@ -511,7 +511,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 40 + 42 @@ -519,7 +519,7 @@ ¿Seguro que quieres eliminar este cupón? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 196 + 222 @@ -527,7 +527,7 @@ ¿Seguro que quieres limpiar la caché? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 233 + 259 @@ -535,23 +535,15 @@ Por favor, establece tu mensaje del sistema: apps/client/src/app/components/admin-overview/admin-overview.component.ts - 253 - - - - User Count - Número de usuarios - - apps/client/src/app/components/admin-overview/admin-overview.html - 16 + 279 per User por usuario - apps/client/src/app/components/admin-overview/admin-overview.html - 31 + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 166 @@ -579,7 +571,7 @@ Mensaje del sistema apps/client/src/app/components/admin-overview/admin-overview.html - 75 + 88 @@ -587,7 +579,7 @@ Establecer mensaje apps/client/src/app/components/admin-overview/admin-overview.html - 97 + 110 @@ -595,7 +587,7 @@ Modo de solo lectura apps/client/src/app/components/admin-overview/admin-overview.html - 51 + 64 @@ -603,7 +595,7 @@ Cupones apps/client/src/app/components/admin-overview/admin-overview.html - 105 + 148 @@ -611,7 +603,7 @@ Añadir apps/client/src/app/components/admin-overview/admin-overview.html - 185 + 265 libs/ui/src/lib/account-balances/account-balances.component.html @@ -623,7 +615,7 @@ Limpieza del sistema apps/client/src/app/components/admin-overview/admin-overview.html - 193 + 117 @@ -631,7 +623,7 @@ Limpiar caché apps/client/src/app/components/admin-overview/admin-overview.html - 209 + 133 @@ -671,7 +663,7 @@ Interacción diaria apps/client/src/app/components/admin-users/admin-users.html - 140 + 136 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -683,7 +675,7 @@ Última petición apps/client/src/app/components/admin-users/admin-users.html - 186 + 182 @@ -699,7 +691,7 @@ Sobre Ghostfolio apps/client/src/app/components/header/header.component.html - 326 + 322 apps/client/src/app/pages/about/overview/about-overview-page.html @@ -711,7 +703,7 @@ Empezar apps/client/src/app/components/header/header.component.html - 433 + 432 apps/client/src/app/pages/features/features-page.html @@ -743,15 +735,15 @@ Iniciar sesión apps/client/src/app/components/header/header.component.html - 422 + 421 apps/client/src/app/components/header/header.component.ts - 298 + 296 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 79 + 81 libs/common/src/lib/routes/routes.ts @@ -767,7 +759,7 @@ ¡Vaya! Token de seguridad incorrecto. apps/client/src/app/components/header/header.component.ts - 313 + 311 apps/client/src/app/components/user-account-access/user-account-access.component.ts @@ -835,7 +827,7 @@ apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 32 + 34 apps/client/src/app/pages/landing/landing-page.html @@ -875,7 +867,7 @@ Iniciar sesión con Google apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 44 + 46 @@ -883,7 +875,7 @@ Seguir conectado apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 66 + 68 @@ -911,7 +903,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 259 + 257 @@ -923,7 +915,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 278 + 276 @@ -939,7 +931,7 @@ Poder adquisitivo apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 248 + 247 @@ -947,7 +939,7 @@ Patrimonio neto apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 324 + 323 @@ -955,7 +947,7 @@ Rendimiento anualizado apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 338 + 337 @@ -963,7 +955,7 @@ Por favor, ingresa la cantidad de tu fondo de emergencia. apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 111 + 110 @@ -979,7 +971,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 284 + 282 apps/client/src/app/pages/public/public-page.html @@ -999,7 +991,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 296 + 294 @@ -1023,7 +1015,7 @@ Reportar anomalía en los datos apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 456 + 452 @@ -1063,7 +1055,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 362 + 373 @@ -1071,11 +1063,11 @@ YTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -1083,11 +1075,11 @@ 1 año apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -1095,11 +1087,11 @@ 5 años apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -1107,7 +1099,7 @@ Rendimiento con el efecto de la divisa apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 135 + 134 @@ -1115,11 +1107,11 @@ Máximo apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 217 + 221 libs/ui/src/lib/assistant/assistant.component.ts - 414 + 425 @@ -1135,7 +1127,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 195 + 192 @@ -1151,7 +1143,7 @@ apps/client/src/app/components/header/header.component.html - 375 + 370 apps/client/src/app/pages/about/overview/about-overview-page.routes.ts @@ -1183,7 +1175,7 @@ Mi Ghostfolio apps/client/src/app/components/header/header.component.html - 277 + 276 apps/client/src/app/pages/user-account/user-account-page.routes.ts @@ -1343,7 +1335,7 @@ Acceso concedido apps/client/src/app/components/user-account-access/user-account-access.html - 57 + 59 @@ -1371,7 +1363,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 97 + 93 apps/client/src/app/components/header/header.component.html @@ -1379,11 +1371,11 @@ apps/client/src/app/components/header/header.component.html - 268 + 267 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 381 + 378 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1439,7 +1431,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 141 + 140 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -1455,7 +1447,7 @@ Saldo en efectivo apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 45 + 43 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -1471,7 +1463,7 @@ Plataforma apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 90 + 88 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -1499,7 +1491,7 @@ apps/client/src/app/components/header/header.component.html - 289 + 287 libs/common/src/lib/routes/routes.ts @@ -1605,6 +1597,10 @@ apps/client/src/app/pages/blog/2025/11/black-weeks-2025/black-weeks-2025-page.html 147 + + apps/client/src/app/pages/blog/2026/04/ghostfolio-3/ghostfolio-3-page.html + 269 + apps/client/src/app/pages/blog/blog-page.html 5 @@ -1622,6 +1618,14 @@ 32 + + Duration + Duración + + apps/client/src/app/components/admin-overview/admin-overview.html + 172 + + Frequently Asked Questions (FAQ) Preguntas frecuentes (FAQ) @@ -1651,7 +1655,7 @@ apps/client/src/app/components/header/header.component.html - 361 + 356 apps/client/src/app/pages/features/features-page.html @@ -1679,7 +1683,7 @@ apps/client/src/app/components/header/header.component.html - 248 + 247 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html @@ -1687,11 +1691,11 @@ apps/client/src/app/pages/admin/admin-page.component.ts - 45 + 41 apps/client/src/app/pages/resources/resources-page.component.ts - 29 + 27 libs/common/src/lib/routes/routes.ts @@ -1715,7 +1719,7 @@ apps/client/src/app/components/header/header.component.html - 408 + 403 apps/client/src/app/components/home-market/home-market.html @@ -1731,7 +1735,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 39 + 37 libs/common/src/lib/routes/routes.ts @@ -1851,7 +1855,7 @@ Cronología de la inversión apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 436 + 434 @@ -1859,7 +1863,7 @@ Mejores apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 305 + 303 @@ -1867,7 +1871,7 @@ Peores apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 354 + 352 @@ -1891,7 +1895,7 @@ Posiciones apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 102 + 100 apps/client/src/app/components/home-holdings/home-holdings.html @@ -1927,7 +1931,7 @@ Semana actual apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 @@ -1935,7 +1939,7 @@ Añadir operación apps/client/src/app/components/home-overview/home-overview.html - 60 + 57 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html @@ -1951,7 +1955,7 @@ libs/ui/src/lib/i18n.ts - 42 + 41 @@ -1971,7 +1975,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 120 + 119 @@ -1979,11 +1983,11 @@ Cantidad apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 157 + 155 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 185 + 183 libs/ui/src/lib/activities-table/activities-table.component.html @@ -1999,7 +2003,7 @@ Precio unitario apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 210 + 208 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2019,7 +2023,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 271 + 268 @@ -2027,31 +2031,35 @@ Operaciones apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 86 + 84 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 113 + 111 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html 226 + + apps/client/src/app/components/admin-overview/admin-overview.html + 38 + apps/client/src/app/components/admin-tag/admin-tag.component.html 45 apps/client/src/app/components/admin-users/admin-users.html - 118 + 114 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 231 + 229 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 348 + 342 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -2075,7 +2083,7 @@ Importando datos... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 174 + 171 @@ -2083,7 +2091,7 @@ La importación se ha completado apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 184 + 181 @@ -2107,11 +2115,11 @@ apps/client/src/app/components/header/header.component.html - 313 + 309 apps/client/src/app/components/header/header.component.html - 389 + 384 apps/client/src/app/pages/pricing/pricing-page.routes.ts @@ -2139,7 +2147,7 @@ apps/client/src/app/components/header/header.component.html - 258 + 257 apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts @@ -2179,7 +2187,7 @@ Registro apps/client/src/app/components/admin-users/admin-users.html - 80 + 76 libs/common/src/lib/routes/routes.ts @@ -2219,7 +2227,7 @@ apps/client/src/app/components/header/header.component.html - 301 + 297 apps/client/src/app/pages/resources/overview/resources-overview.component.html @@ -2267,7 +2275,7 @@ Importar operaciones apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 92 + 93 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2391,7 +2399,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 192 + 189 @@ -2407,7 +2415,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 194 + 191 @@ -2419,7 +2427,7 @@ libs/ui/src/lib/i18n.ts - 17 + 16 @@ -2447,7 +2455,7 @@ Precio máximo apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 147 + 145 @@ -2483,7 +2491,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 268 + 266 @@ -2495,11 +2503,11 @@ apps/client/src/app/components/admin-users/admin-users.html - 60 + 56 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 278 + 276 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -2511,7 +2519,7 @@ Precio mínimo apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 130 + 129 @@ -2535,11 +2543,11 @@ Interés apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 69 + 67 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 359 + 358 libs/ui/src/lib/fire-calculator/fire-calculator.component.ts @@ -2547,7 +2555,7 @@ libs/ui/src/lib/i18n.ts - 40 + 39 @@ -2603,7 +2611,7 @@ libs/ui/src/lib/i18n.ts - 109 + 108 @@ -2619,7 +2627,7 @@ libs/ui/src/lib/i18n.ts - 110 + 109 @@ -2627,7 +2635,7 @@ Filtrar por... apps/client/src/app/components/admin-market-data/admin-market-data.component.ts - 383 + 368 @@ -2675,11 +2683,11 @@ No se pudo validar el formulario apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 570 + 594 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 573 + 597 @@ -2703,7 +2711,7 @@ Excluido del análisis apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 274 + 273 @@ -2747,7 +2755,7 @@ Importe total apps/client/src/app/components/investment-chart/investment-chart.component.ts - 146 + 147 @@ -2755,7 +2763,15 @@ Evolución de la cartera apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 407 + 405 + + + + Code + Código + + apps/client/src/app/components/admin-overview/admin-overview.html + 159 @@ -2763,7 +2779,7 @@ Tasa de ahorro apps/client/src/app/components/investment-chart/investment-chart.component.ts - 202 + 205 @@ -2771,7 +2787,7 @@ Cuenta apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 85 + 86 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2803,11 +2819,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 242 + 240 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 286 + 283 libs/ui/src/lib/i18n.ts @@ -2839,11 +2855,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 318 + 314 libs/ui/src/lib/i18n.ts - 30 + 29 @@ -2851,7 +2867,7 @@ Etiqueta libs/ui/src/lib/i18n.ts - 31 + 30 libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html @@ -2863,11 +2879,11 @@ Efectivo apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 219 + 218 libs/ui/src/lib/i18n.ts - 55 + 54 @@ -2875,7 +2891,7 @@ Materia prima libs/ui/src/lib/i18n.ts - 47 + 46 @@ -2883,11 +2899,11 @@ Renta variable apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 57 + 55 libs/ui/src/lib/i18n.ts - 48 + 47 @@ -2895,7 +2911,7 @@ Renta fija libs/ui/src/lib/i18n.ts - 49 + 48 @@ -2903,7 +2919,7 @@ Propiedad inmobiliaria libs/ui/src/lib/i18n.ts - 51 + 50 @@ -2919,7 +2935,7 @@ Bono libs/ui/src/lib/i18n.ts - 54 + 53 @@ -2927,7 +2943,7 @@ Criptomoneda libs/ui/src/lib/i18n.ts - 57 + 56 @@ -2935,7 +2951,7 @@ ETF libs/ui/src/lib/i18n.ts - 58 + 57 @@ -2943,7 +2959,7 @@ Fondo de inversión libs/ui/src/lib/i18n.ts - 60 + 59 @@ -2951,7 +2967,7 @@ Metal precioso libs/ui/src/lib/i18n.ts - 61 + 60 @@ -2959,7 +2975,7 @@ Capital riesgo libs/ui/src/lib/i18n.ts - 62 + 61 @@ -2967,7 +2983,7 @@ Acción libs/ui/src/lib/i18n.ts - 63 + 62 @@ -2983,7 +2999,7 @@ libs/ui/src/lib/i18n.ts - 16 + 15 @@ -2991,7 +3007,7 @@ Otros libs/ui/src/lib/i18n.ts - 25 + 24 libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -3023,7 +3039,7 @@ libs/ui/src/lib/top-holdings/top-holdings.component.html - 181 + 186 @@ -3031,7 +3047,7 @@ América del Norte libs/ui/src/lib/i18n.ts - 73 + 72 @@ -3039,7 +3055,7 @@ África libs/ui/src/lib/i18n.ts - 70 + 69 @@ -3047,7 +3063,7 @@ Asia libs/ui/src/lib/i18n.ts - 71 + 70 @@ -3055,7 +3071,7 @@ Europa libs/ui/src/lib/i18n.ts - 72 + 71 @@ -3071,7 +3087,7 @@ Oceanía libs/ui/src/lib/i18n.ts - 74 + 73 @@ -3079,7 +3095,7 @@ América del Sur libs/ui/src/lib/i18n.ts - 75 + 74 @@ -3139,15 +3155,15 @@ Dividendo apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 81 + 79 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 186 + 184 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 372 + 371 apps/client/src/app/pages/features/features-page.html @@ -3155,7 +3171,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 198 + 196 apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts @@ -3163,7 +3179,7 @@ libs/ui/src/lib/i18n.ts - 38 + 37 @@ -3171,7 +3187,7 @@ Calendario de dividendos apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 495 + 493 @@ -3191,11 +3207,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 251 + 249 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 305 + 302 libs/ui/src/lib/i18n.ts @@ -3207,7 +3223,7 @@ Registro de usuario apps/client/src/app/components/admin-overview/admin-overview.html - 37 + 50 @@ -3215,7 +3231,7 @@ Validando datos... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 293 + 291 @@ -3231,7 +3247,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 67 + 69 @@ -3239,7 +3255,7 @@ Datos del mercado apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 403 + 400 libs/common/src/lib/routes/routes.ts @@ -3249,6 +3265,10 @@ Users Usuarios + + apps/client/src/app/components/admin-overview/admin-overview.html + 24 + libs/common/src/lib/routes/routes.ts 61 @@ -3299,7 +3319,7 @@ Importar dividendos apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 136 + 132 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3335,7 +3355,7 @@ Conceder libs/ui/src/lib/i18n.ts - 19 + 18 @@ -3343,7 +3363,7 @@ Mayor riesgo libs/ui/src/lib/i18n.ts - 20 + 19 @@ -3351,7 +3371,7 @@ Menor riesgo libs/ui/src/lib/i18n.ts - 22 + 21 @@ -3367,7 +3387,7 @@ Provisión de jubilación libs/ui/src/lib/i18n.ts - 28 + 27 @@ -3383,7 +3403,7 @@ Satélite libs/ui/src/lib/i18n.ts - 29 + 28 @@ -3635,11 +3655,11 @@ No se pudo guardar el perfil del activo apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 604 + 628 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 607 + 631 @@ -3655,7 +3675,7 @@ Comisiones apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 208 + 206 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -3734,20 +3754,12 @@ 12 - - Switch to Ghostfolio Open Source or Ghostfolio Basic easily - Cambia a Ghostfolio Open Source o Ghostfolio Basic fácilmente - - libs/ui/src/lib/i18n.ts - 14 - - Loan - Loan + Préstamo libs/ui/src/lib/i18n.ts - 59 + 58 @@ -3815,7 +3827,7 @@ Suplantar usuario apps/client/src/app/components/admin-users/admin-users.html - 233 + 229 @@ -3823,7 +3835,7 @@ Eliminar usuario apps/client/src/app/components/admin-users/admin-users.html - 254 + 250 @@ -3871,7 +3883,7 @@ Año actual apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 @@ -3907,7 +3919,7 @@ Perfil del activo guardado apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 594 + 618 @@ -3931,7 +3943,7 @@ Actualizar saldo en efectivo apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 108 + 109 @@ -3987,7 +3999,7 @@ Esta operación ya existe. libs/ui/src/lib/i18n.ts - 21 + 20 @@ -4051,7 +4063,7 @@ Racha actual apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 457 + 455 @@ -4059,7 +4071,7 @@ Racha más larga apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 466 + 464 @@ -4067,7 +4079,7 @@ Meses libs/ui/src/lib/i18n.ts - 24 + 23 @@ -4075,7 +4087,7 @@ Años libs/ui/src/lib/i18n.ts - 33 + 32 @@ -4083,7 +4095,7 @@ Mes libs/ui/src/lib/i18n.ts - 23 + 22 @@ -4091,7 +4103,7 @@ Año libs/ui/src/lib/i18n.ts - 32 + 31 @@ -4099,7 +4111,7 @@ Ver detalles apps/client/src/app/components/admin-users/admin-users.html - 225 + 221 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -4111,7 +4123,7 @@ Pasivos apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 302 + 301 apps/client/src/app/pages/features/features-page.html @@ -4251,7 +4263,7 @@ Pasivo libs/ui/src/lib/i18n.ts - 41 + 40 @@ -4483,7 +4495,7 @@ Iniciar sesión con OpenID Connect apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 55 + 57 @@ -4495,7 +4507,7 @@ libs/ui/src/lib/i18n.ts - 37 + 36 @@ -4503,7 +4515,7 @@ Activo de valor libs/ui/src/lib/i18n.ts - 43 + 42 @@ -4527,7 +4539,7 @@ Activos apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 233 + 232 @@ -4535,7 +4547,7 @@ Preestablecido libs/ui/src/lib/i18n.ts - 27 + 26 @@ -4559,7 +4571,7 @@ Japón libs/ui/src/lib/i18n.ts - 93 + 92 @@ -4583,7 +4595,7 @@ Configura tus cuentas apps/client/src/app/components/home-overview/home-overview.html - 19 + 16 @@ -4591,7 +4603,7 @@ Obtén una visión financiera completa agregando tus cuentas bancarias y de corretaje. apps/client/src/app/components/home-overview/home-overview.html - 21 + 18 @@ -4599,7 +4611,7 @@ Captura tus operaciones apps/client/src/app/components/home-overview/home-overview.html - 28 + 25 @@ -4607,7 +4619,7 @@ Registra tus operaciones de inversión para mantener tu cartera actualizada. apps/client/src/app/components/home-overview/home-overview.html - 30 + 27 @@ -4615,7 +4627,7 @@ Monitorea y analiza tu cartera apps/client/src/app/components/home-overview/home-overview.html - 37 + 34 @@ -4623,7 +4635,7 @@ Sigue tu progreso en tiempo real con análisis e información detallada. apps/client/src/app/components/home-overview/home-overview.html - 39 + 36 @@ -4639,7 +4651,7 @@ Configura tus cuentas apps/client/src/app/components/home-overview/home-overview.html - 52 + 49 @@ -4807,11 +4819,11 @@ No se pudo analizar la configuración del scraper apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 525 + 545 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 528 + 548 @@ -5000,7 +5012,7 @@ saying no to spreadsheets in - diciendo no a las hojas de cálculo en + en contra de las las hojas de cálculo en apps/client/src/app/pages/landing/landing-page.html 209 @@ -5369,7 +5381,7 @@ libs/ui/src/lib/i18n.ts - 100 + 99 @@ -5381,7 +5393,7 @@ libs/ui/src/lib/i18n.ts - 18 + 17 @@ -5473,7 +5485,7 @@ Comisión apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 258 + 255 libs/ui/src/lib/activities-table/activities-table.component.html @@ -5481,7 +5493,7 @@ libs/ui/src/lib/i18n.ts - 39 + 38 @@ -5541,7 +5553,7 @@ Versión apps/client/src/app/components/admin-overview/admin-overview.html - 7 + 11 @@ -5705,7 +5717,7 @@ Miedo extremo libs/ui/src/lib/i18n.ts - 107 + 106 @@ -5713,7 +5725,7 @@ Codicia extrema libs/ui/src/lib/i18n.ts - 108 + 107 @@ -5721,7 +5733,7 @@ Neutral libs/ui/src/lib/i18n.ts - 111 + 110 @@ -5737,7 +5749,7 @@ ¿Seguro que quieres eliminar este mensaje del sistema? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 209 + 235 @@ -5761,7 +5773,7 @@ Saldos de efectivo apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 146 + 142 @@ -5797,7 +5809,7 @@ El precio actual de mercado es apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 722 + 743 @@ -5853,7 +5865,7 @@ Argentina libs/ui/src/lib/i18n.ts - 79 + 78 @@ -5877,7 +5889,7 @@ Los datos del mercado tienen un retraso de apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts - 95 + 94 @@ -5885,7 +5897,7 @@ Inversión apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 171 + 169 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -5917,7 +5929,7 @@ Cerrar posición apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 447 + 442 @@ -5925,7 +5937,7 @@ Rendimiento absoluto de los activos apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 168 + 166 @@ -5933,7 +5945,7 @@ Rendimiento de los activos apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 190 + 188 @@ -5941,7 +5953,7 @@ Rendimiento absoluto de las divisas apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 211 + 209 @@ -5949,7 +5961,7 @@ Rendimiento de la divisa apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 236 + 234 @@ -5957,7 +5969,7 @@ Semana hasta la fecha libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5965,11 +5977,11 @@ WTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5977,7 +5989,7 @@ Mes hasta la fecha libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5985,11 +5997,11 @@ MTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5997,7 +6009,7 @@ Año hasta la fecha libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -6033,7 +6045,7 @@ año apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 apps/client/src/app/pages/resources/personal-finance-tools/product-page.html @@ -6045,7 +6057,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -6053,11 +6065,11 @@ años apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -6077,7 +6089,15 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 63 + 76 + + + + Find a holding... + Buscar una posición... + + libs/ui/src/lib/assistant/assistant.component.ts + 472 @@ -6085,7 +6105,7 @@ General apps/client/src/app/pages/faq/faq-page.component.ts - 41 + 35 @@ -6093,7 +6113,7 @@ Nube apps/client/src/app/pages/faq/faq-page.component.ts - 46 + 40 libs/common/src/lib/routes/routes.ts @@ -6105,7 +6125,7 @@ Autoalojamiento apps/client/src/app/pages/faq/faq-page.component.ts - 52 + 46 libs/common/src/lib/routes/routes.ts @@ -6146,7 +6166,7 @@ Activo apps/client/src/app/components/home-holdings/home-holdings.component.ts - 63 + 61 @@ -6154,7 +6174,7 @@ Cerrado apps/client/src/app/components/home-holdings/home-holdings.component.ts - 64 + 62 @@ -6162,7 +6182,7 @@ Indonesia libs/ui/src/lib/i18n.ts - 91 + 90 @@ -6170,7 +6190,7 @@ Operación apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 229 + 227 @@ -6178,7 +6198,7 @@ Rendimiento por dividendo apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 196 + 194 @@ -6210,7 +6230,7 @@ Liquidez libs/ui/src/lib/i18n.ts - 50 + 49 @@ -6253,6 +6273,14 @@ 205 + + Jump to a page... + Saltar a una página... + + libs/ui/src/lib/assistant/assistant.component.ts + 473 + + Danger Zone Zona peligrosa @@ -6266,7 +6294,7 @@ Eliminar cuenta apps/client/src/app/components/user-account-settings/user-account-settings.html - 316 + 318 @@ -6274,7 +6302,7 @@ Por tenencia de ETF apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 329 + 327 @@ -6282,7 +6310,7 @@ Aproximación basada en las principales posiciones de cada ETF apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 336 + 334 @@ -6314,7 +6342,7 @@ Mostrar más libs/ui/src/lib/top-holdings/top-holdings.component.html - 174 + 179 @@ -6550,7 +6578,7 @@ Australia libs/ui/src/lib/i18n.ts - 80 + 79 @@ -6558,7 +6586,7 @@ Austria libs/ui/src/lib/i18n.ts - 81 + 80 @@ -6566,7 +6594,7 @@ Bélgica libs/ui/src/lib/i18n.ts - 82 + 81 @@ -6574,7 +6602,7 @@ Bulgaria libs/ui/src/lib/i18n.ts - 84 + 83 @@ -6590,7 +6618,7 @@ Canadá libs/ui/src/lib/i18n.ts - 85 + 84 @@ -6598,7 +6626,7 @@ República Checa libs/ui/src/lib/i18n.ts - 86 + 85 @@ -6606,7 +6634,7 @@ Finlandia libs/ui/src/lib/i18n.ts - 87 + 86 @@ -6614,7 +6642,7 @@ Francia libs/ui/src/lib/i18n.ts - 88 + 87 @@ -6622,7 +6650,7 @@ Alemania libs/ui/src/lib/i18n.ts - 89 + 88 @@ -6630,7 +6658,7 @@ India libs/ui/src/lib/i18n.ts - 90 + 89 @@ -6638,7 +6666,7 @@ Italia libs/ui/src/lib/i18n.ts - 92 + 91 @@ -6646,7 +6674,7 @@ Países Bajos libs/ui/src/lib/i18n.ts - 94 + 93 @@ -6654,7 +6682,7 @@ Nueva Zelanda libs/ui/src/lib/i18n.ts - 95 + 94 @@ -6662,7 +6690,7 @@ Polonia libs/ui/src/lib/i18n.ts - 96 + 95 @@ -6670,7 +6698,7 @@ Rumanía libs/ui/src/lib/i18n.ts - 97 + 96 @@ -6678,7 +6706,7 @@ Sudáfrica libs/ui/src/lib/i18n.ts - 99 + 98 @@ -6686,7 +6714,7 @@ Tailandia libs/ui/src/lib/i18n.ts - 101 + 100 @@ -6694,7 +6722,7 @@ Estados Unidos libs/ui/src/lib/i18n.ts - 104 + 103 @@ -6702,7 +6730,7 @@ Error apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 713 + 734 @@ -6742,7 +6770,7 @@ Inactiva apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html - 88 + 85 @@ -6786,7 +6814,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 341 + 338 apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.html @@ -6826,7 +6854,7 @@ apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 130 + 124 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -6842,7 +6870,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 343 + 340 libs/ui/src/lib/i18n.ts @@ -6862,7 +6890,7 @@ libs/ui/src/lib/i18n.ts - 34 + 33 @@ -6910,7 +6938,7 @@ Umbral mínimo apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 55 + 52 @@ -6918,7 +6946,7 @@ Umbral máximo apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 93 + 87 @@ -6946,8 +6974,12 @@ - has been copied to the clipboard - has been copied to the clipboard + has been copied to the clipboard + ha sido copiado al portapapeles + + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 378 + libs/ui/src/lib/value/value.component.ts 180 @@ -7126,7 +7158,7 @@ Accede a más de 80.000 tickers de más de 50 bolsas libs/ui/src/lib/i18n.ts - 26 + 25 @@ -7134,7 +7166,7 @@ Ucrania libs/ui/src/lib/i18n.ts - 102 + 101 @@ -7154,7 +7186,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 44 + 42 libs/common/src/lib/routes/routes.ts @@ -7170,7 +7202,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 33 + 31 libs/common/src/lib/routes/routes.ts @@ -7256,7 +7288,7 @@ Ingresa tu clave API de Ghostfolio: apps/client/src/app/pages/api/api-page.component.ts - 46 + 62 @@ -7264,7 +7296,7 @@ Solicitudes de API de hoy apps/client/src/app/components/admin-users/admin-users.html - 161 + 157 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -7360,11 +7392,11 @@ apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 109 + 108 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 136 + 130 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -7376,7 +7408,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 352 + 349 libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.html @@ -7400,7 +7432,7 @@ Acceso recibido apps/client/src/app/components/user-account-access/user-account-access.html - 53 + 55 @@ -7424,7 +7456,7 @@ Cambio con el efecto de la divisa apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 116 + 115 @@ -7448,7 +7480,7 @@ Bajo demanda apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7456,7 +7488,7 @@ Instantáneo apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7496,7 +7528,7 @@ final del día apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7504,7 +7536,7 @@ en tiempo real apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7532,7 +7564,7 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 @@ -7544,7 +7576,7 @@ apps/client/src/app/components/home-overview/home-overview.component.ts - 54 + 52 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -7552,11 +7584,11 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 390 + 394 @@ -7588,7 +7620,7 @@ Importe total apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 95 + 94 @@ -7596,7 +7628,7 @@ Armenia libs/ui/src/lib/i18n.ts - 78 + 77 @@ -7604,7 +7636,7 @@ Islas Vírgenes Británicas libs/ui/src/lib/i18n.ts - 83 + 82 @@ -7612,7 +7644,7 @@ Singapur libs/ui/src/lib/i18n.ts - 98 + 97 @@ -7675,20 +7707,12 @@ 240 - - Find account, holding or page... - Busca una cuenta, posición o página... - - libs/ui/src/lib/assistant/assistant.component.ts - 115 - - Generate Security Token Generar token de seguridad apps/client/src/app/components/admin-users/admin-users.html - 243 + 239 @@ -7696,7 +7720,7 @@ Reino Unido libs/ui/src/lib/i18n.ts - 103 + 102 @@ -7745,7 +7769,7 @@ () ya está en uso. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 649 + 675 @@ -7753,7 +7777,7 @@ Ocurrió un error al actualizar a (). apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 657 + 683 @@ -7817,7 +7841,7 @@ alguien apps/client/src/app/pages/public/public-page.component.ts - 61 + 62 @@ -7849,7 +7873,7 @@ ¿Seguro que quieres eliminar este elemento? libs/ui/src/lib/benchmark/benchmark.component.ts - 139 + 137 @@ -7857,7 +7881,7 @@ Cerrar sesión apps/client/src/app/components/header/header.component.html - 329 + 325 @@ -7890,7 +7914,7 @@ La cuenta de usuario de demostración se ha sincronizado. apps/client/src/app/components/admin-overview/admin-overview.component.ts - 277 + 303 @@ -7898,7 +7922,7 @@ Sincronizar cuenta de usuario de demostración apps/client/src/app/components/admin-overview/admin-overview.html - 204 + 128 @@ -8104,7 +8128,7 @@ Mes actual apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 @@ -8277,7 +8301,7 @@ Generar apps/client/src/app/components/user-account-access/user-account-access.html - 43 + 45 @@ -8317,7 +8341,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 39 + 35 @@ -8325,7 +8349,7 @@ Gestionar perfil de activo apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 471 + 467 @@ -8333,7 +8357,7 @@ Inversión alternativa libs/ui/src/lib/i18n.ts - 46 + 45 @@ -8341,7 +8365,7 @@ Coleccionable libs/ui/src/lib/i18n.ts - 56 + 55 diff --git a/apps/client/src/locales/messages.fr.xlf b/apps/client/src/locales/messages.fr.xlf index d2de4b979..11d7d0577 100644 --- a/apps/client/src/locales/messages.fr.xlf +++ b/apps/client/src/locales/messages.fr.xlf @@ -98,7 +98,7 @@ Plateforme apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 90 + 88 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -146,7 +146,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 135 + 134 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -202,7 +202,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 141 + 140 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -218,7 +218,7 @@ Balance Cash apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 45 + 43 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -238,15 +238,15 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 201 + 199 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 204 + 202 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 207 + 205 libs/ui/src/lib/account-balances/account-balances.component.html @@ -322,7 +322,7 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 140 + 213 apps/client/src/app/components/admin-platform/admin-platform.component.html @@ -358,7 +358,7 @@ Voulez-vous vraiment supprimer ce compte ? libs/ui/src/lib/accounts-table/accounts-table.component.ts - 148 + 146 @@ -378,11 +378,11 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 151 + 150 libs/ui/src/lib/i18n.ts - 15 + 14 @@ -493,12 +493,20 @@ 2 + + Find an account... + Find an account... + + libs/ui/src/lib/assistant/assistant.component.ts + 471 + + Date Date apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 157 + 156 libs/ui/src/lib/account-balances/account-balances.component.html @@ -534,7 +542,7 @@ Filtrer par... apps/client/src/app/components/admin-market-data/admin-market-data.component.ts - 383 + 368 @@ -550,7 +558,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 219 + 217 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -574,7 +582,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 40 + 42 @@ -622,7 +630,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 268 + 266 @@ -634,11 +642,11 @@ apps/client/src/app/components/admin-users/admin-users.html - 60 + 56 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 278 + 276 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -658,7 +666,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 284 + 282 apps/client/src/app/pages/public/public-page.html @@ -678,7 +686,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 296 + 294 @@ -702,7 +710,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 271 + 268 @@ -710,7 +718,7 @@ Voulez-vous vraiment supprimer ce code promotionnel ? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 196 + 222 @@ -718,7 +726,7 @@ Voulez-vous vraiment vider le cache ? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 233 + 259 @@ -726,31 +734,15 @@ Veuillez définir votre message système : apps/client/src/app/components/admin-overview/admin-overview.component.ts - 253 - - - - User Count - Nombre d’Utilisateurs - - apps/client/src/app/components/admin-overview/admin-overview.html - 16 - - - - Activity Count - Nombre d’Activités - - apps/client/src/app/components/admin-overview/admin-overview.html - 22 + 279 per User par Utilisateur - apps/client/src/app/components/admin-overview/admin-overview.html - 31 + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 166 @@ -782,7 +774,7 @@ Inscription de Nouveaux Utilisateurs apps/client/src/app/components/admin-overview/admin-overview.html - 37 + 50 @@ -790,7 +782,7 @@ Mode Lecture Seule apps/client/src/app/components/admin-overview/admin-overview.html - 51 + 64 @@ -798,7 +790,7 @@ Message Système apps/client/src/app/components/admin-overview/admin-overview.html - 75 + 88 @@ -806,7 +798,7 @@ Définir Message apps/client/src/app/components/admin-overview/admin-overview.html - 97 + 110 @@ -814,7 +806,7 @@ Codes promotionnels apps/client/src/app/components/admin-overview/admin-overview.html - 105 + 148 @@ -822,7 +814,7 @@ Ajouter apps/client/src/app/components/admin-overview/admin-overview.html - 185 + 265 libs/ui/src/lib/account-balances/account-balances.component.html @@ -834,7 +826,7 @@ Maintenance apps/client/src/app/components/admin-overview/admin-overview.html - 193 + 117 @@ -842,7 +834,7 @@ Vider le Cache apps/client/src/app/components/admin-overview/admin-overview.html - 209 + 133 @@ -882,7 +874,7 @@ Engagement par Jour apps/client/src/app/components/admin-users/admin-users.html - 140 + 136 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -894,7 +886,7 @@ Dernière Requête apps/client/src/app/components/admin-users/admin-users.html - 186 + 182 @@ -902,11 +894,11 @@ Could not validate form apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 570 + 594 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 573 + 597 @@ -930,7 +922,7 @@ apps/client/src/app/components/header/header.component.html - 258 + 257 apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts @@ -966,7 +958,7 @@ À propos de Ghostfolio apps/client/src/app/components/header/header.component.html - 326 + 322 apps/client/src/app/pages/about/overview/about-overview-page.html @@ -978,15 +970,15 @@ Se connecter apps/client/src/app/components/header/header.component.html - 422 + 421 apps/client/src/app/components/header/header.component.ts - 298 + 296 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 79 + 81 libs/common/src/lib/routes/routes.ts @@ -1002,7 +994,7 @@ Oups! Jeton de Sécurité Incorrect. apps/client/src/app/components/header/header.component.ts - 313 + 311 apps/client/src/app/components/user-account-access/user-account-access.component.ts @@ -1034,7 +1026,7 @@ libs/ui/src/lib/i18n.ts - 109 + 108 @@ -1050,7 +1042,7 @@ libs/ui/src/lib/i18n.ts - 110 + 109 @@ -1070,7 +1062,15 @@ Montant Total apps/client/src/app/components/investment-chart/investment-chart.component.ts - 146 + 147 + + + + Code + Code + + apps/client/src/app/components/admin-overview/admin-overview.html + 159 @@ -1078,7 +1078,7 @@ Taux d’Épargne apps/client/src/app/components/investment-chart/investment-chart.component.ts - 202 + 205 @@ -1118,7 +1118,7 @@ apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 32 + 34 apps/client/src/app/pages/landing/landing-page.html @@ -1158,7 +1158,7 @@ Se connecter avec Google apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 44 + 46 @@ -1166,7 +1166,7 @@ Rester connecté apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 66 + 68 @@ -1194,7 +1194,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 259 + 257 @@ -1206,7 +1206,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 278 + 276 @@ -1222,7 +1222,7 @@ Pouvoir d’Achat apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 248 + 247 @@ -1230,7 +1230,7 @@ Exclus de l’Analyse apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 274 + 273 @@ -1238,7 +1238,7 @@ Fortune apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 324 + 323 @@ -1246,7 +1246,7 @@ Performance annualisée apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 338 + 337 @@ -1254,7 +1254,7 @@ Veuillez entrer le montant de votre fonds d’urgence : apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 111 + 110 @@ -1262,7 +1262,7 @@ Prix Minimum apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 130 + 129 @@ -1270,7 +1270,7 @@ Prix Maximum apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 147 + 145 @@ -1278,11 +1278,11 @@ Quantité apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 157 + 155 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 185 + 183 libs/ui/src/lib/activities-table/activities-table.component.html @@ -1298,7 +1298,7 @@ Signaler une Erreur de Données apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 456 + 452 @@ -1310,7 +1310,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 362 + 373 @@ -1318,11 +1318,11 @@ CDA apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -1330,11 +1330,11 @@ 1A apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -1342,11 +1342,11 @@ 5A apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -1354,7 +1354,7 @@ Performance with currency effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 135 + 134 @@ -1362,11 +1362,11 @@ Max apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 217 + 221 libs/ui/src/lib/assistant/assistant.component.ts - 414 + 425 @@ -1390,7 +1390,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 194 + 191 @@ -1402,7 +1402,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 192 + 189 @@ -1418,7 +1418,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 195 + 192 @@ -1434,7 +1434,7 @@ apps/client/src/app/components/header/header.component.html - 375 + 370 apps/client/src/app/pages/about/overview/about-overview-page.routes.ts @@ -1466,7 +1466,7 @@ Mon Ghostfolio apps/client/src/app/components/header/header.component.html - 277 + 276 apps/client/src/app/pages/user-account/user-account-page.routes.ts @@ -1678,7 +1678,7 @@ Accès donné apps/client/src/app/components/user-account-access/user-account-access.html - 57 + 59 @@ -1706,7 +1706,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 97 + 93 apps/client/src/app/components/header/header.component.html @@ -1714,11 +1714,11 @@ apps/client/src/app/components/header/header.component.html - 268 + 267 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 381 + 378 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1766,7 +1766,7 @@ Données du marché apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 403 + 400 libs/common/src/lib/routes/routes.ts @@ -1782,7 +1782,7 @@ apps/client/src/app/components/header/header.component.html - 289 + 287 libs/common/src/lib/routes/routes.ts @@ -1792,6 +1792,10 @@ Users Utilisateurs + + apps/client/src/app/components/admin-overview/admin-overview.html + 24 + libs/common/src/lib/routes/routes.ts 61 @@ -1896,6 +1900,10 @@ apps/client/src/app/pages/blog/2025/11/black-weeks-2025/black-weeks-2025-page.html 147 + + apps/client/src/app/pages/blog/2026/04/ghostfolio-3/ghostfolio-3-page.html + 269 + apps/client/src/app/pages/blog/blog-page.html 5 @@ -1913,6 +1921,14 @@ 32 + + Duration + Duration + + apps/client/src/app/components/admin-overview/admin-overview.html + 172 + + Frequently Asked Questions (FAQ) Questions Fréquentes (FAQ) @@ -1942,7 +1958,7 @@ apps/client/src/app/components/header/header.component.html - 361 + 356 apps/client/src/app/pages/features/features-page.html @@ -1958,7 +1974,7 @@ Positions apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 102 + 100 apps/client/src/app/components/home-holdings/home-holdings.html @@ -2006,7 +2022,7 @@ apps/client/src/app/components/header/header.component.html - 408 + 403 apps/client/src/app/components/home-market/home-market.html @@ -2022,7 +2038,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 39 + 37 libs/common/src/lib/routes/routes.ts @@ -2046,31 +2062,35 @@ Activités apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 86 + 84 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 113 + 111 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html 226 + + apps/client/src/app/components/admin-overview/admin-overview.html + 38 + apps/client/src/app/components/admin-tag/admin-tag.component.html 45 apps/client/src/app/components/admin-users/admin-users.html - 118 + 114 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 231 + 229 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 348 + 342 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -2102,7 +2122,7 @@ Current week apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 @@ -2110,7 +2130,7 @@ Ajouter Activité apps/client/src/app/components/home-overview/home-overview.html - 60 + 57 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html @@ -2126,7 +2146,7 @@ libs/ui/src/lib/i18n.ts - 42 + 41 @@ -2146,7 +2166,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 120 + 119 @@ -2154,7 +2174,7 @@ Prix Unitaire apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 210 + 208 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2166,7 +2186,7 @@ Import des données... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 174 + 171 @@ -2174,7 +2194,7 @@ L’import est terminé apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 184 + 181 @@ -2190,7 +2210,7 @@ Validation des données... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 293 + 291 @@ -2226,7 +2246,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 67 + 69 @@ -2330,7 +2350,7 @@ libs/ui/src/lib/i18n.ts - 17 + 16 @@ -2402,15 +2422,15 @@ Dividende apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 81 + 79 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 186 + 184 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 372 + 371 apps/client/src/app/pages/features/features-page.html @@ -2418,7 +2438,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 198 + 196 apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts @@ -2426,7 +2446,7 @@ libs/ui/src/lib/i18n.ts - 38 + 37 @@ -2458,7 +2478,7 @@ Haut apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 305 + 303 @@ -2466,7 +2486,7 @@ Bas apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 354 + 352 @@ -2474,7 +2494,7 @@ Évolution du Portefeuille apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 407 + 405 @@ -2482,7 +2502,7 @@ Historique des Investissements apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 436 + 434 @@ -2490,7 +2510,7 @@ Historique des Dividendes apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 495 + 493 @@ -2522,11 +2542,11 @@ apps/client/src/app/components/header/header.component.html - 313 + 309 apps/client/src/app/components/header/header.component.html - 389 + 384 apps/client/src/app/pages/pricing/pricing-page.routes.ts @@ -2578,7 +2598,7 @@ Démarrer apps/client/src/app/components/header/header.component.html - 433 + 432 apps/client/src/app/pages/features/features-page.html @@ -2610,7 +2630,7 @@ Enregistrement apps/client/src/app/components/admin-users/admin-users.html - 80 + 76 libs/common/src/lib/routes/routes.ts @@ -2670,7 +2690,7 @@ apps/client/src/app/components/header/header.component.html - 301 + 297 apps/client/src/app/pages/resources/overview/resources-overview.component.html @@ -2722,7 +2742,7 @@ apps/client/src/app/components/header/header.component.html - 248 + 247 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html @@ -2730,11 +2750,11 @@ apps/client/src/app/pages/admin/admin-page.component.ts - 45 + 41 apps/client/src/app/pages/resources/resources-page.component.ts - 29 + 27 libs/common/src/lib/routes/routes.ts @@ -2758,7 +2778,7 @@ Importer Activités apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 92 + 93 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2862,11 +2882,11 @@ Intérêt apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 69 + 67 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 359 + 358 libs/ui/src/lib/fire-calculator/fire-calculator.component.ts @@ -2874,7 +2894,7 @@ libs/ui/src/lib/i18n.ts - 40 + 39 @@ -2918,7 +2938,7 @@ Compte apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 85 + 86 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2950,11 +2970,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 242 + 240 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 286 + 283 libs/ui/src/lib/i18n.ts @@ -2982,11 +3002,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 251 + 249 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 305 + 302 libs/ui/src/lib/i18n.ts @@ -3006,7 +3026,7 @@ libs/ui/src/lib/i18n.ts - 16 + 15 @@ -3014,7 +3034,7 @@ Autre libs/ui/src/lib/i18n.ts - 25 + 24 libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -3042,11 +3062,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 318 + 314 libs/ui/src/lib/i18n.ts - 30 + 29 @@ -3054,7 +3074,7 @@ Étiquette libs/ui/src/lib/i18n.ts - 31 + 30 libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html @@ -3066,11 +3086,11 @@ Cash apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 219 + 218 libs/ui/src/lib/i18n.ts - 55 + 54 @@ -3078,7 +3098,7 @@ Marchandise libs/ui/src/lib/i18n.ts - 47 + 46 @@ -3086,11 +3106,11 @@ Capital apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 57 + 55 libs/ui/src/lib/i18n.ts - 48 + 47 @@ -3098,7 +3118,7 @@ Revenu Fixe libs/ui/src/lib/i18n.ts - 49 + 48 @@ -3106,7 +3126,7 @@ Immobilier libs/ui/src/lib/i18n.ts - 51 + 50 @@ -3122,7 +3142,7 @@ Obligation libs/ui/src/lib/i18n.ts - 54 + 53 @@ -3130,7 +3150,7 @@ Cryptomonnaie libs/ui/src/lib/i18n.ts - 57 + 56 @@ -3138,7 +3158,7 @@ ETF libs/ui/src/lib/i18n.ts - 58 + 57 @@ -3146,7 +3166,7 @@ SICAV libs/ui/src/lib/i18n.ts - 60 + 59 @@ -3154,7 +3174,7 @@ Métal Précieux libs/ui/src/lib/i18n.ts - 61 + 60 @@ -3162,7 +3182,7 @@ Capital Propre libs/ui/src/lib/i18n.ts - 62 + 61 @@ -3170,7 +3190,7 @@ Action libs/ui/src/lib/i18n.ts - 63 + 62 @@ -3178,7 +3198,7 @@ Afrique libs/ui/src/lib/i18n.ts - 70 + 69 @@ -3186,7 +3206,7 @@ Asie libs/ui/src/lib/i18n.ts - 71 + 70 @@ -3194,7 +3214,7 @@ Europe libs/ui/src/lib/i18n.ts - 72 + 71 @@ -3202,7 +3222,7 @@ Amérique du Nord libs/ui/src/lib/i18n.ts - 73 + 72 @@ -3218,7 +3238,7 @@ Océanie libs/ui/src/lib/i18n.ts - 74 + 73 @@ -3226,7 +3246,7 @@ Amérique du Sud libs/ui/src/lib/i18n.ts - 75 + 74 @@ -3262,7 +3282,7 @@ libs/ui/src/lib/top-holdings/top-holdings.component.html - 181 + 186 @@ -3298,7 +3318,7 @@ Importer Dividendes apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 136 + 132 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3334,7 +3354,7 @@ Donner libs/ui/src/lib/i18n.ts - 19 + 18 @@ -3342,7 +3362,7 @@ Risque élevé libs/ui/src/lib/i18n.ts - 20 + 19 @@ -3350,7 +3370,7 @@ Risque faible libs/ui/src/lib/i18n.ts - 22 + 21 @@ -3366,7 +3386,7 @@ Réserve pour retraite libs/ui/src/lib/i18n.ts - 28 + 27 @@ -3382,7 +3402,7 @@ Satellite libs/ui/src/lib/i18n.ts - 29 + 28 @@ -3634,11 +3654,11 @@ Could not save asset profile apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 604 + 628 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 607 + 631 @@ -3654,7 +3674,7 @@ Frais apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 208 + 206 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -3733,20 +3753,12 @@ 12 - - Switch to Ghostfolio Open Source or Ghostfolio Basic easily - Passez à Ghostfolio Open Source ou Ghostfolio Basic facilement - - libs/ui/src/lib/i18n.ts - 14 - - Loan Loan libs/ui/src/lib/i18n.ts - 59 + 58 @@ -3814,7 +3826,7 @@ Voir en tant que ... apps/client/src/app/components/admin-users/admin-users.html - 233 + 229 @@ -3822,7 +3834,7 @@ Supprimer l’Utilisateur apps/client/src/app/components/admin-users/admin-users.html - 254 + 250 @@ -3870,7 +3882,7 @@ Current year apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 @@ -3906,7 +3918,7 @@ Asset profile has been saved apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 594 + 618 @@ -3930,7 +3942,7 @@ Mettre à jour le Solde apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 108 + 109 @@ -3986,7 +3998,7 @@ Cette activité existe déjà. libs/ui/src/lib/i18n.ts - 21 + 20 @@ -4050,7 +4062,7 @@ Série en cours apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 457 + 455 @@ -4058,7 +4070,7 @@ Série la plus longue apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 466 + 464 @@ -4066,7 +4078,7 @@ Mois libs/ui/src/lib/i18n.ts - 24 + 23 @@ -4074,7 +4086,7 @@ Années libs/ui/src/lib/i18n.ts - 33 + 32 @@ -4082,7 +4094,7 @@ Mois libs/ui/src/lib/i18n.ts - 23 + 22 @@ -4090,7 +4102,7 @@ Année libs/ui/src/lib/i18n.ts - 32 + 31 @@ -4098,7 +4110,7 @@ View Details apps/client/src/app/components/admin-users/admin-users.html - 225 + 221 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -4110,7 +4122,7 @@ Dettes apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 302 + 301 apps/client/src/app/pages/features/features-page.html @@ -4250,7 +4262,7 @@ Dette libs/ui/src/lib/i18n.ts - 41 + 40 @@ -4482,7 +4494,7 @@ Sign in with OpenID Connect apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 55 + 57 @@ -4494,7 +4506,7 @@ libs/ui/src/lib/i18n.ts - 37 + 36 @@ -4502,7 +4514,7 @@ Actifs libs/ui/src/lib/i18n.ts - 43 + 42 @@ -4526,7 +4538,7 @@ Actifs apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 233 + 232 @@ -4534,7 +4546,7 @@ Configuration par défaut libs/ui/src/lib/i18n.ts - 27 + 26 @@ -4558,7 +4570,7 @@ Japon libs/ui/src/lib/i18n.ts - 93 + 92 @@ -4582,7 +4594,7 @@ Configurer votre compte apps/client/src/app/components/home-overview/home-overview.html - 19 + 16 @@ -4590,7 +4602,7 @@ Obtenir un aperçu de vos comptes financiers en ajoutant vos comptes bancaires et de courtages. apps/client/src/app/components/home-overview/home-overview.html - 21 + 18 @@ -4598,7 +4610,7 @@ Capture vos activitées apps/client/src/app/components/home-overview/home-overview.html - 28 + 25 @@ -4606,7 +4618,7 @@ Enregistrez vos activités immobilières pour maintenir votre portfolio à jour. apps/client/src/app/components/home-overview/home-overview.html - 30 + 27 @@ -4614,7 +4626,7 @@ Monitorer et analyser votre portfolio apps/client/src/app/components/home-overview/home-overview.html - 37 + 34 @@ -4622,7 +4634,7 @@ Suivez votre évolution en temps réel grâce à une analyse approfondie et complète. apps/client/src/app/components/home-overview/home-overview.html - 39 + 36 @@ -4638,7 +4650,7 @@ Configurer le compte apps/client/src/app/components/home-overview/home-overview.html - 52 + 49 @@ -4806,11 +4818,11 @@ Could not parse scraper configuration apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 525 + 545 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 528 + 548 @@ -5368,7 +5380,7 @@ libs/ui/src/lib/i18n.ts - 100 + 99 @@ -5380,7 +5392,7 @@ libs/ui/src/lib/i18n.ts - 18 + 17 @@ -5472,7 +5484,7 @@ Frais apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 258 + 255 libs/ui/src/lib/activities-table/activities-table.component.html @@ -5480,7 +5492,7 @@ libs/ui/src/lib/i18n.ts - 39 + 38 @@ -5540,7 +5552,7 @@ Version apps/client/src/app/components/admin-overview/admin-overview.html - 7 + 11 @@ -5704,7 +5716,7 @@ Extreme Peur libs/ui/src/lib/i18n.ts - 107 + 106 @@ -5712,7 +5724,7 @@ Extreme Cupidité libs/ui/src/lib/i18n.ts - 108 + 107 @@ -5720,7 +5732,7 @@ Neutre libs/ui/src/lib/i18n.ts - 111 + 110 @@ -5736,7 +5748,7 @@ Confirmer la suppresion de ce message système? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 209 + 235 @@ -5760,7 +5772,7 @@ Cash Balances apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 146 + 142 @@ -5796,7 +5808,7 @@ Le prix actuel du marché est apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 722 + 743 @@ -5852,7 +5864,7 @@ Argentina libs/ui/src/lib/i18n.ts - 79 + 78 @@ -5876,7 +5888,7 @@ Les données du marché sont retardées de apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts - 95 + 94 @@ -5884,7 +5896,7 @@ Investissement apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 171 + 169 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -5916,7 +5928,7 @@ Close Holding apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 447 + 442 @@ -5924,7 +5936,7 @@ Performance des Actifs en valeur absolue apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 168 + 166 @@ -5932,7 +5944,7 @@ Performance des Actifs apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 190 + 188 @@ -5940,7 +5952,7 @@ Performance des devises en valeur absolue apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 211 + 209 @@ -5948,7 +5960,7 @@ Performance des devises apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 236 + 234 @@ -5956,7 +5968,7 @@ Week to date libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5964,11 +5976,11 @@ WTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5976,7 +5988,7 @@ Month to date libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5984,11 +5996,11 @@ MTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5996,7 +6008,7 @@ Year to date libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -6032,7 +6044,7 @@ année apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 apps/client/src/app/pages/resources/personal-finance-tools/product-page.html @@ -6044,7 +6056,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -6052,11 +6064,11 @@ années apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -6076,7 +6088,15 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 63 + 76 + + + + Find a holding... + Find a holding... + + libs/ui/src/lib/assistant/assistant.component.ts + 472 @@ -6084,7 +6104,7 @@ Général apps/client/src/app/pages/faq/faq-page.component.ts - 41 + 35 @@ -6092,7 +6112,7 @@ Cloud apps/client/src/app/pages/faq/faq-page.component.ts - 46 + 40 libs/common/src/lib/routes/routes.ts @@ -6104,7 +6124,7 @@ Self-Hosting apps/client/src/app/pages/faq/faq-page.component.ts - 52 + 46 libs/common/src/lib/routes/routes.ts @@ -6145,7 +6165,7 @@ Actif apps/client/src/app/components/home-holdings/home-holdings.component.ts - 63 + 61 @@ -6153,7 +6173,7 @@ Clôturé apps/client/src/app/components/home-holdings/home-holdings.component.ts - 64 + 62 @@ -6161,7 +6181,7 @@ Indonesia libs/ui/src/lib/i18n.ts - 91 + 90 @@ -6169,7 +6189,7 @@ Activitées apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 229 + 227 @@ -6177,7 +6197,7 @@ Rendement en Dividende apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 196 + 194 @@ -6209,7 +6229,7 @@ Liquiditées libs/ui/src/lib/i18n.ts - 50 + 49 @@ -6252,6 +6272,14 @@ 205 + + Jump to a page... + Jump to a page... + + libs/ui/src/lib/assistant/assistant.component.ts + 473 + + Danger Zone Zone de danger @@ -6265,7 +6293,7 @@ Supprimer le compte apps/client/src/app/components/user-account-settings/user-account-settings.html - 316 + 318 @@ -6273,7 +6301,7 @@ Par détention ETF apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 329 + 327 @@ -6281,7 +6309,7 @@ Approximation basée sur les principaux titres de chaque ETF apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 336 + 334 @@ -6313,7 +6341,7 @@ Voir plus libs/ui/src/lib/top-holdings/top-holdings.component.html - 174 + 179 @@ -6549,7 +6577,7 @@ Australie libs/ui/src/lib/i18n.ts - 80 + 79 @@ -6557,7 +6585,7 @@ Autriche libs/ui/src/lib/i18n.ts - 81 + 80 @@ -6565,7 +6593,7 @@ Belgique libs/ui/src/lib/i18n.ts - 82 + 81 @@ -6573,7 +6601,7 @@ Bulgarie libs/ui/src/lib/i18n.ts - 84 + 83 @@ -6589,7 +6617,7 @@ Canada libs/ui/src/lib/i18n.ts - 85 + 84 @@ -6597,7 +6625,7 @@ République Tchèque libs/ui/src/lib/i18n.ts - 86 + 85 @@ -6605,7 +6633,7 @@ Finlande libs/ui/src/lib/i18n.ts - 87 + 86 @@ -6613,7 +6641,7 @@ France libs/ui/src/lib/i18n.ts - 88 + 87 @@ -6621,7 +6649,7 @@ Allemagne libs/ui/src/lib/i18n.ts - 89 + 88 @@ -6629,7 +6657,7 @@ Inde libs/ui/src/lib/i18n.ts - 90 + 89 @@ -6637,7 +6665,7 @@ Italie libs/ui/src/lib/i18n.ts - 92 + 91 @@ -6645,7 +6673,7 @@ Pays-Bas libs/ui/src/lib/i18n.ts - 94 + 93 @@ -6653,7 +6681,7 @@ Nouvelle-Zélande libs/ui/src/lib/i18n.ts - 95 + 94 @@ -6661,7 +6689,7 @@ Pologne libs/ui/src/lib/i18n.ts - 96 + 95 @@ -6669,7 +6697,7 @@ Roumanie libs/ui/src/lib/i18n.ts - 97 + 96 @@ -6677,7 +6705,7 @@ Afrique du Sud libs/ui/src/lib/i18n.ts - 99 + 98 @@ -6685,7 +6713,7 @@ Thaïlande libs/ui/src/lib/i18n.ts - 101 + 100 @@ -6693,7 +6721,7 @@ Etats-Unis libs/ui/src/lib/i18n.ts - 104 + 103 @@ -6701,7 +6729,7 @@ Erreur apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 713 + 734 @@ -6741,7 +6769,7 @@ Inactif apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html - 88 + 85 @@ -6785,7 +6813,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 341 + 338 apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.html @@ -6825,7 +6853,7 @@ apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 130 + 124 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -6841,7 +6869,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 343 + 340 libs/ui/src/lib/i18n.ts @@ -6861,7 +6889,7 @@ Oui libs/ui/src/lib/i18n.ts - 34 + 33 @@ -6909,7 +6937,7 @@ Seuil Min apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 55 + 52 @@ -6917,7 +6945,7 @@ Seuil Max apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 93 + 87 @@ -6945,8 +6973,12 @@ - has been copied to the clipboard - has been copied to the clipboard + has been copied to the clipboard + has been copied to the clipboard + + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 378 + libs/ui/src/lib/value/value.component.ts 180 @@ -7125,7 +7157,7 @@ Accédez à plus de 80 000 symboles financiers issus de plus de 50 marchés boursiers. libs/ui/src/lib/i18n.ts - 26 + 25 @@ -7133,7 +7165,7 @@ Ukraine libs/ui/src/lib/i18n.ts - 102 + 101 @@ -7153,7 +7185,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 44 + 42 libs/common/src/lib/routes/routes.ts @@ -7169,7 +7201,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 33 + 31 libs/common/src/lib/routes/routes.ts @@ -7255,7 +7287,7 @@ Veuillez saisir votre clé API Ghostfolio : apps/client/src/app/pages/api/api-page.component.ts - 46 + 62 @@ -7263,7 +7295,7 @@ Requêtes API aujourd’hui apps/client/src/app/components/admin-users/admin-users.html - 161 + 157 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -7359,11 +7391,11 @@ apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 109 + 108 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 136 + 130 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -7375,7 +7407,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 352 + 349 libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.html @@ -7399,7 +7431,7 @@ Accès reçu apps/client/src/app/components/user-account-access/user-account-access.html - 53 + 55 @@ -7423,7 +7455,7 @@ Change with currency effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 116 + 115 @@ -7447,7 +7479,7 @@ Paresseux apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7455,7 +7487,7 @@ Instantané apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7495,7 +7527,7 @@ fin de journée apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7503,7 +7535,7 @@ temps réel apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7531,7 +7563,7 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 @@ -7543,7 +7575,7 @@ apps/client/src/app/components/home-overview/home-overview.component.ts - 54 + 52 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -7551,11 +7583,11 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 390 + 394 @@ -7587,7 +7619,7 @@ Total amount apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 95 + 94 @@ -7595,7 +7627,7 @@ Arménie libs/ui/src/lib/i18n.ts - 78 + 77 @@ -7603,7 +7635,7 @@ Îles Vierges britanniques libs/ui/src/lib/i18n.ts - 83 + 82 @@ -7611,7 +7643,7 @@ Singapour libs/ui/src/lib/i18n.ts - 98 + 97 @@ -7674,20 +7706,12 @@ 240 - - Find account, holding or page... - Find account, holding or page... - - libs/ui/src/lib/assistant/assistant.component.ts - 115 - - Generate Security Token Générer un jeton de sécurité apps/client/src/app/components/admin-users/admin-users.html - 243 + 239 @@ -7695,7 +7719,7 @@ Royaume-Uni libs/ui/src/lib/i18n.ts - 103 + 102 @@ -7744,7 +7768,7 @@ () est déjà utilisé. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 649 + 675 @@ -7752,7 +7776,7 @@ Une erreur s’est produite lors de la mise à jour vers (). apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 657 + 683 @@ -7816,7 +7840,7 @@ quelqu’un apps/client/src/app/pages/public/public-page.component.ts - 61 + 62 @@ -7848,7 +7872,7 @@ Voulez-vous vraiment supprimer cet élément? libs/ui/src/lib/benchmark/benchmark.component.ts - 139 + 137 @@ -7856,7 +7880,7 @@ Se déconnecter apps/client/src/app/components/header/header.component.html - 329 + 325 @@ -7889,7 +7913,7 @@ Le compte utilisateur de démonstration a été synchronisé. apps/client/src/app/components/admin-overview/admin-overview.component.ts - 277 + 303 @@ -7897,7 +7921,7 @@ Synchroniser le compte utilisateur de démonstration apps/client/src/app/components/admin-overview/admin-overview.html - 204 + 128 @@ -8103,7 +8127,7 @@ Current month apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 @@ -8276,7 +8300,7 @@ Générer apps/client/src/app/components/user-account-access/user-account-access.html - 43 + 45 @@ -8316,7 +8340,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 39 + 35 @@ -8324,7 +8348,7 @@ Gérer le profil d’actif apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 471 + 467 @@ -8332,7 +8356,7 @@ Investissement alternatif libs/ui/src/lib/i18n.ts - 46 + 45 @@ -8340,7 +8364,7 @@ Objet de collection libs/ui/src/lib/i18n.ts - 56 + 55 diff --git a/apps/client/src/locales/messages.it.xlf b/apps/client/src/locales/messages.it.xlf index e2f7303e2..7496bb8f9 100644 --- a/apps/client/src/locales/messages.it.xlf +++ b/apps/client/src/locales/messages.it.xlf @@ -139,7 +139,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 135 + 134 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -183,15 +183,15 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 201 + 199 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 204 + 202 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 207 + 205 libs/ui/src/lib/account-balances/account-balances.component.html @@ -267,7 +267,7 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 140 + 213 apps/client/src/app/components/admin-platform/admin-platform.component.html @@ -303,7 +303,7 @@ Vuoi davvero eliminare questo account? libs/ui/src/lib/accounts-table/accounts-table.component.ts - 148 + 146 @@ -331,11 +331,11 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 151 + 150 libs/ui/src/lib/i18n.ts - 15 + 14 @@ -438,12 +438,20 @@ 2 + + Find an account... + Find an account... + + libs/ui/src/lib/assistant/assistant.component.ts + 471 + + Date Data apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 157 + 156 libs/ui/src/lib/account-balances/account-balances.component.html @@ -487,21 +495,13 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 219 + 217 libs/ui/src/lib/holdings-table/holdings-table.component.html 45 - - Activity Count - Conteggio attività - - apps/client/src/app/components/admin-overview/admin-overview.html - 22 - - Historical Data Dati storici @@ -511,7 +511,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 40 + 42 @@ -519,7 +519,7 @@ Vuoi davvero eliminare questo buono? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 196 + 222 @@ -527,7 +527,7 @@ Vuoi davvero svuotare la cache? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 233 + 259 @@ -535,23 +535,15 @@ Imposta il messaggio di sistema: apps/client/src/app/components/admin-overview/admin-overview.component.ts - 253 - - - - User Count - Numero di utenti - - apps/client/src/app/components/admin-overview/admin-overview.html - 16 + 279 per User per utente - apps/client/src/app/components/admin-overview/admin-overview.html - 31 + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 166 @@ -579,7 +571,7 @@ Messaggio di sistema apps/client/src/app/components/admin-overview/admin-overview.html - 75 + 88 @@ -587,7 +579,7 @@ Imposta messaggio apps/client/src/app/components/admin-overview/admin-overview.html - 97 + 110 @@ -595,7 +587,7 @@ Modalità di sola lettura apps/client/src/app/components/admin-overview/admin-overview.html - 51 + 64 @@ -603,7 +595,7 @@ Buoni sconto apps/client/src/app/components/admin-overview/admin-overview.html - 105 + 148 @@ -611,7 +603,7 @@ Aggiungi apps/client/src/app/components/admin-overview/admin-overview.html - 185 + 265 libs/ui/src/lib/account-balances/account-balances.component.html @@ -623,7 +615,7 @@ Bilancio domestico apps/client/src/app/components/admin-overview/admin-overview.html - 193 + 117 @@ -631,7 +623,7 @@ Svuota la cache apps/client/src/app/components/admin-overview/admin-overview.html - 209 + 133 @@ -671,7 +663,7 @@ Partecipazione giornaliera apps/client/src/app/components/admin-users/admin-users.html - 140 + 136 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -683,7 +675,7 @@ Ultima richiesta apps/client/src/app/components/admin-users/admin-users.html - 186 + 182 @@ -699,7 +691,7 @@ Informazioni su Ghostfolio apps/client/src/app/components/header/header.component.html - 326 + 322 apps/client/src/app/pages/about/overview/about-overview-page.html @@ -711,7 +703,7 @@ Inizia apps/client/src/app/components/header/header.component.html - 433 + 432 apps/client/src/app/pages/features/features-page.html @@ -743,15 +735,15 @@ Accedi apps/client/src/app/components/header/header.component.html - 422 + 421 apps/client/src/app/components/header/header.component.ts - 298 + 296 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 79 + 81 libs/common/src/lib/routes/routes.ts @@ -767,7 +759,7 @@ Ops! Token di sicurezza errato. apps/client/src/app/components/header/header.component.ts - 313 + 311 apps/client/src/app/components/user-account-access/user-account-access.component.ts @@ -835,7 +827,7 @@ apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 32 + 34 apps/client/src/app/pages/landing/landing-page.html @@ -875,7 +867,7 @@ Accedi con Google apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 44 + 46 @@ -883,7 +875,7 @@ Rimani connesso apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 66 + 68 @@ -911,7 +903,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 259 + 257 @@ -923,7 +915,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 278 + 276 @@ -939,7 +931,7 @@ Potere d’acquisto apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 248 + 247 @@ -947,7 +939,7 @@ Patrimonio netto apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 324 + 323 @@ -955,7 +947,7 @@ Prestazioni annualizzate apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 338 + 337 @@ -963,7 +955,7 @@ Inserisci l’importo del tuo fondo di emergenza: apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 111 + 110 @@ -979,7 +971,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 284 + 282 apps/client/src/app/pages/public/public-page.html @@ -999,7 +991,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 296 + 294 @@ -1023,7 +1015,7 @@ Segnala un’anomalia dei dati apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 456 + 452 @@ -1063,7 +1055,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 362 + 373 @@ -1071,11 +1063,11 @@ anno corrente apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -1083,11 +1075,11 @@ 1 anno apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -1095,11 +1087,11 @@ 5 anni apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -1107,7 +1099,7 @@ Performance with currency effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 135 + 134 @@ -1115,11 +1107,11 @@ Massimo apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 217 + 221 libs/ui/src/lib/assistant/assistant.component.ts - 414 + 425 @@ -1135,7 +1127,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 195 + 192 @@ -1151,7 +1143,7 @@ apps/client/src/app/components/header/header.component.html - 375 + 370 apps/client/src/app/pages/about/overview/about-overview-page.routes.ts @@ -1183,7 +1175,7 @@ Il mio Ghostfolio apps/client/src/app/components/header/header.component.html - 277 + 276 apps/client/src/app/pages/user-account/user-account-page.routes.ts @@ -1343,7 +1335,7 @@ Accesso concesso apps/client/src/app/components/user-account-access/user-account-access.html - 57 + 59 @@ -1371,7 +1363,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 97 + 93 apps/client/src/app/components/header/header.component.html @@ -1379,11 +1371,11 @@ apps/client/src/app/components/header/header.component.html - 268 + 267 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 381 + 378 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1439,7 +1431,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 141 + 140 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -1455,7 +1447,7 @@ Saldo di cassa apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 45 + 43 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -1471,7 +1463,7 @@ Piattaforma apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 90 + 88 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -1499,7 +1491,7 @@ apps/client/src/app/components/header/header.component.html - 289 + 287 libs/common/src/lib/routes/routes.ts @@ -1605,6 +1597,10 @@ apps/client/src/app/pages/blog/2025/11/black-weeks-2025/black-weeks-2025-page.html 147 + + apps/client/src/app/pages/blog/2026/04/ghostfolio-3/ghostfolio-3-page.html + 269 + apps/client/src/app/pages/blog/blog-page.html 5 @@ -1622,6 +1618,14 @@ 32 + + Duration + Duration + + apps/client/src/app/components/admin-overview/admin-overview.html + 172 + + Frequently Asked Questions (FAQ) Domande più frequenti (FAQ) @@ -1651,7 +1655,7 @@ apps/client/src/app/components/header/header.component.html - 361 + 356 apps/client/src/app/pages/features/features-page.html @@ -1679,7 +1683,7 @@ apps/client/src/app/components/header/header.component.html - 248 + 247 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html @@ -1687,11 +1691,11 @@ apps/client/src/app/pages/admin/admin-page.component.ts - 45 + 41 apps/client/src/app/pages/resources/resources-page.component.ts - 29 + 27 libs/common/src/lib/routes/routes.ts @@ -1715,7 +1719,7 @@ apps/client/src/app/components/header/header.component.html - 408 + 403 apps/client/src/app/components/home-market/home-market.html @@ -1731,7 +1735,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 39 + 37 libs/common/src/lib/routes/routes.ts @@ -1851,7 +1855,7 @@ Cronologia degli investimenti apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 436 + 434 @@ -1859,7 +1863,7 @@ In alto apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 305 + 303 @@ -1867,7 +1871,7 @@ In basso apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 354 + 352 @@ -1891,7 +1895,7 @@ Partecipazioni apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 102 + 100 apps/client/src/app/components/home-holdings/home-holdings.html @@ -1927,7 +1931,7 @@ Current week apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 @@ -1935,7 +1939,7 @@ Aggiungi un’attività apps/client/src/app/components/home-overview/home-overview.html - 60 + 57 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html @@ -1951,7 +1955,7 @@ libs/ui/src/lib/i18n.ts - 42 + 41 @@ -1971,7 +1975,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 120 + 119 @@ -1979,11 +1983,11 @@ Quantità apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 157 + 155 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 185 + 183 libs/ui/src/lib/activities-table/activities-table.component.html @@ -1999,7 +2003,7 @@ Prezzo unitario apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 210 + 208 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2019,7 +2023,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 271 + 268 @@ -2027,31 +2031,35 @@ Attività apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 86 + 84 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 113 + 111 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html 226 + + apps/client/src/app/components/admin-overview/admin-overview.html + 38 + apps/client/src/app/components/admin-tag/admin-tag.component.html 45 apps/client/src/app/components/admin-users/admin-users.html - 118 + 114 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 231 + 229 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 348 + 342 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -2075,7 +2083,7 @@ Importazione dei dati... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 174 + 171 @@ -2083,7 +2091,7 @@ L’importazione è stata completata apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 184 + 181 @@ -2107,11 +2115,11 @@ apps/client/src/app/components/header/header.component.html - 313 + 309 apps/client/src/app/components/header/header.component.html - 389 + 384 apps/client/src/app/pages/pricing/pricing-page.routes.ts @@ -2139,7 +2147,7 @@ apps/client/src/app/components/header/header.component.html - 258 + 257 apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts @@ -2179,7 +2187,7 @@ Iscrizione apps/client/src/app/components/admin-users/admin-users.html - 80 + 76 libs/common/src/lib/routes/routes.ts @@ -2219,7 +2227,7 @@ apps/client/src/app/components/header/header.component.html - 301 + 297 apps/client/src/app/pages/resources/overview/resources-overview.component.html @@ -2267,7 +2275,7 @@ Importa le attività apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 92 + 93 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2391,7 +2399,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 192 + 189 @@ -2407,7 +2415,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 194 + 191 @@ -2419,7 +2427,7 @@ libs/ui/src/lib/i18n.ts - 17 + 16 @@ -2447,7 +2455,7 @@ Prezzo massimo apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 147 + 145 @@ -2483,7 +2491,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 268 + 266 @@ -2495,11 +2503,11 @@ apps/client/src/app/components/admin-users/admin-users.html - 60 + 56 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 278 + 276 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -2511,7 +2519,7 @@ Prezzo minimo apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 130 + 129 @@ -2535,11 +2543,11 @@ Interesse apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 69 + 67 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 359 + 358 libs/ui/src/lib/fire-calculator/fire-calculator.component.ts @@ -2547,7 +2555,7 @@ libs/ui/src/lib/i18n.ts - 40 + 39 @@ -2603,7 +2611,7 @@ libs/ui/src/lib/i18n.ts - 109 + 108 @@ -2619,7 +2627,7 @@ libs/ui/src/lib/i18n.ts - 110 + 109 @@ -2627,7 +2635,7 @@ Filtra per... apps/client/src/app/components/admin-market-data/admin-market-data.component.ts - 383 + 368 @@ -2675,11 +2683,11 @@ Could not validate form apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 570 + 594 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 573 + 597 @@ -2703,7 +2711,7 @@ Escluso dall’analisi apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 274 + 273 @@ -2747,7 +2755,7 @@ Importo totale apps/client/src/app/components/investment-chart/investment-chart.component.ts - 146 + 147 @@ -2755,7 +2763,15 @@ Evoluzione del portafoglio apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 407 + 405 + + + + Code + Code + + apps/client/src/app/components/admin-overview/admin-overview.html + 159 @@ -2763,7 +2779,7 @@ Tasso di risparmio apps/client/src/app/components/investment-chart/investment-chart.component.ts - 202 + 205 @@ -2771,7 +2787,7 @@ Account apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 85 + 86 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2803,11 +2819,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 242 + 240 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 286 + 283 libs/ui/src/lib/i18n.ts @@ -2839,11 +2855,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 318 + 314 libs/ui/src/lib/i18n.ts - 30 + 29 @@ -2851,7 +2867,7 @@ Etichetta libs/ui/src/lib/i18n.ts - 31 + 30 libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html @@ -2863,11 +2879,11 @@ Contanti apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 219 + 218 libs/ui/src/lib/i18n.ts - 55 + 54 @@ -2875,7 +2891,7 @@ Materia prima libs/ui/src/lib/i18n.ts - 47 + 46 @@ -2883,11 +2899,11 @@ Azione ordinaria apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 57 + 55 libs/ui/src/lib/i18n.ts - 48 + 47 @@ -2895,7 +2911,7 @@ Reddito fisso libs/ui/src/lib/i18n.ts - 49 + 48 @@ -2903,7 +2919,7 @@ Immobiliare libs/ui/src/lib/i18n.ts - 51 + 50 @@ -2919,7 +2935,7 @@ Obbligazioni libs/ui/src/lib/i18n.ts - 54 + 53 @@ -2927,7 +2943,7 @@ Criptovaluta libs/ui/src/lib/i18n.ts - 57 + 56 @@ -2935,7 +2951,7 @@ ETF libs/ui/src/lib/i18n.ts - 58 + 57 @@ -2943,7 +2959,7 @@ Fondo comune di investimento libs/ui/src/lib/i18n.ts - 60 + 59 @@ -2951,7 +2967,7 @@ Metalli preziosi libs/ui/src/lib/i18n.ts - 61 + 60 @@ -2959,7 +2975,7 @@ Azione ordinaria privata libs/ui/src/lib/i18n.ts - 62 + 61 @@ -2967,7 +2983,7 @@ Azione libs/ui/src/lib/i18n.ts - 63 + 62 @@ -2983,7 +2999,7 @@ libs/ui/src/lib/i18n.ts - 16 + 15 @@ -2991,7 +3007,7 @@ Altro libs/ui/src/lib/i18n.ts - 25 + 24 libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -3023,7 +3039,7 @@ libs/ui/src/lib/top-holdings/top-holdings.component.html - 181 + 186 @@ -3031,7 +3047,7 @@ Nord America libs/ui/src/lib/i18n.ts - 73 + 72 @@ -3039,7 +3055,7 @@ Africa libs/ui/src/lib/i18n.ts - 70 + 69 @@ -3047,7 +3063,7 @@ Asia libs/ui/src/lib/i18n.ts - 71 + 70 @@ -3055,7 +3071,7 @@ Europa libs/ui/src/lib/i18n.ts - 72 + 71 @@ -3071,7 +3087,7 @@ Oceania libs/ui/src/lib/i18n.ts - 74 + 73 @@ -3079,7 +3095,7 @@ Sud America libs/ui/src/lib/i18n.ts - 75 + 74 @@ -3139,15 +3155,15 @@ Dividendi apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 81 + 79 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 186 + 184 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 372 + 371 apps/client/src/app/pages/features/features-page.html @@ -3155,7 +3171,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 198 + 196 apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts @@ -3163,7 +3179,7 @@ libs/ui/src/lib/i18n.ts - 38 + 37 @@ -3171,7 +3187,7 @@ Cronologia dei dividendi apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 495 + 493 @@ -3191,11 +3207,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 251 + 249 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 305 + 302 libs/ui/src/lib/i18n.ts @@ -3207,7 +3223,7 @@ Registrazione utente apps/client/src/app/components/admin-overview/admin-overview.html - 37 + 50 @@ -3215,7 +3231,7 @@ Convalida dei dati... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 293 + 291 @@ -3231,7 +3247,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 67 + 69 @@ -3239,7 +3255,7 @@ Dati del mercato apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 403 + 400 libs/common/src/lib/routes/routes.ts @@ -3249,6 +3265,10 @@ Users Utenti + + apps/client/src/app/components/admin-overview/admin-overview.html + 24 + libs/common/src/lib/routes/routes.ts 61 @@ -3299,7 +3319,7 @@ Importa i dividendi apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 136 + 132 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3335,7 +3355,7 @@ Sovvenzione libs/ui/src/lib/i18n.ts - 19 + 18 @@ -3343,7 +3363,7 @@ Rischio più elevato libs/ui/src/lib/i18n.ts - 20 + 19 @@ -3351,7 +3371,7 @@ Rischio inferiore libs/ui/src/lib/i18n.ts - 22 + 21 @@ -3367,7 +3387,7 @@ Fondo pensione libs/ui/src/lib/i18n.ts - 28 + 27 @@ -3383,7 +3403,7 @@ Satellite libs/ui/src/lib/i18n.ts - 29 + 28 @@ -3635,11 +3655,11 @@ Could not save asset profile apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 604 + 628 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 607 + 631 @@ -3655,7 +3675,7 @@ Commissioni apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 208 + 206 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -3734,20 +3754,12 @@ 12 - - Switch to Ghostfolio Open Source or Ghostfolio Basic easily - Passa facilmente a Ghostfolio Open Source o a Ghostfolio Basic - - libs/ui/src/lib/i18n.ts - 14 - - Loan Loan libs/ui/src/lib/i18n.ts - 59 + 58 @@ -3815,7 +3827,7 @@ Imita l’utente apps/client/src/app/components/admin-users/admin-users.html - 233 + 229 @@ -3823,7 +3835,7 @@ Elimina l’utente apps/client/src/app/components/admin-users/admin-users.html - 254 + 250 @@ -3871,7 +3883,7 @@ Current year apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 @@ -3907,7 +3919,7 @@ Asset profile has been saved apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 594 + 618 @@ -3931,7 +3943,7 @@ Aggiornamento del saldo di cassa apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 108 + 109 @@ -3987,7 +3999,7 @@ Questa attività esiste già. libs/ui/src/lib/i18n.ts - 21 + 20 @@ -4051,7 +4063,7 @@ Serie attuale apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 457 + 455 @@ -4059,7 +4071,7 @@ Serie più lunga apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 466 + 464 @@ -4067,7 +4079,7 @@ Mesi libs/ui/src/lib/i18n.ts - 24 + 23 @@ -4075,7 +4087,7 @@ Anni libs/ui/src/lib/i18n.ts - 33 + 32 @@ -4083,7 +4095,7 @@ Mese libs/ui/src/lib/i18n.ts - 23 + 22 @@ -4091,7 +4103,7 @@ Anno libs/ui/src/lib/i18n.ts - 32 + 31 @@ -4099,7 +4111,7 @@ View Details apps/client/src/app/components/admin-users/admin-users.html - 225 + 221 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -4111,7 +4123,7 @@ Passività apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 302 + 301 apps/client/src/app/pages/features/features-page.html @@ -4251,7 +4263,7 @@ Passività libs/ui/src/lib/i18n.ts - 41 + 40 @@ -4483,7 +4495,7 @@ Sign in with OpenID Connect apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 55 + 57 @@ -4495,7 +4507,7 @@ libs/ui/src/lib/i18n.ts - 37 + 36 @@ -4503,7 +4515,7 @@ Prezioso libs/ui/src/lib/i18n.ts - 43 + 42 @@ -4527,7 +4539,7 @@ Asset apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 233 + 232 @@ -4535,7 +4547,7 @@ Preimpostato libs/ui/src/lib/i18n.ts - 27 + 26 @@ -4559,7 +4571,7 @@ Giappone libs/ui/src/lib/i18n.ts - 93 + 92 @@ -4583,7 +4595,7 @@ Configura i tuoi account apps/client/src/app/components/home-overview/home-overview.html - 19 + 16 @@ -4591,7 +4603,7 @@ Ottieni una panoramica finanziaria completa aggiungendo i tuoi conti bancari e di trading. apps/client/src/app/components/home-overview/home-overview.html - 21 + 18 @@ -4599,7 +4611,7 @@ Cattura le tue attività apps/client/src/app/components/home-overview/home-overview.html - 28 + 25 @@ -4607,7 +4619,7 @@ Registra le tue attività di investimento per tenere aggiornato il tuo portafoglio. apps/client/src/app/components/home-overview/home-overview.html - 30 + 27 @@ -4615,7 +4627,7 @@ Monitora e analizza il tuo portafoglio apps/client/src/app/components/home-overview/home-overview.html - 37 + 34 @@ -4623,7 +4635,7 @@ Monitora i tuoi progressi in tempo reale, con analisi e approfondimenti completi. apps/client/src/app/components/home-overview/home-overview.html - 39 + 36 @@ -4639,7 +4651,7 @@ Configura gli account apps/client/src/app/components/home-overview/home-overview.html - 52 + 49 @@ -4807,11 +4819,11 @@ Could not parse scraper configuration apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 525 + 545 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 528 + 548 @@ -5369,7 +5381,7 @@ libs/ui/src/lib/i18n.ts - 100 + 99 @@ -5381,7 +5393,7 @@ libs/ui/src/lib/i18n.ts - 18 + 17 @@ -5473,7 +5485,7 @@ Commissione apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 258 + 255 libs/ui/src/lib/activities-table/activities-table.component.html @@ -5481,7 +5493,7 @@ libs/ui/src/lib/i18n.ts - 39 + 38 @@ -5541,7 +5553,7 @@ Versione apps/client/src/app/components/admin-overview/admin-overview.html - 7 + 11 @@ -5705,7 +5717,7 @@ Paura estrema libs/ui/src/lib/i18n.ts - 107 + 106 @@ -5713,7 +5725,7 @@ Avidità estrema libs/ui/src/lib/i18n.ts - 108 + 107 @@ -5721,7 +5733,7 @@ Neutrale libs/ui/src/lib/i18n.ts - 111 + 110 @@ -5737,7 +5749,7 @@ Confermi di voler cancellare questo messaggio di sistema? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 209 + 235 @@ -5761,7 +5773,7 @@ Saldi di cassa apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 146 + 142 @@ -5797,7 +5809,7 @@ L’attuale prezzo di mercato è apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 722 + 743 @@ -5853,7 +5865,7 @@ Argentina libs/ui/src/lib/i18n.ts - 79 + 78 @@ -5877,7 +5889,7 @@ I dati di mercato sono ritardati di apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts - 95 + 94 @@ -5885,7 +5897,7 @@ Investimento apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 171 + 169 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -5917,7 +5929,7 @@ Close Holding apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 447 + 442 @@ -5925,7 +5937,7 @@ Rendimento assoluto dell’Asset apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 168 + 166 @@ -5933,7 +5945,7 @@ Rendimento dell’Asset apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 190 + 188 @@ -5941,7 +5953,7 @@ Rendimento assoluto della Valuta apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 211 + 209 @@ -5949,7 +5961,7 @@ Rendimento della Valuta apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 236 + 234 @@ -5957,7 +5969,7 @@ Da inizio settimana libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5965,11 +5977,11 @@ Settimana corrente apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5977,7 +5989,7 @@ Da inizio mese libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5985,11 +5997,11 @@ Mese corrente apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5997,7 +6009,7 @@ Da inizio anno libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -6033,7 +6045,7 @@ anno apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 apps/client/src/app/pages/resources/personal-finance-tools/product-page.html @@ -6045,7 +6057,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -6053,11 +6065,11 @@ anni apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -6077,7 +6089,15 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 63 + 76 + + + + Find a holding... + Find a holding... + + libs/ui/src/lib/assistant/assistant.component.ts + 472 @@ -6085,7 +6105,7 @@ Generale apps/client/src/app/pages/faq/faq-page.component.ts - 41 + 35 @@ -6093,7 +6113,7 @@ Cloud apps/client/src/app/pages/faq/faq-page.component.ts - 46 + 40 libs/common/src/lib/routes/routes.ts @@ -6105,7 +6125,7 @@ Self-Hosting apps/client/src/app/pages/faq/faq-page.component.ts - 52 + 46 libs/common/src/lib/routes/routes.ts @@ -6146,7 +6166,7 @@ Attivo apps/client/src/app/components/home-holdings/home-holdings.component.ts - 63 + 61 @@ -6154,7 +6174,7 @@ Chiuso apps/client/src/app/components/home-holdings/home-holdings.component.ts - 64 + 62 @@ -6162,7 +6182,7 @@ Indonesia libs/ui/src/lib/i18n.ts - 91 + 90 @@ -6170,7 +6190,7 @@ Attività apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 229 + 227 @@ -6178,7 +6198,7 @@ Rendimento da Dividendi apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 196 + 194 @@ -6210,7 +6230,7 @@ Liquidità libs/ui/src/lib/i18n.ts - 50 + 49 @@ -6253,6 +6273,14 @@ 205 + + Jump to a page... + Jump to a page... + + libs/ui/src/lib/assistant/assistant.component.ts + 473 + + Danger Zone Zona di Pericolo @@ -6266,7 +6294,7 @@ Chiudi l’account apps/client/src/app/components/user-account-settings/user-account-settings.html - 316 + 318 @@ -6274,7 +6302,7 @@ Per ETF posseduti apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 329 + 327 @@ -6282,7 +6310,7 @@ Approssimato in base ai principali ETF posseduti apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 336 + 334 @@ -6314,7 +6342,7 @@ Visualizza di più libs/ui/src/lib/top-holdings/top-holdings.component.html - 174 + 179 @@ -6550,7 +6578,7 @@ Australia libs/ui/src/lib/i18n.ts - 80 + 79 @@ -6558,7 +6586,7 @@ Austria libs/ui/src/lib/i18n.ts - 81 + 80 @@ -6566,7 +6594,7 @@ Belgio libs/ui/src/lib/i18n.ts - 82 + 81 @@ -6574,7 +6602,7 @@ Bulgaria libs/ui/src/lib/i18n.ts - 84 + 83 @@ -6590,7 +6618,7 @@ Canada libs/ui/src/lib/i18n.ts - 85 + 84 @@ -6598,7 +6626,7 @@ Repubblica Ceca libs/ui/src/lib/i18n.ts - 86 + 85 @@ -6606,7 +6634,7 @@ Finlandia libs/ui/src/lib/i18n.ts - 87 + 86 @@ -6614,7 +6642,7 @@ Francia libs/ui/src/lib/i18n.ts - 88 + 87 @@ -6622,7 +6650,7 @@ Germania libs/ui/src/lib/i18n.ts - 89 + 88 @@ -6630,7 +6658,7 @@ India libs/ui/src/lib/i18n.ts - 90 + 89 @@ -6638,7 +6666,7 @@ Italia libs/ui/src/lib/i18n.ts - 92 + 91 @@ -6646,7 +6674,7 @@ Olanda libs/ui/src/lib/i18n.ts - 94 + 93 @@ -6654,7 +6682,7 @@ Nuova Zelanda libs/ui/src/lib/i18n.ts - 95 + 94 @@ -6662,7 +6690,7 @@ Polonia libs/ui/src/lib/i18n.ts - 96 + 95 @@ -6670,7 +6698,7 @@ Romania libs/ui/src/lib/i18n.ts - 97 + 96 @@ -6678,7 +6706,7 @@ Sud Africa libs/ui/src/lib/i18n.ts - 99 + 98 @@ -6686,7 +6714,7 @@ Tailandia libs/ui/src/lib/i18n.ts - 101 + 100 @@ -6694,7 +6722,7 @@ Stati Uniti libs/ui/src/lib/i18n.ts - 104 + 103 @@ -6702,7 +6730,7 @@ Errore apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 713 + 734 @@ -6742,7 +6770,7 @@ Inattivo apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html - 88 + 85 @@ -6786,7 +6814,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 341 + 338 apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.html @@ -6826,7 +6854,7 @@ apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 130 + 124 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -6842,7 +6870,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 343 + 340 libs/ui/src/lib/i18n.ts @@ -6862,7 +6890,7 @@ Si libs/ui/src/lib/i18n.ts - 34 + 33 @@ -6910,7 +6938,7 @@ Soglia Minima apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 55 + 52 @@ -6918,7 +6946,7 @@ Soglia Massima apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 93 + 87 @@ -6946,8 +6974,12 @@ - has been copied to the clipboard - has been copied to the clipboard + has been copied to the clipboard + has been copied to the clipboard + + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 378 + libs/ui/src/lib/value/value.component.ts 180 @@ -7126,7 +7158,7 @@ Ottieni accesso a oltre 80’000+ titoli da oltre 50 borse libs/ui/src/lib/i18n.ts - 26 + 25 @@ -7134,7 +7166,7 @@ Ucraina libs/ui/src/lib/i18n.ts - 102 + 101 @@ -7154,7 +7186,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 44 + 42 libs/common/src/lib/routes/routes.ts @@ -7170,7 +7202,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 33 + 31 libs/common/src/lib/routes/routes.ts @@ -7256,7 +7288,7 @@ Inserisci la tua API key di Ghostfolio: apps/client/src/app/pages/api/api-page.component.ts - 46 + 62 @@ -7264,7 +7296,7 @@ Richieste API oggi apps/client/src/app/components/admin-users/admin-users.html - 161 + 157 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -7360,11 +7392,11 @@ apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 109 + 108 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 136 + 130 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -7376,7 +7408,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 352 + 349 libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.html @@ -7400,7 +7432,7 @@ Accesso ricevuto apps/client/src/app/components/user-account-access/user-account-access.html - 53 + 55 @@ -7424,7 +7456,7 @@ Change with currency effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 116 + 115 @@ -7448,7 +7480,7 @@ Pigro apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7456,7 +7488,7 @@ Istantaneo apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7496,7 +7528,7 @@ fine giornata apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7504,7 +7536,7 @@ in tempo reale apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7532,7 +7564,7 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 @@ -7544,7 +7576,7 @@ apps/client/src/app/components/home-overview/home-overview.component.ts - 54 + 52 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -7552,11 +7584,11 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 390 + 394 @@ -7588,7 +7620,7 @@ Total amount apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 95 + 94 @@ -7596,7 +7628,7 @@ Armenia libs/ui/src/lib/i18n.ts - 78 + 77 @@ -7604,7 +7636,7 @@ Isole Vergini Britanniche libs/ui/src/lib/i18n.ts - 83 + 82 @@ -7612,7 +7644,7 @@ Singapore libs/ui/src/lib/i18n.ts - 98 + 97 @@ -7675,20 +7707,12 @@ 240 - - Find account, holding or page... - Find account, holding or page... - - libs/ui/src/lib/assistant/assistant.component.ts - 115 - - Generate Security Token Genera Token di Sicurezza apps/client/src/app/components/admin-users/admin-users.html - 243 + 239 @@ -7696,7 +7720,7 @@ United Kingdom libs/ui/src/lib/i18n.ts - 103 + 102 @@ -7745,7 +7769,7 @@ () e gia in uso. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 649 + 675 @@ -7753,7 +7777,7 @@ Si è verificato un errore durante l’aggiornamento di (). apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 657 + 683 @@ -7817,7 +7841,7 @@ qualcuno apps/client/src/app/pages/public/public-page.component.ts - 61 + 62 @@ -7849,7 +7873,7 @@ Vuoi davvero eliminare questo elemento? libs/ui/src/lib/benchmark/benchmark.component.ts - 139 + 137 @@ -7857,7 +7881,7 @@ Esci apps/client/src/app/components/header/header.component.html - 329 + 325 @@ -7890,7 +7914,7 @@ L’account utente demo è stato sincronizzato. apps/client/src/app/components/admin-overview/admin-overview.component.ts - 277 + 303 @@ -7898,7 +7922,7 @@ Sincronizza l’account utente demo apps/client/src/app/components/admin-overview/admin-overview.html - 204 + 128 @@ -8104,7 +8128,7 @@ Current month apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 @@ -8277,7 +8301,7 @@ Generare apps/client/src/app/components/user-account-access/user-account-access.html - 43 + 45 @@ -8317,7 +8341,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 39 + 35 @@ -8325,7 +8349,7 @@ Gestisci profilo risorsa apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 471 + 467 @@ -8333,7 +8357,7 @@ Investimenti alternativi libs/ui/src/lib/i18n.ts - 46 + 45 @@ -8341,7 +8365,7 @@ Da collezione libs/ui/src/lib/i18n.ts - 56 + 55 diff --git a/apps/client/src/locales/messages.ko.xlf b/apps/client/src/locales/messages.ko.xlf index 0d35cd867..c0e3501a5 100644 --- a/apps/client/src/locales/messages.ko.xlf +++ b/apps/client/src/locales/messages.ko.xlf @@ -308,7 +308,7 @@ 현금 잔액 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 45 + 43 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -324,7 +324,7 @@ 플랫폼 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 90 + 88 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -340,7 +340,7 @@ 현금 잔액 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 146 + 142 @@ -392,7 +392,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 135 + 134 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -448,7 +448,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 141 + 140 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -468,15 +468,15 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 201 + 199 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 204 + 202 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 207 + 205 libs/ui/src/lib/account-balances/account-balances.component.html @@ -552,7 +552,7 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 140 + 213 apps/client/src/app/components/admin-platform/admin-platform.component.html @@ -588,7 +588,7 @@ 이 계정을 정말 삭제하시겠습니까? libs/ui/src/lib/accounts-table/accounts-table.component.ts - 148 + 146 @@ -628,11 +628,11 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 151 + 150 libs/ui/src/lib/i18n.ts - 15 + 14 @@ -719,12 +719,20 @@ 2 + + Find an account... + Find an account... + + libs/ui/src/lib/assistant/assistant.component.ts + 471 + + Date 날짜 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 157 + 156 libs/ui/src/lib/account-balances/account-balances.component.html @@ -796,7 +804,7 @@ 다음 기준으로 필터... apps/client/src/app/components/admin-market-data/admin-market-data.component.ts - 383 + 368 @@ -812,7 +820,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 219 + 217 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -836,7 +844,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 40 + 42 @@ -920,7 +928,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 67 + 69 @@ -932,7 +940,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 268 + 266 @@ -944,11 +952,11 @@ apps/client/src/app/components/admin-users/admin-users.html - 60 + 56 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 278 + 276 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -968,7 +976,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 284 + 282 apps/client/src/app/pages/public/public-page.html @@ -988,7 +996,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 296 + 294 @@ -1028,7 +1036,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 271 + 268 @@ -1072,7 +1080,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 120 + 119 @@ -1080,7 +1088,7 @@ 이 쿠폰을 정말 삭제하시겠습니까? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 196 + 222 @@ -1088,7 +1096,7 @@ 이 시스템 메시지를 정말 삭제하시겠습니까? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 209 + 235 @@ -1096,7 +1104,7 @@ 정말로 캐시를 플러시하시겠습니까? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 233 + 259 @@ -1104,7 +1112,7 @@ 시스템 메시지를 설정하십시오: apps/client/src/app/components/admin-overview/admin-overview.component.ts - 253 + 279 @@ -1112,31 +1120,15 @@ 버전 apps/client/src/app/components/admin-overview/admin-overview.html - 7 - - - - User Count - 사용자 수 - - apps/client/src/app/components/admin-overview/admin-overview.html - 16 - - - - Activity Count - 활동 수 - - apps/client/src/app/components/admin-overview/admin-overview.html - 22 + 11 per User 사용자당 - apps/client/src/app/components/admin-overview/admin-overview.html - 31 + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 166 @@ -1152,7 +1144,7 @@ 사용자 가입 apps/client/src/app/components/admin-overview/admin-overview.html - 37 + 50 @@ -1160,7 +1152,7 @@ 읽기 전용 모드 apps/client/src/app/components/admin-overview/admin-overview.html - 51 + 64 @@ -1168,7 +1160,7 @@ 시스템 메시지 apps/client/src/app/components/admin-overview/admin-overview.html - 75 + 88 @@ -1176,7 +1168,7 @@ 메시지 설정 apps/client/src/app/components/admin-overview/admin-overview.html - 97 + 110 @@ -1184,7 +1176,7 @@ 쿠폰 apps/client/src/app/components/admin-overview/admin-overview.html - 105 + 148 @@ -1192,7 +1184,7 @@ 추가 apps/client/src/app/components/admin-overview/admin-overview.html - 185 + 265 libs/ui/src/lib/account-balances/account-balances.component.html @@ -1204,7 +1196,7 @@ 유지 관리 apps/client/src/app/components/admin-overview/admin-overview.html - 193 + 117 @@ -1212,7 +1204,7 @@ 캐시 플러시 apps/client/src/app/components/admin-overview/admin-overview.html - 209 + 133 @@ -1248,7 +1240,7 @@ Asset profile has been saved apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 594 + 618 @@ -1288,7 +1280,7 @@ 올해 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 @@ -1392,7 +1384,7 @@ 일일 참여 apps/client/src/app/components/admin-users/admin-users.html - 140 + 136 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1404,7 +1396,7 @@ 마지막 요청 apps/client/src/app/components/admin-users/admin-users.html - 186 + 182 @@ -1412,7 +1404,7 @@ 사용자 대리 접속 apps/client/src/app/components/admin-users/admin-users.html - 233 + 229 @@ -1420,7 +1412,7 @@ 사용자 삭제 apps/client/src/app/components/admin-users/admin-users.html - 254 + 250 @@ -1428,11 +1420,11 @@ Could not validate form apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 570 + 594 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 573 + 597 @@ -1464,7 +1456,7 @@ apps/client/src/app/components/header/header.component.html - 258 + 257 apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts @@ -1500,7 +1492,7 @@ 고스트폴리오 소개 apps/client/src/app/components/header/header.component.html - 326 + 322 apps/client/src/app/pages/about/overview/about-overview-page.html @@ -1512,15 +1504,15 @@ 로그인 apps/client/src/app/components/header/header.component.html - 422 + 421 apps/client/src/app/components/header/header.component.ts - 298 + 296 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 79 + 81 libs/common/src/lib/routes/routes.ts @@ -1536,7 +1528,7 @@ 이런! 잘못된 보안 토큰. apps/client/src/app/components/header/header.component.ts - 313 + 311 apps/client/src/app/components/user-account-access/user-account-access.component.ts @@ -1568,7 +1560,7 @@ libs/ui/src/lib/i18n.ts - 109 + 108 @@ -1584,7 +1576,7 @@ libs/ui/src/lib/i18n.ts - 110 + 109 @@ -1628,7 +1620,7 @@ 계정 설정 apps/client/src/app/components/home-overview/home-overview.html - 19 + 16 @@ -1636,7 +1628,7 @@ 은행 및 중개 계좌를 추가하여 포괄적인 재무 개요를 확인하세요. apps/client/src/app/components/home-overview/home-overview.html - 21 + 18 @@ -1644,7 +1636,7 @@ 활동을 캡처하세요 apps/client/src/app/components/home-overview/home-overview.html - 28 + 25 @@ -1652,7 +1644,7 @@ 투자 활동을 기록하여 포트폴리오를 최신 상태로 유지하세요. apps/client/src/app/components/home-overview/home-overview.html - 30 + 27 @@ -1660,7 +1652,7 @@ 포트폴리오를 모니터링하고 분석하세요. apps/client/src/app/components/home-overview/home-overview.html - 37 + 34 @@ -1668,7 +1660,7 @@ 포괄적인 분석과 통찰력을 통해 진행 상황을 실시간으로 추적하세요. apps/client/src/app/components/home-overview/home-overview.html - 39 + 36 @@ -1676,7 +1668,7 @@ 계정 설정 apps/client/src/app/components/home-overview/home-overview.html - 52 + 49 @@ -1684,7 +1676,7 @@ 이번주 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 @@ -1692,7 +1684,7 @@ 활동 추가 apps/client/src/app/components/home-overview/home-overview.html - 60 + 57 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html @@ -1704,7 +1696,15 @@ 총액 apps/client/src/app/components/investment-chart/investment-chart.component.ts - 146 + 147 + + + + Code + Code + + apps/client/src/app/components/admin-overview/admin-overview.html + 159 @@ -1712,7 +1712,7 @@ 저축률 apps/client/src/app/components/investment-chart/investment-chart.component.ts - 202 + 205 @@ -1752,7 +1752,7 @@ apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 32 + 34 apps/client/src/app/pages/landing/landing-page.html @@ -1792,7 +1792,7 @@ 구글로 로그인 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 44 + 46 @@ -1800,7 +1800,7 @@ 로그인 상태 유지 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 66 + 68 @@ -1824,7 +1824,7 @@ 수수료 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 208 + 206 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -1840,7 +1840,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 259 + 257 @@ -1852,7 +1852,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 278 + 276 @@ -1868,7 +1868,7 @@ 자산 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 233 + 232 @@ -1876,7 +1876,7 @@ 매수 가능 금액 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 248 + 247 @@ -1884,7 +1884,7 @@ 분석에서 제외됨 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 274 + 273 @@ -1892,7 +1892,7 @@ 부채 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 302 + 301 apps/client/src/app/pages/features/features-page.html @@ -1904,7 +1904,7 @@ 순자산 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 324 + 323 @@ -1912,7 +1912,7 @@ 연환산 성과 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 338 + 337 @@ -1920,7 +1920,7 @@ 비상금 금액을 설정해 주세요. apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 111 + 110 @@ -1928,7 +1928,7 @@ 최저가 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 130 + 129 @@ -1936,7 +1936,7 @@ 최고가 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 147 + 145 @@ -1944,11 +1944,11 @@ 수량 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 157 + 155 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 185 + 183 libs/ui/src/lib/activities-table/activities-table.component.html @@ -1964,7 +1964,7 @@ 데이터 결함 보고 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 456 + 452 @@ -2144,7 +2144,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 362 + 373 @@ -2152,11 +2152,11 @@ 연초 대비 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -2164,11 +2164,11 @@ 1년 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -2176,11 +2176,11 @@ 5년 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -2188,7 +2188,7 @@ Performance with currency effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 135 + 134 @@ -2196,11 +2196,11 @@ 맥스 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 217 + 221 libs/ui/src/lib/assistant/assistant.component.ts - 414 + 425 @@ -2224,7 +2224,7 @@ 액세스 권한 부여 apps/client/src/app/components/user-account-access/user-account-access.html - 57 + 59 @@ -2496,7 +2496,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 194 + 191 @@ -2508,7 +2508,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 192 + 189 @@ -2524,7 +2524,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 195 + 192 @@ -2540,7 +2540,7 @@ apps/client/src/app/components/header/header.component.html - 375 + 370 apps/client/src/app/pages/about/overview/about-overview-page.routes.ts @@ -2640,7 +2640,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 97 + 93 apps/client/src/app/components/header/header.component.html @@ -2648,11 +2648,11 @@ apps/client/src/app/components/header/header.component.html - 268 + 267 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 381 + 378 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -2736,7 +2736,7 @@ apps/client/src/app/components/header/header.component.html - 289 + 287 libs/common/src/lib/routes/routes.ts @@ -2748,7 +2748,7 @@ 시장 데이터 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 403 + 400 libs/common/src/lib/routes/routes.ts @@ -2774,6 +2774,10 @@ Users 사용자 + + apps/client/src/app/components/admin-overview/admin-overview.html + 24 + libs/common/src/lib/routes/routes.ts 61 @@ -2796,7 +2800,7 @@ apps/client/src/app/components/header/header.component.html - 248 + 247 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html @@ -2804,11 +2808,11 @@ apps/client/src/app/pages/admin/admin-page.component.ts - 45 + 41 apps/client/src/app/pages/resources/resources-page.component.ts - 29 + 27 libs/common/src/lib/routes/routes.ts @@ -2918,6 +2922,10 @@ apps/client/src/app/pages/blog/2025/11/black-weeks-2025/black-weeks-2025-page.html 147 + + apps/client/src/app/pages/blog/2026/04/ghostfolio-3/ghostfolio-3-page.html + 269 + apps/client/src/app/pages/blog/blog-page.html 5 @@ -2932,11 +2940,11 @@ Could not parse scraper configuration apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 525 + 545 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 528 + 548 @@ -2955,6 +2963,14 @@ 32 + + Duration + Duration + + apps/client/src/app/components/admin-overview/admin-overview.html + 172 + + Frequently Asked Questions (FAQ) 자주 묻는 질문 @@ -2984,7 +3000,7 @@ apps/client/src/app/components/header/header.component.html - 361 + 356 apps/client/src/app/pages/features/features-page.html @@ -3104,7 +3120,7 @@ 시작하기 apps/client/src/app/components/header/header.component.html - 433 + 432 apps/client/src/app/pages/features/features-page.html @@ -3136,7 +3152,7 @@ 보유 종목 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 102 + 100 apps/client/src/app/components/home-holdings/home-holdings.html @@ -3184,7 +3200,7 @@ apps/client/src/app/components/header/header.component.html - 408 + 403 apps/client/src/app/components/home-market/home-market.html @@ -3200,7 +3216,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 39 + 37 libs/common/src/lib/routes/routes.ts @@ -3664,31 +3680,35 @@ 활동 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 86 + 84 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 113 + 111 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html 226 + + apps/client/src/app/components/admin-overview/admin-overview.html + 38 + apps/client/src/app/components/admin-tag/admin-tag.component.html 45 apps/client/src/app/components/admin-users/admin-users.html - 118 + 114 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 231 + 229 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 348 + 342 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -3780,7 +3800,7 @@ 현금 잔액 업데이트 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 108 + 109 @@ -3788,7 +3808,7 @@ 단가 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 210 + 208 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3800,7 +3820,7 @@ 활동 가져오기 apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 92 + 93 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3816,7 +3836,7 @@ 배당금 가져오기 apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 136 + 132 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3832,7 +3852,7 @@ 데이터 가져오는 중... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 174 + 171 @@ -3840,7 +3860,7 @@ 가져오기가 완료되었습니다. apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 184 + 181 @@ -3856,7 +3876,7 @@ 데이터 유효성을 검사하는 중... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 293 + 291 @@ -4040,7 +4060,7 @@ libs/ui/src/lib/i18n.ts - 17 + 16 @@ -4136,15 +4156,15 @@ 배당금 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 81 + 79 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 186 + 184 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 372 + 371 apps/client/src/app/pages/features/features-page.html @@ -4152,7 +4172,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 198 + 196 apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts @@ -4160,7 +4180,7 @@ libs/ui/src/lib/i18n.ts - 38 + 37 @@ -4200,7 +4220,7 @@ 상위 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 305 + 303 @@ -4208,7 +4228,7 @@ 하위 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 354 + 352 @@ -4216,7 +4236,7 @@ 포트폴리오 진화 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 407 + 405 @@ -4224,7 +4244,7 @@ 투자 일정 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 436 + 434 @@ -4232,7 +4252,7 @@ 현재 연속 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 457 + 455 @@ -4240,7 +4260,7 @@ 최장 연속 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 466 + 464 @@ -4248,7 +4268,7 @@ 배당 일정 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 495 + 493 @@ -4280,11 +4300,11 @@ apps/client/src/app/components/header/header.component.html - 313 + 309 apps/client/src/app/components/header/header.component.html - 389 + 384 apps/client/src/app/pages/pricing/pricing-page.routes.ts @@ -4472,11 +4492,11 @@ Could not save asset profile apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 604 + 628 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 607 + 631 @@ -4524,7 +4544,7 @@ 등록 apps/client/src/app/components/admin-users/admin-users.html - 80 + 76 libs/common/src/lib/routes/routes.ts @@ -4849,7 +4869,7 @@ libs/ui/src/lib/i18n.ts - 100 + 99 @@ -4861,7 +4881,7 @@ libs/ui/src/lib/i18n.ts - 18 + 17 @@ -4877,7 +4897,7 @@ apps/client/src/app/components/header/header.component.html - 301 + 297 apps/client/src/app/pages/resources/overview/resources-overview.component.html @@ -4925,7 +4945,7 @@ 나의 고스트폴리오 apps/client/src/app/components/header/header.component.html - 277 + 276 apps/client/src/app/pages/user-account/user-account-page.routes.ts @@ -5093,7 +5113,7 @@ Loan libs/ui/src/lib/i18n.ts - 59 + 58 @@ -5141,11 +5161,11 @@ 관심 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 69 + 67 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 359 + 358 libs/ui/src/lib/fire-calculator/fire-calculator.component.ts @@ -5153,7 +5173,7 @@ libs/ui/src/lib/i18n.ts - 40 + 39 @@ -5197,7 +5217,7 @@ 계정 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 85 + 86 libs/ui/src/lib/activities-table/activities-table.component.html @@ -5237,11 +5257,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 242 + 240 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 286 + 283 libs/ui/src/lib/i18n.ts @@ -5269,11 +5289,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 251 + 249 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 305 + 302 libs/ui/src/lib/i18n.ts @@ -5304,14 +5324,6 @@ 13 - - Switch to Ghostfolio Open Source or Ghostfolio Basic easily - Ghostfolio Open Source 또는 Ghostfolio Basic으로 쉽게 전환하세요 - - libs/ui/src/lib/i18n.ts - 14 - - Emergency Fund 비상자금 @@ -5325,7 +5337,7 @@ libs/ui/src/lib/i18n.ts - 16 + 15 @@ -5333,7 +5345,7 @@ 승인하다 libs/ui/src/lib/i18n.ts - 19 + 18 @@ -5341,7 +5353,7 @@ 더 높은 위험 libs/ui/src/lib/i18n.ts - 20 + 19 @@ -5349,7 +5361,7 @@ 이 활동은 이미 존재합니다. libs/ui/src/lib/i18n.ts - 21 + 20 @@ -5357,7 +5369,7 @@ 일본 libs/ui/src/lib/i18n.ts - 93 + 92 @@ -5365,7 +5377,7 @@ 위험 감소 libs/ui/src/lib/i18n.ts - 22 + 21 @@ -5373,7 +5385,7 @@ libs/ui/src/lib/i18n.ts - 23 + 22 @@ -5381,7 +5393,7 @@ 개월 libs/ui/src/lib/i18n.ts - 24 + 23 @@ -5389,7 +5401,7 @@ 다른 libs/ui/src/lib/i18n.ts - 25 + 24 libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -5401,7 +5413,7 @@ 프리셋 libs/ui/src/lib/i18n.ts - 27 + 26 @@ -5417,7 +5429,7 @@ 퇴직금 libs/ui/src/lib/i18n.ts - 28 + 27 @@ -5433,7 +5445,7 @@ 위성 libs/ui/src/lib/i18n.ts - 29 + 28 @@ -5457,11 +5469,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 318 + 314 libs/ui/src/lib/i18n.ts - 30 + 29 @@ -5469,7 +5481,7 @@ 꼬리표 libs/ui/src/lib/i18n.ts - 31 + 30 libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html @@ -5481,7 +5493,7 @@ 년도 libs/ui/src/lib/i18n.ts - 32 + 31 @@ -5489,7 +5501,7 @@ 세부정보 보기 apps/client/src/app/components/admin-users/admin-users.html - 225 + 221 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -5501,7 +5513,7 @@ 연령 libs/ui/src/lib/i18n.ts - 33 + 32 @@ -5509,7 +5521,7 @@ OpenID Connect로 로그인 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 55 + 57 @@ -5521,7 +5533,7 @@ libs/ui/src/lib/i18n.ts - 37 + 36 @@ -5529,7 +5541,7 @@ 요금 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 258 + 255 libs/ui/src/lib/activities-table/activities-table.component.html @@ -5537,7 +5549,7 @@ libs/ui/src/lib/i18n.ts - 39 + 38 @@ -5545,7 +5557,7 @@ 귀중한 libs/ui/src/lib/i18n.ts - 43 + 42 @@ -5553,7 +5565,7 @@ 책임 libs/ui/src/lib/i18n.ts - 41 + 40 @@ -5565,7 +5577,7 @@ libs/ui/src/lib/i18n.ts - 42 + 41 @@ -5573,11 +5585,11 @@ 현금 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 219 + 218 libs/ui/src/lib/i18n.ts - 55 + 54 @@ -5585,7 +5597,7 @@ 상품 libs/ui/src/lib/i18n.ts - 47 + 46 @@ -5593,11 +5605,11 @@ 주식 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 57 + 55 libs/ui/src/lib/i18n.ts - 48 + 47 @@ -5605,7 +5617,7 @@ 채권 libs/ui/src/lib/i18n.ts - 49 + 48 @@ -5613,7 +5625,7 @@ 부동산 libs/ui/src/lib/i18n.ts - 51 + 50 @@ -5629,7 +5641,7 @@ 노예 libs/ui/src/lib/i18n.ts - 54 + 53 @@ -5637,7 +5649,7 @@ 암호화폐 libs/ui/src/lib/i18n.ts - 57 + 56 @@ -5645,7 +5657,7 @@ ETF libs/ui/src/lib/i18n.ts - 58 + 57 @@ -5653,7 +5665,7 @@ 뮤추얼 펀드 libs/ui/src/lib/i18n.ts - 60 + 59 @@ -5661,7 +5673,7 @@ 귀금속 libs/ui/src/lib/i18n.ts - 61 + 60 @@ -5669,7 +5681,7 @@ 사모펀드 libs/ui/src/lib/i18n.ts - 62 + 61 @@ -5677,7 +5689,7 @@ 재고 libs/ui/src/lib/i18n.ts - 63 + 62 @@ -5685,7 +5697,7 @@ 아프리카 libs/ui/src/lib/i18n.ts - 70 + 69 @@ -5693,7 +5705,7 @@ 아시아 libs/ui/src/lib/i18n.ts - 71 + 70 @@ -5701,7 +5713,7 @@ 유럽 libs/ui/src/lib/i18n.ts - 72 + 71 @@ -5709,7 +5721,7 @@ 북미 libs/ui/src/lib/i18n.ts - 73 + 72 @@ -5725,7 +5737,7 @@ 오세아니아 libs/ui/src/lib/i18n.ts - 74 + 73 @@ -5733,7 +5745,7 @@ 남아메리카 libs/ui/src/lib/i18n.ts - 75 + 74 @@ -5741,7 +5753,7 @@ 극심한 공포 libs/ui/src/lib/i18n.ts - 107 + 106 @@ -5749,7 +5761,7 @@ 극도의 탐욕 libs/ui/src/lib/i18n.ts - 108 + 107 @@ -5757,7 +5769,7 @@ 중립적 libs/ui/src/lib/i18n.ts - 111 + 110 @@ -5805,7 +5817,7 @@ libs/ui/src/lib/top-holdings/top-holdings.component.html - 181 + 186 @@ -5829,7 +5841,7 @@ 현재 시장가격은 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 722 + 743 @@ -5853,7 +5865,7 @@ 아르헨티나 libs/ui/src/lib/i18n.ts - 79 + 78 @@ -5901,7 +5913,7 @@ 시장 데이터가 지연됩니다. apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts - 95 + 94 @@ -5909,7 +5921,7 @@ 절대적인 통화 성과 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 211 + 209 @@ -5917,7 +5929,7 @@ 닫기 보유 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 447 + 442 @@ -5925,7 +5937,7 @@ 절대자산성과 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 168 + 166 @@ -5933,7 +5945,7 @@ 투자 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 171 + 169 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -5965,7 +5977,7 @@ 자산 성과 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 190 + 188 @@ -5973,7 +5985,7 @@ 통화 성과 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 236 + 234 @@ -5981,7 +5993,7 @@ 연초 현재 libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -5989,7 +6001,7 @@ 이번주 현재까지 libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5997,7 +6009,7 @@ 월간 누계 libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -6005,11 +6017,11 @@ MTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -6017,11 +6029,11 @@ WTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -6057,7 +6069,7 @@ 년도 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 apps/client/src/app/pages/resources/personal-finance-tools/product-page.html @@ -6069,7 +6081,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -6077,11 +6089,11 @@ 연령 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -6110,7 +6122,7 @@ 셀프 호스팅 apps/client/src/app/pages/faq/faq-page.component.ts - 52 + 46 libs/common/src/lib/routes/routes.ts @@ -6126,7 +6138,15 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 63 + 76 + + + + Find a holding... + Find a holding... + + libs/ui/src/lib/assistant/assistant.component.ts + 472 @@ -6134,7 +6154,7 @@ 일반적인 apps/client/src/app/pages/faq/faq-page.component.ts - 41 + 35 @@ -6142,7 +6162,7 @@ 구름 apps/client/src/app/pages/faq/faq-page.component.ts - 46 + 40 libs/common/src/lib/routes/routes.ts @@ -6170,7 +6190,7 @@ 닫은 apps/client/src/app/components/home-holdings/home-holdings.component.ts - 64 + 62 @@ -6178,7 +6198,7 @@ 활동적인 apps/client/src/app/components/home-holdings/home-holdings.component.ts - 63 + 61 @@ -6186,7 +6206,7 @@ 인도네시아 공화국 libs/ui/src/lib/i18n.ts - 91 + 90 @@ -6194,7 +6214,7 @@ 활동 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 229 + 227 @@ -6202,7 +6222,7 @@ 배당수익률 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 196 + 194 @@ -6234,7 +6254,7 @@ 유동성 libs/ui/src/lib/i18n.ts - 50 + 49 @@ -6274,7 +6294,7 @@ 계정 폐쇄 apps/client/src/app/components/user-account-settings/user-account-settings.html - 316 + 318 @@ -6285,6 +6305,14 @@ 205 + + Jump to a page... + Jump to a page... + + libs/ui/src/lib/assistant/assistant.component.ts + 473 + + Danger Zone 위험지대 @@ -6298,7 +6326,7 @@ 각 ETF의 상위 보유량을 기준으로 한 근사치 apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 336 + 334 @@ -6306,7 +6334,7 @@ ETF 홀딩으로 apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 329 + 327 @@ -6338,7 +6366,7 @@ 더 보기 libs/ui/src/lib/top-holdings/top-holdings.component.html - 174 + 179 @@ -6470,7 +6498,7 @@ 태국 libs/ui/src/lib/i18n.ts - 101 + 100 @@ -6478,7 +6506,7 @@ 인도 libs/ui/src/lib/i18n.ts - 90 + 89 @@ -6486,7 +6514,7 @@ 오스트리아 libs/ui/src/lib/i18n.ts - 81 + 80 @@ -6494,7 +6522,7 @@ 폴란드 libs/ui/src/lib/i18n.ts - 96 + 95 @@ -6502,7 +6530,7 @@ 이탈리아 libs/ui/src/lib/i18n.ts - 92 + 91 @@ -6558,7 +6586,7 @@ 캐나다 libs/ui/src/lib/i18n.ts - 85 + 84 @@ -6566,7 +6594,7 @@ 뉴질랜드 libs/ui/src/lib/i18n.ts - 95 + 94 @@ -6574,7 +6602,7 @@ 네덜란드 libs/ui/src/lib/i18n.ts - 94 + 93 @@ -6618,7 +6646,7 @@ 루마니아 libs/ui/src/lib/i18n.ts - 97 + 96 @@ -6626,7 +6654,7 @@ 독일 libs/ui/src/lib/i18n.ts - 89 + 88 @@ -6634,7 +6662,7 @@ 미국 libs/ui/src/lib/i18n.ts - 104 + 103 @@ -6650,7 +6678,7 @@ 벨기에 libs/ui/src/lib/i18n.ts - 82 + 81 @@ -6670,7 +6698,7 @@ 체코 libs/ui/src/lib/i18n.ts - 86 + 85 @@ -6678,7 +6706,7 @@ 호주 libs/ui/src/lib/i18n.ts - 80 + 79 @@ -6686,7 +6714,7 @@ 남아프리카 libs/ui/src/lib/i18n.ts - 99 + 98 @@ -6694,7 +6722,7 @@ 불가리아 libs/ui/src/lib/i18n.ts - 84 + 83 @@ -6710,7 +6738,7 @@ 핀란드 libs/ui/src/lib/i18n.ts - 87 + 86 @@ -6718,7 +6746,7 @@ 프랑스 libs/ui/src/lib/i18n.ts - 88 + 87 @@ -6726,7 +6754,7 @@ 오류 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 713 + 734 @@ -6770,7 +6798,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 341 + 338 apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.html @@ -6798,7 +6826,7 @@ libs/ui/src/lib/i18n.ts - 34 + 33 @@ -6814,7 +6842,7 @@ 비활성 apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html - 88 + 85 @@ -6842,7 +6870,7 @@ apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 130 + 124 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -6858,7 +6886,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 343 + 340 libs/ui/src/lib/i18n.ts @@ -6894,7 +6922,7 @@ 임계값 최대 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 93 + 87 @@ -6926,7 +6954,7 @@ 임계값 최소 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 55 + 52 @@ -6978,8 +7006,12 @@ - has been copied to the clipboard - has been copied to the clipboard + has been copied to the clipboard + has been copied to the clipboard + + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 378 + libs/ui/src/lib/value/value.component.ts 180 @@ -7134,7 +7166,7 @@ 우크라이나 libs/ui/src/lib/i18n.ts - 102 + 101 @@ -7150,7 +7182,7 @@ 50개 이상의 거래소에서 80,000개 이상의 티커에 접근하세요 libs/ui/src/lib/i18n.ts - 26 + 25 @@ -7178,7 +7210,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 44 + 42 libs/common/src/lib/routes/routes.ts @@ -7207,7 +7239,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 33 + 31 libs/common/src/lib/routes/routes.ts @@ -7248,7 +7280,7 @@ Ghostfolio API 키를 입력하세요: apps/client/src/app/pages/api/api-page.component.ts - 46 + 62 @@ -7304,7 +7336,7 @@ 오늘의 API 요청 apps/client/src/app/components/admin-users/admin-users.html - 161 + 157 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -7384,11 +7416,11 @@ apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 109 + 108 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 136 + 130 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -7400,7 +7432,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 352 + 349 libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.html @@ -7412,7 +7444,7 @@ 수신된 액세스 apps/client/src/app/components/user-account-access/user-account-access.html - 53 + 55 @@ -7448,7 +7480,7 @@ Change with currency effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 116 + 115 @@ -7496,7 +7528,7 @@ 즉각적인 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7504,7 +7536,7 @@ 게으른 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7520,7 +7552,7 @@ 실시간 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7528,7 +7560,7 @@ 하루의 끝 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7556,7 +7588,7 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 @@ -7568,7 +7600,7 @@ apps/client/src/app/components/home-overview/home-overview.component.ts - 54 + 52 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -7576,11 +7608,11 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 390 + 394 @@ -7604,7 +7636,7 @@ 싱가포르 libs/ui/src/lib/i18n.ts - 98 + 97 @@ -7612,7 +7644,7 @@ Total amount apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 95 + 94 @@ -7620,7 +7652,7 @@ 아르메니아 libs/ui/src/lib/i18n.ts - 78 + 77 @@ -7628,7 +7660,7 @@ 영국령 버진아일랜드 libs/ui/src/lib/i18n.ts - 83 + 82 @@ -7687,14 +7719,6 @@ 240 - - Find account, holding or page... - 계정, 보유 또는 페이지 찾기... - - libs/ui/src/lib/assistant/assistant.component.ts - 115 - - Security token 보안 토큰 @@ -7712,7 +7736,7 @@ 보안 토큰 생성 apps/client/src/app/components/admin-users/admin-users.html - 243 + 239 @@ -7720,7 +7744,7 @@ 영국 libs/ui/src/lib/i18n.ts - 103 + 102 @@ -7769,7 +7793,7 @@ ()은(는) 이미 사용 중입니다. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 649 + 675 @@ -7777,7 +7801,7 @@ ()로 업데이트하는 동안 오류가 발생했습니다. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 657 + 683 @@ -7817,7 +7841,7 @@ 누구 apps/client/src/app/pages/public/public-page.component.ts - 61 + 62 @@ -7849,7 +7873,7 @@ 이 항목을 정말로 삭제하시겠습니까? libs/ui/src/lib/benchmark/benchmark.component.ts - 139 + 137 @@ -7857,7 +7881,7 @@ 로그아웃 apps/client/src/app/components/header/header.component.html - 329 + 325 @@ -7890,7 +7914,7 @@ 데모 사용자 계정 동기화 apps/client/src/app/components/admin-overview/admin-overview.html - 204 + 128 @@ -7898,7 +7922,7 @@ 데모 사용자 계정이 동기화되었습니다. apps/client/src/app/components/admin-overview/admin-overview.component.ts - 277 + 303 @@ -8104,7 +8128,7 @@ 이번 달 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 @@ -8269,7 +8293,7 @@ 생성하다 apps/client/src/app/components/user-account-access/user-account-access.html - 43 + 45 @@ -8317,7 +8341,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 39 + 35 @@ -8325,7 +8349,7 @@ 자산 프로필 관리 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 471 + 467 @@ -8333,7 +8357,7 @@ 대체투자 libs/ui/src/lib/i18n.ts - 46 + 45 @@ -8341,7 +8365,7 @@ 소장용 libs/ui/src/lib/i18n.ts - 56 + 55 diff --git a/apps/client/src/locales/messages.nl.xlf b/apps/client/src/locales/messages.nl.xlf index 288628863..b33aee404 100644 --- a/apps/client/src/locales/messages.nl.xlf +++ b/apps/client/src/locales/messages.nl.xlf @@ -138,7 +138,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 135 + 134 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -182,15 +182,15 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 201 + 199 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 204 + 202 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 207 + 205 libs/ui/src/lib/account-balances/account-balances.component.html @@ -266,7 +266,7 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 140 + 213 apps/client/src/app/components/admin-platform/admin-platform.component.html @@ -302,7 +302,7 @@ Wil je deze rekening echt verwijderen? libs/ui/src/lib/accounts-table/accounts-table.component.ts - 148 + 146 @@ -330,11 +330,11 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 151 + 150 libs/ui/src/lib/i18n.ts - 15 + 14 @@ -437,12 +437,20 @@ 2 + + Find an account... + Find an account... + + libs/ui/src/lib/assistant/assistant.component.ts + 471 + + Date Datum apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 157 + 156 libs/ui/src/lib/account-balances/account-balances.component.html @@ -486,21 +494,13 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 219 + 217 libs/ui/src/lib/holdings-table/holdings-table.component.html 45 - - Activity Count - Aantal activiteiten - - apps/client/src/app/components/admin-overview/admin-overview.html - 22 - - Historical Data Historische gegevens @@ -510,7 +510,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 40 + 42 @@ -518,7 +518,7 @@ Wil je deze coupon echt verwijderen? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 196 + 222 @@ -526,7 +526,7 @@ Wil je echt de cache legen? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 233 + 259 @@ -534,23 +534,15 @@ Stel je systeemboodschap in: apps/client/src/app/components/admin-overview/admin-overview.component.ts - 253 - - - - User Count - Aantal gebruikers - - apps/client/src/app/components/admin-overview/admin-overview.html - 16 + 279 per User per gebruiker - apps/client/src/app/components/admin-overview/admin-overview.html - 31 + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 166 @@ -578,7 +570,7 @@ Systeembericht apps/client/src/app/components/admin-overview/admin-overview.html - 75 + 88 @@ -586,7 +578,7 @@ Bericht instellen apps/client/src/app/components/admin-overview/admin-overview.html - 97 + 110 @@ -594,7 +586,7 @@ Alleen lezen apps/client/src/app/components/admin-overview/admin-overview.html - 51 + 64 @@ -602,7 +594,7 @@ Coupons apps/client/src/app/components/admin-overview/admin-overview.html - 105 + 148 @@ -610,7 +602,7 @@ Toevoegen apps/client/src/app/components/admin-overview/admin-overview.html - 185 + 265 libs/ui/src/lib/account-balances/account-balances.component.html @@ -622,7 +614,7 @@ Huishouding apps/client/src/app/components/admin-overview/admin-overview.html - 193 + 117 @@ -630,7 +622,7 @@ Cache legen apps/client/src/app/components/admin-overview/admin-overview.html - 209 + 133 @@ -670,7 +662,7 @@ Betrokkenheid per dag apps/client/src/app/components/admin-users/admin-users.html - 140 + 136 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -682,7 +674,7 @@ Laatste verzoek apps/client/src/app/components/admin-users/admin-users.html - 186 + 182 @@ -698,7 +690,7 @@ Over Ghostfolio apps/client/src/app/components/header/header.component.html - 326 + 322 apps/client/src/app/pages/about/overview/about-overview-page.html @@ -710,7 +702,7 @@ Aan de slag apps/client/src/app/components/header/header.component.html - 433 + 432 apps/client/src/app/pages/features/features-page.html @@ -742,15 +734,15 @@ Aanmelden apps/client/src/app/components/header/header.component.html - 422 + 421 apps/client/src/app/components/header/header.component.ts - 298 + 296 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 79 + 81 libs/common/src/lib/routes/routes.ts @@ -766,7 +758,7 @@ Oeps! Onjuiste beveiligingstoken. apps/client/src/app/components/header/header.component.ts - 313 + 311 apps/client/src/app/components/user-account-access/user-account-access.component.ts @@ -834,7 +826,7 @@ apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 32 + 34 apps/client/src/app/pages/landing/landing-page.html @@ -874,7 +866,7 @@ Aanmelden met Google apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 44 + 46 @@ -882,7 +874,7 @@ Aangemeld blijven apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 66 + 68 @@ -910,7 +902,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 259 + 257 @@ -922,7 +914,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 278 + 276 @@ -938,7 +930,7 @@ Koopkracht apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 248 + 247 @@ -946,7 +938,7 @@ Netto waarde apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 324 + 323 @@ -954,7 +946,7 @@ Rendement per jaar apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 338 + 337 @@ -962,7 +954,7 @@ Voer het bedrag van je noodfonds in: apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 111 + 110 @@ -978,7 +970,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 284 + 282 apps/client/src/app/pages/public/public-page.html @@ -998,7 +990,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 296 + 294 @@ -1022,7 +1014,7 @@ Gegevensstoring melden apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 456 + 452 @@ -1062,7 +1054,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 362 + 373 @@ -1070,11 +1062,11 @@ YTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -1082,11 +1074,11 @@ 1J apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -1094,11 +1086,11 @@ 5J apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -1106,7 +1098,7 @@ Prestaties met valuta-effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 135 + 134 @@ -1114,11 +1106,11 @@ Max apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 217 + 221 libs/ui/src/lib/assistant/assistant.component.ts - 414 + 425 @@ -1134,7 +1126,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 195 + 192 @@ -1150,7 +1142,7 @@ apps/client/src/app/components/header/header.component.html - 375 + 370 apps/client/src/app/pages/about/overview/about-overview-page.routes.ts @@ -1182,7 +1174,7 @@ Mijn Ghostfolio apps/client/src/app/components/header/header.component.html - 277 + 276 apps/client/src/app/pages/user-account/user-account-page.routes.ts @@ -1342,7 +1334,7 @@ Verleende toegang apps/client/src/app/components/user-account-access/user-account-access.html - 57 + 59 @@ -1370,7 +1362,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 97 + 93 apps/client/src/app/components/header/header.component.html @@ -1378,11 +1370,11 @@ apps/client/src/app/components/header/header.component.html - 268 + 267 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 381 + 378 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1438,7 +1430,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 141 + 140 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -1454,7 +1446,7 @@ Saldo apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 45 + 43 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -1470,7 +1462,7 @@ Platform apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 90 + 88 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -1498,7 +1490,7 @@ apps/client/src/app/components/header/header.component.html - 289 + 287 libs/common/src/lib/routes/routes.ts @@ -1604,6 +1596,10 @@ apps/client/src/app/pages/blog/2025/11/black-weeks-2025/black-weeks-2025-page.html 147 + + apps/client/src/app/pages/blog/2026/04/ghostfolio-3/ghostfolio-3-page.html + 269 + apps/client/src/app/pages/blog/blog-page.html 5 @@ -1621,6 +1617,14 @@ 32 + + Duration + Duration + + apps/client/src/app/components/admin-overview/admin-overview.html + 172 + + Frequently Asked Questions (FAQ) Veelgestelde vragen @@ -1650,7 +1654,7 @@ apps/client/src/app/components/header/header.component.html - 361 + 356 apps/client/src/app/pages/features/features-page.html @@ -1678,7 +1682,7 @@ apps/client/src/app/components/header/header.component.html - 248 + 247 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html @@ -1686,11 +1690,11 @@ apps/client/src/app/pages/admin/admin-page.component.ts - 45 + 41 apps/client/src/app/pages/resources/resources-page.component.ts - 29 + 27 libs/common/src/lib/routes/routes.ts @@ -1714,7 +1718,7 @@ apps/client/src/app/components/header/header.component.html - 408 + 403 apps/client/src/app/components/home-market/home-market.html @@ -1730,7 +1734,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 39 + 37 libs/common/src/lib/routes/routes.ts @@ -1850,7 +1854,7 @@ Tijdlijn investeringen apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 436 + 434 @@ -1858,7 +1862,7 @@ Winnaars apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 305 + 303 @@ -1866,7 +1870,7 @@ Verliezers apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 354 + 352 @@ -1890,7 +1894,7 @@ Posities apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 102 + 100 apps/client/src/app/components/home-holdings/home-holdings.html @@ -1926,7 +1930,7 @@ Huidige week apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 @@ -1934,7 +1938,7 @@ Activiteit toevoegen apps/client/src/app/components/home-overview/home-overview.html - 60 + 57 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html @@ -1950,7 +1954,7 @@ libs/ui/src/lib/i18n.ts - 42 + 41 @@ -1970,7 +1974,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 120 + 119 @@ -1978,11 +1982,11 @@ Hoeveelheid apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 157 + 155 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 185 + 183 libs/ui/src/lib/activities-table/activities-table.component.html @@ -1998,7 +2002,7 @@ Prijs per eenheid apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 210 + 208 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2018,7 +2022,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 271 + 268 @@ -2026,31 +2030,35 @@ Activiteiten apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 86 + 84 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 113 + 111 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html 226 + + apps/client/src/app/components/admin-overview/admin-overview.html + 38 + apps/client/src/app/components/admin-tag/admin-tag.component.html 45 apps/client/src/app/components/admin-users/admin-users.html - 118 + 114 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 231 + 229 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 348 + 342 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -2074,7 +2082,7 @@ Gegevens importeren... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 174 + 171 @@ -2082,7 +2090,7 @@ Importeren is voltooid apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 184 + 181 @@ -2106,11 +2114,11 @@ apps/client/src/app/components/header/header.component.html - 313 + 309 apps/client/src/app/components/header/header.component.html - 389 + 384 apps/client/src/app/pages/pricing/pricing-page.routes.ts @@ -2138,7 +2146,7 @@ apps/client/src/app/components/header/header.component.html - 258 + 257 apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts @@ -2178,7 +2186,7 @@ Registratie apps/client/src/app/components/admin-users/admin-users.html - 80 + 76 libs/common/src/lib/routes/routes.ts @@ -2218,7 +2226,7 @@ apps/client/src/app/components/header/header.component.html - 301 + 297 apps/client/src/app/pages/resources/overview/resources-overview.component.html @@ -2266,7 +2274,7 @@ Activiteiten importeren apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 92 + 93 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2390,7 +2398,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 192 + 189 @@ -2406,7 +2414,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 194 + 191 @@ -2418,7 +2426,7 @@ libs/ui/src/lib/i18n.ts - 17 + 16 @@ -2446,7 +2454,7 @@ Maximale prijs apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 147 + 145 @@ -2482,7 +2490,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 268 + 266 @@ -2494,11 +2502,11 @@ apps/client/src/app/components/admin-users/admin-users.html - 60 + 56 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 278 + 276 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -2510,7 +2518,7 @@ Minimale prijs apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 130 + 129 @@ -2534,11 +2542,11 @@ Rente apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 69 + 67 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 359 + 358 libs/ui/src/lib/fire-calculator/fire-calculator.component.ts @@ -2546,7 +2554,7 @@ libs/ui/src/lib/i18n.ts - 40 + 39 @@ -2602,7 +2610,7 @@ libs/ui/src/lib/i18n.ts - 109 + 108 @@ -2618,7 +2626,7 @@ libs/ui/src/lib/i18n.ts - 110 + 109 @@ -2626,7 +2634,7 @@ Filter op... apps/client/src/app/components/admin-market-data/admin-market-data.component.ts - 383 + 368 @@ -2674,11 +2682,11 @@ Het formulier kon niet worden gevalideerd. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 570 + 594 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 573 + 597 @@ -2702,7 +2710,7 @@ Uitgesloten van analyse apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 274 + 273 @@ -2746,7 +2754,7 @@ Totaalbedrag apps/client/src/app/components/investment-chart/investment-chart.component.ts - 146 + 147 @@ -2754,7 +2762,15 @@ Waardeontwikkeling van portefeuille apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 407 + 405 + + + + Code + Code + + apps/client/src/app/components/admin-overview/admin-overview.html + 159 @@ -2762,7 +2778,7 @@ Spaarrente apps/client/src/app/components/investment-chart/investment-chart.component.ts - 202 + 205 @@ -2770,7 +2786,7 @@ Account apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 85 + 86 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2802,11 +2818,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 242 + 240 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 286 + 283 libs/ui/src/lib/i18n.ts @@ -2838,11 +2854,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 318 + 314 libs/ui/src/lib/i18n.ts - 30 + 29 @@ -2850,7 +2866,7 @@ Label libs/ui/src/lib/i18n.ts - 31 + 30 libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html @@ -2862,11 +2878,11 @@ Contant geld apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 219 + 218 libs/ui/src/lib/i18n.ts - 55 + 54 @@ -2874,7 +2890,7 @@ Grondstof libs/ui/src/lib/i18n.ts - 47 + 46 @@ -2882,11 +2898,11 @@ Equity apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 57 + 55 libs/ui/src/lib/i18n.ts - 48 + 47 @@ -2894,7 +2910,7 @@ Vast inkomen libs/ui/src/lib/i18n.ts - 49 + 48 @@ -2902,7 +2918,7 @@ Vastgoed libs/ui/src/lib/i18n.ts - 51 + 50 @@ -2918,7 +2934,7 @@ Obligatie libs/ui/src/lib/i18n.ts - 54 + 53 @@ -2926,7 +2942,7 @@ Cryptovaluta libs/ui/src/lib/i18n.ts - 57 + 56 @@ -2934,7 +2950,7 @@ ETF libs/ui/src/lib/i18n.ts - 58 + 57 @@ -2942,7 +2958,7 @@ Beleggingsfonds libs/ui/src/lib/i18n.ts - 60 + 59 @@ -2950,7 +2966,7 @@ Edelmetaal libs/ui/src/lib/i18n.ts - 61 + 60 @@ -2958,7 +2974,7 @@ Private equity libs/ui/src/lib/i18n.ts - 62 + 61 @@ -2966,7 +2982,7 @@ Aandeel libs/ui/src/lib/i18n.ts - 63 + 62 @@ -2982,7 +2998,7 @@ libs/ui/src/lib/i18n.ts - 16 + 15 @@ -2990,7 +3006,7 @@ Anders libs/ui/src/lib/i18n.ts - 25 + 24 libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -3022,7 +3038,7 @@ libs/ui/src/lib/top-holdings/top-holdings.component.html - 181 + 186 @@ -3030,7 +3046,7 @@ Noord-Amerika libs/ui/src/lib/i18n.ts - 73 + 72 @@ -3038,7 +3054,7 @@ Afrika libs/ui/src/lib/i18n.ts - 70 + 69 @@ -3046,7 +3062,7 @@ Azië libs/ui/src/lib/i18n.ts - 71 + 70 @@ -3054,7 +3070,7 @@ Europa libs/ui/src/lib/i18n.ts - 72 + 71 @@ -3070,7 +3086,7 @@ Oceanië libs/ui/src/lib/i18n.ts - 74 + 73 @@ -3078,7 +3094,7 @@ Zuid-Amerika libs/ui/src/lib/i18n.ts - 75 + 74 @@ -3138,15 +3154,15 @@ Dividend apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 81 + 79 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 186 + 184 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 372 + 371 apps/client/src/app/pages/features/features-page.html @@ -3154,7 +3170,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 198 + 196 apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts @@ -3162,7 +3178,7 @@ libs/ui/src/lib/i18n.ts - 38 + 37 @@ -3170,7 +3186,7 @@ Tijdlijn dividend apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 495 + 493 @@ -3190,11 +3206,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 251 + 249 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 305 + 302 libs/ui/src/lib/i18n.ts @@ -3206,7 +3222,7 @@ Account aanmaken apps/client/src/app/components/admin-overview/admin-overview.html - 37 + 50 @@ -3214,7 +3230,7 @@ Gegevens valideren... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 293 + 291 @@ -3230,7 +3246,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 67 + 69 @@ -3238,7 +3254,7 @@ Marktgegevens apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 403 + 400 libs/common/src/lib/routes/routes.ts @@ -3248,6 +3264,10 @@ Users Gebruikers + + apps/client/src/app/components/admin-overview/admin-overview.html + 24 + libs/common/src/lib/routes/routes.ts 61 @@ -3298,7 +3318,7 @@ Importeer dividenden apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 136 + 132 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3334,7 +3354,7 @@ Toelage libs/ui/src/lib/i18n.ts - 19 + 18 @@ -3342,7 +3362,7 @@ Hoger risico libs/ui/src/lib/i18n.ts - 20 + 19 @@ -3350,7 +3370,7 @@ Lager risico libs/ui/src/lib/i18n.ts - 22 + 21 @@ -3366,7 +3386,7 @@ Pensioen libs/ui/src/lib/i18n.ts - 28 + 27 @@ -3382,7 +3402,7 @@ Satelliet libs/ui/src/lib/i18n.ts - 29 + 28 @@ -3634,11 +3654,11 @@ Kon het assetprofiel niet opslaan apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 604 + 628 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 607 + 631 @@ -3654,7 +3674,7 @@ Kosten apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 208 + 206 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -3733,20 +3753,12 @@ 12 - - Switch to Ghostfolio Open Source or Ghostfolio Basic easily - Eenvoudig overstappen naar Ghostfolio Open Source of Ghostfolio Basic - - libs/ui/src/lib/i18n.ts - 14 - - Loan Loan libs/ui/src/lib/i18n.ts - 59 + 58 @@ -3814,7 +3826,7 @@ Gebruiker immiteren apps/client/src/app/components/admin-users/admin-users.html - 233 + 229 @@ -3822,7 +3834,7 @@ Gebruiker verwijderen apps/client/src/app/components/admin-users/admin-users.html - 254 + 250 @@ -3870,7 +3882,7 @@ Huidig jaar apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 @@ -3906,7 +3918,7 @@ Het activaprofiel is opgeslagen. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 594 + 618 @@ -3930,7 +3942,7 @@ Saldo bijwerken apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 108 + 109 @@ -3986,7 +3998,7 @@ Deze activiteit bestaat al. libs/ui/src/lib/i18n.ts - 21 + 20 @@ -4050,7 +4062,7 @@ Huidige reeks apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 457 + 455 @@ -4058,7 +4070,7 @@ Langste reeks apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 466 + 464 @@ -4066,7 +4078,7 @@ Maanden libs/ui/src/lib/i18n.ts - 24 + 23 @@ -4074,7 +4086,7 @@ Jaren libs/ui/src/lib/i18n.ts - 33 + 32 @@ -4082,7 +4094,7 @@ Maand libs/ui/src/lib/i18n.ts - 23 + 22 @@ -4090,7 +4102,7 @@ Jaar libs/ui/src/lib/i18n.ts - 32 + 31 @@ -4098,7 +4110,7 @@ Bekijk details apps/client/src/app/components/admin-users/admin-users.html - 225 + 221 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -4110,7 +4122,7 @@ Verplichtingen apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 302 + 301 apps/client/src/app/pages/features/features-page.html @@ -4250,7 +4262,7 @@ Verplichtingen libs/ui/src/lib/i18n.ts - 41 + 40 @@ -4482,7 +4494,7 @@ Meld je aan met OpenID Connect apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 55 + 57 @@ -4494,7 +4506,7 @@ libs/ui/src/lib/i18n.ts - 37 + 36 @@ -4502,7 +4514,7 @@ Waardevol libs/ui/src/lib/i18n.ts - 43 + 42 @@ -4526,7 +4538,7 @@ Assets apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 233 + 232 @@ -4534,7 +4546,7 @@ Voorinstelling libs/ui/src/lib/i18n.ts - 27 + 26 @@ -4558,7 +4570,7 @@ Japan libs/ui/src/lib/i18n.ts - 93 + 92 @@ -4582,7 +4594,7 @@ Je accounts instellen apps/client/src/app/components/home-overview/home-overview.html - 19 + 16 @@ -4590,7 +4602,7 @@ Krijg een uitgebreid financieel overzicht door je bank- en effectenrekeningen toe te voegen. apps/client/src/app/components/home-overview/home-overview.html - 21 + 18 @@ -4598,7 +4610,7 @@ Leg je activiteiten vast apps/client/src/app/components/home-overview/home-overview.html - 28 + 25 @@ -4606,7 +4618,7 @@ Leg je investeringsactiviteiten vast om je portefeuille up-to-date te houden. apps/client/src/app/components/home-overview/home-overview.html - 30 + 27 @@ -4614,7 +4626,7 @@ Volg en analyseer je portfolio apps/client/src/app/components/home-overview/home-overview.html - 37 + 34 @@ -4622,7 +4634,7 @@ Volg je voortgang in real-time met uitgebreide analyses en inzichten. apps/client/src/app/components/home-overview/home-overview.html - 39 + 36 @@ -4638,7 +4650,7 @@ Account opzetten apps/client/src/app/components/home-overview/home-overview.html - 52 + 49 @@ -4806,11 +4818,11 @@ De scraperconfiguratie kon niet worden geparseerd apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 525 + 545 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 528 + 548 @@ -5368,7 +5380,7 @@ libs/ui/src/lib/i18n.ts - 100 + 99 @@ -5380,7 +5392,7 @@ libs/ui/src/lib/i18n.ts - 18 + 17 @@ -5472,7 +5484,7 @@ Kosten apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 258 + 255 libs/ui/src/lib/activities-table/activities-table.component.html @@ -5480,7 +5492,7 @@ libs/ui/src/lib/i18n.ts - 39 + 38 @@ -5540,7 +5552,7 @@ Versie apps/client/src/app/components/admin-overview/admin-overview.html - 7 + 11 @@ -5704,7 +5716,7 @@ Extreme Angst libs/ui/src/lib/i18n.ts - 107 + 106 @@ -5712,7 +5724,7 @@ Extreme Hebzucht libs/ui/src/lib/i18n.ts - 108 + 107 @@ -5720,7 +5732,7 @@ Neutraal libs/ui/src/lib/i18n.ts - 111 + 110 @@ -5736,7 +5748,7 @@ Wilt u dit systeembericht echt verwijderen? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 209 + 235 @@ -5760,7 +5772,7 @@ Contant Saldo apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 146 + 142 @@ -5796,7 +5808,7 @@ De huidige markt waarde is apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 722 + 743 @@ -5852,7 +5864,7 @@ Argentinië libs/ui/src/lib/i18n.ts - 79 + 78 @@ -5876,7 +5888,7 @@ Markt data is vertraagd voor apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts - 95 + 94 @@ -5884,7 +5896,7 @@ Investering apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 171 + 169 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -5916,7 +5928,7 @@ Sluit Holding apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 447 + 442 @@ -5924,7 +5936,7 @@ Absolute Activaprestaties apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 168 + 166 @@ -5932,7 +5944,7 @@ Activaprestaties apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 190 + 188 @@ -5940,7 +5952,7 @@ Absolute Valutaprestaties apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 211 + 209 @@ -5948,7 +5960,7 @@ Valutaprestaties apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 236 + 234 @@ -5956,7 +5968,7 @@ Week tot nu toe libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5964,11 +5976,11 @@ Week tot nu toe apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5976,7 +5988,7 @@ Maand tot nu toe libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5984,11 +5996,11 @@ MTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5996,7 +6008,7 @@ Jaar tot nu toe libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -6032,7 +6044,7 @@ jaar apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 apps/client/src/app/pages/resources/personal-finance-tools/product-page.html @@ -6044,7 +6056,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -6052,11 +6064,11 @@ jaren apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -6076,7 +6088,15 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 63 + 76 + + + + Find a holding... + Find a holding... + + libs/ui/src/lib/assistant/assistant.component.ts + 472 @@ -6084,7 +6104,7 @@ Algemeen apps/client/src/app/pages/faq/faq-page.component.ts - 41 + 35 @@ -6092,7 +6112,7 @@ Cloud apps/client/src/app/pages/faq/faq-page.component.ts - 46 + 40 libs/common/src/lib/routes/routes.ts @@ -6104,7 +6124,7 @@ Zelf Hosten apps/client/src/app/pages/faq/faq-page.component.ts - 52 + 46 libs/common/src/lib/routes/routes.ts @@ -6145,7 +6165,7 @@ Actief apps/client/src/app/components/home-holdings/home-holdings.component.ts - 63 + 61 @@ -6153,7 +6173,7 @@ Gesloten apps/client/src/app/components/home-holdings/home-holdings.component.ts - 64 + 62 @@ -6161,7 +6181,7 @@ Indonesië libs/ui/src/lib/i18n.ts - 91 + 90 @@ -6169,7 +6189,7 @@ Activiteit apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 229 + 227 @@ -6177,7 +6197,7 @@ Dividendrendement apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 196 + 194 @@ -6209,7 +6229,7 @@ Liquiditeit libs/ui/src/lib/i18n.ts - 50 + 49 @@ -6252,6 +6272,14 @@ 205 + + Jump to a page... + Jump to a page... + + libs/ui/src/lib/assistant/assistant.component.ts + 473 + + Danger Zone Gevarenzone @@ -6265,7 +6293,7 @@ Account Sluiten apps/client/src/app/components/user-account-settings/user-account-settings.html - 316 + 318 @@ -6273,7 +6301,7 @@ Per Aangehouden ETF apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 329 + 327 @@ -6281,7 +6309,7 @@ Benadering op basis van de grootste belegingen binnen iedere ETF apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 336 + 334 @@ -6313,7 +6341,7 @@ Laat meer zien libs/ui/src/lib/top-holdings/top-holdings.component.html - 174 + 179 @@ -6549,7 +6577,7 @@ Australië libs/ui/src/lib/i18n.ts - 80 + 79 @@ -6557,7 +6585,7 @@ Oostenrijk libs/ui/src/lib/i18n.ts - 81 + 80 @@ -6565,7 +6593,7 @@ België libs/ui/src/lib/i18n.ts - 82 + 81 @@ -6573,7 +6601,7 @@ Bulgarije libs/ui/src/lib/i18n.ts - 84 + 83 @@ -6589,7 +6617,7 @@ Canada libs/ui/src/lib/i18n.ts - 85 + 84 @@ -6597,7 +6625,7 @@ Tsjechische Republiek libs/ui/src/lib/i18n.ts - 86 + 85 @@ -6605,7 +6633,7 @@ Finland libs/ui/src/lib/i18n.ts - 87 + 86 @@ -6613,7 +6641,7 @@ Frankrijk libs/ui/src/lib/i18n.ts - 88 + 87 @@ -6621,7 +6649,7 @@ Duitsland libs/ui/src/lib/i18n.ts - 89 + 88 @@ -6629,7 +6657,7 @@ India libs/ui/src/lib/i18n.ts - 90 + 89 @@ -6637,7 +6665,7 @@ Italië libs/ui/src/lib/i18n.ts - 92 + 91 @@ -6645,7 +6673,7 @@ Nederland libs/ui/src/lib/i18n.ts - 94 + 93 @@ -6653,7 +6681,7 @@ Nieuw-Zeeland libs/ui/src/lib/i18n.ts - 95 + 94 @@ -6661,7 +6689,7 @@ Polen libs/ui/src/lib/i18n.ts - 96 + 95 @@ -6669,7 +6697,7 @@ Roemenië libs/ui/src/lib/i18n.ts - 97 + 96 @@ -6677,7 +6705,7 @@ Zuid-Afrika libs/ui/src/lib/i18n.ts - 99 + 98 @@ -6685,7 +6713,7 @@ Thailand libs/ui/src/lib/i18n.ts - 101 + 100 @@ -6693,7 +6721,7 @@ Verenigde Station libs/ui/src/lib/i18n.ts - 104 + 103 @@ -6701,7 +6729,7 @@ Fout apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 713 + 734 @@ -6741,7 +6769,7 @@ Inactief apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html - 88 + 85 @@ -6785,7 +6813,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 341 + 338 apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.html @@ -6825,7 +6853,7 @@ apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 130 + 124 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -6841,7 +6869,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 343 + 340 libs/ui/src/lib/i18n.ts @@ -6861,7 +6889,7 @@ Ja libs/ui/src/lib/i18n.ts - 34 + 33 @@ -6909,7 +6937,7 @@ Drempelwaarde Min apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 55 + 52 @@ -6917,7 +6945,7 @@ Drempelwaarde Max apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 93 + 87 @@ -6945,8 +6973,12 @@ - has been copied to the clipboard - has been copied to the clipboard + has been copied to the clipboard + has been copied to the clipboard + + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 378 + libs/ui/src/lib/value/value.component.ts 180 @@ -7125,7 +7157,7 @@ Krijg toegang tot meer dan 80.000 tickers van meer dan 50 beurzen libs/ui/src/lib/i18n.ts - 26 + 25 @@ -7133,7 +7165,7 @@ Oekraïne libs/ui/src/lib/i18n.ts - 102 + 101 @@ -7153,7 +7185,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 44 + 42 libs/common/src/lib/routes/routes.ts @@ -7169,7 +7201,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 33 + 31 libs/common/src/lib/routes/routes.ts @@ -7255,7 +7287,7 @@ Voer uw Ghostfolio API-sleutel in: apps/client/src/app/pages/api/api-page.component.ts - 46 + 62 @@ -7263,7 +7295,7 @@ Aantal API-Verzoeken Vandaag apps/client/src/app/components/admin-users/admin-users.html - 161 + 157 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -7359,11 +7391,11 @@ apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 109 + 108 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 136 + 130 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -7375,7 +7407,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 352 + 349 libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.html @@ -7399,7 +7431,7 @@ Toegang Verkregen apps/client/src/app/components/user-account-access/user-account-access.html - 53 + 55 @@ -7423,7 +7455,7 @@ Verandering met valuta-effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 116 + 115 @@ -7447,7 +7479,7 @@ Lui apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7455,7 +7487,7 @@ Direct apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7495,7 +7527,7 @@ eind van de dag apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7503,7 +7535,7 @@ real-time apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7531,7 +7563,7 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 @@ -7543,7 +7575,7 @@ apps/client/src/app/components/home-overview/home-overview.component.ts - 54 + 52 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -7551,11 +7583,11 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 390 + 394 @@ -7587,7 +7619,7 @@ Totaal bedrag apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 95 + 94 @@ -7595,7 +7627,7 @@ Armenië libs/ui/src/lib/i18n.ts - 78 + 77 @@ -7603,7 +7635,7 @@ Britse Maagdeneilanden libs/ui/src/lib/i18n.ts - 83 + 82 @@ -7611,7 +7643,7 @@ Singapore libs/ui/src/lib/i18n.ts - 98 + 97 @@ -7674,20 +7706,12 @@ 240 - - Find account, holding or page... - Vindt een account, holding of pagina... - - libs/ui/src/lib/assistant/assistant.component.ts - 115 - - Generate Security Token Beveiligingstoken Aanmaken apps/client/src/app/components/admin-users/admin-users.html - 243 + 239 @@ -7695,7 +7719,7 @@ Verenigd Koninkrijk libs/ui/src/lib/i18n.ts - 103 + 102 @@ -7744,7 +7768,7 @@ () is al in gebruik. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 649 + 675 @@ -7752,7 +7776,7 @@ Er is een fout opgetreden tijdens het updaten naar (). apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 657 + 683 @@ -7816,7 +7840,7 @@ iemand apps/client/src/app/pages/public/public-page.component.ts - 61 + 62 @@ -7848,7 +7872,7 @@ Wilt u dit item echt verwijderen? libs/ui/src/lib/benchmark/benchmark.component.ts - 139 + 137 @@ -7856,7 +7880,7 @@ Uitloggen apps/client/src/app/components/header/header.component.html - 329 + 325 @@ -7889,7 +7913,7 @@ Demo-gebruikersaccount is gesynchroniseerd. apps/client/src/app/components/admin-overview/admin-overview.component.ts - 277 + 303 @@ -7897,7 +7921,7 @@ Synchroniseer demo-gebruikersaccount apps/client/src/app/components/admin-overview/admin-overview.html - 204 + 128 @@ -8103,7 +8127,7 @@ Huidige maand apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 @@ -8276,7 +8300,7 @@ Genereren apps/client/src/app/components/user-account-access/user-account-access.html - 43 + 45 @@ -8316,7 +8340,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 39 + 35 @@ -8324,7 +8348,7 @@ Beheer activaprofiel apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 471 + 467 @@ -8332,7 +8356,7 @@ Alternatieve belegging libs/ui/src/lib/i18n.ts - 46 + 45 @@ -8340,7 +8364,7 @@ Verzamelobject libs/ui/src/lib/i18n.ts - 56 + 55 diff --git a/apps/client/src/locales/messages.pl.xlf b/apps/client/src/locales/messages.pl.xlf index ff5299356..b48149e75 100644 --- a/apps/client/src/locales/messages.pl.xlf +++ b/apps/client/src/locales/messages.pl.xlf @@ -307,7 +307,7 @@ Saldo Gotówkowe apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 45 + 43 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -323,7 +323,7 @@ Platforma apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 90 + 88 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -383,7 +383,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 135 + 134 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -439,7 +439,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 141 + 140 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -459,15 +459,15 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 201 + 199 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 204 + 202 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 207 + 205 libs/ui/src/lib/account-balances/account-balances.component.html @@ -543,7 +543,7 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 140 + 213 apps/client/src/app/components/admin-platform/admin-platform.component.html @@ -579,7 +579,7 @@ Czy na pewno chcesz usunąć to konto? libs/ui/src/lib/accounts-table/accounts-table.component.ts - 148 + 146 @@ -619,11 +619,11 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 151 + 150 libs/ui/src/lib/i18n.ts - 15 + 14 @@ -710,12 +710,20 @@ 2 + + Find an account... + Find an account... + + libs/ui/src/lib/assistant/assistant.component.ts + 471 + + Date Data apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 157 + 156 libs/ui/src/lib/account-balances/account-balances.component.html @@ -787,7 +795,7 @@ Filtruj według... apps/client/src/app/components/admin-market-data/admin-market-data.component.ts - 383 + 368 @@ -803,7 +811,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 219 + 217 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -827,7 +835,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 40 + 42 @@ -887,7 +895,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 67 + 69 @@ -899,7 +907,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 268 + 266 @@ -911,11 +919,11 @@ apps/client/src/app/components/admin-users/admin-users.html - 60 + 56 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 278 + 276 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -935,7 +943,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 284 + 282 apps/client/src/app/pages/public/public-page.html @@ -955,7 +963,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 296 + 294 @@ -995,7 +1003,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 271 + 268 @@ -1039,7 +1047,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 120 + 119 @@ -1047,7 +1055,7 @@ Czy naprawdę chcesz usunąć ten kupon? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 196 + 222 @@ -1055,7 +1063,7 @@ Czy naprawdę chcesz usunąć tę wiadomość systemową? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 209 + 235 @@ -1063,7 +1071,7 @@ Czy naprawdę chcesz wyczyścić pamięć podręczną? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 233 + 259 @@ -1071,7 +1079,7 @@ Proszę ustawić swoją wiadomość systemową: apps/client/src/app/components/admin-overview/admin-overview.component.ts - 253 + 279 @@ -1079,31 +1087,15 @@ Wersja apps/client/src/app/components/admin-overview/admin-overview.html - 7 - - - - User Count - Liczba Użytkowników - - apps/client/src/app/components/admin-overview/admin-overview.html - 16 - - - - Activity Count - Liczba Aktywności - - apps/client/src/app/components/admin-overview/admin-overview.html - 22 + 11 per User na Użytkownika - apps/client/src/app/components/admin-overview/admin-overview.html - 31 + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 166 @@ -1119,7 +1111,7 @@ Rejestracja Użytkownika apps/client/src/app/components/admin-overview/admin-overview.html - 37 + 50 @@ -1127,7 +1119,7 @@ Tryb Tylko do Odczytu apps/client/src/app/components/admin-overview/admin-overview.html - 51 + 64 @@ -1135,7 +1127,7 @@ Wiadomość Systemowa apps/client/src/app/components/admin-overview/admin-overview.html - 75 + 88 @@ -1143,7 +1135,7 @@ Ustaw Wiadomość apps/client/src/app/components/admin-overview/admin-overview.html - 97 + 110 @@ -1151,7 +1143,7 @@ Kupony apps/client/src/app/components/admin-overview/admin-overview.html - 105 + 148 @@ -1159,7 +1151,7 @@ Dodaj apps/client/src/app/components/admin-overview/admin-overview.html - 185 + 265 libs/ui/src/lib/account-balances/account-balances.component.html @@ -1171,7 +1163,7 @@ Konserwacja apps/client/src/app/components/admin-overview/admin-overview.html - 193 + 117 @@ -1179,7 +1171,7 @@ Wyczyszczenie pamięci podręcznej apps/client/src/app/components/admin-overview/admin-overview.html - 209 + 133 @@ -1215,7 +1207,7 @@ Profil zasobu został zapisany apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 594 + 618 @@ -1255,7 +1247,7 @@ Obecny rok apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 @@ -1359,7 +1351,7 @@ Zaangażowanie na Dzień apps/client/src/app/components/admin-users/admin-users.html - 140 + 136 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1371,7 +1363,7 @@ Ostatnie Żądanie apps/client/src/app/components/admin-users/admin-users.html - 186 + 182 @@ -1379,7 +1371,7 @@ Wciel się w Użytkownika apps/client/src/app/components/admin-users/admin-users.html - 233 + 229 @@ -1387,7 +1379,7 @@ Usuń Użytkownika apps/client/src/app/components/admin-users/admin-users.html - 254 + 250 @@ -1395,11 +1387,11 @@ Could not validate form apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 570 + 594 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 573 + 597 @@ -1431,7 +1423,7 @@ apps/client/src/app/components/header/header.component.html - 258 + 257 apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts @@ -1467,7 +1459,7 @@ O Ghostfolio apps/client/src/app/components/header/header.component.html - 326 + 322 apps/client/src/app/pages/about/overview/about-overview-page.html @@ -1479,15 +1471,15 @@ Zaloguj się apps/client/src/app/components/header/header.component.html - 422 + 421 apps/client/src/app/components/header/header.component.ts - 298 + 296 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 79 + 81 libs/common/src/lib/routes/routes.ts @@ -1503,7 +1495,7 @@ Ups! Nieprawidłowy token bezpieczeństwa. apps/client/src/app/components/header/header.component.ts - 313 + 311 apps/client/src/app/components/user-account-access/user-account-access.component.ts @@ -1535,7 +1527,7 @@ libs/ui/src/lib/i18n.ts - 109 + 108 @@ -1551,7 +1543,7 @@ libs/ui/src/lib/i18n.ts - 110 + 109 @@ -1595,7 +1587,7 @@ Skonfiguruj swoje konta apps/client/src/app/components/home-overview/home-overview.html - 19 + 16 @@ -1603,7 +1595,7 @@ Uzyskaj kompleksowy przegląd finansowy, poprzez dodanie swoich rachunków bankowych i maklerskich. apps/client/src/app/components/home-overview/home-overview.html - 21 + 18 @@ -1611,7 +1603,7 @@ Rejestruj swoje działania apps/client/src/app/components/home-overview/home-overview.html - 28 + 25 @@ -1619,7 +1611,7 @@ Dokumentuj swoje działania inwestycyjne, aby zapewnić aktualność portfela. apps/client/src/app/components/home-overview/home-overview.html - 30 + 27 @@ -1627,7 +1619,7 @@ Monitoruj i analizuj swój portfel apps/client/src/app/components/home-overview/home-overview.html - 37 + 34 @@ -1635,7 +1627,7 @@ Śledź swój postęp w czasie rzeczywistym dzięki kompleksowym analizom i obserwacjom. apps/client/src/app/components/home-overview/home-overview.html - 39 + 36 @@ -1643,7 +1635,7 @@ Konfiguracja kont apps/client/src/app/components/home-overview/home-overview.html - 52 + 49 @@ -1651,7 +1643,7 @@ Obecny tydzień apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 @@ -1659,7 +1651,7 @@ Dodaj działalność apps/client/src/app/components/home-overview/home-overview.html - 60 + 57 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html @@ -1671,7 +1663,15 @@ Całkowita Kwota apps/client/src/app/components/investment-chart/investment-chart.component.ts - 146 + 147 + + + + Code + Code + + apps/client/src/app/components/admin-overview/admin-overview.html + 159 @@ -1679,7 +1679,7 @@ Stopa Oszczędności apps/client/src/app/components/investment-chart/investment-chart.component.ts - 202 + 205 @@ -1719,7 +1719,7 @@ apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 32 + 34 apps/client/src/app/pages/landing/landing-page.html @@ -1759,7 +1759,7 @@ Zaloguj się przez Google apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 44 + 46 @@ -1767,7 +1767,7 @@ Pozostań zalogowany apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 66 + 68 @@ -1791,7 +1791,7 @@ Opłaty apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 208 + 206 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -1807,7 +1807,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 259 + 257 @@ -1819,7 +1819,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 278 + 276 @@ -1835,7 +1835,7 @@ Aktywa apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 233 + 232 @@ -1843,7 +1843,7 @@ Siła Nabywcza apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 248 + 247 @@ -1851,7 +1851,7 @@ Wykluczone z Analizy apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 274 + 273 @@ -1859,7 +1859,7 @@ Pasywa (Zobowiązania Finansowe) apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 302 + 301 apps/client/src/app/pages/features/features-page.html @@ -1871,7 +1871,7 @@ Wartość Netto apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 324 + 323 @@ -1879,7 +1879,7 @@ Osiągi w Ujęciu Rocznym apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 338 + 337 @@ -1887,7 +1887,7 @@ Wprowadź wysokość funduszu rezerwowego: apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 111 + 110 @@ -1895,7 +1895,7 @@ Cena Minimalna apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 130 + 129 @@ -1903,7 +1903,7 @@ Cena Maksymalna apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 147 + 145 @@ -1911,11 +1911,11 @@ Ilość apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 157 + 155 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 185 + 183 libs/ui/src/lib/activities-table/activities-table.component.html @@ -1931,7 +1931,7 @@ Zgłoś Błąd Danych apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 456 + 452 @@ -2111,7 +2111,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 362 + 373 @@ -2119,11 +2119,11 @@ Liczony od początku roku (year-to-date) apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -2131,11 +2131,11 @@ 1 rok apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -2143,11 +2143,11 @@ 5 lat apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -2155,7 +2155,7 @@ Wynik z efektem walutowym apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 135 + 134 @@ -2163,11 +2163,11 @@ Maksimum apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 217 + 221 libs/ui/src/lib/assistant/assistant.component.ts - 414 + 425 @@ -2191,7 +2191,7 @@ Przyznano dostęp apps/client/src/app/components/user-account-access/user-account-access.html - 57 + 59 @@ -2463,7 +2463,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 194 + 191 @@ -2475,7 +2475,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 192 + 189 @@ -2491,7 +2491,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 195 + 192 @@ -2507,7 +2507,7 @@ apps/client/src/app/components/header/header.component.html - 375 + 370 apps/client/src/app/pages/about/overview/about-overview-page.routes.ts @@ -2607,7 +2607,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 97 + 93 apps/client/src/app/components/header/header.component.html @@ -2615,11 +2615,11 @@ apps/client/src/app/components/header/header.component.html - 268 + 267 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 381 + 378 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -2703,7 +2703,7 @@ apps/client/src/app/components/header/header.component.html - 289 + 287 libs/common/src/lib/routes/routes.ts @@ -2715,7 +2715,7 @@ Dane Rynkowe apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 403 + 400 libs/common/src/lib/routes/routes.ts @@ -2741,6 +2741,10 @@ Users Użytkownicy + + apps/client/src/app/components/admin-overview/admin-overview.html + 24 + libs/common/src/lib/routes/routes.ts 61 @@ -2763,7 +2767,7 @@ apps/client/src/app/components/header/header.component.html - 248 + 247 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html @@ -2771,11 +2775,11 @@ apps/client/src/app/pages/admin/admin-page.component.ts - 45 + 41 apps/client/src/app/pages/resources/resources-page.component.ts - 29 + 27 libs/common/src/lib/routes/routes.ts @@ -2885,6 +2889,10 @@ apps/client/src/app/pages/blog/2025/11/black-weeks-2025/black-weeks-2025-page.html 147 + + apps/client/src/app/pages/blog/2026/04/ghostfolio-3/ghostfolio-3-page.html + 269 + apps/client/src/app/pages/blog/blog-page.html 5 @@ -2899,11 +2907,11 @@ Nie udało się przetworzyć konfiguracji scrapera apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 525 + 545 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 528 + 548 @@ -2922,6 +2930,14 @@ 32 + + Duration + Duration + + apps/client/src/app/components/admin-overview/admin-overview.html + 172 + + Frequently Asked Questions (FAQ) Często zadawane pytania (FAQ) @@ -2951,7 +2967,7 @@ apps/client/src/app/components/header/header.component.html - 361 + 356 apps/client/src/app/pages/features/features-page.html @@ -3071,7 +3087,7 @@ Rozpocznij apps/client/src/app/components/header/header.component.html - 433 + 432 apps/client/src/app/pages/features/features-page.html @@ -3103,7 +3119,7 @@ Inwestycje apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 102 + 100 apps/client/src/app/components/home-holdings/home-holdings.html @@ -3151,7 +3167,7 @@ apps/client/src/app/components/header/header.component.html - 408 + 403 apps/client/src/app/components/home-market/home-market.html @@ -3167,7 +3183,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 39 + 37 libs/common/src/lib/routes/routes.ts @@ -3631,31 +3647,35 @@ Aktywności apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 86 + 84 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 113 + 111 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html 226 + + apps/client/src/app/components/admin-overview/admin-overview.html + 38 + apps/client/src/app/components/admin-tag/admin-tag.component.html 45 apps/client/src/app/components/admin-users/admin-users.html - 118 + 114 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 231 + 229 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 348 + 342 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -3747,7 +3767,7 @@ Zaktualizuj Saldo Gotówkowe apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 108 + 109 @@ -3755,7 +3775,7 @@ Cena Jednostkowa apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 210 + 208 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3767,7 +3787,7 @@ Importuj Aktywności apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 92 + 93 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3783,7 +3803,7 @@ Impotruj Dywidendy apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 136 + 132 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3799,7 +3819,7 @@ Importowanie danych... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 174 + 171 @@ -3807,7 +3827,7 @@ Importowanie zakończone apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 184 + 181 @@ -3823,7 +3843,7 @@ Weryfikacja danych... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 293 + 291 @@ -4007,7 +4027,7 @@ libs/ui/src/lib/i18n.ts - 17 + 16 @@ -4103,15 +4123,15 @@ Dywidenda apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 81 + 79 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 186 + 184 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 372 + 371 apps/client/src/app/pages/features/features-page.html @@ -4119,7 +4139,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 198 + 196 apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts @@ -4127,7 +4147,7 @@ libs/ui/src/lib/i18n.ts - 38 + 37 @@ -4167,7 +4187,7 @@ Największe wzrosty apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 305 + 303 @@ -4175,7 +4195,7 @@ Największy spadek apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 354 + 352 @@ -4183,7 +4203,7 @@ Rozwój portfela apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 407 + 405 @@ -4191,7 +4211,7 @@ Oś czasu inwestycji apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 436 + 434 @@ -4199,7 +4219,7 @@ Obecna passa apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 457 + 455 @@ -4207,7 +4227,7 @@ Najdłuższa passa apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 466 + 464 @@ -4215,7 +4235,7 @@ Oś czasu dywidend apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 495 + 493 @@ -4247,11 +4267,11 @@ apps/client/src/app/components/header/header.component.html - 313 + 309 apps/client/src/app/components/header/header.component.html - 389 + 384 apps/client/src/app/pages/pricing/pricing-page.routes.ts @@ -4439,11 +4459,11 @@ Could not save asset profile apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 604 + 628 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 607 + 631 @@ -4491,7 +4511,7 @@ Rejestracja apps/client/src/app/components/admin-users/admin-users.html - 80 + 76 libs/common/src/lib/routes/routes.ts @@ -4804,7 +4824,7 @@ libs/ui/src/lib/i18n.ts - 100 + 99 @@ -4816,7 +4836,7 @@ libs/ui/src/lib/i18n.ts - 18 + 17 @@ -4832,7 +4852,7 @@ apps/client/src/app/components/header/header.component.html - 301 + 297 apps/client/src/app/pages/resources/overview/resources-overview.component.html @@ -4880,7 +4900,7 @@ Moje Ghostfolio apps/client/src/app/components/header/header.component.html - 277 + 276 apps/client/src/app/pages/user-account/user-account-page.routes.ts @@ -5024,7 +5044,7 @@ Loan libs/ui/src/lib/i18n.ts - 59 + 58 @@ -5072,11 +5092,11 @@ Odsetki apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 69 + 67 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 359 + 358 libs/ui/src/lib/fire-calculator/fire-calculator.component.ts @@ -5084,7 +5104,7 @@ libs/ui/src/lib/i18n.ts - 40 + 39 @@ -5128,7 +5148,7 @@ Konto apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 85 + 86 libs/ui/src/lib/activities-table/activities-table.component.html @@ -5168,11 +5188,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 242 + 240 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 286 + 283 libs/ui/src/lib/i18n.ts @@ -5200,11 +5220,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 251 + 249 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 305 + 302 libs/ui/src/lib/i18n.ts @@ -5235,14 +5255,6 @@ 13 - - Switch to Ghostfolio Open Source or Ghostfolio Basic easily - Przełącz się z łatwością na Ghostfolio Open Source lub Ghostfolio Basic - - libs/ui/src/lib/i18n.ts - 14 - - Emergency Fund Fundusz Rezerwowy @@ -5256,7 +5268,7 @@ libs/ui/src/lib/i18n.ts - 16 + 15 @@ -5264,7 +5276,7 @@ Dotacja libs/ui/src/lib/i18n.ts - 19 + 18 @@ -5272,7 +5284,7 @@ Wyższe Ryzyko libs/ui/src/lib/i18n.ts - 20 + 19 @@ -5280,7 +5292,7 @@ Ta działalność już istnieje. libs/ui/src/lib/i18n.ts - 21 + 20 @@ -5288,7 +5300,7 @@ Japonia libs/ui/src/lib/i18n.ts - 93 + 92 @@ -5296,7 +5308,7 @@ Niższe Ryzyko libs/ui/src/lib/i18n.ts - 22 + 21 @@ -5304,7 +5316,7 @@ Miesiąc libs/ui/src/lib/i18n.ts - 23 + 22 @@ -5312,7 +5324,7 @@ Miesiące libs/ui/src/lib/i18n.ts - 24 + 23 @@ -5320,7 +5332,7 @@ Inne libs/ui/src/lib/i18n.ts - 25 + 24 libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -5332,7 +5344,7 @@ Wstępnie ustawione libs/ui/src/lib/i18n.ts - 27 + 26 @@ -5348,7 +5360,7 @@ Świadczenia Emerytalne libs/ui/src/lib/i18n.ts - 28 + 27 @@ -5364,7 +5376,7 @@ Satelita libs/ui/src/lib/i18n.ts - 29 + 28 @@ -5388,11 +5400,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 318 + 314 libs/ui/src/lib/i18n.ts - 30 + 29 @@ -5400,7 +5412,7 @@ Tag libs/ui/src/lib/i18n.ts - 31 + 30 libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html @@ -5412,7 +5424,7 @@ Rok libs/ui/src/lib/i18n.ts - 32 + 31 @@ -5420,7 +5432,7 @@ Zobacz szczegóły apps/client/src/app/components/admin-users/admin-users.html - 225 + 221 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -5432,7 +5444,7 @@ Lata libs/ui/src/lib/i18n.ts - 33 + 32 @@ -5440,7 +5452,7 @@ Zaloguj się za pomocą OpenID Connect apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 55 + 57 @@ -5452,7 +5464,7 @@ libs/ui/src/lib/i18n.ts - 37 + 36 @@ -5460,7 +5472,7 @@ Opłata apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 258 + 255 libs/ui/src/lib/activities-table/activities-table.component.html @@ -5468,7 +5480,7 @@ libs/ui/src/lib/i18n.ts - 39 + 38 @@ -5476,7 +5488,7 @@ Kosztowności libs/ui/src/lib/i18n.ts - 43 + 42 @@ -5484,7 +5496,7 @@ Zobowiązanie libs/ui/src/lib/i18n.ts - 41 + 40 @@ -5496,7 +5508,7 @@ libs/ui/src/lib/i18n.ts - 42 + 41 @@ -5504,11 +5516,11 @@ Gotówka apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 219 + 218 libs/ui/src/lib/i18n.ts - 55 + 54 @@ -5516,7 +5528,7 @@ Towar libs/ui/src/lib/i18n.ts - 47 + 46 @@ -5524,11 +5536,11 @@ Kapitał apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 57 + 55 libs/ui/src/lib/i18n.ts - 48 + 47 @@ -5536,7 +5548,7 @@ Stały Dochód libs/ui/src/lib/i18n.ts - 49 + 48 @@ -5544,7 +5556,7 @@ Nieruchomość libs/ui/src/lib/i18n.ts - 51 + 50 @@ -5560,7 +5572,7 @@ Obligacja libs/ui/src/lib/i18n.ts - 54 + 53 @@ -5568,7 +5580,7 @@ Kryptowaluta libs/ui/src/lib/i18n.ts - 57 + 56 @@ -5576,7 +5588,7 @@ ETF libs/ui/src/lib/i18n.ts - 58 + 57 @@ -5584,7 +5596,7 @@ Fundusz Wzajemny libs/ui/src/lib/i18n.ts - 60 + 59 @@ -5592,7 +5604,7 @@ Metal Szlachetny libs/ui/src/lib/i18n.ts - 61 + 60 @@ -5600,7 +5612,7 @@ Prywatny Kapitał libs/ui/src/lib/i18n.ts - 62 + 61 @@ -5608,7 +5620,7 @@ Akcje libs/ui/src/lib/i18n.ts - 63 + 62 @@ -5616,7 +5628,7 @@ Afryka libs/ui/src/lib/i18n.ts - 70 + 69 @@ -5624,7 +5636,7 @@ Azja libs/ui/src/lib/i18n.ts - 71 + 70 @@ -5632,7 +5644,7 @@ Europa libs/ui/src/lib/i18n.ts - 72 + 71 @@ -5640,7 +5652,7 @@ Ameryka Północna libs/ui/src/lib/i18n.ts - 73 + 72 @@ -5656,7 +5668,7 @@ Oceania libs/ui/src/lib/i18n.ts - 74 + 73 @@ -5664,7 +5676,7 @@ Ameryka Południowa libs/ui/src/lib/i18n.ts - 75 + 74 @@ -5672,7 +5684,7 @@ Skrajny Strach libs/ui/src/lib/i18n.ts - 107 + 106 @@ -5680,7 +5692,7 @@ Skrajna Zachłanność libs/ui/src/lib/i18n.ts - 108 + 107 @@ -5688,7 +5700,7 @@ Neutralny libs/ui/src/lib/i18n.ts - 111 + 110 @@ -5736,7 +5748,7 @@ libs/ui/src/lib/top-holdings/top-holdings.component.html - 181 + 186 @@ -5760,7 +5772,7 @@ Salda Gotówkowe apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 146 + 142 @@ -5796,7 +5808,7 @@ Obecna cena rynkowa wynosi apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 722 + 743 @@ -5852,7 +5864,7 @@ Argentyna libs/ui/src/lib/i18n.ts - 79 + 78 @@ -5876,7 +5888,7 @@ Dane rynkowe są opóźnione o apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts - 95 + 94 @@ -5884,7 +5896,7 @@ Inwestycje apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 171 + 169 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -5916,7 +5928,7 @@ Zamknij pozycję apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 447 + 442 @@ -5924,7 +5936,7 @@ Łączny wynik aktywów apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 168 + 166 @@ -5932,7 +5944,7 @@ Wyniki aktywów apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 190 + 188 @@ -5940,7 +5952,7 @@ Łączny wynik walut apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 211 + 209 @@ -5948,7 +5960,7 @@ Wynik walut apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 236 + 234 @@ -5956,7 +5968,7 @@ Dotychczasowy tydzień libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5964,11 +5976,11 @@ WTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5976,7 +5988,7 @@ Od początku miesiąca libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5984,11 +5996,11 @@ MTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5996,7 +6008,7 @@ Od początku roku libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -6032,7 +6044,7 @@ rok apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 apps/client/src/app/pages/resources/personal-finance-tools/product-page.html @@ -6044,7 +6056,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -6052,11 +6064,11 @@ lata apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -6076,7 +6088,15 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 63 + 76 + + + + Find a holding... + Find a holding... + + libs/ui/src/lib/assistant/assistant.component.ts + 472 @@ -6084,7 +6104,7 @@ Informacje Ogólne apps/client/src/app/pages/faq/faq-page.component.ts - 41 + 35 @@ -6092,7 +6112,7 @@ Rozwiązanie w Chmurze apps/client/src/app/pages/faq/faq-page.component.ts - 46 + 40 libs/common/src/lib/routes/routes.ts @@ -6104,7 +6124,7 @@ Własny Hosting apps/client/src/app/pages/faq/faq-page.component.ts - 52 + 46 libs/common/src/lib/routes/routes.ts @@ -6145,7 +6165,7 @@ Antywne apps/client/src/app/components/home-holdings/home-holdings.component.ts - 63 + 61 @@ -6153,7 +6173,7 @@ Zamknięte apps/client/src/app/components/home-holdings/home-holdings.component.ts - 64 + 62 @@ -6161,7 +6181,7 @@ Indonezja libs/ui/src/lib/i18n.ts - 91 + 90 @@ -6169,7 +6189,7 @@ Aktywność apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 229 + 227 @@ -6177,7 +6197,7 @@ Dochód z Dywidendy apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 196 + 194 @@ -6209,7 +6229,7 @@ Płynność środków finansowych libs/ui/src/lib/i18n.ts - 50 + 49 @@ -6252,6 +6272,14 @@ 205 + + Jump to a page... + Jump to a page... + + libs/ui/src/lib/assistant/assistant.component.ts + 473 + + Danger Zone Strefa Zagrożenia @@ -6265,7 +6293,7 @@ Zamknij Konto apps/client/src/app/components/user-account-settings/user-account-settings.html - 316 + 318 @@ -6273,7 +6301,7 @@ Wg. Holdingu ETF apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 329 + 327 @@ -6281,7 +6309,7 @@ Przybliżenie oparte na najwyższych aktywach każdego funduszu ETF apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 336 + 334 @@ -6313,7 +6341,7 @@ Pokaż więcej libs/ui/src/lib/top-holdings/top-holdings.component.html - 174 + 179 @@ -6549,7 +6577,7 @@ Australia libs/ui/src/lib/i18n.ts - 80 + 79 @@ -6557,7 +6585,7 @@ Austria libs/ui/src/lib/i18n.ts - 81 + 80 @@ -6565,7 +6593,7 @@ Belgia libs/ui/src/lib/i18n.ts - 82 + 81 @@ -6573,7 +6601,7 @@ Bułgaria libs/ui/src/lib/i18n.ts - 84 + 83 @@ -6589,7 +6617,7 @@ Kanada libs/ui/src/lib/i18n.ts - 85 + 84 @@ -6597,7 +6625,7 @@ Czechy libs/ui/src/lib/i18n.ts - 86 + 85 @@ -6605,7 +6633,7 @@ Finlandia libs/ui/src/lib/i18n.ts - 87 + 86 @@ -6613,7 +6641,7 @@ Francja libs/ui/src/lib/i18n.ts - 88 + 87 @@ -6621,7 +6649,7 @@ Niemcy libs/ui/src/lib/i18n.ts - 89 + 88 @@ -6629,7 +6657,7 @@ Indie libs/ui/src/lib/i18n.ts - 90 + 89 @@ -6637,7 +6665,7 @@ Włochy libs/ui/src/lib/i18n.ts - 92 + 91 @@ -6645,7 +6673,7 @@ Holandia libs/ui/src/lib/i18n.ts - 94 + 93 @@ -6653,7 +6681,7 @@ Nowa Zelandia libs/ui/src/lib/i18n.ts - 95 + 94 @@ -6661,7 +6689,7 @@ Polska libs/ui/src/lib/i18n.ts - 96 + 95 @@ -6669,7 +6697,7 @@ Rumunia libs/ui/src/lib/i18n.ts - 97 + 96 @@ -6677,7 +6705,7 @@ Południowa Afryka libs/ui/src/lib/i18n.ts - 99 + 98 @@ -6685,7 +6713,7 @@ Tajlandia libs/ui/src/lib/i18n.ts - 101 + 100 @@ -6693,7 +6721,7 @@ Stany Zjednoczone libs/ui/src/lib/i18n.ts - 104 + 103 @@ -6701,7 +6729,7 @@ Błąd apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 713 + 734 @@ -6741,7 +6769,7 @@ Nieaktywny apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html - 88 + 85 @@ -6785,7 +6813,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 341 + 338 apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.html @@ -6825,7 +6853,7 @@ apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 130 + 124 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -6841,7 +6869,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 343 + 340 libs/ui/src/lib/i18n.ts @@ -6861,7 +6889,7 @@ Tak libs/ui/src/lib/i18n.ts - 34 + 33 @@ -6909,7 +6937,7 @@ Próg minimalny apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 55 + 52 @@ -6917,7 +6945,7 @@ Próg maksymalny apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 93 + 87 @@ -6945,8 +6973,12 @@ - has been copied to the clipboard - has been copied to the clipboard + has been copied to the clipboard + has been copied to the clipboard + + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 378 + libs/ui/src/lib/value/value.component.ts 180 @@ -7125,7 +7157,7 @@ Uzyskaj dostęp do ponad 80 000 pasków notowań giełdowych z ponad 50 giełd libs/ui/src/lib/i18n.ts - 26 + 25 @@ -7133,7 +7165,7 @@ Ukraina libs/ui/src/lib/i18n.ts - 102 + 101 @@ -7153,7 +7185,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 44 + 42 libs/common/src/lib/routes/routes.ts @@ -7169,7 +7201,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 33 + 31 libs/common/src/lib/routes/routes.ts @@ -7255,7 +7287,7 @@ Wprowadź swój klucz API konta Ghostfolio: apps/client/src/app/pages/api/api-page.component.ts - 46 + 62 @@ -7263,7 +7295,7 @@ Dzisiejsze Zapytania API apps/client/src/app/components/admin-users/admin-users.html - 161 + 157 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -7359,11 +7391,11 @@ apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 109 + 108 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 136 + 130 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -7375,7 +7407,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 352 + 349 libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.html @@ -7399,7 +7431,7 @@ Otrzymany dostęp apps/client/src/app/components/user-account-access/user-account-access.html - 53 + 55 @@ -7423,7 +7455,7 @@ Zmiana z efektem walutowym apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 116 + 115 @@ -7447,7 +7479,7 @@ Leniwy apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7455,7 +7487,7 @@ Natychmiastowy apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7495,7 +7527,7 @@ koniec dnia apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7503,7 +7535,7 @@ w czasie rzeczywistym apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7531,7 +7563,7 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 @@ -7543,7 +7575,7 @@ apps/client/src/app/components/home-overview/home-overview.component.ts - 54 + 52 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -7551,11 +7583,11 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 390 + 394 @@ -7587,7 +7619,7 @@ Wartość portfela apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 95 + 94 @@ -7595,7 +7627,7 @@ Armenia libs/ui/src/lib/i18n.ts - 78 + 77 @@ -7603,7 +7635,7 @@ Brytyjskie Wyspy Dziewicze libs/ui/src/lib/i18n.ts - 83 + 82 @@ -7611,7 +7643,7 @@ Singapur libs/ui/src/lib/i18n.ts - 98 + 97 @@ -7674,20 +7706,12 @@ 240 - - Find account, holding or page... - Znajdź konto, pozycję lub stronę... - - libs/ui/src/lib/assistant/assistant.component.ts - 115 - - Generate Security Token Generowanie Tokena Zabezpieczającego apps/client/src/app/components/admin-users/admin-users.html - 243 + 239 @@ -7695,7 +7719,7 @@ Wielka Brytania libs/ui/src/lib/i18n.ts - 103 + 102 @@ -7744,7 +7768,7 @@ () jest już w użyciu. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 649 + 675 @@ -7752,7 +7776,7 @@ Wystąpił błąd podczas aktualizacji do (). apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 657 + 683 @@ -7816,7 +7840,7 @@ ktoś apps/client/src/app/pages/public/public-page.component.ts - 61 + 62 @@ -7848,7 +7872,7 @@ Czy na pewno chcesz usunąć ten element? libs/ui/src/lib/benchmark/benchmark.component.ts - 139 + 137 @@ -7856,7 +7880,7 @@ Wyloguj się apps/client/src/app/components/header/header.component.html - 329 + 325 @@ -7889,7 +7913,7 @@ Konto użytkownika demonstracyjnego zostało zsynchronizowane. apps/client/src/app/components/admin-overview/admin-overview.component.ts - 277 + 303 @@ -7897,7 +7921,7 @@ Synchronizuj konto użytkownika demonstracyjnego apps/client/src/app/components/admin-overview/admin-overview.html - 204 + 128 @@ -8103,7 +8127,7 @@ Bieżący miesiąc apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 @@ -8276,7 +8300,7 @@ Generuj apps/client/src/app/components/user-account-access/user-account-access.html - 43 + 45 @@ -8316,7 +8340,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 39 + 35 @@ -8324,7 +8348,7 @@ Zarządzaj profilem aktywów apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 471 + 467 @@ -8332,7 +8356,7 @@ Inwestycja alternatywna libs/ui/src/lib/i18n.ts - 46 + 45 @@ -8340,7 +8364,7 @@ Kolekcjonerskie libs/ui/src/lib/i18n.ts - 56 + 55 diff --git a/apps/client/src/locales/messages.pt.xlf b/apps/client/src/locales/messages.pt.xlf index 0eb436849..2588a73ab 100644 --- a/apps/client/src/locales/messages.pt.xlf +++ b/apps/client/src/locales/messages.pt.xlf @@ -98,7 +98,7 @@ Plataforma apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 90 + 88 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -146,7 +146,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 135 + 134 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -202,7 +202,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 141 + 140 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -218,7 +218,7 @@ Saldo disponível em dinheiro apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 45 + 43 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -238,15 +238,15 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 201 + 199 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 204 + 202 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 207 + 205 libs/ui/src/lib/account-balances/account-balances.component.html @@ -322,7 +322,7 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 140 + 213 apps/client/src/app/components/admin-platform/admin-platform.component.html @@ -358,7 +358,7 @@ Pretende realmente eliminar esta conta? libs/ui/src/lib/accounts-table/accounts-table.component.ts - 148 + 146 @@ -378,11 +378,11 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 151 + 150 libs/ui/src/lib/i18n.ts - 15 + 14 @@ -493,12 +493,20 @@ 2 + + Find an account... + Find an account... + + libs/ui/src/lib/assistant/assistant.component.ts + 471 + + Date Data apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 157 + 156 libs/ui/src/lib/account-balances/account-balances.component.html @@ -534,7 +542,7 @@ Filtrar por... apps/client/src/app/components/admin-market-data/admin-market-data.component.ts - 383 + 368 @@ -550,21 +558,13 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 219 + 217 libs/ui/src/lib/holdings-table/holdings-table.component.html 45 - - Activity Count - Número de Atividades - - apps/client/src/app/components/admin-overview/admin-overview.html - 22 - - Historical Data Dados Históricos @@ -574,7 +574,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 40 + 42 @@ -610,7 +610,7 @@ Deseja realmente eliminar este cupão? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 196 + 222 @@ -618,7 +618,7 @@ Deseja realmente limpar a cache? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 233 + 259 @@ -626,23 +626,15 @@ Por favor, defina a sua mensagem do sistema: apps/client/src/app/components/admin-overview/admin-overview.component.ts - 253 - - - - User Count - Número de Utilizadores - - apps/client/src/app/components/admin-overview/admin-overview.html - 16 + 279 per User por Utilizador - apps/client/src/app/components/admin-overview/admin-overview.html - 31 + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 166 @@ -658,7 +650,7 @@ Mensagem de Sistema apps/client/src/app/components/admin-overview/admin-overview.html - 75 + 88 @@ -666,7 +658,7 @@ Definir Mensagem apps/client/src/app/components/admin-overview/admin-overview.html - 97 + 110 @@ -674,7 +666,7 @@ Modo Somente Leitura apps/client/src/app/components/admin-overview/admin-overview.html - 51 + 64 @@ -682,7 +674,7 @@ Cupões apps/client/src/app/components/admin-overview/admin-overview.html - 105 + 148 @@ -690,7 +682,7 @@ Adicionar apps/client/src/app/components/admin-overview/admin-overview.html - 185 + 265 libs/ui/src/lib/account-balances/account-balances.component.html @@ -702,7 +694,7 @@ Manutenção apps/client/src/app/components/admin-overview/admin-overview.html - 193 + 117 @@ -710,7 +702,7 @@ Limpar Cache apps/client/src/app/components/admin-overview/admin-overview.html - 209 + 133 @@ -750,7 +742,7 @@ Envolvimento por Dia apps/client/src/app/components/admin-users/admin-users.html - 140 + 136 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -762,7 +754,7 @@ Último Pedido apps/client/src/app/components/admin-users/admin-users.html - 186 + 182 @@ -770,11 +762,11 @@ Could not validate form apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 570 + 594 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 573 + 597 @@ -798,7 +790,7 @@ apps/client/src/app/components/header/header.component.html - 258 + 257 apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts @@ -834,7 +826,7 @@ Sobre o Ghostfolio apps/client/src/app/components/header/header.component.html - 326 + 322 apps/client/src/app/pages/about/overview/about-overview-page.html @@ -846,15 +838,15 @@ Iniciar sessão apps/client/src/app/components/header/header.component.html - 422 + 421 apps/client/src/app/components/header/header.component.ts - 298 + 296 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 79 + 81 libs/common/src/lib/routes/routes.ts @@ -870,7 +862,7 @@ Oops! Token de Segurança Incorreto. apps/client/src/app/components/header/header.component.ts - 313 + 311 apps/client/src/app/components/user-account-access/user-account-access.component.ts @@ -902,7 +894,7 @@ libs/ui/src/lib/i18n.ts - 109 + 108 @@ -918,7 +910,7 @@ libs/ui/src/lib/i18n.ts - 110 + 109 @@ -954,7 +946,15 @@ Valor Total apps/client/src/app/components/investment-chart/investment-chart.component.ts - 146 + 147 + + + + Code + Code + + apps/client/src/app/components/admin-overview/admin-overview.html + 159 @@ -962,7 +962,7 @@ Taxa de Poupança apps/client/src/app/components/investment-chart/investment-chart.component.ts - 202 + 205 @@ -1002,7 +1002,7 @@ apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 32 + 34 apps/client/src/app/pages/landing/landing-page.html @@ -1042,7 +1042,7 @@ Iniciar sessão com Google apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 44 + 46 @@ -1050,7 +1050,7 @@ Manter sessão iniciada apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 66 + 68 @@ -1078,7 +1078,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 259 + 257 @@ -1090,7 +1090,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 278 + 276 @@ -1106,7 +1106,7 @@ Poder de Compra apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 248 + 247 @@ -1114,7 +1114,7 @@ Excluído da Análise apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 274 + 273 @@ -1122,7 +1122,7 @@ Valor Líquido apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 324 + 323 @@ -1130,7 +1130,7 @@ Desempenho Anual apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 338 + 337 @@ -1138,7 +1138,7 @@ Por favor, insira o valor do seu fundo de emergência: apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 111 + 110 @@ -1146,7 +1146,7 @@ Preço Mínimo apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 130 + 129 @@ -1154,7 +1154,7 @@ Preço Máximo apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 147 + 145 @@ -1162,11 +1162,11 @@ Quantidade apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 157 + 155 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 185 + 183 libs/ui/src/lib/activities-table/activities-table.component.html @@ -1186,7 +1186,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 268 + 266 @@ -1198,11 +1198,11 @@ apps/client/src/app/components/admin-users/admin-users.html - 60 + 56 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 278 + 276 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1222,7 +1222,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 284 + 282 apps/client/src/app/pages/public/public-page.html @@ -1242,7 +1242,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 296 + 294 @@ -1266,7 +1266,7 @@ Dados do Relatório com Problema apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 456 + 452 @@ -1306,7 +1306,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 362 + 373 @@ -1314,11 +1314,11 @@ AATD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -1326,11 +1326,11 @@ 1A apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -1338,11 +1338,11 @@ 5A apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -1350,7 +1350,7 @@ Performance with currency effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 135 + 134 @@ -1358,11 +1358,11 @@ Máx apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 217 + 221 libs/ui/src/lib/assistant/assistant.component.ts - 414 + 425 @@ -1386,7 +1386,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 194 + 191 @@ -1398,7 +1398,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 192 + 189 @@ -1414,7 +1414,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 195 + 192 @@ -1430,7 +1430,7 @@ apps/client/src/app/components/header/header.component.html - 375 + 370 apps/client/src/app/pages/about/overview/about-overview-page.routes.ts @@ -1462,7 +1462,7 @@ O meu Ghostfolio apps/client/src/app/components/header/header.component.html - 277 + 276 apps/client/src/app/pages/user-account/user-account-page.routes.ts @@ -1584,6 +1584,10 @@ Users Utilizadores + + apps/client/src/app/components/admin-overview/admin-overview.html + 24 + libs/common/src/lib/routes/routes.ts 61 @@ -1682,7 +1686,7 @@ Acesso Concedido apps/client/src/app/components/user-account-access/user-account-access.html - 57 + 59 @@ -1710,7 +1714,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 97 + 93 apps/client/src/app/components/header/header.component.html @@ -1718,11 +1722,11 @@ apps/client/src/app/components/header/header.component.html - 268 + 267 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 381 + 378 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1774,7 +1778,7 @@ apps/client/src/app/components/header/header.component.html - 289 + 287 libs/common/src/lib/routes/routes.ts @@ -1880,6 +1884,10 @@ apps/client/src/app/pages/blog/2025/11/black-weeks-2025/black-weeks-2025-page.html 147 + + apps/client/src/app/pages/blog/2026/04/ghostfolio-3/ghostfolio-3-page.html + 269 + apps/client/src/app/pages/blog/blog-page.html 5 @@ -1897,6 +1905,14 @@ 32 + + Duration + Duration + + apps/client/src/app/components/admin-overview/admin-overview.html + 172 + + Frequently Asked Questions (FAQ) FAQ @@ -1926,7 +1942,7 @@ apps/client/src/app/components/header/header.component.html - 361 + 356 apps/client/src/app/pages/features/features-page.html @@ -1954,7 +1970,7 @@ apps/client/src/app/components/header/header.component.html - 248 + 247 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html @@ -1962,11 +1978,11 @@ apps/client/src/app/pages/admin/admin-page.component.ts - 45 + 41 apps/client/src/app/pages/resources/resources-page.component.ts - 29 + 27 libs/common/src/lib/routes/routes.ts @@ -1990,7 +2006,7 @@ apps/client/src/app/components/header/header.component.html - 408 + 403 apps/client/src/app/components/home-market/home-market.html @@ -2006,7 +2022,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 39 + 37 libs/common/src/lib/routes/routes.ts @@ -2030,31 +2046,35 @@ Atividades apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 86 + 84 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 113 + 111 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html 226 + + apps/client/src/app/components/admin-overview/admin-overview.html + 38 + apps/client/src/app/components/admin-tag/admin-tag.component.html 45 apps/client/src/app/components/admin-users/admin-users.html - 118 + 114 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 231 + 229 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 348 + 342 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -2086,7 +2106,7 @@ Current week apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 @@ -2094,7 +2114,7 @@ Adicionar atividade apps/client/src/app/components/home-overview/home-overview.html - 60 + 57 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html @@ -2110,7 +2130,7 @@ libs/ui/src/lib/i18n.ts - 42 + 41 @@ -2130,7 +2150,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 120 + 119 @@ -2138,7 +2158,7 @@ Preço por Unidade apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 210 + 208 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2158,7 +2178,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 271 + 268 @@ -2166,7 +2186,7 @@ A importar dados... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 174 + 171 @@ -2174,7 +2194,7 @@ A importação foi concluída apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 184 + 181 @@ -2306,7 +2326,7 @@ libs/ui/src/lib/i18n.ts - 17 + 16 @@ -2378,7 +2398,7 @@ Topo apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 305 + 303 @@ -2386,7 +2406,7 @@ Fundo apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 354 + 352 @@ -2394,7 +2414,7 @@ Evolução do Portefólio apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 407 + 405 @@ -2402,7 +2422,7 @@ Cronograma de Investimento apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 436 + 434 @@ -2426,7 +2446,7 @@ Posições apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 102 + 100 apps/client/src/app/components/home-holdings/home-holdings.html @@ -2462,11 +2482,11 @@ apps/client/src/app/components/header/header.component.html - 313 + 309 apps/client/src/app/components/header/header.component.html - 389 + 384 apps/client/src/app/pages/pricing/pricing-page.routes.ts @@ -2518,7 +2538,7 @@ Começar apps/client/src/app/components/header/header.component.html - 433 + 432 apps/client/src/app/pages/features/features-page.html @@ -2550,7 +2570,7 @@ Registo apps/client/src/app/components/admin-users/admin-users.html - 80 + 76 libs/common/src/lib/routes/routes.ts @@ -2610,7 +2630,7 @@ apps/client/src/app/components/header/header.component.html - 301 + 297 apps/client/src/app/pages/resources/overview/resources-overview.component.html @@ -2658,7 +2678,7 @@ Importar Atividades apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 92 + 93 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2762,11 +2782,11 @@ Juros apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 69 + 67 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 359 + 358 libs/ui/src/lib/fire-calculator/fire-calculator.component.ts @@ -2774,7 +2794,7 @@ libs/ui/src/lib/i18n.ts - 40 + 39 @@ -2790,7 +2810,7 @@ Conta apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 85 + 86 libs/ui/src/lib/activities-table/activities-table.component.html @@ -2822,11 +2842,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 242 + 240 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 286 + 283 libs/ui/src/lib/i18n.ts @@ -2850,7 +2870,7 @@ libs/ui/src/lib/i18n.ts - 16 + 15 @@ -2858,7 +2878,7 @@ Outro libs/ui/src/lib/i18n.ts - 25 + 24 libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -2886,11 +2906,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 318 + 314 libs/ui/src/lib/i18n.ts - 30 + 29 @@ -2898,7 +2918,7 @@ Marcador libs/ui/src/lib/i18n.ts - 31 + 30 libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html @@ -2910,11 +2930,11 @@ Dinheiro apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 219 + 218 libs/ui/src/lib/i18n.ts - 55 + 54 @@ -2922,7 +2942,7 @@ Matéria-prima libs/ui/src/lib/i18n.ts - 47 + 46 @@ -2930,11 +2950,11 @@ Ações apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 57 + 55 libs/ui/src/lib/i18n.ts - 48 + 47 @@ -2942,7 +2962,7 @@ Rendimento Fixo libs/ui/src/lib/i18n.ts - 49 + 48 @@ -2950,7 +2970,7 @@ Imobiliário libs/ui/src/lib/i18n.ts - 51 + 50 @@ -2966,7 +2986,7 @@ Obrigação libs/ui/src/lib/i18n.ts - 54 + 53 @@ -2974,7 +2994,7 @@ Criptomoedas libs/ui/src/lib/i18n.ts - 57 + 56 @@ -2982,7 +3002,7 @@ ETF libs/ui/src/lib/i18n.ts - 58 + 57 @@ -2990,7 +3010,7 @@ Fundo de Investimento libs/ui/src/lib/i18n.ts - 60 + 59 @@ -2998,7 +3018,7 @@ Metal Precioso libs/ui/src/lib/i18n.ts - 61 + 60 @@ -3006,7 +3026,7 @@ Private Equity libs/ui/src/lib/i18n.ts - 62 + 61 @@ -3014,7 +3034,7 @@ Ação libs/ui/src/lib/i18n.ts - 63 + 62 @@ -3022,7 +3042,7 @@ África libs/ui/src/lib/i18n.ts - 70 + 69 @@ -3030,7 +3050,7 @@ Ásia libs/ui/src/lib/i18n.ts - 71 + 70 @@ -3038,7 +3058,7 @@ Europa libs/ui/src/lib/i18n.ts - 72 + 71 @@ -3046,7 +3066,7 @@ América do Norte libs/ui/src/lib/i18n.ts - 73 + 72 @@ -3062,7 +3082,7 @@ Oceânia libs/ui/src/lib/i18n.ts - 74 + 73 @@ -3070,7 +3090,7 @@ América do Sul libs/ui/src/lib/i18n.ts - 75 + 74 @@ -3106,7 +3126,7 @@ libs/ui/src/lib/top-holdings/top-holdings.component.html - 181 + 186 @@ -3138,7 +3158,7 @@ Registo do Utilizador apps/client/src/app/components/admin-overview/admin-overview.html - 37 + 50 @@ -3146,7 +3166,7 @@ Dados de Mercado apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 403 + 400 libs/common/src/lib/routes/routes.ts @@ -3170,7 +3190,7 @@ A validar dados... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 293 + 291 @@ -3186,7 +3206,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 67 + 69 @@ -3202,15 +3222,15 @@ Dividendos apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 81 + 79 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 186 + 184 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 372 + 371 apps/client/src/app/pages/features/features-page.html @@ -3218,7 +3238,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 198 + 196 apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts @@ -3226,7 +3246,7 @@ libs/ui/src/lib/i18n.ts - 38 + 37 @@ -3234,7 +3254,7 @@ Cronograma de Dividendos apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 495 + 493 @@ -3254,11 +3274,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 251 + 249 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 305 + 302 libs/ui/src/lib/i18n.ts @@ -3298,7 +3318,7 @@ Importar Dividendos apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 136 + 132 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3334,7 +3354,7 @@ Conceder libs/ui/src/lib/i18n.ts - 19 + 18 @@ -3342,7 +3362,7 @@ Risco mais Elevado libs/ui/src/lib/i18n.ts - 20 + 19 @@ -3350,7 +3370,7 @@ Risco menos Elevado libs/ui/src/lib/i18n.ts - 22 + 21 @@ -3366,7 +3386,7 @@ Provisão de Reforma libs/ui/src/lib/i18n.ts - 28 + 27 @@ -3382,7 +3402,7 @@ Satélite libs/ui/src/lib/i18n.ts - 29 + 28 @@ -3634,11 +3654,11 @@ Could not save asset profile apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 604 + 628 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 607 + 631 @@ -3654,7 +3674,7 @@ Taxas apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 208 + 206 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -3733,20 +3753,12 @@ 12 - - Switch to Ghostfolio Open Source or Ghostfolio Basic easily - Mude para o Ghostfolio Open Source ou Ghostfolio Basic facilmente - - libs/ui/src/lib/i18n.ts - 14 - - Loan Loan libs/ui/src/lib/i18n.ts - 59 + 58 @@ -3814,7 +3826,7 @@ Personificar Utilizador apps/client/src/app/components/admin-users/admin-users.html - 233 + 229 @@ -3822,7 +3834,7 @@ Apagar Utilizador apps/client/src/app/components/admin-users/admin-users.html - 254 + 250 @@ -3870,7 +3882,7 @@ Current year apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 @@ -3906,7 +3918,7 @@ Asset profile has been saved apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 594 + 618 @@ -3930,7 +3942,7 @@ Atualizar saldo em Dinheiro apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 108 + 109 @@ -3986,7 +3998,7 @@ Essa atividade já existe. libs/ui/src/lib/i18n.ts - 21 + 20 @@ -4050,7 +4062,7 @@ Série Atual apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 457 + 455 @@ -4058,7 +4070,7 @@ Série mais Longa apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 466 + 464 @@ -4066,7 +4078,7 @@ Meses libs/ui/src/lib/i18n.ts - 24 + 23 @@ -4074,7 +4086,7 @@ Anos libs/ui/src/lib/i18n.ts - 33 + 32 @@ -4082,7 +4094,7 @@ Mês libs/ui/src/lib/i18n.ts - 23 + 22 @@ -4090,7 +4102,7 @@ Ano libs/ui/src/lib/i18n.ts - 32 + 31 @@ -4098,7 +4110,7 @@ View Details apps/client/src/app/components/admin-users/admin-users.html - 225 + 221 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -4110,7 +4122,7 @@ Responsabilidades apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 302 + 301 apps/client/src/app/pages/features/features-page.html @@ -4250,7 +4262,7 @@ Responsabilidade libs/ui/src/lib/i18n.ts - 41 + 40 @@ -4482,7 +4494,7 @@ Sign in with OpenID Connect apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 55 + 57 @@ -4494,7 +4506,7 @@ libs/ui/src/lib/i18n.ts - 37 + 36 @@ -4502,7 +4514,7 @@ De valor libs/ui/src/lib/i18n.ts - 43 + 42 @@ -4526,7 +4538,7 @@ Ativos apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 233 + 232 @@ -4534,7 +4546,7 @@ Predefinição libs/ui/src/lib/i18n.ts - 27 + 26 @@ -4558,7 +4570,7 @@ Japão libs/ui/src/lib/i18n.ts - 93 + 92 @@ -4582,7 +4594,7 @@ Configurar as suas contas apps/client/src/app/components/home-overview/home-overview.html - 19 + 16 @@ -4590,7 +4602,7 @@ Obtenha uma visão financeira abrangente adicionando as suas contas bancárias e de corretagem. apps/client/src/app/components/home-overview/home-overview.html - 21 + 18 @@ -4598,7 +4610,7 @@ Capture suas atividades apps/client/src/app/components/home-overview/home-overview.html - 28 + 25 @@ -4606,7 +4618,7 @@ Registe as suas actividades de investimento para manter a sua carteira actualizada. apps/client/src/app/components/home-overview/home-overview.html - 30 + 27 @@ -4614,7 +4626,7 @@ Monitorizar e analisar a sua carteira apps/client/src/app/components/home-overview/home-overview.html - 37 + 34 @@ -4622,7 +4634,7 @@ Acompanhe o seu progresso em tempo real com análises e conhecimentos abrangentes. apps/client/src/app/components/home-overview/home-overview.html - 39 + 36 @@ -4638,7 +4650,7 @@ Configurar contas apps/client/src/app/components/home-overview/home-overview.html - 52 + 49 @@ -4806,11 +4818,11 @@ Could not parse scraper configuration apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 525 + 545 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 528 + 548 @@ -5368,7 +5380,7 @@ libs/ui/src/lib/i18n.ts - 100 + 99 @@ -5380,7 +5392,7 @@ libs/ui/src/lib/i18n.ts - 18 + 17 @@ -5472,7 +5484,7 @@ Taxa apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 258 + 255 libs/ui/src/lib/activities-table/activities-table.component.html @@ -5480,7 +5492,7 @@ libs/ui/src/lib/i18n.ts - 39 + 38 @@ -5540,7 +5552,7 @@ Versão apps/client/src/app/components/admin-overview/admin-overview.html - 7 + 11 @@ -5704,7 +5716,7 @@ Medo Extremo libs/ui/src/lib/i18n.ts - 107 + 106 @@ -5712,7 +5724,7 @@ Ganância Extrema libs/ui/src/lib/i18n.ts - 108 + 107 @@ -5720,7 +5732,7 @@ Neutro libs/ui/src/lib/i18n.ts - 111 + 110 @@ -5736,7 +5748,7 @@ Você realmente deseja excluir esta mensagem do sistema? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 209 + 235 @@ -5760,7 +5772,7 @@ Saldos de caixa apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 146 + 142 @@ -5796,7 +5808,7 @@ O preço de mercado atual é apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 722 + 743 @@ -5852,7 +5864,7 @@ Argentina libs/ui/src/lib/i18n.ts - 79 + 78 @@ -5876,7 +5888,7 @@ Dados de mercado estão atrasados para apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts - 95 + 94 @@ -5884,7 +5896,7 @@ Investimento apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 171 + 169 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -5916,7 +5928,7 @@ Close Holding apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 447 + 442 @@ -5924,7 +5936,7 @@ Desempenho absoluto de ativos apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 168 + 166 @@ -5932,7 +5944,7 @@ Desempenho de ativos apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 190 + 188 @@ -5940,7 +5952,7 @@ Desempenho absoluto da moeda apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 211 + 209 @@ -5948,7 +5960,7 @@ Desempenho da moeda apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 236 + 234 @@ -5956,7 +5968,7 @@ Semana até agora libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5964,11 +5976,11 @@ WTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5976,7 +5988,7 @@ Do mês até a data libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5984,11 +5996,11 @@ MTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5996,7 +6008,7 @@ No acumulado do ano libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -6032,7 +6044,7 @@ ano apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 apps/client/src/app/pages/resources/personal-finance-tools/product-page.html @@ -6044,7 +6056,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -6052,11 +6064,11 @@ anos apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -6076,7 +6088,15 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 63 + 76 + + + + Find a holding... + Find a holding... + + libs/ui/src/lib/assistant/assistant.component.ts + 472 @@ -6084,7 +6104,7 @@ geral apps/client/src/app/pages/faq/faq-page.component.ts - 41 + 35 @@ -6092,7 +6112,7 @@ Nuvem apps/client/src/app/pages/faq/faq-page.component.ts - 46 + 40 libs/common/src/lib/routes/routes.ts @@ -6104,7 +6124,7 @@ Auto-hospedagem apps/client/src/app/pages/faq/faq-page.component.ts - 52 + 46 libs/common/src/lib/routes/routes.ts @@ -6145,7 +6165,7 @@ Ativo apps/client/src/app/components/home-holdings/home-holdings.component.ts - 63 + 61 @@ -6153,7 +6173,7 @@ Fechado apps/client/src/app/components/home-holdings/home-holdings.component.ts - 64 + 62 @@ -6161,7 +6181,7 @@ Indonésia libs/ui/src/lib/i18n.ts - 91 + 90 @@ -6169,7 +6189,7 @@ Atividade apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 229 + 227 @@ -6177,7 +6197,7 @@ Rendimento de dividendos apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 196 + 194 @@ -6209,7 +6229,7 @@ Liquidez libs/ui/src/lib/i18n.ts - 50 + 49 @@ -6252,6 +6272,14 @@ 205 + + Jump to a page... + Jump to a page... + + libs/ui/src/lib/assistant/assistant.component.ts + 473 + + Danger Zone Zona de perigo @@ -6265,7 +6293,7 @@ Fechar conta apps/client/src/app/components/user-account-settings/user-account-settings.html - 316 + 318 @@ -6273,7 +6301,7 @@ Por ETF Holding apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 329 + 327 @@ -6281,7 +6309,7 @@ Aproximação baseada nas principais participações de cada ETF apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 336 + 334 @@ -6313,7 +6341,7 @@ Mostrar mais libs/ui/src/lib/top-holdings/top-holdings.component.html - 174 + 179 @@ -6549,7 +6577,7 @@ Austrália libs/ui/src/lib/i18n.ts - 80 + 79 @@ -6557,7 +6585,7 @@ Áustria libs/ui/src/lib/i18n.ts - 81 + 80 @@ -6565,7 +6593,7 @@ Bélgica libs/ui/src/lib/i18n.ts - 82 + 81 @@ -6573,7 +6601,7 @@ Bulgária libs/ui/src/lib/i18n.ts - 84 + 83 @@ -6589,7 +6617,7 @@ Canadá libs/ui/src/lib/i18n.ts - 85 + 84 @@ -6597,7 +6625,7 @@ República Tcheca libs/ui/src/lib/i18n.ts - 86 + 85 @@ -6605,7 +6633,7 @@ Finlândia libs/ui/src/lib/i18n.ts - 87 + 86 @@ -6613,7 +6641,7 @@ França libs/ui/src/lib/i18n.ts - 88 + 87 @@ -6621,7 +6649,7 @@ Alemanha libs/ui/src/lib/i18n.ts - 89 + 88 @@ -6629,7 +6657,7 @@ Índia libs/ui/src/lib/i18n.ts - 90 + 89 @@ -6637,7 +6665,7 @@ Itália libs/ui/src/lib/i18n.ts - 92 + 91 @@ -6645,7 +6673,7 @@ Holanda libs/ui/src/lib/i18n.ts - 94 + 93 @@ -6653,7 +6681,7 @@ Nova Zelândia libs/ui/src/lib/i18n.ts - 95 + 94 @@ -6661,7 +6689,7 @@ Polônia libs/ui/src/lib/i18n.ts - 96 + 95 @@ -6669,7 +6697,7 @@ Romênia libs/ui/src/lib/i18n.ts - 97 + 96 @@ -6677,7 +6705,7 @@ África do Sul libs/ui/src/lib/i18n.ts - 99 + 98 @@ -6685,7 +6713,7 @@ Tailândia libs/ui/src/lib/i18n.ts - 101 + 100 @@ -6693,7 +6721,7 @@ Estados Unidos libs/ui/src/lib/i18n.ts - 104 + 103 @@ -6701,7 +6729,7 @@ Erro apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 713 + 734 @@ -6741,7 +6769,7 @@ Inativo apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html - 88 + 85 @@ -6785,7 +6813,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 341 + 338 apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.html @@ -6825,7 +6853,7 @@ apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 130 + 124 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -6841,7 +6869,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 343 + 340 libs/ui/src/lib/i18n.ts @@ -6861,7 +6889,7 @@ Sim libs/ui/src/lib/i18n.ts - 34 + 33 @@ -6909,7 +6937,7 @@ Limite mínimo apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 55 + 52 @@ -6917,7 +6945,7 @@ Limite máximo apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 93 + 87 @@ -6945,8 +6973,12 @@ - has been copied to the clipboard - has been copied to the clipboard + has been copied to the clipboard + has been copied to the clipboard + + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 378 + libs/ui/src/lib/value/value.component.ts 180 @@ -7125,7 +7157,7 @@ Tenha acesso a mais de 80’000 tickers de mais de 50 bolsas libs/ui/src/lib/i18n.ts - 26 + 25 @@ -7133,7 +7165,7 @@ Ucrânia libs/ui/src/lib/i18n.ts - 102 + 101 @@ -7153,7 +7185,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 44 + 42 libs/common/src/lib/routes/routes.ts @@ -7169,7 +7201,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 33 + 31 libs/common/src/lib/routes/routes.ts @@ -7255,7 +7287,7 @@ Por favor, insira a sua chave da API do Ghostfolio: apps/client/src/app/pages/api/api-page.component.ts - 46 + 62 @@ -7263,7 +7295,7 @@ Pedidos de API Hoje apps/client/src/app/components/admin-users/admin-users.html - 161 + 157 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -7359,11 +7391,11 @@ apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 109 + 108 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 136 + 130 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -7375,7 +7407,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 352 + 349 libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.html @@ -7399,7 +7431,7 @@ Received Access apps/client/src/app/components/user-account-access/user-account-access.html - 53 + 55 @@ -7423,7 +7455,7 @@ Change with currency effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 116 + 115 @@ -7447,7 +7479,7 @@ Lazy apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7455,7 +7487,7 @@ Instant apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7495,7 +7527,7 @@ end of day apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7503,7 +7535,7 @@ real-time apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7531,7 +7563,7 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 @@ -7543,7 +7575,7 @@ apps/client/src/app/components/home-overview/home-overview.component.ts - 54 + 52 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -7551,11 +7583,11 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 390 + 394 @@ -7587,7 +7619,7 @@ Total amount apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 95 + 94 @@ -7595,7 +7627,7 @@ Armenia libs/ui/src/lib/i18n.ts - 78 + 77 @@ -7603,7 +7635,7 @@ British Virgin Islands libs/ui/src/lib/i18n.ts - 83 + 82 @@ -7611,7 +7643,7 @@ Singapore libs/ui/src/lib/i18n.ts - 98 + 97 @@ -7674,20 +7706,12 @@ 240 - - Find account, holding or page... - Find account, holding or page... - - libs/ui/src/lib/assistant/assistant.component.ts - 115 - - Generate Security Token Generate Security Token apps/client/src/app/components/admin-users/admin-users.html - 243 + 239 @@ -7695,7 +7719,7 @@ United Kingdom libs/ui/src/lib/i18n.ts - 103 + 102 @@ -7744,7 +7768,7 @@ () is already in use. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 649 + 675 @@ -7752,7 +7776,7 @@ An error occurred while updating to (). apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 657 + 683 @@ -7816,7 +7840,7 @@ someone apps/client/src/app/pages/public/public-page.component.ts - 61 + 62 @@ -7848,7 +7872,7 @@ Do you really want to delete this item? libs/ui/src/lib/benchmark/benchmark.component.ts - 139 + 137 @@ -7856,7 +7880,7 @@ Log out apps/client/src/app/components/header/header.component.html - 329 + 325 @@ -7889,7 +7913,7 @@ Demo user account has been synced. apps/client/src/app/components/admin-overview/admin-overview.component.ts - 277 + 303 @@ -7897,7 +7921,7 @@ Sync Demo User Account apps/client/src/app/components/admin-overview/admin-overview.html - 204 + 128 @@ -8103,7 +8127,7 @@ Current month apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 @@ -8276,7 +8300,7 @@ Generate apps/client/src/app/components/user-account-access/user-account-access.html - 43 + 45 @@ -8316,7 +8340,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 39 + 35 @@ -8324,7 +8348,7 @@ Gerenciar perfil de ativos apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 471 + 467 @@ -8332,7 +8356,7 @@ Investimento Alternativo libs/ui/src/lib/i18n.ts - 46 + 45 @@ -8340,7 +8364,7 @@ Colecionável libs/ui/src/lib/i18n.ts - 56 + 55 diff --git a/apps/client/src/locales/messages.tr.xlf b/apps/client/src/locales/messages.tr.xlf index 362932e44..faae6b7e3 100644 --- a/apps/client/src/locales/messages.tr.xlf +++ b/apps/client/src/locales/messages.tr.xlf @@ -279,7 +279,7 @@ Nakit Bakiye apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 45 + 43 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -295,7 +295,7 @@ Platform apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 90 + 88 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -343,7 +343,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 135 + 134 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -399,7 +399,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 141 + 140 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -419,15 +419,15 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 201 + 199 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 204 + 202 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 207 + 205 libs/ui/src/lib/account-balances/account-balances.component.html @@ -503,7 +503,7 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 140 + 213 apps/client/src/app/components/admin-platform/admin-platform.component.html @@ -539,7 +539,7 @@ Bu hesabı silmeyi gerçekten istiyor musunuz? libs/ui/src/lib/accounts-table/accounts-table.component.ts - 148 + 146 @@ -559,11 +559,11 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 151 + 150 libs/ui/src/lib/i18n.ts - 15 + 14 @@ -674,12 +674,20 @@ 2 + + Find an account... + Find an account... + + libs/ui/src/lib/assistant/assistant.component.ts + 471 + + Date Tarih apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 157 + 156 libs/ui/src/lib/account-balances/account-balances.component.html @@ -743,7 +751,7 @@ Filtrele... apps/client/src/app/components/admin-market-data/admin-market-data.component.ts - 383 + 368 @@ -759,7 +767,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 219 + 217 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -783,7 +791,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 40 + 42 @@ -831,7 +839,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 268 + 266 @@ -843,11 +851,11 @@ apps/client/src/app/components/admin-users/admin-users.html - 60 + 56 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 278 + 276 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -867,7 +875,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 284 + 282 apps/client/src/app/pages/public/public-page.html @@ -887,7 +895,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 296 + 294 @@ -927,7 +935,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 271 + 268 @@ -955,7 +963,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 120 + 119 @@ -963,7 +971,7 @@ Bu kuponu gerçekten silmek istiyor musunuz? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 196 + 222 @@ -971,7 +979,7 @@ Önbelleği temizlemeyi gerçekten istiyor musunuz? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 233 + 259 @@ -979,31 +987,15 @@ Lütfen sistem mesajınızı belirleyin: apps/client/src/app/components/admin-overview/admin-overview.component.ts - 253 - - - - User Count - Kullanıcı Sayısı - - apps/client/src/app/components/admin-overview/admin-overview.html - 16 - - - - Activity Count - İşlem Sayısı - - apps/client/src/app/components/admin-overview/admin-overview.html - 22 + 279 per User Kullanıcı başına - apps/client/src/app/components/admin-overview/admin-overview.html - 31 + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 166 @@ -1035,7 +1027,7 @@ Kullanıcı Kaydı apps/client/src/app/components/admin-overview/admin-overview.html - 37 + 50 @@ -1043,7 +1035,7 @@ Salt okunur mod apps/client/src/app/components/admin-overview/admin-overview.html - 51 + 64 @@ -1051,7 +1043,7 @@ Sistem Mesajı apps/client/src/app/components/admin-overview/admin-overview.html - 75 + 88 @@ -1059,7 +1051,7 @@ Mesaj Belirle apps/client/src/app/components/admin-overview/admin-overview.html - 97 + 110 @@ -1067,7 +1059,7 @@ Kupon apps/client/src/app/components/admin-overview/admin-overview.html - 105 + 148 @@ -1075,7 +1067,7 @@ Ekle apps/client/src/app/components/admin-overview/admin-overview.html - 185 + 265 libs/ui/src/lib/account-balances/account-balances.component.html @@ -1087,7 +1079,7 @@ Genel Ayarlar apps/client/src/app/components/admin-overview/admin-overview.html - 193 + 117 @@ -1095,7 +1087,7 @@ Önbelleği temizle apps/client/src/app/components/admin-overview/admin-overview.html - 209 + 133 @@ -1131,7 +1123,7 @@ Asset profile has been saved apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 594 + 618 @@ -1171,7 +1163,7 @@ Current year apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 @@ -1227,7 +1219,7 @@ Günlük etkileşim apps/client/src/app/components/admin-users/admin-users.html - 140 + 136 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1239,7 +1231,7 @@ Son Talep apps/client/src/app/components/admin-users/admin-users.html - 186 + 182 @@ -1247,7 +1239,7 @@ Kullanıcıyı Taklit Et apps/client/src/app/components/admin-users/admin-users.html - 233 + 229 @@ -1255,7 +1247,7 @@ Kullanıcıyı Sil apps/client/src/app/components/admin-users/admin-users.html - 254 + 250 @@ -1263,11 +1255,11 @@ Could not validate form apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 570 + 594 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 573 + 597 @@ -1299,7 +1291,7 @@ apps/client/src/app/components/header/header.component.html - 258 + 257 apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts @@ -1335,7 +1327,7 @@ Ghostfolio Hakkında apps/client/src/app/components/header/header.component.html - 326 + 322 apps/client/src/app/pages/about/overview/about-overview-page.html @@ -1347,15 +1339,15 @@ Giriş apps/client/src/app/components/header/header.component.html - 422 + 421 apps/client/src/app/components/header/header.component.ts - 298 + 296 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 79 + 81 libs/common/src/lib/routes/routes.ts @@ -1371,7 +1363,7 @@ Hay Allah! Güvenlik anahtarı yanlış. apps/client/src/app/components/header/header.component.ts - 313 + 311 apps/client/src/app/components/user-account-access/user-account-access.component.ts @@ -1403,7 +1395,7 @@ libs/ui/src/lib/i18n.ts - 109 + 108 @@ -1419,7 +1411,7 @@ libs/ui/src/lib/i18n.ts - 110 + 109 @@ -1463,7 +1455,7 @@ Hesaplarınızı kurun apps/client/src/app/components/home-overview/home-overview.html - 19 + 16 @@ -1471,7 +1463,7 @@ Banka ve yatırım hesaplarınızı ekleyerek kapsamlı finansal durumunuzu görün. apps/client/src/app/components/home-overview/home-overview.html - 21 + 18 @@ -1479,7 +1471,7 @@ İşlemlerinizi kaydedin apps/client/src/app/components/home-overview/home-overview.html - 28 + 25 @@ -1487,7 +1479,7 @@ Yatırım işlemlerinizi kaydederek portföyünüzü güncel tutun. apps/client/src/app/components/home-overview/home-overview.html - 30 + 27 @@ -1495,7 +1487,7 @@ Portföyünüzü izleyin ve analiz edin. apps/client/src/app/components/home-overview/home-overview.html - 37 + 34 @@ -1503,7 +1495,7 @@ Kapsamlı analiz ve içgörülerle ilerleme durumunuzu gerçek zamanlı olarak takip edin. apps/client/src/app/components/home-overview/home-overview.html - 39 + 36 @@ -1511,7 +1503,7 @@ Hesaplarınızı kurunuz apps/client/src/app/components/home-overview/home-overview.html - 52 + 49 @@ -1519,7 +1511,7 @@ Current week apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 @@ -1527,7 +1519,7 @@ İşlem ekle. apps/client/src/app/components/home-overview/home-overview.html - 60 + 57 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html @@ -1539,7 +1531,15 @@ Toplam Tutar apps/client/src/app/components/investment-chart/investment-chart.component.ts - 146 + 147 + + + + Code + Code + + apps/client/src/app/components/admin-overview/admin-overview.html + 159 @@ -1547,7 +1547,7 @@ Tasarruf Oranı apps/client/src/app/components/investment-chart/investment-chart.component.ts - 202 + 205 @@ -1587,7 +1587,7 @@ apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 32 + 34 apps/client/src/app/pages/landing/landing-page.html @@ -1627,7 +1627,7 @@ Google ile Oturum Aç apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 44 + 46 @@ -1635,7 +1635,7 @@ Oturumu açık tut apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 66 + 68 @@ -1663,7 +1663,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 259 + 257 @@ -1675,7 +1675,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 278 + 276 @@ -1691,7 +1691,7 @@ Varlıklar apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 233 + 232 @@ -1699,7 +1699,7 @@ Alım Limiti apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 248 + 247 @@ -1707,7 +1707,7 @@ Analize Dahil Edilmemiştir. apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 274 + 273 @@ -1715,7 +1715,7 @@ Yükümlülükler apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 302 + 301 apps/client/src/app/pages/features/features-page.html @@ -1727,7 +1727,7 @@ Toplam Varlık apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 324 + 323 @@ -1735,7 +1735,7 @@ Yıllıklandırılmış Performans apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 338 + 337 @@ -1743,7 +1743,7 @@ Lütfen acil durum yedeği meblağını giriniz: apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 111 + 110 @@ -1751,7 +1751,7 @@ Asgari Fiyat apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 130 + 129 @@ -1759,7 +1759,7 @@ Azami Fiyat apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 147 + 145 @@ -1767,11 +1767,11 @@ Miktar apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 157 + 155 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 185 + 183 libs/ui/src/lib/activities-table/activities-table.component.html @@ -1787,7 +1787,7 @@ Komisyon apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 208 + 206 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -1799,7 +1799,7 @@ Rapor Veri Sorunu apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 456 + 452 @@ -1979,7 +1979,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 362 + 373 @@ -1987,11 +1987,11 @@ YTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -1999,11 +1999,11 @@ 1Y apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -2011,11 +2011,11 @@ 5Y apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -2023,7 +2023,7 @@ Performance with currency effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 135 + 134 @@ -2031,11 +2031,11 @@ Maks. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 217 + 221 libs/ui/src/lib/assistant/assistant.component.ts - 414 + 425 @@ -2059,7 +2059,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 194 + 191 @@ -2071,7 +2071,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 192 + 189 @@ -2087,7 +2087,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 195 + 192 @@ -2103,7 +2103,7 @@ apps/client/src/app/components/header/header.component.html - 375 + 370 apps/client/src/app/pages/about/overview/about-overview-page.routes.ts @@ -2203,7 +2203,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 97 + 93 apps/client/src/app/components/header/header.component.html @@ -2211,11 +2211,11 @@ apps/client/src/app/components/header/header.component.html - 268 + 267 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 381 + 378 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -2267,7 +2267,7 @@ apps/client/src/app/components/header/header.component.html - 289 + 287 libs/common/src/lib/routes/routes.ts @@ -2279,7 +2279,7 @@ Piyasa Verileri apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 403 + 400 libs/common/src/lib/routes/routes.ts @@ -2305,6 +2305,10 @@ Users Kullanıcılar + + apps/client/src/app/components/admin-overview/admin-overview.html + 24 + libs/common/src/lib/routes/routes.ts 61 @@ -2327,7 +2331,7 @@ apps/client/src/app/components/header/header.component.html - 248 + 247 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html @@ -2335,11 +2339,11 @@ apps/client/src/app/pages/admin/admin-page.component.ts - 45 + 41 apps/client/src/app/pages/resources/resources-page.component.ts - 29 + 27 libs/common/src/lib/routes/routes.ts @@ -2449,6 +2453,10 @@ apps/client/src/app/pages/blog/2025/11/black-weeks-2025/black-weeks-2025-page.html 147 + + apps/client/src/app/pages/blog/2026/04/ghostfolio-3/ghostfolio-3-page.html + 269 + apps/client/src/app/pages/blog/blog-page.html 5 @@ -2463,11 +2471,11 @@ Could not parse scraper configuration apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 525 + 545 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 528 + 548 @@ -2486,6 +2494,14 @@ 32 + + Duration + Duration + + apps/client/src/app/components/admin-overview/admin-overview.html + 172 + + Frequently Asked Questions (FAQ) Sıkça Sorulan Sorular (SSS) @@ -2515,7 +2531,7 @@ apps/client/src/app/components/header/header.component.html - 361 + 356 apps/client/src/app/pages/features/features-page.html @@ -2647,7 +2663,7 @@ Başla apps/client/src/app/components/header/header.component.html - 433 + 432 apps/client/src/app/pages/features/features-page.html @@ -2679,7 +2695,7 @@ Varlıklar apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 102 + 100 apps/client/src/app/components/home-holdings/home-holdings.html @@ -2727,7 +2743,7 @@ apps/client/src/app/components/header/header.component.html - 408 + 403 apps/client/src/app/components/home-market/home-market.html @@ -2743,7 +2759,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 39 + 37 libs/common/src/lib/routes/routes.ts @@ -3131,31 +3147,35 @@ İşlemler apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 86 + 84 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 113 + 111 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html 226 + + apps/client/src/app/components/admin-overview/admin-overview.html + 38 + apps/client/src/app/components/admin-tag/admin-tag.component.html 45 apps/client/src/app/components/admin-users/admin-users.html - 118 + 114 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 231 + 229 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 348 + 342 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -3223,7 +3243,7 @@ Nakit Bakiyesini Güncelle apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 108 + 109 @@ -3231,7 +3251,7 @@ Birim Fiyat apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 210 + 208 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3243,7 +3263,7 @@ İşlemleri İçe Aktar apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 92 + 93 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3259,7 +3279,7 @@ Temettüleri İçe Aktar apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 136 + 132 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3275,7 +3295,7 @@ Veri içe aktarılıyor... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 174 + 171 @@ -3283,7 +3303,7 @@ İçe aktarma tamamlandı apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 184 + 181 @@ -3299,7 +3319,7 @@ Veri doğrulanıyor... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 293 + 291 @@ -3387,7 +3407,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 67 + 69 @@ -3491,7 +3511,7 @@ libs/ui/src/lib/i18n.ts - 17 + 16 @@ -3587,15 +3607,15 @@ Temettü apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 81 + 79 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 186 + 184 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 372 + 371 apps/client/src/app/pages/features/features-page.html @@ -3603,7 +3623,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 198 + 196 apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts @@ -3611,7 +3631,7 @@ libs/ui/src/lib/i18n.ts - 38 + 37 @@ -3651,7 +3671,7 @@ Üst apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 305 + 303 @@ -3659,7 +3679,7 @@ Alt apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 354 + 352 @@ -3667,7 +3687,7 @@ Portföyün Gelişimi apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 407 + 405 @@ -3675,7 +3695,7 @@ Yatırım Zaman Çizelgesi apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 436 + 434 @@ -3683,7 +3703,7 @@ Güncel Seri apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 457 + 455 @@ -3691,7 +3711,7 @@ En Uzun Seri apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 466 + 464 @@ -3699,7 +3719,7 @@ Temettü Zaman Çizelgesi apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 495 + 493 @@ -3731,11 +3751,11 @@ apps/client/src/app/components/header/header.component.html - 313 + 309 apps/client/src/app/components/header/header.component.html - 389 + 384 apps/client/src/app/pages/pricing/pricing-page.routes.ts @@ -3923,11 +3943,11 @@ Could not save asset profile apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 604 + 628 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 607 + 631 @@ -3975,7 +3995,7 @@ Kayıt apps/client/src/app/components/admin-users/admin-users.html - 80 + 76 libs/common/src/lib/routes/routes.ts @@ -4288,7 +4308,7 @@ libs/ui/src/lib/i18n.ts - 100 + 99 @@ -4300,7 +4320,7 @@ libs/ui/src/lib/i18n.ts - 18 + 17 @@ -4316,7 +4336,7 @@ apps/client/src/app/components/header/header.component.html - 301 + 297 apps/client/src/app/pages/resources/overview/resources-overview.component.html @@ -4348,7 +4368,7 @@ Benim Ghostfolio’m apps/client/src/app/components/header/header.component.html - 277 + 276 apps/client/src/app/pages/user-account/user-account-page.routes.ts @@ -4608,7 +4628,7 @@ xErişim İzni Verildi apps/client/src/app/components/user-account-access/user-account-access.html - 57 + 59 @@ -4720,7 +4740,7 @@ Loan libs/ui/src/lib/i18n.ts - 59 + 58 @@ -4768,11 +4788,11 @@ Faiz apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 69 + 67 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 359 + 358 libs/ui/src/lib/fire-calculator/fire-calculator.component.ts @@ -4780,7 +4800,7 @@ libs/ui/src/lib/i18n.ts - 40 + 39 @@ -4824,7 +4844,7 @@ Hesap apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 85 + 86 libs/ui/src/lib/activities-table/activities-table.component.html @@ -4864,11 +4884,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 242 + 240 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 286 + 283 libs/ui/src/lib/i18n.ts @@ -4896,11 +4916,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 251 + 249 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 305 + 302 libs/ui/src/lib/i18n.ts @@ -4931,14 +4951,6 @@ 13 - - Switch to Ghostfolio Open Source or Ghostfolio Basic easily - Ghostfolio Açık Kaynak veya Ghostfolio Temel’e kolayca geçin. - - libs/ui/src/lib/i18n.ts - 14 - - Emergency Fund Acil Durum Fonu @@ -4952,7 +4964,7 @@ libs/ui/src/lib/i18n.ts - 16 + 15 @@ -4960,7 +4972,7 @@ Hibe libs/ui/src/lib/i18n.ts - 19 + 18 @@ -4968,7 +4980,7 @@ Daha Yüksek Risk libs/ui/src/lib/i18n.ts - 20 + 19 @@ -4976,7 +4988,7 @@ Bu işlem zaten mevcut. libs/ui/src/lib/i18n.ts - 21 + 20 @@ -4984,7 +4996,7 @@ Japonya libs/ui/src/lib/i18n.ts - 93 + 92 @@ -4992,7 +5004,7 @@ Daha Düşük Risk libs/ui/src/lib/i18n.ts - 22 + 21 @@ -5000,7 +5012,7 @@ Ay libs/ui/src/lib/i18n.ts - 23 + 22 @@ -5008,7 +5020,7 @@ Ay libs/ui/src/lib/i18n.ts - 24 + 23 @@ -5016,7 +5028,7 @@ Diğer libs/ui/src/lib/i18n.ts - 25 + 24 libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -5028,7 +5040,7 @@ Önceden Ayarlanmış libs/ui/src/lib/i18n.ts - 27 + 26 @@ -5044,7 +5056,7 @@ Yaşlılık Provizyonu libs/ui/src/lib/i18n.ts - 28 + 27 @@ -5060,7 +5072,7 @@ Uydu libs/ui/src/lib/i18n.ts - 29 + 28 @@ -5084,11 +5096,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 318 + 314 libs/ui/src/lib/i18n.ts - 30 + 29 @@ -5096,7 +5108,7 @@ Etiket libs/ui/src/lib/i18n.ts - 31 + 30 libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html @@ -5108,7 +5120,7 @@ Yıl libs/ui/src/lib/i18n.ts - 32 + 31 @@ -5116,7 +5128,7 @@ View Details apps/client/src/app/components/admin-users/admin-users.html - 225 + 221 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -5128,7 +5140,7 @@ Yıl libs/ui/src/lib/i18n.ts - 33 + 32 @@ -5136,7 +5148,7 @@ Sign in with OpenID Connect apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 55 + 57 @@ -5148,7 +5160,7 @@ libs/ui/src/lib/i18n.ts - 37 + 36 @@ -5156,7 +5168,7 @@ Kıymet libs/ui/src/lib/i18n.ts - 43 + 42 @@ -5164,7 +5176,7 @@ Yükümlülük libs/ui/src/lib/i18n.ts - 41 + 40 @@ -5176,7 +5188,7 @@ libs/ui/src/lib/i18n.ts - 42 + 41 @@ -5184,11 +5196,11 @@ Nakit apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 219 + 218 libs/ui/src/lib/i18n.ts - 55 + 54 @@ -5196,7 +5208,7 @@ Emtia libs/ui/src/lib/i18n.ts - 47 + 46 @@ -5204,11 +5216,11 @@ Menkul Kıymet apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 57 + 55 libs/ui/src/lib/i18n.ts - 48 + 47 @@ -5216,7 +5228,7 @@ Sabit Gelir libs/ui/src/lib/i18n.ts - 49 + 48 @@ -5224,7 +5236,7 @@ Gayrimenkul libs/ui/src/lib/i18n.ts - 51 + 50 @@ -5240,7 +5252,7 @@ Bono libs/ui/src/lib/i18n.ts - 54 + 53 @@ -5248,7 +5260,7 @@ Kriptopara libs/ui/src/lib/i18n.ts - 57 + 56 @@ -5256,7 +5268,7 @@ Borsada İşlem Gören Fonlar (ETF) libs/ui/src/lib/i18n.ts - 58 + 57 @@ -5264,7 +5276,7 @@ Borsada İşlem Görmeyen Fonlar (Mutual Fund) libs/ui/src/lib/i18n.ts - 60 + 59 @@ -5272,7 +5284,7 @@ Kıymetli Metaller libs/ui/src/lib/i18n.ts - 61 + 60 @@ -5280,7 +5292,7 @@ Özel Menkul Kıymetler libs/ui/src/lib/i18n.ts - 62 + 61 @@ -5288,7 +5300,7 @@ Hisse Senetleri libs/ui/src/lib/i18n.ts - 63 + 62 @@ -5296,7 +5308,7 @@ Afrika libs/ui/src/lib/i18n.ts - 70 + 69 @@ -5304,7 +5316,7 @@ Asya libs/ui/src/lib/i18n.ts - 71 + 70 @@ -5312,7 +5324,7 @@ Avrupa libs/ui/src/lib/i18n.ts - 72 + 71 @@ -5320,7 +5332,7 @@ Kuzey Amerika libs/ui/src/lib/i18n.ts - 73 + 72 @@ -5336,7 +5348,7 @@ Okyanusya libs/ui/src/lib/i18n.ts - 74 + 73 @@ -5344,7 +5356,7 @@ Güney Amerika libs/ui/src/lib/i18n.ts - 75 + 74 @@ -5380,7 +5392,7 @@ libs/ui/src/lib/top-holdings/top-holdings.component.html - 181 + 186 @@ -5480,7 +5492,7 @@ Ücret apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 258 + 255 libs/ui/src/lib/activities-table/activities-table.component.html @@ -5488,7 +5500,7 @@ libs/ui/src/lib/i18n.ts - 39 + 38 @@ -5540,7 +5552,7 @@ Versiyon apps/client/src/app/components/admin-overview/admin-overview.html - 7 + 11 @@ -5704,7 +5716,7 @@ Aşırı Korku libs/ui/src/lib/i18n.ts - 107 + 106 @@ -5712,7 +5724,7 @@ Aşırı Açgözlülük libs/ui/src/lib/i18n.ts - 108 + 107 @@ -5720,7 +5732,7 @@ Nötr libs/ui/src/lib/i18n.ts - 111 + 110 @@ -5736,7 +5748,7 @@ Bu sistem mesajını silmeyi gerçekten istiyor musunuz? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 209 + 235 @@ -5760,7 +5772,7 @@ Nakit Bakiyeleri apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 146 + 142 @@ -5796,7 +5808,7 @@ Şu anki piyasa fiyatı apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 722 + 743 @@ -5852,7 +5864,7 @@ Argentina libs/ui/src/lib/i18n.ts - 79 + 78 @@ -5876,7 +5888,7 @@ Piyasa verileri gecikmeli apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts - 95 + 94 @@ -5884,7 +5896,7 @@ Yatırım apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 171 + 169 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -5916,7 +5928,7 @@ Close Holding apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 447 + 442 @@ -5924,7 +5936,7 @@ Mutlak Varlık Performansı apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 168 + 166 @@ -5932,7 +5944,7 @@ Varlık Performansı apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 190 + 188 @@ -5940,7 +5952,7 @@ Mutlak Para Performansı apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 211 + 209 @@ -5948,7 +5960,7 @@ Para Performansı apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 236 + 234 @@ -5956,7 +5968,7 @@ Hafta içi libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5964,11 +5976,11 @@ WTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5976,7 +5988,7 @@ Ay içi libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5984,11 +5996,11 @@ MTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5996,7 +6008,7 @@ Yıl içi libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -6032,7 +6044,7 @@ Yıl apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 apps/client/src/app/pages/resources/personal-finance-tools/product-page.html @@ -6044,7 +6056,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -6052,11 +6064,11 @@ Yıllar apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -6076,7 +6088,15 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 63 + 76 + + + + Find a holding... + Find a holding... + + libs/ui/src/lib/assistant/assistant.component.ts + 472 @@ -6084,7 +6104,7 @@ Genel apps/client/src/app/pages/faq/faq-page.component.ts - 41 + 35 @@ -6092,7 +6112,7 @@ Bulut apps/client/src/app/pages/faq/faq-page.component.ts - 46 + 40 libs/common/src/lib/routes/routes.ts @@ -6104,7 +6124,7 @@ Kendini Barındırma apps/client/src/app/pages/faq/faq-page.component.ts - 52 + 46 libs/common/src/lib/routes/routes.ts @@ -6145,7 +6165,7 @@ Aktif apps/client/src/app/components/home-holdings/home-holdings.component.ts - 63 + 61 @@ -6153,7 +6173,7 @@ Kapalı apps/client/src/app/components/home-holdings/home-holdings.component.ts - 64 + 62 @@ -6161,7 +6181,7 @@ Indonesia libs/ui/src/lib/i18n.ts - 91 + 90 @@ -6169,7 +6189,7 @@ Etkinlik apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 229 + 227 @@ -6177,7 +6197,7 @@ Temettü Getiri apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 196 + 194 @@ -6209,7 +6229,7 @@ Likidite libs/ui/src/lib/i18n.ts - 50 + 49 @@ -6252,6 +6272,14 @@ 205 + + Jump to a page... + Jump to a page... + + libs/ui/src/lib/assistant/assistant.component.ts + 473 + + Danger Zone Tehlikeli Alan @@ -6265,7 +6293,7 @@ Hesabı Kapat apps/client/src/app/components/user-account-settings/user-account-settings.html - 316 + 318 @@ -6273,7 +6301,7 @@ ETF Portföyü apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 329 + 327 @@ -6281,7 +6309,7 @@ Her ETF’nin en üst tutarlarına dayalı yaklaşım apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 336 + 334 @@ -6313,7 +6341,7 @@ Daha fazla göster libs/ui/src/lib/top-holdings/top-holdings.component.html - 174 + 179 @@ -6549,7 +6577,7 @@ Avustralya libs/ui/src/lib/i18n.ts - 80 + 79 @@ -6557,7 +6585,7 @@ Avusturya libs/ui/src/lib/i18n.ts - 81 + 80 @@ -6565,7 +6593,7 @@ Belçika libs/ui/src/lib/i18n.ts - 82 + 81 @@ -6573,7 +6601,7 @@ Bulgaristan libs/ui/src/lib/i18n.ts - 84 + 83 @@ -6589,7 +6617,7 @@ Kanada libs/ui/src/lib/i18n.ts - 85 + 84 @@ -6597,7 +6625,7 @@ Çek Cumhuriyeti libs/ui/src/lib/i18n.ts - 86 + 85 @@ -6605,7 +6633,7 @@ Finlandiya libs/ui/src/lib/i18n.ts - 87 + 86 @@ -6613,7 +6641,7 @@ Fransa libs/ui/src/lib/i18n.ts - 88 + 87 @@ -6621,7 +6649,7 @@ Almanya libs/ui/src/lib/i18n.ts - 89 + 88 @@ -6629,7 +6657,7 @@ Hindistan libs/ui/src/lib/i18n.ts - 90 + 89 @@ -6637,7 +6665,7 @@ İtalya libs/ui/src/lib/i18n.ts - 92 + 91 @@ -6645,7 +6673,7 @@ Hollanda libs/ui/src/lib/i18n.ts - 94 + 93 @@ -6653,7 +6681,7 @@ Yeni Zelanda libs/ui/src/lib/i18n.ts - 95 + 94 @@ -6661,7 +6689,7 @@ Polonya libs/ui/src/lib/i18n.ts - 96 + 95 @@ -6669,7 +6697,7 @@ Romanya libs/ui/src/lib/i18n.ts - 97 + 96 @@ -6677,7 +6705,7 @@ Güney Afrika libs/ui/src/lib/i18n.ts - 99 + 98 @@ -6685,7 +6713,7 @@ Tayland libs/ui/src/lib/i18n.ts - 101 + 100 @@ -6693,7 +6721,7 @@ Amerika Birleşik Devletleri libs/ui/src/lib/i18n.ts - 104 + 103 @@ -6701,7 +6729,7 @@ Hata apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 713 + 734 @@ -6741,7 +6769,7 @@ Pasif apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html - 88 + 85 @@ -6785,7 +6813,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 341 + 338 apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.html @@ -6825,7 +6853,7 @@ apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 130 + 124 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -6841,7 +6869,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 343 + 340 libs/ui/src/lib/i18n.ts @@ -6861,7 +6889,7 @@ Evet libs/ui/src/lib/i18n.ts - 34 + 33 @@ -6909,7 +6937,7 @@ Eşik Min apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 55 + 52 @@ -6917,7 +6945,7 @@ Eşik Max apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 93 + 87 @@ -6945,8 +6973,12 @@ - has been copied to the clipboard - has been copied to the clipboard + has been copied to the clipboard + has been copied to the clipboard + + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 378 + libs/ui/src/lib/value/value.component.ts 180 @@ -7125,7 +7157,7 @@ 80’000+ sembolden 50’den fazla borsada erişim alın libs/ui/src/lib/i18n.ts - 26 + 25 @@ -7133,7 +7165,7 @@ Ukraine libs/ui/src/lib/i18n.ts - 102 + 101 @@ -7153,7 +7185,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 44 + 42 libs/common/src/lib/routes/routes.ts @@ -7169,7 +7201,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 33 + 31 libs/common/src/lib/routes/routes.ts @@ -7255,7 +7287,7 @@ Ghostfolio API anahtarınızı girin: apps/client/src/app/pages/api/api-page.component.ts - 46 + 62 @@ -7263,7 +7295,7 @@ API Günü İstekleri apps/client/src/app/components/admin-users/admin-users.html - 161 + 157 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -7359,11 +7391,11 @@ apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 109 + 108 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 136 + 130 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -7375,7 +7407,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 352 + 349 libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.html @@ -7399,7 +7431,7 @@ Alınan Erişim apps/client/src/app/components/user-account-access/user-account-access.html - 53 + 55 @@ -7423,7 +7455,7 @@ Change with currency effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 116 + 115 @@ -7447,7 +7479,7 @@ Tembel apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7455,7 +7487,7 @@ Anında apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7495,7 +7527,7 @@ gün sonu apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7503,7 +7535,7 @@ gerçek zamanlı apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7531,7 +7563,7 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 @@ -7543,7 +7575,7 @@ apps/client/src/app/components/home-overview/home-overview.component.ts - 54 + 52 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -7551,11 +7583,11 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 390 + 394 @@ -7587,7 +7619,7 @@ Total amount apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 95 + 94 @@ -7595,7 +7627,7 @@ Ermenistan libs/ui/src/lib/i18n.ts - 78 + 77 @@ -7603,7 +7635,7 @@ Britanya Virjin Adaları libs/ui/src/lib/i18n.ts - 83 + 82 @@ -7611,7 +7643,7 @@ Singapur libs/ui/src/lib/i18n.ts - 98 + 97 @@ -7674,20 +7706,12 @@ 240 - - Find account, holding or page... - Find account, holding or page... - - libs/ui/src/lib/assistant/assistant.component.ts - 115 - - Generate Security Token Güvenlik belirteci oluştur apps/client/src/app/components/admin-users/admin-users.html - 243 + 239 @@ -7695,7 +7719,7 @@ Birleşik Krallık libs/ui/src/lib/i18n.ts - 103 + 102 @@ -7744,7 +7768,7 @@ () is already in use. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 649 + 675 @@ -7752,7 +7776,7 @@ Güncelleştirilirken bir hata oluştu (). apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 657 + 683 @@ -7816,7 +7840,7 @@ birisi apps/client/src/app/pages/public/public-page.component.ts - 61 + 62 @@ -7848,7 +7872,7 @@ Bu öğeyi silmek istediğinize emin misiniz? libs/ui/src/lib/benchmark/benchmark.component.ts - 139 + 137 @@ -7856,7 +7880,7 @@ Oturumu kapat apps/client/src/app/components/header/header.component.html - 329 + 325 @@ -7889,7 +7913,7 @@ Demo kullanıcı hesabı senkronize edildi. apps/client/src/app/components/admin-overview/admin-overview.component.ts - 277 + 303 @@ -7897,7 +7921,7 @@ Demo Kullanıcı Hesabını Senkronize Et apps/client/src/app/components/admin-overview/admin-overview.html - 204 + 128 @@ -8103,7 +8127,7 @@ Current month apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 @@ -8276,7 +8300,7 @@ Generate apps/client/src/app/components/user-account-access/user-account-access.html - 43 + 45 @@ -8316,7 +8340,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 39 + 35 @@ -8324,7 +8348,7 @@ Manage Asset Profile apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 471 + 467 @@ -8332,7 +8356,7 @@ Alternative Investment libs/ui/src/lib/i18n.ts - 46 + 45 @@ -8340,7 +8364,7 @@ Collectible libs/ui/src/lib/i18n.ts - 56 + 55 diff --git a/apps/client/src/locales/messages.uk.xlf b/apps/client/src/locales/messages.uk.xlf index 0ccbdb1ba..edc28f604 100644 --- a/apps/client/src/locales/messages.uk.xlf +++ b/apps/client/src/locales/messages.uk.xlf @@ -10,7 +10,7 @@ apps/client/src/app/components/header/header.component.html - 361 + 356 apps/client/src/app/pages/features/features-page.html @@ -34,15 +34,15 @@ Увійти apps/client/src/app/components/header/header.component.html - 422 + 421 apps/client/src/app/components/header/header.component.ts - 298 + 296 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 79 + 81 libs/common/src/lib/routes/routes.ts @@ -387,7 +387,7 @@ Баланс готівки apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 45 + 43 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -403,7 +403,7 @@ Платформа apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 90 + 88 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -419,7 +419,7 @@ Баланс готівки apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 146 + 142 @@ -471,7 +471,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 135 + 134 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -527,7 +527,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 141 + 140 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -547,15 +547,15 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 201 + 199 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 204 + 202 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 207 + 205 libs/ui/src/lib/account-balances/account-balances.component.html @@ -631,7 +631,7 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 140 + 213 apps/client/src/app/components/admin-platform/admin-platform.component.html @@ -667,7 +667,7 @@ Ви дійсно хочете видалити цей обліковий запис? libs/ui/src/lib/accounts-table/accounts-table.component.ts - 148 + 146 @@ -739,11 +739,11 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 151 + 150 libs/ui/src/lib/i18n.ts - 15 + 14 @@ -879,7 +879,7 @@ Фільтрувати за... apps/client/src/app/components/admin-market-data/admin-market-data.component.ts - 383 + 368 @@ -911,7 +911,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 219 + 217 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -935,7 +935,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 40 + 42 @@ -1003,7 +1003,7 @@ Помилка apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 713 + 734 @@ -1011,7 +1011,7 @@ Поточна ринкова ціна apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 722 + 743 @@ -1031,7 +1031,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 268 + 266 @@ -1043,11 +1043,11 @@ apps/client/src/app/components/admin-users/admin-users.html - 60 + 56 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 278 + 276 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1067,7 +1067,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 284 + 282 apps/client/src/app/pages/public/public-page.html @@ -1087,7 +1087,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 296 + 294 @@ -1147,7 +1147,7 @@ Asset profile has been saved apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 594 + 618 @@ -1163,7 +1163,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 271 + 268 @@ -1215,7 +1215,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 120 + 119 @@ -1231,7 +1231,7 @@ Ви дійсно хочете видалити цей купон? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 196 + 222 @@ -1239,7 +1239,7 @@ Ви дійсно хочете видалити це системне повідомлення? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 209 + 235 @@ -1247,7 +1247,7 @@ Ви дійсно хочете очистити кеш? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 233 + 259 @@ -1255,7 +1255,7 @@ Будь ласка, встановіть ваше системне повідомлення: apps/client/src/app/components/admin-overview/admin-overview.component.ts - 253 + 279 @@ -1263,31 +1263,15 @@ Версія apps/client/src/app/components/admin-overview/admin-overview.html - 7 - - - - User Count - Кількість користувачів - - apps/client/src/app/components/admin-overview/admin-overview.html - 16 - - - - Activity Count - Кількість активностей - - apps/client/src/app/components/admin-overview/admin-overview.html - 22 + 11 per User на користувача - apps/client/src/app/components/admin-overview/admin-overview.html - 31 + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 166 @@ -1295,7 +1279,7 @@ Реєстрація користувача apps/client/src/app/components/admin-overview/admin-overview.html - 37 + 50 @@ -1303,7 +1287,7 @@ Режим лише для читання apps/client/src/app/components/admin-overview/admin-overview.html - 51 + 64 @@ -1315,7 +1299,15 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 63 + 76 + + + + Find a holding... + Find a holding... + + libs/ui/src/lib/assistant/assistant.component.ts + 472 @@ -1323,7 +1315,7 @@ Системне повідомлення apps/client/src/app/components/admin-overview/admin-overview.html - 75 + 88 @@ -1331,7 +1323,7 @@ Встановити повідомлення apps/client/src/app/components/admin-overview/admin-overview.html - 97 + 110 @@ -1339,7 +1331,7 @@ Купони apps/client/src/app/components/admin-overview/admin-overview.html - 105 + 148 @@ -1347,7 +1339,7 @@ Додати apps/client/src/app/components/admin-overview/admin-overview.html - 185 + 265 libs/ui/src/lib/account-balances/account-balances.component.html @@ -1359,7 +1351,7 @@ Прибирання apps/client/src/app/components/admin-overview/admin-overview.html - 193 + 117 @@ -1367,7 +1359,7 @@ Очистити кеш apps/client/src/app/components/admin-overview/admin-overview.html - 209 + 133 @@ -1415,7 +1407,7 @@ Current year apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 @@ -1527,7 +1519,7 @@ apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 32 + 34 apps/client/src/app/pages/landing/landing-page.html @@ -1631,7 +1623,7 @@ Взаємодія за день apps/client/src/app/components/admin-users/admin-users.html - 140 + 136 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1643,7 +1635,7 @@ Запити API сьогодні apps/client/src/app/components/admin-users/admin-users.html - 161 + 157 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1655,7 +1647,7 @@ Останній запит apps/client/src/app/components/admin-users/admin-users.html - 186 + 182 @@ -1663,7 +1655,7 @@ Видавати себе за користувача apps/client/src/app/components/admin-users/admin-users.html - 233 + 229 @@ -1671,7 +1663,7 @@ Видалити користувача apps/client/src/app/components/admin-users/admin-users.html - 254 + 250 @@ -1679,11 +1671,11 @@ Could not validate form apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 570 + 594 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 573 + 597 @@ -1715,7 +1707,7 @@ apps/client/src/app/components/header/header.component.html - 258 + 257 apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts @@ -1795,7 +1787,7 @@ Про Ghostfolio apps/client/src/app/components/header/header.component.html - 326 + 322 apps/client/src/app/pages/about/overview/about-overview-page.html @@ -1807,7 +1799,7 @@ Упс! Неправильний Секретний Токен. apps/client/src/app/components/header/header.component.ts - 313 + 311 apps/client/src/app/components/user-account-access/user-account-access.component.ts @@ -1847,7 +1839,7 @@ Мінімальна ціна apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 130 + 129 @@ -1855,7 +1847,7 @@ Максимальна ціна apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 147 + 145 @@ -1863,11 +1855,11 @@ Кількість apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 157 + 155 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 185 + 183 libs/ui/src/lib/activities-table/activities-table.component.html @@ -1883,7 +1875,7 @@ Дохідність дивіденду apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 196 + 194 @@ -1891,7 +1883,7 @@ Комісії apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 208 + 206 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -1903,7 +1895,7 @@ Indonesia libs/ui/src/lib/i18n.ts - 91 + 90 @@ -1911,7 +1903,7 @@ Активність apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 229 + 227 @@ -1919,7 +1911,7 @@ Повідомити про збій даних apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 456 + 452 @@ -1927,7 +1919,7 @@ Активний apps/client/src/app/components/home-holdings/home-holdings.component.ts - 63 + 61 @@ -1935,7 +1927,7 @@ Закритий apps/client/src/app/components/home-holdings/home-holdings.component.ts - 64 + 62 @@ -1975,7 +1967,7 @@ libs/ui/src/lib/i18n.ts - 109 + 108 @@ -1991,7 +1983,7 @@ libs/ui/src/lib/i18n.ts - 110 + 109 @@ -2035,7 +2027,7 @@ Налаштуйте ваші рахунки apps/client/src/app/components/home-overview/home-overview.html - 19 + 16 @@ -2043,7 +2035,7 @@ Отримайте комплексний фінансовий огляд, додавши ваші банківські та брокерські рахунки. apps/client/src/app/components/home-overview/home-overview.html - 21 + 18 @@ -2051,7 +2043,7 @@ Фіксуйте свою діяльність apps/client/src/app/components/home-overview/home-overview.html - 28 + 25 @@ -2059,7 +2051,7 @@ Записуйте ваші інвестиційні дії, щоб підтримувати актуальність вашого портфеля. apps/client/src/app/components/home-overview/home-overview.html - 30 + 27 @@ -2067,7 +2059,7 @@ Відстежуйте та аналізуйте свій портфель apps/client/src/app/components/home-overview/home-overview.html - 37 + 34 @@ -2075,7 +2067,7 @@ Відстежуйте свій прогрес в режимі реального часу за допомогою всебічного аналізу та інсайтів apps/client/src/app/components/home-overview/home-overview.html - 39 + 36 @@ -2083,7 +2075,7 @@ Налаштувати рахунки apps/client/src/app/components/home-overview/home-overview.html - 52 + 49 @@ -2091,7 +2083,7 @@ Current week apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 @@ -2099,7 +2091,7 @@ Додати активність apps/client/src/app/components/home-overview/home-overview.html - 60 + 57 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html @@ -2111,7 +2103,15 @@ Загальна сума apps/client/src/app/components/investment-chart/investment-chart.component.ts - 146 + 147 + + + + Code + Code + + apps/client/src/app/components/admin-overview/admin-overview.html + 159 @@ -2119,7 +2119,7 @@ Ставка заощаджень apps/client/src/app/components/investment-chart/investment-chart.component.ts - 202 + 205 @@ -2155,7 +2155,7 @@ Увійти з Google apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 44 + 46 @@ -2163,7 +2163,7 @@ Залишатися в системі apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 66 + 68 @@ -2179,7 +2179,7 @@ Ринкові дані затримуються для apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts - 95 + 94 @@ -2215,7 +2215,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 259 + 257 @@ -2227,7 +2227,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 278 + 276 @@ -2243,7 +2243,7 @@ Активи apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 233 + 232 @@ -2251,7 +2251,7 @@ Купівельна спроможність apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 248 + 247 @@ -2259,7 +2259,7 @@ Виключено з аналізу apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 274 + 273 @@ -2267,7 +2267,7 @@ Зобов’язання apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 302 + 301 apps/client/src/app/pages/features/features-page.html @@ -2279,7 +2279,7 @@ Чиста вартість apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 324 + 323 @@ -2287,7 +2287,7 @@ Річна доходність apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 338 + 337 @@ -2315,11 +2315,11 @@ apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 109 + 108 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 136 + 130 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -2331,7 +2331,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 352 + 349 libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.html @@ -2343,7 +2343,7 @@ Будь ласка, встановіть суму вашого резервного фонду. apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 111 + 110 @@ -2359,7 +2359,7 @@ Мінімальний поріг apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 55 + 52 @@ -2367,7 +2367,7 @@ Максимальний поріг apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 93 + 87 @@ -2567,7 +2567,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 362 + 373 @@ -2575,11 +2575,11 @@ З початку року apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -2587,11 +2587,11 @@ 1 рік apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -2599,11 +2599,11 @@ 5 років apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -2611,7 +2611,7 @@ Performance with currency effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 135 + 134 @@ -2619,11 +2619,11 @@ Максимум apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 217 + 221 libs/ui/src/lib/assistant/assistant.component.ts - 414 + 425 @@ -2639,7 +2639,7 @@ Argentina libs/ui/src/lib/i18n.ts - 79 + 78 @@ -2699,7 +2699,7 @@ Отриманий доступ apps/client/src/app/components/user-account-access/user-account-access.html - 53 + 55 @@ -2715,7 +2715,7 @@ Наданий доступ apps/client/src/app/components/user-account-access/user-account-access.html - 57 + 59 @@ -2739,7 +2739,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 195 + 192 @@ -2854,6 +2854,14 @@ 205 + + Jump to a page... + Jump to a page... + + libs/ui/src/lib/assistant/assistant.component.ts + 473 + + Do you really want to remove this sign in method? Ви дійсно хочете вилучити цей спосіб входу? @@ -3043,7 +3051,7 @@ Закрити обліковий запис apps/client/src/app/components/user-account-settings/user-account-settings.html - 316 + 318 @@ -3067,7 +3075,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 194 + 191 @@ -3087,7 +3095,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 192 + 189 @@ -3111,7 +3119,7 @@ apps/client/src/app/components/header/header.component.html - 375 + 370 apps/client/src/app/pages/about/overview/about-overview-page.routes.ts @@ -3211,7 +3219,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 97 + 93 apps/client/src/app/components/header/header.component.html @@ -3219,11 +3227,11 @@ apps/client/src/app/components/header/header.component.html - 268 + 267 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 381 + 378 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -3307,7 +3315,7 @@ apps/client/src/app/components/header/header.component.html - 289 + 287 libs/common/src/lib/routes/routes.ts @@ -3327,7 +3335,7 @@ Ринкові дані apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 403 + 400 libs/common/src/lib/routes/routes.ts @@ -3353,6 +3361,10 @@ Users Користувачі + + apps/client/src/app/components/admin-overview/admin-overview.html + 24 + libs/common/src/lib/routes/routes.ts 61 @@ -3375,7 +3387,7 @@ apps/client/src/app/components/header/header.component.html - 248 + 247 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html @@ -3383,11 +3395,11 @@ apps/client/src/app/pages/admin/admin-page.component.ts - 45 + 41 apps/client/src/app/pages/resources/resources-page.component.ts - 29 + 27 libs/common/src/lib/routes/routes.ts @@ -3403,7 +3415,7 @@ Будь ласка, введіть ваш ключ API Ghostfolio: apps/client/src/app/pages/api/api-page.component.ts - 46 + 62 @@ -3505,6 +3517,10 @@ apps/client/src/app/pages/blog/2025/11/black-weeks-2025/black-weeks-2025-page.html 147 + + apps/client/src/app/pages/blog/2026/04/ghostfolio-3/ghostfolio-3-page.html + 269 + apps/client/src/app/pages/blog/blog-page.html 5 @@ -3519,11 +3535,11 @@ Could not parse scraper configuration apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 525 + 545 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 528 + 548 @@ -3542,6 +3558,14 @@ 32 + + Duration + Duration + + apps/client/src/app/components/admin-overview/admin-overview.html + 172 + + Frequently Asked Questions (FAQ) Часто задавані питання (FAQ) @@ -3567,7 +3591,7 @@ Загальні apps/client/src/app/pages/faq/faq-page.component.ts - 41 + 35 @@ -3575,7 +3599,7 @@ Хмара apps/client/src/app/pages/faq/faq-page.component.ts - 46 + 40 libs/common/src/lib/routes/routes.ts @@ -3587,7 +3611,7 @@ Самохостинг apps/client/src/app/pages/faq/faq-page.component.ts - 52 + 46 libs/common/src/lib/routes/routes.ts @@ -3716,7 +3740,7 @@ Почати apps/client/src/app/components/header/header.component.html - 433 + 432 apps/client/src/app/pages/features/features-page.html @@ -3748,7 +3772,7 @@ Активи apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 102 + 100 apps/client/src/app/components/home-holdings/home-holdings.html @@ -3796,7 +3820,7 @@ apps/client/src/app/components/header/header.component.html - 408 + 403 apps/client/src/app/components/home-market/home-market.html @@ -3812,7 +3836,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 39 + 37 libs/common/src/lib/routes/routes.ts @@ -4292,31 +4316,35 @@ Активності apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 86 + 84 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 113 + 111 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html 226 + + apps/client/src/app/components/admin-overview/admin-overview.html + 38 + apps/client/src/app/components/admin-tag/admin-tag.component.html 45 apps/client/src/app/components/admin-users/admin-users.html - 118 + 114 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 231 + 229 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 348 + 342 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -4400,7 +4428,15 @@ Оновити баланс готівки apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 108 + 109 + + + + Find an account... + Find an account... + + libs/ui/src/lib/assistant/assistant.component.ts + 471 @@ -4408,7 +4444,7 @@ Дата apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 157 + 156 libs/ui/src/lib/account-balances/account-balances.component.html @@ -4428,7 +4464,7 @@ Ціна за одиницю apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 210 + 208 libs/ui/src/lib/activities-table/activities-table.component.html @@ -4440,7 +4476,7 @@ Імпортувати активності apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 92 + 93 libs/ui/src/lib/activities-table/activities-table.component.html @@ -4456,7 +4492,7 @@ Імпорт дивідендів apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 136 + 132 libs/ui/src/lib/activities-table/activities-table.component.html @@ -4472,7 +4508,7 @@ Імпортуються дані... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 174 + 171 @@ -4480,7 +4516,7 @@ Імпорт завершено apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 184 + 181 @@ -4496,7 +4532,7 @@ Перевірка даних... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 293 + 291 @@ -4592,7 +4628,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 67 + 69 @@ -4696,7 +4732,7 @@ libs/ui/src/lib/i18n.ts - 17 + 16 @@ -4772,7 +4808,7 @@ За активами ETF apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 329 + 327 @@ -4780,7 +4816,7 @@ Наближення на основі провідних активів кожного ETF apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 336 + 334 @@ -4808,15 +4844,15 @@ Дивіденди apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 81 + 79 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 186 + 184 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 372 + 371 apps/client/src/app/pages/features/features-page.html @@ -4824,7 +4860,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 198 + 196 apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts @@ -4832,7 +4868,7 @@ libs/ui/src/lib/i18n.ts - 38 + 37 @@ -4840,7 +4876,7 @@ Інвестиції apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 171 + 169 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -4888,7 +4924,7 @@ Close Holding apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 447 + 442 @@ -4896,7 +4932,7 @@ Абсолютна прибутковість активів apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 168 + 166 @@ -4904,7 +4940,7 @@ Прибутковість активів apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 190 + 188 @@ -4912,7 +4948,7 @@ Абсолютна прибутковість валюти apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 211 + 209 @@ -4920,7 +4956,7 @@ Прибутковість валюти apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 236 + 234 @@ -4928,7 +4964,7 @@ Топ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 305 + 303 @@ -4936,7 +4972,7 @@ Низ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 354 + 352 @@ -4944,7 +4980,7 @@ Еволюція портфеля apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 407 + 405 @@ -4952,7 +4988,7 @@ Інвестиційний графік apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 436 + 434 @@ -4960,7 +4996,7 @@ Поточна серія apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 457 + 455 @@ -4968,7 +5004,7 @@ Найдовша серія apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 466 + 464 @@ -4976,7 +5012,7 @@ Графік дивідендів apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 495 + 493 @@ -5032,7 +5068,7 @@ Неактивний apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html - 88 + 85 @@ -5048,11 +5084,11 @@ apps/client/src/app/components/header/header.component.html - 313 + 309 apps/client/src/app/components/header/header.component.html - 389 + 384 apps/client/src/app/pages/pricing/pricing-page.routes.ts @@ -5224,11 +5260,11 @@ Could not save asset profile apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 604 + 628 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 607 + 631 @@ -5256,8 +5292,12 @@ - has been copied to the clipboard - has been copied to the clipboard + has been copied to the clipboard + has been copied to the clipboard + + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 378 + libs/ui/src/lib/value/value.component.ts 180 @@ -5308,7 +5348,7 @@ Реєстрація apps/client/src/app/components/admin-users/admin-users.html - 80 + 76 libs/common/src/lib/routes/routes.ts @@ -5344,7 +5384,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 44 + 42 libs/common/src/lib/routes/routes.ts @@ -5360,7 +5400,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 33 + 31 libs/common/src/lib/routes/routes.ts @@ -5459,7 +5499,7 @@ libs/ui/src/lib/i18n.ts - 100 + 99 @@ -5471,7 +5511,7 @@ libs/ui/src/lib/i18n.ts - 18 + 17 @@ -6019,7 +6059,7 @@ apps/client/src/app/components/header/header.component.html - 301 + 297 apps/client/src/app/pages/resources/overview/resources-overview.component.html @@ -6067,7 +6107,7 @@ Мій Ghostfolio apps/client/src/app/components/header/header.component.html - 277 + 276 apps/client/src/app/pages/user-account/user-account-page.routes.ts @@ -6183,7 +6223,7 @@ Тиждень до дати libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -6191,11 +6231,11 @@ WTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -6203,7 +6243,7 @@ Місяць до дати libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -6211,11 +6251,11 @@ MTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -6223,7 +6263,7 @@ Рік до дати libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -6231,7 +6271,7 @@ рік apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 apps/client/src/app/pages/resources/personal-finance-tools/product-page.html @@ -6243,7 +6283,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -6251,11 +6291,11 @@ роки apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -6355,7 +6395,7 @@ Loan libs/ui/src/lib/i18n.ts - 59 + 58 @@ -6419,11 +6459,11 @@ Відсотки apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 69 + 67 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 359 + 358 libs/ui/src/lib/fire-calculator/fire-calculator.component.ts @@ -6431,7 +6471,7 @@ libs/ui/src/lib/i18n.ts - 40 + 39 @@ -6491,7 +6531,7 @@ Рахунок apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 85 + 86 libs/ui/src/lib/activities-table/activities-table.component.html @@ -6531,11 +6571,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 242 + 240 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 286 + 283 libs/ui/src/lib/i18n.ts @@ -6563,11 +6603,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 251 + 249 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 305 + 302 libs/ui/src/lib/i18n.ts @@ -6623,7 +6663,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 341 + 338 apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.html @@ -6671,7 +6711,7 @@ apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 130 + 124 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -6687,7 +6727,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 343 + 340 libs/ui/src/lib/i18n.ts @@ -6710,14 +6750,6 @@ 13 - - Switch to Ghostfolio Open Source or Ghostfolio Basic easily - Переключитися на Ghostfolio Open Source або Ghostfolio Basic легко - - libs/ui/src/lib/i18n.ts - 14 - - Emergency Fund Резервний фонд @@ -6731,7 +6763,7 @@ libs/ui/src/lib/i18n.ts - 16 + 15 @@ -6739,7 +6771,7 @@ Грант libs/ui/src/lib/i18n.ts - 19 + 18 @@ -6747,7 +6779,7 @@ Вищий ризик libs/ui/src/lib/i18n.ts - 20 + 19 @@ -6755,7 +6787,7 @@ Така активність вже існує. libs/ui/src/lib/i18n.ts - 21 + 20 @@ -6763,7 +6795,7 @@ Нижчий ризик libs/ui/src/lib/i18n.ts - 22 + 21 @@ -6771,7 +6803,7 @@ Місяць libs/ui/src/lib/i18n.ts - 23 + 22 @@ -6779,7 +6811,7 @@ Місяців libs/ui/src/lib/i18n.ts - 24 + 23 @@ -6787,7 +6819,7 @@ Інші libs/ui/src/lib/i18n.ts - 25 + 24 libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -6799,7 +6831,7 @@ Отримайте доступ до 80 000+ тікерів з понад 50 бірж libs/ui/src/lib/i18n.ts - 26 + 25 @@ -6807,7 +6839,7 @@ Пресет libs/ui/src/lib/i18n.ts - 27 + 26 @@ -6823,7 +6855,7 @@ Пенсійне накопичення libs/ui/src/lib/i18n.ts - 28 + 27 @@ -6839,7 +6871,7 @@ Супутник libs/ui/src/lib/i18n.ts - 29 + 28 @@ -6863,11 +6895,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 318 + 314 libs/ui/src/lib/i18n.ts - 30 + 29 @@ -6875,7 +6907,7 @@ Тег libs/ui/src/lib/i18n.ts - 31 + 30 libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html @@ -6887,7 +6919,7 @@ Рік libs/ui/src/lib/i18n.ts - 32 + 31 @@ -6895,7 +6927,7 @@ View Details apps/client/src/app/components/admin-users/admin-users.html - 225 + 221 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -6907,7 +6939,7 @@ Роки libs/ui/src/lib/i18n.ts - 33 + 32 @@ -6923,7 +6955,7 @@ Так libs/ui/src/lib/i18n.ts - 34 + 33 @@ -6931,7 +6963,7 @@ Sign in with OpenID Connect apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 55 + 57 @@ -6943,7 +6975,7 @@ libs/ui/src/lib/i18n.ts - 37 + 36 @@ -6951,7 +6983,7 @@ Комісія apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 258 + 255 libs/ui/src/lib/activities-table/activities-table.component.html @@ -6959,7 +6991,7 @@ libs/ui/src/lib/i18n.ts - 39 + 38 @@ -6967,7 +6999,7 @@ Цінний libs/ui/src/lib/i18n.ts - 43 + 42 @@ -6975,7 +7007,7 @@ Зобов’язання libs/ui/src/lib/i18n.ts - 41 + 40 @@ -6987,7 +7019,7 @@ libs/ui/src/lib/i18n.ts - 42 + 41 @@ -6995,11 +7027,11 @@ Готівка apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 219 + 218 libs/ui/src/lib/i18n.ts - 55 + 54 @@ -7007,7 +7039,7 @@ Товар libs/ui/src/lib/i18n.ts - 47 + 46 @@ -7015,11 +7047,11 @@ Капітал apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 57 + 55 libs/ui/src/lib/i18n.ts - 48 + 47 @@ -7027,7 +7059,7 @@ Фіксований дохід libs/ui/src/lib/i18n.ts - 49 + 48 @@ -7035,7 +7067,7 @@ Ліквідність libs/ui/src/lib/i18n.ts - 50 + 49 @@ -7043,7 +7075,7 @@ Нерухомість libs/ui/src/lib/i18n.ts - 51 + 50 @@ -7059,7 +7091,7 @@ Облігація libs/ui/src/lib/i18n.ts - 54 + 53 @@ -7067,7 +7099,7 @@ Криптовалюта libs/ui/src/lib/i18n.ts - 57 + 56 @@ -7075,7 +7107,7 @@ ETF libs/ui/src/lib/i18n.ts - 58 + 57 @@ -7083,7 +7115,7 @@ Взаємний фонд libs/ui/src/lib/i18n.ts - 60 + 59 @@ -7091,7 +7123,7 @@ Дорогоцінний метал libs/ui/src/lib/i18n.ts - 61 + 60 @@ -7099,7 +7131,7 @@ Приватний капітал libs/ui/src/lib/i18n.ts - 62 + 61 @@ -7107,7 +7139,7 @@ Акція libs/ui/src/lib/i18n.ts - 63 + 62 @@ -7115,7 +7147,7 @@ Африка libs/ui/src/lib/i18n.ts - 70 + 69 @@ -7123,7 +7155,7 @@ Азія libs/ui/src/lib/i18n.ts - 71 + 70 @@ -7131,7 +7163,7 @@ Європа libs/ui/src/lib/i18n.ts - 72 + 71 @@ -7139,7 +7171,7 @@ Північна Америка libs/ui/src/lib/i18n.ts - 73 + 72 @@ -7155,7 +7187,7 @@ Океанія libs/ui/src/lib/i18n.ts - 74 + 73 @@ -7163,7 +7195,7 @@ Південна Америка libs/ui/src/lib/i18n.ts - 75 + 74 @@ -7171,7 +7203,7 @@ Австралія libs/ui/src/lib/i18n.ts - 80 + 79 @@ -7179,7 +7211,7 @@ Австрія libs/ui/src/lib/i18n.ts - 81 + 80 @@ -7187,7 +7219,7 @@ Бельгія libs/ui/src/lib/i18n.ts - 82 + 81 @@ -7195,7 +7227,7 @@ Болгарія libs/ui/src/lib/i18n.ts - 84 + 83 @@ -7211,7 +7243,7 @@ Канада libs/ui/src/lib/i18n.ts - 85 + 84 @@ -7219,7 +7251,7 @@ Чеська Республіка libs/ui/src/lib/i18n.ts - 86 + 85 @@ -7227,7 +7259,7 @@ Фінляндія libs/ui/src/lib/i18n.ts - 87 + 86 @@ -7235,7 +7267,7 @@ Франція libs/ui/src/lib/i18n.ts - 88 + 87 @@ -7243,7 +7275,7 @@ Німеччина libs/ui/src/lib/i18n.ts - 89 + 88 @@ -7251,7 +7283,7 @@ Індія libs/ui/src/lib/i18n.ts - 90 + 89 @@ -7259,7 +7291,7 @@ Італія libs/ui/src/lib/i18n.ts - 92 + 91 @@ -7267,7 +7299,7 @@ Японія libs/ui/src/lib/i18n.ts - 93 + 92 @@ -7275,7 +7307,7 @@ Нідерланди libs/ui/src/lib/i18n.ts - 94 + 93 @@ -7283,7 +7315,7 @@ Нова Зеландія libs/ui/src/lib/i18n.ts - 95 + 94 @@ -7291,7 +7323,7 @@ Польща libs/ui/src/lib/i18n.ts - 96 + 95 @@ -7299,7 +7331,7 @@ Румунія libs/ui/src/lib/i18n.ts - 97 + 96 @@ -7307,7 +7339,7 @@ Південна Африка libs/ui/src/lib/i18n.ts - 99 + 98 @@ -7315,7 +7347,7 @@ Таїланд libs/ui/src/lib/i18n.ts - 101 + 100 @@ -7323,7 +7355,7 @@ Україна libs/ui/src/lib/i18n.ts - 102 + 101 @@ -7331,7 +7363,7 @@ Сполучені Штати libs/ui/src/lib/i18n.ts - 104 + 103 @@ -7339,7 +7371,7 @@ Екстремальний страх libs/ui/src/lib/i18n.ts - 107 + 106 @@ -7347,7 +7379,7 @@ Екстремальна жадібність libs/ui/src/lib/i18n.ts - 108 + 107 @@ -7355,7 +7387,7 @@ Нейтрально libs/ui/src/lib/i18n.ts - 111 + 110 @@ -7407,7 +7439,7 @@ libs/ui/src/lib/top-holdings/top-holdings.component.html - 181 + 186 @@ -7423,7 +7455,7 @@ Показати більше libs/ui/src/lib/top-holdings/top-holdings.component.html - 174 + 179 @@ -7431,7 +7463,7 @@ Change with currency effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 116 + 115 @@ -7447,7 +7479,7 @@ Lazy apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7455,7 +7487,7 @@ Instant apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7495,7 +7527,7 @@ end of day apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7503,7 +7535,7 @@ real-time apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7531,7 +7563,7 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 @@ -7543,7 +7575,7 @@ apps/client/src/app/components/home-overview/home-overview.component.ts - 54 + 52 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -7551,11 +7583,11 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 390 + 394 @@ -7587,7 +7619,7 @@ Total amount apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 95 + 94 @@ -7595,7 +7627,7 @@ Armenia libs/ui/src/lib/i18n.ts - 78 + 77 @@ -7603,7 +7635,7 @@ British Virgin Islands libs/ui/src/lib/i18n.ts - 83 + 82 @@ -7611,7 +7643,7 @@ Singapore libs/ui/src/lib/i18n.ts - 98 + 97 @@ -7674,20 +7706,12 @@ 240 - - Find account, holding or page... - Find account, holding or page... - - libs/ui/src/lib/assistant/assistant.component.ts - 115 - - Generate Security Token Generate Security Token apps/client/src/app/components/admin-users/admin-users.html - 243 + 239 @@ -7695,7 +7719,7 @@ United Kingdom libs/ui/src/lib/i18n.ts - 103 + 102 @@ -7744,7 +7768,7 @@ () is already in use. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 649 + 675 @@ -7752,7 +7776,7 @@ An error occurred while updating to (). apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 657 + 683 @@ -7816,7 +7840,7 @@ someone apps/client/src/app/pages/public/public-page.component.ts - 61 + 62 @@ -7848,7 +7872,7 @@ Do you really want to delete this item? libs/ui/src/lib/benchmark/benchmark.component.ts - 139 + 137 @@ -7856,7 +7880,7 @@ Log out apps/client/src/app/components/header/header.component.html - 329 + 325 @@ -7889,7 +7913,7 @@ Demo user account has been synced. apps/client/src/app/components/admin-overview/admin-overview.component.ts - 277 + 303 @@ -7897,7 +7921,7 @@ Sync Demo User Account apps/client/src/app/components/admin-overview/admin-overview.html - 204 + 128 @@ -8103,7 +8127,7 @@ Current month apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 @@ -8276,7 +8300,7 @@ Generate apps/client/src/app/components/user-account-access/user-account-access.html - 43 + 45 @@ -8316,7 +8340,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 39 + 35 @@ -8324,7 +8348,7 @@ Manage Asset Profile apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 471 + 467 @@ -8332,7 +8356,7 @@ Alternative Investment libs/ui/src/lib/i18n.ts - 46 + 45 @@ -8340,7 +8364,7 @@ Collectible libs/ui/src/lib/i18n.ts - 56 + 55 diff --git a/apps/client/src/locales/messages.xlf b/apps/client/src/locales/messages.xlf index 17a0227a0..4c38d4f7d 100644 --- a/apps/client/src/locales/messages.xlf +++ b/apps/client/src/locales/messages.xlf @@ -286,7 +286,7 @@ Cash Balance apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 45 + 43 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -301,7 +301,7 @@ Platform apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 90 + 88 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -316,7 +316,7 @@ Cash Balances apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 146 + 142 @@ -366,7 +366,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 135 + 134 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -420,7 +420,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 141 + 140 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -439,15 +439,15 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 201 + 199 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 204 + 202 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 207 + 205 libs/ui/src/lib/account-balances/account-balances.component.html @@ -521,7 +521,7 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 140 + 213 apps/client/src/app/components/admin-platform/admin-platform.component.html @@ -556,7 +556,7 @@ Do you really want to delete this account? libs/ui/src/lib/accounts-table/accounts-table.component.ts - 148 + 146 @@ -593,11 +593,11 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 151 + 150 libs/ui/src/lib/i18n.ts - 15 + 14 @@ -674,11 +674,18 @@ 2 + + Find an account... + + libs/ui/src/lib/assistant/assistant.component.ts + 471 + + Date apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 157 + 156 libs/ui/src/lib/account-balances/account-balances.component.html @@ -744,7 +751,7 @@ Filter by... apps/client/src/app/components/admin-market-data/admin-market-data.component.ts - 383 + 368 @@ -759,7 +766,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 219 + 217 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -781,7 +788,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 40 + 42 @@ -856,7 +863,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 67 + 69 @@ -867,7 +874,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 268 + 266 @@ -878,11 +885,11 @@ apps/client/src/app/components/admin-users/admin-users.html - 60 + 56 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 278 + 276 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -901,7 +908,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 284 + 282 apps/client/src/app/pages/public/public-page.html @@ -920,7 +927,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 296 + 294 @@ -956,7 +963,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 271 + 268 @@ -996,63 +1003,49 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 120 + 119 Do you really want to delete this coupon? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 196 + 222 Do you really want to delete this system message? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 209 + 235 Do you really want to flush the cache? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 233 + 259 Please set your system message: apps/client/src/app/components/admin-overview/admin-overview.component.ts - 253 + 279 Version apps/client/src/app/components/admin-overview/admin-overview.html - 7 - - - - User Count - - apps/client/src/app/components/admin-overview/admin-overview.html - 16 - - - - Activity Count - - apps/client/src/app/components/admin-overview/admin-overview.html - 22 + 11 per User - apps/client/src/app/components/admin-overview/admin-overview.html - 31 + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 166 @@ -1066,42 +1059,42 @@ User Signup apps/client/src/app/components/admin-overview/admin-overview.html - 37 + 50 Read-only Mode apps/client/src/app/components/admin-overview/admin-overview.html - 51 + 64 System Message apps/client/src/app/components/admin-overview/admin-overview.html - 75 + 88 Set Message apps/client/src/app/components/admin-overview/admin-overview.html - 97 + 110 Coupons apps/client/src/app/components/admin-overview/admin-overview.html - 105 + 148 Add apps/client/src/app/components/admin-overview/admin-overview.html - 185 + 265 libs/ui/src/lib/account-balances/account-balances.component.html @@ -1112,14 +1105,14 @@ Housekeeping apps/client/src/app/components/admin-overview/admin-overview.html - 193 + 117 Flush Cache apps/client/src/app/components/admin-overview/admin-overview.html - 209 + 133 @@ -1152,7 +1145,7 @@ Asset profile has been saved apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 594 + 618 @@ -1187,7 +1180,7 @@ Current year apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 @@ -1280,7 +1273,7 @@ Engagement per Day apps/client/src/app/components/admin-users/admin-users.html - 140 + 136 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1291,32 +1284,32 @@ Last Request apps/client/src/app/components/admin-users/admin-users.html - 186 + 182 Impersonate User apps/client/src/app/components/admin-users/admin-users.html - 233 + 229 Delete User apps/client/src/app/components/admin-users/admin-users.html - 254 + 250 Could not validate form apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 570 + 594 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 573 + 597 @@ -1345,7 +1338,7 @@ apps/client/src/app/components/header/header.component.html - 258 + 257 apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts @@ -1378,7 +1371,7 @@ About Ghostfolio apps/client/src/app/components/header/header.component.html - 326 + 322 apps/client/src/app/pages/about/overview/about-overview-page.html @@ -1389,15 +1382,15 @@ Sign in apps/client/src/app/components/header/header.component.html - 422 + 421 apps/client/src/app/components/header/header.component.ts - 298 + 296 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 79 + 81 libs/common/src/lib/routes/routes.ts @@ -1412,7 +1405,7 @@ Oops! Incorrect Security Token. apps/client/src/app/components/header/header.component.ts - 313 + 311 apps/client/src/app/components/user-account-access/user-account-access.component.ts @@ -1442,7 +1435,7 @@ libs/ui/src/lib/i18n.ts - 109 + 108 @@ -1457,7 +1450,7 @@ libs/ui/src/lib/i18n.ts - 110 + 109 @@ -1496,63 +1489,63 @@ Setup your accounts apps/client/src/app/components/home-overview/home-overview.html - 19 + 16 Get a comprehensive financial overview by adding your bank and brokerage accounts. apps/client/src/app/components/home-overview/home-overview.html - 21 + 18 Capture your activities apps/client/src/app/components/home-overview/home-overview.html - 28 + 25 Record your investment activities to keep your portfolio up to date. apps/client/src/app/components/home-overview/home-overview.html - 30 + 27 Monitor and analyze your portfolio apps/client/src/app/components/home-overview/home-overview.html - 37 + 34 Track your progress in real-time with comprehensive analysis and insights. apps/client/src/app/components/home-overview/home-overview.html - 39 + 36 Setup accounts apps/client/src/app/components/home-overview/home-overview.html - 52 + 49 Current week apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 Add activity apps/client/src/app/components/home-overview/home-overview.html - 60 + 57 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html @@ -1563,14 +1556,21 @@ Total Amount apps/client/src/app/components/investment-chart/investment-chart.component.ts - 146 + 147 + + + + Code + + apps/client/src/app/components/admin-overview/admin-overview.html + 159 Savings Rate apps/client/src/app/components/investment-chart/investment-chart.component.ts - 202 + 205 @@ -1608,7 +1608,7 @@ apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 32 + 34 apps/client/src/app/pages/landing/landing-page.html @@ -1647,14 +1647,14 @@ Sign in with Google apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 44 + 46 Stay signed in apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 66 + 68 @@ -1675,7 +1675,7 @@ Fees apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 208 + 206 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -1690,7 +1690,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 259 + 257 @@ -1701,7 +1701,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 278 + 276 @@ -1715,28 +1715,28 @@ Assets apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 233 + 232 Buying Power apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 248 + 247 Excluded from Analysis apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 274 + 273 Liabilities apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 302 + 301 apps/client/src/app/pages/features/features-page.html @@ -1747,46 +1747,46 @@ Net Worth apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 324 + 323 Annualized Performance apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 338 + 337 Please set the amount of your emergency fund. apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 111 + 110 Minimum Price apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 130 + 129 Maximum Price apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 147 + 145 Quantity apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 157 + 155 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 185 + 183 libs/ui/src/lib/activities-table/activities-table.component.html @@ -1801,7 +1801,7 @@ Report Data Glitch apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 456 + 452 @@ -1969,58 +1969,58 @@ libs/ui/src/lib/assistant/assistant.component.ts - 362 + 373 YTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 1Y apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 5Y apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 Performance with currency effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 135 + 134 Max apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 217 + 221 libs/ui/src/lib/assistant/assistant.component.ts - 414 + 425 @@ -2041,7 +2041,7 @@ Granted Access apps/client/src/app/components/user-account-access/user-account-access.html - 57 + 59 @@ -2284,7 +2284,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 194 + 191 @@ -2295,7 +2295,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 192 + 189 @@ -2310,7 +2310,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 195 + 192 @@ -2325,7 +2325,7 @@ apps/client/src/app/components/header/header.component.html - 375 + 370 apps/client/src/app/pages/about/overview/about-overview-page.routes.ts @@ -2417,7 +2417,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 97 + 93 apps/client/src/app/components/header/header.component.html @@ -2425,11 +2425,11 @@ apps/client/src/app/components/header/header.component.html - 268 + 267 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 381 + 378 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -2505,7 +2505,7 @@ apps/client/src/app/components/header/header.component.html - 289 + 287 libs/common/src/lib/routes/routes.ts @@ -2516,7 +2516,7 @@ Market Data apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 403 + 400 libs/common/src/lib/routes/routes.ts @@ -2540,6 +2540,10 @@ Users + + apps/client/src/app/components/admin-overview/admin-overview.html + 24 + libs/common/src/lib/routes/routes.ts 61 @@ -2561,7 +2565,7 @@ apps/client/src/app/components/header/header.component.html - 248 + 247 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html @@ -2569,11 +2573,11 @@ apps/client/src/app/pages/admin/admin-page.component.ts - 45 + 41 apps/client/src/app/pages/resources/resources-page.component.ts - 29 + 27 libs/common/src/lib/routes/routes.ts @@ -2682,6 +2686,10 @@ apps/client/src/app/pages/blog/2025/11/black-weeks-2025/black-weeks-2025-page.html 147 + + apps/client/src/app/pages/blog/2026/04/ghostfolio-3/ghostfolio-3-page.html + 269 + apps/client/src/app/pages/blog/blog-page.html 5 @@ -2695,11 +2703,11 @@ Could not parse scraper configuration apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 525 + 545 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 528 + 548 @@ -2716,6 +2724,13 @@ 32 + + Duration + + apps/client/src/app/components/admin-overview/admin-overview.html + 172 + + Frequently Asked Questions (FAQ) @@ -2743,7 +2758,7 @@ apps/client/src/app/components/header/header.component.html - 361 + 356 apps/client/src/app/pages/features/features-page.html @@ -2849,7 +2864,7 @@ Get Started apps/client/src/app/components/header/header.component.html - 433 + 432 apps/client/src/app/pages/features/features-page.html @@ -2880,7 +2895,7 @@ Holdings apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 102 + 100 apps/client/src/app/components/home-holdings/home-holdings.html @@ -2926,7 +2941,7 @@ apps/client/src/app/components/header/header.component.html - 408 + 403 apps/client/src/app/components/home-market/home-market.html @@ -2942,7 +2957,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 39 + 37 libs/common/src/lib/routes/routes.ts @@ -3359,31 +3374,35 @@ Activities apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 86 + 84 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 113 + 111 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html 226 + + apps/client/src/app/components/admin-overview/admin-overview.html + 38 + apps/client/src/app/components/admin-tag/admin-tag.component.html 45 apps/client/src/app/components/admin-users/admin-users.html - 118 + 114 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 231 + 229 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 348 + 342 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -3466,14 +3485,14 @@ Update Cash Balance apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 108 + 109 Unit Price apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 210 + 208 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3484,7 +3503,7 @@ Import Activities apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 92 + 93 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3499,7 +3518,7 @@ Import Dividends apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 136 + 132 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3514,14 +3533,14 @@ Importing data... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 174 + 171 Import has been completed apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 184 + 181 @@ -3535,7 +3554,7 @@ Validating data... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 293 + 291 @@ -3699,7 +3718,7 @@ libs/ui/src/lib/i18n.ts - 17 + 16 @@ -3785,15 +3804,15 @@ Dividend apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 81 + 79 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 186 + 184 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 372 + 371 apps/client/src/app/pages/features/features-page.html @@ -3801,7 +3820,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 198 + 196 apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts @@ -3809,7 +3828,7 @@ libs/ui/src/lib/i18n.ts - 38 + 37 @@ -3844,49 +3863,49 @@ Top apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 305 + 303 Bottom apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 354 + 352 Portfolio Evolution apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 407 + 405 Investment Timeline apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 436 + 434 Current Streak apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 457 + 455 Longest Streak apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 466 + 464 Dividend Timeline apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 495 + 493 @@ -3915,11 +3934,11 @@ apps/client/src/app/components/header/header.component.html - 313 + 309 apps/client/src/app/components/header/header.component.html - 389 + 384 apps/client/src/app/pages/pricing/pricing-page.routes.ts @@ -4089,11 +4108,11 @@ Could not save asset profile apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 604 + 628 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 607 + 631 @@ -4135,7 +4154,7 @@ Registration apps/client/src/app/components/admin-users/admin-users.html - 80 + 76 libs/common/src/lib/routes/routes.ts @@ -4430,7 +4449,7 @@ libs/ui/src/lib/i18n.ts - 100 + 99 @@ -4441,7 +4460,7 @@ libs/ui/src/lib/i18n.ts - 18 + 17 @@ -4456,7 +4475,7 @@ apps/client/src/app/components/header/header.component.html - 301 + 297 apps/client/src/app/pages/resources/overview/resources-overview.component.html @@ -4500,7 +4519,7 @@ My Ghostfolio apps/client/src/app/components/header/header.component.html - 277 + 276 apps/client/src/app/pages/user-account/user-account-page.routes.ts @@ -4649,7 +4668,7 @@ Loan libs/ui/src/lib/i18n.ts - 59 + 58 @@ -4691,11 +4710,11 @@ Interest apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 69 + 67 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 359 + 358 libs/ui/src/lib/fire-calculator/fire-calculator.component.ts @@ -4703,7 +4722,7 @@ libs/ui/src/lib/i18n.ts - 40 + 39 @@ -4743,7 +4762,7 @@ Account apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 85 + 86 libs/ui/src/lib/activities-table/activities-table.component.html @@ -4781,11 +4800,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 242 + 240 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 286 + 283 libs/ui/src/lib/i18n.ts @@ -4812,11 +4831,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 251 + 249 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 305 + 302 libs/ui/src/lib/i18n.ts @@ -4844,13 +4863,6 @@ 13 - - Switch to Ghostfolio Open Source or Ghostfolio Basic easily - - libs/ui/src/lib/i18n.ts - 14 - - Emergency Fund @@ -4863,63 +4875,63 @@ libs/ui/src/lib/i18n.ts - 16 + 15 Grant libs/ui/src/lib/i18n.ts - 19 + 18 Higher Risk libs/ui/src/lib/i18n.ts - 20 + 19 This activity already exists. libs/ui/src/lib/i18n.ts - 21 + 20 Japan libs/ui/src/lib/i18n.ts - 93 + 92 Lower Risk libs/ui/src/lib/i18n.ts - 22 + 21 Month libs/ui/src/lib/i18n.ts - 23 + 22 Months libs/ui/src/lib/i18n.ts - 24 + 23 Other libs/ui/src/lib/i18n.ts - 25 + 24 libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -4930,7 +4942,7 @@ Preset libs/ui/src/lib/i18n.ts - 27 + 26 @@ -4944,14 +4956,14 @@ Retirement Provision libs/ui/src/lib/i18n.ts - 28 + 27 Satellite libs/ui/src/lib/i18n.ts - 29 + 28 @@ -4974,18 +4986,18 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 318 + 314 libs/ui/src/lib/i18n.ts - 30 + 29 Tag libs/ui/src/lib/i18n.ts - 31 + 30 libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html @@ -4996,14 +5008,14 @@ Year libs/ui/src/lib/i18n.ts - 32 + 31 View Details apps/client/src/app/components/admin-users/admin-users.html - 225 + 221 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -5014,14 +5026,14 @@ Years libs/ui/src/lib/i18n.ts - 33 + 32 Sign in with OpenID Connect apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 55 + 57 @@ -5032,14 +5044,14 @@ libs/ui/src/lib/i18n.ts - 37 + 36 Fee apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 258 + 255 libs/ui/src/lib/activities-table/activities-table.component.html @@ -5047,21 +5059,21 @@ libs/ui/src/lib/i18n.ts - 39 + 38 Valuable libs/ui/src/lib/i18n.ts - 43 + 42 Liability libs/ui/src/lib/i18n.ts - 41 + 40 @@ -5072,50 +5084,50 @@ libs/ui/src/lib/i18n.ts - 42 + 41 Cash apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 219 + 218 libs/ui/src/lib/i18n.ts - 55 + 54 Commodity libs/ui/src/lib/i18n.ts - 47 + 46 Equity apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 57 + 55 libs/ui/src/lib/i18n.ts - 48 + 47 Fixed Income libs/ui/src/lib/i18n.ts - 49 + 48 Real Estate libs/ui/src/lib/i18n.ts - 51 + 50 @@ -5129,77 +5141,77 @@ Bond libs/ui/src/lib/i18n.ts - 54 + 53 Cryptocurrency libs/ui/src/lib/i18n.ts - 57 + 56 ETF libs/ui/src/lib/i18n.ts - 58 + 57 Mutual Fund libs/ui/src/lib/i18n.ts - 60 + 59 Precious Metal libs/ui/src/lib/i18n.ts - 61 + 60 Private Equity libs/ui/src/lib/i18n.ts - 62 + 61 Stock libs/ui/src/lib/i18n.ts - 63 + 62 Africa libs/ui/src/lib/i18n.ts - 70 + 69 Asia libs/ui/src/lib/i18n.ts - 71 + 70 Europe libs/ui/src/lib/i18n.ts - 72 + 71 North America libs/ui/src/lib/i18n.ts - 73 + 72 @@ -5213,35 +5225,35 @@ Oceania libs/ui/src/lib/i18n.ts - 74 + 73 South America libs/ui/src/lib/i18n.ts - 75 + 74 Extreme Fear libs/ui/src/lib/i18n.ts - 107 + 106 Extreme Greed libs/ui/src/lib/i18n.ts - 108 + 107 Neutral libs/ui/src/lib/i18n.ts - 111 + 110 @@ -5286,7 +5298,7 @@ libs/ui/src/lib/top-holdings/top-holdings.component.html - 181 + 186 @@ -5307,7 +5319,7 @@ The current market price is apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 722 + 743 @@ -5328,7 +5340,7 @@ Argentina libs/ui/src/lib/i18n.ts - 79 + 78 @@ -5371,35 +5383,35 @@ Market data is delayed for apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts - 95 + 94 Absolute Currency Performance apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 211 + 209 Close Holding apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 447 + 442 Absolute Asset Performance apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 168 + 166 Investment apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 171 + 169 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -5429,57 +5441,57 @@ Asset Performance apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 190 + 188 Currency Performance apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 236 + 234 Year to date libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 Week to date libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 Month to date libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 MTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 WTD apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5511,7 +5523,7 @@ year apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 apps/client/src/app/pages/resources/personal-finance-tools/product-page.html @@ -5523,18 +5535,18 @@ libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 years apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -5560,7 +5572,7 @@ Self-Hosting apps/client/src/app/pages/faq/faq-page.component.ts - 52 + 46 libs/common/src/lib/routes/routes.ts @@ -5575,21 +5587,28 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 63 + 76 + + + + Find a holding... + + libs/ui/src/lib/assistant/assistant.component.ts + 472 General apps/client/src/app/pages/faq/faq-page.component.ts - 41 + 35 Cloud apps/client/src/app/pages/faq/faq-page.component.ts - 46 + 40 libs/common/src/lib/routes/routes.ts @@ -5614,35 +5633,35 @@ Closed apps/client/src/app/components/home-holdings/home-holdings.component.ts - 64 + 62 Active apps/client/src/app/components/home-holdings/home-holdings.component.ts - 63 + 61 Indonesia libs/ui/src/lib/i18n.ts - 91 + 90 Activity apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 229 + 227 Dividend Yield apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 196 + 194 @@ -5670,7 +5689,7 @@ Liquidity libs/ui/src/lib/i18n.ts - 50 + 49 @@ -5705,7 +5724,7 @@ Close Account apps/client/src/app/components/user-account-settings/user-account-settings.html - 316 + 318 @@ -5715,6 +5734,13 @@ 205 + + Jump to a page... + + libs/ui/src/lib/assistant/assistant.component.ts + 473 + + Danger Zone @@ -5726,14 +5752,14 @@ Approximation based on the top holdings of each ETF apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 336 + 334 By ETF Holding apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 329 + 327 @@ -5761,7 +5787,7 @@ Show more libs/ui/src/lib/top-holdings/top-holdings.component.html - 174 + 179 @@ -5883,35 +5909,35 @@ Thailand libs/ui/src/lib/i18n.ts - 101 + 100 India libs/ui/src/lib/i18n.ts - 90 + 89 Austria libs/ui/src/lib/i18n.ts - 81 + 80 Poland libs/ui/src/lib/i18n.ts - 96 + 95 Italy libs/ui/src/lib/i18n.ts - 92 + 91 @@ -5960,21 +5986,21 @@ Canada libs/ui/src/lib/i18n.ts - 85 + 84 New Zealand libs/ui/src/lib/i18n.ts - 95 + 94 Netherlands libs/ui/src/lib/i18n.ts - 94 + 93 @@ -6013,21 +6039,21 @@ Romania libs/ui/src/lib/i18n.ts - 97 + 96 Germany libs/ui/src/lib/i18n.ts - 89 + 88 United States libs/ui/src/lib/i18n.ts - 104 + 103 @@ -6041,7 +6067,7 @@ Belgium libs/ui/src/lib/i18n.ts - 82 + 81 @@ -6059,28 +6085,28 @@ Czech Republic libs/ui/src/lib/i18n.ts - 86 + 85 Australia libs/ui/src/lib/i18n.ts - 80 + 79 South Africa libs/ui/src/lib/i18n.ts - 99 + 98 Bulgaria libs/ui/src/lib/i18n.ts - 84 + 83 @@ -6094,21 +6120,21 @@ Finland libs/ui/src/lib/i18n.ts - 87 + 86 France libs/ui/src/lib/i18n.ts - 88 + 87 Error apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 713 + 734 @@ -6151,7 +6177,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 341 + 338 apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.html @@ -6177,7 +6203,7 @@ Yes libs/ui/src/lib/i18n.ts - 34 + 33 @@ -6191,7 +6217,7 @@ Inactive apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html - 88 + 85 @@ -6218,7 +6244,7 @@ apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 130 + 124 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -6234,7 +6260,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 343 + 340 libs/ui/src/lib/i18n.ts @@ -6266,7 +6292,7 @@ Threshold Max apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 93 + 87 @@ -6294,7 +6320,7 @@ Threshold Min apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 55 + 52 @@ -6340,7 +6366,11 @@ - has been copied to the clipboard + has been copied to the clipboard + + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 378 + libs/ui/src/lib/value/value.component.ts 180 @@ -6480,7 +6510,7 @@ Ukraine libs/ui/src/lib/i18n.ts - 102 + 101 @@ -6494,7 +6524,7 @@ Get access to 80’000+ tickers from over 50 exchanges libs/ui/src/lib/i18n.ts - 26 + 25 @@ -6519,7 +6549,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 44 + 42 libs/common/src/lib/routes/routes.ts @@ -6546,7 +6576,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 33 + 31 libs/common/src/lib/routes/routes.ts @@ -6583,7 +6613,7 @@ Please enter your Ghostfolio API key: apps/client/src/app/pages/api/api-page.component.ts - 46 + 62 @@ -6632,7 +6662,7 @@ API Requests Today apps/client/src/app/components/admin-users/admin-users.html - 161 + 157 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -6705,11 +6735,11 @@ apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 109 + 108 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 136 + 130 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -6721,7 +6751,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 352 + 349 libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.html @@ -6732,7 +6762,7 @@ Received Access apps/client/src/app/components/user-account-access/user-account-access.html - 53 + 55 @@ -6764,7 +6794,7 @@ Change with currency effect apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 116 + 115 @@ -6806,14 +6836,14 @@ Instant apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 Lazy apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -6827,14 +6857,14 @@ real-time apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 end of day apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -6859,7 +6889,7 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 @@ -6870,7 +6900,7 @@ apps/client/src/app/components/home-overview/home-overview.component.ts - 54 + 52 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -6878,11 +6908,11 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 390 + 394 @@ -6903,28 +6933,28 @@ Singapore libs/ui/src/lib/i18n.ts - 98 + 97 Total amount apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 95 + 94 Armenia libs/ui/src/lib/i18n.ts - 78 + 77 British Virgin Islands libs/ui/src/lib/i18n.ts - 83 + 82 @@ -6976,13 +7006,6 @@ 240 - - Find account, holding or page... - - libs/ui/src/lib/assistant/assistant.component.ts - 115 - - Security token @@ -6998,14 +7021,14 @@ Generate Security Token apps/client/src/app/components/admin-users/admin-users.html - 243 + 239 United Kingdom libs/ui/src/lib/i18n.ts - 103 + 102 @@ -7049,14 +7072,14 @@ () is already in use. apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 649 + 675 An error occurred while updating to (). apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 657 + 683 @@ -7091,7 +7114,7 @@ someone apps/client/src/app/pages/public/public-page.component.ts - 61 + 62 @@ -7120,14 +7143,14 @@ Do you really want to delete this item? libs/ui/src/lib/benchmark/benchmark.component.ts - 139 + 137 Log out apps/client/src/app/components/header/header.component.html - 329 + 325 @@ -7157,14 +7180,14 @@ Sync Demo User Account apps/client/src/app/components/admin-overview/admin-overview.html - 204 + 128 Demo user account has been synced. apps/client/src/app/components/admin-overview/admin-overview.component.ts - 277 + 303 @@ -7348,7 +7371,7 @@ Current month apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 @@ -7493,7 +7516,7 @@ Generate apps/client/src/app/components/user-account-access/user-account-access.html - 43 + 45 @@ -7536,28 +7559,28 @@ apps/client/src/app/components/admin-users/admin-users.html - 39 + 35 Manage Asset Profile apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 471 + 467 Alternative Investment libs/ui/src/lib/i18n.ts - 46 + 45 Collectible libs/ui/src/lib/i18n.ts - 56 + 55 diff --git a/apps/client/src/locales/messages.zh.xlf b/apps/client/src/locales/messages.zh.xlf index 64fa63a13..991b5f8b3 100644 --- a/apps/client/src/locales/messages.zh.xlf +++ b/apps/client/src/locales/messages.zh.xlf @@ -308,7 +308,7 @@ 现金余额 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 45 + 43 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -324,7 +324,7 @@ 平台 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 90 + 88 apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -340,7 +340,7 @@ 现金余额 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 146 + 142 @@ -392,7 +392,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 135 + 134 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -448,7 +448,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 141 + 140 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -468,15 +468,15 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 201 + 199 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 204 + 202 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 207 + 205 libs/ui/src/lib/account-balances/account-balances.component.html @@ -552,7 +552,7 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 140 + 213 apps/client/src/app/components/admin-platform/admin-platform.component.html @@ -588,7 +588,7 @@ 您确定要删除此账户吗? libs/ui/src/lib/accounts-table/accounts-table.component.ts - 148 + 146 @@ -628,11 +628,11 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 151 + 150 libs/ui/src/lib/i18n.ts - 15 + 14 @@ -719,12 +719,20 @@ 2 + + Find an account... + Find an account... + + libs/ui/src/lib/assistant/assistant.component.ts + 471 + + Date 日期 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 157 + 156 libs/ui/src/lib/account-balances/account-balances.component.html @@ -796,7 +804,7 @@ 过滤... apps/client/src/app/components/admin-market-data/admin-market-data.component.ts - 383 + 368 @@ -812,7 +820,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 219 + 217 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -836,7 +844,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 40 + 42 @@ -896,7 +904,7 @@ libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html - 67 + 69 @@ -908,7 +916,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 268 + 266 @@ -920,11 +928,11 @@ apps/client/src/app/components/admin-users/admin-users.html - 60 + 56 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 278 + 276 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -944,7 +952,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 284 + 282 apps/client/src/app/pages/public/public-page.html @@ -964,7 +972,7 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 296 + 294 @@ -1004,7 +1012,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 271 + 268 @@ -1048,7 +1056,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 120 + 119 @@ -1056,7 +1064,7 @@ 您确实要删除此优惠券吗? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 196 + 222 @@ -1064,7 +1072,7 @@ 您真的要删除这条系统消息吗? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 209 + 235 @@ -1072,7 +1080,7 @@ 您真的要刷新缓存吗? apps/client/src/app/components/admin-overview/admin-overview.component.ts - 233 + 259 @@ -1080,7 +1088,7 @@ 请设置您的系统消息: apps/client/src/app/components/admin-overview/admin-overview.component.ts - 253 + 279 @@ -1088,31 +1096,15 @@ 版本 apps/client/src/app/components/admin-overview/admin-overview.html - 7 - - - - User Count - 用户数 - - apps/client/src/app/components/admin-overview/admin-overview.html - 16 - - - - Activity Count - 活动计数 - - apps/client/src/app/components/admin-overview/admin-overview.html - 22 + 11 per User 每位用户 - apps/client/src/app/components/admin-overview/admin-overview.html - 31 + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 166 @@ -1128,7 +1120,7 @@ 用户注册 apps/client/src/app/components/admin-overview/admin-overview.html - 37 + 50 @@ -1136,7 +1128,7 @@ 只读模式 apps/client/src/app/components/admin-overview/admin-overview.html - 51 + 64 @@ -1144,7 +1136,7 @@ 系统信息 apps/client/src/app/components/admin-overview/admin-overview.html - 75 + 88 @@ -1152,7 +1144,7 @@ 设置留言 apps/client/src/app/components/admin-overview/admin-overview.html - 97 + 110 @@ -1160,7 +1152,7 @@ 优惠券 apps/client/src/app/components/admin-overview/admin-overview.html - 105 + 148 @@ -1168,7 +1160,7 @@ 添加 apps/client/src/app/components/admin-overview/admin-overview.html - 185 + 265 libs/ui/src/lib/account-balances/account-balances.component.html @@ -1180,7 +1172,7 @@ 维护 apps/client/src/app/components/admin-overview/admin-overview.html - 193 + 117 @@ -1188,7 +1180,7 @@ 刷新缓存 apps/client/src/app/components/admin-overview/admin-overview.html - 209 + 133 @@ -1224,7 +1216,7 @@ 资产概况已保存 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 594 + 618 @@ -1264,7 +1256,7 @@ 当前年份 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 @@ -1368,7 +1360,7 @@ 每天的参与度 apps/client/src/app/components/admin-users/admin-users.html - 140 + 136 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -1380,7 +1372,7 @@ 最后请求 apps/client/src/app/components/admin-users/admin-users.html - 186 + 182 @@ -1388,7 +1380,7 @@ 模拟用户 apps/client/src/app/components/admin-users/admin-users.html - 233 + 229 @@ -1396,7 +1388,7 @@ 删除用户 apps/client/src/app/components/admin-users/admin-users.html - 254 + 250 @@ -1404,11 +1396,11 @@ 无法验证表单 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 570 + 594 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 573 + 597 @@ -1440,7 +1432,7 @@ apps/client/src/app/components/header/header.component.html - 258 + 257 apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts @@ -1476,7 +1468,7 @@ 关于 Ghostfolio apps/client/src/app/components/header/header.component.html - 326 + 322 apps/client/src/app/pages/about/overview/about-overview-page.html @@ -1488,15 +1480,15 @@ 登入 apps/client/src/app/components/header/header.component.html - 422 + 421 apps/client/src/app/components/header/header.component.ts - 298 + 296 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 79 + 81 libs/common/src/lib/routes/routes.ts @@ -1512,7 +1504,7 @@ 哎呀!安全令牌不正确。 apps/client/src/app/components/header/header.component.ts - 313 + 311 apps/client/src/app/components/user-account-access/user-account-access.component.ts @@ -1544,7 +1536,7 @@ libs/ui/src/lib/i18n.ts - 109 + 108 @@ -1560,7 +1552,7 @@ libs/ui/src/lib/i18n.ts - 110 + 109 @@ -1604,7 +1596,7 @@ 设置您的帐户 apps/client/src/app/components/home-overview/home-overview.html - 19 + 16 @@ -1612,7 +1604,7 @@ 通过添加您的银行和经纪账户来获取全面的财务概览。 apps/client/src/app/components/home-overview/home-overview.html - 21 + 18 @@ -1620,7 +1612,7 @@ 记录你的活动 apps/client/src/app/components/home-overview/home-overview.html - 28 + 25 @@ -1628,7 +1620,7 @@ 记录您的投资活动以使您的投资组合保持最新状态。 apps/client/src/app/components/home-overview/home-overview.html - 30 + 27 @@ -1636,7 +1628,7 @@ 监控和分析您的投资组合 apps/client/src/app/components/home-overview/home-overview.html - 37 + 34 @@ -1644,7 +1636,7 @@ 通过全面的分析和见解实时跟踪您的进度。 apps/client/src/app/components/home-overview/home-overview.html - 39 + 36 @@ -1652,7 +1644,7 @@ 设置帐户 apps/client/src/app/components/home-overview/home-overview.html - 52 + 49 @@ -1660,7 +1652,7 @@ 当前周 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 @@ -1668,7 +1660,7 @@ 添加活动 apps/client/src/app/components/home-overview/home-overview.html - 60 + 57 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html @@ -1680,7 +1672,15 @@ 总金额 apps/client/src/app/components/investment-chart/investment-chart.component.ts - 146 + 147 + + + + Code + Code + + apps/client/src/app/components/admin-overview/admin-overview.html + 159 @@ -1688,7 +1688,7 @@ 储蓄率 apps/client/src/app/components/investment-chart/investment-chart.component.ts - 202 + 205 @@ -1728,7 +1728,7 @@ apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 32 + 34 apps/client/src/app/pages/landing/landing-page.html @@ -1768,7 +1768,7 @@ 使用 Google 登录 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 44 + 46 @@ -1776,7 +1776,7 @@ 保持登录 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 66 + 68 @@ -1800,7 +1800,7 @@ 费用 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 208 + 206 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -1816,7 +1816,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 259 + 257 @@ -1828,7 +1828,7 @@ apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 278 + 276 @@ -1844,7 +1844,7 @@ 资产 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 233 + 232 @@ -1852,7 +1852,7 @@ 购买力 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 248 + 247 @@ -1860,7 +1860,7 @@ 从分析中排除 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 274 + 273 @@ -1868,7 +1868,7 @@ 负债 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 302 + 301 apps/client/src/app/pages/features/features-page.html @@ -1880,7 +1880,7 @@ 净值 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 324 + 323 @@ -1888,7 +1888,7 @@ 年化业绩 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 338 + 337 @@ -1896,7 +1896,7 @@ 请输入您的应急基金金额。 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 111 + 110 @@ -1904,7 +1904,7 @@ 最低价格 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 130 + 129 @@ -1912,7 +1912,7 @@ 最高价格 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 147 + 145 @@ -1920,11 +1920,11 @@ 数量 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 157 + 155 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 185 + 183 libs/ui/src/lib/activities-table/activities-table.component.html @@ -1940,7 +1940,7 @@ 报告数据故障 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 456 + 452 @@ -2120,7 +2120,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 362 + 373 @@ -2128,11 +2128,11 @@ 年初至今 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 205 + 209 libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -2140,11 +2140,11 @@ 1年 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -2152,11 +2152,11 @@ 5年 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -2164,7 +2164,7 @@ 含货币影响的表现 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 135 + 134 @@ -2172,11 +2172,11 @@ 最大限度 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 217 + 221 libs/ui/src/lib/assistant/assistant.component.ts - 414 + 425 @@ -2200,7 +2200,7 @@ 授予访问权限 apps/client/src/app/components/user-account-access/user-account-access.html - 57 + 59 @@ -2472,7 +2472,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 194 + 191 @@ -2484,7 +2484,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 192 + 189 @@ -2500,7 +2500,7 @@ apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 195 + 192 @@ -2516,7 +2516,7 @@ apps/client/src/app/components/header/header.component.html - 375 + 370 apps/client/src/app/pages/about/overview/about-overview-page.routes.ts @@ -2616,7 +2616,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 97 + 93 apps/client/src/app/components/header/header.component.html @@ -2624,11 +2624,11 @@ apps/client/src/app/components/header/header.component.html - 268 + 267 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 381 + 378 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -2712,7 +2712,7 @@ apps/client/src/app/components/header/header.component.html - 289 + 287 libs/common/src/lib/routes/routes.ts @@ -2724,7 +2724,7 @@ 市场数据 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 403 + 400 libs/common/src/lib/routes/routes.ts @@ -2750,6 +2750,10 @@ Users 用户 + + apps/client/src/app/components/admin-overview/admin-overview.html + 24 + libs/common/src/lib/routes/routes.ts 61 @@ -2772,7 +2776,7 @@ apps/client/src/app/components/header/header.component.html - 248 + 247 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html @@ -2780,11 +2784,11 @@ apps/client/src/app/pages/admin/admin-page.component.ts - 45 + 41 apps/client/src/app/pages/resources/resources-page.component.ts - 29 + 27 libs/common/src/lib/routes/routes.ts @@ -2894,6 +2898,10 @@ apps/client/src/app/pages/blog/2025/11/black-weeks-2025/black-weeks-2025-page.html 147 + + apps/client/src/app/pages/blog/2026/04/ghostfolio-3/ghostfolio-3-page.html + 269 + apps/client/src/app/pages/blog/blog-page.html 5 @@ -2908,11 +2916,11 @@ 无法解析抓取器配置 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 525 + 545 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 528 + 548 @@ -2931,6 +2939,14 @@ 32 + + Duration + Duration + + apps/client/src/app/components/admin-overview/admin-overview.html + 172 + + Frequently Asked Questions (FAQ) 常见问题 (FAQ) @@ -2960,7 +2976,7 @@ apps/client/src/app/components/header/header.component.html - 361 + 356 apps/client/src/app/pages/features/features-page.html @@ -3080,7 +3096,7 @@ 立即开始 apps/client/src/app/components/header/header.component.html - 433 + 432 apps/client/src/app/pages/features/features-page.html @@ -3112,7 +3128,7 @@ 持仓 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 102 + 100 apps/client/src/app/components/home-holdings/home-holdings.html @@ -3160,7 +3176,7 @@ apps/client/src/app/components/header/header.component.html - 408 + 403 apps/client/src/app/components/home-market/home-market.html @@ -3176,7 +3192,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 39 + 37 libs/common/src/lib/routes/routes.ts @@ -3648,31 +3664,35 @@ 活动 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 86 + 84 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 113 + 111 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html 226 + + apps/client/src/app/components/admin-overview/admin-overview.html + 38 + apps/client/src/app/components/admin-tag/admin-tag.component.html 45 apps/client/src/app/components/admin-users/admin-users.html - 118 + 114 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 231 + 229 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 348 + 342 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -3764,7 +3784,7 @@ 更新现金余额 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 108 + 109 @@ -3772,7 +3792,7 @@ 单价 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 210 + 208 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3784,7 +3804,7 @@ 导入活动记录 apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 92 + 93 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3800,7 +3820,7 @@ 导入股息 apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 136 + 132 libs/ui/src/lib/activities-table/activities-table.component.html @@ -3816,7 +3836,7 @@ 正在导入数据... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 174 + 171 @@ -3824,7 +3844,7 @@ 导入已完成 apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 184 + 181 @@ -3840,7 +3860,7 @@ 验证数据... apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts - 293 + 291 @@ -4024,7 +4044,7 @@ libs/ui/src/lib/i18n.ts - 17 + 16 @@ -4120,15 +4140,15 @@ 股息 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 81 + 79 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 186 + 184 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 372 + 371 apps/client/src/app/pages/features/features-page.html @@ -4136,7 +4156,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 198 + 196 apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts @@ -4144,7 +4164,7 @@ libs/ui/src/lib/i18n.ts - 38 + 37 @@ -4184,7 +4204,7 @@ 顶部 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 305 + 303 @@ -4192,7 +4212,7 @@ 底部 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 354 + 352 @@ -4200,7 +4220,7 @@ 投资组合演变 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 407 + 405 @@ -4208,7 +4228,7 @@ 投资时间表 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 436 + 434 @@ -4216,7 +4236,7 @@ 当前连胜 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 457 + 455 @@ -4224,7 +4244,7 @@ 最长连续纪录 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 466 + 464 @@ -4232,7 +4252,7 @@ 股息时间表 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 495 + 493 @@ -4264,11 +4284,11 @@ apps/client/src/app/components/header/header.component.html - 313 + 309 apps/client/src/app/components/header/header.component.html - 389 + 384 apps/client/src/app/pages/pricing/pricing-page.routes.ts @@ -4456,11 +4476,11 @@ 无法保存资产概况 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 604 + 628 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 607 + 631 @@ -4508,7 +4528,7 @@ 注册 apps/client/src/app/components/admin-users/admin-users.html - 80 + 76 libs/common/src/lib/routes/routes.ts @@ -4833,7 +4853,7 @@ libs/ui/src/lib/i18n.ts - 100 + 99 @@ -4845,7 +4865,7 @@ libs/ui/src/lib/i18n.ts - 18 + 17 @@ -4861,7 +4881,7 @@ apps/client/src/app/components/header/header.component.html - 301 + 297 apps/client/src/app/pages/resources/overview/resources-overview.component.html @@ -4909,7 +4929,7 @@ 我的 Ghostfolio apps/client/src/app/components/header/header.component.html - 277 + 276 apps/client/src/app/pages/user-account/user-account-page.routes.ts @@ -5077,7 +5097,7 @@ Loan libs/ui/src/lib/i18n.ts - 59 + 58 @@ -5125,11 +5145,11 @@ 利息 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 69 + 67 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 359 + 358 libs/ui/src/lib/fire-calculator/fire-calculator.component.ts @@ -5137,7 +5157,7 @@ libs/ui/src/lib/i18n.ts - 40 + 39 @@ -5181,7 +5201,7 @@ 帐户 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 85 + 86 libs/ui/src/lib/activities-table/activities-table.component.html @@ -5221,11 +5241,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 242 + 240 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 286 + 283 libs/ui/src/lib/i18n.ts @@ -5253,11 +5273,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 251 + 249 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 305 + 302 libs/ui/src/lib/i18n.ts @@ -5288,14 +5308,6 @@ 13 - - Switch to Ghostfolio Open Source or Ghostfolio Basic easily - 轻松切换到 Ghostfolio Open Source 或 Ghostfolio Basic - - libs/ui/src/lib/i18n.ts - 14 - - Emergency Fund 应急基金 @@ -5309,7 +5321,7 @@ libs/ui/src/lib/i18n.ts - 16 + 15 @@ -5317,7 +5329,7 @@ 授予 libs/ui/src/lib/i18n.ts - 19 + 18 @@ -5325,7 +5337,7 @@ 风险较高 libs/ui/src/lib/i18n.ts - 20 + 19 @@ -5333,7 +5345,7 @@ 这项活动已经存在。 libs/ui/src/lib/i18n.ts - 21 + 20 @@ -5341,7 +5353,7 @@ 日本 libs/ui/src/lib/i18n.ts - 93 + 92 @@ -5349,7 +5361,7 @@ 降低风险 libs/ui/src/lib/i18n.ts - 22 + 21 @@ -5357,7 +5369,7 @@ libs/ui/src/lib/i18n.ts - 23 + 22 @@ -5365,7 +5377,7 @@ 几个月 libs/ui/src/lib/i18n.ts - 24 + 23 @@ -5373,7 +5385,7 @@ 其他 libs/ui/src/lib/i18n.ts - 25 + 24 libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -5385,7 +5397,7 @@ 预设 libs/ui/src/lib/i18n.ts - 27 + 26 @@ -5401,7 +5413,7 @@ 退休金 libs/ui/src/lib/i18n.ts - 28 + 27 @@ -5409,7 +5421,7 @@ 卫星 libs/ui/src/lib/i18n.ts - 29 + 28 @@ -5433,11 +5445,11 @@ apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 318 + 314 libs/ui/src/lib/i18n.ts - 30 + 29 @@ -5445,7 +5457,7 @@ 标签 libs/ui/src/lib/i18n.ts - 31 + 30 libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html @@ -5457,7 +5469,7 @@ libs/ui/src/lib/i18n.ts - 32 + 31 @@ -5465,7 +5477,7 @@ 查看详细信息 apps/client/src/app/components/admin-users/admin-users.html - 225 + 221 libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -5477,7 +5489,7 @@ libs/ui/src/lib/i18n.ts - 33 + 32 @@ -5485,7 +5497,7 @@ 使用 OpenID Connect 登录 apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.html - 55 + 57 @@ -5497,7 +5509,7 @@ libs/ui/src/lib/i18n.ts - 37 + 36 @@ -5505,7 +5517,7 @@ 费用 apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 258 + 255 libs/ui/src/lib/activities-table/activities-table.component.html @@ -5513,7 +5525,7 @@ libs/ui/src/lib/i18n.ts - 39 + 38 @@ -5521,7 +5533,7 @@ 贵重物品 libs/ui/src/lib/i18n.ts - 43 + 42 @@ -5529,7 +5541,7 @@ 负债 libs/ui/src/lib/i18n.ts - 41 + 40 @@ -5541,7 +5553,7 @@ libs/ui/src/lib/i18n.ts - 42 + 41 @@ -5549,11 +5561,11 @@ 现金 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html - 219 + 218 libs/ui/src/lib/i18n.ts - 55 + 54 @@ -5561,7 +5573,7 @@ 商品 libs/ui/src/lib/i18n.ts - 47 + 46 @@ -5569,11 +5581,11 @@ 股权 apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html - 57 + 55 libs/ui/src/lib/i18n.ts - 48 + 47 @@ -5581,7 +5593,7 @@ 固定收益 libs/ui/src/lib/i18n.ts - 49 + 48 @@ -5589,7 +5601,7 @@ 房地产 libs/ui/src/lib/i18n.ts - 51 + 50 @@ -5605,7 +5617,7 @@ 债券 libs/ui/src/lib/i18n.ts - 54 + 53 @@ -5613,7 +5625,7 @@ 加密货币 libs/ui/src/lib/i18n.ts - 57 + 56 @@ -5621,7 +5633,7 @@ 交易所交易基金 libs/ui/src/lib/i18n.ts - 58 + 57 @@ -5629,7 +5641,7 @@ 共同基金 libs/ui/src/lib/i18n.ts - 60 + 59 @@ -5637,7 +5649,7 @@ 贵金属 libs/ui/src/lib/i18n.ts - 61 + 60 @@ -5645,7 +5657,7 @@ 私募股权 libs/ui/src/lib/i18n.ts - 62 + 61 @@ -5653,7 +5665,7 @@ 股票 libs/ui/src/lib/i18n.ts - 63 + 62 @@ -5661,7 +5673,7 @@ 非洲 libs/ui/src/lib/i18n.ts - 70 + 69 @@ -5669,7 +5681,7 @@ 亚洲 libs/ui/src/lib/i18n.ts - 71 + 70 @@ -5677,7 +5689,7 @@ 欧洲 libs/ui/src/lib/i18n.ts - 72 + 71 @@ -5685,7 +5697,7 @@ 北美 libs/ui/src/lib/i18n.ts - 73 + 72 @@ -5701,7 +5713,7 @@ 大洋洲 libs/ui/src/lib/i18n.ts - 74 + 73 @@ -5709,7 +5721,7 @@ 南美洲 libs/ui/src/lib/i18n.ts - 75 + 74 @@ -5717,7 +5729,7 @@ 极度恐惧 libs/ui/src/lib/i18n.ts - 107 + 106 @@ -5725,7 +5737,7 @@ 极度贪婪 libs/ui/src/lib/i18n.ts - 108 + 107 @@ -5733,7 +5745,7 @@ 中性的 libs/ui/src/lib/i18n.ts - 111 + 110 @@ -5781,7 +5793,7 @@ libs/ui/src/lib/top-holdings/top-holdings.component.html - 181 + 186 @@ -5805,7 +5817,7 @@ 当前市场价格为 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 722 + 743 @@ -5829,7 +5841,7 @@ 阿根廷 libs/ui/src/lib/i18n.ts - 79 + 78 @@ -5877,7 +5889,7 @@ 市场数据延迟 apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts - 95 + 94 @@ -5885,7 +5897,7 @@ 绝对货币表现 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 211 + 209 @@ -5893,7 +5905,7 @@ 关闭持仓 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 447 + 442 @@ -5901,7 +5913,7 @@ 绝对资产回报 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 168 + 166 @@ -5909,7 +5921,7 @@ 投资 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 171 + 169 apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -5941,7 +5953,7 @@ 资产回报 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 190 + 188 @@ -5949,7 +5961,7 @@ 货币表现 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 236 + 234 @@ -5957,7 +5969,7 @@ 今年迄今为止 libs/ui/src/lib/assistant/assistant.component.ts - 374 + 385 @@ -5965,7 +5977,7 @@ 本周至今 libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -5973,7 +5985,7 @@ 本月至今 libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5981,11 +5993,11 @@ 本月至今 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 libs/ui/src/lib/assistant/assistant.component.ts - 370 + 381 @@ -5993,11 +6005,11 @@ 本周至今 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 197 + 201 libs/ui/src/lib/assistant/assistant.component.ts - 366 + 377 @@ -6033,7 +6045,7 @@ apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 209 + 213 apps/client/src/app/pages/resources/personal-finance-tools/product-page.html @@ -6045,7 +6057,7 @@ libs/ui/src/lib/assistant/assistant.component.ts - 384 + 395 @@ -6053,11 +6065,11 @@ apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 213 + 217 libs/ui/src/lib/assistant/assistant.component.ts - 408 + 419 @@ -6086,7 +6098,7 @@ 自托管 apps/client/src/app/pages/faq/faq-page.component.ts - 52 + 46 libs/common/src/lib/routes/routes.ts @@ -6102,7 +6114,15 @@ apps/client/src/app/components/admin-overview/admin-overview.html - 63 + 76 + + + + Find a holding... + Find a holding... + + libs/ui/src/lib/assistant/assistant.component.ts + 472 @@ -6110,7 +6130,7 @@ 一般的 apps/client/src/app/pages/faq/faq-page.component.ts - 41 + 35 @@ -6118,7 +6138,7 @@ apps/client/src/app/pages/faq/faq-page.component.ts - 46 + 40 libs/common/src/lib/routes/routes.ts @@ -6146,7 +6166,7 @@ 已关闭 apps/client/src/app/components/home-holdings/home-holdings.component.ts - 64 + 62 @@ -6154,7 +6174,7 @@ 活跃 apps/client/src/app/components/home-holdings/home-holdings.component.ts - 63 + 61 @@ -6162,7 +6182,7 @@ 印度尼西亚 libs/ui/src/lib/i18n.ts - 91 + 90 @@ -6170,7 +6190,7 @@ 活动 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 229 + 227 @@ -6178,7 +6198,7 @@ 股息收益率 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 196 + 194 @@ -6210,7 +6230,7 @@ 流动性 libs/ui/src/lib/i18n.ts - 50 + 49 @@ -6253,6 +6273,14 @@ 205 + + Jump to a page... + Jump to a page... + + libs/ui/src/lib/assistant/assistant.component.ts + 473 + + Danger Zone 危险区域 @@ -6266,7 +6294,7 @@ 关闭账户 apps/client/src/app/components/user-account-settings/user-account-settings.html - 316 + 318 @@ -6274,7 +6302,7 @@ 按 ETF 持仓 apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 329 + 327 @@ -6282,7 +6310,7 @@ 基于每个 ETF 的主要持仓的近似值 apps/client/src/app/pages/portfolio/allocations/allocations-page.html - 336 + 334 @@ -6314,7 +6342,7 @@ 显示更多 libs/ui/src/lib/top-holdings/top-holdings.component.html - 174 + 179 @@ -6550,7 +6578,7 @@ 澳大利亚 libs/ui/src/lib/i18n.ts - 80 + 79 @@ -6558,7 +6586,7 @@ 奥地利 libs/ui/src/lib/i18n.ts - 81 + 80 @@ -6566,7 +6594,7 @@ 比利时 libs/ui/src/lib/i18n.ts - 82 + 81 @@ -6574,7 +6602,7 @@ 保加利亚 libs/ui/src/lib/i18n.ts - 84 + 83 @@ -6590,7 +6618,7 @@ 加拿大 libs/ui/src/lib/i18n.ts - 85 + 84 @@ -6598,7 +6626,7 @@ 捷克共和国 libs/ui/src/lib/i18n.ts - 86 + 85 @@ -6606,7 +6634,7 @@ 芬兰 libs/ui/src/lib/i18n.ts - 87 + 86 @@ -6614,7 +6642,7 @@ 法国 libs/ui/src/lib/i18n.ts - 88 + 87 @@ -6622,7 +6650,7 @@ 德国 libs/ui/src/lib/i18n.ts - 89 + 88 @@ -6630,7 +6658,7 @@ 印度 libs/ui/src/lib/i18n.ts - 90 + 89 @@ -6638,7 +6666,7 @@ 意大利 libs/ui/src/lib/i18n.ts - 92 + 91 @@ -6646,7 +6674,7 @@ 荷兰 libs/ui/src/lib/i18n.ts - 94 + 93 @@ -6654,7 +6682,7 @@ 新西兰 libs/ui/src/lib/i18n.ts - 95 + 94 @@ -6662,7 +6690,7 @@ 波兰 libs/ui/src/lib/i18n.ts - 96 + 95 @@ -6670,7 +6698,7 @@ 罗马尼亚 libs/ui/src/lib/i18n.ts - 97 + 96 @@ -6678,7 +6706,7 @@ 南非 libs/ui/src/lib/i18n.ts - 99 + 98 @@ -6686,7 +6714,7 @@ 泰国 libs/ui/src/lib/i18n.ts - 101 + 100 @@ -6694,7 +6722,7 @@ 美国 libs/ui/src/lib/i18n.ts - 104 + 103 @@ -6702,7 +6730,7 @@ 错误 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 713 + 734 @@ -6742,7 +6770,7 @@ 非活跃 apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html - 88 + 85 @@ -6786,7 +6814,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 341 + 338 apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.html @@ -6826,7 +6854,7 @@ apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 130 + 124 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -6842,7 +6870,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 343 + 340 libs/ui/src/lib/i18n.ts @@ -6862,7 +6890,7 @@ libs/ui/src/lib/i18n.ts - 34 + 33 @@ -6910,7 +6938,7 @@ 最小阈值 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 55 + 52 @@ -6918,7 +6946,7 @@ 阈值上限 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 93 + 87 @@ -6946,8 +6974,12 @@ - has been copied to the clipboard - has been copied to the clipboard + has been copied to the clipboard + has been copied to the clipboard + + apps/client/src/app/components/admin-overview/admin-overview.component.ts + 378 + libs/ui/src/lib/value/value.component.ts 180 @@ -7126,7 +7158,7 @@ 获取来自 50 多个交易所的 80,000+ 股票代码访问权限 libs/ui/src/lib/i18n.ts - 26 + 25 @@ -7134,7 +7166,7 @@ 乌克兰 libs/ui/src/lib/i18n.ts - 102 + 101 @@ -7154,7 +7186,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 44 + 42 libs/common/src/lib/routes/routes.ts @@ -7170,7 +7202,7 @@ apps/client/src/app/pages/resources/resources-page.component.ts - 33 + 31 libs/common/src/lib/routes/routes.ts @@ -7256,7 +7288,7 @@ 请输入您的 Ghostfolio API 密钥: apps/client/src/app/pages/api/api-page.component.ts - 46 + 62 @@ -7264,7 +7296,7 @@ 今日 API 请求数 apps/client/src/app/components/admin-users/admin-users.html - 161 + 157 apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html @@ -7360,11 +7392,11 @@ apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts - 109 + 108 apps/client/src/app/components/rule/rule-settings-dialog/rule-settings-dialog.html - 136 + 130 apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -7376,7 +7408,7 @@ apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html - 352 + 349 libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/historical-market-data-editor-dialog.html @@ -7400,7 +7432,7 @@ 已获得访问权限 apps/client/src/app/components/user-account-access/user-account-access.html - 53 + 55 @@ -7424,7 +7456,7 @@ 含货币影响的涨跌 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 116 + 115 @@ -7448,7 +7480,7 @@ 延迟 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7456,7 +7488,7 @@ 即时 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7496,7 +7528,7 @@ 收盘 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 231 + 235 @@ -7504,7 +7536,7 @@ 实时 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 235 + 239 @@ -7532,7 +7564,7 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 @@ -7544,7 +7576,7 @@ apps/client/src/app/components/home-overview/home-overview.component.ts - 54 + 52 libs/ui/src/lib/holdings-table/holdings-table.component.html @@ -7552,11 +7584,11 @@ libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 377 + 381 libs/ui/src/lib/treemap-chart/treemap-chart.component.ts - 390 + 394 @@ -7588,7 +7620,7 @@ 总金额 apps/client/src/app/pages/portfolio/analysis/analysis-page.html - 95 + 94 @@ -7596,7 +7628,7 @@ 亚美尼亚 libs/ui/src/lib/i18n.ts - 78 + 77 @@ -7604,7 +7636,7 @@ 英属维尔京群岛 libs/ui/src/lib/i18n.ts - 83 + 82 @@ -7612,7 +7644,7 @@ 新加坡 libs/ui/src/lib/i18n.ts - 98 + 97 @@ -7675,20 +7707,12 @@ 240 - - Find account, holding or page... - 查找账户、持仓或页面... - - libs/ui/src/lib/assistant/assistant.component.ts - 115 - - Generate Security Token 生成安全令牌 apps/client/src/app/components/admin-users/admin-users.html - 243 + 239 @@ -7696,7 +7720,7 @@ 英国 libs/ui/src/lib/i18n.ts - 103 + 102 @@ -7745,7 +7769,7 @@ () 已在使用中。 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 649 + 675 @@ -7753,7 +7777,7 @@ 在更新到 () 时发生错误。 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 657 + 683 @@ -7817,7 +7841,7 @@ 某人 apps/client/src/app/pages/public/public-page.component.ts - 61 + 62 @@ -7849,7 +7873,7 @@ 您确定要删除此项目吗? libs/ui/src/lib/benchmark/benchmark.component.ts - 139 + 137 @@ -7857,7 +7881,7 @@ 登出 apps/client/src/app/components/header/header.component.html - 329 + 325 @@ -7890,7 +7914,7 @@ 演示用户账户已同步。 apps/client/src/app/components/admin-overview/admin-overview.component.ts - 277 + 303 @@ -7898,7 +7922,7 @@ 同步演示用户账户 apps/client/src/app/components/admin-overview/admin-overview.html - 204 + 128 @@ -8104,7 +8128,7 @@ 当前月份 apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts - 201 + 205 @@ -8277,7 +8301,7 @@ 生成 apps/client/src/app/components/user-account-access/user-account-access.html - 43 + 45 @@ -8317,7 +8341,7 @@ apps/client/src/app/components/admin-users/admin-users.html - 39 + 35 @@ -8325,7 +8349,7 @@ 管理资产概况 apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html - 471 + 467 @@ -8333,7 +8357,7 @@ 另类投资 libs/ui/src/lib/i18n.ts - 46 + 45 @@ -8341,7 +8365,7 @@ 收藏品 libs/ui/src/lib/i18n.ts - 56 + 55 diff --git a/apps/client/src/styles.scss b/apps/client/src/styles.scss index f5a4e9c80..4321622a1 100644 --- a/apps/client/src/styles.scss +++ b/apps/client/src/styles.scss @@ -1,3 +1,5 @@ +@use '@angular/material' as mat; + @import './styles/bootstrap'; @import './styles/table'; @import './styles/variables'; @@ -256,46 +258,6 @@ body { } } - .mat-mdc-card { - --mat-card-elevated-container-color: var(--dark-background); - --mat-card-outlined-container-color: var(--dark-background); - } - - .mat-mdc-fab { - &.mat-primary { - --mat-fab-icon-color: rgba(var(--dark-primary-text)); - --mat-mdc-fab-color: rgba(var(--dark-primary-text)); - } - } - - .mat-mdc-paginator { - background-color: rgba(var(--palette-foreground-base-dark), 0.02); - } - - .mat-mdc-slide-toggle { - .mdc-switch__track { - --mat-slide-toggle-selected-focus-track-color: rgba( - 255, - 255, - 255, - 0.12 - ); - --mat-slide-toggle-selected-hover-track-color: rgba( - 255, - 255, - 255, - 0.12 - ); - --mat-slide-toggle-selected-pressed-track-color: rgba( - 255, - 255, - 255, - 0.12 - ); - --mat-slide-toggle-selected-track-color: rgba(255, 255, 255, 0.12); - } - } - .mdc-button { &.mat-accent, &.mat-primary { @@ -303,20 +265,6 @@ body { } } - .page { - &.has-tabs { - .mat-mdc-tab-nav-bar { - --mat-tab-inactive-label-text-color: rgba(var(--light-primary-text)); - } - - @media (min-width: 576px) { - .mat-mdc-tab-header { - background-color: rgba(var(--palette-foreground-base-dark), 0.02); - } - } - } - } - .svgMap-tooltip { background: var(--dark-background); @@ -412,12 +360,9 @@ ngx-skeleton-loader { text-wrap: balance; } -.has-fab { - padding-bottom: 3rem !important; -} - .has-info-message { - .page.has-tabs { + // Restrict viewport height of tabbed views when the Live Demo or system announcements banner are displayed + .page:has(gf-page-tabs) { height: calc(100svh - 2 * var(--mat-toolbar-standard-height)); } } @@ -443,8 +388,6 @@ ngx-skeleton-loader { .mat-mdc-card { .mat-mdc-card-title { - --mat-card-title-text-line-height: 1.2; - margin-bottom: 0.5rem; } } @@ -468,15 +411,6 @@ ngx-skeleton-loader { } } -.mat-mdc-fab { - color: var(--mat-mdc-fab-color, inherit) !important; - - &.mat-primary { - --mat-fab-icon-color: rgba(var(--light-primary-text)); - --mat-mdc-fab-color: rgba(var(--light-primary-text)); - } -} - .mat-mdc-form-field { &.without-hint { .mat-mdc-form-field-subscript-wrapper { @@ -508,24 +442,6 @@ ngx-skeleton-loader { } } -.mat-mdc-paginator { - background-color: rgba(var(--palette-foreground-base-light), 0.02); - - .mat-mdc-paginator-page-size, - .mat-mdc-paginator-page-size { - display: none; - } -} - -.mat-mdc-slide-toggle { - .mdc-switch__track { - --mat-slide-toggle-selected-focus-track-color: rgba(0, 0, 0, 0.12); - --mat-slide-toggle-selected-hover-track-color: rgba(0, 0, 0, 0.12); - --mat-slide-toggle-selected-pressed-track-color: rgba(0, 0, 0, 0.12); - --mat-slide-toggle-selected-track-color: rgba(0, 0, 0, 0.12); - } -} - .mat-stepper-vertical, .mat-stepper-horizontal { background: transparent !important; @@ -560,70 +476,21 @@ ngx-skeleton-loader { .page { display: flex; - flex-direction: column; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); padding-bottom: constant(safe-area-inset-bottom); - .fab-container { - bottom: 2rem; - position: fixed; - right: 2rem; - z-index: 999; + // Restrict viewport height and layout boundaries only when the page hosts tab navigation + &:has(gf-page-tabs) { + height: calc(100svh - var(--mat-toolbar-standard-height)); } - &:not(.has-tabs) { + // Apply vertical padding only to standalone or nested content views (tabs handle their own padding) + &:not(:has(gf-page-tabs)) { @media (min-width: 576px) { padding: 2rem 0; } } - - &.has-tabs { - height: calc(100svh - var(--mat-toolbar-standard-height)); - - .fab-container { - @media (max-width: 575.98px) { - bottom: 5rem; - } - } - - .mat-mdc-tab-nav-bar { - --mat-tab-active-focus-indicator-color: transparent; - --mat-tab-active-hover-indicator-color: transparent; - --mat-tab-inactive-label-text-color: rgba(var(--dark-primary-text)); - --mat-tab-active-indicator-color: transparent; - } - - .mat-mdc-tab-nav-panel { - padding: 2rem 0; - } - - @media (max-width: 575.98px) { - .mat-mdc-tab-link { - --mat-tab-container-height: 3rem; - } - } - - @media (min-width: 576px) { - flex-direction: row-reverse; - - .mat-mdc-tab-header { - background-color: rgba(var(--palette-foreground-base), 0.02); - padding: 2rem 0; - width: 14rem; - --mat-tab-label-text-tracking: normal; - --mat-tab-container-height: 2rem; - - .mat-mdc-tab-links { - flex-direction: column; - - .mat-mdc-tab-link { - justify-content: flex-start; - } - } - } - } - } } .svgMap-tooltip { diff --git a/apps/client/src/styles/theme.scss b/apps/client/src/styles/theme.scss index 8dd6d8e36..f8a194651 100644 --- a/apps/client/src/styles/theme.scss +++ b/apps/client/src/styles/theme.scss @@ -1,109 +1,424 @@ @use '@angular/material' as mat; +@use 'sass:map'; -@use './variables.scss' as variables; - -$gf-primary: ( - 50: var(--gf-theme-primary-50), - 100: var(--gf-theme-primary-100), - 200: var(--gf-theme-primary-200), - 300: var(--gf-theme-primary-300), - 400: var(--gf-theme-primary-400), - 500: var(--gf-theme-primary-500), - 600: var(--gf-theme-primary-600), - 700: var(--gf-theme-primary-700), - 800: var(--gf-theme-primary-800), - 900: var(--gf-theme-primary-900), - A100: var(--gf-theme-primary-A100), - A200: var(--gf-theme-primary-A200), - A400: var(--gf-theme-primary-A400), - A700: var(--gf-theme-primary-A700), - contrast: ( - 50: variables.$dark-primary-text, - 100: variables.$dark-primary-text, - 200: variables.$dark-primary-text, - 300: variables.$light-primary-text, - 400: variables.$light-primary-text, - 500: variables.$light-primary-text, - 600: variables.$light-primary-text, - 700: variables.$light-primary-text, - 800: variables.$light-primary-text, - 900: variables.$light-primary-text, - A100: variables.$dark-primary-text, - A200: variables.$light-primary-text, - A400: variables.$light-primary-text, - A700: variables.$light-primary-text - ) -); +$dark-primary-text: rgba(black, 0.87); +$light-primary-text: white; -$gf-secondary: ( - 50: var(--gf-theme-secondary-50), - 100: var(--gf-theme-secondary-100), - 200: var(--gf-theme-secondary-200), - 300: var(--gf-theme-secondary-300), - 400: var(--gf-theme-secondary-400), - 500: var(--gf-theme-secondary-500), - 600: var(--gf-theme-secondary-600), - 700: var(--gf-theme-secondary-700), - 800: var(--gf-theme-secondary-800), - 900: var(--gf-theme-secondary-900), - A100: var(--gf-theme-secondary-A100), - A200: var(--gf-theme-secondary-A200), - A400: var(--gf-theme-secondary-A400), - A700: var(--gf-theme-secondary-A700), - contrast: ( - 50: variables.$dark-primary-text, - 100: variables.$dark-primary-text, - 200: variables.$dark-primary-text, - 300: variables.$light-primary-text, - 400: variables.$light-primary-text, - 500: variables.$light-primary-text, - 600: variables.$light-primary-text, - 700: variables.$light-primary-text, - 800: variables.$light-primary-text, - 900: variables.$light-primary-text, - A100: variables.$dark-primary-text, - A200: variables.$light-primary-text, - A400: variables.$light-primary-text, - A700: variables.$light-primary-text +$_palettes: ( + primary: ( + 0: #000000, + 10: #00201f, + 20: #003736, + 25: #004342, + 30: #00504e, + 35: #005d5b, + 40: #006a68, + 50: #008583, + 60: #00a19f, + 70: #11bebc, + 80: #47dbd7, + 90: #6bf7f4, + 95: #affffc, + 98: #e3fffd, + 99: #f2fffe, + 100: #ffffff + ), + secondary: ( + 0: #000000, + 10: #001d36, + 20: #003258, + 25: #003d6a, + 30: #00497c, + 35: #00558f, + 40: #0061a3, + 50: #267bc3, + 60: #4895df, + 70: #66b0fb, + 80: #9ecaff, + 90: #d1e4ff, + 95: #e9f1ff, + 98: #f8f9ff, + 99: #fdfcff, + 100: #ffffff + ), + tertiary: ( + 0: #000000, + 10: #031d35, + 20: #1b324b, + 25: #273d57, + 30: #324863, + 35: #3e546f, + 40: #4a607b, + 50: #637995, + 60: #7c92b0, + 70: #97adcc, + 80: #b2c8e8, + 90: #d2e4ff, + 95: #eaf1ff, + 98: #f8f9ff, + 99: #fdfcff, + 100: #ffffff + ), + neutral: ( + 0: #000000, + 10: #191c1c, + 20: #2d3131, + 25: #383c3c, + 30: #444747, + 35: #4f5353, + 40: #5b5f5e, + 50: #747877, + 60: #8e9191, + 70: #a9acab, + 80: #c4c7c6, + 90: #e0e3e2, + 95: #eff1f0, + 98: #f7faf9, + 99: #fafdfc, + 100: #ffffff, + 4: #0b0f0f, + 6: #101414, + 12: #1d2020, + 17: #272b2a, + 22: #323535, + 24: #363a39, + 87: #d8dada, + 92: #e6e9e8, + 94: #eceeed, + 96: #f2f4f3 + ), + neutral-variant: ( + 0: #000000, + 10: #141d1d, + 20: #293232, + 25: #343d3d, + 30: #3f4948, + 35: #4a5454, + 40: #566060, + 50: #6f7978, + 60: #889392, + 70: #a3adac, + 80: #bec9c7, + 90: #dae5e3, + 95: #e8f3f2, + 98: #f1fbfa, + 99: #f4fefd, + 100: #ffffff + ), + error: ( + 0: #000000, + 10: #410002, + 20: #690005, + 25: #7e0007, + 30: #93000a, + 35: #a80710, + 40: #ba1a1a, + 50: #de3730, + 60: #ff5449, + 70: #ff897d, + 80: #ffb4ab, + 90: #ffdad6, + 95: #ffedea, + 98: #fff8f7, + 99: #fffbff, + 100: #ffffff ) ); -$gf-typography: mat.m2-define-typography-config(); - -// Create default theme -$gf-theme-default: mat.m2-define-light-theme( - ( - color: ( - accent: mat.m2-define-palette($gf-secondary, 500, 900, A100), - primary: mat.m2-define-palette($gf-primary) - ), - density: -3, - typography: $gf-typography - ) +$_rest: ( + secondary: map.get($_palettes, secondary), + neutral: map.get($_palettes, neutral), + neutral-variant: map.get($_palettes, neutral-variant), + error: map.get($_palettes, error) ); +$_primary: map.merge(map.get($_palettes, primary), $_rest); +$_tertiary: map.merge(map.get($_palettes, tertiary), $_rest); -@include mat.all-component-themes($gf-theme-default); - -// Create dark theme -$gf-theme-dark: mat.m2-define-dark-theme( - ( - color: ( - accent: mat.m2-define-palette($gf-secondary, 500, 900, A100), - primary: mat.m2-define-palette($gf-primary) - ), - density: -3, - typography: $gf-typography - ) +@include mat.app-background(); +@include mat.button-density(0); +@include mat.elevation-classes(); +@include mat.table-density(-1); + +$gf-typography: ( + // Font families + brand-family: var(--font-family-sans-serif), + plain-family: var(--font-family-sans-serif), + // Font weights + bold-weight: 700, + medium-weight: 500, + regular-weight: 400 ); +.theme-light { + color-scheme: light; + + @include mat.theme( + ( + color: ( + primary: $_primary, + tertiary: $_tertiary, + theme-type: light + ), + density: ( + scale: -3 + ), + typography: $gf-typography + ) + ); + + @include mat.autocomplete-overrides( + ( + background-color: var(--light-background) + ) + ); + + @include mat.button-overrides( + ( + outlined-label-text-color: var(--dark-primary-text), + text-label-text-color: var(--dark-primary-text) + ) + ); + + @include mat.button-toggle-overrides( + ( + selected-state-background-color: rgba(var(--dark-dividers)), + selected-state-text-color: var(--dark-primary-text) + ) + ); + + @include mat.card-overrides( + ( + outlined-container-color: var(--light-background), + outlined-outline-color: rgba(var(--dark-dividers)), + title-text-line-height: 1.2 + ) + ); + + @include mat.datepicker-overrides( + ( + calendar-container-background-color: var(--light-background) + ) + ); + + @include mat.dialog-overrides( + ( + container-color: var(--light-background) + ) + ); + + @include mat.menu-overrides( + ( + container-color: var(--light-background) + ) + ); + + @include mat.select-overrides( + ( + panel-background-color: var(--light-background) + ) + ); + + @include mat.slide-toggle-overrides( + ( + selected-track-outline-color: rgba(var(--dark-dividers)), + track-outline-color: rgba(var(--dark-dividers)) + ) + ); + + @include mat.table-overrides( + ( + row-item-outline-color: rgba(var(--dark-dividers)) + ) + ); +} + .theme-dark { - @include mat.all-component-colors($gf-theme-dark); + color-scheme: dark; + + @include mat.theme( + ( + color: ( + primary: $_primary, + tertiary: $_tertiary, + theme-type: dark + ), + density: ( + scale: -3 + ), + typography: $gf-typography + ) + ); + + @include mat.button-overrides( + ( + outlined-label-text-color: var(--light-primary-text), + text-label-text-color: var(--light-primary-text) + ) + ); + + @include mat.button-toggle-overrides( + ( + selected-state-background-color: rgba(var(--light-dividers)), + selected-state-text-color: var(--light-primary-text) + ) + ); + + @include mat.card-overrides( + ( + outlined-container-color: var(--dark-background), + outlined-outline-color: rgba(var(--light-dividers)), + title-text-line-height: 1.2 + ) + ); + + @include mat.slide-toggle-overrides( + ( + selected-track-outline-color: rgba(var(--light-dividers)), + track-outline-color: rgba(var(--light-dividers)) + ) + ); + + @include mat.table-overrides( + ( + row-item-outline-color: rgba(var(--light-dividers)) + ) + ); } -@include mat.button-density(0); -@include mat.elevation-classes(); -@include mat.app-background(); -@include mat.table-density(-1); +.theme-dark, +.theme-light { + @media (max-width: 575.98px) { + @include mat.dialog-overrides( + ( + container-shape: 4px + ) + ); + } + + @include mat.badge-overrides( + ( + background-color: var(--gf-theme-primary-500) + ) + ); + + @include mat.button-overrides( + ( + filled-container-color: var(--gf-theme-primary-500), + filled-horizontal-padding: 1rem, + outlined-horizontal-padding: 1rem, + text-horizontal-padding: 1rem + ) + ); + + @include mat.checkbox-overrides( + ( + selected-icon-color: var(--gf-theme-primary-500) + ) + ); + + @include mat.datepicker-overrides( + ( + calendar-container-elevation-shadow: var( + --mat-select-container-elevation-shadow + ), + calendar-date-selected-state-background-color: var(--gf-theme-primary-500), + calendar-date-today-selected-state-outline-color: var( + --gf-theme-primary-500 + ) + ) + ); + + @include mat.dialog-overrides( + ( + container-max-width: 80vw, + container-shape: 8px, + container-small-max-width: 96vw + ) + ); + + @include mat.fab-overrides( + ( + container-color: var(--gf-theme-primary-500) + ) + ); + + @include mat.form-field-overrides( + ( + outlined-focus-label-text-color: var(--gf-theme-primary-500), + outlined-focus-outline-color: var(--gf-theme-primary-500) + ) + ); + + @include mat.paginator-overrides( + ( + container-background-color: transparent + ) + ); + + @include mat.progress-bar-overrides( + ( + active-indicator-color: var(--gf-theme-primary-500) + ) + ); + + @include mat.slide-toggle-overrides( + ( + selected-focus-handle-color: var(--gf-theme-primary-500), + selected-focus-track-color: transparent, + selected-handle-color: var(--gf-theme-primary-500), + selected-hover-handle-color: var(--gf-theme-primary-500), + selected-hover-track-color: transparent, + selected-pressed-handle-color: var(--gf-theme-primary-500), + selected-pressed-track-color: transparent, + selected-track-color: transparent, + unselected-hover-track-color: transparent, + unselected-track-color: transparent + ) + ); + + @include mat.slider-overrides( + ( + active-track-color: var(--gf-theme-primary-500), + focus-handle-color: var(--gf-theme-primary-500), + handle-color: var(--gf-theme-primary-500) + ) + ); + + @include mat.stepper-overrides( + ( + header-selected-state-icon-background-color: var(--gf-theme-primary-500) + ) + ); + + @include mat.tabs-overrides( + ( + active-focus-label-text-color: var(--gf-theme-primary-500), + active-hover-label-text-color: var(--gf-theme-primary-500), + active-label-text-color: var(--gf-theme-primary-500), + active-ripple-color: var(--gf-theme-primary-500), + inactive-ripple-color: var(--gf-theme-primary-500) + ) + ); + + .mat-accent { + @include mat.button-overrides( + ( + filled-container-color: var(--gf-theme-secondary-500), + outlined-label-text-color: var(--gf-theme-secondary-500) + ) + ); + } + + .mat-warn { + @include mat.button-overrides( + ( + filled-container-color: #f44336, + filled-label-text-color: white, + outlined-label-text-color: #f44336 + ) + ); + } +} :root { --gf-theme-alpha-hover: 0.04; diff --git a/libs/common/jest.config.ts b/libs/common/jest.config.ts index 5002d4d3b..f6cd07ae4 100644 --- a/libs/common/jest.config.ts +++ b/libs/common/jest.config.ts @@ -2,6 +2,7 @@ export default { displayName: 'common', + setupFilesAfterEnv: ['/src/test-setup.ts'], globals: {}, transform: { '^.+\\.[tj]sx?$': ['ts-jest', { tsconfig: '/tsconfig.spec.json' }] diff --git a/libs/common/src/lib/config.ts b/libs/common/src/lib/config.ts index 42e1f6b63..28d902d71 100644 --- a/libs/common/src/lib/config.ts +++ b/libs/common/src/lib/config.ts @@ -2,6 +2,8 @@ import { AssetClass, AssetSubClass, DataSource, Type } from '@prisma/client'; import { JobOptions, JobStatus } from 'bull'; import ms from 'ms'; +import { ColorScheme, DateRange } from './types'; + export const ghostfolioPrefix = 'GF'; export const ghostfolioScraperApiSymbolPrefix = `_${ghostfolioPrefix}_`; export const ghostfolioFearAndGreedIndexDataSourceCryptocurrencies = @@ -77,8 +79,10 @@ export const PORTFOLIO_SNAPSHOT_COMPUTATION_QUEUE_PRIORITY_LOW = export const STATISTICS_GATHERING_QUEUE = 'STATISTICS_GATHERING_QUEUE'; +export const DEFAULT_COLOR_SCHEME: ColorScheme = 'LIGHT'; export const DEFAULT_CURRENCY = 'USD'; export const DEFAULT_DATE_FORMAT_MONTH_YEAR = 'MMM yyyy'; +export const DEFAULT_DATE_RANGE: DateRange = 'max'; export const DEFAULT_HOST = '0.0.0.0'; export const DEFAULT_LANGUAGE_CODE = 'en'; export const DEFAULT_PAGE_SIZE = 50; @@ -252,6 +256,7 @@ export const PROPERTY_SLACK_COMMUNITY_USERS = 'SLACK_COMMUNITY_USERS'; export const PROPERTY_STRIPE_CONFIG = 'STRIPE_CONFIG'; export const PROPERTY_SYSTEM_MESSAGE = 'SYSTEM_MESSAGE'; export const PROPERTY_UPTIME = 'UPTIME'; +export const PROPERTY_WEB_FETCH_ROUTES = 'WEB_FETCH_ROUTES'; export const QUEUE_JOB_STATUS_LIST = [ 'active', diff --git a/libs/common/src/lib/dtos/create-asset-profile.dto.ts b/libs/common/src/lib/dtos/create-asset-profile.dto.ts index 85ad73cc0..1bd3ba9a8 100644 --- a/libs/common/src/lib/dtos/create-asset-profile.dto.ts +++ b/libs/common/src/lib/dtos/create-asset-profile.dto.ts @@ -74,7 +74,7 @@ export class CreateAssetProfileDto { @IsOptional() @IsUrl({ - protocols: ['https'], + protocols: ['http', 'https'], require_protocol: true }) url?: string; diff --git a/libs/common/src/lib/dtos/create-platform.dto.ts b/libs/common/src/lib/dtos/create-platform.dto.ts index 941354c11..e482dd241 100644 --- a/libs/common/src/lib/dtos/create-platform.dto.ts +++ b/libs/common/src/lib/dtos/create-platform.dto.ts @@ -5,7 +5,7 @@ export class CreatePlatformDto { name: string; @IsUrl({ - protocols: ['https'], + protocols: ['http', 'https'], require_protocol: true }) url: string; diff --git a/libs/common/src/lib/dtos/update-asset-profile.dto.ts b/libs/common/src/lib/dtos/update-asset-profile.dto.ts index 43f5aa617..a4981493e 100644 --- a/libs/common/src/lib/dtos/update-asset-profile.dto.ts +++ b/libs/common/src/lib/dtos/update-asset-profile.dto.ts @@ -64,7 +64,7 @@ export class UpdateAssetProfileDto { @IsOptional() @IsUrl({ - protocols: ['https'], + protocols: ['http', 'https'], require_protocol: true }) url?: string; diff --git a/libs/common/src/lib/dtos/update-platform.dto.ts b/libs/common/src/lib/dtos/update-platform.dto.ts index 4c4f907af..03ae94b21 100644 --- a/libs/common/src/lib/dtos/update-platform.dto.ts +++ b/libs/common/src/lib/dtos/update-platform.dto.ts @@ -8,7 +8,7 @@ export class UpdatePlatformDto { name: string; @IsUrl({ - protocols: ['https'], + protocols: ['http', 'https'], require_protocol: true }) url: string; diff --git a/libs/common/src/lib/dtos/update-property.dto.ts b/libs/common/src/lib/dtos/update-property.dto.ts index 77115759a..befb26ab2 100644 --- a/libs/common/src/lib/dtos/update-property.dto.ts +++ b/libs/common/src/lib/dtos/update-property.dto.ts @@ -3,5 +3,5 @@ import { IsOptional, IsString } from 'class-validator'; export class UpdatePropertyDto { @IsOptional() @IsString() - value: string; + value?: string; } diff --git a/libs/common/src/lib/dtos/update-user-setting.dto.ts b/libs/common/src/lib/dtos/update-user-setting.dto.ts index cf7dff7e8..d46982e70 100644 --- a/libs/common/src/lib/dtos/update-user-setting.dto.ts +++ b/libs/common/src/lib/dtos/update-user-setting.dto.ts @@ -58,23 +58,23 @@ export class UpdateUserSettingDto { @IsArray() @IsOptional() - 'filters.accounts'?: string[]; + 'filters.accounts'?: string[] | null; @IsArray() @IsOptional() - 'filters.assetClasses'?: string[]; + 'filters.assetClasses'?: string[] | null; @IsString() @IsOptional() - 'filters.dataSource'?: string; + 'filters.dataSource'?: string | null; @IsString() @IsOptional() - 'filters.symbol'?: string; + 'filters.symbol'?: string | null; @IsArray() @IsOptional() - 'filters.tags'?: string[]; + 'filters.tags'?: string[] | null; @IsIn(['CHART', 'TABLE'] as HoldingsViewMode[]) @IsOptional() @@ -96,13 +96,21 @@ export class UpdateUserSettingDto { @IsOptional() locale?: string; + /** + * The target financial amount the user aims to reach before retiring. + * Can be explicitly set to null to clear the value and calculate it dynamically. + */ @IsNumber() @IsOptional() - projectedTotalAmount?: number; + projectedTotalAmount?: number | null; + /** + * The target date when the user plans to retire. + * Can be explicitly set to null to clear the value and calculate it dynamically. + */ @IsISO8601() @IsOptional() - retirementDate?: string; + retirementDate?: string | null; @IsNumber() @IsOptional() diff --git a/libs/common/src/lib/helper.ts b/libs/common/src/lib/helper.ts index 4db1fcf2d..c5f6cbbb9 100644 --- a/libs/common/src/lib/helper.ts +++ b/libs/common/src/lib/helper.ts @@ -30,10 +30,17 @@ import { get, isNil, isString } from 'lodash'; import { DEFAULT_CURRENCY, DERIVED_CURRENCIES, + ghostfolioFearAndGreedIndexSymbol, + ghostfolioFearAndGreedIndexSymbolCryptocurrencies, + ghostfolioFearAndGreedIndexSymbolStocks, ghostfolioScraperApiSymbolPrefix, locale } from './config'; -import { AssetProfileIdentifier, Benchmark } from './interfaces'; +import { + AdminMarketDataItem, + AssetProfileIdentifier, + Benchmark +} from './interfaces'; import { BenchmarkTrend, ColorScheme } from './types'; export const DATE_FORMAT = 'yyyy-MM-dd'; @@ -93,6 +100,27 @@ export function calculateMovingAverage({ .toNumber(); } +export function canDeleteAssetProfile({ + activitiesCount, + isBenchmark, + symbol, + watchedByCount +}: Pick< + AdminMarketDataItem, + 'activitiesCount' | 'isBenchmark' | 'symbol' | 'watchedByCount' +>): boolean { + return ( + activitiesCount === 0 && + !isBenchmark && + !isDerivedCurrency(getCurrencyFromSymbol(symbol)) && + !isRootCurrency(getCurrencyFromSymbol(symbol)) && + symbol !== ghostfolioFearAndGreedIndexSymbol && + symbol !== ghostfolioFearAndGreedIndexSymbolCryptocurrencies && + symbol !== ghostfolioFearAndGreedIndexSymbolStocks && + watchedByCount === 0 + ); +} + export function capitalize(aString: string) { return aString.charAt(0).toUpperCase() + aString.slice(1).toLowerCase(); } @@ -187,7 +215,7 @@ export function getCurrencyFromSymbol(aSymbol = '') { return aSymbol.replace(DEFAULT_CURRENCY, ''); } -export function getDateFnsLocale(aLanguageCode: string) { +export function getDateFnsLocale(aLanguageCode?: string) { if (aLanguageCode === 'ca') { return ca; } else if (aLanguageCode === 'de') { @@ -342,20 +370,6 @@ export function getYesterday() { return subDays(new Date(Date.UTC(year, month, day)), 1); } -export function groupBy( - key: K, - arr: T[] -): Map { - const map = new Map(); - arr.forEach((t) => { - if (!map.has(t[key])) { - map.set(t[key], []); - } - map.get(t[key])!.push(t); - }); - return map; -} - export function interpolate(template: string, context: any) { return template?.replace(/[$]{([^}]+)}/g, (_, objectPath) => { const properties = objectPath.split('.'); diff --git a/libs/common/src/lib/interfaces/index.ts b/libs/common/src/lib/interfaces/index.ts index 396ce7f47..f21830684 100644 --- a/libs/common/src/lib/interfaces/index.ts +++ b/libs/common/src/lib/interfaces/index.ts @@ -44,6 +44,7 @@ import type { ActivityResponse } from './responses/activity-response.interface'; import type { AdminUserResponse } from './responses/admin-user-response.interface'; import type { AdminUsersResponse } from './responses/admin-users-response.interface'; import type { AiPromptResponse } from './responses/ai-prompt-response.interface'; +import type { AiServiceHealthResponse } from './responses/ai-service-health-response.interface'; import type { ApiKeyResponse } from './responses/api-key-response.interface'; import type { AssetResponse } from './responses/asset-response.interface'; import type { BenchmarkMarketDataDetailsResponse } from './responses/benchmark-market-data-details-response.interface'; @@ -90,7 +91,6 @@ import type { SubscriptionOffer } from './subscription-offer.interface'; import type { SymbolItem } from './symbol-item.interface'; import type { SymbolMetrics } from './symbol-metrics.interface'; import type { SystemMessage } from './system-message.interface'; -import type { TabConfiguration } from './tab-configuration.interface'; import type { ToggleOption } from './toggle-option.interface'; import type { UserItem } from './user-item.interface'; import type { UserSettings } from './user-settings.interface'; @@ -119,6 +119,7 @@ export { AdminUserResponse, AdminUsersResponse, AiPromptResponse, + AiServiceHealthResponse, ApiKeyResponse, AssertionCredentialJSON, AssetClassSelectorOption, @@ -186,7 +187,6 @@ export { SymbolItem, SymbolMetrics, SystemMessage, - TabConfiguration, ToggleOption, User, UserItem, diff --git a/libs/common/src/lib/interfaces/portfolio-position.interface.ts b/libs/common/src/lib/interfaces/portfolio-position.interface.ts index c4ef2e3dc..c94a1efa5 100644 --- a/libs/common/src/lib/interfaces/portfolio-position.interface.ts +++ b/libs/common/src/lib/interfaces/portfolio-position.interface.ts @@ -1,22 +1,12 @@ import { Market, MarketAdvanced } from '@ghostfolio/common/types'; -import { AssetClass, AssetSubClass, DataSource, Tag } from '@prisma/client'; +import { Tag } from '@prisma/client'; -import { Country } from './country.interface'; import { EnhancedSymbolProfile } from './enhanced-symbol-profile.interface'; -import { Holding } from './holding.interface'; -import { Sector } from './sector.interface'; export interface PortfolioPosition { activitiesCount: number; allocationInPercentage: number; - - /** @deprecated */ - assetClass?: AssetClass; - - /** @deprecated */ - assetClassLabel?: string; - assetProfile: Pick< EnhancedSymbolProfile, | 'assetClass' @@ -33,22 +23,6 @@ export interface PortfolioPosition { assetClassLabel?: string; assetSubClassLabel?: string; }; - - /** @deprecated */ - assetSubClass?: AssetSubClass; - - /** @deprecated */ - assetSubClassLabel?: string; - - /** @deprecated */ - countries: Country[]; - - /** @deprecated */ - currency: string; - - /** @deprecated */ - dataSource: DataSource; - dateOfFirstActivity: Date; dividend: number; exchange?: string; @@ -56,38 +30,19 @@ export interface PortfolioPosition { grossPerformancePercent: number; grossPerformancePercentWithCurrencyEffect: number; grossPerformanceWithCurrencyEffect: number; - - /** @deprecated */ - holdings: Holding[]; - investment: number; marketChange?: number; marketChangePercent?: number; marketPrice: number; markets?: { [key in Market]: number }; marketsAdvanced?: { [key in MarketAdvanced]: number }; - - /** @deprecated */ - name: string; - netPerformance: number; netPerformancePercent: number; netPerformancePercentWithCurrencyEffect: number; netPerformanceWithCurrencyEffect: number; quantity: number; - - /** @deprecated */ - sectors: Sector[]; - - /** @deprecated */ - symbol: string; - tags?: Tag[]; type?: string; - - /** @deprecated */ - url?: string; - valueInBaseCurrency?: number; valueInPercentage?: number; } diff --git a/libs/common/src/lib/interfaces/responses/ai-service-health-response.interface.ts b/libs/common/src/lib/interfaces/responses/ai-service-health-response.interface.ts new file mode 100644 index 000000000..58ffafafc --- /dev/null +++ b/libs/common/src/lib/interfaces/responses/ai-service-health-response.interface.ts @@ -0,0 +1,3 @@ +export interface AiServiceHealthResponse { + status: string; +} diff --git a/libs/common/src/lib/interfaces/responses/public-portfolio-response.interface.ts b/libs/common/src/lib/interfaces/responses/public-portfolio-response.interface.ts index eae14cec6..18c7dc57a 100644 --- a/libs/common/src/lib/interfaces/responses/public-portfolio-response.interface.ts +++ b/libs/common/src/lib/interfaces/responses/public-portfolio-response.interface.ts @@ -14,32 +14,10 @@ export interface PublicPortfolioResponse extends PublicPortfolioResponseV1 { [symbol: string]: Pick< PortfolioPosition, | 'allocationInPercentage' - - /** @deprecated */ - | 'assetClass' | 'assetProfile' - - /** @deprecated */ - | 'countries' - | 'currency' - - /** @deprecated */ - | 'dataSource' | 'dateOfFirstActivity' | 'markets' - - /** @deprecated */ - | 'name' | 'netPerformancePercentWithCurrencyEffect' - - /** @deprecated */ - | 'sectors' - - /** @deprecated */ - | 'symbol' - - /** @deprecated */ - | 'url' | 'valueInBaseCurrency' | 'valueInPercentage' >; diff --git a/libs/common/src/test-setup.ts b/libs/common/src/test-setup.ts new file mode 100644 index 000000000..75cf71ea5 --- /dev/null +++ b/libs/common/src/test-setup.ts @@ -0,0 +1,3 @@ +import { TextDecoder, TextEncoder } from 'node:util'; + +Object.assign(global, { TextDecoder, TextEncoder }); diff --git a/libs/ui/.storybook/main.mjs b/libs/ui/.storybook/main.mjs index e7d1378c7..28a7854e3 100644 --- a/libs/ui/.storybook/main.mjs +++ b/libs/ui/.storybook/main.mjs @@ -5,7 +5,10 @@ const require = createRequire(import.meta.url); /** @type {import('@storybook/angular').StorybookConfig} */ const config = { - addons: [getAbsolutePath('@storybook/addon-docs')], + addons: [ + getAbsolutePath('@storybook/addon-docs'), + getAbsolutePath('@storybook/addon-themes') + ], framework: { name: getAbsolutePath('@storybook/angular'), options: {} diff --git a/libs/ui/.storybook/preview.js b/libs/ui/.storybook/preview.js index e69de29bb..e8e2fe282 100644 --- a/libs/ui/.storybook/preview.js +++ b/libs/ui/.storybook/preview.js @@ -0,0 +1,20 @@ +import { withThemeByClassName } from '@storybook/addon-themes'; + +const preview = { + decorators: [ + withThemeByClassName({ + defaultTheme: 'Light', + parentSelector: 'body', + themes: { + Dark: 'theme-dark', + Light: 'theme-light' + } + }) + ] +}; + +if (typeof document !== 'undefined') { + document.body.classList.add('mat-typography'); +} + +export default preview; diff --git a/libs/ui/src/lib/accounts-table/accounts-table.component.html b/libs/ui/src/lib/accounts-table/accounts-table.component.html index 15f5bb21f..1ba0ecc56 100644 --- a/libs/ui/src/lib/accounts-table/accounts-table.component.html +++ b/libs/ui/src/lib/accounts-table/accounts-table.component.html @@ -340,15 +340,13 @@
    diff --git a/libs/ui/src/lib/accounts-table/accounts-table.component.ts b/libs/ui/src/lib/accounts-table/accounts-table.component.ts index aa104f795..1526ffea5 100644 --- a/libs/ui/src/lib/accounts-table/accounts-table.component.ts +++ b/libs/ui/src/lib/accounts-table/accounts-table.component.ts @@ -4,7 +4,6 @@ import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo'; import { NotificationService } from '@ghostfolio/ui/notifications'; import { GfValueComponent } from '@ghostfolio/ui/value'; -import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component, @@ -37,7 +36,6 @@ import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; @Component({ changeDetection: ChangeDetectionStrategy.OnPush, imports: [ - CommonModule, GfEntityLogoComponent, GfValueComponent, IonIcon, diff --git a/libs/ui/src/lib/activities-filter/activities-filter.component.html b/libs/ui/src/lib/activities-filter/activities-filter.component.html index d87ce16ce..b525e5133 100644 --- a/libs/ui/src/lib/activities-filter/activities-filter.component.html +++ b/libs/ui/src/lib/activities-filter/activities-filter.component.html @@ -1,7 +1,5 @@ - + @for (filter of selectedFilters; track filter) { - + @if (isLoading()) { + + } diff --git a/libs/ui/src/lib/activities-table/activities-table.component.html b/libs/ui/src/lib/activities-table/activities-table.component.html index 14089f061..ae5cf0384 100644 --- a/libs/ui/src/lib/activities-table/activities-table.component.html +++ b/libs/ui/src/lib/activities-table/activities-table.component.html @@ -516,9 +516,7 @@ @@ -536,10 +534,9 @@ } (null); public dateRangeOptions: DateRangeOption[] = []; public holdings: PortfolioPosition[] = []; + public isLoading = { accounts: false, assetProfiles: false, holdings: false, quickLinks: false }; + public isOpen = false; - public placeholder = $localize`Find account, holding or page...`; + public placeholder: string; + public portfolioFilterFormControl = new FormControl( { account: null, @@ -122,13 +125,16 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit { tag: null } ); + public searchFormControl = new FormControl(''); + public searchResults: SearchResults = { accounts: [], assetProfiles: [], holdings: [], quickLinks: [] }; + public tags: Filter[] = []; protected readonly closed = output(); @@ -458,7 +464,15 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit { holdings: true, quickLinks: true }; + this.keyManager = new FocusKeyManager(this.assistantListItems).withWrap(); + + this.placeholder = sample([ + $localize`Find an account...`, + $localize`Find a holding...`, + $localize`Jump to a page...` + ]); + this.searchResults = { accounts: [], assetProfiles: [], @@ -471,6 +485,7 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit { } this.searchFormControl.setValue(''); + setTimeout(() => { this.searchElement?.nativeElement?.focus(); }); @@ -481,6 +496,7 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit { holdings: false, quickLinks: false }; + this.setIsOpen(true); this.dataService @@ -488,11 +504,16 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit { .pipe(takeUntilDestroyed(this.destroyRef)) .subscribe(({ holdings }) => { this.holdings = holdings - .filter(({ assetSubClass }) => { - return assetSubClass && !['CASH'].includes(assetSubClass); + .filter(({ assetProfile }) => { + return ( + assetProfile.assetSubClass && + !['CASH'].includes(assetProfile.assetSubClass) + ); }) .sort((a, b) => { - return a.name?.localeCompare(b.name); + return (a.assetProfile.name ?? '').localeCompare( + b.assetProfile.name ?? '' + ); }); this.setPortfolioFilterFormValues(); @@ -514,11 +535,11 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit { type: 'ASSET_CLASS' }, { - id: filterValue?.holding?.dataSource ?? '', + id: filterValue?.holding?.assetProfile?.dataSource ?? '', type: 'DATA_SOURCE' }, { - id: filterValue?.holding?.symbol ?? '', + id: filterValue?.holding?.assetProfile?.symbol ?? '', type: 'SYMBOL' }, { @@ -702,18 +723,16 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit { return EMPTY; }), map(({ holdings }) => { - return holdings.map( - ({ assetSubClass, currency, dataSource, name, symbol }) => { - return { - currency, - dataSource, - name, - symbol, - assetSubClassString: translate(assetSubClass ?? ''), - mode: SearchMode.HOLDING as const - }; - } - ); + return holdings.map(({ assetProfile }) => { + return { + assetSubClassString: translate(assetProfile.assetSubClass ?? ''), + currency: assetProfile.currency ?? '', + dataSource: assetProfile.dataSource, + mode: SearchMode.HOLDING as const, + name: assetProfile.name ?? '', + symbol: assetProfile.symbol + }; + }); }), takeUntilDestroyed(this.destroyRef) ); @@ -761,8 +780,8 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit { return ( !!(dataSource && symbol) && getAssetProfileIdentifier({ - dataSource: holding.dataSource, - symbol: holding.symbol + dataSource: holding.assetProfile.dataSource, + symbol: holding.assetProfile.symbol }) === getAssetProfileIdentifier({ dataSource, symbol }) ); }); diff --git a/libs/ui/src/lib/benchmark/benchmark.component.html b/libs/ui/src/lib/benchmark/benchmark.component.html index 8820f2ec1..a950f0c44 100644 --- a/libs/ui/src/lib/benchmark/benchmark.component.html +++ b/libs/ui/src/lib/benchmark/benchmark.component.html @@ -7,11 +7,22 @@ matSortDirection="asc" [dataSource]="dataSource" > - - + + + + + + + + + Name - +
    {{ element?.name }}
    @@ -26,14 +37,14 @@ 50-Day Trend
    @@ -55,14 +66,14 @@ 200-Day Trend
    @@ -84,14 +95,14 @@ Last All Time High
    @@ -109,7 +120,7 @@ @@ -118,18 +129,18 @@ > from ATH - + @if (isNumber(element?.performances?.allTimeHigh?.performancePercent)) { } diff --git a/libs/ui/src/lib/benchmark/benchmark.component.ts b/libs/ui/src/lib/benchmark/benchmark.component.ts index 5dbc4648b..0b78ffa0d 100644 --- a/libs/ui/src/lib/benchmark/benchmark.component.ts +++ b/libs/ui/src/lib/benchmark/benchmark.component.ts @@ -11,7 +11,6 @@ import { } from '@ghostfolio/common/interfaces'; import { NotificationService } from '@ghostfolio/ui/notifications'; -import { CommonModule } from '@angular/common'; import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, @@ -37,6 +36,7 @@ import { ellipsisHorizontal, trashOutline } from 'ionicons/icons'; import { isNumber } from 'lodash'; import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; +import { GfEntityLogoComponent } from '../entity-logo/entity-logo.component'; import { translate } from '../i18n'; import { GfTrendIndicatorComponent } from '../trend-indicator/trend-indicator.component'; import { GfValueComponent } from '../value/value.component'; @@ -46,7 +46,7 @@ import { BenchmarkDetailDialogParams } from './benchmark-detail-dialog/interface @Component({ changeDetection: ChangeDetectionStrategy.OnPush, imports: [ - CommonModule, + GfEntityLogoComponent, GfTrendIndicatorComponent, GfValueComponent, IonIcon, @@ -67,6 +67,7 @@ export class GfBenchmarkComponent { public readonly deviceType = input.required(); public readonly hasPermissionToDeleteItem = input(); public readonly locale = input(getLocale()); + public readonly showIcon = input(false); public readonly showSymbol = input(true); public readonly user = input(); @@ -77,6 +78,7 @@ export class GfBenchmarkComponent { protected readonly dataSource = new MatTableDataSource([]); protected readonly displayedColumns = computed(() => { return [ + ...(this.showIcon() ? ['icon'] : []), 'name', ...(this.user()?.settings?.isExperimentalFeatures ? ['trend50d', 'trend200d'] diff --git a/libs/ui/src/lib/dialog-header/dialog-header.component.html b/libs/ui/src/lib/dialog-header/dialog-header.component.html index 019d85a52..ed9fc41f4 100644 --- a/libs/ui/src/lib/dialog-header/dialog-header.component.html +++ b/libs/ui/src/lib/dialog-header/dialog-header.component.html @@ -1,7 +1,7 @@
    {{ title }} @if (deviceType !== 'mobile') { diff --git a/libs/ui/src/lib/dialog-header/dialog-header.component.ts b/libs/ui/src/lib/dialog-header/dialog-header.component.ts index ce3173d0e..4868b22b8 100644 --- a/libs/ui/src/lib/dialog-header/dialog-header.component.ts +++ b/libs/ui/src/lib/dialog-header/dialog-header.component.ts @@ -1,4 +1,3 @@ -import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component, @@ -15,7 +14,7 @@ import { close } from 'ionicons/icons'; @Component({ changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'justify-content-center' }, - imports: [CommonModule, IonIcon, MatButtonModule, MatDialogModule], + imports: [IonIcon, MatButtonModule, MatDialogModule], selector: 'gf-dialog-header', styleUrls: ['./dialog-header.component.scss'], templateUrl: './dialog-header.component.html' diff --git a/libs/ui/src/lib/entity-logo/entity-logo.component.html b/libs/ui/src/lib/entity-logo/entity-logo.component.html index 942ea23e5..d8aeba136 100644 --- a/libs/ui/src/lib/entity-logo/entity-logo.component.html +++ b/libs/ui/src/lib/entity-logo/entity-logo.component.html @@ -1,7 +1,7 @@ @if (src) { diff --git a/libs/ui/src/lib/entity-logo/entity-logo.component.ts b/libs/ui/src/lib/entity-logo/entity-logo.component.ts index 212e232be..ba7d64ae0 100644 --- a/libs/ui/src/lib/entity-logo/entity-logo.component.ts +++ b/libs/ui/src/lib/entity-logo/entity-logo.component.ts @@ -1,6 +1,5 @@ import { EntityLogoImageSourceService } from '@ghostfolio/ui/entity-logo/entity-logo-image-source.service'; -import { CommonModule } from '@angular/common'; import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, @@ -12,7 +11,6 @@ import { DataSource } from '@prisma/client'; @Component({ changeDetection: ChangeDetectionStrategy.OnPush, - imports: [CommonModule], schemas: [CUSTOM_ELEMENTS_SCHEMA], selector: 'gf-entity-logo', styleUrls: ['./entity-logo.component.scss'], diff --git a/libs/ui/src/lib/fab/fab.component.html b/libs/ui/src/lib/fab/fab.component.html new file mode 100644 index 000000000..021bc5f79 --- /dev/null +++ b/libs/ui/src/lib/fab/fab.component.html @@ -0,0 +1,9 @@ + + + diff --git a/libs/ui/src/lib/fab/fab.component.scss b/libs/ui/src/lib/fab/fab.component.scss new file mode 100644 index 000000000..ab6353981 --- /dev/null +++ b/libs/ui/src/lib/fab/fab.component.scss @@ -0,0 +1,14 @@ +:host { + bottom: calc(constant(safe-area-inset-bottom) + 2rem); + bottom: calc(env(safe-area-inset-bottom) + 2rem); + position: fixed; + right: 2rem; + z-index: 999; +} + +:host-context(gf-page-tabs) { + @media (max-width: 575.98px) { + bottom: calc(constant(safe-area-inset-bottom) + 5rem); + bottom: calc(env(safe-area-inset-bottom) + 5rem); + } +} diff --git a/libs/ui/src/lib/fab/fab.component.ts b/libs/ui/src/lib/fab/fab.component.ts new file mode 100644 index 000000000..20972d5a6 --- /dev/null +++ b/libs/ui/src/lib/fab/fab.component.ts @@ -0,0 +1,21 @@ +import { ChangeDetectionStrategy, Component, input } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { Params, RouterModule } from '@angular/router'; +import { IonIcon } from '@ionic/angular/standalone'; +import { addIcons } from 'ionicons'; +import { addOutline } from 'ionicons/icons'; + +@Component({ + changeDetection: ChangeDetectionStrategy.OnPush, + imports: [IonIcon, MatButtonModule, RouterModule], + selector: 'gf-fab', + styleUrls: ['./fab.component.scss'], + templateUrl: './fab.component.html' +}) +export class GfFabComponent { + public readonly queryParams = input.required(); + + public constructor() { + addIcons({ addOutline }); + } +} diff --git a/libs/ui/src/lib/fab/index.ts b/libs/ui/src/lib/fab/index.ts new file mode 100644 index 000000000..d03295245 --- /dev/null +++ b/libs/ui/src/lib/fab/index.ts @@ -0,0 +1 @@ +export * from './fab.component'; diff --git a/libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html b/libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html index 91e3dd8d7..065e62de1 100644 --- a/libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html +++ b/libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html @@ -6,14 +6,16 @@ @for (day of days; track day) {
    - + Name
    - {{ element.name }} - @if (element.name === element.symbol) { - ({{ element.assetSubClassLabel }}) + {{ element.assetProfile.name }} + @if (element.assetProfile.name === element.assetProfile.symbol) { + ({{ element.assetProfile.assetSubClassLabel }}) }
    - {{ element.symbol }} + {{ element.assetProfile.symbol }}
    @@ -185,15 +190,15 @@ (click)=" canShowDetails(row) && onOpenHoldingDialog({ - dataSource: row.dataSource, - symbol: row.symbol + dataSource: row.assetProfile.dataSource, + symbol: row.assetProfile.symbol }) " >
    - + @if (isLoading()) { + > @if (showLabel) { {{ label ?? 'Ghostfolio' }} } diff --git a/libs/ui/src/lib/logo/logo.component.ts b/libs/ui/src/lib/logo/logo.component.ts index 0b766429c..a5f6a58e4 100644 --- a/libs/ui/src/lib/logo/logo.component.ts +++ b/libs/ui/src/lib/logo/logo.component.ts @@ -1,4 +1,3 @@ -import { CommonModule } from '@angular/common'; import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, @@ -9,7 +8,6 @@ import { @Component({ changeDetection: ChangeDetectionStrategy.OnPush, - imports: [CommonModule], schemas: [CUSTOM_ELEMENTS_SCHEMA], selector: 'gf-logo', styleUrls: ['./logo.component.scss'], diff --git a/libs/ui/src/lib/membership-card/membership-card.component.html b/libs/ui/src/lib/membership-card/membership-card.component.html index 9faac0d3d..ab014901b 100644 --- a/libs/ui/src/lib/membership-card/membership-card.component.html +++ b/libs/ui/src/lib/membership-card/membership-card.component.html @@ -1,5 +1,5 @@
    -
    + diff --git a/libs/ui/src/lib/membership-card/membership-card.component.ts b/libs/ui/src/lib/membership-card/membership-card.component.ts index be223758d..96260ae6f 100644 --- a/libs/ui/src/lib/membership-card/membership-card.component.ts +++ b/libs/ui/src/lib/membership-card/membership-card.component.ts @@ -1,6 +1,5 @@ import { publicRoutes } from '@ghostfolio/common/routes/routes'; -import { CommonModule } from '@angular/common'; import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, @@ -19,13 +18,7 @@ import { GfLogoComponent } from '../logo'; @Component({ changeDetection: ChangeDetectionStrategy.OnPush, - imports: [ - CommonModule, - GfLogoComponent, - IonIcon, - MatButtonModule, - RouterModule - ], + imports: [GfLogoComponent, IonIcon, MatButtonModule, RouterModule], schemas: [CUSTOM_ELEMENTS_SCHEMA], selector: 'gf-membership-card', styleUrls: ['./membership-card.component.scss'], diff --git a/libs/ui/src/lib/mocks/holdings.ts b/libs/ui/src/lib/mocks/holdings.ts index b32eb527a..11f3bec0e 100644 --- a/libs/ui/src/lib/mocks/holdings.ts +++ b/libs/ui/src/lib/mocks/holdings.ts @@ -4,11 +4,11 @@ export const holdings: PortfolioPosition[] = [ { activitiesCount: 1, allocationInPercentage: 0.042990776363386086, - assetClass: 'EQUITY', - assetClassLabel: 'Equity', assetProfile: { assetClass: 'EQUITY', + assetClassLabel: 'Equity', assetSubClass: 'STOCK', + assetSubClassLabel: 'Stock', countries: [ { code: 'US', @@ -20,60 +20,40 @@ export const holdings: PortfolioPosition[] = [ currency: 'USD', dataSource: 'YAHOO', holdings: [], + name: 'Apple Inc', sectors: [ { name: 'Technology', weight: 1 } ], - symbol: 'AAPL' + symbol: 'AAPL', + url: 'https://www.apple.com' }, - assetSubClass: 'STOCK', - assetSubClassLabel: 'Stock', - countries: [ - { - code: 'US', - continent: 'North America', - name: 'United States', - weight: 1 - } - ], - currency: 'USD', - dataSource: 'YAHOO', dateOfFirstActivity: new Date('2021-12-01T00:00:00.000Z'), dividend: 0, grossPerformance: 3856, grossPerformancePercent: 0.46047289228564603, grossPerformancePercentWithCurrencyEffect: 0.46047289228564603, grossPerformanceWithCurrencyEffect: 3856, - holdings: [], investment: 8374, marketPrice: 244.6, - name: 'Apple Inc', netPerformance: 3855, netPerformancePercent: 0.460353475041796, netPerformancePercentWithCurrencyEffect: 0.036440677966101696, netPerformanceWithCurrencyEffect: 430, quantity: 50, - sectors: [ - { - name: 'Technology', - weight: 1 - } - ], - symbol: 'AAPL', tags: [], - url: 'https://www.apple.com', valueInBaseCurrency: 12230 }, { activitiesCount: 2, allocationInPercentage: 0.02377401948293552, - assetClass: 'EQUITY', - assetClassLabel: 'Equity', assetProfile: { assetClass: 'EQUITY', + assetClassLabel: 'Equity', assetSubClass: 'STOCK', + assetSubClassLabel: 'Stock', countries: [ { code: 'DE', @@ -85,60 +65,40 @@ export const holdings: PortfolioPosition[] = [ currency: 'EUR', dataSource: 'YAHOO', holdings: [], + name: 'Allianz SE', sectors: [ { name: 'Financial Services', weight: 1 } ], - symbol: 'ALV.DE' + symbol: 'ALV.DE', + url: 'https://www.allianz.com' }, - assetSubClass: 'STOCK', - assetSubClassLabel: 'Stock', - countries: [ - { - code: 'DE', - continent: 'Europe', - name: 'Germany', - weight: 1 - } - ], - currency: 'EUR', - dataSource: 'YAHOO', dateOfFirstActivity: new Date('2021-04-23T00:00:00.000Z'), dividend: 192, grossPerformance: 2226.700251889169, grossPerformancePercent: 0.49083842309827874, grossPerformancePercentWithCurrencyEffect: 0.29306136948826367, grossPerformanceWithCurrencyEffect: 1532.8272791336772, - holdings: [], investment: 4536.523929471033, marketPrice: 322.2, - name: 'Allianz SE', netPerformance: 2222.2921914357685, netPerformancePercent: 0.48986674069961134, netPerformancePercentWithCurrencyEffect: 0.034489367670592026, netPerformanceWithCurrencyEffect: 225.48257403052068, quantity: 20, - sectors: [ - { - name: 'Financial Services', - weight: 1 - } - ], - symbol: 'ALV.DE', tags: [], - url: 'https://www.allianz.com', valueInBaseCurrency: 6763.224181360202 }, { activitiesCount: 1, allocationInPercentage: 0.08038536990007467, - assetClass: 'EQUITY', - assetClassLabel: 'Equity', assetProfile: { assetClass: 'EQUITY', + assetClassLabel: 'Equity', assetSubClass: 'STOCK', + assetSubClassLabel: 'Stock', countries: [ { code: 'US', @@ -150,101 +110,73 @@ export const holdings: PortfolioPosition[] = [ currency: 'USD', dataSource: 'YAHOO', holdings: [], + name: 'Amazon.com, Inc.', sectors: [ { name: 'Consumer Discretionary', weight: 1 } ], - symbol: 'AMZN' + symbol: 'AMZN', + url: 'https://www.aboutamazon.com' }, - assetSubClass: 'STOCK', - assetSubClassLabel: 'Stock', - countries: [ - { - code: 'US', - continent: 'North America', - name: 'United States', - weight: 1 - } - ], - currency: 'USD', - dataSource: 'YAHOO', dateOfFirstActivity: new Date('2018-10-01T00:00:00.000Z'), dividend: 0, grossPerformance: 12758.05, grossPerformancePercent: 1.2619300787837724, grossPerformancePercentWithCurrencyEffect: 1.2619300787837724, grossPerformanceWithCurrencyEffect: 12758.05, - holdings: [], investment: 10109.95, marketPrice: 228.68, - name: 'Amazon.com, Inc.', netPerformance: 12677.26, netPerformancePercent: 1.253938941339967, netPerformancePercentWithCurrencyEffect: -0.037866008722316276, netPerformanceWithCurrencyEffect: -899.99926757812, quantity: 100, - sectors: [ - { - name: 'Consumer Discretionary', - weight: 1 - } - ], - symbol: 'AMZN', tags: [], - url: 'https://www.aboutamazon.com', valueInBaseCurrency: 22868 }, { activitiesCount: 1, allocationInPercentage: 0.19216416482928922, - assetClass: 'LIQUIDITY', - assetClassLabel: 'Liquidity', assetProfile: { assetClass: 'LIQUIDITY', - assetSubClass: 'CASH', + assetClassLabel: 'Liquidity', + assetSubClass: 'CRYPTOCURRENCY', + assetSubClassLabel: 'Cryptocurrency', countries: [], currency: 'USD', dataSource: 'COINGECKO', holdings: [], + name: 'Bitcoin', sectors: [], - symbol: 'bitcoin' + symbol: 'bitcoin', + url: undefined }, - assetSubClass: 'CRYPTOCURRENCY', - assetSubClassLabel: 'Cryptocurrency', - countries: [], - currency: 'USD', - dataSource: 'COINGECKO', dateOfFirstActivity: new Date('2017-08-16T00:00:00.000Z'), dividend: 0, grossPerformance: 52666.7898248, grossPerformancePercent: 26.333394912400003, grossPerformancePercentWithCurrencyEffect: 26.333394912400003, grossPerformanceWithCurrencyEffect: 52666.7898248, - holdings: [], investment: 1999.9999999999998, marketPrice: 97364, - name: 'Bitcoin', netPerformance: 52636.8898248, netPerformancePercent: 26.3184449124, netPerformancePercentWithCurrencyEffect: -0.04760906442310894, netPerformanceWithCurrencyEffect: -2732.737808972287, quantity: 0.5614682, - sectors: [], - symbol: 'bitcoin', tags: [], - url: undefined, valueInBaseCurrency: 54666.7898248 }, { activitiesCount: 1, allocationInPercentage: 0.04307127421937313, - assetClass: 'EQUITY', - assetClassLabel: 'Equity', assetProfile: { assetClass: 'EQUITY', + assetClassLabel: 'Equity', assetSubClass: 'STOCK', + assetSubClassLabel: 'Stock', countries: [ { code: 'US', @@ -256,60 +188,40 @@ export const holdings: PortfolioPosition[] = [ currency: 'USD', dataSource: 'YAHOO', holdings: [], + name: 'Microsoft Corporation', sectors: [ { name: 'Technology', weight: 1 } ], - symbol: 'MSFT' + symbol: 'MSFT', + url: 'https://www.microsoft.com' }, - assetSubClass: 'STOCK', - assetSubClassLabel: 'Stock', - countries: [ - { - code: 'US', - continent: 'North America', - name: 'United States', - weight: 1 - } - ], - currency: 'USD', - dataSource: 'YAHOO', dateOfFirstActivity: new Date('2023-01-03T00:00:00.000Z'), dividend: 0, grossPerformance: 5065.5, grossPerformancePercent: 0.7047750229568411, grossPerformancePercentWithCurrencyEffect: 0.7047750229568411, grossPerformanceWithCurrencyEffect: 5065.5, - holdings: [], investment: 7187.4, marketPrice: 408.43, - name: 'Microsoft Corporation', netPerformance: 5065.5, netPerformancePercent: 0.7047750229568411, netPerformancePercentWithCurrencyEffect: -0.015973588391056275, netPerformanceWithCurrencyEffect: -198.899926757814, quantity: 30, - sectors: [ - { - name: 'Technology', - weight: 1 - } - ], - symbol: 'MSFT', tags: [], - url: 'https://www.microsoft.com', valueInBaseCurrency: 12252.9 }, { activitiesCount: 1, allocationInPercentage: 0.18762679306394897, - assetClass: 'EQUITY', - assetClassLabel: 'Equity', assetProfile: { assetClass: 'EQUITY', + assetClassLabel: 'Equity', assetSubClass: 'STOCK', + assetSubClassLabel: 'Stock', countries: [ { code: 'US', @@ -321,60 +233,40 @@ export const holdings: PortfolioPosition[] = [ currency: 'USD', dataSource: 'YAHOO', holdings: [], + name: 'Tesla, Inc.', sectors: [ { name: 'Consumer Discretionary', weight: 1 } ], - symbol: 'TSLA' + symbol: 'TSLA', + url: 'https://www.tesla.com' }, - assetSubClass: 'STOCK', - assetSubClassLabel: 'Stock', - countries: [ - { - code: 'US', - continent: 'North America', - name: 'United States', - weight: 1 - } - ], - currency: 'USD', - dataSource: 'YAHOO', dateOfFirstActivity: new Date('2017-01-03T00:00:00.000Z'), dividend: 0, grossPerformance: 51227.500000005, grossPerformancePercent: 23.843379101756675, grossPerformancePercentWithCurrencyEffect: 23.843379101756675, grossPerformanceWithCurrencyEffect: 51227.500000005, - holdings: [], investment: 2148.499999995, marketPrice: 355.84, - name: 'Tesla, Inc.', netPerformance: 51197.500000005, netPerformancePercent: 23.829415871596066, netPerformancePercentWithCurrencyEffect: -0.12051410125545206, netPerformanceWithCurrencyEffect: -7314.00091552734, quantity: 150, - sectors: [ - { - name: 'Consumer Discretionary', - weight: 1 - } - ], - symbol: 'TSLA', tags: [], - url: 'https://www.tesla.com', valueInBaseCurrency: 53376 }, { activitiesCount: 5, allocationInPercentage: 0.053051250766657634, - assetClass: 'EQUITY', - assetClassLabel: 'Equity', assetProfile: { assetClass: 'EQUITY', + assetClassLabel: 'Equity', assetSubClass: 'ETF', + assetSubClassLabel: 'ETF', countries: [ { code: 'US', @@ -386,50 +278,30 @@ export const holdings: PortfolioPosition[] = [ currency: 'USD', dataSource: 'YAHOO', holdings: [], + name: 'Vanguard Total Stock Market Index Fund ETF Shares', sectors: [ { name: 'Equity', weight: 1 } ], - symbol: 'VTI' + symbol: 'VTI', + url: 'https://www.vanguard.com' }, - assetSubClass: 'ETF', - assetSubClassLabel: 'ETF', - countries: [ - { - code: 'US', - weight: 1, - continent: 'North America', - name: 'United States' - } - ], - currency: 'USD', - dataSource: 'YAHOO', dateOfFirstActivity: new Date('2019-03-01T00:00:00.000Z'), dividend: 0, grossPerformance: 6845.8, grossPerformancePercent: 1.0164758094605268, grossPerformancePercentWithCurrencyEffect: 1.0164758094605268, grossPerformanceWithCurrencyEffect: 6845.8, - holdings: [], investment: 8246.2, marketPrice: 301.84, - name: 'Vanguard Total Stock Market Index Fund ETF Shares', netPerformance: 6746.3, netPerformancePercent: 1.0017018833976383, netPerformancePercentWithCurrencyEffect: 0.01085061564051406, netPerformanceWithCurrencyEffect: 161.99969482422, quantity: 50, - sectors: [ - { - name: 'Equity', - weight: 1 - } - ], - symbol: 'VTI', tags: [], - url: 'https://www.vanguard.com', valueInBaseCurrency: 15092 } ]; diff --git a/libs/ui/src/lib/page-tabs/index.ts b/libs/ui/src/lib/page-tabs/index.ts new file mode 100644 index 000000000..a7b3468fd --- /dev/null +++ b/libs/ui/src/lib/page-tabs/index.ts @@ -0,0 +1,2 @@ +export * from './interfaces/interfaces'; +export * from './page-tabs.component'; diff --git a/libs/common/src/lib/interfaces/tab-configuration.interface.ts b/libs/ui/src/lib/page-tabs/interfaces/interfaces.ts similarity index 100% rename from libs/common/src/lib/interfaces/tab-configuration.interface.ts rename to libs/ui/src/lib/page-tabs/interfaces/interfaces.ts diff --git a/libs/ui/src/lib/page-tabs/page-tabs.component.html b/libs/ui/src/lib/page-tabs/page-tabs.component.html new file mode 100644 index 000000000..fa9af9b11 --- /dev/null +++ b/libs/ui/src/lib/page-tabs/page-tabs.component.html @@ -0,0 +1,30 @@ + + + + + diff --git a/libs/ui/src/lib/page-tabs/page-tabs.component.scss b/libs/ui/src/lib/page-tabs/page-tabs.component.scss new file mode 100644 index 000000000..0b377e57a --- /dev/null +++ b/libs/ui/src/lib/page-tabs/page-tabs.component.scss @@ -0,0 +1,68 @@ +@use '@angular/material' as mat; + +:host { + display: flex; + flex-direction: column; + height: 100%; + width: 100%; + + @include mat.tabs-overrides( + ( + active-indicator-height: 0, + divider-height: 0, + label-text-tracking: normal + ) + ); + + ::ng-deep { + .mat-mdc-tab-nav-panel { + padding: 2rem 0; + + @media (max-width: 575.98px) { + padding: 1rem 0; + } + } + } + + @media (max-width: 575.98px) { + @include mat.tabs-overrides( + ( + container-height: 3rem + ) + ); + } + + @media (min-width: 576px) { + flex-direction: row-reverse; + + @include mat.tabs-overrides( + ( + container-height: 2rem + ) + ); + + ::ng-deep { + .mat-mdc-tab-header { + background-color: rgba(var(--palette-foreground-base), 0.02); + padding: 2rem 0; + width: 14rem; + + .mat-mdc-tab-links { + flex-direction: column; + + .mat-mdc-tab-link { + justify-content: flex-start; + } + } + } + } + } +} + +:host-context(.theme-dark) { + @media (min-width: 576px) { + .mat-mdc-tab-header { + background-color: rgba(var(--palette-foreground-base-dark), 0.02); + } + } +} diff --git a/libs/ui/src/lib/page-tabs/page-tabs.component.ts b/libs/ui/src/lib/page-tabs/page-tabs.component.ts new file mode 100644 index 000000000..61c2caf05 --- /dev/null +++ b/libs/ui/src/lib/page-tabs/page-tabs.component.ts @@ -0,0 +1,30 @@ +import { + ChangeDetectionStrategy, + Component, + inject, + input +} from '@angular/core'; +import { MatTabsModule } from '@angular/material/tabs'; +import { RouterModule } from '@angular/router'; +import { IonIcon } from '@ionic/angular/standalone'; +import { DeviceDetectorService } from 'ngx-device-detector'; + +import { TabConfiguration } from './interfaces/interfaces'; + +@Component({ + changeDetection: ChangeDetectionStrategy.OnPush, + imports: [IonIcon, MatTabsModule, RouterModule], + selector: 'gf-page-tabs', + styleUrls: ['./page-tabs.component.scss'], + templateUrl: './page-tabs.component.html' +}) +export class GfPageTabsComponent { + public deviceType: string; + public readonly tabs = input.required(); + + private readonly deviceService = inject(DeviceDetectorService); + + public constructor() { + this.deviceType = this.deviceService.getDeviceInfo().deviceType; + } +} diff --git a/libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html b/libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html index f5dbac698..33bde3fd6 100644 --- a/libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html +++ b/libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.html @@ -29,18 +29,19 @@ [compareWith]="holdingComparisonFunction" > {{ - filterForm.get('holding')?.value?.name + filterForm.get('holding')?.value?.assetProfile?.name }} - @for (holding of holdings(); track holding.name) { + @for (holding of holdings(); track holding.assetProfile.name) {
    {{ holding.name }}{{ holding.assetProfile.name }}
    {{ holding.symbol | gfSymbol }} · {{ holding.currency }}{{ holding.assetProfile.symbol | gfSymbol }} · + {{ holding.assetProfile.currency }}
    diff --git a/libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.ts b/libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.ts index c1f82315c..20e8b0f0f 100644 --- a/libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.ts +++ b/libs/ui/src/lib/portfolio-filter-form/portfolio-filter-form.component.ts @@ -109,7 +109,8 @@ export class GfPortfolioFilterFormComponent } return ( - getAssetProfileIdentifier(option) === getAssetProfileIdentifier(value) + getAssetProfileIdentifier(option.assetProfile) === + getAssetProfileIdentifier(value.assetProfile) ); } diff --git a/libs/ui/src/lib/services/data.service.ts b/libs/ui/src/lib/services/data.service.ts index 7f2dac0b1..2ae07708d 100644 --- a/libs/ui/src/lib/services/data.service.ts +++ b/libs/ui/src/lib/services/data.service.ts @@ -556,13 +556,11 @@ export class DataService { map((response) => { if (response.holdings) { for (const symbol of Object.keys(response.holdings)) { - response.holdings[symbol].assetClassLabel = translate( - response.holdings[symbol].assetClass - ); + response.holdings[symbol].assetProfile.assetClassLabel = + translate(response.holdings[symbol].assetProfile.assetClass); - response.holdings[symbol].assetSubClassLabel = translate( - response.holdings[symbol].assetSubClass - ); + response.holdings[symbol].assetProfile.assetSubClassLabel = + translate(response.holdings[symbol].assetProfile.assetSubClass); response.holdings[symbol].dateOfFirstActivity = response.holdings[ symbol @@ -610,13 +608,11 @@ export class DataService { map((response) => { if (response.holdings) { for (const symbol of Object.keys(response.holdings)) { - response.holdings[symbol].assetClassLabel = translate( - response.holdings[symbol].assetClass - ); + response.holdings[symbol].assetProfile.assetClassLabel = + translate(response.holdings[symbol].assetProfile.assetClass); - response.holdings[symbol].assetSubClassLabel = translate( - response.holdings[symbol].assetSubClass - ); + response.holdings[symbol].assetProfile.assetSubClassLabel = + translate(response.holdings[symbol].assetProfile.assetSubClass); response.holdings[symbol].dateOfFirstActivity = response.holdings[ symbol @@ -699,6 +695,12 @@ export class DataService { map((response) => { if (response.holdings) { for (const symbol of Object.keys(response.holdings)) { + response.holdings[symbol].assetProfile.assetClassLabel = + translate(response.holdings[symbol].assetProfile.assetClass); + + response.holdings[symbol].assetProfile.assetSubClassLabel = + translate(response.holdings[symbol].assetProfile.assetSubClass); + response.holdings[symbol].valueInBaseCurrency = isNumber( response.holdings[symbol].valueInBaseCurrency ) diff --git a/libs/ui/src/lib/toggle/toggle.component.html b/libs/ui/src/lib/toggle/toggle.component.html index d6271ef58..3fe7d00ba 100644 --- a/libs/ui/src/lib/toggle/toggle.component.html +++ b/libs/ui/src/lib/toggle/toggle.component.html @@ -6,12 +6,12 @@ @for (option of options(); track option) { {{ option.label }} diff --git a/libs/ui/src/lib/toggle/toggle.component.ts b/libs/ui/src/lib/toggle/toggle.component.ts index db7c45487..9324b3be7 100644 --- a/libs/ui/src/lib/toggle/toggle.component.ts +++ b/libs/ui/src/lib/toggle/toggle.component.ts @@ -1,6 +1,5 @@ import { ToggleOption } from '@ghostfolio/common/interfaces'; -import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component, @@ -13,7 +12,7 @@ import { MatRadioModule } from '@angular/material/radio'; @Component({ changeDetection: ChangeDetectionStrategy.OnPush, - imports: [CommonModule, MatRadioModule, ReactiveFormsModule], + imports: [MatRadioModule, ReactiveFormsModule], selector: 'gf-toggle', styleUrls: ['./toggle.component.scss'], templateUrl: './toggle.component.html' diff --git a/libs/ui/src/lib/top-holdings/top-holdings.component.html b/libs/ui/src/lib/top-holdings/top-holdings.component.html index 6ff4ecf5b..1f9418230 100644 --- a/libs/ui/src/lib/top-holdings/top-holdings.component.html +++ b/libs/ui/src/lib/top-holdings/top-holdings.component.html @@ -120,8 +120,13 @@ 0, expanded: element.expand ?? false }" @@ -150,12 +155,12 @@ *matRowDef="let row; columns: ['expandedDetail']" class="holding-detail" mat-row - [ngClass]="{ 'd-none': !row.parents?.length }" + [class.d-none]="!row.parents?.length" >
    - + @if (isLoading) { { const allocationInPercentage = `${(raw._data.allocationInPercentage * 100).toFixed(2)}%`; - const name = raw._data.name; + const name = raw._data.assetProfile.name; + const sign = raw._data.netPerformancePercentWithCurrencyEffect > 0 ? '+' : ''; - const symbol = raw._data.symbol; + + const symbol = raw._data.assetProfile.symbol; const netPerformanceInPercentageWithSign = `${sign}${(raw._data.netPerformancePercentWithCurrencyEffect * 100).toFixed(2)}%`; diff --git a/libs/ui/src/lib/trend-indicator/trend-indicator.component.html b/libs/ui/src/lib/trend-indicator/trend-indicator.component.html index b9f65a2ea..7cf6210f8 100644 --- a/libs/ui/src/lib/trend-indicator/trend-indicator.component.html +++ b/libs/ui/src/lib/trend-indicator/trend-indicator.component.html @@ -16,7 +16,7 @@ } @else if (value > -0.0005 && value < 0.0005) { @@ -29,7 +29,7 @@ } diff --git a/libs/ui/src/lib/value/value.component.html b/libs/ui/src/lib/value/value.component.html index c4d6532a7..d5476f42d 100644 --- a/libs/ui/src/lib/value/value.component.html +++ b/libs/ui/src/lib/value/value.component.html @@ -27,7 +27,7 @@ @if (value || value === 0 || value === null) {
    @if (isNumber || value === null) { @if (colorizeSign && !useAbsoluteValue) { @@ -38,54 +38,30 @@
    -
    } } - @if (isPercent) { -
    - @if (value === null) { - *****% - } @else { - {{ formattedValue }}% - } -
    - } @else { -
    - @if (value === null) { - ***** - } @else { - {{ formattedValue }} - } -
    - } - @if (unit) { - @if (size === 'medium') { - - {{ unit }} - +
    + @if (value === null) { + ***** } @else { -
    - {{ unit }} -
    + {{ formattedValue }} } +
    + @if (isPercent || unit) { +
    + {{ isPercent ? '%' : unit }} +
    } } @if (isString) {
    {{ formattedValue }}
    diff --git a/package-lock.json b/package-lock.json index 0e2e26a85..e7b5a2bca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ghostfolio", - "version": "2.255.0", + "version": "3.7.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ghostfolio", - "version": "2.255.0", + "version": "3.7.0", "hasInstallScript": true, "license": "AGPL-3.0", "dependencies": { @@ -21,30 +21,31 @@ "@angular/platform-browser-dynamic": "21.2.7", "@angular/router": "21.2.7", "@angular/service-worker": "21.2.7", - "@bull-board/api": "6.20.3", - "@bull-board/express": "6.20.3", - "@bull-board/nestjs": "6.20.3", + "@bull-board/api": "7.1.5", + "@bull-board/express": "7.1.5", + "@bull-board/nestjs": "7.1.5", "@codewithdan/observable-store": "2.2.15", "@date-fns/utc": "2.1.1", - "@internationalized/number": "3.6.5", - "@ionic/angular": "8.8.1", - "@keyv/redis": "4.4.0", + "@internationalized/number": "3.6.6", + "@ionic/angular": "8.8.5", + "@keyv/redis": "5.1.6", "@nestjs/bull": "11.0.4", - "@nestjs/cache-manager": "3.1.0", - "@nestjs/common": "11.1.14", - "@nestjs/config": "4.0.3", - "@nestjs/core": "11.1.14", - "@nestjs/event-emitter": "3.0.1", + "@nestjs/cache-manager": "3.1.2", + "@nestjs/common": "11.1.21", + "@nestjs/config": "4.0.4", + "@nestjs/core": "11.1.21", + "@nestjs/event-emitter": "3.1.0", "@nestjs/jwt": "11.0.2", "@nestjs/passport": "11.0.5", - "@nestjs/platform-express": "11.1.14", - "@nestjs/schedule": "6.1.1", - "@nestjs/serve-static": "5.0.4", - "@openrouter/ai-sdk-provider": "0.7.2", - "@prisma/client": "6.19.3", + "@nestjs/platform-express": "11.1.21", + "@nestjs/schedule": "6.1.3", + "@nestjs/serve-static": "5.0.5", + "@openrouter/ai-sdk-provider": "2.9.0", + "@prisma/adapter-pg": "7.8.0", + "@prisma/client": "7.8.0", "@simplewebauthn/browser": "13.2.2", "@simplewebauthn/server": "13.2.2", - "ai": "4.3.16", + "ai": "6.0.174", "alphavantage": "2.2.0", "big.js": "7.0.1", "bootstrap": "4.6.2", @@ -59,29 +60,29 @@ "class-validator": "0.15.1", "color": "5.0.3", "cookie-parser": "1.4.7", - "countries-and-timezones": "3.8.0", + "countries-and-timezones": "3.9.0", "countries-list": "3.3.0", - "countup.js": "2.9.0", + "countup.js": "2.10.0", "date-fns": "4.1.0", "dotenv": "17.2.3", "dotenv-expand": "12.0.3", "envalid": "8.1.1", "fast-redact": "3.5.0", - "fuse.js": "7.1.0", + "fuse.js": "7.3.0", "google-spreadsheet": "3.2.0", "helmet": "7.0.0", "http-status-codes": "2.3.0", "ionicons": "8.0.13", - "jsonpath": "1.2.1", + "jsonpath": "1.3.0", "lodash": "4.18.1", "marked": "17.0.2", "ms": "3.0.0-canary.1", "ng-extract-i18n-merge": "3.3.0", "ngx-device-detector": "11.0.0", - "ngx-markdown": "21.1.0", + "ngx-markdown": "21.2.0", "ngx-skeleton-loader": "12.0.0", "open-color": "1.9.1", - "papaparse": "5.3.1", + "papaparse": "5.5.3", "passport": "0.7.0", "passport-google-oauth20": "2.0.0", "passport-headerapikey": "1.2.2", @@ -89,11 +90,12 @@ "passport-openidconnect": "0.1.2", "reflect-metadata": "0.2.2", "rxjs": "7.8.1", - "stripe": "20.4.1", + "stripe": "21.0.1", "svgmap": "2.19.3", "tablemark": "4.1.0", "twitter-api-v2": "1.29.0", - "yahoo-finance2": "3.14.0", + "undici": "7.24.4", + "yahoo-finance2": "3.14.2", "zone.js": "0.16.1" }, "devDependencies": { @@ -110,20 +112,21 @@ "@angular/pwa": "21.2.6", "@eslint/eslintrc": "3.3.1", "@eslint/js": "9.35.0", - "@nestjs/schematics": "11.0.9", - "@nestjs/testing": "11.1.14", - "@nx/angular": "22.6.4", - "@nx/eslint-plugin": "22.6.4", - "@nx/jest": "22.6.4", - "@nx/js": "22.6.4", - "@nx/module-federation": "22.6.4", - "@nx/nest": "22.6.4", - "@nx/node": "22.6.4", - "@nx/storybook": "22.6.4", - "@nx/web": "22.6.4", - "@nx/workspace": "22.6.4", + "@nestjs/schematics": "11.1.0", + "@nestjs/testing": "11.1.21", + "@nx/angular": "22.7.5", + "@nx/eslint-plugin": "22.7.5", + "@nx/jest": "22.7.5", + "@nx/js": "22.7.5", + "@nx/module-federation": "22.7.5", + "@nx/nest": "22.7.5", + "@nx/node": "22.7.5", + "@nx/storybook": "22.7.5", + "@nx/web": "22.7.5", + "@nx/workspace": "22.7.5", "@schematics/angular": "21.2.6", "@storybook/addon-docs": "10.1.10", + "@storybook/addon-themes": "10.1.10", "@storybook/angular": "10.1.10", "@trivago/prettier-plugin-sort-imports": "6.0.2", "@types/big.js": "6.2.2", @@ -134,7 +137,7 @@ "@types/jsonpath": "0.2.4", "@types/lodash": "4.17.24", "@types/node": "22.15.17", - "@types/papaparse": "5.3.7", + "@types/papaparse": "5.5.2", "@types/passport-google-oauth20": "2.0.17", "@types/passport-openidconnect": "0.1.3", "@typescript-eslint/eslint-plugin": "8.43.0", @@ -147,10 +150,10 @@ "jest": "30.2.0", "jest-environment-jsdom": "30.2.0", "jest-preset-angular": "16.0.0", - "nx": "22.6.4", - "prettier": "3.8.2", + "nx": "22.7.5", + "prettier": "3.8.3", "prettier-plugin-organize-attributes": "1.0.0", - "prisma": "6.19.3", + "prisma": "7.8.0", "react": "18.2.0", "react-dom": "18.2.0", "replace-in-file": "8.4.0", @@ -159,8 +162,7 @@ "ts-jest": "29.4.0", "ts-node": "10.9.2", "tslib": "2.8.1", - "typescript": "5.9.2", - "webpack-bundle-analyzer": "4.10.2" + "typescript": "5.9.2" }, "engines": { "node": ">=22.18.0" @@ -173,74 +175,50 @@ "dev": true, "license": "MIT" }, - "node_modules/@ai-sdk/provider": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-1.1.3.tgz", - "integrity": "sha512-qZMxYJ0qqX/RfnuIaab+zp8UAeJn/ygXXAffR5I4N0n1IrvA6qBsjc8hXLmBiMV2zoXlifkacF7sEFnYnjBcqg==", + "node_modules/@ai-sdk/gateway": { + "version": "3.0.109", + "resolved": "https://registry.npmjs.org/@ai-sdk/gateway/-/gateway-3.0.109.tgz", + "integrity": "sha512-r6dOqThjODp1vOhGRJg2OCmyB/ZOQtGx1esZ2SDvwDX5XoX8dBqYaYjLg8MPXTzMGJSgOkJyCxWgUcZtAl16pw==", "license": "Apache-2.0", "dependencies": { - "json-schema": "^0.4.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@ai-sdk/provider-utils": { - "version": "2.2.8", - "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-2.2.8.tgz", - "integrity": "sha512-fqhG+4sCVv8x7nFzYnFo19ryhAa3w096Kmc3hWxMQfW/TubPOmt3A6tYZhl4mUfQWWQMsuSkLrtjlWuXBVSGQA==", - "license": "Apache-2.0", - "dependencies": { - "@ai-sdk/provider": "1.1.3", - "nanoid": "^3.3.8", - "secure-json-parse": "^2.7.0" + "@ai-sdk/provider": "3.0.10", + "@ai-sdk/provider-utils": "4.0.26", + "@vercel/oidc": "3.2.0" }, "engines": { "node": ">=18" }, "peerDependencies": { - "zod": "^3.23.8" + "zod": "^3.25.76 || ^4.1.8" } }, - "node_modules/@ai-sdk/react": { - "version": "1.2.12", - "resolved": "https://registry.npmjs.org/@ai-sdk/react/-/react-1.2.12.tgz", - "integrity": "sha512-jK1IZZ22evPZoQW3vlkZ7wvjYGYF+tRBKXtrcolduIkQ/m/sOAVcVeVDUDvh1T91xCnWCdUGCPZg2avZ90mv3g==", + "node_modules/@ai-sdk/provider": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-3.0.10.tgz", + "integrity": "sha512-Q3BZ27qfpYqnCYGvE3vt+Qi6LGOF9R5Nmzn+9JoM1lCRsD9mYaIhfJLkSunN48nfGXJ6n+XNV0J/XVpqGQl7Dw==", "license": "Apache-2.0", "dependencies": { - "@ai-sdk/provider-utils": "2.2.8", - "@ai-sdk/ui-utils": "1.2.11", - "swr": "^2.2.5", - "throttleit": "2.1.0" + "json-schema": "^0.4.0" }, "engines": { "node": ">=18" - }, - "peerDependencies": { - "react": "^18 || ^19 || ^19.0.0-rc", - "zod": "^3.23.8" - }, - "peerDependenciesMeta": { - "zod": { - "optional": true - } } }, - "node_modules/@ai-sdk/ui-utils": { - "version": "1.2.11", - "resolved": "https://registry.npmjs.org/@ai-sdk/ui-utils/-/ui-utils-1.2.11.tgz", - "integrity": "sha512-3zcwCc8ezzFlwp3ZD15wAPjf2Au4s3vAbKsXQVyhxODHcmu0iyPO2Eua6D/vicq/AUm/BAo60r97O6HU+EI0+w==", + "node_modules/@ai-sdk/provider-utils": { + "version": "4.0.26", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-4.0.26.tgz", + "integrity": "sha512-CsKNLKsOpvPujRlIYvoz+Ybw+kGn7J4/fIZa/58+R7iWLLfwn6ifE2G6Yq8K9XvH/I/3bzaDAJ3NhRwEMsLBKQ==", "license": "Apache-2.0", "dependencies": { - "@ai-sdk/provider": "1.1.3", - "@ai-sdk/provider-utils": "2.2.8", - "zod-to-json-schema": "^3.24.1" + "@ai-sdk/provider": "3.0.10", + "@standard-schema/spec": "^1.1.0", + "eventsource-parser": "^3.0.8" }, "engines": { "node": ">=18" }, "peerDependencies": { - "zod": "^3.23.8" + "zod": "^3.25.76 || ^4.1.8" } }, "node_modules/@algolia/abtesting": { @@ -1511,6 +1489,7 @@ "integrity": "sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "package-manager-detector": "^1.3.0", "tinyexec": "^1.0.1" @@ -3519,7 +3498,8 @@ "resolved": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-7.1.2.tgz", "integrity": "sha512-jigsZK+sMF/cuiB7sERuo9V7N9jx+dhmHHnQyDSVdpZwVutaBu7WvNYqMDLSgFgfB30n452TP3vjDAvFC973mA==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@bramus/specificity": { "version": "2.4.2", @@ -3543,36 +3523,48 @@ "license": "(Apache-2.0 AND BSD-3-Clause)" }, "node_modules/@bull-board/api": { - "version": "6.20.3", - "resolved": "https://registry.npmjs.org/@bull-board/api/-/api-6.20.3.tgz", - "integrity": "sha512-cDrsJJsmF4DbbY8/5oHxO4qFtyFjxexsWQKHowsud/8H4mtZN7MZg4fCmNzfaxc9Ov7V6r9Y9F5G2Mq6t7ZEJg==", + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/@bull-board/api/-/api-7.1.5.tgz", + "integrity": "sha512-EW0sbTtGIysu9vipdVpPQeToPqOpPgVZTt+pn1Ut3gbSS/GLWbEgIfFtMmSQDUoSL9WH00RzjgUY5K+43nWh0A==", "license": "MIT", "dependencies": { "redis-info": "^3.1.0" }, "peerDependencies": { - "@bull-board/ui": "6.20.3" + "@bull-board/ui": "7.1.5" } }, "node_modules/@bull-board/express": { - "version": "6.20.3", - "resolved": "https://registry.npmjs.org/@bull-board/express/-/express-6.20.3.tgz", - "integrity": "sha512-S6BGeSf/PLwjx5W1IrKxoV8G6iiMmLqT/pldZ6BiC1IDldedisTtAdL1z117swXPv1H7/3hy0vr03dUr8bUCPg==", + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/@bull-board/express/-/express-7.1.5.tgz", + "integrity": "sha512-kp4SzhVjZlykryiQwcOhJjDhiLbBnZoAMoSgEstzqQ0raLw+jERRC6ryJ0MIQO+SO+Jv9EjjxrXCR8O2YSP/eg==", "license": "MIT", "dependencies": { - "@bull-board/api": "6.20.3", - "@bull-board/ui": "6.20.3", - "ejs": "^3.1.10", + "@bull-board/api": "7.1.5", + "@bull-board/ui": "7.1.5", + "ejs": "^5.0.2", "express": "^5.2.1" } }, + "node_modules/@bull-board/express/node_modules/ejs": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-5.0.2.tgz", + "integrity": "sha512-IpbUaI/CAW86l3f+T8zN0iggSc0LmMZLcIW5eRVStLVNCoTXkE0YlncbbH50fp8Cl6zHIky0sW2uUbhBqGw0Jw==", + "license": "Apache-2.0", + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.12.18" + } + }, "node_modules/@bull-board/nestjs": { - "version": "6.20.3", - "resolved": "https://registry.npmjs.org/@bull-board/nestjs/-/nestjs-6.20.3.tgz", - "integrity": "sha512-VFi96Z2M8k3G26H1ivzQnpjKszxh90vrUm78VtMZH/sh8wjm88mJFDXcOgFutOaddx7cc9VNXlKsTTcu6okPFQ==", + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/@bull-board/nestjs/-/nestjs-7.1.5.tgz", + "integrity": "sha512-1y+HkjnDaZoSCXJRsiYfBNBVx+PX3I8x3Uv+SSJuSpt2vHifMRwFbChO3XDxeWXetT1eR+yqPVq6ub5eJwNOYQ==", "license": "MIT", "peerDependencies": { - "@bull-board/api": "^6.20.3", + "@bull-board/api": "^7.1.5", "@nestjs/bull-shared": "^10.0.0 || ^11.0.0", "@nestjs/common": "^9.0.0 || ^10.0.0 || ^11.0.0", "@nestjs/core": "^9.0.0 || ^10.0.0 || ^11.0.0", @@ -3581,12 +3573,12 @@ } }, "node_modules/@bull-board/ui": { - "version": "6.20.3", - "resolved": "https://registry.npmjs.org/@bull-board/ui/-/ui-6.20.3.tgz", - "integrity": "sha512-oANyYoW0X+xd0j/09DRyh3u7Q3wqBtXiLEWyZUJIi/Bjp/hINwiw20RwWuRcaFkqkFylEJL9l+pjmeSA9X5L2A==", + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/@bull-board/ui/-/ui-7.1.5.tgz", + "integrity": "sha512-2IkatKwNRx/1M9/lAZIptcxS1FPNq6icpp2M46Upwd4olVxs/ujF9Kvs+Ff9ExtIO/OgYfwx7mG2IprGZ+nQCg==", "license": "MIT", "dependencies": { - "@bull-board/api": "6.20.3" + "@bull-board/api": "7.1.5" } }, "node_modules/@cacheable/utils": { @@ -3606,6 +3598,7 @@ "integrity": "sha512-fSL4KXjTl7cDgf0B5Rip9Q05BOrYvkJV/RrBTE/bKDN096E4hN/ySpcBK5B24T76dlQ2i32Zc3PAE27jFnFrKg==", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@chevrotain/gast": "12.0.0", "@chevrotain/types": "12.0.0" @@ -3617,6 +3610,7 @@ "integrity": "sha512-1ne/m3XsIT8aEdrvT33so0GUC+wkctpUPK6zU9IlOyJLUbR0rg4G7ZiApiJbggpgPir9ERy3FRjT6T7lpgetnQ==", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@chevrotain/types": "12.0.0" } @@ -3626,21 +3620,24 @@ "resolved": "https://registry.npmjs.org/@chevrotain/regexp-to-ast/-/regexp-to-ast-12.0.0.tgz", "integrity": "sha512-p+EW9MaJwgaHguhoqwOtx/FwuGr+DnNn857sXWOi/mClXIkPGl3rn7hGNWvo31HA3vyeQxjqe+H36yZJwYU8cA==", "license": "Apache-2.0", - "optional": true + "optional": true, + "peer": true }, "node_modules/@chevrotain/types": { "version": "12.0.0", "resolved": "https://registry.npmjs.org/@chevrotain/types/-/types-12.0.0.tgz", "integrity": "sha512-S+04vjFQKeuYw0/eW3U52LkAHQsB1ASxsPGsLPUyQgrZ2iNNibQrsidruDzjEX2JYfespXMG0eZmXlhA6z7nWA==", "license": "Apache-2.0", - "optional": true + "optional": true, + "peer": true }, "node_modules/@chevrotain/utils": { "version": "12.0.0", "resolved": "https://registry.npmjs.org/@chevrotain/utils/-/utils-12.0.0.tgz", "integrity": "sha512-lB59uJoaGIfOOL9knQqQRfhl9g7x8/wqFkp13zTdkRu1huG9kg6IJs1O8hqj9rs6h7orGxHJUKb+mX3rPbWGhA==", "license": "Apache-2.0", - "optional": true + "optional": true, + "peer": true }, "node_modules/@codewithdan/observable-store": { "version": "2.2.15", @@ -3652,9 +3649,9 @@ } }, "node_modules/@colordx/core": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/@colordx/core/-/core-5.0.3.tgz", - "integrity": "sha512-xBQ0MYRTNNxW3mS2sJtlQTT7C3Sasqgh1/PsHva7fyDb5uqYY+gv9V0utDdX8X80mqzbGz3u/IDJdn2d/uW09g==", + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/@colordx/core/-/core-5.4.3.tgz", + "integrity": "sha512-kIxYSfA5T8HXjav55UaaH/o/cKivF6jCCGIb8eqtcsfI46wsvlSiT8jMDyrl779qLec3c2c2oHBZo4oAhvbjrQ==", "dev": true, "license": "MIT" }, @@ -3884,6 +3881,36 @@ "node": ">=14.17.0" } }, + "node_modules/@electric-sql/pglite": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@electric-sql/pglite/-/pglite-0.4.1.tgz", + "integrity": "sha512-mZ9NzzUSYPOCnxHH1oAHPRzoMFJHY472raDKwXl/+6oPbpdJ7g8LsCN4FSaIIfkiCKHhb3iF/Zqo3NYxaIhU7Q==", + "devOptional": true, + "license": "Apache-2.0" + }, + "node_modules/@electric-sql/pglite-socket": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@electric-sql/pglite-socket/-/pglite-socket-0.1.1.tgz", + "integrity": "sha512-p2hoXw3Z3LQHwTeikdZNsFBOvXGqKY2hk51BBw+8NKND8eoH+8LFOtW9Z8CQKmTJ2qqGYu82ipqiyFZOTTXNfw==", + "devOptional": true, + "license": "Apache-2.0", + "bin": { + "pglite-server": "dist/scripts/server.js" + }, + "peerDependencies": { + "@electric-sql/pglite": "0.4.1" + } + }, + "node_modules/@electric-sql/pglite-tools": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@electric-sql/pglite-tools/-/pglite-tools-0.3.1.tgz", + "integrity": "sha512-C+T3oivmy9bpQvSxVqXA1UDY8cB9Eb9vZHL9zxWwEUfDixbXv4G3r2LjoTdR33LD8aomR3O9ZXEO3XEwr/cUCA==", + "devOptional": true, + "license": "Apache-2.0", + "peerDependencies": { + "@electric-sql/pglite": "0.4.1" + } + }, "node_modules/@emnapi/core": { "version": "1.9.2", "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.2.tgz", @@ -4526,10 +4553,10 @@ "license": "MIT" }, "node_modules/@hono/node-server": { - "version": "1.19.13", - "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.13.tgz", - "integrity": "sha512-TsQLe4i2gvoTtrHje625ngThGBySOgSK3Xo2XRYOdqGN1teR8+I7vchQC46uLJi8OF62YTYA3AhSpumtkhsaKQ==", - "dev": true, + "version": "1.19.11", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.11.tgz", + "integrity": "sha512-dr8/3zEaB+p0D2n/IUrlPF1HZm586qgJNXK1a9fhg/PzdtkK7Ksd5l312tJX2yBuALqDYBlG20QEbayqPyxn+g==", + "devOptional": true, "license": "MIT", "engines": { "node": ">=18.14.1" @@ -4595,7 +4622,8 @@ "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz", "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@iconify/utils": { "version": "3.1.0", @@ -4603,6 +4631,7 @@ "integrity": "sha512-Zlzem1ZXhI1iHeeERabLNzBHdOa4VhQbqAcOQaMKuTuyZCpwKbC2R4Dd0Zo3g9EAc+Y4fiarO8HIHRAth7+skw==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@antfu/install-pkg": "^1.1.0", "@iconify/types": "^2.0.0", @@ -4955,21 +4984,21 @@ } }, "node_modules/@internationalized/number": { - "version": "3.6.5", - "resolved": "https://registry.npmjs.org/@internationalized/number/-/number-3.6.5.tgz", - "integrity": "sha512-6hY4Kl4HPBvtfS62asS/R22JzNNy8vi/Ssev7x6EobfCp+9QIB2hKvI2EtbdJ0VSQacxVNtqhE/NmF/NZ0gm6g==", + "version": "3.6.6", + "resolved": "https://registry.npmjs.org/@internationalized/number/-/number-3.6.6.tgz", + "integrity": "sha512-iFgmQaXHE0vytNfpLZWOC2mEJCBRzcUxt53Xf/yCXG93lRvqas237i3r7X4RKMwO3txiyZD4mQjKAByFv6UGSQ==", "license": "Apache-2.0", "dependencies": { "@swc/helpers": "^0.5.0" } }, "node_modules/@ionic/angular": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/@ionic/angular/-/angular-8.8.1.tgz", - "integrity": "sha512-Jp7LbouSHAnR00Dsa8qE1CSOZNqAfBCO0XKXScJNz8NKVoZe5fPGy/CboehGtAQ1xgzh2eDa15zMmyetXjAkYA==", + "version": "8.8.5", + "resolved": "https://registry.npmjs.org/@ionic/angular/-/angular-8.8.5.tgz", + "integrity": "sha512-wUYKPhLzyrlRIoqM5lk0wCx2CCebxHdQBMXZdBQBvE69XlqEmkoxbbPW0YpYJvY5wkhZaDa2lzLIHo/lfijqqQ==", "license": "MIT", "dependencies": { - "@ionic/core": "8.8.1", + "@ionic/core": "8.8.5", "ionicons": "^8.0.13", "jsonc-parser": "^3.0.0", "tslib": "^2.3.0" @@ -4983,9 +5012,9 @@ } }, "node_modules/@ionic/core": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.8.1.tgz", - "integrity": "sha512-ksOUHyOEqoyUIVWcwCNSFZVGwNfP1DKrUVeN/Cdk/Xl9Rdd/5MLHGsrOQpWQfoCf3Csdnw+KHHPrXz/2fzMkMA==", + "version": "8.8.5", + "resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.8.5.tgz", + "integrity": "sha512-gVaEeLVNn6QGTmxmiC5J82k0WYEqDSuP6Hxmf4zHsBQptlIDmVOmbqzz8BIevQgb8q/s7ykwE0NGyqRu4BVsqg==", "license": "MIT", "dependencies": { "@stencil/core": "4.43.0", @@ -5217,23 +5246,6 @@ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/@jest/console/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/@jest/core": { "version": "30.2.0", "resolved": "https://registry.npmjs.org/@jest/core/-/core-30.2.0.tgz", @@ -5554,23 +5566,6 @@ "@babel/core": "^7.11.0 || ^8.0.0-beta.1" } }, - "node_modules/@jest/core/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/@jest/core/node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", @@ -6025,23 +6020,6 @@ "@sinonjs/commons": "^3.0.1" } }, - "node_modules/@jest/environment-jsdom-abstract/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/@jest/environment-jsdom-abstract/node_modules/jest-message-util": { "version": "30.2.0", "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.2.0.tgz", @@ -6167,23 +6145,6 @@ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/@jest/expect/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/@jest/expect/node_modules/jest-snapshot": { "version": "30.3.0", "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-30.3.0.tgz", @@ -6361,23 +6322,6 @@ "@sinonjs/commons": "^3.0.1" } }, - "node_modules/@jest/globals/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/@jest/globals/node_modules/expect": { "version": "30.2.0", "resolved": "https://registry.npmjs.org/expect/-/expect-30.2.0.tgz", @@ -6567,23 +6511,6 @@ } } }, - "node_modules/@jest/reporters/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/@jest/schemas": { "version": "30.0.5", "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-30.0.5.tgz", @@ -6632,23 +6559,6 @@ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/@jest/snapshot-utils/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/@jest/source-map": { "version": "30.0.1", "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-30.0.1.tgz", @@ -6722,23 +6632,6 @@ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/@jest/transform/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/@jest/transform/node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", @@ -6765,23 +6658,6 @@ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/@jest/types/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.13", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", @@ -7269,19 +7145,20 @@ } }, "node_modules/@keyv/redis": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@keyv/redis/-/redis-4.4.0.tgz", - "integrity": "sha512-n/KEj3S7crVkoykggqsMUtcjNGvjagGPlJYgO/r6m9hhGZfhp1txJElHxcdJ1ANi/LJoBuOSILj15g6HD2ucqQ==", + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/@keyv/redis/-/redis-5.1.6.tgz", + "integrity": "sha512-eKvW6pspvVaU5dxigaIDZr635/Uw6urTXL3gNbY9WTR8d3QigZQT+r8gxYSEOsw4+1cCBsC4s7T2ptR0WC9LfQ==", "license": "MIT", "dependencies": { - "@redis/client": "^1.6.0", - "cluster-key-slot": "^1.1.2" + "@redis/client": "^5.10.0", + "cluster-key-slot": "^1.1.2", + "hookified": "^1.13.0" }, "engines": { "node": ">= 18" }, "peerDependencies": { - "keyv": "^5.3.3" + "keyv": "^5.6.0" } }, "node_modules/@keyv/serialize": { @@ -7425,13 +7302,6 @@ "win32" ] }, - "node_modules/@ltd/j-toml": { - "version": "1.38.0", - "resolved": "https://registry.npmjs.org/@ltd/j-toml/-/j-toml-1.38.0.tgz", - "integrity": "sha512-lYtBcmvHustHQtg4X7TXUu1Xa/tbLC3p2wLvgQI+fWVySguVZJF60Snxijw5EiohumxZbR10kWYFFebh1zotiw==", - "dev": true, - "license": "LGPL-3.0" - }, "node_modules/@lukeed/csprng": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@lukeed/csprng/-/csprng-1.1.0.tgz", @@ -7465,6 +7335,7 @@ "integrity": "sha512-gxK9ZX2+Fex5zu8LhRQoMeMPEHbc73UKZ0FQ54YrQtUxE1VVhMwzeNtKRPAu5aXks4FasbMe4xB4bWrmq6Jlxw==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "langium": "^4.0.0" } @@ -7511,13 +7382,13 @@ } }, "node_modules/@module-federation/bridge-react-webpack-plugin": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@module-federation/bridge-react-webpack-plugin/-/bridge-react-webpack-plugin-2.3.1.tgz", - "integrity": "sha512-rixIHit2xeusr052t/IOfgQa9OyKc21GiJC8uE/5szmgJlJOHmiXa7QrudKb4KVDCcbd5Ad2b4+XrSYxxRUzJA==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@module-federation/bridge-react-webpack-plugin/-/bridge-react-webpack-plugin-2.5.0.tgz", + "integrity": "sha512-Ux9XVW//K6K+KHKPdc0Jnc7RtTpZaEXgbVhp5yovtFkCJVt8hEClcTeuI18MvvLiV/q2hUpCU5Wsf9zNaIYStQ==", "dev": true, "license": "MIT", "dependencies": { - "@module-federation/sdk": "2.3.1", + "@module-federation/sdk": "2.5.0", "@types/semver": "7.5.8", "semver": "7.6.3" } @@ -7536,15 +7407,14 @@ } }, "node_modules/@module-federation/cli": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@module-federation/cli/-/cli-2.3.1.tgz", - "integrity": "sha512-9oUqFuXaZgUc1ptBPKLIUmKrzu0kog1kE05BLMEUm55JkiDtODpuzQhT/QL8h0qHBeZ70Rn12ARQQBmoZT61Aw==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@module-federation/cli/-/cli-2.5.0.tgz", + "integrity": "sha512-+czXA6yoiiF9W6+YEOCpQE6zpGZpA89X0oCEz3EaWPTkL4chEbxurjpME8CMnJk9iuFxl167+cBQiQlVBiHGGg==", "dev": true, "license": "MIT", "dependencies": { - "@module-federation/dts-plugin": "2.3.1", - "@module-federation/sdk": "2.3.1", - "chalk": "3.0.0", + "@module-federation/dts-plugin": "2.5.0", + "@module-federation/sdk": "2.5.0", "commander": "11.1.0", "jiti": "2.4.2" }, @@ -7555,47 +7425,22 @@ "node": ">=16.0.0" } }, - "node_modules/@module-federation/data-prefetch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@module-federation/data-prefetch/-/data-prefetch-2.3.1.tgz", - "integrity": "sha512-p/G5Nlu7buiE7TdrznHanxFS1Zik8nmzNUDLmgwfdHRIaH7Rj4+gLIgLg5Zrjtkdvae/L2UJpcC8QopJMQjv4A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@module-federation/runtime": "2.3.1", - "@module-federation/sdk": "2.3.1", - "fs-extra": "9.1.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - }, - "react-dom": { - "optional": true - } - } - }, "node_modules/@module-federation/dts-plugin": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@module-federation/dts-plugin/-/dts-plugin-2.3.1.tgz", - "integrity": "sha512-6BJvu+dLDtW/ngpyuOLgpKOgtOnMUTZY51JUyargVckerKRbe7Ul+414YaHj32mu2FpsiHVMl4ig1XnxgnRg2Q==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@module-federation/dts-plugin/-/dts-plugin-2.5.0.tgz", + "integrity": "sha512-q7KDhJ5tn2HrUV7uMuh/L3TaaztUosE+4LAb90sxx0pPPqWRwlpBpxu1REubv5BWXmU1K/Ozn14u6jRbjLVaGA==", "dev": true, "license": "MIT", "dependencies": { - "@module-federation/error-codes": "2.3.1", - "@module-federation/managers": "2.3.1", - "@module-federation/sdk": "2.3.1", - "@module-federation/third-party-dts-extractor": "2.3.1", - "adm-zip": "^0.5.10", - "ansi-colors": "^4.1.3", - "axios": "1.13.5", - "fs-extra": "9.1.0", + "@module-federation/error-codes": "2.5.0", + "@module-federation/managers": "2.5.0", + "@module-federation/sdk": "2.5.0", + "@module-federation/third-party-dts-extractor": "2.5.0", + "adm-zip": "0.5.10", + "ansi-colors": "4.1.3", "isomorphic-ws": "5.0.0", "node-schedule": "2.1.1", + "undici": "7.24.7", "ws": "8.18.0" }, "peerDependencies": { @@ -7608,26 +7453,35 @@ } } }, + "node_modules/@module-federation/dts-plugin/node_modules/undici": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.24.7.tgz", + "integrity": "sha512-H/nlJ/h0ggGC+uRL3ovD+G0i4bqhvsDOpbDv7At5eFLlj2b41L8QliGbnl2H7SnDiYhENphh1tQFJZf+MyfLsQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20.18.1" + } + }, "node_modules/@module-federation/enhanced": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@module-federation/enhanced/-/enhanced-2.3.1.tgz", - "integrity": "sha512-zvzymtzsYVlSPt/HKjm42OGiDxUDPLce7mr6VZw4d6//AFFK3kKUEpUqwlf/bIlbg7FbwJC/7hVCmUhlF+dxgw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@module-federation/bridge-react-webpack-plugin": "2.3.1", - "@module-federation/cli": "2.3.1", - "@module-federation/data-prefetch": "2.3.1", - "@module-federation/dts-plugin": "2.3.1", - "@module-federation/error-codes": "2.3.1", - "@module-federation/inject-external-runtime-core-plugin": "2.3.1", - "@module-federation/managers": "2.3.1", - "@module-federation/manifest": "2.3.1", - "@module-federation/rspack": "2.3.1", - "@module-federation/runtime-tools": "2.3.1", - "@module-federation/sdk": "2.3.1", - "@module-federation/webpack-bundler-runtime": "2.3.1", - "schema-utils": "^4.3.0", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@module-federation/enhanced/-/enhanced-2.5.0.tgz", + "integrity": "sha512-P91tzwyKSCQ6AwirqvAvTqWqmTY79ndpH0uenejFw+bbLpWrjuY0q+iZUXCV/7CSNmqwH2bkA/ssuyZljmcMVQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@module-federation/bridge-react-webpack-plugin": "2.5.0", + "@module-federation/cli": "2.5.0", + "@module-federation/dts-plugin": "2.5.0", + "@module-federation/error-codes": "2.5.0", + "@module-federation/inject-external-runtime-core-plugin": "2.5.0", + "@module-federation/managers": "2.5.0", + "@module-federation/manifest": "2.5.0", + "@module-federation/rspack": "2.5.0", + "@module-federation/runtime-tools": "2.5.0", + "@module-federation/sdk": "2.5.0", + "@module-federation/webpack-bundler-runtime": "2.5.0", + "schema-utils": "4.3.0", "tapable": "2.3.0", "upath": "2.0.1" }, @@ -7651,60 +7505,96 @@ } } }, + "node_modules/@module-federation/enhanced/node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/@module-federation/enhanced/node_modules/schema-utils": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.0.tgz", + "integrity": "sha512-Gf9qqc58SpCA/xdziiHz35F4GNIWYWZrEshUc/G/r5BnLph6xpKuLeoJoQuj5WfBIx/eQLf+hmVPYHaxJu7V2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, "node_modules/@module-federation/error-codes": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@module-federation/error-codes/-/error-codes-2.3.1.tgz", - "integrity": "sha512-s3IjT2OYrSBNNmxdTmmrWBpsFfeNszdL6BSqjXLHb1CgXWUYLNXpb05IopnzMhRLcur6MTGuKR0ZSjJbmvQBbg==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@module-federation/error-codes/-/error-codes-2.5.0.tgz", + "integrity": "sha512-sq05/8Gp3csy1nr2/f76K3vLy0/xRqVtP71ibGy8BiLg7h1UxWN7G4EwAKSrPZ4FnsERGeFlIszg5Z+MqlwhFg==", "dev": true, "license": "MIT" }, "node_modules/@module-federation/inject-external-runtime-core-plugin": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@module-federation/inject-external-runtime-core-plugin/-/inject-external-runtime-core-plugin-2.3.1.tgz", - "integrity": "sha512-Q/zd3dImx4vyXLQ/UEQ0udL95yPlfbSyKcoW86tIralxA5NgnR3rEp3ccGt9MHSBbCywFrbzX5OwfKW/Jgfexw==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@module-federation/inject-external-runtime-core-plugin/-/inject-external-runtime-core-plugin-2.5.0.tgz", + "integrity": "sha512-e2KyTHpesBrPXGHMh4d4+s2xBiNoxbiFJkPRYHMCl81a/Gu+byrMkriZcV4VM/TFvBIlrgOJisVc1nnBI5UDRQ==", "dev": true, "license": "MIT", "peerDependencies": { - "@module-federation/runtime-tools": "2.3.1" + "@module-federation/runtime-tools": "2.5.0" } }, "node_modules/@module-federation/managers": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@module-federation/managers/-/managers-2.3.1.tgz", - "integrity": "sha512-kK/4FkoaIxbJbN+R6+cq+igv095hPox8oheZOKkrYA9P6Xv5FiHza+gHlCntiWTMrU8bzqJHH4VYm6gq1RB+dQ==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@module-federation/managers/-/managers-2.5.0.tgz", + "integrity": "sha512-9b5mU/7OYbKrYUJmhZ1kkfeJCZqR7qX6/FWp+oOfZMzUynN7Rb41dwoUs3TdnOKzbZ3CCwtZ2WsR4pF9ZNvuJA==", "dev": true, "license": "MIT", "dependencies": { - "@module-federation/sdk": "2.3.1", - "find-pkg": "2.0.0", - "fs-extra": "9.1.0" + "@module-federation/sdk": "2.5.0", + "find-pkg": "2.0.0" } }, "node_modules/@module-federation/manifest": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@module-federation/manifest/-/manifest-2.3.1.tgz", - "integrity": "sha512-BXckns3ux6Z9XiB2Bpirj/Q3FcQnxiyKt0rx0HmF0/7V6Zy2mwR/011eoeRGHN9N2HZcIxgQcWgMtxl5FAqxyg==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@module-federation/manifest/-/manifest-2.5.0.tgz", + "integrity": "sha512-pmwQCGWjM2oKY7CkR7nEDOfMK0bNFJUifuDxuOB5iOWhU+Rp92UyyBI9IbJAtiISTSFGtuKRy40peJGvQq2VcQ==", "dev": true, "license": "MIT", "dependencies": { - "@module-federation/dts-plugin": "2.3.1", - "@module-federation/managers": "2.3.1", - "@module-federation/sdk": "2.3.1", - "chalk": "3.0.0", + "@module-federation/dts-plugin": "2.5.0", + "@module-federation/managers": "2.5.0", + "@module-federation/sdk": "2.5.0", "find-pkg": "2.0.0" } }, "node_modules/@module-federation/node": { - "version": "2.7.39", - "resolved": "https://registry.npmjs.org/@module-federation/node/-/node-2.7.39.tgz", - "integrity": "sha512-BsfpXVIuNO5KBwvOKaTuSK4jU+vrWcDvrue2K+3YGY8lUL7mwx11W4TP4Dvrslazub93zz5NBM44qqogo+VGXA==", + "version": "2.7.43", + "resolved": "https://registry.npmjs.org/@module-federation/node/-/node-2.7.43.tgz", + "integrity": "sha512-oKoLm7dqb5EvkiNIfsEdLmmBX7XLWHtPSx3M9kEYuXAaNAppoRWC9WtgrrZYXWErB2BG9wxMlx/8Xq3awRUCdQ==", "dev": true, "license": "MIT", "dependencies": { - "@module-federation/enhanced": "2.3.1", - "@module-federation/runtime": "2.3.1", - "@module-federation/sdk": "2.3.1", - "encoding": "^0.1.13", + "@module-federation/enhanced": "2.5.0", + "@module-federation/runtime": "2.5.0", + "@module-federation/sdk": "2.5.0", + "encoding": "0.1.13", "node-fetch": "2.7.0", "tapable": "2.3.0" }, @@ -7717,66 +7607,20 @@ } } }, - "node_modules/@module-federation/node/node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/@module-federation/node/node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@module-federation/node/node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/@module-federation/node/node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dev": true, - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, "node_modules/@module-federation/rspack": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@module-federation/rspack/-/rspack-2.3.1.tgz", - "integrity": "sha512-pZmLSDkD7nDsCc377Q8sB1Yu2iMYFj72VS/Fb8B7uTmhYwU1wqDK9zPwaxauim5Y4TqQBdy/hPzNES3f4lG33Q==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@module-federation/rspack/-/rspack-2.5.0.tgz", + "integrity": "sha512-OAFMpMXuLEQFmWBuC1I7LNDQ8N3CDANXe0YGPWkIPNxKq5Tj/KNfDidmutoYgvXlZKOM4yKBKBsL6Xt/UvtOIw==", "dev": true, "license": "MIT", "dependencies": { - "@module-federation/bridge-react-webpack-plugin": "2.3.1", - "@module-federation/dts-plugin": "2.3.1", - "@module-federation/inject-external-runtime-core-plugin": "2.3.1", - "@module-federation/managers": "2.3.1", - "@module-federation/manifest": "2.3.1", - "@module-federation/runtime-tools": "2.3.1", - "@module-federation/sdk": "2.3.1" + "@module-federation/bridge-react-webpack-plugin": "2.5.0", + "@module-federation/dts-plugin": "2.5.0", + "@module-federation/inject-external-runtime-core-plugin": "2.5.0", + "@module-federation/managers": "2.5.0", + "@module-federation/manifest": "2.5.0", + "@module-federation/runtime-tools": "2.5.0", + "@module-federation/sdk": "2.5.0" }, "peerDependencies": { "@rspack/core": "^0.7.0 || ^1.0.0 || ^2.0.0-0", @@ -7793,47 +7637,47 @@ } }, "node_modules/@module-federation/runtime": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@module-federation/runtime/-/runtime-2.3.1.tgz", - "integrity": "sha512-NiKelHKzOf1Vz8oqcxC/XRUAW224O6lKj9xD0cfp5Bp343iu6s58RlLvX1ypF+UpCl3jA4JM8npGax/3jjyifw==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@module-federation/runtime/-/runtime-2.5.0.tgz", + "integrity": "sha512-dOc7pFEf8aruHBk5hoJLnvwkCa5ELT78q3o9dqcdaa/TT74X5z0FT0BsaGaRBPcse/iP6czK3fWd7RLv5ZKP5g==", "dev": true, "license": "MIT", "dependencies": { - "@module-federation/error-codes": "2.3.1", - "@module-federation/runtime-core": "2.3.1", - "@module-federation/sdk": "2.3.1" + "@module-federation/error-codes": "2.5.0", + "@module-federation/runtime-core": "2.5.0", + "@module-federation/sdk": "2.5.0" } }, "node_modules/@module-federation/runtime-core": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@module-federation/runtime-core/-/runtime-core-2.3.1.tgz", - "integrity": "sha512-E0WgaCn32AWzD0n6SCH7VQ+kxk46XyX432PQWARgyQzCX/wyLkaT+We3A18RVNUevRT85YHLrrVIhMKJJVHgjA==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@module-federation/runtime-core/-/runtime-core-2.5.0.tgz", + "integrity": "sha512-STmhQ3c6/hunba2FMP6GrHazXU/8GuN7Gk4dOkWNRpnqYIoD8Wx4MNl76j3HdCzBESC7uSMXTniksVaM1+xxyA==", "dev": true, "license": "MIT", "dependencies": { - "@module-federation/error-codes": "2.3.1", - "@module-federation/sdk": "2.3.1" + "@module-federation/error-codes": "2.5.0", + "@module-federation/sdk": "2.5.0" } }, "node_modules/@module-federation/runtime-tools": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@module-federation/runtime-tools/-/runtime-tools-2.3.1.tgz", - "integrity": "sha512-JrTKnNxIglnwrycPHUz9vARHLWqdecgFJxhmu8991z5CjktHc5JIelCbQS5Ur2lABjuwBdlyw8pH2xI3EJpbOg==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@module-federation/runtime-tools/-/runtime-tools-2.5.0.tgz", + "integrity": "sha512-fR3Na6V78ov3/O17Mev+1vydfmqlYWP4ZNxD/bBkmqKhCO7jMdthNTT02yDljlCyhYl6+X90UJlFhwFle6rIsw==", "dev": true, "license": "MIT", "dependencies": { - "@module-federation/runtime": "2.3.1", - "@module-federation/webpack-bundler-runtime": "2.3.1" + "@module-federation/runtime": "2.5.0", + "@module-federation/webpack-bundler-runtime": "2.5.0" } }, "node_modules/@module-federation/sdk": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@module-federation/sdk/-/sdk-2.3.1.tgz", - "integrity": "sha512-lgWxFZyLRKDXWRGlV6ROjFJ6MRaJTxs0bBnS6hS9ONfr/0TkeW4JzDbsfzrB8g4p6IgSKB+wQ9XfibJCGBI5OQ==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@module-federation/sdk/-/sdk-2.5.0.tgz", + "integrity": "sha512-ScU22XDyV77l50njjzewMpMlNN1CYo0tHS1D6iy+vNKWrHGq8DWVB0vwG8dmvx/WZ4uq+sXgUsQet17MoKsfZw==", "dev": true, "license": "MIT", "peerDependencies": { - "node-fetch": "^3.3.2" + "node-fetch": "^2.7.0 || ^3.3.2" }, "peerDependenciesMeta": { "node-fetch": { @@ -7842,27 +7686,26 @@ } }, "node_modules/@module-federation/third-party-dts-extractor": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@module-federation/third-party-dts-extractor/-/third-party-dts-extractor-2.3.1.tgz", - "integrity": "sha512-YpTLzM7H9damh31JX7eFBiCCR1mbibzS4i4JEa4fZ5ICT4hfNIuaAx1OeICGDOzSdl35TYegegCjk91oX6xCJQ==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@module-federation/third-party-dts-extractor/-/third-party-dts-extractor-2.5.0.tgz", + "integrity": "sha512-5di43LGk2ies86Cj8QyzYr540Ijc+nyPqYziyFotL6Pparnu+uf3b3ERfEyQfBmEcyGk1MpitQIO2J3bd9BcNw==", "dev": true, "license": "MIT", "dependencies": { "find-pkg": "2.0.0", - "fs-extra": "9.1.0", "resolve": "1.22.8" } }, "node_modules/@module-federation/webpack-bundler-runtime": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@module-federation/webpack-bundler-runtime/-/webpack-bundler-runtime-2.3.1.tgz", - "integrity": "sha512-fnsMncVdBYv7a1gN5ElNK1uA9dmGUgaNqcoNiv9xRtpxFYswchl1kbgxPTliCb8U7quihdWZos7P2lvpYeVRwg==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@module-federation/webpack-bundler-runtime/-/webpack-bundler-runtime-2.5.0.tgz", + "integrity": "sha512-UxVad+tNZYkBnZzqJQsZa0pB5gO5cJoCjMumOo3bhzXBJVqHsFupfeHa8Nk7WrRVbJE6zRT9ZHK0s0NDWBMyJw==", "dev": true, "license": "MIT", "dependencies": { - "@module-federation/error-codes": "2.3.1", - "@module-federation/runtime": "2.3.1", - "@module-federation/sdk": "2.3.1" + "@module-federation/error-codes": "2.5.0", + "@module-federation/runtime": "2.5.0", + "@module-federation/sdk": "2.5.0" } }, "node_modules/@msgpackr-extract/msgpackr-extract-darwin-arm64": { @@ -8249,16 +8092,25 @@ } }, "node_modules/@napi-rs/wasm-runtime": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.0.7.tgz", - "integrity": "sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw==", + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.4.tgz", + "integrity": "sha512-9zESzOO5aDByvhIAsOy9TbpZ0Ur2AJbUI7UT73kcUTS2mxAMHOBaa1st/jAymNoCtvrit99kkzT1FZuXVcgfIQ==", "dev": true, "license": "MIT", - "optional": true, "dependencies": { - "@emnapi/core": "^1.5.0", - "@emnapi/runtime": "^1.5.0", - "@tybys/wasm-util": "^0.10.1" + "@emnapi/core": "^1.1.0", + "@emnapi/runtime": "^1.1.0", + "@tybys/wasm-util": "^0.9.0" + } + }, + "node_modules/@napi-rs/wasm-runtime/node_modules/@tybys/wasm-util": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.9.0.tgz", + "integrity": "sha512-6+7nlbMVX/PVDCwaIQ8nTOPveOcFLSt8GcXdx8hD0bt39uWxYT88uXzqTd4fTvqta7oeUJqudepapKNt2DYJFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.4.0" } }, "node_modules/@nestjs/bull": { @@ -8290,9 +8142,9 @@ } }, "node_modules/@nestjs/cache-manager": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@nestjs/cache-manager/-/cache-manager-3.1.0.tgz", - "integrity": "sha512-pEIqYZrBcE8UdkJmZRduurvoUfdU+3kRPeO1R2muiMbZnRuqlki5klFFNllO9LyYWzrx98bd1j0PSPKSJk1Wbw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@nestjs/cache-manager/-/cache-manager-3.1.2.tgz", + "integrity": "sha512-Eglt8lUzC3Q3OZ2hFt4vLZ190M94YSJXUiKo67K/zlUgZQGtvxL0AYeKbG96x8+1gJTF7QhFpYw/RkQ28416Mw==", "license": "MIT", "peerDependencies": { "@nestjs/common": "^9.0.0 || ^10.0.0 || ^11.0.0", @@ -8303,12 +8155,12 @@ } }, "node_modules/@nestjs/common": { - "version": "11.1.14", - "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.14.tgz", - "integrity": "sha512-IN/tlqd7Nl9gl6f0jsWEuOrQDaCI9vHzxv0fisHysfBQzfQIkqlv5A7w4Qge02BUQyczXT9HHPgHtWHCxhjRng==", + "version": "11.1.21", + "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.21.tgz", + "integrity": "sha512-YV1HYDGsm2rnR0vrLKidtrG6jYX5yqiIjeur1j8++dKGqhhsJ6cjMs0RfQRSTUH7IjgDemA59/znQ8nRrE0D9g==", "license": "MIT", "dependencies": { - "file-type": "21.3.0", + "file-type": "21.3.4", "iterare": "1.2.1", "load-esm": "1.0.3", "tslib": "2.8.1", @@ -8334,37 +8186,43 @@ } }, "node_modules/@nestjs/config": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@nestjs/config/-/config-4.0.3.tgz", - "integrity": "sha512-FQ3M3Ohqfl+nHAn5tp7++wUQw0f2nAk+SFKe8EpNRnIifPqvfJP6JQxPKtFLMOHbyer4X646prFG4zSRYEssQQ==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@nestjs/config/-/config-4.0.4.tgz", + "integrity": "sha512-CJPjNitr0bAufSEnRe2N+JbnVmMmDoo6hvKCPzXgZoGwJSmp/dZPk9f/RMbuD/+Q1ZJPjwsRpq0vxna++Knwow==", "license": "MIT", "dependencies": { - "dotenv": "17.2.3", + "dotenv": "17.4.1", "dotenv-expand": "12.0.3", - "lodash": "4.17.23" + "lodash": "4.18.1" }, "peerDependencies": { "@nestjs/common": "^10.0.0 || ^11.0.0", "rxjs": "^7.1.0" } }, - "node_modules/@nestjs/config/node_modules/lodash": { - "version": "4.17.23", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.23.tgz", - "integrity": "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==", - "license": "MIT" + "node_modules/@nestjs/config/node_modules/dotenv": { + "version": "17.4.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.1.tgz", + "integrity": "sha512-k8DaKGP6r1G30Lx8V4+pCsLzKr8vLmV2paqEj1Y55GdAgJuIqpRp5FfajGF8KtwMxCz9qJc6wUIJnm053d/WCw==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } }, "node_modules/@nestjs/core": { - "version": "11.1.14", - "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-11.1.14.tgz", - "integrity": "sha512-7OXPPMoDr6z+5NkoQKu4hOhfjz/YYqM3bNilPqv1WVFWrzSmuNXxvhbX69YMmNmRYascPXiwESqf5jJdjKXEww==", + "version": "11.1.21", + "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-11.1.21.tgz", + "integrity": "sha512-fqo0BHgny3MOuAL8GSfG3ZUKFVVBaBQD/0iyibnwTONT5vPexjQxJzu+945iloVvBDmrnAaRWxC1gqCDEs/AXQ==", "hasInstallScript": true, "license": "MIT", "dependencies": { "@nuxt/opencollective": "0.4.1", "fast-safe-stringify": "2.1.1", "iterare": "1.2.1", - "path-to-regexp": "8.3.0", + "path-to-regexp": "8.4.2", "tslib": "2.8.1", "uid": "2.0.2" }, @@ -8396,9 +8254,9 @@ } }, "node_modules/@nestjs/event-emitter": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@nestjs/event-emitter/-/event-emitter-3.0.1.tgz", - "integrity": "sha512-0Ln/x+7xkU6AJFOcQI9tIhUMXVF7D5itiaQGOyJbXtlAfAIt8gzDdJm+Im7cFzKoWkiW5nCXCPh6GSvdQd/3Dw==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@nestjs/event-emitter/-/event-emitter-3.1.0.tgz", + "integrity": "sha512-DOY/4XBGyIjYyOJKkO6jl1kzFE0ZfX0wV+M2HR5NWymPT9Z0zdCEcZGxTXXkoMRwPtglnvCGJALSjOpXPIcM3g==", "license": "MIT", "dependencies": { "eventemitter2": "6.4.9" @@ -8432,15 +8290,15 @@ } }, "node_modules/@nestjs/platform-express": { - "version": "11.1.14", - "resolved": "https://registry.npmjs.org/@nestjs/platform-express/-/platform-express-11.1.14.tgz", - "integrity": "sha512-Fs+/j+mBSBSXErOQJ/YdUn/HqJGSJ4pGfiJyYOyz04l42uNVnqEakvu1kXLbxMabR6vd6/h9d6Bi4tso9p7o4Q==", + "version": "11.1.21", + "resolved": "https://registry.npmjs.org/@nestjs/platform-express/-/platform-express-11.1.21.tgz", + "integrity": "sha512-lA3ViycOnz4Df3EstIKpuAVFhqxQixTnjAVk0M+LRyNBlGM6VSCaNJaAIrb9Pcry39T4hTHpNVbRqGLSvhL8gA==", "license": "MIT", "dependencies": { "cors": "2.8.6", "express": "5.2.1", - "multer": "2.0.2", - "path-to-regexp": "8.3.0", + "multer": "2.1.1", + "path-to-regexp": "8.4.2", "tslib": "2.8.1" }, "funding": { @@ -8453,9 +8311,9 @@ } }, "node_modules/@nestjs/schedule": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/@nestjs/schedule/-/schedule-6.1.1.tgz", - "integrity": "sha512-kQl1RRgi02GJ0uaUGCrXHCcwISsCsJDciCKe38ykJZgnAeeoeVWs8luWtBo4AqAAXm4nS5K8RlV0smHUJ4+2FA==", + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@nestjs/schedule/-/schedule-6.1.3.tgz", + "integrity": "sha512-RflMFOpR16Dwd1jAUbeB4mfGTCh65fvEdL4mSjQPJChpkRGRjIXjb+6YQcK2faQrVT60c9DmLmoVR7/ONCtuYQ==", "license": "MIT", "dependencies": { "cron": "4.4.0" @@ -8466,33 +8324,39 @@ } }, "node_modules/@nestjs/schematics": { - "version": "11.0.9", - "resolved": "https://registry.npmjs.org/@nestjs/schematics/-/schematics-11.0.9.tgz", - "integrity": "sha512-0NfPbPlEaGwIT8/TCThxLzrlz3yzDNkfRNpbL7FiplKq3w4qXpJg0JYwqgMEJnLQZm3L/L/5XjoyfJHUO3qX9g==", + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/@nestjs/schematics/-/schematics-11.1.0.tgz", + "integrity": "sha512-lVxGZ46tcdItFMoXr6vyKWlnOsm1SZm/GUqAEDvy2RL4Q4O+3bkziAhrO7Y8JLssFUUvNFEGqAizI52WAxhjDw==", "dev": true, "license": "MIT", "dependencies": { - "@angular-devkit/core": "19.2.17", - "@angular-devkit/schematics": "19.2.17", - "comment-json": "4.4.1", + "@angular-devkit/core": "19.2.24", + "@angular-devkit/schematics": "19.2.24", + "comment-json": "5.0.0", "jsonc-parser": "3.3.1", "pluralize": "8.0.0" }, "peerDependencies": { + "prettier": "^3.0.0", "typescript": ">=4.8.2" + }, + "peerDependenciesMeta": { + "prettier": { + "optional": true + } } }, "node_modules/@nestjs/schematics/node_modules/@angular-devkit/core": { - "version": "19.2.17", - "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-19.2.17.tgz", - "integrity": "sha512-Ah008x2RJkd0F+NLKqIpA34/vUGwjlprRCkvddjDopAWRzYn6xCkz1Tqwuhn0nR1Dy47wTLKYD999TYl5ONOAQ==", + "version": "19.2.24", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-19.2.24.tgz", + "integrity": "sha512-Kd49warf6U/EyWe5BszF/eebN3zQ3bk7tgfEljAw8q/rX95UUtriJubWvp6pgzHfzBA4jwq8f+QiNZB8eBEXPA==", "dev": true, "license": "MIT", "dependencies": { - "ajv": "8.17.1", + "ajv": "8.18.0", "ajv-formats": "3.0.1", "jsonc-parser": "3.3.1", - "picomatch": "4.0.2", + "picomatch": "4.0.4", "rxjs": "7.8.1", "source-map": "0.7.4" }, @@ -8511,13 +8375,13 @@ } }, "node_modules/@nestjs/schematics/node_modules/@angular-devkit/schematics": { - "version": "19.2.17", - "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-19.2.17.tgz", - "integrity": "sha512-ADfbaBsrG8mBF6Mfs+crKA/2ykB8AJI50Cv9tKmZfwcUcyAdmTr+vVvhsBCfvUAEokigSsgqgpYxfkJVxhJYeg==", + "version": "19.2.24", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-19.2.24.tgz", + "integrity": "sha512-lnw+ZM1Io+cJAkReC0NPDjqObL8NtKzKIkdgEEKC8CUmkhurYhedbicN8Y8NYHgG1uLd2GozW3+/QqPRZaN+Lw==", "dev": true, "license": "MIT", "dependencies": { - "@angular-devkit/core": "19.2.17", + "@angular-devkit/core": "19.2.24", "jsonc-parser": "3.3.1", "magic-string": "0.30.17", "ora": "5.4.1", @@ -8529,40 +8393,6 @@ "yarn": ">= 1.13.0" } }, - "node_modules/@nestjs/schematics/node_modules/ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/@nestjs/schematics/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/@nestjs/schematics/node_modules/chokidar": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", @@ -8668,19 +8498,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@nestjs/schematics/node_modules/picomatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", - "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, "node_modules/@nestjs/schematics/node_modules/readdirp": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", @@ -8729,15 +8546,15 @@ } }, "node_modules/@nestjs/serve-static": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/@nestjs/serve-static/-/serve-static-5.0.4.tgz", - "integrity": "sha512-3kO1M9D3vsPyWPFardxIjUYeuolS58PnhCoBTkS7t3BrdZFZCKHnBZ15js+UOzOR2Q6HmD7ssGjLd0DVYVdvOw==", + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@nestjs/serve-static/-/serve-static-5.0.5.tgz", + "integrity": "sha512-AhYx3N9aMwR2cb0w5Nlb5nHNYiAcF74ea/D/xna+PxlXwjmwGN/PpC/5fuMtOwmPBMgOTxNPOnB8C9LDZBSgyw==", "license": "MIT", "dependencies": { - "path-to-regexp": "8.3.0" + "path-to-regexp": "8.4.2" }, "peerDependencies": { - "@fastify/static": "^8.0.4", + "@fastify/static": "^8.0.4 || ^9.0.0", "@nestjs/common": "^11.0.2", "@nestjs/core": "^11.0.2", "express": "^5.0.1", @@ -8756,9 +8573,9 @@ } }, "node_modules/@nestjs/testing": { - "version": "11.1.14", - "resolved": "https://registry.npmjs.org/@nestjs/testing/-/testing-11.1.14.tgz", - "integrity": "sha512-cQxX0ronsTbpfHz8/LYOVWXxoTxv6VoxrnuZoQaVX7QV2PSMqxWE7/9jSQR0GcqAFUEmFP34c6EJqfkjfX/k4Q==", + "version": "11.1.21", + "resolved": "https://registry.npmjs.org/@nestjs/testing/-/testing-11.1.21.tgz", + "integrity": "sha512-RhzaUFxr6/bpXWjKIzr7p2eHKMFMLwPgsxJNFcCf2CkkT3UEjW+KRGb7E2JY+fh+ck3zAdvQJrzATDnSsVlFZw==", "dev": true, "license": "MIT", "dependencies": { @@ -9147,21 +8964,21 @@ } }, "node_modules/@nx/angular": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/angular/-/angular-22.6.4.tgz", - "integrity": "sha512-62Zwqk5Dlael8bXNp1r/s/W6w0cmZpkn03kxamfo5tmqgg3la2DsW06kcnoQz/2WwwoMAARzLQGPHBXsutsPLw==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/angular/-/angular-22.7.5.tgz", + "integrity": "sha512-M+xTktTN0VBGpvFsK5u+8oMPZhD3Du2nr/b2U/EpqnfWFb2y7r7nIhQT8NYjvVlGCRyKjJi6tXNHxND6KLqr0g==", "dev": true, "license": "MIT", "dependencies": { - "@nx/devkit": "22.6.4", - "@nx/eslint": "22.6.4", - "@nx/js": "22.6.4", - "@nx/module-federation": "22.6.4", - "@nx/rspack": "22.6.4", - "@nx/web": "22.6.4", - "@nx/webpack": "22.6.4", - "@nx/workspace": "22.6.4", - "@phenomnomnominal/tsquery": "~6.1.4", + "@nx/devkit": "22.7.5", + "@nx/eslint": "22.7.5", + "@nx/js": "22.7.5", + "@nx/module-federation": "22.7.5", + "@nx/rspack": "22.7.5", + "@nx/web": "22.7.5", + "@nx/webpack": "22.7.5", + "@nx/workspace": "22.7.5", + "@phenomnomnominal/tsquery": "~6.2.0", "@typescript-eslint/type-utils": "^8.0.0", "enquirer": "~2.3.6", "magic-string": "~0.30.2", @@ -9208,17 +9025,17 @@ } }, "node_modules/@nx/cypress": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/cypress/-/cypress-22.6.4.tgz", - "integrity": "sha512-yIhHTjDUE9h0VcTewiVc5UVuNlo0teuJBxk+yuIceWj9vUwuQNwVXaQ+MHyVrfgsNa8Eh9IzqGyWPgNv27MVmg==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/cypress/-/cypress-22.7.5.tgz", + "integrity": "sha512-R7vlStn1ukKL9WL/dtfESKeqC38LyDvapPdSbxlBiDISCMgJAzntLcoBM22LfR3z7xy4kDk21fDMwglO3Bj30A==", "dev": true, "license": "MIT", "dependencies": { - "@nx/devkit": "22.6.4", - "@nx/eslint": "22.6.4", - "@nx/js": "22.6.4", - "@phenomnomnominal/tsquery": "~6.1.4", - "detect-port": "^1.5.1", + "@nx/devkit": "22.7.5", + "@nx/eslint": "22.7.5", + "@nx/js": "22.7.5", + "@phenomnomnominal/tsquery": "~6.2.0", + "detect-port": "^2.1.0", "semver": "^7.6.3", "tree-kill": "1.2.2", "tslib": "^2.3.0" @@ -9233,16 +9050,16 @@ } }, "node_modules/@nx/devkit": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-22.6.4.tgz", - "integrity": "sha512-4VRND4Hl+zWSPvs68cJn0PUoxi1ADS1iqXy3VJNtUlVqjE7Y5LtZxKUC05w5OKP+2jMfU3viPTZIGwHnHuIaYA==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/devkit/-/devkit-22.7.5.tgz", + "integrity": "sha512-/63ziS7kdHXYTLLhwWBu9hFwoFFT8xf+PkcQjsNdPqc5JmkYkSew0cE/vp5ORgBpGLWWnFPJgmfqjbJoO2C7jA==", "dev": true, "license": "MIT", "dependencies": { "@zkochan/js-yaml": "0.0.7", - "ejs": "^3.1.7", + "ejs": "5.0.1", "enquirer": "~2.3.6", - "minimatch": "10.2.4", + "minimatch": "10.2.5", "semver": "^7.6.3", "tslib": "^2.3.0", "yargs-parser": "21.1.1" @@ -9262,9 +9079,9 @@ } }, "node_modules/@nx/devkit/node_modules/brace-expansion": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz", - "integrity": "sha512-VZznLgtwhn+Mact9tfiwx64fA9erHH/MCXEUfB/0bX/6Fz6ny5EGTXYltMocqg4xFAQZtnO3DHWWXi8RiuN7cQ==", + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz", + "integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==", "dev": true, "license": "MIT", "dependencies": { @@ -9274,14 +9091,27 @@ "node": "18 || 20 || >=22" } }, + "node_modules/@nx/devkit/node_modules/ejs": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-5.0.1.tgz", + "integrity": "sha512-COqBPFMxuPTPspXl2DkVYaDS3HtrD1GpzOGkNTJ1IYkifq/r9h8SVEFrjA3D9/VJGOEoMQcrlhpntcSUrM8k6A==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.12.18" + } + }, "node_modules/@nx/devkit/node_modules/minimatch": { - "version": "10.2.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz", - "integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==", + "version": "10.2.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", + "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^5.0.2" + "brace-expansion": "^5.0.5" }, "engines": { "node": "18 || 20 || >=22" @@ -9291,55 +9121,59 @@ } }, "node_modules/@nx/docker": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/docker/-/docker-22.6.4.tgz", - "integrity": "sha512-Zcn4fBonuPFr34lSx8rT6GTetLO2lHkzmHT9EqCIycQ1DBcB1lrn7dM7oaIM6HJFVf49ECQv3WYN3rPVrS+vKg==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/docker/-/docker-22.7.5.tgz", + "integrity": "sha512-IuizX/ACvAjoTIued7eHFDaknSL6WVfDTMtzxiqaY+iDpdOwCVTC1ZXQZSMba/xEsh4owk4qnSRmJ2eWSWburw==", "dev": true, "license": "MIT", "dependencies": { - "@nx/devkit": "22.6.4", + "@nx/devkit": "22.7.5", "enquirer": "~2.3.6", "tslib": "^2.3.0" } }, "node_modules/@nx/eslint": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/eslint/-/eslint-22.6.4.tgz", - "integrity": "sha512-J1MS4INO1ZK2InIhg/qBgCLu7jmkxf+FAgDpQo2XqLJQ69RcwRRiG7oArrbYc4tRSIs67iANYDPmkcy9JO1zQg==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/eslint/-/eslint-22.7.5.tgz", + "integrity": "sha512-D/85AvnF07ng/fLcSvAE8bxFQKvejUc/MP4pX6aFZgRGrpduo7mTwFMlM/UtOtTTPRRRQVLmM9u7jn4JKROBRw==", "dev": true, "license": "MIT", "dependencies": { - "@nx/devkit": "22.6.4", - "@nx/js": "22.6.4", + "@nx/devkit": "22.7.5", + "@nx/js": "22.7.5", "semver": "^7.6.3", "tslib": "^2.3.0", "typescript": "~5.9.2" }, "peerDependencies": { + "@nx/jest": "22.7.5", "@zkochan/js-yaml": "0.0.7", "eslint": "^8.0.0 || ^9.0.0 || ^10.0.0" }, "peerDependenciesMeta": { + "@nx/jest": { + "optional": true + }, "@zkochan/js-yaml": { "optional": true } } }, "node_modules/@nx/eslint-plugin": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/eslint-plugin/-/eslint-plugin-22.6.4.tgz", - "integrity": "sha512-5/tGch9wT5nwLry5FfspFiLFUaU6XEugoxtNj6nRPZBYDclQB4z4FTPPxNBwMyX7WAi1ovP2b4GgyUP23Kn3bg==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/eslint-plugin/-/eslint-plugin-22.7.5.tgz", + "integrity": "sha512-C9mLUAZjcAKvkAifLNxNBWzvX9RFc/fg+GbO0d50596Lw3Yoz5tRCm4mgpUbVI3mkMIQumjoe8hu9bFx85bXnw==", "dev": true, "license": "MIT", "dependencies": { - "@nx/devkit": "22.6.4", - "@nx/js": "22.6.4", - "@phenomnomnominal/tsquery": "~6.1.4", + "@nx/devkit": "22.7.5", + "@nx/js": "22.7.5", + "@phenomnomnominal/tsquery": "~6.2.0", "@typescript-eslint/type-utils": "^8.0.0", "@typescript-eslint/utils": "^8.0.0", "chalk": "^4.1.0", "confusing-browser-globals": "^1.0.9", - "globals": "^15.9.0", + "globals": "^17.0.0", "jsonc-eslint-parser": "^2.1.0", "semver": "^7.6.3", "tslib": "^2.3.0" @@ -9354,27 +9188,10 @@ } } }, - "node_modules/@nx/eslint-plugin/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/@nx/eslint-plugin/node_modules/globals": { - "version": "15.15.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", - "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", + "version": "17.6.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-17.6.0.tgz", + "integrity": "sha512-sepffkT8stwnIYbsMBpoCHJuJM5l98FUF2AnE07hfvE0m/qp3R586hw4jF4uadbhvg1ooIdzuu7CsfD2jzCaNA==", "dev": true, "license": "MIT", "engines": { @@ -9385,22 +9202,22 @@ } }, "node_modules/@nx/jest": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/jest/-/jest-22.6.4.tgz", - "integrity": "sha512-Hxl1yRkOZ9ks3g1AgV1jK+Fwz7GRlsnyI+2YcZaQg8Lkj4ADl02WfzKQ58kpFWKPO+CbGRKqhvQeCPkB80W3jw==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/jest/-/jest-22.7.5.tgz", + "integrity": "sha512-+WlVdtDlVM1dyJKQg/gKiMMs6B4cR8Qh3NT9J2WFPbKdD89DTR771j+WZE572MLijJmqzOE7uNH189kV1qEj0A==", "dev": true, "license": "MIT", "dependencies": { "@jest/reporters": "^30.0.2", "@jest/test-result": "^30.0.2", - "@nx/devkit": "22.6.4", - "@nx/js": "22.6.4", - "@phenomnomnominal/tsquery": "~6.1.4", + "@nx/devkit": "22.7.5", + "@nx/js": "22.7.5", + "@phenomnomnominal/tsquery": "~6.2.0", "identity-obj-proxy": "3.0.0", "jest-config": "^30.0.2", "jest-resolve": "^30.0.2", "jest-util": "^30.0.2", - "minimatch": "10.2.4", + "minimatch": "10.2.5", "picocolors": "^1.1.0", "resolve.exports": "2.0.3", "semver": "^7.6.3", @@ -9419,9 +9236,9 @@ } }, "node_modules/@nx/jest/node_modules/brace-expansion": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz", - "integrity": "sha512-VZznLgtwhn+Mact9tfiwx64fA9erHH/MCXEUfB/0bX/6Fz6ny5EGTXYltMocqg4xFAQZtnO3DHWWXi8RiuN7cQ==", + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz", + "integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==", "dev": true, "license": "MIT", "dependencies": { @@ -9432,13 +9249,13 @@ } }, "node_modules/@nx/jest/node_modules/minimatch": { - "version": "10.2.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz", - "integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==", + "version": "10.2.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", + "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^5.0.2" + "brace-expansion": "^5.0.5" }, "engines": { "node": "18 || 20 || >=22" @@ -9448,9 +9265,9 @@ } }, "node_modules/@nx/js": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/js/-/js-22.6.4.tgz", - "integrity": "sha512-5437z2lHT1Xq+xuzn9WjcaYcUnTh6qHfICO6d/rY6n9x34pYYTNdNPdabekL1pEEAeKcFAh6fCV7O8E8vIFBLQ==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/js/-/js-22.7.5.tgz", + "integrity": "sha512-2nJdlNPwYRldsdmUz+p/O8kF7eVjINaycTO4o1FXn8DL09wLvhxb1kFAaJrGA3Ig6znAnmRVGitccFt1QTPCIg==", "dev": true, "license": "MIT", "dependencies": { @@ -9461,16 +9278,16 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.22.5", "@babel/runtime": "^7.22.6", - "@nx/devkit": "22.6.4", - "@nx/workspace": "22.6.4", + "@nx/devkit": "22.7.5", + "@nx/workspace": "22.7.5", "@zkochan/js-yaml": "0.0.7", "babel-plugin-const-enum": "^1.0.1", "babel-plugin-macros": "^3.1.0", "babel-plugin-transform-typescript-metadata": "^0.3.1", "chalk": "^4.1.0", "columnify": "^1.6.0", - "detect-port": "^1.5.1", - "ignore": "^5.0.4", + "detect-port": "^2.1.0", + "ignore": "^7.0.5", "js-tokens": "^4.0.0", "jsonc-parser": "3.2.0", "npm-run-path": "^4.0.1", @@ -9490,21 +9307,14 @@ } } }, - "node_modules/@nx/js/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@nx/js/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", "dev": true, "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">= 4" } }, "node_modules/@nx/js/node_modules/jsonc-parser": { @@ -9536,18 +9346,18 @@ } }, "node_modules/@nx/module-federation": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/module-federation/-/module-federation-22.6.4.tgz", - "integrity": "sha512-Mwc8vW0lF0BXCAyc5Ofb2fdcuWJjwgxHzi9EkUrC2heJsCL/2MzcwOkWHCo2vLUnaKaIHyG+btNEuGNmxVDRqw==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/module-federation/-/module-federation-22.7.5.tgz", + "integrity": "sha512-tb2j891NYZvl2jMFWbTgF2aLGOGDjhJrMbUKIml2/xIT6DNF89+ly8+wjMS5Nh7JAK3XSQtlERlFVBCcTD+bQA==", "dev": true, "license": "MIT", "dependencies": { - "@module-federation/enhanced": "^2.1.0", + "@module-federation/enhanced": "^2.3.3", "@module-federation/node": "^2.7.21", "@module-federation/sdk": "^2.1.0", - "@nx/devkit": "22.6.4", - "@nx/js": "22.6.4", - "@nx/web": "22.6.4", + "@nx/devkit": "22.7.5", + "@nx/js": "22.7.5", + "@nx/web": "22.7.5", "@rspack/core": "1.6.8", "express": "^4.21.2", "http-proxy-middleware": "^3.0.5", @@ -9648,146 +9458,6 @@ "@rspack/binding-win32-x64-msvc": "1.6.8" } }, - "node_modules/@nx/module-federation/node_modules/@rspack/binding-darwin-arm64": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-arm64/-/binding-darwin-arm64-1.6.8.tgz", - "integrity": "sha512-e8CTQtzaeGnf+BIzR7wRMUwKfIg0jd/sxMRc1Vd0bCMHBhSN9EsGoMuJJaKeRrSmy2nwMCNWHIG+TvT1CEKg+A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@nx/module-federation/node_modules/@rspack/binding-darwin-x64": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-x64/-/binding-darwin-x64-1.6.8.tgz", - "integrity": "sha512-ku1XpTEPt6Za11zhpFWhfwrTQogcgi9RJrOUVC4FESiPO9aKyd4hJ+JiPgLY0MZOqsptK6vEAgOip+uDVXrCpg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@nx/module-federation/node_modules/@rspack/binding-linux-arm64-gnu": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.6.8.tgz", - "integrity": "sha512-fvZX6xZPvBT8qipSpvkKMX5M7yd2BSpZNCZXcefw6gA3uC7LI3gu+er0LrDXY1PtPzVuHTyDx+abwWpagV3PiQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@nx/module-federation/node_modules/@rspack/binding-linux-arm64-musl": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.6.8.tgz", - "integrity": "sha512-++XMKcMNrt59HcFBLnRaJcn70k3X0GwkAegZBVpel8xYIAgvoXT5+L8P1ExId/yTFxqedaz8DbcxQnNmMozviw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@nx/module-federation/node_modules/@rspack/binding-linux-x64-gnu": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.6.8.tgz", - "integrity": "sha512-tv3BWkTE1TndfX+DsE1rSTg8fBevCxujNZ3MlfZ22Wfy9x1FMXTJlWG8VIOXmaaJ1wUHzv8S7cE2YUUJ2LuiCg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@nx/module-federation/node_modules/@rspack/binding-linux-x64-musl": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-1.6.8.tgz", - "integrity": "sha512-DCGgZ5/in1O3FjHWqXnDsncRy+48cMhfuUAAUyl0yDj1NpsZu9pP+xfGLvGcQTiYrVl7IH9Aojf1eShP/77WGA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@nx/module-federation/node_modules/@rspack/binding-wasm32-wasi": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-wasm32-wasi/-/binding-wasm32-wasi-1.6.8.tgz", - "integrity": "sha512-VUwdhl/lI4m6o1OGCZ9JwtMjTV/yLY5VZTQdEPKb40JMTlmZ5MBlr5xk7ByaXXYHr6I+qnqEm73iMKQvg6iknw==", - "cpu": [ - "wasm32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@napi-rs/wasm-runtime": "1.0.7" - } - }, - "node_modules/@nx/module-federation/node_modules/@rspack/binding-win32-arm64-msvc": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.6.8.tgz", - "integrity": "sha512-23YX7zlOZlub+nPGDBUzktb4D5D6ETUAluKjXEeHIZ9m7fSlEYBnGL66YE+3t1DHXGd0OqsdwlvrNGcyo6EXDQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@nx/module-federation/node_modules/@rspack/binding-win32-ia32-msvc": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.6.8.tgz", - "integrity": "sha512-cFgRE3APxrY4AEdooVk2LtipwNNT/9mrnjdC5lVbsIsz+SxvGbZR231bxDJEqP15+RJOaD07FO1sIjINFqXMEg==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@nx/module-federation/node_modules/@rspack/binding-win32-x64-msvc": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.6.8.tgz", - "integrity": "sha512-cIuhVsZYd3o3Neo1JSAhJYw6BDvlxaBoqvgwRkG1rs0ExFmEmgYyG7ip9pFKnKNWph/tmW3rDYypmEfjs1is7g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, "node_modules/@nx/module-federation/node_modules/@rspack/core": { "version": "1.6.8", "resolved": "https://registry.npmjs.org/@rspack/core/-/core-1.6.8.tgz", @@ -9826,9 +9496,9 @@ } }, "node_modules/@nx/module-federation/node_modules/body-parser": { - "version": "1.20.4", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.4.tgz", - "integrity": "sha512-ZTgYYLMOXY9qKU/57FAo8F+HA2dGX7bqGc71txDRC1rS4frdFI5R7NhluHxH6M0YItAP0sHB4uqAOcYKxO6uGA==", + "version": "1.20.5", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.5.tgz", + "integrity": "sha512-3grm+/2tUOvu2cjJkvsIxrv/wVpfXQW4PsQHYm7yk4vfpu7Ekl6nEsYBoJUL6qDwZUx8wUhQ8tR2qz+ad9c9OA==", "dev": true, "license": "MIT", "dependencies": { @@ -9840,7 +9510,7 @@ "http-errors": "~2.0.1", "iconv-lite": "~0.4.24", "on-finished": "~2.4.1", - "qs": "~6.14.0", + "qs": "~6.15.1", "raw-body": "~2.5.3", "type-is": "~1.6.18", "unpipe": "~1.0.0" @@ -9874,15 +9544,15 @@ } }, "node_modules/@nx/module-federation/node_modules/express": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz", - "integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==", + "version": "4.22.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.22.2.tgz", + "integrity": "sha512-IuL+Elrou2ZvCFHs18/CIzy2Nzvo25nZ1/D2eIZlz7c+QUayAcYoiM2BthCjs+EBHVpjYjcuLDAiCWgeIX3X1Q==", "dev": true, "license": "MIT", "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", - "body-parser": "~1.20.3", + "body-parser": "~1.20.5", "content-disposition": "~0.5.4", "content-type": "~1.0.4", "cookie": "~0.7.1", @@ -9901,7 +9571,7 @@ "parseurl": "~1.3.3", "path-to-regexp": "~0.1.12", "proxy-addr": "~2.0.7", - "qs": "~6.14.0", + "qs": "~6.15.1", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", "send": "~0.19.0", @@ -10029,22 +9699,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@nx/module-federation/node_modules/qs": { - "version": "6.14.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz", - "integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@nx/module-federation/node_modules/raw-body": { "version": "2.5.3", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz", @@ -10124,41 +9778,41 @@ } }, "node_modules/@nx/nest": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/nest/-/nest-22.6.4.tgz", - "integrity": "sha512-HeViWDRv3b0L+vuBb/OwDxZxHoGb0Zk2IcBm/+IcorCZXRv/vEnvxxREZOY0trY12PBp/4KnuNoGMzgLWENj8g==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/nest/-/nest-22.7.5.tgz", + "integrity": "sha512-UhCLlH3UjankgIFcQi6ZYEgAKSfKQlk6g9jJJpN+yyPDvoQYDPOr0iPicO+dUJvX+xDOxI/jS8easNuZ64fVPA==", "dev": true, "license": "MIT", "dependencies": { "@nestjs/schematics": "^11.0.0", - "@nx/devkit": "22.6.4", - "@nx/eslint": "22.6.4", - "@nx/js": "22.6.4", - "@nx/node": "22.6.4", + "@nx/devkit": "22.7.5", + "@nx/eslint": "22.7.5", + "@nx/js": "22.7.5", + "@nx/node": "22.7.5", "tslib": "^2.3.0" } }, "node_modules/@nx/node": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/node/-/node-22.6.4.tgz", - "integrity": "sha512-uYfyL+JIPA9b6UgwYynwM1Quh6jbctXGhnibrobLi+d6st0XhIjGKIw6dGWRIVthEyz2Ze3yloibV3Lp8fy6fg==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/node/-/node-22.7.5.tgz", + "integrity": "sha512-BJckjbyOgClqD6h2mNDhjftSRsvxbuayw0vKpT9sbd1ivAVhUCqNpe/iVP/VEdTsaK3s26hacfifD8EH3fPNWQ==", "dev": true, "license": "MIT", "dependencies": { - "@nx/devkit": "22.6.4", - "@nx/docker": "22.6.4", - "@nx/eslint": "22.6.4", - "@nx/jest": "22.6.4", - "@nx/js": "22.6.4", + "@nx/devkit": "22.7.5", + "@nx/docker": "22.7.5", + "@nx/eslint": "22.7.5", + "@nx/jest": "22.7.5", + "@nx/js": "22.7.5", "kill-port": "^1.6.1", "tcp-port-used": "^1.0.2", "tslib": "^2.3.0" } }, "node_modules/@nx/nx-darwin-arm64": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-22.6.4.tgz", - "integrity": "sha512-KuUQ9t8pxIO+Px1kbjA0XDLOU6XoAsijl0ssIMRYN1w5ly+0k/KglWt7qgwDockkaLRHkQ3YSR8I2LJXJE+Vig==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-22.7.5.tgz", + "integrity": "sha512-eoPtwx0qZqvRUD+VVOHm150AlSYwYoPxkDHBBGqKCn5nzPspb0lLWw8q83crM/L1M928YgK0WmGf3C++7eqsTA==", "cpu": [ "arm64" ], @@ -10170,9 +9824,9 @@ ] }, "node_modules/@nx/nx-darwin-x64": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-22.6.4.tgz", - "integrity": "sha512-FB2XL2+ixbRI1fddz4oW+9MhoJASoTD8Ai4q5+B1OUPftgarIPLxaqI8TWba30Bos2AiYDofMJPf9uhBmLDH5Q==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-22.7.5.tgz", + "integrity": "sha512-VLOn/ZoEn3HfjSj+yIHLCM56/el79r+9I28CkZNHaSXJQWZ3edSkcgcfYjVxCurpN2VEwDQHLBeFCH8M+lQ7wQ==", "cpu": [ "x64" ], @@ -10184,9 +9838,9 @@ ] }, "node_modules/@nx/nx-freebsd-x64": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-22.6.4.tgz", - "integrity": "sha512-qNsXhlflc77afjcRKCn7bqI8l/HPEjKhQRFs8wfKbAfNw3XEASc0EZtBV/TStLGV6PEZQldVBaId5FBMp8GW6Q==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-22.7.5.tgz", + "integrity": "sha512-LEVer/E2xfGvK9Go+imMQoEninOoq/38Z2bhV1SD3AThXrp1xaLFVkW5jQ6juebeVkAeztEoMLFlr576egS0vw==", "cpu": [ "x64" ], @@ -10198,9 +9852,9 @@ ] }, "node_modules/@nx/nx-linux-arm-gnueabihf": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-22.6.4.tgz", - "integrity": "sha512-rjfnii0xGe8SQqsO/DDHeJSjbqp2H5fOEgZlaYXDGOwQeLZ1TQplEdx8hyI/ErAUwVO3YHnzoMtmachBQOlspw==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-22.7.5.tgz", + "integrity": "sha512-NP27EFGpmFJM6RL1Ey/AFJ7gA2xuqtIHaw6jjSNGvfrnZRUNaway30GrVaGGeODf0DsvAty/unqoBMPy6kDHbw==", "cpu": [ "arm" ], @@ -10212,9 +9866,9 @@ ] }, "node_modules/@nx/nx-linux-arm64-gnu": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-22.6.4.tgz", - "integrity": "sha512-x6Zim1STewCXuHBCgoy2TO0586UlwH4RNCobn0mTiPd1jt7nU+fNqo3SpY8RzY1KmBfgcO48BBrfykPE9YWMpg==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-22.7.5.tgz", + "integrity": "sha512-QLnkJl3HkHsPfpLiNiAiMfpfAeFpic0U1diAxF8RqChOkCpQ7ulvyBVgE1UrQxvhd+gFQ3ed5RNDxtCRw8nTiw==", "cpu": [ "arm64" ], @@ -10226,9 +9880,9 @@ ] }, "node_modules/@nx/nx-linux-arm64-musl": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-22.6.4.tgz", - "integrity": "sha512-vYOqdgXIhtHFWdtnonp/jFfmfkyNPTu1JEdXuJpSxwUQdV2dWqS/l3HVPVWHXDrVKofPafK3M72jMvoWoaOQ6g==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-22.7.5.tgz", + "integrity": "sha512-cEP6KmwBgnb38+jTTaibWCjwXcHmigqhTfy0tN1be7WZr6bHxbqNLsXqKRN70PSNA3HouZcxw1cdRL8tqbPBBA==", "cpu": [ "arm64" ], @@ -10240,9 +9894,9 @@ ] }, "node_modules/@nx/nx-linux-x64-gnu": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-22.6.4.tgz", - "integrity": "sha512-UfWUDlOzlvQNVa1mnqOFxzvUwoGfM2o9ruhwYRoFm3XJbVYnjINyQsdcHwwDJItJP04LZzLPxA1+O8sU+Oqg6A==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-22.7.5.tgz", + "integrity": "sha512-tbaX1tZCSpGifDNBfDdEZAMxVF3Yg4bhFP/bm1needc0diqb+Zflc0u5tM5/6BWDMITQDwenJVsNiQ8ZdtJURA==", "cpu": [ "x64" ], @@ -10254,9 +9908,9 @@ ] }, "node_modules/@nx/nx-linux-x64-musl": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-22.6.4.tgz", - "integrity": "sha512-dwXpcyin4ScD5gH9FdhiNnOqFXclXLFBDTyRCEOlRUbOPayF9YEcH0PPIf9uWmwP3tshhAdr5sg9DLN+r7M3xg==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-22.7.5.tgz", + "integrity": "sha512-H0M7csOZIgPT822LqjxSXzf4MXRND15vIkAQe3F3Jlr3Si8LC3tzbL52aVcRfgb8MF/xOB5U47mSwxWt1M2bPQ==", "cpu": [ "x64" ], @@ -10268,9 +9922,9 @@ ] }, "node_modules/@nx/nx-win32-arm64-msvc": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-22.6.4.tgz", - "integrity": "sha512-KqjJbFWhKJaKjET3Ep8hltXPizO0EstF4yfmp3oepWVn11poagc2MT1pf/tnRf6cdD88wd0bmw/83Ng6WUQ3Uw==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-22.7.5.tgz", + "integrity": "sha512-JTcZch9YAnDL1gbhqePz3DZ4x7iYemLn1yJzrjbbXAmXju2eiiJiZvJJHbV06+SP9HKXDT8RjTKuAWTdVxnHug==", "cpu": [ "arm64" ], @@ -10282,9 +9936,9 @@ ] }, "node_modules/@nx/nx-win32-x64-msvc": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-22.6.4.tgz", - "integrity": "sha512-CIL9m6uilGGr/eU+41/+aVWUnEcq+j1EDynUX2A4InLTbAN0ylte4Af+72mvipNiqJgDkjKaNzOCQDnp8QBjEQ==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-22.7.5.tgz", + "integrity": "sha512-ngcMyHdBJ9FSz2nHdbZ7gtJlFq0O2b05sPAsVMkZ18CKzdaA1qrBDJfsMO49hPCny505eiT766+CkKdaCDl5kA==", "cpu": [ "x64" ], @@ -10296,17 +9950,17 @@ ] }, "node_modules/@nx/rspack": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/rspack/-/rspack-22.6.4.tgz", - "integrity": "sha512-Q1SuqUmEeFhTdWUQsGymI9WXdWYASqfsazKStU8mBTBRCZin4hRBeQuFeohhBx8oyGiPJ+mf2nLPbF08WBGJhQ==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/rspack/-/rspack-22.7.5.tgz", + "integrity": "sha512-E0esSN1S3e0eiHPlNbMsy6guu7APga9C1J5eO9b9IL4dB5NWXUXPsRhfPSv/8hp1gIho/rmqobItaDFgyt6KBQ==", "dev": true, "license": "MIT", "dependencies": { - "@nx/devkit": "22.6.4", - "@nx/js": "22.6.4", - "@nx/module-federation": "22.6.4", - "@nx/web": "22.6.4", - "@phenomnomnominal/tsquery": "~6.1.4", + "@nx/devkit": "22.7.5", + "@nx/js": "22.7.5", + "@nx/module-federation": "22.7.5", + "@nx/web": "22.7.5", + "@phenomnomnominal/tsquery": "~6.2.0", "@rspack/core": "1.6.8", "@rspack/dev-server": "^1.1.4", "@rspack/plugin-react-refresh": "^1.0.0", @@ -10335,7 +9989,7 @@ "webpack-node-externals": "^3.0.0" }, "peerDependencies": { - "@module-federation/enhanced": "^2.1.0", + "@module-federation/enhanced": "^2.3.3", "@module-federation/node": "^2.7.21" } }, @@ -10417,146 +10071,6 @@ "@rspack/binding-win32-x64-msvc": "1.6.8" } }, - "node_modules/@nx/rspack/node_modules/@rspack/binding-darwin-arm64": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-arm64/-/binding-darwin-arm64-1.6.8.tgz", - "integrity": "sha512-e8CTQtzaeGnf+BIzR7wRMUwKfIg0jd/sxMRc1Vd0bCMHBhSN9EsGoMuJJaKeRrSmy2nwMCNWHIG+TvT1CEKg+A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@nx/rspack/node_modules/@rspack/binding-darwin-x64": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-x64/-/binding-darwin-x64-1.6.8.tgz", - "integrity": "sha512-ku1XpTEPt6Za11zhpFWhfwrTQogcgi9RJrOUVC4FESiPO9aKyd4hJ+JiPgLY0MZOqsptK6vEAgOip+uDVXrCpg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@nx/rspack/node_modules/@rspack/binding-linux-arm64-gnu": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.6.8.tgz", - "integrity": "sha512-fvZX6xZPvBT8qipSpvkKMX5M7yd2BSpZNCZXcefw6gA3uC7LI3gu+er0LrDXY1PtPzVuHTyDx+abwWpagV3PiQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@nx/rspack/node_modules/@rspack/binding-linux-arm64-musl": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.6.8.tgz", - "integrity": "sha512-++XMKcMNrt59HcFBLnRaJcn70k3X0GwkAegZBVpel8xYIAgvoXT5+L8P1ExId/yTFxqedaz8DbcxQnNmMozviw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@nx/rspack/node_modules/@rspack/binding-linux-x64-gnu": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.6.8.tgz", - "integrity": "sha512-tv3BWkTE1TndfX+DsE1rSTg8fBevCxujNZ3MlfZ22Wfy9x1FMXTJlWG8VIOXmaaJ1wUHzv8S7cE2YUUJ2LuiCg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@nx/rspack/node_modules/@rspack/binding-linux-x64-musl": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-1.6.8.tgz", - "integrity": "sha512-DCGgZ5/in1O3FjHWqXnDsncRy+48cMhfuUAAUyl0yDj1NpsZu9pP+xfGLvGcQTiYrVl7IH9Aojf1eShP/77WGA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@nx/rspack/node_modules/@rspack/binding-wasm32-wasi": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-wasm32-wasi/-/binding-wasm32-wasi-1.6.8.tgz", - "integrity": "sha512-VUwdhl/lI4m6o1OGCZ9JwtMjTV/yLY5VZTQdEPKb40JMTlmZ5MBlr5xk7ByaXXYHr6I+qnqEm73iMKQvg6iknw==", - "cpu": [ - "wasm32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@napi-rs/wasm-runtime": "1.0.7" - } - }, - "node_modules/@nx/rspack/node_modules/@rspack/binding-win32-arm64-msvc": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.6.8.tgz", - "integrity": "sha512-23YX7zlOZlub+nPGDBUzktb4D5D6ETUAluKjXEeHIZ9m7fSlEYBnGL66YE+3t1DHXGd0OqsdwlvrNGcyo6EXDQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@nx/rspack/node_modules/@rspack/binding-win32-ia32-msvc": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.6.8.tgz", - "integrity": "sha512-cFgRE3APxrY4AEdooVk2LtipwNNT/9mrnjdC5lVbsIsz+SxvGbZR231bxDJEqP15+RJOaD07FO1sIjINFqXMEg==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@nx/rspack/node_modules/@rspack/binding-win32-x64-msvc": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.6.8.tgz", - "integrity": "sha512-cIuhVsZYd3o3Neo1JSAhJYw6BDvlxaBoqvgwRkG1rs0ExFmEmgYyG7ip9pFKnKNWph/tmW3rDYypmEfjs1is7g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, "node_modules/@nx/rspack/node_modules/@rspack/core": { "version": "1.6.8", "resolved": "https://registry.npmjs.org/@rspack/core/-/core-1.6.8.tgz", @@ -10605,9 +10119,9 @@ } }, "node_modules/@nx/rspack/node_modules/body-parser": { - "version": "1.20.4", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.4.tgz", - "integrity": "sha512-ZTgYYLMOXY9qKU/57FAo8F+HA2dGX7bqGc71txDRC1rS4frdFI5R7NhluHxH6M0YItAP0sHB4uqAOcYKxO6uGA==", + "version": "1.20.5", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.5.tgz", + "integrity": "sha512-3grm+/2tUOvu2cjJkvsIxrv/wVpfXQW4PsQHYm7yk4vfpu7Ekl6nEsYBoJUL6qDwZUx8wUhQ8tR2qz+ad9c9OA==", "dev": true, "license": "MIT", "dependencies": { @@ -10619,7 +10133,7 @@ "http-errors": "~2.0.1", "iconv-lite": "~0.4.24", "on-finished": "~2.4.1", - "qs": "~6.14.0", + "qs": "~6.15.1", "raw-body": "~2.5.3", "type-is": "~1.6.18", "unpipe": "~1.0.0" @@ -10689,15 +10203,15 @@ } }, "node_modules/@nx/rspack/node_modules/express": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz", - "integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==", + "version": "4.22.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.22.2.tgz", + "integrity": "sha512-IuL+Elrou2ZvCFHs18/CIzy2Nzvo25nZ1/D2eIZlz7c+QUayAcYoiM2BthCjs+EBHVpjYjcuLDAiCWgeIX3X1Q==", "dev": true, "license": "MIT", "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", - "body-parser": "~1.20.3", + "body-parser": "~1.20.5", "content-disposition": "~0.5.4", "content-type": "~1.0.4", "cookie": "~0.7.1", @@ -10716,7 +10230,7 @@ "parseurl": "~1.3.3", "path-to-regexp": "~0.1.12", "proxy-addr": "~2.0.7", - "qs": "~6.14.0", + "qs": "~6.15.1", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", "send": "~0.19.0", @@ -10866,22 +10380,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@nx/rspack/node_modules/qs": { - "version": "6.14.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz", - "integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@nx/rspack/node_modules/raw-body": { "version": "2.5.3", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz", @@ -10961,50 +10459,84 @@ } }, "node_modules/@nx/storybook": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/storybook/-/storybook-22.6.4.tgz", - "integrity": "sha512-dmtSooGWuVMZ0ytl1eACbGoUSI+r/yYnMCshLzs0Ex/GuX0NRR9N5NSoFBMXLzC95zH34BhNBSWfyWxt7H5/ZQ==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/storybook/-/storybook-22.7.5.tgz", + "integrity": "sha512-ZA86Gdhbq93oQjbav+RyrzUzA0nEydQKLu1oY+L6LYXE+IK3Rrjr584VJW5KySAHmu4dgCNcvnS+lyZKXK5SXQ==", "dev": true, "license": "MIT", "dependencies": { - "@nx/cypress": "22.6.4", - "@nx/devkit": "22.6.4", - "@nx/eslint": "22.6.4", - "@nx/js": "22.6.4", - "@phenomnomnominal/tsquery": "~6.1.4", + "@nx/cypress": "22.7.5", + "@nx/devkit": "22.7.5", + "@nx/eslint": "22.7.5", + "@nx/js": "22.7.5", + "@phenomnomnominal/tsquery": "~6.2.0", "semver": "^7.6.3", "tslib": "^2.3.0" }, "peerDependencies": { + "@nx/web": "22.7.5", "storybook": ">=7.0.0 <11.0.0" + }, + "peerDependenciesMeta": { + "@nx/web": { + "optional": true + } } }, "node_modules/@nx/web": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/web/-/web-22.6.4.tgz", - "integrity": "sha512-J1+2CS2YVu78clhFnAv9Zem4OvBDygSaP+SdEkEO50WQnv3mNQ6RuCoWXOnOPnp9aH4NmVaQfnG5dXbgpEkAkg==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/web/-/web-22.7.5.tgz", + "integrity": "sha512-mJOx3BknJhdr2T7UD4b4LuWyTa+MyXXJvYymBjHvBuCmWC5o68wuDm2y5kXrZ1WxHJYlqoLZ2281QPVyB+SZ7A==", "dev": true, "license": "MIT", "dependencies": { - "@nx/devkit": "22.6.4", - "@nx/js": "22.6.4", - "detect-port": "^1.5.1", + "@nx/devkit": "22.7.5", + "@nx/js": "22.7.5", + "detect-port": "^2.1.0", "http-server": "^14.1.0", "picocolors": "^1.1.0", "tslib": "^2.3.0" + }, + "peerDependencies": { + "@nx/cypress": "22.7.5", + "@nx/eslint": "22.7.5", + "@nx/jest": "22.7.5", + "@nx/playwright": "22.7.5", + "@nx/vite": "22.7.5", + "@nx/webpack": "22.7.5" + }, + "peerDependenciesMeta": { + "@nx/cypress": { + "optional": true + }, + "@nx/eslint": { + "optional": true + }, + "@nx/jest": { + "optional": true + }, + "@nx/playwright": { + "optional": true + }, + "@nx/vite": { + "optional": true + }, + "@nx/webpack": { + "optional": true + } } }, "node_modules/@nx/webpack": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/webpack/-/webpack-22.6.4.tgz", - "integrity": "sha512-Cq17EWtsI6ihUpEnBMJ6ZWzBbLCheDiktH4mfjS6D0iDNTMWB5YeE62R8PfFJvl/GieHmZG8+FIpAtEyBJMfJw==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/webpack/-/webpack-22.7.5.tgz", + "integrity": "sha512-R6LUNAiwQANzqnRDVG2Z4nBMOUQX8Pud1BzllK+CgJkT8qK5eRjVjkBMCEm42togZ8Ax5/BYzO5w4gqUVKfvOQ==", "dev": true, "license": "MIT", "dependencies": { "@babel/core": "^7.23.2", - "@nx/devkit": "22.6.4", - "@nx/js": "22.6.4", - "@phenomnomnominal/tsquery": "~6.1.4", + "@nx/devkit": "22.7.5", + "@nx/js": "22.7.5", + "@phenomnomnominal/tsquery": "~6.2.0", "ajv": "^8.12.0", "autoprefixer": "^10.4.9", "babel-loader": "^9.1.2", @@ -11131,9 +10663,9 @@ } }, "node_modules/@nx/webpack/node_modules/jiti": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", - "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", "dev": true, "license": "MIT", "bin": { @@ -11215,55 +10747,34 @@ } }, "node_modules/@nx/workspace": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/@nx/workspace/-/workspace-22.6.4.tgz", - "integrity": "sha512-7t7sEjTjhINUC2aOze0K/hLuK6s6lyg+mH+/dSnkePfMVauZoodxhknHwZ3n50+lW9jyYEd7GqeiXn45TqpTpQ==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@nx/workspace/-/workspace-22.7.5.tgz", + "integrity": "sha512-f3zx8EAOl0ANd2UXZIniBoHfDvNvi2Uy65R9Rp6emdcx7rxsuTU5Eaidryleo9wIQ5cZAcMx7Wvzp5Srj8diKA==", "dev": true, "license": "MIT", "dependencies": { - "@nx/devkit": "22.6.4", + "@nx/devkit": "22.7.5", "@zkochan/js-yaml": "0.0.7", "chalk": "^4.1.0", "enquirer": "~2.3.6", - "nx": "22.6.4", + "nx": "22.7.5", "picomatch": "4.0.4", "semver": "^7.6.3", "tslib": "^2.3.0", "yargs-parser": "21.1.1" } }, - "node_modules/@nx/workspace/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/@openrouter/ai-sdk-provider": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/@openrouter/ai-sdk-provider/-/ai-sdk-provider-0.7.2.tgz", - "integrity": "sha512-Fry2mV7uGGJRmP9JntTZRc8ElESIk7AJNTacLbF6Syoeb5k8d7HPGkcK9rTXDlqBb8HgU1hOKtz23HojesTmnw==", + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/@openrouter/ai-sdk-provider/-/ai-sdk-provider-2.9.0.tgz", + "integrity": "sha512-Seva+NCa0WUQnJIUE5GzHsUv1WTIeyqwz0ELl2VtS6NP+eF+77yCXGFVOMbvoCM7QMjlnhv7931e89R+8pJdcQ==", "license": "Apache-2.0", - "dependencies": { - "@ai-sdk/provider": "1.1.3", - "@ai-sdk/provider-utils": "2.2.8" - }, "engines": { "node": ">=18" }, "peerDependencies": { - "ai": "^4.3.16", - "zod": "^3.25.34" + "ai": "^6.0.0", + "zod": "^3.25.0 || ^4.0.0" } }, "node_modules/@opentelemetry/api": { @@ -11747,17 +11258,17 @@ } }, "node_modules/@phenomnomnominal/tsquery": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/@phenomnomnominal/tsquery/-/tsquery-6.1.4.tgz", - "integrity": "sha512-3tHlGy/fxjJCHqIV8nelAzbRTNkCUY+k7lqBGKNuQz99H2OKGRt6oU+U2SZs6LYrbOe8mxMFl6kq6gzHapFRkw==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/@phenomnomnominal/tsquery/-/tsquery-6.2.0.tgz", + "integrity": "sha512-Vo9nkhfZxDB/sBiqIY3pjDC4mOSyure+AFlEW5hcy/tRE82MqCXjRN4InnVNMldinRt0dLYqg4HAU2XPq5e1LA==", "dev": true, "license": "MIT", "dependencies": { - "@types/esquery": "^1.5.0", - "esquery": "^1.5.0" + "@types/esquery": "^1.5.4", + "esquery": "^1.7.0" }, "peerDependencies": { - "typescript": "^3 || ^4 || ^5" + "typescript": ">3.0.0" } }, "node_modules/@pkgjs/parseargs": { @@ -11784,25 +11295,32 @@ "url": "https://opencollective.com/pkgr" } }, - "node_modules/@polka/url": { - "version": "1.0.0-next.29", - "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.29.tgz", - "integrity": "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==", - "dev": true, - "license": "MIT" + "node_modules/@prisma/adapter-pg": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/@prisma/adapter-pg/-/adapter-pg-7.8.0.tgz", + "integrity": "sha512-ygb3UkerK3v8MDpXVgCISdRNDozpxh6+JVJgiIGbSr5KBgz10LLf5ejUskPGoXlsIjxsOu6nuy1JVQr2EKGSlg==", + "license": "Apache-2.0", + "dependencies": { + "@prisma/driver-adapter-utils": "7.8.0", + "@types/pg": "^8.16.0", + "pg": "^8.16.3", + "postgres-array": "3.0.4" + } }, "node_modules/@prisma/client": { - "version": "6.19.3", - "resolved": "https://registry.npmjs.org/@prisma/client/-/client-6.19.3.tgz", - "integrity": "sha512-mKq3jQFhjvko5LTJFHGilsuQs+W+T3Gm451NzuTDGQxwCzwXHYnIu2zGkRoW+Exq3Rob7yp2MfzSrdIiZVhrBg==", - "hasInstallScript": true, + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/@prisma/client/-/client-7.8.0.tgz", + "integrity": "sha512-HFp3Dawv/3sU3JtlPha90IB+48lS7zHiH4LKZPjmcE8YH5P9DOXGPvo8dqOtO7MqLDd1p2hOWMcFlRT1DMblHw==", "license": "Apache-2.0", + "dependencies": { + "@prisma/client-runtime-utils": "7.8.0" + }, "engines": { - "node": ">=18.18" + "node": "^20.19 || ^22.12 || >=24.0" }, "peerDependencies": { "prisma": "*", - "typescript": ">=5.1.0" + "typescript": ">=5.4.0" }, "peerDependenciesMeta": { "prisma": { @@ -11813,81 +11331,362 @@ } } }, + "node_modules/@prisma/client-runtime-utils": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/@prisma/client-runtime-utils/-/client-runtime-utils-7.8.0.tgz", + "integrity": "sha512-5NQZztQ0oY/ADFkmd9gPuweH5A1/CCY8YQPorLLO0Mu6a87mY5gsnDkzmFmIHs9NFaLnZojzgddFVN4RpKYrdw==", + "license": "Apache-2.0" + }, "node_modules/@prisma/config": { - "version": "6.19.3", - "resolved": "https://registry.npmjs.org/@prisma/config/-/config-6.19.3.tgz", - "integrity": "sha512-CBPT44BjlQxEt8kiMEauji2WHTDoVBOKl7UlewXmUgBPnr/oPRZC3psci5chJnYmH0ivEIog2OU9PGWoki3DLQ==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/@prisma/config/-/config-7.8.0.tgz", + "integrity": "sha512-HFESzd9rx2ZQxlK+TL7tu1HPvCqrHiL6LCxYykI2c34mvaUuIVVl3lYuicJD/MNnzgPnyeBEMlK4WTomJCV5jw==", "devOptional": true, "license": "Apache-2.0", "dependencies": { - "c12": "3.1.0", + "c12": "3.3.4", "deepmerge-ts": "7.1.5", - "effect": "3.21.0", + "effect": "3.20.0", "empathic": "2.0.0" } }, "node_modules/@prisma/debug": { - "version": "6.19.3", - "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-6.19.3.tgz", - "integrity": "sha512-ljkJ+SgpXNktLG0Q/n4JGYCkKf0f8oYLyjImS2I8e2q2WCfdRRtWER062ZV/ixaNP2M2VKlWXVJiGzZaUgbKZw==", - "devOptional": true, + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-7.8.0.tgz", + "integrity": "sha512-p+QZReysDUqXC+mk17q9a+Y/qzh4c2KYliDK30buYUyfrGeTGSyfmc0AIrJRhZJrLHhRiJa9Au/J72h3C+szvA==", "license": "Apache-2.0" }, + "node_modules/@prisma/dev": { + "version": "0.24.3", + "resolved": "https://registry.npmjs.org/@prisma/dev/-/dev-0.24.3.tgz", + "integrity": "sha512-ffHlQuKXZiaDt9Go0OnCTdJZrHxK0k7omJKNV86/VjpsXu5EIHZLK0T7JSWgvNlJwh56kW9JFu9v0qJciFzepg==", + "devOptional": true, + "license": "ISC", + "dependencies": { + "@electric-sql/pglite": "0.4.1", + "@electric-sql/pglite-socket": "0.1.1", + "@electric-sql/pglite-tools": "0.3.1", + "@hono/node-server": "1.19.11", + "@prisma/get-platform": "7.2.0", + "@prisma/query-plan-executor": "7.2.0", + "@prisma/streams-local": "0.1.2", + "foreground-child": "3.3.1", + "get-port-please": "3.2.0", + "hono": "^4.12.8", + "http-status-codes": "2.3.0", + "pathe": "2.0.3", + "proper-lockfile": "4.1.2", + "remeda": "2.33.4", + "std-env": "3.10.0", + "valibot": "1.2.0", + "zeptomatch": "2.1.0" + } + }, + "node_modules/@prisma/driver-adapter-utils": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/@prisma/driver-adapter-utils/-/driver-adapter-utils-7.8.0.tgz", + "integrity": "sha512-/Q13o0ZT0rjc1Xk0Q9KhZYwuq2EW/vSbWUBKfgEKkaCuB/Sg6bqnjmTZqC5cD4d6y1vfFAEwBRzfzoSMIVJ55A==", + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "7.8.0" + } + }, "node_modules/@prisma/engines": { - "version": "6.19.3", - "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-6.19.3.tgz", - "integrity": "sha512-RSYxtlYFl5pJ8ZePgMv0lZ9IzVCOdTPOegrs2qcbAEFrBI1G33h6wyC9kjQvo0DnYEhEVY0X4LsuFHXLKQk88g==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-7.8.0.tgz", + "integrity": "sha512-jx3rCnNNrt5uzbkKlegtQ2GZHxSlihMCzutgT/BP6UIDF1r9tDI39hV/0T/cHZgzJ3ELbuQPXlVZy+Y1n0pcgw==", "devOptional": true, "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "@prisma/debug": "6.19.3", - "@prisma/engines-version": "7.1.1-3.c2990dca591cba766e3b7ef5d9e8a84796e47ab7", - "@prisma/fetch-engine": "6.19.3", - "@prisma/get-platform": "6.19.3" + "@prisma/debug": "7.8.0", + "@prisma/engines-version": "7.8.0-6.3c6e192761c0362d496ed980de936e2f3cebcd3a", + "@prisma/fetch-engine": "7.8.0", + "@prisma/get-platform": "7.8.0" } }, "node_modules/@prisma/engines-version": { - "version": "7.1.1-3.c2990dca591cba766e3b7ef5d9e8a84796e47ab7", - "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-7.1.1-3.c2990dca591cba766e3b7ef5d9e8a84796e47ab7.tgz", - "integrity": "sha512-03bgb1VD5gvuumNf+7fVGBzfpJPjmqV423l/WxsWk2cNQ42JD0/SsFBPhN6z8iAvdHs07/7ei77SKu7aZfq8bA==", + "version": "7.8.0-6.3c6e192761c0362d496ed980de936e2f3cebcd3a", + "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-7.8.0-6.3c6e192761c0362d496ed980de936e2f3cebcd3a.tgz", + "integrity": "sha512-fJPQxCkLgA5EayWaW8eArgCvjJ+N+Kz3VyeNKMEeYiQC4alNkxRKFVAGxv/ZUzuJISKqdw+zGeDbS6mn6RCPOA==", "devOptional": true, "license": "Apache-2.0" }, + "node_modules/@prisma/engines/node_modules/@prisma/get-platform": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-7.8.0.tgz", + "integrity": "sha512-WlxgRGnolL8VH2EmkH1R/DkKNr/mVdS3G2h42IZFFZ3eUrH9OT6t73kIOSlkkrv50wG123Iq8d96ufv5LlZktw==", + "devOptional": true, + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "7.8.0" + } + }, "node_modules/@prisma/fetch-engine": { - "version": "6.19.3", - "resolved": "https://registry.npmjs.org/@prisma/fetch-engine/-/fetch-engine-6.19.3.tgz", - "integrity": "sha512-tKtl/qco9Nt7LU5iKhpultD8O4vMCZcU2CHjNTnRrL1QvSUr5W/GcyFPjNL87GtRrwBc7ubXXD9xy4EvLvt8JA==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/@prisma/fetch-engine/-/fetch-engine-7.8.0.tgz", + "integrity": "sha512-gwB0Euiz/DDRyxFRpLXYlK3RfaZUj1c5dAYMuhZYfApg7arknJlcb9bIsOHDppJmbqYaVA+yBIiFMDBfprsNPQ==", + "devOptional": true, + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "7.8.0", + "@prisma/engines-version": "7.8.0-6.3c6e192761c0362d496ed980de936e2f3cebcd3a", + "@prisma/get-platform": "7.8.0" + } + }, + "node_modules/@prisma/fetch-engine/node_modules/@prisma/get-platform": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-7.8.0.tgz", + "integrity": "sha512-WlxgRGnolL8VH2EmkH1R/DkKNr/mVdS3G2h42IZFFZ3eUrH9OT6t73kIOSlkkrv50wG123Iq8d96ufv5LlZktw==", "devOptional": true, "license": "Apache-2.0", "dependencies": { - "@prisma/debug": "6.19.3", - "@prisma/engines-version": "7.1.1-3.c2990dca591cba766e3b7ef5d9e8a84796e47ab7", - "@prisma/get-platform": "6.19.3" + "@prisma/debug": "7.8.0" } }, "node_modules/@prisma/get-platform": { - "version": "6.19.3", - "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-6.19.3.tgz", - "integrity": "sha512-xFj1VcJ1N3MKooOQAGO0W5tsd0W2QzIvW7DD7c/8H14Zmp4jseeWAITm+w2LLoLrlhoHdPPh0NMZ8mfL6puoHA==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-7.2.0.tgz", + "integrity": "sha512-k1V0l0Td1732EHpAfi2eySTezyllok9dXb6UQanajkJQzPUGi3vO2z7jdkz67SypFTdmbnyGYxvEvYZdZsMAVA==", + "devOptional": true, + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "7.2.0" + } + }, + "node_modules/@prisma/get-platform/node_modules/@prisma/debug": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-7.2.0.tgz", + "integrity": "sha512-YSGTiSlBAVJPzX4ONZmMotL+ozJwQjRmZweQNIq/ER0tQJKJynNkRB3kyvt37eOfsbMCXk3gnLF6J9OJ4QWftw==", + "devOptional": true, + "license": "Apache-2.0" + }, + "node_modules/@prisma/query-plan-executor": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@prisma/query-plan-executor/-/query-plan-executor-7.2.0.tgz", + "integrity": "sha512-EOZmNzcV8uJ0mae3DhTsiHgoNCuu1J9mULQpGCh62zN3PxPTd+qI9tJvk5jOst8WHKQNwJWR3b39t0XvfBB0WQ==", + "devOptional": true, + "license": "Apache-2.0" + }, + "node_modules/@prisma/streams-local": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@prisma/streams-local/-/streams-local-0.1.2.tgz", + "integrity": "sha512-l49yTxKKF2odFxaAXTmwmkBKL3+bVQ1tFOooGifu4xkdb9NMNLxHj27XAhTylWZod8I+ISGM5erU1xcl/oBCtg==", + "devOptional": true, + "license": "Apache-2.0", + "dependencies": { + "ajv": "^8.12.0", + "better-result": "^2.7.0", + "env-paths": "^3.0.0", + "proper-lockfile": "^4.1.2" + }, + "engines": { + "bun": ">=1.3.6", + "node": ">=22.0.0" + } + }, + "node_modules/@prisma/streams-local/node_modules/env-paths": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-3.0.0.tgz", + "integrity": "sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@prisma/studio-core": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@prisma/studio-core/-/studio-core-0.27.3.tgz", + "integrity": "sha512-AADjNFPdsrglxHQVTmHFqv6DuKQZ5WY4p5/gVFY017twvNrSwpLJ9lqUbYYxEu2W7nbvVxTZA8deJ8LseNALsw==", "devOptional": true, "license": "Apache-2.0", "dependencies": { - "@prisma/debug": "6.19.3" + "@radix-ui/react-toggle": "1.1.10", + "chart.js": "4.5.1" + }, + "engines": { + "node": "^20.19 || ^22.12 || >=24.0", + "pnpm": "8" + }, + "peerDependencies": { + "@types/react": "^18.0.0 || ^19.0.0", + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + } + }, + "node_modules/@radix-ui/primitive": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.3.tgz", + "integrity": "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/@radix-ui/react-compose-refs": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz", + "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==", + "devOptional": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-primitive": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz", + "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@radix-ui/react-slot": "1.2.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-slot": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz", + "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.2" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-toggle": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/@radix-ui/react-toggle/-/react-toggle-1.1.10.tgz", + "integrity": "sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.3", + "@radix-ui/react-primitive": "2.1.3", + "@radix-ui/react-use-controllable-state": "1.2.2" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-controllable-state": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.2.tgz", + "integrity": "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@radix-ui/react-use-effect-event": "0.0.2", + "@radix-ui/react-use-layout-effect": "1.1.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-effect-event": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.2.tgz", + "integrity": "sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@radix-ui/react-use-layout-effect": "1.1.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-layout-effect": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz", + "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==", + "devOptional": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, "node_modules/@redis/client": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@redis/client/-/client-1.6.1.tgz", - "integrity": "sha512-/KCsg3xSlR+nCK8/8ZYSknYxvXHwubJrU82F3Lm1Fp6789VQ0/3RJKfsmRXjqfaTA++23CvC3hqmqe/2GEt6Kw==", + "version": "5.12.1", + "resolved": "https://registry.npmjs.org/@redis/client/-/client-5.12.1.tgz", + "integrity": "sha512-7aPGWeqA3uFm43o19umzdl16CEjK/JQGtSXVPevplTaOU3VJA/rseBC1QvYUz9lLDIMBimc4SW/zrW4S89BaCA==", "license": "MIT", "dependencies": { - "cluster-key-slot": "1.1.2", - "generic-pool": "3.9.0", - "yallist": "4.0.0" + "cluster-key-slot": "1.1.2" }, "engines": { - "node": ">=14" + "node": ">= 18.19.0" + }, + "peerDependencies": { + "@node-rs/xxhash": "^1.1.0", + "@opentelemetry/api": ">=1 <2" + }, + "peerDependenciesMeta": { + "@node-rs/xxhash": { + "optional": true + }, + "@opentelemetry/api": { + "optional": true + } } }, "node_modules/@rolldown/binding-android-arm64": { @@ -12467,6 +12266,323 @@ "@rspack/binding-win32-x64-msvc": "1.7.11" } }, + "node_modules/@rspack/binding-darwin-arm64": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-arm64/-/binding-darwin-arm64-1.6.8.tgz", + "integrity": "sha512-e8CTQtzaeGnf+BIzR7wRMUwKfIg0jd/sxMRc1Vd0bCMHBhSN9EsGoMuJJaKeRrSmy2nwMCNWHIG+TvT1CEKg+A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rspack/binding-darwin-x64": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-x64/-/binding-darwin-x64-1.6.8.tgz", + "integrity": "sha512-ku1XpTEPt6Za11zhpFWhfwrTQogcgi9RJrOUVC4FESiPO9aKyd4hJ+JiPgLY0MZOqsptK6vEAgOip+uDVXrCpg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rspack/binding-linux-arm64-gnu": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.6.8.tgz", + "integrity": "sha512-fvZX6xZPvBT8qipSpvkKMX5M7yd2BSpZNCZXcefw6gA3uC7LI3gu+er0LrDXY1PtPzVuHTyDx+abwWpagV3PiQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rspack/binding-linux-arm64-musl": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.6.8.tgz", + "integrity": "sha512-++XMKcMNrt59HcFBLnRaJcn70k3X0GwkAegZBVpel8xYIAgvoXT5+L8P1ExId/yTFxqedaz8DbcxQnNmMozviw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rspack/binding-linux-x64-gnu": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.6.8.tgz", + "integrity": "sha512-tv3BWkTE1TndfX+DsE1rSTg8fBevCxujNZ3MlfZ22Wfy9x1FMXTJlWG8VIOXmaaJ1wUHzv8S7cE2YUUJ2LuiCg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rspack/binding-linux-x64-musl": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-1.6.8.tgz", + "integrity": "sha512-DCGgZ5/in1O3FjHWqXnDsncRy+48cMhfuUAAUyl0yDj1NpsZu9pP+xfGLvGcQTiYrVl7IH9Aojf1eShP/77WGA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rspack/binding-wasm32-wasi": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/@rspack/binding-wasm32-wasi/-/binding-wasm32-wasi-1.6.8.tgz", + "integrity": "sha512-VUwdhl/lI4m6o1OGCZ9JwtMjTV/yLY5VZTQdEPKb40JMTlmZ5MBlr5xk7ByaXXYHr6I+qnqEm73iMKQvg6iknw==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@napi-rs/wasm-runtime": "1.0.7" + } + }, + "node_modules/@rspack/binding-wasm32-wasi/node_modules/@napi-rs/wasm-runtime": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.0.7.tgz", + "integrity": "sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.5.0", + "@emnapi/runtime": "^1.5.0", + "@tybys/wasm-util": "^0.10.1" + } + }, + "node_modules/@rspack/binding-win32-arm64-msvc": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.6.8.tgz", + "integrity": "sha512-23YX7zlOZlub+nPGDBUzktb4D5D6ETUAluKjXEeHIZ9m7fSlEYBnGL66YE+3t1DHXGd0OqsdwlvrNGcyo6EXDQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rspack/binding-win32-ia32-msvc": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.6.8.tgz", + "integrity": "sha512-cFgRE3APxrY4AEdooVk2LtipwNNT/9mrnjdC5lVbsIsz+SxvGbZR231bxDJEqP15+RJOaD07FO1sIjINFqXMEg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rspack/binding-win32-x64-msvc": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.6.8.tgz", + "integrity": "sha512-cIuhVsZYd3o3Neo1JSAhJYw6BDvlxaBoqvgwRkG1rs0ExFmEmgYyG7ip9pFKnKNWph/tmW3rDYypmEfjs1is7g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rspack/binding/node_modules/@napi-rs/wasm-runtime": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.0.7.tgz", + "integrity": "sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@emnapi/core": "^1.5.0", + "@emnapi/runtime": "^1.5.0", + "@tybys/wasm-util": "^0.10.1" + } + }, + "node_modules/@rspack/binding/node_modules/@rspack/binding-darwin-arm64": { + "version": "1.7.11", + "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-arm64/-/binding-darwin-arm64-1.7.11.tgz", + "integrity": "sha512-oduECiZVqbO5zlVw+q7Vy65sJFth99fWPTyucwvLJJtJkPL5n17Uiql2cYP6Ijn0pkqtf1SXgK8WjiKLG5bIig==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "peer": true + }, + "node_modules/@rspack/binding/node_modules/@rspack/binding-darwin-x64": { + "version": "1.7.11", + "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-x64/-/binding-darwin-x64-1.7.11.tgz", + "integrity": "sha512-a1+TtTE9ap6RalgFi7FGIgkJP6O4Vy6ctv+9WGJy53E4kuqHR0RygzaiVxCI/GMc/vBT9vY23hyrpWb3d1vtXA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "peer": true + }, + "node_modules/@rspack/binding/node_modules/@rspack/binding-linux-arm64-gnu": { + "version": "1.7.11", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.7.11.tgz", + "integrity": "sha512-P0QrGRPbTWu6RKWfN0bDtbnEps3rXH0MWIMreZABoUrVmNQKtXR6e73J3ub6a+di5s2+K0M2LJ9Bh2/H4UsDUA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rspack/binding/node_modules/@rspack/binding-linux-arm64-musl": { + "version": "1.7.11", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.7.11.tgz", + "integrity": "sha512-6ky7R43VMjWwmx3Yx7Jl7faLBBMAgMDt+/bN35RgwjiPgsIByz65EwytUVuW9rikB43BGHvA/eqlnjLrUzNBqw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rspack/binding/node_modules/@rspack/binding-linux-x64-gnu": { + "version": "1.7.11", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.7.11.tgz", + "integrity": "sha512-cuOJMfCOvb2Wgsry5enXJ3iT1FGUjdPqtGUBVupQlEG4ntSYsQ2PtF4wIDVasR3wdxC5nQbipOrDiN/u6fYsdQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rspack/binding/node_modules/@rspack/binding-linux-x64-musl": { + "version": "1.7.11", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-1.7.11.tgz", + "integrity": "sha512-CoK37hva4AmHGh3VCsQXmGr40L36m1/AdnN5LEjUX6kx5rEH7/1nEBN6Ii72pejqDVvk9anEROmPDiPw10tpFg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@rspack/binding/node_modules/@rspack/binding-wasm32-wasi": { + "version": "1.7.11", + "resolved": "https://registry.npmjs.org/@rspack/binding-wasm32-wasi/-/binding-wasm32-wasi-1.7.11.tgz", + "integrity": "sha512-OtrmnPUVJMxjNa3eDMfHyPdtlLRmmp/aIm0fQHlAOATbZvlGm12q7rhPW5BXTu1yh+1rQ1/uqvz+SzKEZXuJaQ==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@napi-rs/wasm-runtime": "1.0.7" + } + }, + "node_modules/@rspack/binding/node_modules/@rspack/binding-win32-arm64-msvc": { + "version": "1.7.11", + "resolved": "https://registry.npmjs.org/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.7.11.tgz", + "integrity": "sha512-lObFW6e5lCWNgTBNwT//yiEDbsxm9QG4BYUojqeXxothuzJ/L6ibXz6+gLMvbOvLGV3nKgkXmx8GvT9WDKR0mA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "peer": true + }, + "node_modules/@rspack/binding/node_modules/@rspack/binding-win32-ia32-msvc": { + "version": "1.7.11", + "resolved": "https://registry.npmjs.org/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.7.11.tgz", + "integrity": "sha512-0pYGnZd8PPqNR68zQ8skamqNAXEA1sUfXuAdYcknIIRq2wsbiwFzIc0Pov1cIfHYab37G7sSIPBiOUdOWF5Ivw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "peer": true + }, + "node_modules/@rspack/binding/node_modules/@rspack/binding-win32-x64-msvc": { + "version": "1.7.11", + "resolved": "https://registry.npmjs.org/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.7.11.tgz", + "integrity": "sha512-EeQXayoQk/uBkI3pdoXfQBXNIUrADq56L3s/DFyM2pJeUDrWmhfIw2UFIGkYPTMSCo8F2JcdcGM32FGJrSnU0Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "peer": true + }, "node_modules/@rspack/core": { "version": "1.7.11", "resolved": "https://registry.npmjs.org/@rspack/core/-/core-1.7.11.tgz", @@ -12627,9 +12743,9 @@ } }, "node_modules/@rspack/dev-server/node_modules/body-parser": { - "version": "1.20.4", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.4.tgz", - "integrity": "sha512-ZTgYYLMOXY9qKU/57FAo8F+HA2dGX7bqGc71txDRC1rS4frdFI5R7NhluHxH6M0YItAP0sHB4uqAOcYKxO6uGA==", + "version": "1.20.5", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.5.tgz", + "integrity": "sha512-3grm+/2tUOvu2cjJkvsIxrv/wVpfXQW4PsQHYm7yk4vfpu7Ekl6nEsYBoJUL6qDwZUx8wUhQ8tR2qz+ad9c9OA==", "dev": true, "license": "MIT", "dependencies": { @@ -12641,7 +12757,7 @@ "http-errors": "~2.0.1", "iconv-lite": "~0.4.24", "on-finished": "~2.4.1", - "qs": "~6.14.0", + "qs": "~6.15.1", "raw-body": "~2.5.3", "type-is": "~1.6.18", "unpipe": "~1.0.0" @@ -12700,15 +12816,15 @@ } }, "node_modules/@rspack/dev-server/node_modules/express": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz", - "integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==", + "version": "4.22.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.22.2.tgz", + "integrity": "sha512-IuL+Elrou2ZvCFHs18/CIzy2Nzvo25nZ1/D2eIZlz7c+QUayAcYoiM2BthCjs+EBHVpjYjcuLDAiCWgeIX3X1Q==", "dev": true, "license": "MIT", "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", - "body-parser": "~1.20.3", + "body-parser": "~1.20.5", "content-disposition": "~0.5.4", "content-type": "~1.0.4", "cookie": "~0.7.1", @@ -12727,7 +12843,7 @@ "parseurl": "~1.3.3", "path-to-regexp": "~0.1.12", "proxy-addr": "~2.0.7", - "qs": "~6.14.0", + "qs": "~6.15.1", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", "send": "~0.19.0", @@ -12925,22 +13041,6 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/@rspack/dev-server/node_modules/qs": { - "version": "6.14.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz", - "integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@rspack/dev-server/node_modules/raw-body": { "version": "2.5.3", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz", @@ -13281,6 +13381,23 @@ "storybook": "^10.1.10" } }, + "node_modules/@storybook/addon-themes": { + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@storybook/addon-themes/-/addon-themes-10.1.10.tgz", + "integrity": "sha512-YlTzREQnUFZ6wepo4MppiobkFrsF1EuObh+vaEhjEj5Cs1oH+kqP5Db+rXi8rbrxnVXaWKmDgqZMtB7kVN4Dnw==", + "dev": true, + "license": "MIT", + "dependencies": { + "ts-dedent": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/storybook" + }, + "peerDependencies": { + "storybook": "^10.1.10" + } + }, "node_modules/@storybook/angular": { "version": "10.1.10", "resolved": "https://registry.npmjs.org/@storybook/angular/-/angular-10.1.10.tgz", @@ -13960,6 +14077,7 @@ "integrity": "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@types/d3-array": "*", "@types/d3-axis": "*", @@ -13998,7 +14116,8 @@ "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.2.tgz", "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-axis": { "version": "3.0.6", @@ -14006,6 +14125,7 @@ "integrity": "sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@types/d3-selection": "*" } @@ -14016,6 +14136,7 @@ "integrity": "sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@types/d3-selection": "*" } @@ -14025,14 +14146,16 @@ "resolved": "https://registry.npmjs.org/@types/d3-chord/-/d3-chord-3.0.6.tgz", "integrity": "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-color": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz", "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-contour": { "version": "3.0.6", @@ -14040,6 +14163,7 @@ "integrity": "sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@types/d3-array": "*", "@types/geojson": "*" @@ -14050,14 +14174,16 @@ "resolved": "https://registry.npmjs.org/@types/d3-delaunay/-/d3-delaunay-6.0.4.tgz", "integrity": "sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-dispatch": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/@types/d3-dispatch/-/d3-dispatch-3.0.7.tgz", "integrity": "sha512-5o9OIAdKkhN1QItV2oqaE5KMIiXAvDWBDPrD85e58Qlz1c1kI/J0NcqbEG88CoTwJrYe7ntUCVfeUl2UJKbWgA==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-drag": { "version": "3.0.7", @@ -14065,6 +14191,7 @@ "integrity": "sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@types/d3-selection": "*" } @@ -14074,14 +14201,16 @@ "resolved": "https://registry.npmjs.org/@types/d3-dsv/-/d3-dsv-3.0.7.tgz", "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-ease": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz", "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-fetch": { "version": "3.0.7", @@ -14089,6 +14218,7 @@ "integrity": "sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@types/d3-dsv": "*" } @@ -14098,14 +14228,16 @@ "resolved": "https://registry.npmjs.org/@types/d3-force/-/d3-force-3.0.10.tgz", "integrity": "sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-format": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/@types/d3-format/-/d3-format-3.0.4.tgz", "integrity": "sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-geo": { "version": "3.1.0", @@ -14113,6 +14245,7 @@ "integrity": "sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@types/geojson": "*" } @@ -14122,7 +14255,8 @@ "resolved": "https://registry.npmjs.org/@types/d3-hierarchy/-/d3-hierarchy-3.1.7.tgz", "integrity": "sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-interpolate": { "version": "3.0.4", @@ -14130,6 +14264,7 @@ "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@types/d3-color": "*" } @@ -14139,28 +14274,32 @@ "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz", "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-polygon": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/@types/d3-polygon/-/d3-polygon-3.0.2.tgz", "integrity": "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-quadtree": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz", "integrity": "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-random": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/d3-random/-/d3-random-3.0.3.tgz", "integrity": "sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-scale": { "version": "4.0.9", @@ -14168,6 +14307,7 @@ "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@types/d3-time": "*" } @@ -14177,14 +14317,16 @@ "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-selection": { "version": "3.0.11", "resolved": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.11.tgz", "integrity": "sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-shape": { "version": "3.1.8", @@ -14192,6 +14334,7 @@ "integrity": "sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@types/d3-path": "*" } @@ -14201,21 +14344,24 @@ "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz", "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-time-format": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-4.0.3.tgz", "integrity": "sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-timer": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz", "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/d3-transition": { "version": "3.0.9", @@ -14223,6 +14369,7 @@ "integrity": "sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@types/d3-selection": "*" } @@ -14233,6 +14380,7 @@ "integrity": "sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@types/d3-interpolate": "*", "@types/d3-selection": "*" @@ -14245,12 +14393,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/diff-match-patch": { - "version": "1.0.36", - "resolved": "https://registry.npmjs.org/@types/diff-match-patch/-/diff-match-patch-1.0.36.tgz", - "integrity": "sha512-xFdR6tkm0MWvBfO8xXCSsinYxHcqkQUlcHeSpMC2ukzOb6lwQAfDmW+Qt0AvlGd8HpsS28qKsB+oPeJn9I39jg==", - "license": "MIT" - }, "node_modules/@types/eslint": { "version": "9.6.1", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz", @@ -14357,7 +14499,8 @@ "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz", "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/google-spreadsheet": { "version": "3.1.5", @@ -14560,9 +14703,9 @@ } }, "node_modules/@types/papaparse": { - "version": "5.3.7", - "resolved": "https://registry.npmjs.org/@types/papaparse/-/papaparse-5.3.7.tgz", - "integrity": "sha512-f2HKmlnPdCvS0WI33WtCs5GD7X1cxzzS/aduaxSu3I7TbhWlENjSPs6z5TaB9K0J+BH1jbmqTaM+ja5puis4wg==", + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/@types/papaparse/-/papaparse-5.5.2.tgz", + "integrity": "sha512-gFnFp/JMzLHCwRf7tQHrNnfhN4eYBVYYI897CGX4MY1tzY9l2aLkVyx2IlKZ/SAqDbB3I1AOZW5gTMGGsqWliA==", "dev": true, "license": "MIT", "dependencies": { @@ -14634,6 +14777,17 @@ "@types/passport": "*" } }, + "node_modules/@types/pg": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/@types/pg/-/pg-8.20.0.tgz", + "integrity": "sha512-bEPFOaMAHTEP1EzpvHTbmwR8UsFyHSKsRisLIHVMXnpNefSbGA1bD6CVy+qKjGSqmZqNqBDV2azOBo8TgkcVow==", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "pg-protocol": "*", + "pg-types": "^2.2.0" + } + }, "node_modules/@types/qs": { "version": "6.15.0", "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.15.0.tgz", @@ -14649,10 +14803,10 @@ "license": "MIT" }, "node_modules/@types/react": { - "version": "19.2.14", - "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz", - "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==", - "dev": true, + "version": "19.1.12", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.12.tgz", + "integrity": "sha512-cMoR+FoAf/Jyq6+Df2/Z41jISvGZZ2eTlnsaJRptmZ76Caldwy1odD4xTr/gNV9VLj0AWgg/nmkevIyUfIIq5w==", + "devOptional": true, "license": "MIT", "peer": true, "dependencies": { @@ -14745,7 +14899,8 @@ "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/validator": { "version": "13.15.10", @@ -15757,11 +15912,21 @@ "integrity": "sha512-WbBhLrooyePuQ1VZxrJjtLvTc4NVfpOyKx0sKqioq9bX1C1m7Jgykkn8gLrtwumBioXIqam8DLxp88Adbue6Hw==", "license": "MIT", "optional": true, + "peer": true, "optionalDependencies": { "d3-selection": "^3.0.0", "d3-transition": "^3.0.1" } }, + "node_modules/@vercel/oidc": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@vercel/oidc/-/oidc-3.2.0.tgz", + "integrity": "sha512-UycprH3T6n3jH0k44NHMa7pnFHGu/N05MjojYr+Mc6I7obkoLIJujSWwin1pCvdy/eOxrI/l3uDLQsmcrOb4ug==", + "license": "Apache-2.0", + "engines": { + "node": ">= 20" + } + }, "node_modules/@vitejs/plugin-basic-ssl": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-2.1.4.tgz", @@ -16041,44 +16206,6 @@ "dev": true, "license": "BSD-2-Clause" }, - "node_modules/@yarnpkg/parsers": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@yarnpkg/parsers/-/parsers-3.0.2.tgz", - "integrity": "sha512-/HcYgtUSiJiot/XWGLOlGxPYUG65+/31V8oqk17vZLW1xlCoR4PampyePljOxY2n8/3jz9+tIFzICsyGujJZoA==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "js-yaml": "^3.10.0", - "tslib": "^2.4.0" - }, - "engines": { - "node": ">=18.12.0" - } - }, - "node_modules/@yarnpkg/parsers/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "license": "MIT", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/@yarnpkg/parsers/node_modules/js-yaml": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", - "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, "node_modules/@zkochan/js-yaml": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/@zkochan/js-yaml/-/js-yaml-0.0.7.tgz", @@ -16186,13 +16313,13 @@ } }, "node_modules/address": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/address/-/address-1.2.2.tgz", - "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/address/-/address-2.0.3.tgz", + "integrity": "sha512-XNAb/a6TCqou+TufU8/u11HCu9x1gYvOoxLwtlXgIqmkrYQADVv6ljyW2zwiPhHz9R1gItAWpuDrdJMmrOBFEA==", "dev": true, "license": "MIT", "engines": { - "node": ">= 10.0.0" + "node": ">= 16.0.0" } }, "node_modules/adjust-sourcemap-loader": { @@ -16235,13 +16362,13 @@ } }, "node_modules/adm-zip": { - "version": "0.5.17", - "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.17.tgz", - "integrity": "sha512-+Ut8d9LLqwEvHHJl1+PIHqoyDxFgVN847JTVM3Izi3xHDWPE4UtzzXysMZQs64DMcrJfBeS/uoEP4AD3HQHnQQ==", + "version": "0.5.10", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.10.tgz", + "integrity": "sha512-x0HvcHqVJNTPk/Bw8JbLWlWoo6Wwnsug0fnYYro1HBrjxZ3G7/AZk7Ahv8JwDe1uIcz8eBqvu86FuF1POiG7vQ==", "dev": true, "license": "MIT", "engines": { - "node": ">=12.0" + "node": ">=6.0" } }, "node_modules/agent-base": { @@ -16254,29 +16381,21 @@ } }, "node_modules/ai": { - "version": "4.3.16", - "resolved": "https://registry.npmjs.org/ai/-/ai-4.3.16.tgz", - "integrity": "sha512-KUDwlThJ5tr2Vw0A1ZkbDKNME3wzWhuVfAOwIvFUzl1TPVDFAXDFTXio3p+jaKneB+dKNCvFFlolYmmgHttG1g==", + "version": "6.0.174", + "resolved": "https://registry.npmjs.org/ai/-/ai-6.0.174.tgz", + "integrity": "sha512-bTrfLUWHWtkjzWyCY4bmyuk4Qvmj4S4NSNsXyNSVVqkmftQNtxRj7dzUoMeQDBBwlJO6fC7m2Q/lNOPqQQfAGA==", "license": "Apache-2.0", "dependencies": { - "@ai-sdk/provider": "1.1.3", - "@ai-sdk/provider-utils": "2.2.8", - "@ai-sdk/react": "1.2.12", - "@ai-sdk/ui-utils": "1.2.11", - "@opentelemetry/api": "1.9.0", - "jsondiffpatch": "0.6.0" + "@ai-sdk/gateway": "3.0.109", + "@ai-sdk/provider": "3.0.10", + "@ai-sdk/provider-utils": "4.0.26", + "@opentelemetry/api": "1.9.0" }, "engines": { "node": ">=18" }, "peerDependencies": { - "react": "^18 || ^19 || ^19.0.0-rc", - "zod": "^3.23.8" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - } + "zod": "^3.25.76 || ^4.1.8" } }, "node_modules/ajv": { @@ -16669,6 +16788,7 @@ "version": "3.2.6", "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", + "dev": true, "license": "MIT" }, "node_modules/async-function": { @@ -16688,16 +16808,6 @@ "dev": true, "license": "MIT" }, - "node_modules/at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">= 4.0.0" - } - }, "node_modules/autoprefixer": { "version": "10.4.27", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.27.tgz", @@ -16751,16 +16861,26 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/aws-ssl-profiles": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/aws-ssl-profiles/-/aws-ssl-profiles-1.1.2.tgz", + "integrity": "sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">= 6.0.0" + } + }, "node_modules/axios": { - "version": "1.13.5", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.5.tgz", - "integrity": "sha512-cz4ur7Vb0xS4/KUN0tPWe44eqxrIu31me+fbang3ijiNscE129POzipJJA6zniq2C/Z6sJCjMimjS8Lc/GAs8Q==", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.16.0.tgz", + "integrity": "sha512-6hp5CwvTPlN2A31g5dxnwAX0orzM7pmCRDLnZSX772mv8WDqICwFjowHuPs04Mc8deIld1+ejhtaMn5vp6b+1w==", "dev": true, "license": "MIT", "dependencies": { - "follow-redirects": "^1.15.11", + "follow-redirects": "^1.16.0", "form-data": "^4.0.5", - "proxy-from-env": "^1.1.0" + "proxy-from-env": "^2.1.0" } }, "node_modules/axobject-query": { @@ -16795,23 +16915,6 @@ "@babel/core": "^7.11.0 || ^8.0.0-0" } }, - "node_modules/babel-jest/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/babel-loader": { "version": "10.0.0", "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-10.0.0.tgz", @@ -17003,6 +17106,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, "license": "MIT" }, "node_modules/base64-js": { @@ -17093,6 +17197,13 @@ "node": ">=18.0.0" } }, + "node_modules/better-result": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/better-result/-/better-result-2.8.2.tgz", + "integrity": "sha512-YOf0VSj5nUPI27doTtXF+BBnsiRq3qY7avHqfIWnppxTLGyvkLq1QV2RTxkwoZwJ60ywLfZ0raFF4J/G886i7A==", + "devOptional": true, + "license": "MIT" + }, "node_modules/bidi-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.0.3.tgz", @@ -17395,27 +17506,27 @@ } }, "node_modules/c12": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/c12/-/c12-3.1.0.tgz", - "integrity": "sha512-uWoS8OU1MEIsOv8p/5a82c3H31LsWVR5qiyXVfBNOzfffjUWtPnhAb4BYI2uG2HfGmZmFjCtui5XNWaps+iFuw==", + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/c12/-/c12-3.3.4.tgz", + "integrity": "sha512-cM0ApFQSBXuourJejzwv/AuPRvAxordTyParRVcHjjtXirtkzM0uK2L9TTn9s0cXZbG7E55jCivRQzoxYmRAlA==", "devOptional": true, "license": "MIT", "dependencies": { - "chokidar": "^4.0.3", - "confbox": "^0.2.2", - "defu": "^6.1.4", - "dotenv": "^16.6.1", - "exsolve": "^1.0.7", - "giget": "^2.0.0", - "jiti": "^2.4.2", + "chokidar": "^5.0.0", + "confbox": "^0.2.4", + "defu": "^6.1.6", + "dotenv": "^17.3.1", + "exsolve": "^1.0.8", + "giget": "^3.2.0", + "jiti": "^2.6.1", "ohash": "^2.0.11", "pathe": "^2.0.3", - "perfect-debounce": "^1.0.0", - "pkg-types": "^2.2.0", - "rc9": "^2.1.2" + "perfect-debounce": "^2.1.0", + "pkg-types": "^2.3.0", + "rc9": "^3.0.1" }, "peerDependencies": { - "magicast": "^0.3.5" + "magicast": "*" }, "peerDependenciesMeta": { "magicast": { @@ -17423,22 +17534,6 @@ } } }, - "node_modules/c12/node_modules/chokidar": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", - "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", - "devOptional": true, - "license": "MIT", - "dependencies": { - "readdirp": "^4.0.1" - }, - "engines": { - "node": ">= 14.16.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, "node_modules/c12/node_modules/confbox": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.4.tgz", @@ -17447,9 +17542,9 @@ "license": "MIT" }, "node_modules/c12/node_modules/dotenv": { - "version": "16.6.1", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", - "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", + "version": "17.4.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz", + "integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==", "devOptional": true, "license": "BSD-2-Clause", "engines": { @@ -17459,30 +17554,26 @@ "url": "https://dotenvx.com" } }, - "node_modules/c12/node_modules/pkg-types": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.3.0.tgz", - "integrity": "sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==", + "node_modules/c12/node_modules/jiti": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", + "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", "devOptional": true, "license": "MIT", - "dependencies": { - "confbox": "^0.2.2", - "exsolve": "^1.0.7", - "pathe": "^2.0.3" + "bin": { + "jiti": "lib/jiti-cli.mjs" } }, - "node_modules/c12/node_modules/readdirp": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", - "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "node_modules/c12/node_modules/pkg-types": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.3.1.tgz", + "integrity": "sha512-y+ichcgc2LrADuhLNAx8DFjVfgz91pRxfZdI3UDhxHvcVEZsenLO+7XaU5vOp0u/7V/wZ+plyuQxtrDlZJ+yeg==", "devOptional": true, "license": "MIT", - "engines": { - "node": ">= 14.18.0" - }, - "funding": { - "type": "individual", - "url": "https://paulmillr.com/funding/" + "dependencies": { + "confbox": "^0.2.4", + "exsolve": "^1.0.8", + "pathe": "^2.0.3" } }, "node_modules/cacache": { @@ -17742,9 +17833,9 @@ } }, "node_modules/chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "license": "MIT", "dependencies": { @@ -17752,7 +17843,10 @@ "supports-color": "^7.1.0" }, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, "node_modules/change-case": { @@ -17937,6 +18031,7 @@ "integrity": "sha512-csJvb+6kEiQaqo1woTdSAuOWdN0WTLIydkKrBnS+V5gZz0oqBrp4kQ35519QgK6TpBThiG3V1vNSHlIkv4AglQ==", "license": "Apache-2.0", "optional": true, + "peer": true, "dependencies": { "@chevrotain/cst-dts-gen": "12.0.0", "@chevrotain/gast": "12.0.0", @@ -17954,6 +18049,7 @@ "integrity": "sha512-PvVJm3oGqrveUVW2Vt/eZGeiAIsJszYweUcYwcskg9e+IubNYKKD+rHHem7A6XVO22eDAL+inxNIGAzZ/VIWlA==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "lodash-es": "^4.17.21" }, @@ -18012,16 +18108,6 @@ "node": ">=8" } }, - "node_modules/citty": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/citty/-/citty-0.1.6.tgz", - "integrity": "sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==", - "devOptional": true, - "license": "MIT", - "dependencies": { - "consola": "^3.2.3" - } - }, "node_modules/cjs-module-lexer": { "version": "1.4.3", "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", @@ -18171,6 +18257,7 @@ "integrity": "sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "good-listener": "^1.2.2", "select": "^1.1.2", @@ -18431,14 +18518,13 @@ } }, "node_modules/comment-json": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/comment-json/-/comment-json-4.4.1.tgz", - "integrity": "sha512-r1To31BQD5060QdkC+Iheai7gHwoSZobzunqkf2/kQ6xIAfJyrKNAFUwdKvkK7Qgu7pVTKQEa7ok7Ed3ycAJgg==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/comment-json/-/comment-json-5.0.0.tgz", + "integrity": "sha512-uiqLcOiVDJtBP8WGkZHEP+FZIhTzP1dxvn59EfoYUi9gqupjrBWVQkO2atDrbnKPwLeotFYDsuNb26uBMqB+hw==", "dev": true, "license": "MIT", "dependencies": { "array-timsort": "^1.0.3", - "core-util-is": "^1.0.3", "esprima": "^4.0.1" }, "engines": { @@ -18528,7 +18614,8 @@ "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/confusing-browser-globals": { "version": "1.0.11", @@ -18703,6 +18790,7 @@ "integrity": "sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "layout-base": "^1.0.0" } @@ -18735,9 +18823,9 @@ } }, "node_modules/countries-and-timezones": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/countries-and-timezones/-/countries-and-timezones-3.8.0.tgz", - "integrity": "sha512-+Ze9h5f4dQpUwbzTm0DEkiPiZyim9VHV4/mSnT4zNYJnrnfwsKjAZPtnp7J5VzejCDgySs+2SSc6MDdCnD43GA==", + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/countries-and-timezones/-/countries-and-timezones-3.9.0.tgz", + "integrity": "sha512-3upkVtUfZgdp5xOQI/Deg1ye73ae6bygJMO4UvtUi6wLjwcj7cBqx2PzSZ1VL8i5iveBbjhsQp2Judx7kPKivA==", "license": "MIT", "engines": { "node": ">=8.x", @@ -18751,9 +18839,9 @@ "license": "MIT" }, "node_modules/countup.js": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/countup.js/-/countup.js-2.9.0.tgz", - "integrity": "sha512-llqrvyXztRFPp6+i8jx25phHWcVWhrHO4Nlt0uAOSKHB8778zzQswa4MU3qKBvkXfJKftRYFJuVHez67lyKdHg==", + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/countup.js/-/countup.js-2.10.0.tgz", + "integrity": "sha512-QQpZx7oYxsR+OeITlZe46fY/OQjV11oBqjY8wgIXzLU2jIz8GzOrbMhqKLysGY8bWI3T1ZNrYkwGzKb4JNgyzg==", "license": "MIT" }, "node_modules/create-require": { @@ -18801,53 +18889,11 @@ "node-fetch": "^2.7.0" } }, - "node_modules/cross-fetch/node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/cross-fetch/node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "license": "MIT" - }, - "node_modules/cross-fetch/node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "license": "BSD-2-Clause" - }, - "node_modules/cross-fetch/node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, "node_modules/cross-spawn": { "version": "7.0.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, + "devOptional": true, "license": "MIT", "dependencies": { "path-key": "^3.1.0", @@ -18952,6 +18998,554 @@ } } }, + "node_modules/css-minimizer-webpack-plugin/node_modules/cssnano": { + "version": "7.1.9", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-7.1.9.tgz", + "integrity": "sha512-uPR75+5Dk/WJ/YSPR1/YDHdwMM9c5FsaARljfKWgeCKLKOtJ0we21xy/RcCjn53fZnD/f6yYEIZ8pu18+GnbNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssnano-preset-default": "^7.0.17", + "lilconfig": "^3.1.3" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/cssnano" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/cssnano-preset-default": { + "version": "7.0.17", + "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-7.0.17.tgz", + "integrity": "sha512-11qO63A+czwguQFJCaTdICvbaxn0pJzz/XghLlv+OT7WyToDxAMR0Xb3/26/l0y0hQJywwNbj/SLSQlGBHE1OA==", + "dev": true, + "license": "MIT", + "dependencies": { + "browserslist": "^4.28.2", + "css-declaration-sorter": "^7.2.0", + "cssnano-utils": "^5.0.3", + "postcss-calc": "^10.1.1", + "postcss-colormin": "^7.0.10", + "postcss-convert-values": "^7.0.12", + "postcss-discard-comments": "^7.0.8", + "postcss-discard-duplicates": "^7.0.4", + "postcss-discard-empty": "^7.0.3", + "postcss-discard-overridden": "^7.0.3", + "postcss-merge-longhand": "^7.0.7", + "postcss-merge-rules": "^7.0.11", + "postcss-minify-font-values": "^7.0.3", + "postcss-minify-gradients": "^7.0.5", + "postcss-minify-params": "^7.0.9", + "postcss-minify-selectors": "^7.1.2", + "postcss-normalize-charset": "^7.0.3", + "postcss-normalize-display-values": "^7.0.3", + "postcss-normalize-positions": "^7.0.4", + "postcss-normalize-repeat-style": "^7.0.4", + "postcss-normalize-string": "^7.0.3", + "postcss-normalize-timing-functions": "^7.0.3", + "postcss-normalize-unicode": "^7.0.9", + "postcss-normalize-url": "^7.0.3", + "postcss-normalize-whitespace": "^7.0.3", + "postcss-ordered-values": "^7.0.4", + "postcss-reduce-initial": "^7.0.9", + "postcss-reduce-transforms": "^7.0.3", + "postcss-svgo": "^7.1.3", + "postcss-unique-selectors": "^7.0.7" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/cssnano-utils": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-5.0.3.tgz", + "integrity": "sha512-ynIREMICLxkxm7e9bCR9sh75s4Q5drICi0ua1yxo5jH2XPBqSKkl4dOh4EbFqtUmnTMhRffHgYL0EKKkMjtJTg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss": { + "version": "8.5.15", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", + "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.12", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-colormin": { + "version": "7.0.10", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-7.0.10.tgz", + "integrity": "sha512-yFr6JezOolHLta/buLE71VKPh2mXursp4saVe98/ol8ZnEWhL+racShqPKlvd/DKWLre/39B6HhcMXf7RZ3hxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@colordx/core": "^5.4.3", + "browserslist": "^4.28.2", + "caniuse-api": "^3.0.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-convert-values": { + "version": "7.0.12", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-7.0.12.tgz", + "integrity": "sha512-xurKu5qqk4viR3Cp3p4xBR4KfnZm4w4ys6+UBwBmeuBSNkH7+DtLnYOYnOffgtE4yx8sH9S1VZ6RAAvROXzP2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "browserslist": "^4.28.2", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-discard-comments": { + "version": "7.0.8", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-7.0.8.tgz", + "integrity": "sha512-CvvS5S9WrXblFXCEJ9nVo+4z+eA7zSC7Z88V1HEJuwlQhlFnYTIjg1xJY+BCUiG2bvICap2tXii4mP22BD108Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^7.1.1" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-discard-duplicates": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-7.0.4.tgz", + "integrity": "sha512-VBNn1+EuMZkeGVVtz0gRfbNGtx9IFgAsAV+E2pHtXPrp4qfGBkhTIiAuE/wrb+Y6Pakg9NewAlfTpYIFAWODtw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-discard-empty": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-7.0.3.tgz", + "integrity": "sha512-M2pyjQCU+/7cMHVtL6bKTHjv0lZnPLMpicgr67Dlth7AbuV9gjVTtUqaRwn6Pp6BwSDspUzhz8SaUrRykJU5Dw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-discard-overridden": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-7.0.3.tgz", + "integrity": "sha512-aNovXo9UsZuRNLzHJtp13lHIvinDPfiXBPePpXkSjCbgp++iU2FqE+YxvjIsg6EdyPZsASFbfu+JcBFVsErXIQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-merge-longhand": { + "version": "7.0.7", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-7.0.7.tgz", + "integrity": "sha512-b3mfYUxR388u5Pt0HPcVIUtUDn/k15UfTY9M+ORW+meCR6JLNxoZffiYvXyOYQoRYQNZyX/UFkMCM/mNHxe1qA==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0", + "stylehacks": "^7.0.11" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-merge-rules": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-7.0.11.tgz", + "integrity": "sha512-SJUPM18g2BmPhf8BVlbwqWz4aK3pLu6u6xjfwEzra7xL6IBR10sUaiB++EzqcVfadPHrKBSMlNdP+XieykhI+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "browserslist": "^4.28.2", + "caniuse-api": "^3.0.0", + "cssnano-utils": "^5.0.3", + "postcss-selector-parser": "^7.1.1" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-minify-font-values": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-7.0.3.tgz", + "integrity": "sha512-yilG/VOaNI74IylQvAQQxm3/wZVBkXyYUqNUAdxqwtbWUXPsbK1q8Ms0mL83v+f8YicgcyfYCRZtWACUdYajpA==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-minify-gradients": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-7.0.5.tgz", + "integrity": "sha512-YraROyQRg3BI1+Hg8E05B/JPdnTm8EDSVu4P2BxdM+CRiOyfmou809+chGIqo6fQqwjPGQ947nbGncSjmTU1WQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@colordx/core": "^5.4.3", + "cssnano-utils": "^5.0.3", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-minify-params": { + "version": "7.0.9", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-7.0.9.tgz", + "integrity": "sha512-R8itbB8BhlpoYyBm1ou0dD+vJnQ3F6adQipR4UnkCHUwlo+S9WXJaDRg1RHjC8YVAtIdrQzSWvJl40HnGDTKjA==", + "dev": true, + "license": "MIT", + "dependencies": { + "browserslist": "^4.28.2", + "cssnano-utils": "^5.0.3", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-minify-selectors": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-7.1.2.tgz", + "integrity": "sha512-aQtrEWKwqafNlExcKHQvPGsXR2+vlUqqJtf5XsCQcgsSb5PL4wlujWBYDJuWsP4UnQX1YHDHU8qRlD+1PzTQ+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "browserslist": "^4.28.1", + "caniuse-api": "^3.0.0", + "cssesc": "^3.0.0", + "postcss-selector-parser": "^7.1.1" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-normalize-charset": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-7.0.3.tgz", + "integrity": "sha512-NoBfZu8PR4c2NlmjvrqQTzCzLY79hwcSRgNQ3ZiNK0ABzf9kYKloE/jNj+/8GQY1wsm8pRRgANk6ydLH8cwo0Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-normalize-display-values": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-7.0.3.tgz", + "integrity": "sha512-ldsCX0QIt05pKIOobZtVQ48wXJecr+czw4+e1/YjVhLMqslShgpVxgPtI2CefURR8oyVoYaU/l829MMwExDMLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-normalize-positions": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-7.0.4.tgz", + "integrity": "sha512-VEvlpeGd3Ju1Hqa/oN4jaP3+ms4laYwkEL9N9u+B6k54PZjXbW1n6wI+aVprf1BQXlCYpS5+1pl/7/vHiKgARg==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-normalize-repeat-style": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-7.0.4.tgz", + "integrity": "sha512-6mPKlY/8cSaDHxX502wERADarJsccwlky6yIrOapHH2ZgfoKAV94SbiTKfKEs4EEpdazuc3J72WsqeYk7hp9+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-normalize-string": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-7.0.3.tgz", + "integrity": "sha512-HnEQPUchi1eznmDKEYrKUTqrprEq97SrpUYClgUkv7V2zRODD9DFoUsYU+m9ZOetmD5ku7fEMZB/lwy8IT6xVQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-normalize-timing-functions": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-7.0.3.tgz", + "integrity": "sha512-zmEzHdvpZBZu0OKlbJSfgASQvaayyAoVuWtvyr34IJ/LyS+DaOKvvR3EvFJ9RWWtNIx+CMvO125OVophaxNYew==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-normalize-unicode": { + "version": "7.0.9", + "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-7.0.9.tgz", + "integrity": "sha512-DRAdWfeh/TjmhLJsw91vdiWCnUod9iwvM7xyS02/nF/sLsCR3A8l3pztrSUrWG8DSBqfX7yEk9FM0USaVJ2mSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "browserslist": "^4.28.2", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-normalize-url": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-7.0.3.tgz", + "integrity": "sha512-CL93wmloq5qsffmFv+bw24MIRbmhHrp53qoh1LDAb/5TtjWEXI/np4xcP/Gw9oWCb2XyWnqHYLDUwiKRoJBA1Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-normalize-whitespace": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-7.0.3.tgz", + "integrity": "sha512-FdHjjn+Ht5Z2ZRjNOmeCbNq6lq09sUYKpmlF/Aq0XjVNSLTL6fmHlA/3swN2wP2caY9GV/tjSDcIIyS7aN7W0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-ordered-values": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-7.0.4.tgz", + "integrity": "sha512-nubSi49hDHQk4E8KIj+IbLY8Bg+8OcSUEhgyolgM+atnOvXjV7EjaR6bac4YGZoFyPa9mWoAF3EaYbWdFkKqVg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssnano-utils": "^5.0.3", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-reduce-initial": { + "version": "7.0.9", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-7.0.9.tgz", + "integrity": "sha512-ztTNPdIxXTxtBcG03E9u8v44M4ElXbMIRT7pf2onlquGula0Y83nKKxqM22FA/hMgkfCjN7ohevkVlaNwI8iOQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "browserslist": "^4.28.2", + "caniuse-api": "^3.0.0" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-reduce-transforms": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-7.0.3.tgz", + "integrity": "sha512-FXsnN9ZwcZTT8Yf8cAHA8qIGUXcX6WfLd9JoYhrdDfmvsVhhfqkkv7m4AC3rwFOfz+GzkUa87OCKF9dUcicd+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-svgo": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-7.1.3.tgz", + "integrity": "sha512-2QfoFOYMcj8lwcVEf9WeTlkVIAm7u2QvOEhMzkQU3KUhhGX/l8hVV9EtjMv4iq3E9iI3OeeMN0YoMLbGusuigw==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0", + "svgo": "^4.0.1" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >= 18" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/postcss-unique-selectors": { + "version": "7.0.7", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-7.0.7.tgz", + "integrity": "sha512-d+sCkaRnSefghOUdH8CMJZV9yUQhj2ojpe8Nw/lA+LV1UOfeleGkLTl6XdCFFSai9UJ+DJPb69FFuqthXYsY8w==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^7.1.1" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/stylehacks": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-7.0.11.tgz", + "integrity": "sha512-iODNfhXVLqc5LADs+Y6Oh5wJuK5ZcHbVng8aiK3y9pjMQdc5hLrBW0eFU6FtnpNrE6PoEg/MmFTU4waotj5WNg==", + "dev": true, + "license": "MIT", + "dependencies": { + "browserslist": "^4.28.2", + "postcss-selector-parser": "^7.1.1" + }, + "engines": { + "node": "^18.12.0 || ^20.9.0 || >=22.0" + }, + "peerDependencies": { + "postcss": "^8.5.13" + } + }, "node_modules/css-select": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/css-select/-/css-select-6.0.0.tgz", @@ -19014,85 +19608,6 @@ "node": ">=4" } }, - "node_modules/cssnano": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-7.1.4.tgz", - "integrity": "sha512-T9PNS7y+5Nc9Qmu9mRONqfxG1RVY7Vuvky0XN6MZ+9hqplesTEwnj9r0ROtVuSwUVfaDhVlavuzWIVLUgm4hkQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "cssnano-preset-default": "^7.0.12", - "lilconfig": "^3.1.3" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/cssnano" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/cssnano-preset-default": { - "version": "7.0.12", - "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-7.0.12.tgz", - "integrity": "sha512-B3Eoouzw/sl2zANI0AL9KbacummJTCww+fkHaDBMZad/xuVx8bUduPLly6hKVQAlrmvYkS1jB1CVQEKm3gn0AA==", - "dev": true, - "license": "MIT", - "dependencies": { - "browserslist": "^4.28.1", - "css-declaration-sorter": "^7.2.0", - "cssnano-utils": "^5.0.1", - "postcss-calc": "^10.1.1", - "postcss-colormin": "^7.0.7", - "postcss-convert-values": "^7.0.9", - "postcss-discard-comments": "^7.0.6", - "postcss-discard-duplicates": "^7.0.2", - "postcss-discard-empty": "^7.0.1", - "postcss-discard-overridden": "^7.0.1", - "postcss-merge-longhand": "^7.0.5", - "postcss-merge-rules": "^7.0.8", - "postcss-minify-font-values": "^7.0.1", - "postcss-minify-gradients": "^7.0.2", - "postcss-minify-params": "^7.0.6", - "postcss-minify-selectors": "^7.0.6", - "postcss-normalize-charset": "^7.0.1", - "postcss-normalize-display-values": "^7.0.1", - "postcss-normalize-positions": "^7.0.1", - "postcss-normalize-repeat-style": "^7.0.1", - "postcss-normalize-string": "^7.0.1", - "postcss-normalize-timing-functions": "^7.0.1", - "postcss-normalize-unicode": "^7.0.6", - "postcss-normalize-url": "^7.0.1", - "postcss-normalize-whitespace": "^7.0.1", - "postcss-ordered-values": "^7.0.2", - "postcss-reduce-initial": "^7.0.6", - "postcss-reduce-transforms": "^7.0.1", - "postcss-svgo": "^7.1.1", - "postcss-unique-selectors": "^7.0.5" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/cssnano-utils": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-5.0.1.tgz", - "integrity": "sha512-ZIP71eQgG9JwjVZsTPSqhc6GHgEr53uJ7tK5///VfyWj6Xp2DBmixWHqJgPno+PqATzn48pL42ww9x5SSGmhZg==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, "node_modules/csso": { "version": "5.0.5", "resolved": "https://registry.npmjs.org/csso/-/csso-5.0.5.tgz", @@ -19283,7 +19798,7 @@ "version": "3.2.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", - "dev": true, + "devOptional": true, "license": "MIT", "peer": true }, @@ -19293,6 +19808,7 @@ "integrity": "sha512-sj4HXd3DokGhzZAdjDejGvTPLqlt84vNFN8m7bGsOzDY5DyVcxIb2ejIXat2Iy7HxWhdT/N1oKyheJ5YdpsGuw==", "license": "MIT", "optional": true, + "peer": true, "engines": { "node": ">=0.10" } @@ -19303,6 +19819,7 @@ "integrity": "sha512-wgQlVIUJF13Quxiv5e1gstZ08rnZj2XaLHGoFMYXz7SkNfCDOOteKBE6SYRfA9WxxI/iBc3ajfDoc6hb/MRAHQ==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "cose-base": "^1.0.0" }, @@ -19316,6 +19833,7 @@ "integrity": "sha512-ki1/VuRIHFCzxWNrsshHYPs6L7TvLu3DL+TyIGEsRcvVERmxokbf5Gdk7mFxZnTdiGtnA4cfSmjZJMviqSuZrQ==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "cose-base": "^2.2.0" }, @@ -19329,6 +19847,7 @@ "integrity": "sha512-AzlgcsCbUMymkADOJtQm3wO9S3ltPfYOFD5033keQn9NJzIbtnZj+UdBJe7DYml/8TdbtHJW3j58SOnKhWY/5g==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "layout-base": "^2.0.0" } @@ -19338,7 +19857,8 @@ "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-2.0.1.tgz", "integrity": "sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/d3": { "version": "7.9.0", @@ -19346,6 +19866,7 @@ "integrity": "sha512-e1U46jVP+w7Iut8Jt8ri1YsPOvFpg46k+K8TpCb0P+zjCkjkPnV7WzfDJzMHy1LnA+wj5pLT1wjO901gLXeEhA==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "d3-array": "3", "d3-axis": "3", @@ -19388,6 +19909,7 @@ "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "internmap": "1 - 2" }, @@ -19401,6 +19923,7 @@ "integrity": "sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw==", "license": "ISC", "optional": true, + "peer": true, "engines": { "node": ">=12" } @@ -19411,6 +19934,7 @@ "integrity": "sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "d3-dispatch": "1 - 3", "d3-drag": "2 - 3", @@ -19428,6 +19952,7 @@ "integrity": "sha512-VE5S6TNa+j8msksl7HwjxMHDM2yNK3XCkusIlpX5kwauBfXuyLAtNg9jCp/iHH61tgI4sb6R/EIMWCqEIdjT/g==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "d3-path": "1 - 3" }, @@ -19441,6 +19966,7 @@ "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", "license": "ISC", "optional": true, + "peer": true, "engines": { "node": ">=12" } @@ -19451,6 +19977,7 @@ "integrity": "sha512-4EzFTRIikzs47RGmdxbeUvLWtGedDUNkTcmzoeyg4sP/dvCexO47AaQL7VKy/gul85TOxw+IBgA8US2xwbToNA==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "d3-array": "^3.2.0" }, @@ -19464,6 +19991,7 @@ "integrity": "sha512-mdjtIZ1XLAM8bm/hx3WwjfHt6Sggek7qH043O8KEjDXN40xi3vx/6pYSVTwLjEgiXQTbvaouWKynLBiUZ6SK6A==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "delaunator": "5" }, @@ -19477,6 +20005,7 @@ "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==", "license": "ISC", "optional": true, + "peer": true, "engines": { "node": ">=12" } @@ -19487,6 +20016,7 @@ "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "d3-dispatch": "1 - 3", "d3-selection": "3" @@ -19501,6 +20031,7 @@ "integrity": "sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "commander": "7", "iconv-lite": "0.6", @@ -19527,6 +20058,7 @@ "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "license": "MIT", "optional": true, + "peer": true, "engines": { "node": ">= 10" } @@ -19537,6 +20069,7 @@ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -19550,6 +20083,7 @@ "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", "license": "BSD-3-Clause", "optional": true, + "peer": true, "engines": { "node": ">=12" } @@ -19560,6 +20094,7 @@ "integrity": "sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "d3-dsv": "1 - 3" }, @@ -19573,6 +20108,7 @@ "integrity": "sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "d3-dispatch": "1 - 3", "d3-quadtree": "1 - 3", @@ -19588,6 +20124,7 @@ "integrity": "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==", "license": "ISC", "optional": true, + "peer": true, "engines": { "node": ">=12" } @@ -19598,6 +20135,7 @@ "integrity": "sha512-637ln3gXKXOwhalDzinUgY83KzNWZRKbYubaG+fGVuc/dxO64RRljtCTnf5ecMyE1RIdtqpkVcq0IbtU2S8j2Q==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "d3-array": "2.5.0 - 3" }, @@ -19611,6 +20149,7 @@ "integrity": "sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==", "license": "ISC", "optional": true, + "peer": true, "engines": { "node": ">=12" } @@ -19621,6 +20160,7 @@ "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "d3-color": "1 - 3" }, @@ -19634,6 +20174,7 @@ "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==", "license": "ISC", "optional": true, + "peer": true, "engines": { "node": ">=12" } @@ -19644,6 +20185,7 @@ "integrity": "sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg==", "license": "ISC", "optional": true, + "peer": true, "engines": { "node": ">=12" } @@ -19654,6 +20196,7 @@ "integrity": "sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==", "license": "ISC", "optional": true, + "peer": true, "engines": { "node": ">=12" } @@ -19664,6 +20207,7 @@ "integrity": "sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ==", "license": "ISC", "optional": true, + "peer": true, "engines": { "node": ">=12" } @@ -19674,6 +20218,7 @@ "integrity": "sha512-nQhsBRmM19Ax5xEIPLMY9ZmJ/cDvd1BG3UVvt5h3WRxKg5zGRbvnteTyWAbzeSvlh3tW7ZEmq4VwR5mB3tutmQ==", "license": "BSD-3-Clause", "optional": true, + "peer": true, "dependencies": { "d3-array": "1 - 2", "d3-shape": "^1.2.0" @@ -19685,6 +20230,7 @@ "integrity": "sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ==", "license": "BSD-3-Clause", "optional": true, + "peer": true, "dependencies": { "internmap": "^1.0.0" } @@ -19694,7 +20240,8 @@ "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz", "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==", "license": "BSD-3-Clause", - "optional": true + "optional": true, + "peer": true }, "node_modules/d3-sankey/node_modules/d3-shape": { "version": "1.3.7", @@ -19702,6 +20249,7 @@ "integrity": "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==", "license": "BSD-3-Clause", "optional": true, + "peer": true, "dependencies": { "d3-path": "1" } @@ -19711,7 +20259,8 @@ "resolved": "https://registry.npmjs.org/internmap/-/internmap-1.0.1.tgz", "integrity": "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==", "license": "ISC", - "optional": true + "optional": true, + "peer": true }, "node_modules/d3-scale": { "version": "4.0.2", @@ -19719,6 +20268,7 @@ "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "d3-array": "2.10.0 - 3", "d3-format": "1 - 3", @@ -19736,6 +20286,7 @@ "integrity": "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "d3-color": "1 - 3", "d3-interpolate": "1 - 3" @@ -19750,6 +20301,7 @@ "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==", "license": "ISC", "optional": true, + "peer": true, "engines": { "node": ">=12" } @@ -19760,6 +20312,7 @@ "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "d3-path": "^3.1.0" }, @@ -19773,6 +20326,7 @@ "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "d3-array": "2 - 3" }, @@ -19786,6 +20340,7 @@ "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "d3-time": "1 - 3" }, @@ -19799,6 +20354,7 @@ "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", "license": "ISC", "optional": true, + "peer": true, "engines": { "node": ">=12" } @@ -19809,6 +20365,7 @@ "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "d3-color": "1 - 3", "d3-dispatch": "1 - 3", @@ -19829,6 +20386,7 @@ "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "d3-dispatch": "1 - 3", "d3-drag": "2 - 3", @@ -19846,6 +20404,7 @@ "integrity": "sha512-P4rFMVq9ESWqmOgK+dlXvOtLwYg0i7u0HBGJER0LZDJT2VHIPAMZ/riPxqJceWMStH5+E61QxFra9kIS3AqdMg==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "d3": "^7.9.0", "lodash-es": "^4.17.21" @@ -19946,14 +20505,8 @@ "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.20.tgz", "integrity": "sha512-YbwwqR/uYpeoP4pu043q+LTDLFBLApUP6VxRihdfNTqu4ubqMlGDLd6ErXhEgsyvY0K6nCs7nggYumAN+9uEuQ==", "license": "MIT", - "optional": true - }, - "node_modules/debounce": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz", - "integrity": "sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==", - "dev": true, - "license": "MIT" + "optional": true, + "peer": true }, "node_modules/debug": { "version": "4.4.3", @@ -20142,6 +20695,7 @@ "integrity": "sha512-AGrQ4QSgssa1NGmWmLPqN5NY2KajF5MqxetNEO+o0n3ZwZZeTmt7bBnvzHWrmkZFxGgr4HdyFgelzgi06otLuQ==", "license": "ISC", "optional": true, + "peer": true, "dependencies": { "robust-predicates": "^3.0.2" } @@ -20161,7 +20715,8 @@ "resolved": "https://registry.npmjs.org/delegate/-/delegate-3.2.0.tgz", "integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/denque": { "version": "2.1.0", @@ -20185,7 +20740,9 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6" } @@ -20236,21 +20793,20 @@ "license": "MIT" }, "node_modules/detect-port": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/detect-port/-/detect-port-1.6.1.tgz", - "integrity": "sha512-CmnVc+Hek2egPx1PeTFVta2W78xy2K/9Rkf6cC4T59S50tVnzKj+tnx5mmx5lwvCkujZ4uRrpRSuV+IVs3f90Q==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-port/-/detect-port-2.1.0.tgz", + "integrity": "sha512-epZuWb/6Q62L+nDHJc/hQAqf8pylsqgk3BpZXVBx1CDnr3nkrVNn73Uu1rXcFzkNcc+hkP3whuOg7JZYaQB65Q==", "dev": true, "license": "MIT", "dependencies": { - "address": "^1.0.1", - "debug": "4" + "address": "^2.0.1" }, "bin": { - "detect": "bin/detect-port.js", - "detect-port": "bin/detect-port.js" + "detect": "dist/commonjs/bin/detect-port.js", + "detect-port": "dist/commonjs/bin/detect-port.js" }, "engines": { - "node": ">= 4.0.0" + "node": ">= 16.0.0" } }, "node_modules/diff": { @@ -20263,12 +20819,6 @@ "node": ">=0.3.1" } }, - "node_modules/diff-match-patch": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.5.tgz", - "integrity": "sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==", - "license": "Apache-2.0" - }, "node_modules/dns-packet": { "version": "5.6.1", "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.1.tgz", @@ -20360,6 +20910,7 @@ "integrity": "sha512-Oj6pzI2+RqBfFG+qOaOLbFXLQ90ARpcGG6UePL82bJLtdsa6CYJD7nmiU8MW9nQNOtCHV3lZ/Bzq1X0QYbBZCA==", "license": "(MPL-2.0 OR Apache-2.0)", "optional": true, + "peer": true, "optionalDependencies": { "@types/trusted-types": "^2.0.7" } @@ -20442,13 +20993,6 @@ "node": ">= 0.4" } }, - "node_modules/duplexer": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", - "dev": true, - "license": "MIT" - }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", @@ -20472,9 +21016,9 @@ "license": "MIT" }, "node_modules/effect": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/effect/-/effect-3.21.0.tgz", - "integrity": "sha512-PPN80qRokCd1f015IANNhrwOnLO7GrrMQfk4/lnZRE/8j7UPWrNNjPV0uBrZutI/nHzernbW+J0hdqQysHiSnQ==", + "version": "3.20.0", + "resolved": "https://registry.npmjs.org/effect/-/effect-3.20.0.tgz", + "integrity": "sha512-qMLfDJscrNG8p/aw+IkT9W7fgj50Z4wG5bLBy0Txsxz8iUHjDIkOgO3SV0WZfnQbNG2VJYb0b+rDLMrhM4+Krw==", "devOptional": true, "license": "MIT", "dependencies": { @@ -20486,6 +21030,7 @@ "version": "3.1.10", "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", + "dev": true, "license": "Apache-2.0", "dependencies": { "jake": "^10.8.5" @@ -20528,7 +21073,8 @@ "resolved": "https://registry.npmjs.org/emoji-toolkit/-/emoji-toolkit-10.0.0.tgz", "integrity": "sha512-GkIAvgutEVbkqcT2HjBzV002SWvpdNaT3aP9q/YjQ6hlgDq8HhE9GcqxWkyYkRRQnLADGpwDoj1heTw9KzO9wQ==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/emojis-list": { "version": "3.0.0", @@ -21285,23 +21831,6 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/eslint/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/eslint/node_modules/eslint-scope": { "version": "8.4.0", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", @@ -21492,10 +22021,9 @@ } }, "node_modules/eventsource-parser": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.6.tgz", - "integrity": "sha512-Vo1ab+QXPzZ4tCa8SwIHJFaSzy4R6SHf7BY79rFBDf0idraZWAkYrDjDj8uWaSm3S2TK+hJ7/t1CEmZ7jXw+pg==", - "dev": true, + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.8.tgz", + "integrity": "sha512-70QWGkr4snxr0OXLRWsFLeRBIRPuQOvt4s8QYjmUlmlkyTZkRqS7EDVRZtzU3TiyDbXSzaOeF0XUKy8PchzukQ==", "license": "MIT", "engines": { "node": ">=18.0.0" @@ -21891,9 +22419,9 @@ } }, "node_modules/file-type": { - "version": "21.3.0", - "resolved": "https://registry.npmjs.org/file-type/-/file-type-21.3.0.tgz", - "integrity": "sha512-8kPJMIGz1Yt/aPEwOsrR97ZyZaD1Iqm8PClb1nYFclUCkBi0Ma5IsYNQzvSFS9ib51lWyIw5mIT9rWzI/xjpzA==", + "version": "21.3.4", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-21.3.4.tgz", + "integrity": "sha512-Ievi/yy8DS3ygGvT47PjSfdFoX+2isQueoYP1cntFW1JLYAuS4GD7NUPGg4zv2iZfV52uDyk5w5Z0TdpRS6Q1g==", "license": "MIT", "dependencies": { "@tokenizer/inflate": "^0.4.1", @@ -21912,6 +22440,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.6.tgz", "integrity": "sha512-5giy2PkLYY1cP39p17Ech+2xlpTRL9HLspOfEgm0L6CwBXBTgsK5ou0JtzYuepxkaQ/tvhCFIJ5uXo0OrM2DxA==", + "dev": true, "license": "Apache-2.0", "dependencies": { "minimatch": "^5.0.1" @@ -21921,6 +22450,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz", "integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==", + "dev": true, "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" @@ -21930,6 +22460,7 @@ "version": "5.1.9", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz", "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==", + "dev": true, "license": "ISC", "dependencies": { "brace-expansion": "^2.0.1" @@ -22220,9 +22751,9 @@ "license": "ISC" }, "node_modules/follow-redirects": { - "version": "1.15.11", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", - "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz", + "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==", "funding": [ { "type": "individual", @@ -22259,7 +22790,7 @@ "version": "3.3.1", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, + "devOptional": true, "license": "ISC", "dependencies": { "cross-spawn": "^7.0.6", @@ -22327,23 +22858,6 @@ "ajv": "^6.9.1" } }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/fork-ts-checker-webpack-plugin/node_modules/chokidar": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", @@ -22514,40 +23028,6 @@ "node": ">= 0.8" } }, - "node_modules/front-matter": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/front-matter/-/front-matter-4.0.2.tgz", - "integrity": "sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==", - "dev": true, - "license": "MIT", - "dependencies": { - "js-yaml": "^3.13.1" - } - }, - "node_modules/front-matter/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "license": "MIT", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/front-matter/node_modules/js-yaml": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", - "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, "node_modules/fs-constants": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", @@ -22555,22 +23035,6 @@ "dev": true, "license": "MIT" }, - "node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/fs-minipass": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-3.0.3.tgz", @@ -22653,12 +23117,16 @@ } }, "node_modules/fuse.js": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-7.1.0.tgz", - "integrity": "sha512-trLf4SzuuUxfusZADLINj+dE8clK1frKdmqiJNb1Es75fmI5oY6X2mxLVUciLLjxqw/xr72Dhy+lER6dGd02FQ==", + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-7.3.0.tgz", + "integrity": "sha512-plz8RVjfcDedTGfVngWH1jmJvBvAwi1v2jecfDerbEnMcmOYUEEwKFTHbNoCiYyzaK2Ws8lABkTCcRSqCY1q4w==", "license": "Apache-2.0", "engines": { "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/krisk" } }, "node_modules/gaxios": { @@ -22702,48 +23170,6 @@ "node": ">= 6" } }, - "node_modules/gaxios/node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/gaxios/node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "license": "MIT" - }, - "node_modules/gaxios/node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "license": "BSD-2-Clause" - }, - "node_modules/gaxios/node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, "node_modules/gcp-metadata": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-4.3.1.tgz", @@ -22757,6 +23183,16 @@ "node": ">=10" } }, + "node_modules/generate-function": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz", + "integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "is-property": "^1.0.2" + } + }, "node_modules/generator-function": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", @@ -22767,15 +23203,6 @@ "node": ">= 0.4" } }, - "node_modules/generic-pool": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/generic-pool/-/generic-pool-3.9.0.tgz", - "integrity": "sha512-hymDOu5B53XvN4QT9dBmZxPX4CWhBPPLguTZ9MMFeFa/Kg0xWVfylOVNlJji/E7yTZWFd/q9GO5TxDLq156D7g==", - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -22852,6 +23279,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/get-port-please": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/get-port-please/-/get-port-please-3.2.0.tgz", + "integrity": "sha512-I9QVvBw5U/hw3RmWpYKRumUeaDgxTPd401x364rLmWBJcOQ753eov1eTgzDqRG9bqFIfDc7gfzcQEWrUri3o1A==", + "devOptional": true, + "license": "MIT" + }, "node_modules/get-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", @@ -22904,19 +23338,11 @@ "license": "MIT" }, "node_modules/giget": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/giget/-/giget-2.0.0.tgz", - "integrity": "sha512-L5bGsVkxJbJgdnwyuheIunkGatUF/zssUoxxjACCseZYAVbaqdh9Tsmmlkl8vYan09H7sbvKt4pS8GqKLBrEzA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/giget/-/giget-3.2.0.tgz", + "integrity": "sha512-GvHTWcykIR/fP8cj8dMpuMMkvaeJfPvYnhq0oW+chSeIr+ldX21ifU2Ms6KBoyKZQZmVaUAAhQ2EZ68KJF8a7A==", "devOptional": true, "license": "MIT", - "dependencies": { - "citty": "^0.1.6", - "consola": "^3.4.0", - "defu": "^6.1.4", - "node-fetch-native": "^1.6.6", - "nypm": "^0.6.0", - "pathe": "^2.0.3" - }, "bin": { "giget": "dist/cli.mjs" } @@ -23093,6 +23519,7 @@ "integrity": "sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "delegate": "^3.1.2" } @@ -23186,6 +23613,13 @@ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "license": "ISC" }, + "node_modules/grammex": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/grammex/-/grammex-3.1.12.tgz", + "integrity": "sha512-6ufJOsSA7LcQehIJNCO7HIBykfM7DXQual0Ny780/DEcJIpBlHRvcqEBWGPYd7hrXL2GJ3oJI1MIhaXjWmLQOQ==", + "devOptional": true, + "license": "MIT" + }, "node_modules/graphemer": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", @@ -23193,6 +23627,13 @@ "dev": true, "license": "MIT" }, + "node_modules/graphmatch": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/graphmatch/-/graphmatch-1.1.1.tgz", + "integrity": "sha512-5ykVn/EXM1hF0XCaWh05VbYvEiOL2lY1kBxZtaYsyvjp7cmWOU1XsAdfQBwClraEofXDT197lFbXOEVMHpvQOg==", + "devOptional": true, + "license": "MIT" + }, "node_modules/gtoken": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-5.3.2.tgz", @@ -23207,28 +23648,13 @@ "node": ">=10" } }, - "node_modules/gzip-size": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", - "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "duplexer": "^0.1.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/hachure-fill": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/hachure-fill/-/hachure-fill-0.5.2.tgz", "integrity": "sha512-3GKBOn+m2LX9iq+JC1064cSFprJY4jL1jCXTcpnfER5HYE2l/4EfWSGzkPa/ZDBmYI0ZOEj5VHV/eKnPGkHuOg==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/handle-thing": { "version": "2.0.1", @@ -23382,10 +23808,10 @@ } }, "node_modules/hono": { - "version": "4.12.12", - "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.12.tgz", - "integrity": "sha512-p1JfQMKaceuCbpJKAPKVqyqviZdS0eUxH9v82oWo1kb9xjQ5wA6iP3FNVAPDFlz5/p7d45lO+BpSk1tuSZMF4Q==", - "dev": true, + "version": "4.12.14", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.14.tgz", + "integrity": "sha512-am5zfg3yu6sqn5yjKBNqhnTX7Cv+m00ox+7jbaKkrLMRJ4rAdldd1xPd/JzbBWspqaQv6RSTrgFN95EsfhC+7w==", + "devOptional": true, "license": "MIT", "engines": { "node": ">=16.9.0" @@ -23395,8 +23821,7 @@ "version": "1.15.1", "resolved": "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz", "integrity": "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/hosted-git-info": { "version": "9.0.2", @@ -23750,23 +24175,6 @@ "node": ">=12" } }, - "node_modules/http-server/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/http-status-codes": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/http-status-codes/-/http-status-codes-2.3.0.tgz", @@ -24093,6 +24501,7 @@ "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==", "license": "ISC", "optional": true, + "peer": true, "engines": { "node": ">=12" } @@ -24571,6 +24980,13 @@ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", "license": "MIT" }, + "node_modules/is-property": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", + "integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==", + "devOptional": true, + "license": "MIT" + }, "node_modules/is-regex": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", @@ -24806,7 +25222,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, + "devOptional": true, "license": "ISC" }, "node_modules/isobject": { @@ -24927,6 +25343,7 @@ "version": "10.9.4", "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.4.tgz", "integrity": "sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==", + "dev": true, "license": "Apache-2.0", "dependencies": { "async": "^3.2.6", @@ -25008,23 +25425,6 @@ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/jest-changed-files/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-changed-files/node_modules/jest-util": { "version": "30.2.0", "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", @@ -25107,23 +25507,6 @@ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/jest-circus/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-circus/node_modules/cjs-module-lexer": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.2.0.tgz", @@ -25460,23 +25843,6 @@ "@babel/core": "^7.11.0 || ^8.0.0-beta.1" } }, - "node_modules/jest-cli/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-cli/node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", @@ -25961,23 +26327,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/jest-config/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-config/node_modules/cjs-module-lexer": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.2.0.tgz", @@ -26175,23 +26524,6 @@ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/jest-diff/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-docblock": { "version": "30.2.0", "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-30.2.0.tgz", @@ -26222,23 +26554,6 @@ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/jest-each/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-environment-jsdom": { "version": "30.2.0", "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-30.2.0.tgz", @@ -26327,23 +26642,6 @@ "@sinonjs/commons": "^3.0.1" } }, - "node_modules/jest-environment-jsdom/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-environment-jsdom/node_modules/data-urls": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-5.0.0.tgz", @@ -26621,23 +26919,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/jest-environment-node/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-environment-node/node_modules/jest-validate": { "version": "30.3.0", "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-30.3.0.tgz", @@ -26739,23 +27020,6 @@ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/jest-matcher-utils/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-message-util": { "version": "30.3.0", "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.3.0.tgz", @@ -26777,23 +27041,6 @@ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/jest-message-util/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-mock": { "version": "30.3.0", "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-30.3.0.tgz", @@ -26914,23 +27161,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/jest-resolve/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-resolve/node_modules/jest-validate": { "version": "30.3.0", "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-30.3.0.tgz", @@ -27107,23 +27337,6 @@ "@sinonjs/commons": "^3.0.1" } }, - "node_modules/jest-runner/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-runner/node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", @@ -27489,23 +27702,6 @@ "@sinonjs/commons": "^3.0.1" } }, - "node_modules/jest-runtime/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-runtime/node_modules/cjs-module-lexer": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.2.0.tgz", @@ -27782,23 +27978,6 @@ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/jest-snapshot/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-snapshot/node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", @@ -28014,23 +28193,6 @@ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/jest-util/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-validate": { "version": "30.2.0", "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-30.2.0.tgz", @@ -28081,23 +28243,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/jest-validate/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-validate/node_modules/pretty-format": { "version": "30.2.0", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", @@ -28199,23 +28344,6 @@ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/jest-watcher/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jest-watcher/node_modules/jest-message-util": { "version": "30.2.0", "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.2.0.tgz", @@ -28335,23 +28463,6 @@ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/jest/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jiti": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.4.2.tgz", @@ -28466,9 +28577,9 @@ } }, "node_modules/jsdom/node_modules/undici": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/undici/-/undici-7.24.7.tgz", - "integrity": "sha512-H/nlJ/h0ggGC+uRL3ovD+G0i4bqhvsDOpbDv7At5eFLlj2b41L8QliGbnl2H7SnDiYhENphh1tQFJZf+MyfLsQ==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.26.0.tgz", + "integrity": "sha512-3O9Tf67pGhgOv9jM35AbhkXAKi13f3oy3aE4CSgr+TckGeY+/iu97ZXN+J7DpHPzLbVApFd1IFhcnBjREYXYcg==", "dev": true, "license": "MIT", "peer": true, @@ -28606,35 +28717,6 @@ "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==", "license": "MIT" }, - "node_modules/jsondiffpatch": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/jsondiffpatch/-/jsondiffpatch-0.6.0.tgz", - "integrity": "sha512-3QItJOXp2AP1uv7waBkao5nCvhEv+QmJAd38Ybq7wNI74Q+BBmnLn4EDKz6yI9xGAIQoUF87qHt+kc1IVxB4zQ==", - "license": "MIT", - "dependencies": { - "@types/diff-match-patch": "^1.0.36", - "chalk": "^5.3.0", - "diff-match-patch": "^1.0.5" - }, - "bin": { - "jsondiffpatch": "bin/jsondiffpatch.js" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - } - }, - "node_modules/jsondiffpatch/node_modules/chalk": { - "version": "5.6.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz", - "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==", - "license": "MIT", - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/jsonfile": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", @@ -28659,9 +28741,9 @@ "license": "MIT" }, "node_modules/jsonpath": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/jsonpath/-/jsonpath-1.2.1.tgz", - "integrity": "sha512-Jl6Jhk0jG+kP3yk59SSeGq7LFPR4JQz1DU0K+kXTysUhMostbhU3qh5mjTuf0PqFcXpAT7kvmMt9WxV10NyIgQ==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/jsonpath/-/jsonpath-1.3.0.tgz", + "integrity": "sha512-0kjkYHJBkAy50Z5QzArZ7udmvxrJzkpKYW27fiF//BrMY7TQibYLl+FYIXN2BiYmwMIVzSfD8aDRj6IzgBX2/w==", "license": "MIT", "dependencies": { "esprima": "1.2.5", @@ -28750,6 +28832,7 @@ ], "license": "MIT", "optional": true, + "peer": true, "dependencies": { "commander": "^8.3.0" }, @@ -28763,6 +28846,7 @@ "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", "license": "MIT", "optional": true, + "peer": true, "engines": { "node": ">= 12" } @@ -28781,7 +28865,8 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/khroma/-/khroma-2.1.0.tgz", "integrity": "sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw==", - "optional": true + "optional": true, + "peer": true }, "node_modules/kill-port": { "version": "1.6.1", @@ -28813,6 +28898,7 @@ "integrity": "sha512-JUshTRAfHI4/MF9dH2WupvjSXyn8JBuUEWazB8ZVJUtXutT0doDlAv1XKbZ1Pb5sMexa8FF4CFBc0iiul7gbUQ==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@chevrotain/regexp-to-ast": "~12.0.0", "chevrotain": "~12.0.0", @@ -28842,7 +28928,8 @@ "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-1.0.2.tgz", "integrity": "sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/less": { "version": "4.4.2", @@ -29442,6 +29529,13 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, + "node_modules/long": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", + "devOptional": true, + "license": "Apache-2.0" + }, "node_modules/long-timeout": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/long-timeout/-/long-timeout-0.1.1.tgz", @@ -29453,6 +29547,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "devOptional": true, "license": "MIT", "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" @@ -29493,6 +29588,22 @@ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "license": "ISC" }, + "node_modules/lru.min": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/lru.min/-/lru.min-1.1.3.tgz", + "integrity": "sha512-Lkk/vx6ak3rYkRR0Nhu4lFUT2VDnQSxBe8Hbl7f36358p6ow8Bnvr8lrLt98H8J1aGxfhbX4Fs5tYg2+FTwr5Q==", + "devOptional": true, + "license": "MIT", + "engines": { + "bun": ">=1.0.0", + "deno": ">=1.30.0", + "node": ">=8.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wellwelwel" + } + }, "node_modules/luxon": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.7.2.tgz", @@ -29674,6 +29785,7 @@ "integrity": "sha512-GSGloRsBs+JINmmhl0JDwjpuezCsHB4WGI4NASHxL3fHo3o/BRXTxhDLKnln8/Q0lRFRyDdEjmk1/d5Sn1Xz8g==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "@braintree/sanitize-url": "^7.1.1", "@iconify/utils": "^3.0.2", @@ -29704,6 +29816,7 @@ "integrity": "sha512-TI3V8YYWvkVf3KJe1dRkpnjs68JUPyEa5vjKrp1XEEJUAOaQc+Qj+L1qWbPd0SJuAdQkFU0h73sXXqwDYxsiDA==", "license": "MIT", "optional": true, + "peer": true, "bin": { "marked": "bin/marked.js" }, @@ -29721,6 +29834,7 @@ ], "license": "MIT", "optional": true, + "peer": true, "bin": { "uuid": "dist/esm/bin/uuid" } @@ -29877,6 +29991,7 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -30001,24 +30116,13 @@ "node": ">= 18" } }, - "node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "license": "MIT", - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, "node_modules/mlly": { "version": "1.8.2", "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.2.tgz", "integrity": "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "acorn": "^8.16.0", "pathe": "^2.0.3", @@ -30076,21 +30180,22 @@ } }, "node_modules/multer": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/multer/-/multer-2.0.2.tgz", - "integrity": "sha512-u7f2xaZ/UG8oLXHvtF/oWTRvT44p9ecwBBqTwgJVq0+4BW1g8OW01TyMEGWBHbyMOYVHXslaut7qEQ1meATXgw==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/multer/-/multer-2.1.1.tgz", + "integrity": "sha512-mo+QTzKlx8R7E5ylSXxWzGoXoZbOsRMpyitcht8By2KHvMbf3tjwosZ/Mu/XYU6UuJ3VZnODIrak5ZrPiPyB6A==", "license": "MIT", "dependencies": { "append-field": "^1.0.0", "busboy": "^1.6.0", "concat-stream": "^2.0.0", - "mkdirp": "^0.5.6", - "object-assign": "^4.1.1", - "type-is": "^1.6.18", - "xtend": "^4.0.2" + "type-is": "^1.6.18" }, "engines": { "node": ">= 10.16.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/multer/node_modules/media-typer": { @@ -30159,10 +30264,61 @@ "node": "^18.17.0 || >=20.5.0" } }, + "node_modules/mysql2": { + "version": "3.15.3", + "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.15.3.tgz", + "integrity": "sha512-FBrGau0IXmuqg4haEZRBfHNWB5mUARw6hNwPDXXGg0XzVJ50mr/9hb267lvpVMnhZ1FON3qNd4Xfcez1rbFwSg==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "aws-ssl-profiles": "^1.1.1", + "denque": "^2.1.0", + "generate-function": "^2.3.1", + "iconv-lite": "^0.7.0", + "long": "^5.2.1", + "lru.min": "^1.0.0", + "named-placeholders": "^1.1.3", + "seq-queue": "^0.0.5", + "sqlstring": "^2.3.2" + }, + "engines": { + "node": ">= 8.0" + } + }, + "node_modules/mysql2/node_modules/iconv-lite": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.1.tgz", + "integrity": "sha512-2Tth85cXwGFHfvRgZWszZSvdo+0Xsqmw8k8ZwxScfcBneNUraK+dxRxRm24nszx80Y0TVio8kKLt5sLE7ZCLlw==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/named-placeholders": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/named-placeholders/-/named-placeholders-1.1.6.tgz", + "integrity": "sha512-Tz09sEL2EEuv5fFowm419c1+a/jSMiBjI9gHxVLrVdbUkkNUUfjsVYs9pVZu5oCon/kmRh9TfLEObFtkVxmY0w==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "lru.min": "^1.1.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", "funding": [ { "type": "github", @@ -30280,27 +30436,42 @@ } }, "node_modules/ngx-markdown": { - "version": "21.1.0", - "resolved": "https://registry.npmjs.org/ngx-markdown/-/ngx-markdown-21.1.0.tgz", - "integrity": "sha512-qiyn9Je20F9yS4/q0p1Xhk2b/HW0rHWWlJNRm8DIzJKNck9Rmn/BfFxq0webmQHPPyYkg2AjNq/ZeSqDTQJbsQ==", + "version": "21.2.0", + "resolved": "https://registry.npmjs.org/ngx-markdown/-/ngx-markdown-21.2.0.tgz", + "integrity": "sha512-N2YbawO3lz90b7nVcIhEdwcsCR3Z8bDell3RPvEj+5GcKVxSKb28jekOpg3D7mHtGrDV7vJ7RdpCq/JTGD1LbQ==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" }, - "optionalDependencies": { - "clipboard": "^2.0.11", - "emoji-toolkit": ">= 8.0.0 < 11.0.0", - "katex": "^0.16.0", - "mermaid": ">= 10.6.0 < 12.0.0", - "prismjs": "^1.30.0" - }, "peerDependencies": { "@angular/common": "^21.0.0", "@angular/core": "^21.0.0", "@angular/platform-browser": "^21.0.0", + "clipboard": "^2.0.11", + "emoji-toolkit": ">= 8.0.0 < 11.0.0", + "katex": "^0.16.0", "marked": "^17.0.0", + "mermaid": ">= 10.6.0 < 12.0.0", + "prismjs": "^1.30.0", "rxjs": "^6.5.3 || ^7.4.0", "zone.js": "~0.15.0 || ~0.16.0" + }, + "peerDependenciesMeta": { + "clipboard": { + "optional": true + }, + "emoji-toolkit": { + "optional": true + }, + "katex": { + "optional": true + }, + "mermaid": { + "optional": true + }, + "prismjs": { + "optional": true + } } }, "node_modules/ngx-skeleton-loader": { @@ -30377,13 +30548,48 @@ "semver": "bin/semver.js" } }, - "node_modules/node-fetch-native": { - "version": "1.6.7", - "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.7.tgz", - "integrity": "sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==", - "devOptional": true, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-fetch/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", "license": "MIT" }, + "node_modules/node-fetch/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" + }, + "node_modules/node-fetch/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "node_modules/node-forge": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.4.0.tgz", @@ -30657,65 +30863,139 @@ "license": "MIT" }, "node_modules/nx": { - "version": "22.6.4", - "resolved": "https://registry.npmjs.org/nx/-/nx-22.6.4.tgz", - "integrity": "sha512-WEaCnLKeO9RhQAOBMfXgYO/Lx5wL4ARCtRGiYCjJtAJIZ5kcVn4uPKL2Xz1xekpF7ef/+YNrUQSrblx47Ms9Rg==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/nx/-/nx-22.7.5.tgz", + "integrity": "sha512-zoxsJabb33jl1QYnalDn0bicryrEBgSzdKp90d7VGGv/jDgzKrcLg/hw2ZxeYiOjWPIT/o8QNT9G9vTs4dv3AQ==", "dev": true, "hasInstallScript": true, "license": "MIT", "dependencies": { - "@ltd/j-toml": "^1.38.0", + "@emnapi/core": "1.4.5", + "@emnapi/runtime": "1.4.5", + "@emnapi/wasi-threads": "1.0.4", + "@jest/diff-sequences": "30.0.1", "@napi-rs/wasm-runtime": "0.2.4", - "@yarnpkg/lockfile": "^1.1.0", - "@yarnpkg/parsers": "3.0.2", + "@tybys/wasm-util": "0.9.0", + "@yarnpkg/lockfile": "1.1.0", "@zkochan/js-yaml": "0.0.7", - "axios": "1.12.0", + "ansi-colors": "4.1.3", + "ansi-regex": "5.0.1", + "ansi-styles": "4.3.0", + "argparse": "2.0.1", + "asynckit": "0.4.0", + "axios": "1.16.0", + "balanced-match": "4.0.3", + "base64-js": "1.5.1", + "bl": "4.1.0", + "brace-expansion": "5.0.6", + "buffer": "5.7.1", + "call-bind-apply-helpers": "1.0.2", + "chalk": "4.1.2", "cli-cursor": "3.1.0", "cli-spinners": "2.6.1", - "cliui": "^8.0.1", - "dotenv": "~16.4.5", - "dotenv-expand": "~11.0.6", - "ejs": "^3.1.7", - "enquirer": "~2.3.6", + "cliui": "8.0.1", + "clone": "1.0.4", + "color-convert": "2.0.1", + "color-name": "1.1.4", + "combined-stream": "1.0.8", + "defaults": "1.0.4", + "define-lazy-prop": "2.0.0", + "delayed-stream": "1.0.0", + "dotenv": "16.4.7", + "dotenv-expand": "12.0.3", + "dunder-proto": "1.0.1", + "ejs": "5.0.1", + "emoji-regex": "8.0.0", + "end-of-stream": "1.4.5", + "enquirer": "2.3.6", + "es-define-property": "1.0.1", + "es-errors": "1.3.0", + "es-object-atoms": "1.1.1", + "es-set-tostringtag": "2.1.0", + "escalade": "3.2.0", + "escape-string-regexp": "1.0.5", "figures": "3.2.0", - "flat": "^5.0.2", - "front-matter": "^4.0.2", - "ignore": "^7.0.5", - "jest-diff": "^30.0.2", + "flat": "5.0.2", + "follow-redirects": "1.16.0", + "form-data": "4.0.5", + "fs-constants": "1.0.0", + "function-bind": "1.1.2", + "get-caller-file": "2.0.5", + "get-intrinsic": "1.3.0", + "get-proto": "1.0.1", + "gopd": "1.2.0", + "has-flag": "4.0.0", + "has-symbols": "1.1.0", + "has-tostringtag": "1.0.2", + "hasown": "2.0.2", + "ieee754": "1.2.1", + "ignore": "7.0.5", + "inherits": "2.0.4", + "is-docker": "2.2.1", + "is-fullwidth-code-point": "3.0.0", + "is-interactive": "1.0.0", + "is-unicode-supported": "0.1.0", + "is-wsl": "2.2.0", + "json5": "2.2.3", "jsonc-parser": "3.2.0", "lines-and-columns": "2.0.3", - "minimatch": "10.2.4", - "npm-run-path": "^4.0.1", - "open": "^8.4.0", + "log-symbols": "4.1.0", + "math-intrinsics": "1.1.0", + "mime-db": "1.52.0", + "mime-types": "2.1.35", + "mimic-fn": "2.1.0", + "minimatch": "10.2.5", + "minimist": "1.2.8", + "npm-run-path": "4.0.1", + "once": "1.4.0", + "onetime": "5.1.2", + "open": "8.4.2", "ora": "5.3.0", - "picocolors": "^1.1.0", + "path-key": "3.1.1", + "picocolors": "1.1.1", + "proxy-from-env": "2.1.0", + "readable-stream": "3.6.2", + "require-directory": "2.1.1", "resolve.exports": "2.0.3", - "semver": "^7.6.3", - "string-width": "^4.2.3", - "tar-stream": "~2.2.0", - "tmp": "~0.2.1", - "tree-kill": "^1.2.2", - "tsconfig-paths": "^4.1.2", - "tslib": "^2.3.0", - "yaml": "^2.6.0", - "yargs": "^17.6.2", + "restore-cursor": "3.1.0", + "safe-buffer": "5.2.1", + "semver": "7.7.4", + "signal-exit": "3.0.7", + "smol-toml": "1.6.1", + "string_decoder": "1.3.0", + "string-width": "4.2.3", + "strip-ansi": "6.0.1", + "strip-bom": "3.0.0", + "supports-color": "7.2.0", + "tar-stream": "2.2.0", + "tmp": "0.2.6", + "tree-kill": "1.2.2", + "tsconfig-paths": "4.2.0", + "tslib": "2.8.1", + "util-deprecate": "1.0.2", + "wcwidth": "1.0.1", + "wrap-ansi": "7.0.0", + "wrappy": "1.0.2", + "y18n": "5.0.8", + "yaml": "2.9.0", + "yargs": "17.7.2", "yargs-parser": "21.1.1" }, "bin": { - "nx": "bin/nx.js", - "nx-cloud": "bin/nx-cloud.js" + "nx": "dist/bin/nx.js", + "nx-cloud": "dist/bin/nx-cloud.js" }, "optionalDependencies": { - "@nx/nx-darwin-arm64": "22.6.4", - "@nx/nx-darwin-x64": "22.6.4", - "@nx/nx-freebsd-x64": "22.6.4", - "@nx/nx-linux-arm-gnueabihf": "22.6.4", - "@nx/nx-linux-arm64-gnu": "22.6.4", - "@nx/nx-linux-arm64-musl": "22.6.4", - "@nx/nx-linux-x64-gnu": "22.6.4", - "@nx/nx-linux-x64-musl": "22.6.4", - "@nx/nx-win32-arm64-msvc": "22.6.4", - "@nx/nx-win32-x64-msvc": "22.6.4" + "@nx/nx-darwin-arm64": "22.7.5", + "@nx/nx-darwin-x64": "22.7.5", + "@nx/nx-freebsd-x64": "22.7.5", + "@nx/nx-linux-arm-gnueabihf": "22.7.5", + "@nx/nx-linux-arm64-gnu": "22.7.5", + "@nx/nx-linux-arm64-musl": "22.7.5", + "@nx/nx-linux-x64-gnu": "22.7.5", + "@nx/nx-linux-x64-musl": "22.7.5", + "@nx/nx-win32-arm64-msvc": "22.7.5", + "@nx/nx-win32-x64-msvc": "22.7.5" }, "peerDependencies": { "@swc-node/register": "^1.11.1", @@ -30730,78 +31010,78 @@ } } }, - "node_modules/nx/node_modules/@napi-rs/wasm-runtime": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.4.tgz", - "integrity": "sha512-9zESzOO5aDByvhIAsOy9TbpZ0Ur2AJbUI7UT73kcUTS2mxAMHOBaa1st/jAymNoCtvrit99kkzT1FZuXVcgfIQ==", + "node_modules/nx/node_modules/@emnapi/core": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.4.5.tgz", + "integrity": "sha512-XsLw1dEOpkSX/WucdqUhPWP7hDxSvZiY+fsUC14h+FtQ2Ifni4znbBt8punRX+Uj2JG/uDb8nEHVKvrVlvdZ5Q==", "dev": true, "license": "MIT", "dependencies": { - "@emnapi/core": "^1.1.0", - "@emnapi/runtime": "^1.1.0", - "@tybys/wasm-util": "^0.9.0" + "@emnapi/wasi-threads": "1.0.4", + "tslib": "^2.4.0" } }, - "node_modules/nx/node_modules/@tybys/wasm-util": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.9.0.tgz", - "integrity": "sha512-6+7nlbMVX/PVDCwaIQ8nTOPveOcFLSt8GcXdx8hD0bt39uWxYT88uXzqTd4fTvqta7oeUJqudepapKNt2DYJFw==", + "node_modules/nx/node_modules/@emnapi/runtime": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.4.5.tgz", + "integrity": "sha512-++LApOtY0pEEz1zrd9vy1/zXVaVJJ/EbAF3u0fXIzPJEDtnITsBGbbK0EkM72amhl/R5b+5xx0Y/QhcVOpuulg==", "dev": true, "license": "MIT", "dependencies": { "tslib": "^2.4.0" } }, - "node_modules/nx/node_modules/axios": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.12.0.tgz", - "integrity": "sha512-oXTDccv8PcfjZmPGlWsPSwtOJCZ/b6W5jAMCNcfwJbCzDckwG0jrYJFaWH1yvivfCXjVzV/SPDEhMB3Q+DSurg==", + "node_modules/nx/node_modules/@emnapi/wasi-threads": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.0.4.tgz", + "integrity": "sha512-PJR+bOmMOPH8AtcTGAyYNiuJ3/Fcoj2XN/gBEWzDIKh254XO+mM9XoXHk5GNEhodxeMznbg7BlRojVbKN+gC6g==", "dev": true, "license": "MIT", "dependencies": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.4", - "proxy-from-env": "^1.1.0" + "tslib": "^2.4.0" } }, - "node_modules/nx/node_modules/balanced-match": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", - "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "node_modules/nx/node_modules/@jest/diff-sequences": { + "version": "30.0.1", + "resolved": "https://registry.npmjs.org/@jest/diff-sequences/-/diff-sequences-30.0.1.tgz", + "integrity": "sha512-n5H8QLDJ47QqbCNn5SuFjCRDrOLEZ0h8vAHCK5RL9Ls7Xa8AQLa/YxAc9UjFqoEDM48muwtBGjtMY5cr0PLDCw==", "dev": true, "license": "MIT", "engines": { - "node": "18 || 20 || >=22" + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } }, - "node_modules/nx/node_modules/brace-expansion": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz", - "integrity": "sha512-VZznLgtwhn+Mact9tfiwx64fA9erHH/MCXEUfB/0bX/6Fz6ny5EGTXYltMocqg4xFAQZtnO3DHWWXi8RiuN7cQ==", + "node_modules/nx/node_modules/@tybys/wasm-util": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.9.0.tgz", + "integrity": "sha512-6+7nlbMVX/PVDCwaIQ8nTOPveOcFLSt8GcXdx8hD0bt39uWxYT88uXzqTd4fTvqta7oeUJqudepapKNt2DYJFw==", "dev": true, "license": "MIT", "dependencies": { - "balanced-match": "^4.0.2" - }, + "tslib": "^2.4.0" + } + }, + "node_modules/nx/node_modules/balanced-match": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.3.tgz", + "integrity": "sha512-1pHv8LX9CpKut1Zp4EXey7Z8OfH11ONNH6Dhi2WDUt31VVZFXZzKwXcysBgqSumFCmR+0dqjMK5v5JiFHzi0+g==", + "dev": true, + "license": "MIT", "engines": { - "node": "18 || 20 || >=22" + "node": "20 || >=22" } }, - "node_modules/nx/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/nx/node_modules/brace-expansion": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz", + "integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==", "dev": true, "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "balanced-match": "^4.0.2" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": "18 || 20 || >=22" } }, "node_modules/nx/node_modules/cli-cursor": { @@ -30840,20 +31120,17 @@ "url": "https://dotenvx.com" } }, - "node_modules/nx/node_modules/dotenv-expand": { - "version": "11.0.7", - "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-11.0.7.tgz", - "integrity": "sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==", + "node_modules/nx/node_modules/ejs": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-5.0.1.tgz", + "integrity": "sha512-COqBPFMxuPTPspXl2DkVYaDS3HtrD1GpzOGkNTJ1IYkifq/r9h8SVEFrjA3D9/VJGOEoMQcrlhpntcSUrM8k6A==", "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "dotenv": "^16.4.5" + "license": "Apache-2.0", + "bin": { + "ejs": "bin/cli.js" }, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://dotenvx.com" + "node": ">=0.12.18" } }, "node_modules/nx/node_modules/emoji-regex": { @@ -30863,6 +31140,16 @@ "dev": true, "license": "MIT" }, + "node_modules/nx/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, "node_modules/nx/node_modules/ignore": { "version": "7.0.5", "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", @@ -30959,14 +31246,37 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/nx/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/nx/node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/nx/node_modules/minimatch": { - "version": "10.2.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz", - "integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==", + "version": "10.2.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", + "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^5.0.2" + "brace-expansion": "^5.0.5" }, "engines": { "node": "18 || 20 || >=22" @@ -31077,6 +31387,24 @@ "node": ">=6" } }, + "node_modules/nx/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/nx/node_modules/yargs": { "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", @@ -31096,31 +31424,6 @@ "node": ">=12" } }, - "node_modules/nypm": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/nypm/-/nypm-0.6.5.tgz", - "integrity": "sha512-K6AJy1GMVyfyMXRVB88700BJqNUkByijGJM8kEHpLdcAt+vSQAVfkWWHYzuRXHSY6xA2sNc5RjTj0p9rE2izVQ==", - "devOptional": true, - "license": "MIT", - "dependencies": { - "citty": "^0.2.0", - "pathe": "^2.0.3", - "tinyexec": "^1.0.2" - }, - "bin": { - "nypm": "dist/cli.mjs" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/nypm/node_modules/citty": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/citty/-/citty-0.2.2.tgz", - "integrity": "sha512-+6vJA3L98yv+IdfKGZHBNiGW5KHn22e/JwID0Strsz8h4S/csAu/OuICwxrg44k5MRiZHWIo8XXuJgQTriRP4w==", - "devOptional": true, - "license": "MIT" - }, "node_modules/oauth": { "version": "0.10.2", "resolved": "https://registry.npmjs.org/oauth/-/oauth-0.10.2.tgz", @@ -31573,7 +31876,8 @@ "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.6.0.tgz", "integrity": "sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/pacote": { "version": "21.3.1", @@ -31608,9 +31912,9 @@ } }, "node_modules/papaparse": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.3.1.tgz", - "integrity": "sha512-Dbt2yjLJrCwH2sRqKFFJaN5XgIASO9YOFeFP8rIBRG2Ain8mqk5r1M6DkfvqEVozVcz3r3HaUGw253hA1nLIcA==", + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.5.3.tgz", + "integrity": "sha512-5QvjGxYVjxO59MGU2lHVYpRWBBtKHnlIAcSe1uNFCkkptUh63NFRj0FJQm7nR67puEruUci/ZkjmEFrjCAyP4A==", "license": "MIT" }, "node_modules/param-case": { @@ -31962,7 +32266,8 @@ "resolved": "https://registry.npmjs.org/path-data-parser/-/path-data-parser-0.1.0.tgz", "integrity": "sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/path-exists": { "version": "4.0.0", @@ -31988,7 +32293,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, + "devOptional": true, "license": "MIT", "engines": { "node": ">=8" @@ -32026,9 +32331,9 @@ "license": "ISC" }, "node_modules/path-to-regexp": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz", - "integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==", + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz", + "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==", "license": "MIT", "funding": { "type": "opencollective", @@ -32068,12 +32373,110 @@ "integrity": "sha512-KG8UEiEVkR3wGEb4m5yZkVCzigAD+cVEJck2CzYZO37ZGJfctvVptVO192MwrtPhzONn6go8ylnOdMhKqi4nfg==" }, "node_modules/perfect-debounce": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz", - "integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-2.1.0.tgz", + "integrity": "sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==", "devOptional": true, "license": "MIT" }, + "node_modules/pg": { + "version": "8.16.3", + "resolved": "https://registry.npmjs.org/pg/-/pg-8.16.3.tgz", + "integrity": "sha512-enxc1h0jA/aq5oSDMvqyW3q89ra6XIIDZgCX9vkMrnz5DFTw/Ny3Li2lFQ+pt3L6MCgm/5o2o8HW9hiJji+xvw==", + "license": "MIT", + "dependencies": { + "pg-connection-string": "^2.9.1", + "pg-pool": "^3.10.1", + "pg-protocol": "^1.10.3", + "pg-types": "2.2.0", + "pgpass": "1.0.5" + }, + "engines": { + "node": ">= 16.0.0" + }, + "optionalDependencies": { + "pg-cloudflare": "^1.2.7" + }, + "peerDependencies": { + "pg-native": ">=3.0.1" + }, + "peerDependenciesMeta": { + "pg-native": { + "optional": true + } + } + }, + "node_modules/pg-cloudflare": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.2.7.tgz", + "integrity": "sha512-YgCtzMH0ptvZJslLM1ffsY4EuGaU0cx4XSdXLRFae8bPP4dS5xL1tNB3k2o/N64cHJpwU7dxKli/nZ2lUa5fLg==", + "license": "MIT", + "optional": true + }, + "node_modules/pg-connection-string": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.9.1.tgz", + "integrity": "sha512-nkc6NpDcvPVpZXxrreI/FOtX3XemeLl8E0qFr6F2Lrm/I8WOnaWNhIPK2Z7OHpw7gh5XJThi6j6ppgNoaT1w4w==", + "license": "MIT" + }, + "node_modules/pg-int8": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz", + "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==", + "license": "ISC", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/pg-pool": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.10.1.tgz", + "integrity": "sha512-Tu8jMlcX+9d8+QVzKIvM/uJtp07PKr82IUOYEphaWcoBhIYkoHpLXN3qO59nAI11ripznDsEzEv8nUxBVWajGg==", + "license": "MIT", + "peerDependencies": { + "pg": ">=8.0" + } + }, + "node_modules/pg-protocol": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.10.3.tgz", + "integrity": "sha512-6DIBgBQaTKDJyxnXaLiLR8wBpQQcGWuAESkRBX/t6OwA8YsqP+iVSiond2EDy6Y/dsGk8rh/jtax3js5NeV7JQ==", + "license": "MIT" + }, + "node_modules/pg-types": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz", + "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==", + "license": "MIT", + "dependencies": { + "pg-int8": "1.0.1", + "postgres-array": "~2.0.0", + "postgres-bytea": "~1.0.0", + "postgres-date": "~1.0.4", + "postgres-interval": "^1.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/pg-types/node_modules/postgres-array": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz", + "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/pgpass": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz", + "integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==", + "license": "MIT", + "dependencies": { + "split2": "^4.1.0" + } + }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -32209,6 +32612,7 @@ "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "confbox": "^0.1.8", "mlly": "^1.7.4", @@ -32261,7 +32665,8 @@ "resolved": "https://registry.npmjs.org/points-on-curve/-/points-on-curve-0.2.0.tgz", "integrity": "sha512-0mYKnYYe9ZcqMCWhUjItv/oHjvgEsfKvnUTg8sAtnHr3GVy7rGkXCb6d5cSyqrWqL4k81b9CPg3urd+T7aop3A==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/points-on-path": { "version": "0.2.1", @@ -32269,6 +32674,7 @@ "integrity": "sha512-25ClnWWuw7JbWZcgqY/gJ4FQWadKxGWk+3kR/7kD0tCaDtPPMj7oHu2ToLaVhfpnHrZzYby2w6tUA0eOIuUg8g==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "path-data-parser": "0.1.0", "points-on-curve": "0.2.0" @@ -32355,97 +32761,6 @@ "postcss": "^8.4.38" } }, - "node_modules/postcss-colormin": { - "version": "7.0.7", - "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-7.0.7.tgz", - "integrity": "sha512-sBQ628lSj3VQpDquQel8Pen5mmjFPsO4pH9lDLaHB1AVkMRHtkl0pRB5DCWznc9upWsxint/kV+AveSj7W1tew==", - "dev": true, - "license": "MIT", - "dependencies": { - "@colordx/core": "^5.0.0", - "browserslist": "^4.28.1", - "caniuse-api": "^3.0.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-convert-values": { - "version": "7.0.9", - "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-7.0.9.tgz", - "integrity": "sha512-l6uATQATZaCa0bckHV+r6dLXfWtUBKXxO3jK+AtxxJJtgMPD+VhhPCCx51I4/5w8U5uHV67g3w7PXj+V3wlMlg==", - "dev": true, - "license": "MIT", - "dependencies": { - "browserslist": "^4.28.1", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-discard-comments": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-7.0.6.tgz", - "integrity": "sha512-Sq+Fzj1Eg5/CPf1ERb0wS1Im5cvE2gDXCE+si4HCn1sf+jpQZxDI4DXEp8t77B/ImzDceWE2ebJQFXdqZ6GRJw==", - "dev": true, - "license": "MIT", - "dependencies": { - "postcss-selector-parser": "^7.1.1" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-discard-duplicates": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-7.0.2.tgz", - "integrity": "sha512-eTonaQvPZ/3i1ASDHOKkYwAybiM45zFIc7KXils4mQmHLqIswXD9XNOKEVxtTFnsmwYzF66u4LMgSr0abDlh5w==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-discard-empty": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-7.0.1.tgz", - "integrity": "sha512-cFrJKZvcg/uxB6Ijr4l6qmn3pXQBna9zyrPC+sK0zjbkDUZew+6xDltSF7OeB7rAtzaaMVYSdbod+sZOCWnMOg==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-discard-overridden": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-7.0.1.tgz", - "integrity": "sha512-7c3MMjjSZ/qYrx3uc1940GSOzN1Iqjtlqe8uoSg+qdVPYyRb0TILSqqmtlSFuE4mTDECwsm397Ya7iXGzfF7lg==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, "node_modules/postcss-import": { "version": "14.1.0", "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-14.1.0.tgz", @@ -32539,111 +32854,6 @@ "integrity": "sha512-3sOlxmbKcSHMjlUXQZKQ06jOswE7oVkXPxmZdoB1r5l0q6gTFTQSHxNxOrCccElbW7dxNytifNEo8qidX2Vsig==", "license": "MIT" }, - "node_modules/postcss-merge-longhand": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-7.0.5.tgz", - "integrity": "sha512-Kpu5v4Ys6QI59FxmxtNB/iHUVDn9Y9sYw66D6+SZoIk4QTz1prC4aYkhIESu+ieG1iylod1f8MILMs1Em3mmIw==", - "dev": true, - "license": "MIT", - "dependencies": { - "postcss-value-parser": "^4.2.0", - "stylehacks": "^7.0.5" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-merge-rules": { - "version": "7.0.8", - "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-7.0.8.tgz", - "integrity": "sha512-BOR1iAM8jnr7zoQSlpeBmCsWV5Uudi/+5j7k05D0O/WP3+OFMPD86c1j/20xiuRtyt45bhxw/7hnhZNhW2mNFA==", - "dev": true, - "license": "MIT", - "dependencies": { - "browserslist": "^4.28.1", - "caniuse-api": "^3.0.0", - "cssnano-utils": "^5.0.1", - "postcss-selector-parser": "^7.1.1" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-minify-font-values": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-7.0.1.tgz", - "integrity": "sha512-2m1uiuJeTplll+tq4ENOQSzB8LRnSUChBv7oSyFLsJRtUgAAJGP6LLz0/8lkinTgxrmJSPOEhgY1bMXOQ4ZXhQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-minify-gradients": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-7.0.2.tgz", - "integrity": "sha512-fVY3AB8Um7SJR5usHqTY2Ngf9qh8IRN+FFzrBP0ONJy6yYXsP7xyjK2BvSAIrpgs1cST+H91V0TXi3diHLYJtw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@colordx/core": "^5.0.0", - "cssnano-utils": "^5.0.1", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-minify-params": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-7.0.6.tgz", - "integrity": "sha512-YOn02gC68JijlaXVuKvFSCvQOhTpblkcfDre2hb/Aaa58r2BIaK4AtE/cyZf2wV7YKAG+UlP9DT+By0ry1E4VQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "browserslist": "^4.28.1", - "cssnano-utils": "^5.0.1", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-minify-selectors": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-7.0.6.tgz", - "integrity": "sha512-lIbC0jy3AAwDxEgciZlBullDiMBeBCT+fz5G8RcA9MWqh/hfUkpOI3vNDUNEZHgokaoiv0juB9Y8fGcON7rU/A==", - "dev": true, - "license": "MIT", - "dependencies": { - "cssesc": "^3.0.0", - "postcss-selector-parser": "^7.1.1" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, "node_modules/postcss-modules-extract-imports": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.1.0.tgz", @@ -32707,198 +32917,6 @@ "postcss": "^8.1.0" } }, - "node_modules/postcss-normalize-charset": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-7.0.1.tgz", - "integrity": "sha512-sn413ofhSQHlZFae//m9FTOfkmiZ+YQXsbosqOWRiVQncU2BA3daX3n0VF3cG6rGLSFVc5Di/yns0dFfh8NFgQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-normalize-display-values": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-7.0.1.tgz", - "integrity": "sha512-E5nnB26XjSYz/mGITm6JgiDpAbVuAkzXwLzRZtts19jHDUBFxZ0BkXAehy0uimrOjYJbocby4FVswA/5noOxrQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-normalize-positions": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-7.0.1.tgz", - "integrity": "sha512-pB/SzrIP2l50ZIYu+yQZyMNmnAcwyYb9R1fVWPRxm4zcUFCY2ign7rcntGFuMXDdd9L2pPNUgoODDk91PzRZuQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-normalize-repeat-style": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-7.0.1.tgz", - "integrity": "sha512-NsSQJ8zj8TIDiF0ig44Byo3Jk9e4gNt9x2VIlJudnQQ5DhWAHJPF4Tr1ITwyHio2BUi/I6Iv0HRO7beHYOloYQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-normalize-string": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-7.0.1.tgz", - "integrity": "sha512-QByrI7hAhsoze992kpbMlJSbZ8FuCEc1OT9EFbZ6HldXNpsdpZr+YXC5di3UEv0+jeZlHbZcoCADgb7a+lPmmQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-normalize-timing-functions": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-7.0.1.tgz", - "integrity": "sha512-bHifyuuSNdKKsnNJ0s8fmfLMlvsQwYVxIoUBnowIVl2ZAdrkYQNGVB4RxjfpvkMjipqvbz0u7feBZybkl/6NJg==", - "dev": true, - "license": "MIT", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-normalize-unicode": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-7.0.6.tgz", - "integrity": "sha512-z6bwTV84YW6ZvvNoaNLuzRW4/uWxDKYI1iIDrzk6D2YTL7hICApy+Q1LP6vBEsljX8FM7YSuV9qI79XESd4ddQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "browserslist": "^4.28.1", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-normalize-url": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-7.0.1.tgz", - "integrity": "sha512-sUcD2cWtyK1AOL/82Fwy1aIVm/wwj5SdZkgZ3QiUzSzQQofrbq15jWJ3BA7Z+yVRwamCjJgZJN0I9IS7c6tgeQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-normalize-whitespace": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-7.0.1.tgz", - "integrity": "sha512-vsbgFHMFQrJBJKrUFJNZ2pgBeBkC2IvvoHjz1to0/0Xk7sII24T0qFOiJzG6Fu3zJoq/0yI4rKWi7WhApW+EFA==", - "dev": true, - "license": "MIT", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-ordered-values": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-7.0.2.tgz", - "integrity": "sha512-AMJjt1ECBffF7CEON/Y0rekRLS6KsePU6PRP08UqYW4UGFRnTXNrByUzYK1h8AC7UWTZdQ9O3Oq9kFIhm0SFEw==", - "dev": true, - "license": "MIT", - "dependencies": { - "cssnano-utils": "^5.0.1", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-reduce-initial": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-7.0.6.tgz", - "integrity": "sha512-G6ZyK68AmrPdMB6wyeA37ejnnRG2S8xinJrZJnOv+IaRKf6koPAVbQsiC7MfkmXaGmF1UO+QCijb27wfpxuRNg==", - "dev": true, - "license": "MIT", - "dependencies": { - "browserslist": "^4.28.1", - "caniuse-api": "^3.0.0" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, - "node_modules/postcss-reduce-transforms": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-7.0.1.tgz", - "integrity": "sha512-MhyEbfrm+Mlp/36hvZ9mT9DaO7dbncU0CvWI8V93LRkY6IYlu38OPg3FObnuKTUxJ4qA8HpurdQOo5CyqqO76g==", - "dev": true, - "license": "MIT", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, "node_modules/postcss-safe-parser": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-7.0.1.tgz", @@ -32939,46 +32957,66 @@ "node": ">=4" } }, - "node_modules/postcss-svgo": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-7.1.1.tgz", - "integrity": "sha512-zU9H9oEDrUFKa0JB7w+IYL7Qs9ey1mZyjhbf0KLxwJDdDRtoPvCmaEfknzqfHj44QS9VD6c5sJnBAVYTLRg/Sg==", + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", "dev": true, - "license": "MIT", - "dependencies": { - "postcss-value-parser": "^4.2.0", - "svgo": "^4.0.1" - }, + "license": "MIT" + }, + "node_modules/postgres": { + "version": "3.4.7", + "resolved": "https://registry.npmjs.org/postgres/-/postgres-3.4.7.tgz", + "integrity": "sha512-Jtc2612XINuBjIl/QTWsV5UvE8UHuNblcO3vVADSrKsrc6RqGX6lOW1cEo3CM2v0XG4Nat8nI+YM7/f26VxXLw==", + "devOptional": true, + "license": "Unlicense", "engines": { - "node": "^18.12.0 || ^20.9.0 || >= 18" + "node": ">=12" }, - "peerDependencies": { - "postcss": "^8.4.32" + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/porsager" } }, - "node_modules/postcss-unique-selectors": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-7.0.5.tgz", - "integrity": "sha512-3QoYmEt4qg/rUWDn6Tc8+ZVPmbp4G1hXDtCNWDx0st8SjtCbRcxRXDDM1QrEiXGG3A45zscSJFb4QH90LViyxg==", - "dev": true, + "node_modules/postgres-array": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-3.0.4.tgz", + "integrity": "sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ==", + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/postgres-bytea": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.1.tgz", + "integrity": "sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postgres-date": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz", + "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postgres-interval": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz", + "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==", "license": "MIT", "dependencies": { - "postcss-selector-parser": "^7.1.1" + "xtend": "^4.0.0" }, "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" + "node": ">=0.10.0" } }, - "node_modules/postcss-value-parser": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", - "dev": true, - "license": "MIT" - }, "node_modules/powershell-utils": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/powershell-utils/-/powershell-utils-0.1.0.tgz", @@ -33003,9 +33041,9 @@ } }, "node_modules/prettier": { - "version": "3.8.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.2.tgz", - "integrity": "sha512-8c3mgTe0ASwWAJK+78dpviD+A8EqhndQPUBpNUIPt6+xWlIigCwfN01lWr9MAede4uqXGTEKeQWTvzb3vjia0Q==", + "version": "3.8.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.3.tgz", + "integrity": "sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw==", "dev": true, "license": "MIT", "bin": { @@ -33071,26 +33109,34 @@ } }, "node_modules/prisma": { - "version": "6.19.3", - "resolved": "https://registry.npmjs.org/prisma/-/prisma-6.19.3.tgz", - "integrity": "sha512-++ZJ0ijLrDJF6hNB4t4uxg2br3fC4H9Yc9tcbjr2fcNFP3rh/SBNrAgjhsqBU4Ght8JPrVofG/ZkXfnSfnYsFg==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/prisma/-/prisma-7.8.0.tgz", + "integrity": "sha512-yfN4yrw7HV9kEJhoy1+jgah0jafEIQsf7uWouSsM8MvJtlubsk+kM7AIBWZ8+GJl74Yj3c+nbYqBkMOxtsZ3Lw==", "devOptional": true, "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "@prisma/config": "6.19.3", - "@prisma/engines": "6.19.3" + "@prisma/config": "7.8.0", + "@prisma/dev": "0.24.3", + "@prisma/engines": "7.8.0", + "@prisma/studio-core": "0.27.3", + "mysql2": "3.15.3", + "postgres": "3.4.7" }, "bin": { "prisma": "build/index.js" }, "engines": { - "node": ">=18.18" + "node": "^20.19 || ^22.12 || >=24.0" }, "peerDependencies": { - "typescript": ">=5.1.0" + "better-sqlite3": ">=9.0.0", + "typescript": ">=5.4.0" }, "peerDependenciesMeta": { + "better-sqlite3": { + "optional": true + }, "typescript": { "optional": true } @@ -33102,6 +33148,7 @@ "integrity": "sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==", "license": "MIT", "optional": true, + "peer": true, "engines": { "node": ">=6" } @@ -33147,6 +33194,35 @@ "node": ">= 4" } }, + "node_modules/proper-lockfile": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-4.1.2.tgz", + "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "retry": "^0.12.0", + "signal-exit": "^3.0.2" + } + }, + "node_modules/proper-lockfile/node_modules/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/proper-lockfile/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "devOptional": true, + "license": "ISC" + }, "node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -33170,11 +33246,14 @@ } }, "node_modules/proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz", + "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==", "dev": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=10" + } }, "node_modules/prr": { "version": "1.0.1", @@ -33317,20 +33396,21 @@ } }, "node_modules/rc9": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/rc9/-/rc9-2.1.2.tgz", - "integrity": "sha512-btXCnMmRIBINM2LDZoEmOogIZU7Qe7zn4BpomSKZ/ykbLObuBdvG+mFq11DL6fjH1DRwHhrlgtYWG96bJiC7Cg==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/rc9/-/rc9-3.0.1.tgz", + "integrity": "sha512-gMDyleLWVE+i6Sgtc0QbbY6pEKqYs97NGi6isHQPqYlLemPoO8dxQ3uGi0f4NiP98c+jMW6cG1Kx9dDwfvqARQ==", "devOptional": true, "license": "MIT", "dependencies": { - "defu": "^6.1.4", - "destr": "^2.0.3" + "defu": "^6.1.6", + "destr": "^2.0.5" } }, "node_modules/react": { "version": "18.2.0", "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "devOptional": true, "license": "MIT", "dependencies": { "loose-envify": "^1.1.0" @@ -33343,7 +33423,7 @@ "version": "18.2.0", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", - "dev": true, + "devOptional": true, "license": "MIT", "dependencies": { "loose-envify": "^1.1.0", @@ -33616,6 +33696,16 @@ "node": ">= 0.10" } }, + "node_modules/remeda": { + "version": "2.33.4", + "resolved": "https://registry.npmjs.org/remeda/-/remeda-2.33.4.tgz", + "integrity": "sha512-ygHswjlc/opg2VrtiYvUOPLjxjtdKvjGz1/plDhkG66hjNjFr1xmfrs2ClNFo/E6TyUFiwYNh53bKV26oBoMGQ==", + "devOptional": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/remeda" + } + }, "node_modules/renderkid": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-3.0.0.tgz", @@ -34056,7 +34146,8 @@ "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz", "integrity": "sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==", "license": "Unlicense", - "optional": true + "optional": true, + "peer": true }, "node_modules/rolldown": { "version": "1.0.0-rc.4", @@ -34243,6 +34334,7 @@ "integrity": "sha512-ZUz/69+SYpFN/g/lUlo2FXcIjRkSu3nDarreVdGGndHEBJ6cXPdKguS8JGxwj5HA5xIbVKSmLgr5b3AWxtRfvQ==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "hachure-fill": "^0.5.2", "path-data-parser": "^0.1.0", @@ -34315,7 +34407,8 @@ "resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz", "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==", "license": "BSD-3-Clause", - "optional": true + "optional": true, + "peer": true }, "node_modules/rxjs": { "version": "7.8.1", @@ -34970,7 +35063,7 @@ "version": "0.23.2", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", - "dev": true, + "devOptional": true, "license": "MIT", "dependencies": { "loose-envify": "^1.1.0" @@ -35021,18 +35114,13 @@ "dev": true, "license": "MIT" }, - "node_modules/secure-json-parse": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/secure-json-parse/-/secure-json-parse-2.7.0.tgz", - "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==", - "license": "BSD-3-Clause" - }, "node_modules/select": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz", "integrity": "sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/select-hose": { "version": "2.0.0", @@ -35099,6 +35187,12 @@ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "license": "MIT" }, + "node_modules/seq-queue": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/seq-queue/-/seq-queue-0.0.5.tgz", + "integrity": "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q==", + "devOptional": true + }, "node_modules/serialize-javascript": { "version": "7.0.5", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-7.0.5.tgz", @@ -35324,7 +35418,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, + "devOptional": true, "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" @@ -35337,7 +35431,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, + "devOptional": true, "license": "MIT", "engines": { "node": ">=8" @@ -35636,21 +35730,6 @@ "node": "^20.17.0 || >=22.9.0" } }, - "node_modules/sirv": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/sirv/-/sirv-2.0.4.tgz", - "integrity": "sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@polka/url": "^1.0.0-next.24", - "mrmime": "^2.0.0", - "totalist": "^3.0.0" - }, - "engines": { - "node": ">= 10" - } - }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", @@ -35700,6 +35779,19 @@ "npm": ">= 3.0.0" } }, + "node_modules/smol-toml": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.6.1.tgz", + "integrity": "sha512-dWUG8F5sIIARXih1DTaQAX4SsiTXhInKf1buxdY9DIg4ZYPZK5nGM1VRIYmEbDbsHt7USo99xSLFu5Q1IqTmsg==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">= 18" + }, + "funding": { + "url": "https://github.com/sponsors/cyyynthia" + } + }, "node_modules/sockjs": { "version": "0.3.24", "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", @@ -35877,6 +35969,15 @@ "wbuf": "^1.7.3" } }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "license": "ISC", + "engines": { + "node": ">= 10.x" + } + }, "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", @@ -35884,6 +35985,16 @@ "dev": true, "license": "BSD-3-Clause" }, + "node_modules/sqlstring": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz", + "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/ssri": { "version": "13.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-13.0.1.tgz", @@ -35951,6 +36062,13 @@ "node": ">= 0.8" } }, + "node_modules/std-env": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz", + "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==", + "devOptional": true, + "license": "MIT" + }, "node_modules/stdin-discarder": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.3.1.tgz", @@ -36322,15 +36440,15 @@ } }, "node_modules/stripe": { - "version": "20.4.1", - "resolved": "https://registry.npmjs.org/stripe/-/stripe-20.4.1.tgz", - "integrity": "sha512-axCguHItc8Sxt0HC6aSkdVRPffjYPV7EQqZRb2GkIa8FzWDycE7nHJM19C6xAIynH1Qp1/BHiopSi96jGBxT0w==", + "version": "21.0.1", + "resolved": "https://registry.npmjs.org/stripe/-/stripe-21.0.1.tgz", + "integrity": "sha512-ocv0j7dWttswDWV2XL/kb6+yiLpDXNXL3RQAOB5OB2kr49z0cEatdQc12+zP/j5nrXk6rAsT4N3y/NUvBbK7Pw==", "license": "MIT", "engines": { - "node": ">=16" + "node": ">=18" }, "peerDependencies": { - "@types/node": ">=16" + "@types/node": ">=18" }, "peerDependenciesMeta": { "@types/node": { @@ -36371,29 +36489,13 @@ "webpack": "^5.0.0" } }, - "node_modules/stylehacks": { - "version": "7.0.8", - "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-7.0.8.tgz", - "integrity": "sha512-I3f053GBLIiS5Fg6OMFhq/c+yW+5Hc2+1fgq7gElDMMSqwlRb3tBf2ef6ucLStYRpId4q//bQO1FjcyNyy4yDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "browserslist": "^4.28.1", - "postcss-selector-parser": "^7.1.1" - }, - "engines": { - "node": "^18.12.0 || ^20.9.0 || >=22.0" - }, - "peerDependencies": { - "postcss": "^8.4.32" - } - }, "node_modules/stylis": { "version": "4.3.6", "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.3.6.tgz", "integrity": "sha512-yQ3rwFWRfwNUY7H5vpU0wfdkNSnvnJinhF9830Swlaxl03zsOjCfmX0ugac+3LtK0lYSgwL/KXc8oYL3mG4YFQ==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/supports-color": { "version": "7.2.0", @@ -36492,19 +36594,6 @@ "url": "https://github.com/sponsors/fb55" } }, - "node_modules/swr": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/swr/-/swr-2.4.1.tgz", - "integrity": "sha512-2CC6CiKQtEwaEeNiqWTAw9PGykW8SR5zZX8MZk6TeAvEAnVS7Visz8WzphqgtQ8v2xz/4Q5K+j+SeMaKXeeQIA==", - "license": "MIT", - "dependencies": { - "dequal": "^2.0.3", - "use-sync-external-store": "^1.6.0" - }, - "peerDependencies": { - "react": "^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" - } - }, "node_modules/symbol-tree": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", @@ -36908,18 +36997,6 @@ "tslib": "^2" } }, - "node_modules/throttleit": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-2.1.0.tgz", - "integrity": "sha512-nt6AMGKW1p/70DF/hGBdJB57B8Tspmbp5gfJ8ilhLnt7kkr2ye7hzD6NVG8GGErk2HWF34igrL2CXmNIkzKqKw==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/thunky": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", @@ -36932,7 +37009,8 @@ "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz", "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/tiny-invariant": { "version": "1.3.3", @@ -36942,11 +37020,12 @@ "license": "MIT" }, "node_modules/tinyexec": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.1.1.tgz", - "integrity": "sha512-VKS/ZaQhhkKFMANmAOhhXVoIfBXblQxGX1myCQ2faQrfmobMftXeJPcZGp0gS07ocvGJWDLZGyOZDadDBqYIJg==", - "devOptional": true, + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.0.2.tgz", + "integrity": "sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==", "license": "MIT", + "optional": true, + "peer": true, "engines": { "node": ">=18" } @@ -37010,9 +37089,9 @@ "peer": true }, "node_modules/tmp": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.5.tgz", - "integrity": "sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow==", + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.6.tgz", + "integrity": "sha512-5sJPdPjfI5Kx+qbrDesxkglRBxW//g7hCsqspEjwkewGvBMGIKMOTKzLt1hFVJzyadba3lDUN20O9qhvbQUSTA==", "dev": true, "license": "MIT", "engines": { @@ -37066,16 +37145,6 @@ "url": "https://github.com/sponsors/Borewit" } }, - "node_modules/totalist": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/totalist/-/totalist-3.0.1.tgz", - "integrity": "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/tough-cookie": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.0.1.tgz", @@ -37202,15 +37271,15 @@ } }, "node_modules/ts-checker-rspack-plugin": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/ts-checker-rspack-plugin/-/ts-checker-rspack-plugin-1.3.0.tgz", - "integrity": "sha512-89oK/BtApjdid1j9CGjPGiYry+EZBhsnTAM481/8ipgr/y2IOgCbW1HPnan+fs5FnzlpUgf9dWGNZ4Ayw3Bd8A==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/ts-checker-rspack-plugin/-/ts-checker-rspack-plugin-1.3.1.tgz", + "integrity": "sha512-4VBjKblnJwypq+2aWZ9V65HENAmU/2s04d717YhLjC65MKitTTnqKeHE6GGB5C4S+2BnqZ9MtJt5AvS7nldaLQ==", "dev": true, "license": "MIT", "dependencies": { "@rspack/lite-tapable": "^1.1.0", "chokidar": "^3.6.0", - "memfs": "^4.56.10", + "memfs": "^4.57.2", "picocolors": "^1.1.1" }, "peerDependencies": { @@ -37223,6 +37292,303 @@ } } }, + "node_modules/ts-checker-rspack-plugin/node_modules/@jsonjoy.com/base64": { + "version": "17.67.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/base64/-/base64-17.67.0.tgz", + "integrity": "sha512-5SEsJGsm15aP8TQGkDfJvz9axgPwAEm98S5DxOuYe8e1EbfajcDmgeXXzccEjh+mLnjqEKrkBdjHWS5vFNwDdw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, + "node_modules/ts-checker-rspack-plugin/node_modules/@jsonjoy.com/codegen": { + "version": "17.67.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/codegen/-/codegen-17.67.0.tgz", + "integrity": "sha512-idnkUplROpdBOV0HMcwhsCUS5TRUi9poagdGs70A6S4ux9+/aPuKbh8+UYRTLYQHtXvAdNfQWXDqZEx5k4Dj2Q==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, + "node_modules/ts-checker-rspack-plugin/node_modules/@jsonjoy.com/fs-core": { + "version": "4.57.3", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-core/-/fs-core-4.57.3.tgz", + "integrity": "sha512-IvO50vkGydDZwS1e9rz/JXEtCCt9XvqxoGI6FlrVIvVm4/HpygMKW4ETtREWtMTsN5CLJ9FR6GuCduoQPZLBiw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jsonjoy.com/fs-node-builtins": "4.57.3", + "@jsonjoy.com/fs-node-utils": "4.57.3", + "thingies": "^2.5.0" + }, + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, + "node_modules/ts-checker-rspack-plugin/node_modules/@jsonjoy.com/fs-fsa": { + "version": "4.57.3", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-fsa/-/fs-fsa-4.57.3.tgz", + "integrity": "sha512-JlIDGUWPl7Y6zl+/ISnZuh8z2aMr/xoR66D18zlaVAuL192CvlNJEzOlzp27x4P52HRtDnCSOk6f59vTsmp5vw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jsonjoy.com/fs-core": "4.57.3", + "@jsonjoy.com/fs-node-builtins": "4.57.3", + "@jsonjoy.com/fs-node-utils": "4.57.3", + "thingies": "^2.5.0" + }, + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, + "node_modules/ts-checker-rspack-plugin/node_modules/@jsonjoy.com/fs-node": { + "version": "4.57.3", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-node/-/fs-node-4.57.3.tgz", + "integrity": "sha512-089gZoKvbeOsT2jeBaVKSz91oFXQWFG7a62sMY6gVMHnoWbyGzTb6OVUP/V7G3wLQLJ555BEsHt8SD1nj1dgaQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jsonjoy.com/fs-core": "4.57.3", + "@jsonjoy.com/fs-node-builtins": "4.57.3", + "@jsonjoy.com/fs-node-utils": "4.57.3", + "@jsonjoy.com/fs-print": "4.57.3", + "@jsonjoy.com/fs-snapshot": "4.57.3", + "glob-to-regex.js": "^1.0.0", + "thingies": "^2.5.0" + }, + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, + "node_modules/ts-checker-rspack-plugin/node_modules/@jsonjoy.com/fs-node-builtins": { + "version": "4.57.3", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-node-builtins/-/fs-node-builtins-4.57.3.tgz", + "integrity": "sha512-JAI3PqNuY8BR7ovy4h0bADLrqJLIcUauONNZfyTxUnj3Wf3tpTYe39eJ6z7FzYyA+tdMt33VpiQQUikGr3QOBw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, + "node_modules/ts-checker-rspack-plugin/node_modules/@jsonjoy.com/fs-node-to-fsa": { + "version": "4.57.3", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-node-to-fsa/-/fs-node-to-fsa-4.57.3.tgz", + "integrity": "sha512-uZGxyC0zDmcmW5bfHd4YivAZ54BLlbF9G0K5rBaksI/tZdJSGM7/AC+1TY7yvFu0Wc6gUHR7mFwf6SbQ3J1BTQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jsonjoy.com/fs-fsa": "4.57.3", + "@jsonjoy.com/fs-node-builtins": "4.57.3", + "@jsonjoy.com/fs-node-utils": "4.57.3" + }, + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, + "node_modules/ts-checker-rspack-plugin/node_modules/@jsonjoy.com/fs-node-utils": { + "version": "4.57.3", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-node-utils/-/fs-node-utils-4.57.3.tgz", + "integrity": "sha512-quCil8AvfcOxob4pn0drGdcQWpkPVgkt9q1+EjeyXXT40/L3l5lvYrr6hR8LmHu0eg+DNNaUwqjLT6Hr7V4sdQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jsonjoy.com/fs-node-builtins": "4.57.3" + }, + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, + "node_modules/ts-checker-rspack-plugin/node_modules/@jsonjoy.com/fs-print": { + "version": "4.57.3", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-print/-/fs-print-4.57.3.tgz", + "integrity": "sha512-ITwaLZpGIqD9jHndwMvDFZDIvbVzGRsJZDQ5HKln0vyMculu1c1nb7zbEBgY8BVSBZ9S2xO138OWIBGeRsrF3Q==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jsonjoy.com/fs-node-utils": "4.57.3", + "tree-dump": "^1.1.0" + }, + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, + "node_modules/ts-checker-rspack-plugin/node_modules/@jsonjoy.com/fs-snapshot": { + "version": "4.57.3", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/fs-snapshot/-/fs-snapshot-4.57.3.tgz", + "integrity": "sha512-wdNaG2DxCtvj9lKldAnEV3ycYPEpk+p2cP2lHD1qdxkoQGlWUtQverqvG9KZSkm6BHFha4PP6XRZbpARNfHRxA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jsonjoy.com/buffers": "^17.65.0", + "@jsonjoy.com/fs-node-utils": "4.57.3", + "@jsonjoy.com/json-pack": "^17.65.0", + "@jsonjoy.com/util": "^17.65.0" + }, + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, + "node_modules/ts-checker-rspack-plugin/node_modules/@jsonjoy.com/fs-snapshot/node_modules/@jsonjoy.com/json-pack": { + "version": "17.67.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/json-pack/-/json-pack-17.67.0.tgz", + "integrity": "sha512-t0ejURcGaZsn1ClbJ/3kFqSOjlryd92eQY465IYrezsXmPcfHPE/av4twRSxf6WE+TkZgLY+71vCZbiIiFKA/w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jsonjoy.com/base64": "17.67.0", + "@jsonjoy.com/buffers": "17.67.0", + "@jsonjoy.com/codegen": "17.67.0", + "@jsonjoy.com/json-pointer": "17.67.0", + "@jsonjoy.com/util": "17.67.0", + "hyperdyperid": "^1.2.0", + "thingies": "^2.5.0", + "tree-dump": "^1.1.0" + }, + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, + "node_modules/ts-checker-rspack-plugin/node_modules/@jsonjoy.com/fs-snapshot/node_modules/@jsonjoy.com/util": { + "version": "17.67.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/util/-/util-17.67.0.tgz", + "integrity": "sha512-6+8xBaz1rLSohlGh68D1pdw3AwDi9xydm8QNlAFkvnavCJYSze+pxoW2VKP8p308jtlMRLs5NTHfPlZLd4w7ew==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jsonjoy.com/buffers": "17.67.0", + "@jsonjoy.com/codegen": "17.67.0" + }, + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, + "node_modules/ts-checker-rspack-plugin/node_modules/@jsonjoy.com/json-pointer": { + "version": "17.67.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/json-pointer/-/json-pointer-17.67.0.tgz", + "integrity": "sha512-+iqOFInH+QZGmSuaybBUNdh7yvNrXvqR+h3wjXm0N/3JK1EyyFAeGJvqnmQL61d1ARLlk/wJdFKSL+LHJ1eaUA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jsonjoy.com/util": "17.67.0" + }, + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, + "node_modules/ts-checker-rspack-plugin/node_modules/@jsonjoy.com/json-pointer/node_modules/@jsonjoy.com/util": { + "version": "17.67.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/util/-/util-17.67.0.tgz", + "integrity": "sha512-6+8xBaz1rLSohlGh68D1pdw3AwDi9xydm8QNlAFkvnavCJYSze+pxoW2VKP8p308jtlMRLs5NTHfPlZLd4w7ew==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jsonjoy.com/buffers": "17.67.0", + "@jsonjoy.com/codegen": "17.67.0" + }, + "engines": { + "node": ">=10.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/streamich" + }, + "peerDependencies": { + "tslib": "2" + } + }, "node_modules/ts-checker-rspack-plugin/node_modules/chokidar": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", @@ -37262,20 +37628,20 @@ } }, "node_modules/ts-checker-rspack-plugin/node_modules/memfs": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/memfs/-/memfs-4.57.1.tgz", - "integrity": "sha512-WvzrWPwMQT+PtbX2Et64R4qXKK0fj/8pO85MrUCzymX3twwCiJCdvntW3HdhG1teLJcHDDLIKx5+c3HckWYZtQ==", + "version": "4.57.3", + "resolved": "https://registry.npmjs.org/memfs/-/memfs-4.57.3.tgz", + "integrity": "sha512-dlvqataP1zUOlfj6pv9wgCSC5pRIooNntXgdLfR7FWlcKi1p8fMfJADtHp/+8Dhu5JFvMHNh7L0QVcuaaBKqqA==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@jsonjoy.com/fs-core": "4.57.1", - "@jsonjoy.com/fs-fsa": "4.57.1", - "@jsonjoy.com/fs-node": "4.57.1", - "@jsonjoy.com/fs-node-builtins": "4.57.1", - "@jsonjoy.com/fs-node-to-fsa": "4.57.1", - "@jsonjoy.com/fs-node-utils": "4.57.1", - "@jsonjoy.com/fs-print": "4.57.1", - "@jsonjoy.com/fs-snapshot": "4.57.1", + "@jsonjoy.com/fs-core": "4.57.3", + "@jsonjoy.com/fs-fsa": "4.57.3", + "@jsonjoy.com/fs-node": "4.57.3", + "@jsonjoy.com/fs-node-builtins": "4.57.3", + "@jsonjoy.com/fs-node-to-fsa": "4.57.3", + "@jsonjoy.com/fs-node-utils": "4.57.3", + "@jsonjoy.com/fs-print": "4.57.3", + "@jsonjoy.com/fs-snapshot": "4.57.3", "@jsonjoy.com/json-pack": "^1.11.0", "@jsonjoy.com/util": "^1.9.0", "glob-to-regex.js": "^1.0.1", @@ -37394,9 +37760,9 @@ } }, "node_modules/ts-loader": { - "version": "9.5.7", - "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.5.7.tgz", - "integrity": "sha512-/ZNrKgA3K3PtpMYOC71EeMWIloGw3IYEa5/t1cyz2r5/PyUwTXGzYJvcD3kfUvmhlfpz1rhV8B2O6IVTQ0avsg==", + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.6.0.tgz", + "integrity": "sha512-dsJO0S+T7grTDWTc4a0nTygXGjKncVUpx8Y+af8EvI/D5WgTJby5UEk5eoMCB9EcLQmnvitqh99MqtjtHgAwFQ==", "dev": true, "license": "MIT", "dependencies": { @@ -37410,25 +37776,14 @@ "node": ">=12.0.0" }, "peerDependencies": { + "loader-utils": "*", "typescript": "*", - "webpack": "^5.0.0" - } - }, - "node_modules/ts-loader/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "webpack": "^4.0.0 || ^5.0.0" }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependenciesMeta": { + "loader-utils": { + "optional": true + } } }, "node_modules/ts-node": { @@ -37504,23 +37859,6 @@ "node": ">=10.13.0" } }, - "node_modules/tsconfig-paths-webpack-plugin/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/tsconfig-paths-webpack-plugin/node_modules/strip-bom": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", @@ -37773,7 +38111,8 @@ "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.3.tgz", "integrity": "sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/uid": { "version": "2.0.2", @@ -38043,6 +38382,7 @@ "version": "1.6.0", "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz", "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==", + "dev": true, "license": "MIT", "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" @@ -38108,6 +38448,21 @@ "dev": true, "license": "MIT" }, + "node_modules/valibot": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/valibot/-/valibot-1.2.0.tgz", + "integrity": "sha512-mm1rxUsmOxzrwnX5arGS+U4T25RdvpPjPN4yR0u9pUBov9+zGVtO84tif1eY4r6zWxVxu3KzIyknJy3rxfRZZg==", + "devOptional": true, + "license": "MIT", + "peerDependencies": { + "typescript": ">=5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, "node_modules/validate-npm-package-name": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-7.0.2.tgz", @@ -38224,6 +38579,7 @@ "integrity": "sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA==", "license": "MIT", "optional": true, + "peer": true, "engines": { "node": ">=14.0.0" } @@ -38234,6 +38590,7 @@ "integrity": "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "vscode-languageserver-protocol": "3.17.5" }, @@ -38247,6 +38604,7 @@ "integrity": "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==", "license": "MIT", "optional": true, + "peer": true, "dependencies": { "vscode-jsonrpc": "8.2.0", "vscode-languageserver-types": "3.17.5" @@ -38257,21 +38615,24 @@ "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.12.tgz", "integrity": "sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/vscode-languageserver-types": { "version": "3.17.5", "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz", "integrity": "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/vscode-uri": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.1.0.tgz", "integrity": "sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==", "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/w3c-xmlserializer": { "version": "5.0.0", @@ -38396,75 +38757,6 @@ } } }, - "node_modules/webpack-bundle-analyzer": { - "version": "4.10.2", - "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.10.2.tgz", - "integrity": "sha512-vJptkMm9pk5si4Bv922ZbKLV8UTT4zib4FPgXMhgzUny0bfDDkLXAVQs3ly3fS4/TN9ROFtb0NFrm04UXFE/Vw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@discoveryjs/json-ext": "0.5.7", - "acorn": "^8.0.4", - "acorn-walk": "^8.0.0", - "commander": "^7.2.0", - "debounce": "^1.2.1", - "escape-string-regexp": "^4.0.0", - "gzip-size": "^6.0.0", - "html-escaper": "^2.0.2", - "opener": "^1.5.2", - "picocolors": "^1.0.0", - "sirv": "^2.0.3", - "ws": "^7.3.1" - }, - "bin": { - "webpack-bundle-analyzer": "lib/bin/analyzer.js" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/@discoveryjs/json-ext": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", - "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/ws": { - "version": "7.5.10", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", - "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, "node_modules/webpack-dev-middleware": { "version": "7.4.5", "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-7.4.5.tgz", @@ -39262,7 +39554,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, + "devOptional": true, "license": "ISC", "dependencies": { "isexe": "^2.0.0" @@ -39587,9 +39879,9 @@ } }, "node_modules/yahoo-finance2": { - "version": "3.14.0", - "resolved": "https://registry.npmjs.org/yahoo-finance2/-/yahoo-finance2-3.14.0.tgz", - "integrity": "sha512-gsT/tqgeizKtMxbIIWFiFyuhM/6MZE4yEyNLmPekr88AX14JL2HWw0/QNMOR081jVtzTjihqDW0zV7IayH1Wcw==", + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/yahoo-finance2/-/yahoo-finance2-3.14.2.tgz", + "integrity": "sha512-s+F7TWQT7zAtjhfC7rFHEX16Xfq36u3wceysINP7V+esF3mAYyk9slxZU+fEdkxaTuCT0+PnikHdekMX4UPMrg==", "license": "MIT", "dependencies": { "@deno/shim-deno": "~0.18.0", @@ -39642,9 +39934,9 @@ "license": "ISC" }, "node_modules/yaml": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.3.tgz", - "integrity": "sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==", + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz", + "integrity": "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==", "devOptional": true, "license": "ISC", "bin": { @@ -39833,6 +40125,17 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/zeptomatch": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/zeptomatch/-/zeptomatch-2.1.0.tgz", + "integrity": "sha512-KiGErG2J0G82LSpniV0CtIzjlJ10E04j02VOudJsPyPwNZgGnRKQy7I1R7GMyg/QswnE4l7ohSGrQbQbjXPPDA==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "grammex": "^3.1.11", + "graphmatch": "^1.1.0" + } + }, "node_modules/zod": { "version": "3.25.76", "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", @@ -39846,6 +40149,7 @@ "version": "3.25.2", "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.2.tgz", "integrity": "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==", + "dev": true, "license": "ISC", "peerDependencies": { "zod": "^3.25.28 || ^4" diff --git a/package.json b/package.json index 5eb3558e6..4fa3e522a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ghostfolio", - "version": "2.255.0", + "version": "3.7.0", "homepage": "https://ghostfol.io", "license": "AGPL-3.0", "repository": "https://github.com/ghostfolio/ghostfolio", @@ -12,7 +12,6 @@ "affected:libs": "nx affected:libs", "affected:lint": "nx affected:lint", "affected:test": "nx affected:test", - "analyze:client": "nx run client:build:production --stats-json && webpack-bundle-analyzer -p 1234 dist/apps/client/en/stats.json", "angular": "node --max_old_space_size=32768 ./node_modules/@angular/cli/bin/ng", "build:production": "nx run api:copy-assets && nx run api:build:production && nx run client:copy-assets && nx run client:build:production && nx run ui:build-storybook && npm run replace-placeholders-in-build", "build:storybook": "nx run ui:build-storybook", @@ -66,30 +65,31 @@ "@angular/platform-browser-dynamic": "21.2.7", "@angular/router": "21.2.7", "@angular/service-worker": "21.2.7", - "@bull-board/api": "6.20.3", - "@bull-board/express": "6.20.3", - "@bull-board/nestjs": "6.20.3", + "@bull-board/api": "7.1.5", + "@bull-board/express": "7.1.5", + "@bull-board/nestjs": "7.1.5", "@codewithdan/observable-store": "2.2.15", "@date-fns/utc": "2.1.1", - "@internationalized/number": "3.6.5", - "@ionic/angular": "8.8.1", - "@keyv/redis": "4.4.0", + "@internationalized/number": "3.6.6", + "@ionic/angular": "8.8.5", + "@keyv/redis": "5.1.6", "@nestjs/bull": "11.0.4", - "@nestjs/cache-manager": "3.1.0", - "@nestjs/common": "11.1.14", - "@nestjs/config": "4.0.3", - "@nestjs/core": "11.1.14", - "@nestjs/event-emitter": "3.0.1", + "@nestjs/cache-manager": "3.1.2", + "@nestjs/common": "11.1.21", + "@nestjs/config": "4.0.4", + "@nestjs/core": "11.1.21", + "@nestjs/event-emitter": "3.1.0", "@nestjs/jwt": "11.0.2", "@nestjs/passport": "11.0.5", - "@nestjs/platform-express": "11.1.14", - "@nestjs/schedule": "6.1.1", - "@nestjs/serve-static": "5.0.4", - "@openrouter/ai-sdk-provider": "0.7.2", - "@prisma/client": "6.19.3", + "@nestjs/platform-express": "11.1.21", + "@nestjs/schedule": "6.1.3", + "@nestjs/serve-static": "5.0.5", + "@openrouter/ai-sdk-provider": "2.9.0", + "@prisma/adapter-pg": "7.8.0", + "@prisma/client": "7.8.0", "@simplewebauthn/browser": "13.2.2", "@simplewebauthn/server": "13.2.2", - "ai": "4.3.16", + "ai": "6.0.174", "alphavantage": "2.2.0", "big.js": "7.0.1", "bootstrap": "4.6.2", @@ -104,29 +104,29 @@ "class-validator": "0.15.1", "color": "5.0.3", "cookie-parser": "1.4.7", - "countries-and-timezones": "3.8.0", + "countries-and-timezones": "3.9.0", "countries-list": "3.3.0", - "countup.js": "2.9.0", + "countup.js": "2.10.0", "date-fns": "4.1.0", "dotenv": "17.2.3", "dotenv-expand": "12.0.3", "envalid": "8.1.1", "fast-redact": "3.5.0", - "fuse.js": "7.1.0", + "fuse.js": "7.3.0", "google-spreadsheet": "3.2.0", "helmet": "7.0.0", "http-status-codes": "2.3.0", "ionicons": "8.0.13", - "jsonpath": "1.2.1", + "jsonpath": "1.3.0", "lodash": "4.18.1", "marked": "17.0.2", "ms": "3.0.0-canary.1", "ng-extract-i18n-merge": "3.3.0", "ngx-device-detector": "11.0.0", - "ngx-markdown": "21.1.0", + "ngx-markdown": "21.2.0", "ngx-skeleton-loader": "12.0.0", "open-color": "1.9.1", - "papaparse": "5.3.1", + "papaparse": "5.5.3", "passport": "0.7.0", "passport-google-oauth20": "2.0.0", "passport-headerapikey": "1.2.2", @@ -134,11 +134,12 @@ "passport-openidconnect": "0.1.2", "reflect-metadata": "0.2.2", "rxjs": "7.8.1", - "stripe": "20.4.1", + "stripe": "21.0.1", "svgmap": "2.19.3", "tablemark": "4.1.0", "twitter-api-v2": "1.29.0", - "yahoo-finance2": "3.14.0", + "undici": "7.24.4", + "yahoo-finance2": "3.14.2", "zone.js": "0.16.1" }, "devDependencies": { @@ -155,20 +156,21 @@ "@angular/pwa": "21.2.6", "@eslint/eslintrc": "3.3.1", "@eslint/js": "9.35.0", - "@nestjs/schematics": "11.0.9", - "@nestjs/testing": "11.1.14", - "@nx/angular": "22.6.4", - "@nx/eslint-plugin": "22.6.4", - "@nx/jest": "22.6.4", - "@nx/js": "22.6.4", - "@nx/module-federation": "22.6.4", - "@nx/nest": "22.6.4", - "@nx/node": "22.6.4", - "@nx/storybook": "22.6.4", - "@nx/web": "22.6.4", - "@nx/workspace": "22.6.4", + "@nestjs/schematics": "11.1.0", + "@nestjs/testing": "11.1.21", + "@nx/angular": "22.7.5", + "@nx/eslint-plugin": "22.7.5", + "@nx/jest": "22.7.5", + "@nx/js": "22.7.5", + "@nx/module-federation": "22.7.5", + "@nx/nest": "22.7.5", + "@nx/node": "22.7.5", + "@nx/storybook": "22.7.5", + "@nx/web": "22.7.5", + "@nx/workspace": "22.7.5", "@schematics/angular": "21.2.6", "@storybook/addon-docs": "10.1.10", + "@storybook/addon-themes": "10.1.10", "@storybook/angular": "10.1.10", "@trivago/prettier-plugin-sort-imports": "6.0.2", "@types/big.js": "6.2.2", @@ -179,7 +181,7 @@ "@types/jsonpath": "0.2.4", "@types/lodash": "4.17.24", "@types/node": "22.15.17", - "@types/papaparse": "5.3.7", + "@types/papaparse": "5.5.2", "@types/passport-google-oauth20": "2.0.17", "@types/passport-openidconnect": "0.1.3", "@typescript-eslint/eslint-plugin": "8.43.0", @@ -192,10 +194,10 @@ "jest": "30.2.0", "jest-environment-jsdom": "30.2.0", "jest-preset-angular": "16.0.0", - "nx": "22.6.4", - "prettier": "3.8.2", + "nx": "22.7.5", + "prettier": "3.8.3", "prettier-plugin-organize-attributes": "1.0.0", - "prisma": "6.19.3", + "prisma": "7.8.0", "react": "18.2.0", "react-dom": "18.2.0", "replace-in-file": "8.4.0", @@ -204,8 +206,7 @@ "ts-jest": "29.4.0", "ts-node": "10.9.2", "tslib": "2.8.1", - "typescript": "5.9.2", - "webpack-bundle-analyzer": "4.10.2" + "typescript": "5.9.2" }, "engines": { "node": ">=22.18.0" diff --git a/prisma/migrations/20260516074856_added_stripe_checkout_session_to_subscription/migration.sql b/prisma/migrations/20260516074856_added_stripe_checkout_session_to_subscription/migration.sql new file mode 100644 index 000000000..f5c8ae016 --- /dev/null +++ b/prisma/migrations/20260516074856_added_stripe_checkout_session_to_subscription/migration.sql @@ -0,0 +1,5 @@ +-- AlterTable +ALTER TABLE "Subscription" ADD COLUMN "stripeCheckoutSessionId" TEXT; + +-- CreateIndex +CREATE UNIQUE INDEX "Subscription_stripeCheckoutSessionId_key" ON "Subscription"("stripeCheckoutSessionId"); diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 069ed6279..024ab7aa0 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -6,7 +6,6 @@ generator client { datasource db { provider = "postgresql" - url = env("DATABASE_URL") } model Access { @@ -237,13 +236,14 @@ model SymbolProfileOverrides { } model Subscription { - createdAt DateTime @default(now()) - expiresAt DateTime - id String @id @default(uuid()) - price Float? - updatedAt DateTime @updatedAt - user User @relation(fields: [userId], onDelete: Cascade, references: [id]) - userId String + createdAt DateTime @default(now()) + expiresAt DateTime + id String @id @default(uuid()) + price Float? + stripeCheckoutSessionId String? @unique + updatedAt DateTime @updatedAt + user User @relation(fields: [userId], onDelete: Cascade, references: [id]) + userId String @@index([userId]) } diff --git a/prisma/seed.mts b/prisma/seed.mts index 18389aab1..81f34d05a 100644 --- a/prisma/seed.mts +++ b/prisma/seed.mts @@ -1,6 +1,11 @@ +import { PrismaPg } from '@prisma/adapter-pg'; import { PrismaClient } from '@prisma/client'; -const prisma = new PrismaClient(); +const adapter = new PrismaPg({ + connectionString: process.env.DIRECT_URL ?? process.env.DATABASE_URL +}); + +const prisma = new PrismaClient({ adapter }); async function main() { await prisma.tag.createMany({ diff --git a/skills-lock.json b/skills-lock.json new file mode 100644 index 000000000..0ecf51f96 --- /dev/null +++ b/skills-lock.json @@ -0,0 +1,17 @@ +{ + "version": 1, + "skills": { + "angular-developer": { + "source": "angular/skills", + "sourceType": "github", + "skillPath": "angular-developer/SKILL.md", + "computedHash": "28eb592b92e5a24c4e3a1c0229a854069f0b8c49bed7b8d2bf6b852812dbe214" + }, + "nestjs-best-practices": { + "source": "kadajett/agent-nestjs-skills", + "sourceType": "github", + "skillPath": "SKILL.md", + "computedHash": "1b6f82e889d19d305e38e35594de08eca0242321f353cafa4cf5e61dd3aa1a73" + } + } +} diff --git a/tools/load-env.ts b/tools/load-env.ts new file mode 100644 index 000000000..3dd0d03c7 --- /dev/null +++ b/tools/load-env.ts @@ -0,0 +1,4 @@ +import { config } from 'dotenv'; +import { expand } from 'dotenv-expand'; + +expand(config({ path: process.env.GHOSTFOLIO_ENV_FILE, quiet: true }));