Skip to content

Commit 065fb94

Browse files
committed
Merge branch 'release/26.2.0'
2 parents c174f46 + c95f0b1 commit 065fb94

File tree

9,394 files changed

+584100
-6706
lines changed

Some content is hidden

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

9,394 files changed

+584100
-6706
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
We follow the CalVer (https://calver.org/) versioning scheme: YY.MINOR.MICRO.
44

5+
26.2.0 (2026-01-29)
6+
===================
7+
8+
* Misc. improvements and bug fixes
9+
510
26.1.0 (2026-01-01)
611
===================
712

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,27 @@ WORKDIR /code
1818

1919
COPY --from=build /app/dist /code/dist
2020

21+
# SSR
22+
FROM node:22-alpine AS ssr
23+
24+
WORKDIR /app
25+
26+
COPY package*.json ./
27+
RUN npm install
28+
29+
COPY . .
30+
31+
RUN npm link @angular/cli
32+
RUN NG_BUILD_OPTIMIZE_CHUNKS=1 ng build --configuration=ssr --verbose
33+
34+
RUN npm ci --omit=dev --ignore-scripts --no-audit --no-fund
35+
36+
EXPOSE 4000
37+
38+
ENV PORT=4000
39+
40+
CMD ["node", "dist/osf/server/server.mjs"]
41+
2142
# Dev - run only
2243
FROM build AS dev
2344

angular.json

Lines changed: 41 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@
2929
"cedar-embeddable-editor",
3030
"cedar-artifact-viewer",
3131
"markdown-it-video",
32+
"markdown-it-anchor",
33+
"markdown-it-toc-done-right",
3234
"ace-builds/src-noconflict/ext-language_tools",
3335
"@traptitech/markdown-it-katex",
36+
"@centerforopenscience/markdown-it-atrules",
3437
"@citation-js/core",
3538
"@citation-js/plugin-csl"
3639
],
@@ -60,10 +63,39 @@
6063
"node_modules/ngx-markdown-editor/assets/highlight.js/highlight.min.js",
6164
"node_modules/ngx-markdown-editor/assets/marked.min.js",
6265
"src/assets/js/ace/snippetsMarkdown.js"
63-
]
66+
],
67+
"server": "src/main.server.ts",
68+
"outputMode": "server",
69+
"ssr": {
70+
"entry": "src/server.ts"
71+
}
6472
},
6573
"configurations": {
6674
"production": {
75+
"outputMode": "static",
76+
"server": false,
77+
"ssr": false,
78+
"budgets": [
79+
{
80+
"type": "initial",
81+
"maximumWarning": "9MB",
82+
"maximumError": "10MB"
83+
},
84+
{
85+
"type": "anyComponentStyle",
86+
"maximumWarning": "20KB",
87+
"maximumError": "25kB"
88+
}
89+
],
90+
"outputHashing": "all",
91+
"optimization": true
92+
},
93+
"ssr": {
94+
"outputMode": "server",
95+
"server": "src/main.server.ts",
96+
"ssr": {
97+
"entry": "src/server.ts"
98+
},
6799
"budgets": [
68100
{
69101
"type": "initial",
@@ -116,57 +148,33 @@
116148
"with": "src/environments/environment.staging.ts"
117149
}
118150
]
119-
},
120-
"test": {
121-
"optimization": true,
122-
"extractLicenses": false,
123-
"sourceMap": false,
124-
"fileReplacements": [
125-
{
126-
"replace": "src/environments/environment.ts",
127-
"with": "src/environments/environment.test.ts"
128-
}
129-
]
130-
},
131-
"test-osf": {
132-
"optimization": true,
133-
"extractLicenses": false,
134-
"sourceMap": false,
135-
"fileReplacements": [
136-
{
137-
"replace": "src/environments/environment.ts",
138-
"with": "src/environments/environment.test-osf.ts"
139-
}
140-
]
141151
}
142152
},
143153
"defaultConfiguration": "production"
144154
},
145155
"serve": {
146156
"builder": "@angular-devkit/build-angular:dev-server",
157+
"options": {
158+
"hmr": false
159+
},
147160
"configurations": {
148161
"production": {
149162
"buildTarget": "osf:build:production"
150163
},
151164
"development": {
152-
"buildTarget": "osf:build:development",
153-
"hmr": true
165+
"buildTarget": "osf:build:development"
154166
},
155167
"docker": {
156-
"buildTarget": "osf:build:docker",
157-
"hmr": true
168+
"buildTarget": "osf:build:docker"
158169
},
159170
"staging": {
160-
"buildTarget": "osf:build:staging",
161-
"hmr": true
171+
"buildTarget": "osf:build:staging"
162172
},
163173
"test": {
164-
"buildTarget": "osf:build:test",
165-
"hmr": false
174+
"buildTarget": "osf:build:test"
166175
},
167176
"test-osf": {
168-
"buildTarget": "osf:build:test-osf",
169-
"hmr": false
177+
"buildTarget": "osf:build:test-osf"
170178
}
171179
},
172180
"defaultConfiguration": "development"

jest.config.js

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ module.exports = {
2424
},
2525
],
2626
},
27-
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$|@ngxs|@angular|@ngrx|parse5|entities|chart.js)'],
27+
transformIgnorePatterns: [
28+
'node_modules/(?!.*\\.mjs$|@ngxs|@angular|@ngrx|parse5|entities|chart.js|@mdit|@citation-js|@traptitech|@sentry|@primeng|@newrelic)',
29+
],
2830
testEnvironment: 'jsdom',
2931
moduleFileExtensions: ['ts', 'js', 'html', 'json', 'mjs'],
3032
coverageDirectory: 'coverage',
@@ -52,10 +54,10 @@ module.exports = {
5254
extensionsToTreatAsEsm: ['.ts'],
5355
coverageThreshold: {
5456
global: {
55-
branches: 28.0,
56-
functions: 32.0,
57-
lines: 60.28,
58-
statements: 60.77,
57+
branches: 34.8,
58+
functions: 38.0,
59+
lines: 65.5,
60+
statements: 66.0,
5961
},
6062
},
6163
watchPathIgnorePatterns: [
@@ -68,19 +70,9 @@ module.exports = {
6870
],
6971
testPathIgnorePatterns: [
7072
'<rootDir>/src/environments',
71-
'<rootDir>/src/app/app.config.ts',
7273
'<rootDir>/src/app/features/files/pages/file-detail',
7374
'<rootDir>/src/app/features/project/addons/',
74-
'<rootDir>/src/app/features/project/registrations',
75-
'<rootDir>/src/app/features/project/wiki',
76-
'<rootDir>/src/app/features/registry/components',
77-
'<rootDir>/src/app/features/registry/pages/registry-wiki/registry-wiki',
7875
'<rootDir>/src/app/features/settings/addons/',
7976
'<rootDir>/src/app/features/settings/tokens/store/',
80-
'<rootDir>/src/app/shared/components/file-menu/',
81-
'<rootDir>/src/app/shared/components/line-chart/',
82-
'<rootDir>/src/app/shared/components/pie-chart/',
83-
'<rootDir>/src/app/shared/components/reusable-filter/',
84-
'<rootDir>/src/app/shared/components/wiki/edit-section/',
8577
],
8678
};

0 commit comments

Comments
 (0)