Remove old code
This commit is contained in:
@@ -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
|
||||
@@ -1,3 +1,3 @@
|
||||
<li>
|
||||
<li class="min-width overflow-ellipsis">
|
||||
<%= command.title %>
|
||||
</li>
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
<li class="min-width overflow-ellipsis">
|
||||
<%= link_to event_action_sentence(event), collection_card_path(event.collection, event.eventable),
|
||||
class: "terminal__link",
|
||||
data: { action: "toggle-class#remove", turbo_frame: "_top" } %>
|
||||
</li>
|
||||
@@ -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 %>
|
||||
|
||||
<label class="terminal__label txt-nowrap" for="fizzy_do">Fizzy do ></label>
|
||||
|
||||
<%= 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 %>
|
||||
@@ -1,14 +0,0 @@
|
||||
<%= turbo_frame_tag "terminal" do %>
|
||||
<div class="terminal full-width flex flex-column gap justify-end" data-controller="toggle-class" data-toggle-class-toggle-class="terminal--open">
|
||||
<menu class="terminal__menu flex-column txt-align-start margin-none margin-block-end unpad">
|
||||
<%= render partial: "event", collection: @events %>
|
||||
</menu>
|
||||
|
||||
<%= 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 %>
|
||||
<span class="terminal__label txt-nowrap">Fizzy do ></span>
|
||||
<span class="terminal__input input fill-transparent unpad txt-nowrap overflow-ellipsis">Search or type commands…</span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user