css-zero 0.0.62 → 0.0.64
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/css_zero/engine.rb +0 -4
- data/lib/css_zero/version.rb +1 -1
- data/lib/generators/css_zero/add/resources.yml +1 -0
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/prose.css +7 -1
- data/lib/generators/css_zero/add/templates/app/javascript/controllers/otp_input_controller.js +31 -0
- data/lib/generators/css_zero/install/templates/app/assets/stylesheets/application.css +0 -1
- data/lib/generators/css_zero/install/templates/app/assets/stylesheets/base.css +2 -0
- metadata +10 -9
- /data/lib/generators/css_zero/{scaffold/controller → controller}/controller_generator.rb +0 -0
- /data/lib/generators/css_zero/{scaffold/controller → controller}/templates/view.html.erb.tt +0 -0
- /data/lib/generators/css_zero/{scaffold/mailer → mailer}/mailer_generator.rb +0 -0
- /data/lib/generators/css_zero/{scaffold/mailer → mailer}/templates/layout.html.erb.tt +0 -0
- /data/lib/generators/css_zero/{scaffold/mailer → mailer}/templates/layout.text.erb.tt +0 -0
- /data/lib/generators/css_zero/{scaffold/mailer → mailer}/templates/view.html.erb.tt +0 -0
- /data/lib/generators/css_zero/{scaffold/mailer → mailer}/templates/view.text.erb.tt +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5483177d44d6ba1b3a5f033017ae681360166d6e1c2b4bdaf6a41d7373c46d9
|
4
|
+
data.tar.gz: cb16ccb3d8ffff3f2a82ee73f204f1dd2f8d92a94d5be855968f805d118eaa19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4e3ae5405e34810acb529b1defa6c4734d92e161aaad77a0acd2f7e62e0134302b99995104e8ba83653cfa46654ac8e4a7fefcc684570e25d123bc2cda94bb1
|
7
|
+
data.tar.gz: d551b14fe407408d8b30844138169477b0b2e896409f4a611339d70be237b223473368ac5af35865b687980a73fef180aebd49a3a5d8894ed9a93e19e802c3cd
|
data/lib/css_zero/engine.rb
CHANGED
data/lib/css_zero/version.rb
CHANGED
@@ -73,6 +73,7 @@ input_concerns:
|
|
73
73
|
- app/javascript/controllers/revealable_input_controller.js
|
74
74
|
- app/assets/images/eye.svg
|
75
75
|
- app/assets/images/eye-off.svg
|
76
|
+
- app/javascript/controllers/otp_input_controller.js
|
76
77
|
inputmask:
|
77
78
|
- app/javascript/controllers/inputmask_controller.js
|
78
79
|
layouts:
|
@@ -71,12 +71,13 @@
|
|
71
71
|
|
72
72
|
code {
|
73
73
|
padding: 0.1em 0.3em;
|
74
|
-
white-space: pre-wrap;
|
75
74
|
}
|
76
75
|
|
77
76
|
pre {
|
78
77
|
border-radius: 0.5em;
|
78
|
+
overflow-x: auto;
|
79
79
|
padding: 0.5lh 2ch;
|
80
|
+
text-wrap: nowrap;
|
80
81
|
}
|
81
82
|
|
82
83
|
pre code {
|
@@ -135,4 +136,9 @@
|
|
135
136
|
text-decoration: underline;
|
136
137
|
text-decoration-skip-ink: auto;
|
137
138
|
}
|
139
|
+
|
140
|
+
mark {
|
141
|
+
color: var(--color-text);
|
142
|
+
background-color: var(--color-highlight);
|
143
|
+
}
|
138
144
|
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { Controller } from "@hotwired/stimulus";
|
2
|
+
|
3
|
+
export default class extends Controller {
|
4
|
+
initialize() {
|
5
|
+
this.abortController = new AbortController()
|
6
|
+
}
|
7
|
+
|
8
|
+
disconnect() {
|
9
|
+
this.abortController.abort()
|
10
|
+
}
|
11
|
+
|
12
|
+
connect() {
|
13
|
+
this.#supportsOTP && this.#requestOTP()
|
14
|
+
}
|
15
|
+
|
16
|
+
#requestOTP() {
|
17
|
+
navigator.credentials.get(this.#options).then(otp => {
|
18
|
+
this.element.value = otp.code
|
19
|
+
}).catch(error => {
|
20
|
+
console.log(error)
|
21
|
+
})
|
22
|
+
}
|
23
|
+
|
24
|
+
get #options() {
|
25
|
+
return { otp: { transport: ["sms"] }, signal: this.abortController.signal }
|
26
|
+
}
|
27
|
+
|
28
|
+
get #supportsOTP() {
|
29
|
+
return "OTPCredential" in window
|
30
|
+
}
|
31
|
+
}
|
@@ -10,6 +10,7 @@
|
|
10
10
|
--color-border-dark: var(--zinc-400);
|
11
11
|
--color-selected: var(--blue-100);
|
12
12
|
--color-selected-dark: var(--blue-300);
|
13
|
+
--color-highlight: var(--yellow-200);
|
13
14
|
|
14
15
|
/* Accent colors */
|
15
16
|
--color-primary: var(--zinc-900);
|
@@ -35,6 +36,7 @@
|
|
35
36
|
--color-border-dark: var(--zinc-600);
|
36
37
|
--color-selected: var(--blue-950);
|
37
38
|
--color-selected-dark: var(--blue-800);
|
39
|
+
--color-highlight: var(--yellow-800);
|
38
40
|
|
39
41
|
/* Accent colors */
|
40
42
|
--color-primary: var(--zinc-50);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: css-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.64
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lázaro Nixon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: lazaronixon@hotmail.com
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/local_time_controller.js
|
109
109
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/menu_controller.js
|
110
110
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/navigation_controller.js
|
111
|
+
- lib/generators/css_zero/add/templates/app/javascript/controllers/otp_input_controller.js
|
111
112
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/popover_controller.js
|
112
113
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/revealable_input_controller.js
|
113
114
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/sortable_controller.js
|
@@ -119,18 +120,18 @@ files:
|
|
119
120
|
- lib/generators/css_zero/authentication/templates/app/views/passwords/edit.html.erb.tt
|
120
121
|
- lib/generators/css_zero/authentication/templates/app/views/passwords/new.html.erb.tt
|
121
122
|
- lib/generators/css_zero/authentication/templates/app/views/sessions/new.html.erb.tt
|
123
|
+
- lib/generators/css_zero/controller/controller_generator.rb
|
124
|
+
- lib/generators/css_zero/controller/templates/view.html.erb.tt
|
122
125
|
- lib/generators/css_zero/install/USAGE
|
123
126
|
- lib/generators/css_zero/install/install_generator.rb
|
124
127
|
- lib/generators/css_zero/install/templates/app/assets/stylesheets/application.css
|
125
128
|
- lib/generators/css_zero/install/templates/app/assets/stylesheets/base.css
|
126
129
|
- lib/generators/css_zero/install/templates/app/views/layouts/application.html.erb
|
127
|
-
- lib/generators/css_zero/
|
128
|
-
- lib/generators/css_zero/
|
129
|
-
- lib/generators/css_zero/
|
130
|
-
- lib/generators/css_zero/
|
131
|
-
- lib/generators/css_zero/
|
132
|
-
- lib/generators/css_zero/scaffold/mailer/templates/view.html.erb.tt
|
133
|
-
- lib/generators/css_zero/scaffold/mailer/templates/view.text.erb.tt
|
130
|
+
- lib/generators/css_zero/mailer/mailer_generator.rb
|
131
|
+
- lib/generators/css_zero/mailer/templates/layout.html.erb.tt
|
132
|
+
- lib/generators/css_zero/mailer/templates/layout.text.erb.tt
|
133
|
+
- lib/generators/css_zero/mailer/templates/view.html.erb.tt
|
134
|
+
- lib/generators/css_zero/mailer/templates/view.text.erb.tt
|
134
135
|
- lib/generators/css_zero/scaffold/scaffold_generator.rb
|
135
136
|
- lib/generators/css_zero/scaffold/templates/_form.html.erb.tt
|
136
137
|
- lib/generators/css_zero/scaffold/templates/edit.html.erb.tt
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|