make own dummy, less confusing what is gem/engine and what is app

This commit is contained in:
2023-02-08 17:18:57 +02:00
parent ad237c3afb
commit 951ced7734
84 changed files with 255 additions and 90 deletions

View File

@ -0,0 +1,19 @@
%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

@ -0,0 +1,23 @@
#app
.flex.justify-center
= #@image.attributes
.flex.justify-center
%a.underline{ e_click: "bg_change" , r_class: 'back'}
{{ back }}
:opal
puts "here1"
class Clicker < VueR::Application
def bg_change
self.state = !self.state
end
def back
self.state ? "bg-cyan-50" : "bg-cyan-200"
end
end
puts "here2"
click = Clicker.new(bg: 'bg-cyan-200' , state: true)
click.mount("#app")
puts "here3"

View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<title>Dummy</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
</head>
<body>
<%= yield %>
</body>
</html>

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
/* Email styles need to be inline */
</style>
</head>
<body>
<%= yield %>
</body>
</html>

View File

@ -0,0 +1 @@
<%= yield %>