chore: init commit
in worker.../repo/GITFOLDER.zip is the .git folder.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<!--prettier-ignore-->
|
||||
<% case as %>
|
||||
<% when :link %>
|
||||
<%= link_to href, class: button_classes, data: data do %>
|
||||
<%= text %>
|
||||
<% end %>
|
||||
<% when :button %>
|
||||
<%= button_tag class: button_classes, data: data do %>
|
||||
<%= text %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
@@ -0,0 +1,31 @@
|
||||
<div>
|
||||
<div class="flex items-center space-x-2">
|
||||
<input
|
||||
type="checkbox"
|
||||
role="checkbox"
|
||||
aria-checked="false"
|
||||
data-state="unchecked"
|
||||
value="on"
|
||||
class="peer h-4 w-4 shrink-0 rounded-xs border border-primary ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-3 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground"
|
||||
name="<%= name %>"
|
||||
id="<%= options[:id] || sanitize_to_id(name) %>">
|
||||
<span
|
||||
class="flex items-center justify-center text-current hidden"
|
||||
style="pointer-events: none">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class="h-4 w-4">
|
||||
<polyline points="20 6 9 17 4 12"></polyline>
|
||||
</svg>
|
||||
</span>
|
||||
<%= render_label name: name, label: label %>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,11 @@
|
||||
|
||||
<%= text_field_tag name, value, type: type, id: id,
|
||||
class: options[:class],
|
||||
placeholder: options[:placeholder],
|
||||
autocomplete: options[:autocomplete],
|
||||
autocapitalize: options[:autocapitalize],
|
||||
autocorrect: options[:autocorrect],
|
||||
disabled: options[:disabled],
|
||||
required: options[:required],
|
||||
readonly: options[:readonly],
|
||||
data: options[:data] %>
|
||||
@@ -0,0 +1,3 @@
|
||||
<%= label_tag name, label,
|
||||
data: options[:data],
|
||||
class: tw("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 #{options[:class]}") %>
|
||||
@@ -0,0 +1,9 @@
|
||||
<textarea
|
||||
class="flex min-h-[80px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-3 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 <%= options[:class] %>"
|
||||
placeholder="<%= options[:placeholder] %>"
|
||||
name="<%= name %>"
|
||||
id="<% id %>"
|
||||
<%= options[:disabled] ? "disabled" : "" %>
|
||||
<%= options[:required] ? "required" : "" %>
|
||||
<%= options[:readonly] ? "readonly" : "" %>
|
||||
<%= options[:rows] ? "rows" : "" %>></textarea>
|
||||
Reference in New Issue
Block a user