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
A11y[Op#51022]: Cleanup unused files
Kabiru Mwenjad7fb626e6432
diff --git a/frontend/src/stimulus/controllers/dynamic/storages/select-provider-form.controller.ts b/frontend/src/stimulus/controllers/dynamic/storages/select-provider-form.controller.tsdeleted file mode 100644index 83447ea62a8..00000000000--- a/frontend/src/stimulus/controllers/dynamic/storages/select-provider-form.controller.ts+++ /dev/null@@ -1,58 +0,0 @@-/*- * -- copyright- * OpenProject is an open source project management software.- * Copyright (C) 2023 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 { Controller } from '@hotwired/stimulus';--export default class SelectProviderFormController extends Controller {- static targets = [- 'providerForm',- 'providerSelect',- ];-- declare readonly providerFormTarget:HTMLFormElement;- declare readonly providerSelectTarget:HTMLSelectElement;-- connect():void {- // On first load if providerTypeValue is already selected, show the provider form- this.fetchProviderTypeForm(this.providerSelectTarget.value);- }-- public showProviderForm(evt:Event):void {- this.fetchProviderTypeForm((evt.target as HTMLSelectElement).value);- }-- fetchProviderTypeForm(providerTypeValue:string):void {- if (providerTypeValue === '') {- return;- }-- this.providerFormTarget.requestSubmit();- }-}diff --git a/modules/storages/app/components/storages/admin/select_storage_provider_component.html.erb b/modules/storages/app/components/storages/admin/select_storage_provider_component.html.erbdeleted file mode 100644index ebe760e5d2c..00000000000--- a/modules/storages/app/components/storages/admin/select_storage_provider_component.html.erb+++ /dev/null@@ -1,66 +0,0 @@-<%=- render(OpTurbo::FrameComponent.new(id: :select_storage_provider)) do- render(Primer::Beta::BorderBox.new) do |component|- component.with_header(color: :default) do- render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t('storages.file_storage_view.general_information') }- end-- component.with_row(scheme: :default) do- render(- Primer::Beta::Text.new(- tag: :div,- test_selector: 'storage-select-provider-form',- data: {- controller: "storages--select-provider-form",- application_target: "dynamic"- }- )- ) do- primer_form_with(- model: storage,- url: select_provider_admin_settings_storages_path,- data: {- storages__select_provider_form_target: 'providerForm',- }- ) do |form|- flex_layout do |general_info_row|- general_info_row.with_row(mb: 3) do- render(Storages::Admin::ProviderTypeSelectForm.new(- form,- storage:,- select_list_options: {- data: {- action: 'change->storages--select-provider-form#showProviderForm',- storages__select_provider_form_target: 'providerSelect'- },- include_blank: I18n.t('storages.label_select_provider')- }- )-- )- end-- general_info_row.with_row do- render(- Storages::Admin::SubmitOrCancelForm.new(- form,- storage:,- submit_button_options: {- disabled: true,- test_selector: 'storage-select-provider-submit-button'- },- cancel_button_options: {- href: admin_settings_storages_path,- test_selector: 'storage-select-provider-cancel-button',- target: '_top'- }- )- )- end- end- end- end- end- end- end-%>diff --git a/modules/storages/app/components/storages/admin/select_storage_provider_component.rb b/modules/storages/app/components/storages/admin/select_storage_provider_component.rbdeleted file mode 100644index 3061a77acc6..00000000000--- a/modules/storages/app/components/storages/admin/select_storage_provider_component.rb+++ /dev/null@@ -1,36 +0,0 @@-# frozen_string_literal: true--#-- copyright-# OpenProject is an open source project management software.-# Copyright (C) 2012-2023 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 Storages::Admin- class SelectStorageProviderComponent < ApplicationComponent- include OpPrimer::ComponentHelpers- alias_method :storage, :model- end-enddiff --git a/modules/storages/app/controllers/storages/admin/storages_controller.rb b/modules/storages/app/controllers/storages/admin/storages_controller.rbindex e5e0a1e443b..c248bfa5cc6 100644--- a/modules/storages/app/controllers/storages/admin/storages_controller.rb+++ b/modules/storages/app/controllers/storages/admin/storages_controller.rb@@ -94,7 +94,6 @@ class Storages::Admin::StoragesController < ApplicationControllerservice_result.on_success dorespond_to do |format|format.html { render :new }- format.turbo_streamendendenddiff --git a/modules/storages/app/forms/storages/admin/provider_type_select_form.rb b/modules/storages/app/forms/storages/admin/provider_type_select_form.rbdeleted file mode 100644index 69a3749cc47..00000000000--- a/modules/storages/app/forms/storages/admin/provider_type_select_form.rb+++ /dev/null@@ -1,69 +0,0 @@-#-- copyright-# OpenProject is an open source project management software.-# Copyright (C) 2012-2023 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 Storages::Admin- class ProviderTypeSelectForm < ApplicationForm- form do |storage_form|- storage_form.select_list(**@select_list_options) do |storage_provider_list|- if @storage.provider_type.present?- storage_provider_list.option(- label: I18n.t("storages.provider_types.#{@storage.short_provider_type}.name"),- value: @storage.provider_type- )- else- ::Storages::Storage::PROVIDER_TYPES.each do |provider_type|- storage_provider_list.option(- label: I18n.t("storages.provider_types.#{::Storages::Storage.shorten_provider_type(provider_type)}.name"),- value: provider_type- )- end- end- end- end-- def initialize(storage:, select_list_options: {})- super()- @storage = storage- @select_list_options = default_select_list_options(storage).merge(select_list_options)- end-- private-- def default_select_list_options(storage)- {- name: :provider_type,- label: I18n.t('activerecord.attributes.storages/storage.provider_type'),- caption: nil,- include_blank: false,- required: true,- disabled: storage.persisted?,- input_width: :small- }- end- end-enddiff --git a/modules/storages/app/views/storages/admin/storages/select_provider.turbo_stream.erb b/modules/storages/app/views/storages/admin/storages/select_provider.turbo_stream.erbdeleted file mode 100644index c55a5080886..00000000000--- a/modules/storages/app/views/storages/admin/storages/select_provider.turbo_stream.erb+++ /dev/null@@ -1,34 +0,0 @@-<%#-- copyright-OpenProject is an open source project management software.-Copyright (C) 2012-2023 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.--++#%>--<%= turbo_stream.update :select_storage_provider do %>- <%=- render(Storages::Admin::StorageViewComponent.new(@storage))- %>-<% end %>