applin-rails 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/applin/rails/version.rb +1 -1
- data/lib/applin/rails.rb +0 -41
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e64c63b6f647ff2e598f682a66638b81e123f642c64f4f5cec4cf89f445c6470
|
|
4
|
+
data.tar.gz: 5c69c16af63397070fae5f84afb1070a0de060c7e476773c968008ac12f4f2e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6fdc1d5adc9dd1880c7f88250212957ee1b5cf11ff24f6b8fb4148bb96acc680eb2b7ceabab395aa59a464ec4c422d09ff48f33e656ae3b05bcb403f53677811
|
|
7
|
+
data.tar.gz: 1b79b5bf3c291997f0aebca32753907ffe4871a569a9f1f8baadc048550d70ac5069256f75500652d182445a327c86b40aea7d9172f317df01f168b512f1da5c
|
data/lib/applin/rails/version.rb
CHANGED
data/lib/applin/rails.rb
CHANGED
|
@@ -89,25 +89,6 @@ module Applin
|
|
|
89
89
|
{ typ: :last_error_text }
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
-
def modal_button(text:, actions:, is_cancel: nil, is_default: nil, is_destructive: nil)
|
|
93
|
-
{
|
|
94
|
-
typ: :modal_button,
|
|
95
|
-
is_cancel: is_cancel,
|
|
96
|
-
is_default: is_default,
|
|
97
|
-
is_destructive: is_destructive,
|
|
98
|
-
text: text,
|
|
99
|
-
actions: actions,
|
|
100
|
-
}.reject { |_k, v| v.nil? }
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
def ok_modal_button(is_default: true)
|
|
104
|
-
modal_button(text: "OK", is_default: is_default, actions: [pop])
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
def cancel_modal_button(is_default: false)
|
|
108
|
-
modal_button(text: "Cancel", is_default: is_default, actions: [pop])
|
|
109
|
-
end
|
|
110
|
-
|
|
111
92
|
def nav_button(text:, actions:, badge_text: nil, photo_url: nil, sub_text: nil)
|
|
112
93
|
{
|
|
113
94
|
typ: :nav_button,
|
|
@@ -153,28 +134,6 @@ module Applin
|
|
|
153
134
|
}.reject { |_k, v| v.nil? }
|
|
154
135
|
end
|
|
155
136
|
|
|
156
|
-
def alert_modal(title:, modal_buttons:, stream: nil, poll_seconds: nil, text: nil)
|
|
157
|
-
{
|
|
158
|
-
typ: :alert_modal,
|
|
159
|
-
stream: stream,
|
|
160
|
-
poll_seconds: poll_seconds,
|
|
161
|
-
text: text,
|
|
162
|
-
title: title,
|
|
163
|
-
widgets: modal_buttons
|
|
164
|
-
}.reject { |_k, v| v.nil? }
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
def drawer_modal(title:, modal_buttons:, stream: nil, poll_seconds: nil, text: nil)
|
|
168
|
-
{
|
|
169
|
-
typ: :drawer_modal,
|
|
170
|
-
stream: stream,
|
|
171
|
-
poll_seconds: poll_seconds,
|
|
172
|
-
text: text,
|
|
173
|
-
title: title,
|
|
174
|
-
widgets: modal_buttons
|
|
175
|
-
}.reject { |_k, v| v.nil? }
|
|
176
|
-
end
|
|
177
|
-
|
|
178
137
|
def nav_page(title:, start: nil, end_: nil, stream: nil, poll_seconds: nil, &widget_block)
|
|
179
138
|
{
|
|
180
139
|
typ: :nav_page,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: applin-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Leonhard
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-09-
|
|
11
|
+
date: 2023-09-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Create mobile apps using only backend code. Applin™ is a Server-Driven
|
|
14
14
|
UI (SDUI) system.
|