diff --git a/app/controllers/terminals_controller.rb b/app/controllers/terminals_controller.rb deleted file mode 100644 index 552d285cd..000000000 --- a/app/controllers/terminals_controller.rb +++ /dev/null @@ -1,9 +0,0 @@ -class TerminalsController < ApplicationController - def show - @events = Current.user.accessible_events.chronologically.reverse_order.limit(20) - end - - def edit - @filter = Current.user.filters.from_params params.permit(*Filter::PERMITTED_PARAMS) - end -end diff --git a/app/views/commands/_command.html.erb b/app/views/commands/_command.html.erb index 8813211c0..667e248a5 100644 --- a/app/views/commands/_command.html.erb +++ b/app/views/commands/_command.html.erb @@ -1,3 +1,3 @@ -
  • +
  • <%= command.title %>
  • diff --git a/app/views/terminals/_event.html.erb b/app/views/terminals/_event.html.erb deleted file mode 100644 index 041ca94c4..000000000 --- a/app/views/terminals/_event.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -
  • - <%= link_to event_action_sentence(event), collection_card_path(event.collection, event.eventable), - class: "terminal__link", - data: { action: "toggle-class#remove", turbo_frame: "_top" } %> -
  • diff --git a/app/views/terminals/edit.html.erb b/app/views/terminals/edit.html.erb deleted file mode 100644 index 735162d56..000000000 --- a/app/views/terminals/edit.html.erb +++ /dev/null @@ -1,22 +0,0 @@ -<%= turbo_frame_tag "terminal_form" do %> - <%= form_tag cards_path, class: "flex align-center gap-half", method: :get, data: { controller: "form", turbo_frame: "_top" } do %> - <% @filter.as_params.each do |key, value| %> - <%= filter_hidden_field_tag key, value, autofocus: true %> - <% end %> - - - - <%= text_field_tag "terms[]", nil, - autocomplete: "off", - autocorrect: "off", - autocapitalize: "off", - class: "terminal__input input fill-transparent unpad", - data: { - action: "keydown.up->toggle-class#add:prevent keydown.down->toggle-class#remove:prevent keydown.esc->form#cancel:prevent" - }, - id: "fizzy_do", - placeholder: "Search or type commands…" %> - - <%= link_to "Close terminal and discard changes", terminal_path, data: { form_target: "cancel", turbo_frame: "terminal_form" }, hidden: true %> - <% end %> -<% end %> \ No newline at end of file diff --git a/app/views/terminals/show.html.erb b/app/views/terminals/show.html.erb deleted file mode 100644 index aa2b19706..000000000 --- a/app/views/terminals/show.html.erb +++ /dev/null @@ -1,14 +0,0 @@ -<%= turbo_frame_tag "terminal" do %> -
    - - <%= render partial: "event", collection: @events %> - - - <%= turbo_frame_tag "terminal_form" do %> - <%= link_to edit_terminal_path, class: "terminal__link flex align-center gap-half min-width", data: { action: "keydown.meta+shift+p@document->hotkey#click", controller: "hotkey" } do %> - Fizzy do > - Search or type commands… - <% end %> - <% end %> -
    -<% end %> diff --git a/config/routes.rb b/config/routes.rb index 733128e1e..154ea2e16 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -70,9 +70,6 @@ Rails.application.routes.draw do resources :uploads, only: :create get "/u/*slug" => "uploads#show", as: :upload - resource :terminal, only: [ :show, :edit ] - - resources :qr_codes get "join/:join_code", to: "users#new", as: :join post "join/:join_code", to: "users#create"