Skip to content

Commit 234e3dd

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix/develop-update
2 parents d5fc8dd + 9e0e80f commit 234e3dd

File tree

1,614 files changed

+45545
-19278
lines changed

Some content is hidden

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

1,614 files changed

+45545
-19278
lines changed

.husky/pre-push

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ npm run test:check-coverage-thresholds || {
1717
#printf "\n\nPlease address them before proceeding.\n\n\n\n"
1818
# exit 1
1919
}
20+

angular.json

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@
2929
"cedar-embeddable-editor",
3030
"cedar-artifact-viewer",
3131
"markdown-it-video",
32-
"ace-builds/src-noconflict/ext-language_tools"
32+
"ace-builds/src-noconflict/ext-language_tools",
33+
"@traptitech/markdown-it-katex"
3334
],
3435
"assets": [
36+
"src/favicon.ico",
3537
"src/assets",
3638
{
3739
"glob": "**/*",
@@ -63,7 +65,7 @@
6365
"budgets": [
6466
{
6567
"type": "initial",
66-
"maximumWarning": "7MB",
68+
"maximumWarning": "9MB",
6769
"maximumError": "10MB"
6870
},
6971
{
@@ -79,36 +81,58 @@
7981
"outputHashing": "none",
8082
"namedChunks": true
8183
},
82-
"local": {
84+
"development": {
8385
"optimization": false,
8486
"extractLicenses": false,
8587
"sourceMap": true,
8688
"fileReplacements": [
8789
{
8890
"replace": "src/environments/environment.ts",
89-
"with": "src/environments/environment.local.ts"
91+
"with": "src/environments/environment.development.ts"
9092
}
9193
]
9294
},
93-
"test-osf": {
95+
"docker": {
9496
"optimization": false,
9597
"extractLicenses": false,
9698
"sourceMap": true,
9799
"fileReplacements": [
98100
{
99101
"replace": "src/environments/environment.ts",
100-
"with": "src/environments/environment.test-osf.ts"
102+
"with": "src/environments/environment.docker.ts"
101103
}
102104
]
103105
},
104-
"development": {
105-
"optimization": false,
106+
"staging": {
107+
"optimization": true,
106108
"extractLicenses": false,
107-
"sourceMap": true,
109+
"sourceMap": false,
108110
"fileReplacements": [
109111
{
110112
"replace": "src/environments/environment.ts",
111-
"with": "src/environments/environment.development.ts"
113+
"with": "src/environments/environment.staging.ts"
114+
}
115+
]
116+
},
117+
"test": {
118+
"optimization": true,
119+
"extractLicenses": false,
120+
"sourceMap": false,
121+
"fileReplacements": [
122+
{
123+
"replace": "src/environments/environment.ts",
124+
"with": "src/environments/environment.test.ts"
125+
}
126+
]
127+
},
128+
"test-osf": {
129+
"optimization": true,
130+
"extractLicenses": false,
131+
"sourceMap": false,
132+
"fileReplacements": [
133+
{
134+
"replace": "src/environments/environment.ts",
135+
"with": "src/environments/environment.test-osf.ts"
112136
}
113137
]
114138
}
@@ -125,8 +149,16 @@
125149
"buildTarget": "osf:build:development",
126150
"hmr": false
127151
},
128-
"local": {
129-
"buildTarget": "osf:build:local",
152+
"docker": {
153+
"buildTarget": "osf:build:docker",
154+
"hmr": false
155+
},
156+
"staging": {
157+
"buildTarget": "osf:build:staging",
158+
"hmr": false
159+
},
160+
"test": {
161+
"buildTarget": "osf:build:test",
130162
"hmr": false
131163
},
132164
"test-osf": {

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ services:
2222
- ./angular.json:/app/angular.json
2323
- ./tsconfig.json:/app/tsconfig.json
2424
- ./tsconfig.app.json:/app/tsconfig.app.json
25+
- ./docker/scripts:/app/docker
2526
# (CMD comes from Dockerfile, but you could override here if you wanted)
2627
command: ['npm', 'run', 'start:docker']
2728

docker/scripts/check-config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const fs = require('fs');
2+
const path = require('path');
3+
4+
const configPath = path.join(__dirname, '../src/assets/config/config.json');
5+
const templatePath = path.join(__dirname, '../src/assets/config/template.json');
6+
7+
if (!fs.existsSync(configPath)) {
8+
console.log('[INFO] config.json not found. Copying from template.json...');
9+
fs.copyFileSync(templatePath, configPath);
10+
} else {
11+
console.log('[INFO] config.json already exists.');
12+
}

eslint.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ module.exports = tseslint.config(
8787
},
8888
{
8989
files: ['**/*.html'],
90-
plugins: {
91-
'@angular-eslint/template': angularEslintTemplate,
92-
},
9390
languageOptions: {
9491
parser: angularTemplateParser,
9592
},

jest.config.js

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,18 @@ module.exports = {
2828
coverageDirectory: 'coverage',
2929
collectCoverageFrom: [
3030
'src/app/**/*.{ts,js}',
31+
'!src/app/core/theme/**',
3132
'!src/app/app.config.ts',
32-
'!src/app/**/*.routes.{ts.js}',
33+
'!src/app/app.routes.ts',
34+
'!src/app/**/*.routes.{ts,js}',
35+
'!src/app/**/**/*.routes.{ts,js}',
36+
'!src/app/**/*.route.{ts,js}',
37+
'!src/app/**/mappers/**',
38+
'!src/app/shared/mappers/**',
3339
'!src/app/**/*.models.{ts.js}',
3440
'!src/app/**/*.model.{ts.js}',
35-
'!src/app/**/*.route.{ts,js}',
36-
'!src/app/**/*.enum.{ts,js}',
37-
'!src/app/**/*.type.{ts,js}',
41+
'!src/app/**/models/*.{ts,js}',
42+
'!src/app/shared/models/**',
3843
'!src/app/**/*.enum.{ts,js}',
3944
'!src/app/**/*.type.{ts,js}',
4045
'!src/app/**/*.spec.{ts,js}',
@@ -45,10 +50,10 @@ module.exports = {
4550
extensionsToTreatAsEsm: ['.ts'],
4651
coverageThreshold: {
4752
global: {
48-
branches: 14.27,
49-
functions: 15.55,
50-
lines: 42.6,
51-
statements: 43.2,
53+
branches: 24.1,
54+
functions: 28.73,
55+
lines: 56.52,
56+
statements: 56.82,
5257
},
5358
},
5459
watchPathIgnorePatterns: [
@@ -60,24 +65,22 @@ module.exports = {
6065
'<rootDir>/src/@types/',
6166
],
6267
testPathIgnorePatterns: [
68+
'<rootDir>/src/environments',
6369
'<rootDir>/src/app/app.config.ts',
6470
'<rootDir>/src/app/app.routes.ts',
65-
'<rootDir>/src/app/features/files/components',
6671
'<rootDir>/src/app/features/files/pages/file-detail',
67-
'<rootDir>/src/app/features/preprints/',
68-
'<rootDir>/src/app/features/project/',
69-
'<rootDir>/src/app/features/registries/',
70-
'<rootDir>/src/app/features/registry/',
72+
'<rootDir>/src/app/features/project/addons/',
73+
'<rootDir>/src/app/features/project/overview/',
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',
7178
'<rootDir>/src/app/features/settings/addons/',
7279
'<rootDir>/src/app/features/settings/tokens/store/',
7380
'<rootDir>/src/app/shared/components/file-menu/',
74-
'<rootDir>/src/app/shared/components/files-tree/',
7581
'<rootDir>/src/app/shared/components/line-chart/',
76-
'<rootDir>/src/app/shared/components/make-decision-dialog/',
7782
'<rootDir>/src/app/shared/components/pie-chart/',
78-
'<rootDir>/src/app/shared/components/resource-citations/',
7983
'<rootDir>/src/app/shared/components/reusable-filter/',
8084
'<rootDir>/src/app/shared/components/wiki/edit-section/',
81-
'<rootDir>/src/app/shared/components/wiki/wiki-list/',
8285
],
8386
};

0 commit comments

Comments
 (0)