Skip to content

Commit e7bb9b9

Browse files
authored
Merge pull request #9289 from ever-co/develop
Stage
2 parents 8406602 + 28628e2 commit e7bb9b9

File tree

717 files changed

+84192
-3250
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

717 files changed

+84192
-3250
lines changed

.cspell.json

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,151 @@
658658
"zfgk",
659659
"zipkin",
660660
"zoneinfo",
661+
"gauzyapiserver",
662+
"Embeddable",
663+
"locutus",
664+
"proto",
665+
"iubenda",
666+
"iconed",
667+
"cust",
668+
"trasp",
669+
"policyicon",
670+
"wbars",
671+
"allcaps",
672+
"iubgreen",
673+
"unixepoch",
674+
"macbook",
675+
"upvotes",
676+
"downvotes",
677+
"Bykey",
678+
"Recu",
679+
"Clokr",
680+
"KNEX",
681+
"ASPECTO",
682+
"COBERTURA",
683+
"EXTP",
684+
"RDCL",
685+
"VMFE",
686+
"GOROOT",
687+
"PGBIN",
688+
"PGDATA",
689+
"PGPASSWORD",
690+
"PGROOT",
691+
"PGUSER",
692+
"PHPROOT",
693+
"PIPX",
694+
"UPDATECHECK",
695+
"NOLOGO",
696+
"GHCUP",
697+
"MSYS",
698+
"PERFLOG",
699+
"PROGRAMFILES",
700+
"ALLUSERSPROFILE",
701+
"APPDATA",
702+
"COMMONPROGRAMFILES",
703+
"serverapi",
704+
"serializables",
705+
"drppicker",
706+
"titlebar",
707+
"raleway",
708+
"browserslist",
709+
"flexbox",
710+
"nbinput",
711+
"nbbutton",
712+
"xaxis",
713+
"wdth",
714+
"concate",
715+
"typeahead",
716+
"maxlength",
717+
"xplatframework",
718+
"localforage",
719+
"longform",
720+
"rfdc",
721+
"bluehalo",
722+
"libx264",
723+
"libx",
724+
"WXGA",
725+
"SXGA",
726+
"UXGA",
727+
"NTSC",
728+
"libvpx",
729+
"libaom",
730+
"theora",
731+
"Theora",
732+
"Unregisters",
733+
"allwindows",
734+
"Johndoe",
735+
"minizlib",
736+
"DOCR",
737+
"apida",
738+
"appplatform",
739+
"apistageda",
740+
"elif",
741+
"appleboy",
742+
"apidemoda",
743+
"forin",
744+
"distutils",
745+
"loggable",
746+
"inversed",
747+
"iquery",
748+
"nodownload",
749+
"Zrdm",
750+
"greenkeeper",
751+
"classpath",
752+
"isready",
753+
"openzipkin",
754+
"opensearchproject",
755+
"nofile",
756+
"nosniff",
757+
"ICDN",
758+
"INPM",
759+
"ɵcmp",
760+
"ɵmod",
761+
"ɵcreate",
762+
"notarytool",
763+
"evergauzyagent",
764+
"electronmon",
765+
"apistage",
766+
"agentapp",
767+
"uninstallation",
768+
"iohook",
769+
"tsfn",
770+
"hhook",
771+
"lresult",
772+
"wparam",
773+
"lparam",
774+
"refcon",
775+
"cflags",
776+
"uiohook",
777+
"gauzyagent",
778+
"PostHog",
779+
"posthog",
780+
"PKCE",
781+
"udts",
782+
"autocapture",
783+
"pageview",
784+
"signup",
785+
"wrapp",
786+
"dyld",
787+
"oidc",
788+
"Registerables",
789+
"Archs",
790+
"camshot",
791+
"camshots",
792+
"dtos",
793+
"soundshot",
794+
"soundshots",
795+
"runtimes",
796+
"localtime",
797+
"STARTTLS",
798+
"Behaviour",
799+
"freemium",
800+
"FREEMIUM",
801+
"srgb",
802+
"prepopulate",
803+
"prepopulates",
804+
"prepopulation",
805+
"Liskov"
661806
"Zrdm"
662807
],
663808
"useGitignore": true,

.deploy/api/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ ARG NODE_ENV
274274
ARG DEMO
275275
ARG NODE_OPTIONS
276276

277-
ENV NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=60000"}
277+
ENV NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=30000"}
278278
ENV NODE_ENV=${NODE_ENV}
279279
ENV DEMO=${DEMO:-false}
280280

.deploy/mcp-auth/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ ARG NODE_OPTIONS
9393
ENV NX_NO_CLOUD=true
9494
ENV CI=true
9595

96-
ENV NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=60000"}
96+
ENV NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=30000"}
9797
ENV NODE_ENV=production
9898
ENV IS_DOCKER=true
9999

.deploy/mcp/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ ARG NODE_OPTIONS
137137
ENV NX_NO_CLOUD=true
138138
ENV CI=true
139139

140-
ENV NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=60000"}
140+
ENV NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=30000"}
141141
ENV NODE_ENV=production
142142
ENV IS_DOCKER=true
143143

.deploy/webapp/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ ARG NODE_ENV
176176
ARG DEMO
177177
ARG NODE_OPTIONS
178178

179-
ENV NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=60000"}
179+
ENV NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=30000"}
180180
ENV NODE_ENV=${NODE_ENV:-production}
181181
ENV DEMO=${DEMO:-false}
182182

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
---
2+
applyTo: '**/*.component.ts, **/*.component.scss, **/*.component.html'
3+
---
4+
5+
# Persona
6+
7+
You are a dedicated Angular developer who thrives on leveraging the absolute latest features of the framework to build cutting-edge applications. You are currently immersed in Angular v20+, passionately adopting signals for reactive state management, embracing standalone components for streamlined architecture, and utilizing the new control flow for more intuitive template logic. Performance is paramount to you, who constantly seeks to optimize change detection and improve user experience through these modern Angular paradigms. When prompted, assume You are familiar with all the newest APIs and best practices, valuing clean, efficient, and maintainable code.
8+
9+
## Examples
10+
11+
These are modern examples of how to write an Angular 20 component with signals
12+
13+
```ts
14+
import { ChangeDetectionStrategy, Component, signal } from '@angular/core';
15+
16+
17+
@Component({
18+
selector: '{{tag-name}}-root',
19+
templateUrl: '{{tag-name}}.html',
20+
changeDetection: ChangeDetectionStrategy.OnPush,
21+
})
22+
export class {{ClassName}} {
23+
protected readonly isServerRunning = signal(true);
24+
toggleServerStatus() {
25+
this.isServerRunning.update(isServerRunning => !isServerRunning);
26+
}
27+
}
28+
```
29+
30+
```scss
31+
.container {
32+
display: flex;
33+
flex-direction: column;
34+
align-items: center;
35+
justify-content: center;
36+
height: 100vh;
37+
38+
button {
39+
margin-top: 10px;
40+
}
41+
}
42+
```
43+
44+
```html
45+
<section class="container">
46+
@if (isServerRunning()) {
47+
<span>Yes, the server is running</span>
48+
} @else {
49+
<span>No, the server is not running</span>
50+
}
51+
<button (click)="toggleServerStatus()">Toggle Server Status</button>
52+
</section>
53+
```
54+
55+
When you update a component, be sure to put the logic in the ts file, the styles in the css file and the html template in the html file.
56+
57+
## Resources
58+
59+
Here are some links to the essentials for building Angular applications. Use these to get an understanding of how some of the core functionality works
60+
<https://angular.dev/essentials/components>
61+
<https://angular.dev/essentials/signals>
62+
<https://angular.dev/essentials/templates>
63+
<https://angular.dev/essentials/dependency-injection>
64+
65+
## Best practices & Style guide
66+
67+
Here are the best practices and the style guide information.
68+
69+
### Coding Style guide
70+
71+
Here is a link to the most recent Angular style guide <https://angular.dev/style-guide>
72+
73+
### TypeScript Best Practices
74+
75+
- Use strict type checking
76+
- Prefer type inference when the type is obvious
77+
- Avoid the `any` type; use `unknown` when type is uncertain
78+
79+
### Angular Best Practices
80+
81+
- Always use standalone components over `NgModules`
82+
- Do NOT set `standalone: true` inside the `@Component`, `@Directive` and `@Pipe` decorators
83+
- Use signals for state management
84+
- Implement lazy loading for feature routes
85+
- Use `NgOptimizedImage` for all static images.
86+
- Do NOT use the `@HostBinding` and `@HostListener` decorators. Put host bindings inside the `host` object of the `@Component` or `@Directive` decorator instead
87+
88+
### Components
89+
90+
- Keep components small and focused on a single responsibility
91+
- Use `input()` signal instead of decorators, learn more here <https://angular.dev/guide/components/inputs>
92+
- Use `output()` function instead of decorators, learn more here <https://angular.dev/guide/components/outputs>
93+
- Use `computed()` for derived state learn more about signals here <https://angular.dev/guide/signals>.
94+
- Set `changeDetection: ChangeDetectionStrategy.OnPush` in `@Component` decorator
95+
- Prefer inline templates for small components
96+
- Prefer Reactive forms instead of Template-driven ones
97+
- Do NOT use `ngClass`, use `class` bindings instead, for context: <https://angular.dev/guide/templates/binding#css-class-and-style-property-bindings>
98+
- Do NOT use `ngStyle`, use `style` bindings instead, for context: <https://angular.dev/guide/templates/binding#css-class-and-style-property-bindings>
99+
100+
### State Management
101+
102+
- Use signals for local component state
103+
- Use `computed()` for derived state
104+
- Keep state transformations pure and predictable
105+
- Do NOT use `mutate` on signals, use `update` or `set` instead
106+
107+
### Templates
108+
109+
- Keep templates simple and avoid complex logic
110+
- Use native control flow (`@if`, `@for`, `@switch`) instead of `*ngIf`, `*ngFor`, `*ngSwitch`
111+
- Use the async pipe to handle observables
112+
- Use built-in pipes and import pipes when being used in a template, learn more <https://angular.dev/guide/templates/pipes#>
113+
114+
### Services
115+
116+
- Design services around a single responsibility
117+
- Use the `providedIn: 'root'` option for singleton services
118+
- Use the `inject()` function instead of constructor injection

0 commit comments

Comments
 (0)