mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-06 21:42:49 +00:00
refactor: split api into api, api-cli & api-plugin
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
],
|
||||
"unicorn/no-nested-ternary": "off",
|
||||
"unicorn/better-regex": "off",
|
||||
"unicorn/no-non-null-assertion": "off",
|
||||
"jsdoc/no-types": "error",
|
||||
"jsdoc/require-param": "off",
|
||||
"jsdoc/require-param-description": "error",
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
"name": "@openstapps/app",
|
||||
"description": "The generic app tailored to fulfill needs of German universities, written using Ionic Framework.",
|
||||
"version": "2.1.0",
|
||||
"type": "module",
|
||||
"license": "GPL-3.0-only",
|
||||
"author": "Karl-Philipp Wulfert <krlwlfrt@gmail.com>",
|
||||
"contributors": [
|
||||
@@ -163,7 +162,7 @@
|
||||
"protractor": "7.0.0",
|
||||
"surge": "0.23.1",
|
||||
"ts-node": "10.9.1",
|
||||
"typescript": "4.8.4",
|
||||
"typescript": "4.6.4",
|
||||
"webpack-bundle-analyzer": "4.7.0"
|
||||
},
|
||||
"prettier": "@openstapps/prettier-config",
|
||||
|
||||
@@ -120,7 +120,7 @@ export class CatalogComponent implements OnInit, OnDestroy {
|
||||
this.availableSemesters = semesters
|
||||
.slice(Math.max(0, currentSemesterIndex - 1), Math.min(currentSemesterIndex + 2, semesters.length))
|
||||
.reverse();
|
||||
if (typeof this.activeSemester !== 'undefined') {
|
||||
if (this.activeSemester !== undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
/* eslint-disable @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-explicit-any, unicorn/no-thenable */
|
||||
import {TestBed} from '@angular/core/testing';
|
||||
import {Client} from '@openstapps/api/lib/client';
|
||||
import {Client} from '@openstapps/api';
|
||||
import {
|
||||
SCDish,
|
||||
SCMessage,
|
||||
|
||||
@@ -132,9 +132,7 @@ export class DaiaDataProvider {
|
||||
signature: label,
|
||||
status: holdingStatus,
|
||||
dueDate: dueDate,
|
||||
online:
|
||||
Array.isArray(available) &&
|
||||
available.find(item => item.service === 'remote') !== undefined,
|
||||
online: Array.isArray(available) && available.some(item => item.service === 'remote'),
|
||||
available:
|
||||
(Array.isArray(available) &&
|
||||
available.find(item =>
|
||||
|
||||
Reference in New Issue
Block a user