bd7b9a442e
* main: (57 commits) Untenanted access in authenticated controllers should request auth dep: bundle update dep: update Rails dep: bump AR::Tenanted Clean up the cable meta tag Fix activity feed pagination to fetch on demand Create a "published" event if a card is created published Scatter Honcho seeds over a 30 day period Fix the PWA manifest to use slugged URLs Collection publication edits render a turbo frame Collection workflow edits render a turbo frame Collection entropy config edits render a turbo frame Use automatic sizing where supported Introduce a separate controller for collection entropy config Add `card_id` to index Move to scope and inline method Prefer modern syntax Fix that stage should be visible above card background Indicate opens menu Hide dialog targets from screen readers when closed ... # Conflicts: # db/schema.rb # db/schema_cache.yml
40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
<%= form_tag commands_path,
|
|
id: "commands_form",
|
|
class: [ "flex align-center gap-half" ],
|
|
data: {
|
|
controller: "form",
|
|
terminal_target: "form",
|
|
action: "
|
|
keydown.enter->terminal#submitCommand
|
|
keydown.up->toggle-class#add:prevent
|
|
keydown.up->navigable-list#selectCurrentOrReset:stop
|
|
terminal#hideError
|
|
turbo:submit-start->terminal#commandSubmitted
|
|
turbo:submit-end->terminal#focus
|
|
keydown.meta+k@document->terminal#focus:prevent
|
|
keydown.ctrl+k@document->terminal#focus:prevent
|
|
keydown.enter->terminal#executeCommand
|
|
keydown.esc->terminal#hideMenus
|
|
turbo:submit-end->terminal#handleCommandResponse
|
|
"
|
|
} do %>
|
|
<label class="terminal__label txt-nowrap" for="command">Fizzy do ></label>
|
|
|
|
<%= rich_textarea_tag "command", nil,
|
|
toolbar: false,
|
|
class: "terminal__input input fill-transparent unpad",
|
|
"single-line": true,
|
|
attachments: false,
|
|
data: {
|
|
terminal_target: "input"
|
|
},
|
|
placeholder: platform.desktop? ? "Press #{ hotkey_label(["ctrl", "K"]) } to search or type /commands…" : "Search or type /commands…",
|
|
spellcheck: "false" do %>
|
|
<%= global_mentions_prompt %>
|
|
<%= tags_prompt %>
|
|
<%= commands_prompt %>
|
|
<% end %>
|
|
|
|
<%= hidden_field_tag "confirmed", nil, data: { terminal_target: "confirmation" } %>
|
|
<% end %>
|