-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
675a7c7
commit 51a797e
Showing
2 changed files
with
9 additions
and
11 deletions.
There are no files selected for viewing
18 changes: 8 additions & 10 deletions
18
lib/generators/admin/install/templates/erb/admin/base/_javascript_tags.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
<script src="https://cdn.jsdelivr.net/npm/@tabler/[email protected]beta17/dist/js/tabler.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@rails/[email protected].4-2/lib/assets/compiled/rails-ujs.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@tabler/[email protected]beta19/dist/js/tabler.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@rails/[email protected].6/lib/assets/compiled/rails-ujs.min.js"></script> | ||
|
||
<!-- Stimulus controllers --> | ||
<!-- Stimulus --> | ||
<script type="module"> | ||
import { Application, Controller } from "https://cdn.jsdelivr.net/npm/[email protected]/dist/stimulus.min.js" | ||
import { Application, Controller } from "https://cdn.jsdelivr.net/npm/@hotwired/[email protected]/+esm" | ||
window.Stimulus = Application.start() | ||
|
||
Stimulus.register("flash-message", class extends Controller { | ||
connect() { | ||
new bootstrap.Toast(this.element).show() | ||
} | ||
connect() { new bootstrap.Toast(this.element).show() } | ||
}) | ||
</script> | ||
|
||
<!-- Time zone cookie --> | ||
<!-- Time zone --> | ||
<script type="module"> | ||
import Cookies from "https://cdn.jsdelivr.net/npm/[email protected].1/dist/js.cookie.min.mjs" | ||
import jsCookie from "https://cdn.jsdelivr.net/npm/[email protected].5/+esm" | ||
const { timeZone } = new Intl.DateTimeFormat().resolvedOptions() | ||
Cookies.set("time_zone", timeZone, { expires: 365 }) | ||
jsCookie.set("time_zone", timeZone, { expires: 365 }) | ||
</script> |
2 changes: 1 addition & 1 deletion
2
lib/generators/admin/install/templates/erb/admin/base/_stylesheet_link_tags.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<!-- Tabler Core --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/[email protected]beta17/dist/css/tabler.min.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/[email protected]beta19/dist/css/tabler.min.css"> | ||
|
||
<!-- Customize tabler here --> | ||
<style>body { | ||
|