OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix linting errors
Benjamin Bädorf8aa250dbd37f
diff --git a/frontend/src/app/features/user-preferences/notifications-settings/page/notifications-settings-page.component.ts b/frontend/src/app/features/user-preferences/notifications-settings/page/notifications-settings-page.component.tsindex 81595f69b20..0459106539b 100644--- a/frontend/src/app/features/user-preferences/notifications-settings/page/notifications-settings-page.component.ts+++ b/frontend/src/app/features/user-preferences/notifications-settings/page/notifications-settings-page.component.ts@@ -96,7 +96,7 @@ export class NotificationsSettingsPageComponent extends UntilDestroyedMixin implif (!settings) {return;}-+this.form.get('involved')?.setValue(settings.involved);this.form.get('workPackageCreated')?.setValue(settings.workPackageCreated);this.form.get('workPackageProcessed')?.setValue(settings.workPackageProcessed);@@ -109,7 +109,6 @@ export class NotificationsSettingsPageComponent extends UntilDestroyedMixin implpublic saveChanges():void {this.update(this.form.value);const prefs = this.query.getValue();- console.log(prefs);this.stateService.update(this.userId, prefs);}@@ -118,9 +117,7 @@ export class NotificationsSettingsPageComponent extends UntilDestroyedMixin impl({ notifications }) => ({notifications: arrayUpdate(notifications,- (notification:NotificationSetting) => {- return notification._links.project.href === null;- },+ (notification:NotificationSetting) => notification._links.project.href === null,{...delta,mentioned: true,diff --git a/frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.ts b/frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.tsindex 02133b77759..030be4a6bcd 100644--- a/frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.ts+++ b/frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.ts@@ -51,10 +51,9 @@ export class NotificationSettingsTableComponent {private I18n:I18nService,private store:UserPreferencesStore,private query:UserPreferencesQuery,- ) {- }+ ) {}- addRow(project:HalSourceLink) {+ addRow(project:HalSourceLink):void {const added:NotificationSetting[] = [buildNotificationSetting(project, { channel: 'in_app' }),buildNotificationSetting(project, { channel: 'mail' }),@@ -68,7 +67,7 @@ export class NotificationSettingsTableComponent {);}- update(delta:Partial<NotificationSetting>, projectHref: string) {+ update(delta:Partial<NotificationSetting>, projectHref:string):void {this.store.update(({ notifications }) => ({notifications: arrayUpdate(@@ -80,7 +79,7 @@ export class NotificationSettingsTableComponent {);}- removeProjectSettings(projectHref: string) {+ removeProjectSettings(projectHref:string):void {this.store.update(({ notifications }) => ({notifications: arrayRemove(notifications, (notification:NotificationSetting) => notification._links.project.href === projectHref),diff --git a/frontend/src/app/shared/components/forms/checkbox-field/checkbox-field.component.ts b/frontend/src/app/shared/components/forms/checkbox-field/checkbox-field.component.tsindex 2d3a23ec9ef..4bffe1978ce 100644--- a/frontend/src/app/shared/components/forms/checkbox-field/checkbox-field.component.ts+++ b/frontend/src/app/shared/components/forms/checkbox-field/checkbox-field.component.ts@@ -34,15 +34,15 @@ export class OpCheckboxFieldComponent {internalID = `op-checkbox-field-${+new Date()}`;- get errorsID() {+ get errorsID():string {return `${this.internalID}-errors`;}- get descriptionID() {+ get descriptionID():string {return `${this.internalID}-description`;}- get describedByID() {+ get describedByID():string {return this.showErrorMessage ? this.errorsID : this.descriptionID;}diff --git a/frontend/src/app/shared/components/popout/popout.component.html b/frontend/src/app/shared/components/popout/popout.component.htmldeleted file mode 100644index a34f7576e90..00000000000--- a/frontend/src/app/shared/components/popout/popout.component.html+++ /dev/null@@ -1,4 +0,0 @@-<ng-content select="[slot=trigger]"></ng-content>-<div class="op-popout--wrapper">- <ng-content select="[slot=trigger]"></ng-content>-</div>diff --git a/frontend/src/app/shared/components/popout/popout.component.ts b/frontend/src/app/shared/components/popout/popout.component.tsdeleted file mode 100644index 16c388e0a45..00000000000--- a/frontend/src/app/shared/components/popout/popout.component.ts+++ /dev/null@@ -1,30 +0,0 @@-import {- Component,- HostBinding,- Input,-} from '@angular/core';--export enum OpPopoutAlignment {- Down = 'down',- Up = 'up',-}--@Component({- selector: 'op-popout',- templateUrl: './popout.component.html',-})-export class OpPopoutComponent {- @HostBinding('class.op-popout') className = true;-- @HostBinding('class.op-popout_opened') get openedClassName() {- return this.opened;- }-- @HostBinding('class') get alignmentClassName() {- return { [`op-popout_align-${this.alignment}`]: true };- }-- @Input() alignment: OpPopoutAlignment = OpPopoutAlignment.Down;-- public opened = false;-}diff --git a/frontend/src/app/shared/components/popout/popout.sass b/frontend/src/app/shared/components/popout/popout.sassdeleted file mode 100644index 1221db35f43..00000000000--- a/frontend/src/app/shared/components/popout/popout.sass+++ /dev/null@@ -1,16 +0,0 @@-.op-popout- display: inline-flex-- &--wrapper- position: absolute- display: none- left: 0-- &_opened &--wrapper- display: flex-- &_align-down &--wrapper- top: 100%-- &_align-up &--wrapper- bottom: 100%diff --git a/frontend/src/app/shared/components/project-list-select/project-list-select.component.html b/frontend/src/app/shared/components/project-list-select/project-list-select.component.htmldeleted file mode 100644index 43468ae3167..00000000000--- a/frontend/src/app/shared/components/project-list-select/project-list-select.component.html+++ /dev/null@@ -1,20 +0,0 @@-<div class="op-popout--headline">- <h1>Select project(s)</h1>- <button- class="op-link"- type="button"- (click)="clearSelection()"- ></button>-</div>--<label>- <span class="hidden-for-sighted">Search</span>- <input- type="text"- (input)="search()"- />-</label>--<ul>- <li>Project A</li>-</ul>diff --git a/frontend/src/app/shared/components/project-list-select/project-list-select.component.sass b/frontend/src/app/shared/components/project-list-select/project-list-select.component.sassdeleted file mode 100644index e69de29bb2d..00000000000diff --git a/frontend/src/app/shared/components/project-list-select/project-list-select.component.ts b/frontend/src/app/shared/components/project-list-select/project-list-select.component.tsdeleted file mode 100644index acd145a49e6..00000000000--- a/frontend/src/app/shared/components/project-list-select/project-list-select.component.ts+++ /dev/null@@ -1,18 +0,0 @@-import {- Component,- HostBinding,-} from '@angular/core';--@Component({- selector: 'op-project-list-select',- templateUrl: './project-list-select.component.html',-})-export class OpProjectListSelectComponent {- @HostBinding('class.op-project-list-select') className = true;-- public clearSelection() {- }-- public search() {- }-}diff --git a/frontend/src/app/shared/shared.module.ts b/frontend/src/app/shared/shared.module.tsindex 528576d3484..a8b05ebb7b3 100644--- a/frontend/src/app/shared/shared.module.ts+++ b/frontend/src/app/shared/shared.module.ts@@ -71,7 +71,6 @@ import { SlideToggleComponent } from './components/slide-toggle/slide-toggle.comimport { DynamicBootstrapModule } from './components/dynamic-bootstrap/dynamic-bootstrap.module';import { OpCheckboxFieldComponent } from './components/forms/checkbox-field/checkbox-field.component';import { OpFormFieldComponent } from './components/forms/form-field/form-field.component';-import { OpPopoutComponent } from './components/popout/popout.component';import { OpFormBindingDirective } from './components/forms/form-field/form-binding.directive';import { OpOptionListComponent } from './components/option-list/option-list.component';@@ -176,8 +175,6 @@ export function bootstrapModule(injector:Injector) {OpFormFieldComponent,OpFormBindingDirective,OpOptionListComponent,-- OpPopoutComponent,],declarations: [OpDateTimeComponent,@@ -230,8 +227,6 @@ export function bootstrapModule(injector:Injector) {OpFormFieldComponent,OpFormBindingDirective,OpOptionListComponent,-- OpPopoutComponent,],})export class OPSharedModule {diff --git a/frontend/src/global_styles/common/openproject-common.module.sass b/frontend/src/global_styles/common/openproject-common.module.sassindex 335fdfc780d..62441ab808a 100644--- a/frontend/src/global_styles/common/openproject-common.module.sass+++ b/frontend/src/global_styles/common/openproject-common.module.sass@@ -5,7 +5,6 @@@import 'bubble/bubble'@import '../../app/shared/components/forms'@import '../../app/shared/components/option-list/option-list'-@import '../../app/shared/components/popout/popout'@import '../../app/shared/components/table/table'@import 'export-options/export-options'@import 'select/select'