Sha256: a9a82c7cb2c5b66fdff3c6a379e877b0c65ec1e30226a3e8cdc5869af88d8ab4

Contents?: true

Size: 836 Bytes

Versions: 4

Compression:

Stored size: 836 Bytes

Contents

<script src="https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta17/dist/js/tabler.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@rails/ujs@7.0.4-2/lib/assets/compiled/rails-ujs.min.js"></script>

<!-- Stimulus controllers -->
<script type="module">
  import { Application, Controller } from "https://cdn.jsdelivr.net/npm/stimulus@3.2.1/dist/stimulus.min.js"
  window.Stimulus = Application.start()

  Stimulus.register("flash-message", class extends Controller {
    connect() {
      new bootstrap.Toast(this.element).show()
    }
  })
</script>

<!-- Time zone cookie -->
<script type="module">
  import Cookies from "https://cdn.jsdelivr.net/npm/js-cookie@3.0.1/dist/js.cookie.min.mjs"
  const { timeZone } = new Intl.DateTimeFormat().resolvedOptions()
  Cookies.set("time_zone", timeZone, { expires: 365 })
</script>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
administration-zero-1.0.3 lib/generators/admin/install/templates/erb/admin/base/_javascript_tags.html.erb
administration-zero-1.0.2 lib/generators/admin/install/templates/erb/admin/base/_javascript_tags.html.erb
administration-zero-1.0.1 lib/generators/admin/install/templates/erb/admin/base/_javascript_tags.html.erb
administration-zero-1.0.0 lib/generators/admin/install/templates/erb/admin/base/_javascript_tags.html.erb