Upgrade tailwindcss-stimulus-components to latest version
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
The latest one offers more tabs features. Required some changes to the modals and tabs code.
This commit is contained in:
parent
3c1fe3396d
commit
866ffbe615
@ -1,13 +1,26 @@
|
|||||||
<div data-modal-target="container"
|
<div tabindex="-1" class="relative z-10">
|
||||||
data-action="click->modal#closeBackground keyup@window->modal#closeWithKeyboard"
|
<!-- Modal Background -->
|
||||||
class="hidden animate-scale-in fixed inset-0 overflow-y-auto flex items-center justify-center"
|
<div class="hidden fixed inset-0 bg-black bg-opacity-80 overflow-y-auto flex items-center justify-center"
|
||||||
style="z-index: 9999;">
|
data-modal-target="background"
|
||||||
<div class="max-h-screen w-auto max-w-lg relative">
|
data-action="click->modal#closeBackground"
|
||||||
<div class="m-1 bg-white rounded shadow">
|
data-transition-enter="transition-all ease-in-out duration-100"
|
||||||
<div class="p-8">
|
data-transition-enter-from="bg-opacity-0"
|
||||||
<%= content %>
|
data-transition-enter-to="bg-opacity-80"
|
||||||
<div class="flex justify-end items-center flex-wrap mt-6">
|
data-transition-leave="transition-all ease-in-out duration-100"
|
||||||
<button class="btn-md btn-blue" data-action="click->modal#close">Close</button>
|
data-transition-leave-from="bg-opacity-80"
|
||||||
|
data-transition-leave-to="bg-opacity-0">
|
||||||
|
|
||||||
|
<!-- Modal Container -->
|
||||||
|
<div data-modal-target="container"
|
||||||
|
class="max-h-screen w-auto max-w-lg relative
|
||||||
|
hidden animate-scale-in fixed inset-0 overflow-y-auto flex items-center justify-center">
|
||||||
|
<!-- Modal Card -->
|
||||||
|
<div class="m-1 bg-white rounded shadow">
|
||||||
|
<div class="p-8">
|
||||||
|
<%= content %>
|
||||||
|
<div class="flex justify-end items-center flex-wrap mt-6">
|
||||||
|
<button class="btn-md btn-blue" data-action="click->modal#close:prevent">Close</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
</p>
|
</p>
|
||||||
<ul class="md:w-3/4">
|
<ul class="md:w-3/4">
|
||||||
<% @invitations_unused.each do |invitation| %>
|
<% @invitations_unused.each do |invitation| %>
|
||||||
<li class="mb-3 flex gap-1" data-controller="clipboard modal">
|
<li class="mb-3 flex gap-1"
|
||||||
|
data-controller="clipboard modal"
|
||||||
|
data-action="keydown.esc->modal#close">
|
||||||
<input type="text" disabled class="relative grow font-mono"
|
<input type="text" disabled class="relative grow font-mono"
|
||||||
value="<%= invitation_url(invitation.token) %>"
|
value="<%= invitation_url(invitation.token) %>"
|
||||||
data-clipboard-target="source" />
|
data-clipboard-target="source" />
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
join public channels or private rooms.
|
join public channels or private rooms.
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
<section data-controller="modal">
|
<section data-controller="modal" data-action="keydown.esc->modal#close">
|
||||||
<h3>Your Chat Address</h3>
|
<h3>Your Chat Address</h3>
|
||||||
<p class="mb-6">
|
<p class="mb-6">
|
||||||
When you exchange contacts with people, give them your
|
When you exchange contacts with people, give them your
|
||||||
@ -45,31 +45,31 @@
|
|||||||
<section>
|
<section>
|
||||||
<h3>Recommended Apps</h3>
|
<h3>Recommended Apps</h3>
|
||||||
<div data-controller="tabs"
|
<div data-controller="tabs"
|
||||||
data-tabs-active-tab="-mb-px border-gray-200 border-l border-t border-r rounded-t text-indigo-600 hover:text-indigo-600"
|
data-tabs-active-tab-class="-mb-px border-gray-200 border-l border-t border-r rounded-t text-indigo-600 hover:text-indigo-600"
|
||||||
data-tabs-inactive-tab="text-gray-500 hover:text-gray-700"
|
data-tabs-inactive-tab-class="text-gray-500 hover:text-gray-700"
|
||||||
class="mb-12">
|
class="mb-12">
|
||||||
<ul class="list-reset flex mb-8 border-gray-200 border-b">
|
<ul class="list-reset flex mb-8 border-gray-200 border-b">
|
||||||
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
|
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
|
||||||
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
||||||
Android
|
Android
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
|
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
|
||||||
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
||||||
iOS
|
iOS
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
|
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
|
||||||
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
||||||
Linux
|
Linux
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
|
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
|
||||||
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
||||||
Windows
|
Windows
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
|
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
|
||||||
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
||||||
macOS
|
macOS
|
||||||
</a>
|
</a>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section data-controller="modal">
|
<section data-controller="modal" data-action="keydown.esc->modal#close">
|
||||||
<h3>Wallet Apps</h3>
|
<h3>Wallet Apps</h3>
|
||||||
<p>
|
<p>
|
||||||
You can connect various wallet apps to your Kosmos account. This allows
|
You can connect various wallet apps to your Kosmos account. This allows
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
Follow and interact with anyone on the open social web, from your Kosmos Mastodon account.
|
Follow and interact with anyone on the open social web, from your Kosmos Mastodon account.
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
<section data-controller="modal">
|
<section data-controller="modal" data-action="keydown.esc->modal#close">
|
||||||
<h3>Your User Address</h3>
|
<h3>Your User Address</h3>
|
||||||
<p class="mb-6">
|
<p class="mb-6">
|
||||||
Others can follow you under this address:
|
Others can follow you under this address:
|
||||||
@ -43,36 +43,36 @@
|
|||||||
<section>
|
<section>
|
||||||
<h3>Recommended Apps</h3>
|
<h3>Recommended Apps</h3>
|
||||||
<div data-controller="tabs"
|
<div data-controller="tabs"
|
||||||
data-tabs-active-tab="-mb-px border-gray-200 border-l border-t border-r rounded-t text-indigo-600 hover:text-indigo-600"
|
data-tabs-active-tab-class="-mb-px border-gray-200 border-l border-t border-r rounded-t text-indigo-600 hover:text-indigo-600"
|
||||||
data-tabs-inactive-tab="text-gray-500 hover:text-gray-700"
|
data-tabs-inactive-tab-class="text-gray-500 hover:text-gray-700"
|
||||||
class="mb-12">
|
class="mb-12">
|
||||||
<ul class="list-reset flex mb-8 border-gray-200 border-b">
|
<ul class="list-reset flex mb-8 border-gray-200 border-b">
|
||||||
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
|
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
|
||||||
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
||||||
Web
|
Web
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
|
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
|
||||||
<a href="#" class="bg-white inline-block py-2 px-5 font-semibold no-underline">
|
<a href="#" class="bg-white inline-block py-2 px-5 font-semibold no-underline">
|
||||||
Android
|
Android
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
|
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
|
||||||
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
||||||
iOS
|
iOS
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
|
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
|
||||||
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
||||||
Linux
|
Linux
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
|
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
|
||||||
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
||||||
Windows
|
Windows
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
|
<li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
|
||||||
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
<a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
|
||||||
macOS
|
macOS
|
||||||
</a>
|
</a>
|
||||||
|
@ -6,4 +6,4 @@ pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true
|
|||||||
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true
|
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true
|
||||||
pin_all_from "app/javascript/controllers", under: "controllers"
|
pin_all_from "app/javascript/controllers", under: "controllers"
|
||||||
pin "bech32" # @2.0.0
|
pin "bech32" # @2.0.0
|
||||||
pin "tailwindcss-stimulus-components" # @3.0.4
|
pin "tailwindcss-stimulus-components" # @4.0.3
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user