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: e5bccafe767ad52f263b0b90ed8e18e523f20a3527cafa289e1ff0ba4b441ecd
4
- data.tar.gz: b0e92479446d4c726209d1a7d9704f61450e5b0d17f535e111729cf55594f6c0
3
+ metadata.gz: 1604afbfe74a26d3037884f0d8789441416d05674d583cf9ce243a4fbad7e14e
4
+ data.tar.gz: a2795cd1940221cf938e4f9ec2a2a9b612470d7abe79d8c4e0ecc3551d80420e
5
5
  SHA512:
6
- metadata.gz: 2faf2b54a173dbecf4f1941749a31a45814707ce83d44ddc42fbfee89f38d7bb19e2ee46cd74bdddb15aec5cab584bb3716eebfc511df387b88e47e0acceed3c
7
- data.tar.gz: 2bdd7e38b5ab7bdb814a5dd5fa15fcb40f46ffa4410dc1334f0f76955c3cb424c6e07cd9424464dc4641d50f94715d9e3c543eec82b8d2e078beef8bf2ed7c18
6
+ metadata.gz: b21b7719345ad9c1dd182c4f3cbd54e7a9b36db9b2c49bd7726e2cd38213c84a44838495aee6780c1eeb7bda42ad12fd977687134ccae94556f3db60a2f03f5e
7
+ data.tar.gz: 31c2634833070929fe6674cb9c69f9488a8d5e5ba2f1cbdd2a3d4abac77514040e284321a9d143a9c3595961299392f510cdd5d14c42466621091a1b5ff7731e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- administration-zero (0.0.5)
4
+ administration-zero (0.0.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module AdministrationZero
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -13,11 +13,30 @@
13
13
  <script>
14
14
  document.addEventListener("DOMContentLoaded", () => {
15
15
  document.querySelectorAll(".field_with_errors").forEach((element) => {
16
- const field = element.firstChild;
17
- field.classList.add("is-invalid");
16
+ element.firstChild.classList.add("is-invalid");
18
17
 
19
- element.parentNode.insertBefore(field, element);
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.5
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-09 00:00:00.000000000 Z
11
+ date: 2022-03-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: