Skip to content

Commit 9ce41f8

Browse files
authored
Merge branch 'main' into telugu_odia_Malayalam_translator
2 parents aa38167 + 388c7eb commit 9ce41f8

File tree

2,753 files changed

+68752
-44407
lines changed

Some content is hidden

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

2,753 files changed

+68752
-44407
lines changed

.eslintrc.json

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"@angular-eslint/eslint-plugin",
66
"eslint-plugin-import",
77
"eslint-plugin-jsdoc",
8-
"eslint-plugin-deprecation",
98
"unused-imports",
109
"eslint-plugin-lodash",
1110
"eslint-plugin-jsonc",
12-
"eslint-plugin-rxjs",
11+
"@smarttools/rxjs",
1312
"eslint-plugin-simple-import-sort",
1413
"eslint-plugin-import-newlines",
14+
"@stylistic",
1515
"dspace-angular-ts",
1616
"dspace-angular-html"
1717
],
@@ -37,7 +37,7 @@
3737
"plugin:@typescript-eslint/recommended-requiring-type-checking",
3838
"plugin:@angular-eslint/recommended",
3939
"plugin:@angular-eslint/template/process-inline-templates",
40-
"plugin:rxjs/recommended"
40+
"plugin:@smarttools/rxjs/recommended-legacy"
4141
],
4242
"rules": {
4343
"indent": [
@@ -175,15 +175,16 @@
175175
"ignoreParameters": true
176176
}
177177
],
178-
"@typescript-eslint/quotes": [
178+
"@angular-eslint/prefer-inject": "off",
179+
"@stylistic/quotes": [
179180
"error",
180181
"single",
181182
{
182183
"avoidEscape": true,
183184
"allowTemplateLiterals": true
184185
}
185186
],
186-
"@typescript-eslint/semi": "error",
187+
"@stylistic/semi": "error",
187188
"@typescript-eslint/no-shadow": "error",
188189
"@typescript-eslint/dot-notation": "error",
189190
"@typescript-eslint/consistent-type-definitions": "error",
@@ -206,9 +207,9 @@
206207
]
207208
}
208209
],
209-
"@typescript-eslint/type-annotation-spacing": "error",
210+
"@stylistic/type-annotation-spacing": "error",
210211
"@typescript-eslint/unified-signatures": "error",
211-
"@typescript-eslint/ban-types": "error",
212+
"@typescript-eslint/no-restricted-types": "error",
212213
"@typescript-eslint/no-floating-promises": "warn",
213214
"@typescript-eslint/no-misused-promises": "warn",
214215
"@typescript-eslint/restrict-plus-operands": "warn",
@@ -223,6 +224,7 @@
223224
"@typescript-eslint/no-unsafe-call": "off",
224225
"@typescript-eslint/no-unsafe-argument": "off",
225226
"@typescript-eslint/no-unsafe-return": "off",
227+
"@typescript-eslint/no-redundant-type-constituents": "off",
226228
"@typescript-eslint/restrict-template-expressions": "off",
227229
"@typescript-eslint/require-await": "off",
228230
"@typescript-eslint/no-base-to-string": [
@@ -235,7 +237,7 @@
235237
}
236238
],
237239

238-
"deprecation/deprecation": "warn",
240+
"@typescript-eslint/no-deprecated": "warn",
239241

240242
"simple-import-sort/imports": "error",
241243
"simple-import-sort/exports": "error",
@@ -253,14 +255,18 @@
253255
"forceSingleLine": true
254256
}
255257
],
258+
"import/enforce-node-protocol-usage": [
259+
"error",
260+
"always"
261+
],
256262

257263
"unused-imports/no-unused-imports": "error",
258264
"lodash/import-scope": [
259265
"error",
260266
"method"
261267
],
262268

263-
"rxjs/no-nested-subscribe": "off", // todo: go over _all_ cases
269+
"@smarttools/rxjs/no-nested-subscribe": "off", // todo: go over _all_ cases
264270

265271
// Custom DSpace Angular rules
266272
"dspace-angular-ts/alias-imports": [
@@ -275,7 +281,7 @@
275281
]
276282
}
277283
],
278-
"dspace-angular-ts/themed-component-classes": "error",
284+
"dspace-angular-ts/no-default-standalone-value": "error",
279285
"dspace-angular-ts/themed-component-selectors": "error",
280286
"dspace-angular-ts/themed-component-usages": "error",
281287
"dspace-angular-ts/themed-decorators": [

.github/dependabot.yml

Lines changed: 50 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ updates:
1111
# So, only this first section can include "applies-to: security-updates"
1212
- package-ecosystem: "npm"
1313
directory: "/"
14+
# Monthly dependency updates (NOTE: "schedule" doesn't apply to security updates)
1415
schedule:
15-
interval: "weekly"
16+
interval: "monthly"
1617
time: "05:00"
18+
# Allow updates to be delayed for a configurable number of days to mitigate
19+
# some classes of supply chain attacks
20+
cooldown:
21+
default-days: 7
1722
# Allow up to 10 open PRs for dependencies
1823
open-pull-requests-limit: 10
1924
# Group together Angular package upgrades
@@ -23,14 +28,7 @@ updates:
2328
applies-to: version-updates
2429
patterns:
2530
- "@angular*"
26-
update-types:
27-
- "minor"
28-
- "patch"
29-
# Group together all security updates for Angular. Only accept minor/patch types.
30-
angular-security:
31-
applies-to: security-updates
32-
patterns:
33-
- "@angular*"
31+
- "@ngtools/webpack"
3432
update-types:
3533
- "minor"
3634
- "patch"
@@ -42,14 +40,6 @@ updates:
4240
update-types:
4341
- "minor"
4442
- "patch"
45-
# Group together all security updates for NgRx. Only accept minor/patch types.
46-
ngrx-security:
47-
applies-to: security-updates
48-
patterns:
49-
- "@ngrx*"
50-
update-types:
51-
- "minor"
52-
- "patch"
5343
# Group together all patch version updates for eslint in a single PR
5444
eslint:
5545
applies-to: version-updates
@@ -59,15 +49,6 @@ updates:
5949
update-types:
6050
- "minor"
6151
- "patch"
62-
# Group together all security updates for eslint.
63-
eslint-security:
64-
applies-to: security-updates
65-
patterns:
66-
- "@typescript-eslint*"
67-
- "eslint*"
68-
update-types:
69-
- "minor"
70-
- "patch"
7152
# Group together any testing related version updates
7253
testing:
7354
applies-to: version-updates
@@ -81,19 +62,6 @@ updates:
8162
update-types:
8263
- "minor"
8364
- "patch"
84-
# Group together any testing related security updates
85-
testing-security:
86-
applies-to: security-updates
87-
patterns:
88-
- "@cypress*"
89-
- "axe-*"
90-
- "cypress*"
91-
- "jasmine*"
92-
- "karma*"
93-
- "ng-mocks"
94-
update-types:
95-
- "minor"
96-
- "patch"
9765
# Group together any postcss related version updates
9866
postcss:
9967
applies-to: version-updates
@@ -102,14 +70,6 @@ updates:
10270
update-types:
10371
- "minor"
10472
- "patch"
105-
# Group together any postcss related security updates
106-
postcss-security:
107-
applies-to: security-updates
108-
patterns:
109-
- "postcss*"
110-
update-types:
111-
- "minor"
112-
- "patch"
11373
# Group together any sass related version updates
11474
sass:
11575
applies-to: version-updates
@@ -118,14 +78,6 @@ updates:
11878
update-types:
11979
- "minor"
12080
- "patch"
121-
# Group together any sass related security updates
122-
sass-security:
123-
applies-to: security-updates
124-
patterns:
125-
- "sass*"
126-
update-types:
127-
- "minor"
128-
- "patch"
12981
# Group together any webpack related version updates
13082
webpack:
13183
applies-to: version-updates
@@ -134,22 +86,13 @@ updates:
13486
update-types:
13587
- "minor"
13688
- "patch"
137-
# Group together any webpack related seurity updates
138-
webpack-security:
139-
applies-to: security-updates
140-
patterns:
141-
- "webpack*"
142-
update-types:
143-
- "minor"
144-
- "patch"
145-
# Restrict zone.js updates to patch level to avoid dependency conflicts with @angular/core
146-
zonejs:
147-
applies-to: version-updates
148-
patterns:
149-
- "zone.js"
150-
update-types:
151-
- "patch"
15289
ignore:
90+
# Restrict zone.js updates to patch level to avoid dependency conflicts with @angular/core
91+
- dependency-name: "zone.js"
92+
update-types: ["version-update:semver-major", "version-update:semver-minor"]
93+
# Restrict typescript updates to patch level because that's what our package.json says
94+
- dependency-name: "typescript"
95+
update-types: ["version-update:semver-major", "version-update:semver-minor"]
15396
# Ignore all major version updates for all dependencies. We'll only automate minor/patch updates.
15497
- dependency-name: "*"
15598
update-types: ["version-update:semver-major"]
@@ -160,8 +103,12 @@ updates:
160103
directory: "/"
161104
target-branch: dspace-9_x
162105
schedule:
163-
interval: "weekly"
106+
interval: "monthly"
164107
time: "05:00"
108+
# Allow updates to be delayed for a configurable number of days to mitigate
109+
# some classes of supply chain attacks
110+
cooldown:
111+
default-days: 7
165112
# Allow up to 10 open PRs for dependencies
166113
open-pull-requests-limit: 10
167114
# Group together Angular package upgrades
@@ -171,6 +118,7 @@ updates:
171118
applies-to: version-updates
172119
patterns:
173120
- "@angular*"
121+
- "@ngtools/webpack"
174122
update-types:
175123
- "minor"
176124
- "patch"
@@ -179,6 +127,7 @@ updates:
179127
applies-to: version-updates
180128
patterns:
181129
- "@ngrx*"
130+
- "@ngtools/webpack"
182131
update-types:
183132
- "minor"
184133
- "patch"
@@ -228,14 +177,13 @@ updates:
228177
update-types:
229178
- "minor"
230179
- "patch"
231-
# Restrict zone.js updates to patch level to avoid dependency conflicts with @angular/core
232-
zonejs:
233-
applies-to: version-updates
234-
patterns:
235-
- "zone.js"
236-
update-types:
237-
- "patch"
238180
ignore:
181+
# Restrict zone.js updates to patch level to avoid dependency conflicts with @angular/core
182+
- dependency-name: "zone.js"
183+
update-types: ["version-update:semver-major", "version-update:semver-minor"]
184+
# Restrict typescript updates to patch level because that's what our package.json says
185+
- dependency-name: "typescript"
186+
update-types: ["version-update:semver-major", "version-update:semver-minor"]
239187
# Ignore all major version updates for all dependencies. We'll only automate minor/patch updates.
240188
- dependency-name: "*"
241189
update-types: ["version-update:semver-major"]
@@ -246,8 +194,12 @@ updates:
246194
directory: "/"
247195
target-branch: dspace-8_x
248196
schedule:
249-
interval: "weekly"
197+
interval: "monthly"
250198
time: "05:00"
199+
# Allow updates to be delayed for a configurable number of days to mitigate
200+
# some classes of supply chain attacks
201+
cooldown:
202+
default-days: 7
251203
# Allow up to 10 open PRs for dependencies
252204
open-pull-requests-limit: 10
253205
# Group together Angular package upgrades
@@ -257,6 +209,7 @@ updates:
257209
applies-to: version-updates
258210
patterns:
259211
- "@angular*"
212+
- "@ngtools/webpack"
260213
update-types:
261214
- "minor"
262215
- "patch"
@@ -314,14 +267,13 @@ updates:
314267
update-types:
315268
- "minor"
316269
- "patch"
317-
# Restrict zone.js updates to patch level to avoid dependency conflicts with @angular/core
318-
zonejs:
319-
applies-to: version-updates
320-
patterns:
321-
- "zone.js"
322-
update-types:
323-
- "patch"
324270
ignore:
271+
# Restrict zone.js updates to patch level to avoid dependency conflicts with @angular/core
272+
- dependency-name: "zone.js"
273+
update-types: ["version-update:semver-major", "version-update:semver-minor"]
274+
# Restrict typescript updates to patch level because that's what our package.json says
275+
- dependency-name: "typescript"
276+
update-types: ["version-update:semver-major", "version-update:semver-minor"]
325277
# Ignore all major version updates for all dependencies. We'll only automate minor/patch updates.
326278
- dependency-name: "*"
327279
update-types: ["version-update:semver-major"]
@@ -332,8 +284,12 @@ updates:
332284
directory: "/"
333285
target-branch: dspace-7_x
334286
schedule:
335-
interval: "weekly"
287+
interval: "monthly"
336288
time: "05:00"
289+
# Allow updates to be delayed for a configurable number of days to mitigate
290+
# some classes of supply chain attacks
291+
cooldown:
292+
default-days: 7
337293
# Allow up to 10 open PRs for dependencies
338294
open-pull-requests-limit: 10
339295
# Group together Angular package upgrades
@@ -343,6 +299,7 @@ updates:
343299
applies-to: version-updates
344300
patterns:
345301
- "@angular*"
302+
- "@ngtools/webpack"
346303
update-types:
347304
- "minor"
348305
- "patch"
@@ -392,17 +349,16 @@ updates:
392349
update-types:
393350
- "minor"
394351
- "patch"
395-
# Restrict zone.js updates to patch level to avoid dependency conflicts with @angular/core
396-
zonejs:
397-
applies-to: version-updates
398-
patterns:
399-
- "zone.js"
400-
update-types:
401-
- "patch"
402352
ignore:
403353
# 7.x Cannot update Webpack past v5.76.1 as later versions not supported by Angular 15
404354
# See also https://github.com/DSpace/dspace-angular/pull/3283#issuecomment-2372488489
405355
- dependency-name: "webpack"
356+
# Restrict zone.js updates to patch level to avoid dependency conflicts with @angular/core
357+
- dependency-name: "zone.js"
358+
update-types: ["version-update:semver-major", "version-update:semver-minor"]
359+
# Restrict typescript updates to patch level because that's what our package.json says
360+
- dependency-name: "typescript"
361+
update-types: ["version-update:semver-major", "version-update:semver-minor"]
406362
# Ignore all major version updates for all dependencies. We'll only automate minor/patch updates.
407363
- dependency-name: "*"
408364
update-types: ["version-update:semver-major"]

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ However, reviewers may request that you complete any actions in this list if you
2525
- [ ] My PR **doesn't introduce circular dependencies** (verified via `npm run check-circ-deps`)
2626
- [ ] My PR **includes [TypeDoc](https://typedoc.org/) comments** for _all new (or modified) public methods and classes_. It also includes TypeDoc for large or complex private methods.
2727
- [ ] My PR **passes all specs/tests and includes new/updated specs or tests** based on the [Code Testing Guide](https://wiki.lyrasis.org/display/DSPACE/Code+Testing+Guide).
28-
- [ ] My PR **aligns with [Accessibility guidelines](https://wiki.lyrasis.org/display/DSDOC8x/Accessibility)** if it makes changes to the user interface.
28+
- [ ] My PR **aligns with [Accessibility guidelines](https://wiki.lyrasis.org/display/DSDOC9x/Accessibility)** if it makes changes to the user interface.
2929
- [ ] My PR **uses i18n (internationalization) keys** instead of hardcoded English text, to allow for translations.
3030
- [ ] My PR **includes details on how to test it**. I've provided clear instructions to reviewers on how to successfully test this fix or feature.
3131
- [ ] If my PR includes new libraries/dependencies (in `package.json`), I've made sure their licenses align with the [DSpace BSD License](https://github.com/DSpace/DSpace/blob/main/LICENSE) based on the [Licensing of Contributions](https://wiki.lyrasis.org/display/DSPACE/Code+Contribution+Guidelines#CodeContributionGuidelines-LicensingofContributions) documentation.

0 commit comments

Comments
 (0)