-
Notifications
You must be signed in to change notification settings - Fork 5
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/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> | ||
<script src="https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta19/dist/js/tabler.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@rails/ujs@7.0.6/lib/assets/compiled/rails-ujs.min.js"></script> | ||
|
||
<!-- Stimulus controllers --> | ||
<!-- Stimulus --> | ||
<script type="module"> | ||
import { Application, Controller } from "https://cdn.jsdelivr.net/npm/stimulus@3.2.1/dist/stimulus.min.js" | ||
import { Application, Controller } from "https://cdn.jsdelivr.net/npm/@hotwired/stimulus@3.2.1/+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/js-cookie@3.0.1/dist/js.cookie.min.mjs" | ||
import jsCookie from "https://cdn.jsdelivr.net/npm/js-cookie@3.0.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