administration-zero 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1604afbfe74a26d3037884f0d8789441416d05674d583cf9ce243a4fbad7e14e
|
4
|
+
data.tar.gz: a2795cd1940221cf938e4f9ec2a2a9b612470d7abe79d8c4e0ecc3551d80420e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b21b7719345ad9c1dd182c4f3cbd54e7a9b36db9b2c49bd7726e2cd38213c84a44838495aee6780c1eeb7bda42ad12fd977687134ccae94556f3db60a2f03f5e
|
7
|
+
data.tar.gz: 31c2634833070929fe6674cb9c69f9488a8d5e5ba2f1cbdd2a3d4abac77514040e284321a9d143a9c3595961299392f510cdd5d14c42466621091a1b5ff7731e
|
data/Gemfile.lock
CHANGED
@@ -13,11 +13,30 @@
|
|
13
13
|
<script>
|
14
14
|
document.addEventListener("DOMContentLoaded", () => {
|
15
15
|
document.querySelectorAll(".field_with_errors").forEach((element) => {
|
16
|
-
|
17
|
-
field.classList.add("is-invalid");
|
16
|
+
element.firstChild.classList.add("is-invalid");
|
18
17
|
|
19
|
-
element.parentNode.insertBefore(
|
18
|
+
element.parentNode.insertBefore(element.firstChild, element);
|
20
19
|
element.parentNode.removeChild(element);
|
21
|
-
})
|
20
|
+
});
|
22
21
|
});
|
23
22
|
</script>
|
23
|
+
|
24
|
+
<!--
|
25
|
+
###########################################################################################################################
|
26
|
+
Old school stimulus example
|
27
|
+
<div data-controller="toasts" data-toats-type="notice" data-toasts-message="User created successfully"></div>
|
28
|
+
###########################################################################################################################
|
29
|
+
-->
|
30
|
+
<!--
|
31
|
+
<script>
|
32
|
+
document.addEventListener("DOMContentLoaded", () => {
|
33
|
+
document.querySelectorAll("[data-controller='toasts']").forEach((thiz) => {
|
34
|
+
if (thiz.dataset["toastsType"] === "notice") {
|
35
|
+
$(document).Toasts("create", { body: thiz.dataset["toastsMessage"], class: "bg-success", title: "Success", autohide: true, delay: 7000 })
|
36
|
+
} else (thiz.dataset["toastsType"] === "alert") {
|
37
|
+
$(document).Toasts("create", { body: thiz.dataset["toastsMessage"], class: "bg-danger", title: "Error", autohide: true, delay: 7000 })
|
38
|
+
}
|
39
|
+
})
|
40
|
+
})
|
41
|
+
</script>
|
42
|
+
-->
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: administration-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nixon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|