glib-web 0.8.1 → 0.8.2
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/app/controllers/concerns/glib/json/new_dynamic_text.rb +0 -0
- data/app/helpers/glib/app_feature_support_helper.rb +0 -0
- data/app/helpers/glib/dynamic_images_helper.rb +0 -0
- data/app/helpers/glib/dynamic_texts_helper.rb +0 -0
- data/app/helpers/glib/forms_helper.rb +0 -0
- data/app/helpers/glib/json_ui/action_builder/http.rb +0 -0
- data/app/helpers/glib/json_ui/action_builder/panels.rb +0 -0
- data/app/helpers/glib/json_ui/action_builder/sheets.rb +0 -0
- data/app/helpers/glib/json_ui/action_builder/snackbars.rb +0 -0
- data/app/helpers/glib/json_ui/analytics_helper.rb +0 -0
- data/app/helpers/glib/json_ui/generic_builders.rb +0 -0
- data/app/helpers/glib/json_ui/table_builders.rb +0 -0
- data/app/helpers/glib/json_ui/view_builder/panels.rb +1 -0
- data/app/helpers/glib/urls_helper.rb +0 -0
- data/app/models/glib/active_storage/attachment.rb +0 -0
- data/app/models/glib/active_storage/blob.rb +0 -0
- data/app/models/glib/dynamic_text_record.rb +0 -0
- data/app/models/glib/text.rb +0 -0
- data/app/validators/email_typo_validator.rb +0 -0
- data/app/validators/email_validator.rb +0 -0
- data/app/validators/url_validator.rb +0 -0
- data/app/views/json_ui/garage/_nav_menu.json.jbuilder +1 -1
- data/app/views/json_ui/garage/actions/_dialogs.json.jbuilder +0 -0
- data/app/views/json_ui/garage/actions/_http.json.jbuilder +0 -0
- data/app/views/json_ui/garage/actions/_panels.json.jbuilder +0 -0
- data/app/views/json_ui/garage/actions/_reload.json.jbuilder +0 -0
- data/app/views/json_ui/garage/actions/_sheets.json.jbuilder +0 -0
- data/app/views/json_ui/garage/actions/_snackbars.json.jbuilder +0 -0
- data/app/views/json_ui/garage/actions/dialogs_oauth_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/basic.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/basic_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/dynamic_group.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/dynamic_select_data.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/floating_submit.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/get_request.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/submission_flow.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/submission_flow_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/submission_indicator.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/submission_indicator_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/home/blank.json.jbuilder +0 -0
- data/app/views/json_ui/garage/home/slow.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/_autoload_section.json.jbuilder +0 -13
- data/app/views/json_ui/garage/lists/autoload_all.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/autoload_as_needed.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/autoload_as_needed_on_top_scroll.json.jbuilder +39 -0
- data/app/views/json_ui/garage/lists/chat_ui.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/fab.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/index.json.jbuilder +3 -0
- data/app/views/json_ui/garage/notifications/web_socket.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/flat_centered.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/full_width.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/full_width_height.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/index.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/layout.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/lifecycle_hooks.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/loading_indicator.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/nested_scroll.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/_styled.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/card.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/custom.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/outlined.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/responsive.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/vertical.json.jbuilder +0 -0
- data/app/views/json_ui/garage/services/dynamic_text.json.jbuilder +0 -0
- data/app/views/json_ui/garage/services/image.json.jbuilder +0 -0
- data/app/views/json_ui/garage/services/index.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/_autoload_section.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/autoload_all.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/autoload_as_needed.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/export_import.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/index.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/calendar_data.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/links.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/map_cluster_data.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/map_data.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/multimedia.json.jbuilder +0 -0
- data/config/routes.rb +0 -0
- data/lib/generators/glib/install_generator.rb +0 -0
- data/lib/generators/templates/20191017062519_create_texts.rb +0 -0
- data/lib/generators/templates/20191024063257_add_scope_to_texts.rb +0 -0
- data/lib/generators/templates/20191112095018_add_lang_to_texts.rb +0 -0
- data/lib/generators/templates/20191126071051_create_active_storage_tables.active_storage.rb +0 -0
- data/lib/generators/templates/database.yml +0 -0
- data/lib/generators/templates/dynamic_text.rb +0 -0
- data/lib/glib/crypt/utils.rb +0 -0
- data/lib/glib/crypt.rb +0 -0
- data/lib/glib/dynamic_text/config.rb +0 -0
- data/lib/glib/dynamic_text.rb +0 -0
- data/lib/glib/engine.rb +0 -0
- data/lib/glib/json_crawler/action_crawler.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/action_http.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/forms_submit.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/menu.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/nav_initiate.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/run_multiple.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/windows_open.rb +0 -0
- data/lib/glib/json_crawler/coverage.rb +0 -0
- data/lib/glib/json_crawler.rb +0 -0
- data/lib/glib/mailer_tester.rb +0 -0
- data/lib/glib/value.rb +0 -0
- data/lib/glib/version.rb +0 -0
- data/lib/glib-web.rb +0 -0
- data/lib/tasks/db.rake +0 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 144c37b7b2c2acfb416c9aa7ac8cf286bfc0afb0c0b7f30dc51bedba3d3cb542
|
|
4
|
+
data.tar.gz: c5d4d978ea3e29dc8917af83214b9aa7750b1a4e486c7ee650c8c6596e661b5a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9b86b01fd2d313c3ca0675cefbf6588372313e69b954416a16984d03f3685c83e481ad35bccdde7a9f7062d89b878723a8e4061fa4286c6278f08f81d3609eb
|
|
7
|
+
data.tar.gz: fb123fab4806c449c039a92c61c983f33c059a75a1d1f3674334aec01dd0cbe83db656ca0f23d83fc725575a17958a47bf90ad9981807c166631209126dde2c4
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/app/models/glib/text.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
if local_assigns[:top_nav] || json_ui_app_is_web?
|
|
3
|
-
page.leftDrawer content: ->(drawer) do
|
|
3
|
+
page.leftDrawer styleClasses:['maxi'], content: ->(drawer) do
|
|
4
4
|
drawer.header childViews: ->(header) do
|
|
5
5
|
header.button text: 'App', styleClasses: ['link', 'logo'], onClick: ->(action) do
|
|
6
6
|
action.windows_open url: root_url
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
# json.rows do
|
|
3
|
-
# batch_count = 30
|
|
4
|
-
# batch_count.times do |i|
|
|
5
|
-
# index = page * batch_count + i
|
|
6
|
-
# json.child! do
|
|
7
|
-
# json.template 'thumbnail'
|
|
8
|
-
# json.title "Item #{index}"
|
|
9
|
-
# end
|
|
10
|
-
# end
|
|
11
|
-
# end
|
|
12
|
-
|
|
13
|
-
# section = json_ui_section json
|
|
14
|
-
|
|
15
2
|
sleep 1
|
|
16
3
|
|
|
17
4
|
section = page.list_section_builder
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
page_index = params[:page].to_i
|
|
3
|
+
next_page = {
|
|
4
|
+
url: json_ui_garage_url(path: 'lists/autoload_as_needed_on_top_scroll', page: page_index + 1, section_only: 'v1'),
|
|
5
|
+
autoload: 'asNeeded'
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
page = json_ui_page json
|
|
9
|
+
|
|
10
|
+
# TODO: Cater
|
|
11
|
+
# - for SEO: one URL for a standalone page and one URL for pagination only
|
|
12
|
+
# - for generic approach, e.g. excluding nav_menu when there is no change
|
|
13
|
+
if params[:section_only].present?
|
|
14
|
+
sleep 1
|
|
15
|
+
|
|
16
|
+
json.prevPage next_page if page_index < 3
|
|
17
|
+
json.sections do
|
|
18
|
+
json.child! do
|
|
19
|
+
render 'json_ui/garage/lists/autoload_section', page: page, page_index: page_index
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
else
|
|
23
|
+
json.title 'Lists'
|
|
24
|
+
|
|
25
|
+
page.on load: ->(action) do
|
|
26
|
+
action.panels_scrollToBottom
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
render "#{@path_prefix}/nav_menu", json: json, page: page
|
|
30
|
+
|
|
31
|
+
page.list prevPage: next_page, firstSection: ->(section) do
|
|
32
|
+
render 'json_ui/garage/lists/autoload_section', page: page, page_index: page_index
|
|
33
|
+
end, onScrollToBottom: ->(action) do
|
|
34
|
+
action.snackbars_alert message: 'Scrolled to Bottom'
|
|
35
|
+
end, onScrollToTop: ->(action) do
|
|
36
|
+
action.snackbars_alert message: 'Scrolled to Top'
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
end
|
|
File without changes
|
|
File without changes
|
|
@@ -32,6 +32,9 @@ json_ui_page json do |page|
|
|
|
32
32
|
template.thumbnail title: 'Autoload as Needed with Responsive Columns', onClick: ->(action) do
|
|
33
33
|
action.windows_open url: json_ui_garage_url(path: 'lists/autoload_as_needed_responsive_columns')
|
|
34
34
|
end
|
|
35
|
+
template.thumbnail title: 'Autoload as Needed (top scroll)', onClick: ->(action) do
|
|
36
|
+
action.windows_open url: json_ui_garage_url(path: 'lists/autoload_as_needed_on_top_scroll')
|
|
37
|
+
end
|
|
35
38
|
template.thumbnail title: 'Reordering', onClick: ->(action) do
|
|
36
39
|
action.windows_open url: json_ui_garage_url(path: 'lists/reordering')
|
|
37
40
|
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/config/routes.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/glib/crypt/utils.rb
CHANGED
|
File without changes
|
data/lib/glib/crypt.rb
CHANGED
|
File without changes
|
|
File without changes
|
data/lib/glib/dynamic_text.rb
CHANGED
|
File without changes
|
data/lib/glib/engine.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/glib/json_crawler.rb
CHANGED
|
File without changes
|
data/lib/glib/mailer_tester.rb
CHANGED
|
File without changes
|
data/lib/glib/value.rb
CHANGED
|
File without changes
|
data/lib/glib/version.rb
CHANGED
|
File without changes
|
data/lib/glib-web.rb
CHANGED
|
File without changes
|
data/lib/tasks/db.rake
CHANGED
|
File without changes
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: glib-web
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ''
|
|
@@ -176,6 +176,7 @@ files:
|
|
|
176
176
|
- app/views/json_ui/garage/lists/_autoload_section.json.jbuilder
|
|
177
177
|
- app/views/json_ui/garage/lists/autoload_all.json.jbuilder
|
|
178
178
|
- app/views/json_ui/garage/lists/autoload_as_needed.json.jbuilder
|
|
179
|
+
- app/views/json_ui/garage/lists/autoload_as_needed_on_top_scroll.json.jbuilder
|
|
179
180
|
- app/views/json_ui/garage/lists/autoload_as_needed_responsive_columns.json.jbuilder
|
|
180
181
|
- app/views/json_ui/garage/lists/chat_ui.json.jbuilder
|
|
181
182
|
- app/views/json_ui/garage/lists/edit_actions.json.jbuilder
|
|
@@ -290,7 +291,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
290
291
|
- !ruby/object:Gem::Version
|
|
291
292
|
version: '0'
|
|
292
293
|
requirements: []
|
|
293
|
-
|
|
294
|
+
rubyforge_project:
|
|
295
|
+
rubygems_version: 2.7.6
|
|
294
296
|
signing_key:
|
|
295
297
|
specification_version: 4
|
|
296
298
|
summary: ''
|