move vue tryout

This commit is contained in:
Torsten
2023-02-08 11:39:23 +02:00
parent eb055c7b8d
commit 5f0c2f37a7
10 changed files with 0 additions and 198 deletions

View File

@ -1,10 +0,0 @@
= form_for @kantum do |f|
- if @kantum.errors.any?
#error_explanation
%h2= "#{pluralize(@kantum.errors.count, "error")} prohibited this kantum from being saved:"
%ul
- @kantum.errors.full_messages.each do |message|
%li= message
.actions
= f.submit 'Save'

View File

@ -1,7 +0,0 @@
%h1 Editing kantum
= render 'form'
= link_to 'Show', @kantum
\|
= link_to 'Back', kanta_path

View File

@ -1,19 +0,0 @@
%h1 Listing kanta
%table
%thead
%tr
%th
%th
%th
%tbody
- @kanta.each do |kantum|
%tr
%td= link_to 'Show', kantum
%td= link_to 'Edit', edit_kantum_path(kantum)
%td= link_to 'Destroy', kantum, method: :delete, data: { confirm: 'Are you sure?' }
%br
= link_to 'New Kantum', new_kantum_path

View File

@ -1,5 +0,0 @@
%h1 New kantum
= render 'form'
= link_to 'Back', kanta_path

View File

@ -1,16 +0,0 @@
#app
.flex.justify-center
= #@image.attributes
.flex.justify-center
%a.underline{ e_click: "bg_change" , r_class: 'bg'}
{{ bg }}
:opal
class Clicker < VueR::Application
def bg_change
self.bg = "bg-cyan-50"
end
end
kanta = Clicker.new(bg: 'bg-cyan-200')
kanta.mount("#app")