Skip to content

Commit a39d26c

Browse files
authored
feat(desktop-ui): refactor to standalone/signal, update angular to v20, new website docs (#657)
chore: update yarn to 4.9.2
1 parent d671afe commit a39d26c

File tree

400 files changed

+72585
-303085
lines changed

Some content is hidden

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

400 files changed

+72585
-303085
lines changed

.madgerc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"detectiveOptions": {
3+
"ts": {
4+
"skipTypeImports": true
5+
}
6+
}
7+
}

.yarn/releases/yarn-4.0.2.cjs

Lines changed: 0 additions & 893 deletions
This file was deleted.

.yarn/releases/yarn-4.9.2.cjs

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
nodeLinker: node-modules
22

3-
yarnPath: .yarn/releases/yarn-4.0.2.cjs
4-
5-
supportedArchitectures:
6-
os: [linux, darwin]
7-
cpu: [x64, arm64]
8-
93
packageExtensions:
4+
"@types/node@22.13.1":
5+
dependencies:
6+
undici-types: 6.20.0
107
"@types/ssh2-sftp-client@9.0.4":
118
dependencies:
12-
"@types/node": "22.13.1"
9+
"@types/node": 22.13.1
1310
"@types/ssh2@1.15.4":
1411
dependencies:
15-
"@types/node": "22.13.1"
16-
"@types/node@22.13.1":
17-
dependencies:
18-
"undici-types": "6.20.0"
12+
"@types/node": 22.13.1
13+
14+
supportedArchitectures:
15+
cpu:
16+
- x64
17+
- arm64
18+
os:
19+
- linux
20+
- darwin
21+
22+
yarnPath: .yarn/releases/yarn-4.9.2.cjs

docs/setup-env-ubundu.md

Lines changed: 0 additions & 73 deletions
This file was deleted.

examples/rpc-websockets-esm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"devDependencies": {
1515
"@deepkit/type-compiler": "^1.0.1",
16-
"typescript": "~5.7.3",
16+
"typescript": "~5.8.3",
1717
"ts-node": "^10.9.1"
1818
}
1919
}

examples/rpc-websockets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"devDependencies": {
1414
"@deepkit/type-compiler": "^1.0.1",
15-
"typescript": "~5.7.3",
15+
"typescript": "~5.8.3",
1616
"ts-node": "^10.9.1"
1717
}
1818
}

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"docs": "rm -rf docs && node --max-old-space-size=12096 node_modules/.bin/typedoc packages/*/index.ts",
2121
"publish": "lerna publish --no-private patch",
2222
"publish-force": "npm run build && lerna publish --no-private --force-publish",
23+
"check:circular": "madge --extensions ts --warning --circular",
2324
"publish-website": "heroku container:push web && heroku container:release web"
2425
},
2526
"workspaces": [
@@ -42,14 +43,14 @@
4243
"coveralls": "^3.0.3",
4344
"jest": "^29.2.1",
4445
"lefthook": "^1.5.5",
45-
"lerna": "^7.4.2",
46-
"madge": "^4.0.0",
46+
"lerna": "^8.2.2",
47+
"madge": "^8.0.0",
4748
"prettier": "^3.1.1",
4849
"ts-jest": "^29.0.3",
4950
"ts-node": "^10.9.1",
5051
"ts-node-dev": "^2.0.0",
5152
"typedoc": "^0.23.17",
52-
"typescript": "~5.7.3"
53+
"typescript": "~5.8.3"
5354
},
5455
"engines": {
5556
"node": ">= 20.0.0"
@@ -95,5 +96,5 @@
9596
"packages/topsort"
9697
]
9798
},
98-
"packageManager": "yarn@4.6.0"
99+
"packageManager": "yarn@4.9.2"
99100
}

packages/angular-ssr/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
"build": "echo '{\"type\": \"module\"}' > ./dist/esm/package.json"
2525
},
2626
"peerDependencies": {
27-
"@angular/ssr": "^19.1.6",
27+
"@angular/ssr": "^20.0.3",
2828
"@deepkit/app": "^1.0.1",
2929
"@deepkit/http": "^1.0.1"
3030
},
3131
"devDependencies": {
32-
"@angular/ssr": "^19.1.7",
32+
"@angular/ssr": "^20.0.3",
3333
"@deepkit/app": "^1.0.12",
3434
"@deepkit/http": "^1.0.12"
3535
},

packages/angular-ssr/src/angular.ts

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,8 @@
88
* You should have received a copy of the MIT License along with this program.
99
*/
1010

11-
import {
12-
AngularNodeAppEngine,
13-
createNodeRequestHandler,
14-
isMainModule,
15-
NodeRequestHandlerFunction,
16-
writeResponseToNodeResponse,
17-
} from '@angular/ssr/node';
18-
import {
19-
HttpKernel,
20-
HttpNotFoundError,
21-
HttpRequest,
22-
HttpResponse,
23-
httpWorkflow,
24-
RouteConfig,
25-
staticOnRoute,
26-
} from '@deepkit/http';
11+
import { AngularNodeAppEngine, createNodeRequestHandler, isMainModule, NodeRequestHandlerFunction, writeResponseToNodeResponse } from '@angular/ssr/node';
12+
import { HttpKernel, HttpNotFoundError, HttpRequest, HttpResponse, httpWorkflow, RouteConfig, staticOnRoute } from '@deepkit/http';
2713
import { eventDispatcher } from '@deepkit/event';
2814
import { createModuleClass } from '@deepkit/app';
2915
import { ApplicationServer } from '@deepkit/framework';
@@ -68,7 +54,7 @@ class AngularRequestContext {
6854
}
6955

7056
class AngularState {
71-
ngApp: AngularNodeAppEngine = new AngularNodeAppEngine()
57+
ngApp: AngularNodeAppEngine = new AngularNodeAppEngine();
7258
}
7359

7460
class AngularListener {
@@ -140,7 +126,6 @@ export class RequestHandler {
140126
protected requestContext: AngularRequestContext,
141127
protected http: HttpKernel,
142128
protected server: ApplicationServer,
143-
protected staticListener: AngularStaticListener,
144129
) {
145130
}
146131

@@ -167,12 +152,12 @@ export class RequestHandler {
167152
}
168153
this.requestContext.serverBaseUrl = `http://${host}`;
169154

170-
if (!this.requestContext.serverBaseUrl) {
155+
if (!this.requestContext.publicBaseUrl) {
171156
if (mainModule) {
172-
this.requestContext.serverBaseUrl = 'http://localhost:8080';
157+
this.requestContext.publicBaseUrl = 'http://localhost:8080';
173158
} else {
174159
//angular dev server
175-
this.requestContext.serverBaseUrl = 'http://localhost:4200';
160+
this.requestContext.publicBaseUrl = 'http://localhost:4200';
176161
}
177162
}
178163
});

0 commit comments

Comments
 (0)