-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
…om the WP page PageHeader
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<%= render(Primer::Alpha::Dialog.new( | ||
title: I18n.t("js.baseline.baseline_comparison"), | ||
subtitle: subtitle_text, | ||
size: :medium_portrait, | ||
id: MODAL_ID | ||
)) do |dialog| %> | ||
<% dialog.with_header(variant: :large) %> | ||
<% dialog.with_body do %> | ||
<%= helpers.angular_component_tag "opce-baseline", | ||
inputs: { | ||
showHeaderText: false, | ||
} %> | ||
<% end %> | ||
<% dialog.with_footer do %> | ||
<%= render(Primer::ButtonComponent.new(data: { "close-dialog-id": MODAL_ID })) { I18n.t(:button_cancel) } %> | ||
<%= render(Primer::ButtonComponent.new( | ||
data: { | ||
"close-dialog-id": MODAL_ID, | ||
}, | ||
scheme: :primary, | ||
type: :submit)) { I18n.t(:button_apply) } %> | ||
<% end %> | ||
<% end %> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# frozen_string_literal: true | ||
|
||
# -- copyright | ||
# OpenProject is an open source project management software. | ||
# Copyright (C) the OpenProject GmbH | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License version 3. | ||
# | ||
# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: | ||
# Copyright (C) 2006-2013 Jean-Philippe Lang | ||
# Copyright (C) 2010-2013 the ChiliProject Team | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
# as published by the Free Software Foundation; either version 2 | ||
# of the License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
# | ||
# See COPYRIGHT and LICENSE files for more details. | ||
# ++ | ||
|
||
module WorkPackages | ||
module Baseline | ||
class ModalDialogComponent < ApplicationComponent | ||
MODAL_ID = "op-work-packages-baseline-dialog" | ||
EXPORT_FORM_ID = "op-work-packages-baseline-dialog-form" | ||
include OpTurbo::Streamable | ||
include OpPrimer::ComponentHelpers | ||
|
||
attr_reader :query, :project, :query_params | ||
|
||
def initialize(query:, project:, title:) | ||
super | ||
|
||
@query = query | ||
@project = project | ||
@query_params = ::API::V3::Queries::QueryParamsRepresenter.new(query).to_url_query(merge_params: { columns: [], title: }) | ||
end | ||
|
||
def subtitle_text | ||
# TODO: show different text and EE icon if no EE licence | ||
I18n.t("js.baseline.header_description") | ||
end | ||
end | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
//-- copyright | ||
// OpenProject is an open source project management software. | ||
// Copyright (C) the OpenProject GmbH | ||
// | ||
// This program is free software; you can redistribute it and/or | ||
// modify it under the terms of the GNU General Public License version 3. | ||
// | ||
// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: | ||
// Copyright (C) 2006-2013 Jean-Philippe Lang | ||
// Copyright (C) 2010-2013 the ChiliProject Team | ||
// | ||
// This program is free software; you can redistribute it and/or | ||
// modify it under the terms of the GNU General Public License | ||
// as published by the Free Software Foundation; either version 2 | ||
// of the License, or (at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with this program; if not, write to the Free Software | ||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
// | ||
// See COPYRIGHT and LICENSE files for more details. | ||
//++ | ||
|
||
import { | ||
ChangeDetectionStrategy, | ||
Component, | ||
ElementRef, | ||
EventEmitter, | ||
Check failure on line 33 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L33 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 33 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L33 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
HostBinding, | ||
Check failure on line 34 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L34 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 34 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L34 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
Input, | ||
OnInit, | ||
Check failure on line 36 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L36 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 36 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L36 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
Output, | ||
Check failure on line 37 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L37 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 37 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L37 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
} from '@angular/core'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused imports EventEmitter, HostBinding, OnInit, Output.
|
||
|
||
import { I18nService } from 'core-app/core/i18n/i18n.service'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import I18nService.
Check failure on line 40 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L40 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 40 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L40 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import UntilDestroyedMixin.
Check failure on line 41 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L41 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 41 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L41 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
import { HalResourceService } from 'core-app/features/hal/services/hal-resource.service'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import HalResourceService.
Check failure on line 42 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L42 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 42 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L42 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
import SpotDropAlignmentOption from 'core-app/spot/drop-alignment-options'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import SpotDropAlignmentOption.
Check failure on line 43 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L43 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 43 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L43 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
import { WeekdayService } from 'core-app/core/days/weekday.service'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import WeekdayService.
Check failure on line 44 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L44 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 44 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L44 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
import { DayResourceService } from 'core-app/core/state/days/day.service'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import DayResourceService.
Check failure on line 45 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L45 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 45 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L45 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
import { IDay } from 'core-app/core/state/days/day.model'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import IDay.
Check failure on line 46 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L46 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 46 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L46 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
import { TimezoneService } from 'core-app/core/datetime/timezone.service'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import TimezoneService.
Check failure on line 47 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L47 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 47 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L47 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
import { ConfigurationService } from 'core-app/core/config/configuration.service'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import ConfigurationService.
Check failure on line 48 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L48 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 48 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L48 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
import { Observable } from 'rxjs'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import Observable.
Check failure on line 49 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L49 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 49 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L49 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
import { | ||
DEFAULT_TIMESTAMP, | ||
Check failure on line 51 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L51 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 51 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L51 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
WorkPackageViewBaselineService, | ||
Check failure on line 52 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L52 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 52 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L52 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
} from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-baseline.service'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused imports DEFAULT_TIMESTAMP, WorkPackageViewBaselineService.
|
||
import { validDate } from 'core-app/shared/components/datepicker/helpers/date-modal.helpers'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import validDate.
Check failure on line 54 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L54 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 54 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L54 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
import { | ||
baselineFilterFromValue, | ||
Check failure on line 56 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L56 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 56 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L56 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
getPartsFromTimestamp, | ||
Check failure on line 57 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L57 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 57 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L57 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
offsetToUtcString, | ||
Check failure on line 58 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L58 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 58 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L58 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
} from 'core-app/features/work-packages/components/wp-baseline/baseline-helpers'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused imports baselineFilterFromValue, getPartsFromTimestamp, offsetToUtcString.
|
||
import * as moment from 'moment-timezone'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import moment.
Check failure on line 60 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L60 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 60 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L60 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
import { BannersService } from 'core-app/core/enterprise/banners.service'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import BannersService.
Check failure on line 61 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L61 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 61 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L61 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
import { enterpriseDocsUrl } from 'core-app/core/setup/globals/constants.const'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import enterpriseDocsUrl.
Check failure on line 62 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L62 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 62 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L62 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
import { DayElement } from 'flatpickr/dist/types/instance'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import DayElement.
Check failure on line 63 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L63 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)
Raw output
Check failure on line 63 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L63 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)
Raw output
|
||
import { populateInputsFromDataset } from 'core-app/shared/components/dataset-inputs'; | ||
import { WorkPackageIsolatedQuerySpaceDirective } from 'core-app/features/work-packages/directives/query-space/wp-isolated-query-space.directive'; | ||
|
||
|
||
@Component({ | ||
Check failure on line 68 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts GitHub Actions / eslint[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L67-L68 <no-multiple-empty-lines>(https://eslint.org/docs/latest/rules/no-multiple-empty-lines)
Raw output
|
||
hostDirectives: [WorkPackageIsolatedQuerySpaceDirective], | ||
template: ` | ||
<op-baseline | ||
[visible]="visible" | ||
[showActionBar]="showActionBar" | ||
[showHeaderText]="showHeaderText" | ||
></op-baseline> | ||
`, | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class OpBaselineEntryComponent { | ||
@Input() showActionBar? = false; | ||
@Input() visible = true; | ||
@Input() showHeaderText = true; | ||
|
||
constructor( | ||
readonly elementRef:ElementRef, | ||
) { | ||
populateInputsFromDataset(this); | ||
} | ||
} |