lato_view 1.1 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +0 -12
  3. data/app/assets/javascripts/lato_view/build/FormManager.js +8 -2
  4. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/actionbar/cell.rb +1 -1
  5. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/actionbar/views/show.html.erb +0 -0
  6. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/block/cell.rb +1 -1
  7. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/buttongroup/cell.rb +1 -5
  8. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/buttongroup/views/show.html.erb +0 -0
  9. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/dropdown/cell.rb +2 -2
  10. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/dropdown/views/show.html.erb +0 -0
  11. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/index/cell.rb +2 -2
  12. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/index/views/head.html.erb +0 -0
  13. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/index/views/rows.html.erb +0 -0
  14. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/cell.rb +5 -4
  15. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/checkbox.html.erb +0 -0
  16. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/date.html.erb +0 -0
  17. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/editor.html.erb +0 -0
  18. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/email.html.erb +0 -0
  19. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/file.html.erb +0 -6
  20. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/multiple-select.html.erb +0 -0
  21. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/number.html.erb +0 -0
  22. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/password.html.erb +0 -0
  23. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/radio.html.erb +0 -0
  24. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/select.html.erb +0 -0
  25. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/text.html.erb +0 -0
  26. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/textarea.html.erb +0 -0
  27. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/time.html.erb +0 -0
  28. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/searchbar/cell.rb +1 -6
  29. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/searchbar/views/show.html.erb +0 -0
  30. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/table/cell.rb +2 -2
  31. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/table/views/head.html.erb +0 -0
  32. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/table/views/row.html.erb +0 -0
  33. data/app/{concepts/lato_view → cells/lato_view/cells_v1}/table/views/rows.html.erb +0 -0
  34. data/app/cells/lato_view/component/button/cell.rb +30 -0
  35. data/app/cells/lato_view/component/button/views/show.html.erb +1 -0
  36. data/app/cells/lato_view/component/buttongroup/cell.rb +31 -0
  37. data/app/cells/lato_view/component/buttongroup/views/show.html.erb +13 -0
  38. data/app/cells/lato_view/component/dropdown/cell.rb +26 -0
  39. data/app/cells/lato_view/component/dropdown/views/show.html.erb +43 -0
  40. data/app/cells/lato_view/component/form/cell.rb +35 -0
  41. data/app/cells/lato_view/component/form/views/open.html.erb +3 -0
  42. data/app/cells/lato_view/component/form/views/show.html.erb +1 -0
  43. data/app/cells/lato_view/component/searchbar/cell.rb +36 -0
  44. data/app/cells/lato_view/component/searchbar/views/show.html.erb +9 -0
  45. data/app/cells/lato_view/input/checkbox/cell.rb +48 -0
  46. data/app/cells/lato_view/input/checkbox/views/show.html.erb +17 -0
  47. data/app/cells/lato_view/input/date/cell.rb +45 -0
  48. data/app/cells/lato_view/input/date/views/show.html.erb +11 -0
  49. data/app/cells/lato_view/input/editor/cell.rb +45 -0
  50. data/app/cells/lato_view/input/editor/views/show.html.erb +12 -0
  51. data/app/cells/lato_view/input/email/cell.rb +45 -0
  52. data/app/cells/lato_view/input/email/views/show.html.erb +11 -0
  53. data/app/cells/lato_view/input/file/cell.rb +51 -0
  54. data/app/cells/lato_view/input/file/views/show.html.erb +18 -0
  55. data/app/cells/lato_view/input/number/cell.rb +45 -0
  56. data/app/cells/lato_view/input/number/views/show.html.erb +11 -0
  57. data/app/cells/lato_view/input/password/cell.rb +46 -0
  58. data/app/cells/lato_view/input/password/views/show.html.erb +15 -0
  59. data/app/cells/lato_view/input/radio/cell.rb +63 -0
  60. data/app/cells/lato_view/input/radio/views/show.html.erb +20 -0
  61. data/app/cells/lato_view/input/select/cell.rb +87 -0
  62. data/app/cells/lato_view/input/select/views/show.html.erb +21 -0
  63. data/app/cells/lato_view/input/text/cell.rb +45 -0
  64. data/app/cells/lato_view/input/text/views/show.html.erb +11 -0
  65. data/app/cells/lato_view/input/textarea/cell.rb +45 -0
  66. data/app/cells/lato_view/input/textarea/views/show.html.erb +12 -0
  67. data/app/cells/lato_view/input/time/cell.rb +45 -0
  68. data/app/cells/lato_view/input/time/views/show.html.erb +11 -0
  69. data/app/cells/lato_view/layout/actionbar/cell.rb +29 -0
  70. data/app/cells/lato_view/layout/actionbar/views/show.html.erb +13 -0
  71. data/app/cells/lato_view/layout/block/cell.rb +37 -0
  72. data/app/cells/lato_view/layout/index/cell.rb +73 -0
  73. data/app/cells/lato_view/layout/index/views/head.html.erb +12 -0
  74. data/app/cells/lato_view/layout/index/views/rows.html.erb +49 -0
  75. data/app/controllers/lato_view/assets_controller.rb +3 -6
  76. data/app/controllers/lato_view/develop_controller.rb +5 -5
  77. data/app/helpers/lato_view/application_helper.rb +19 -10
  78. data/config/example.yml +2 -2
  79. data/config/initializers/init.rb +1 -1
  80. data/config/initializers/lists.rb +2 -18
  81. data/config/initializers/ram.rb +1 -13
  82. data/config/routes.rb +1 -0
  83. data/lib/lato_view.rb +5 -7
  84. data/lib/lato_view/cells.rb +16 -0
  85. data/lib/lato_view/engine.rb +6 -5
  86. data/lib/lato_view/interface.rb +4 -5
  87. data/lib/lato_view/interface/assets.rb +67 -76
  88. data/lib/lato_view/interface/images.rb +52 -58
  89. data/lib/lato_view/interface/navigation.rb +6 -11
  90. data/lib/lato_view/interface/themes.rb +22 -28
  91. data/lib/tasks/{lato_starter_tasks.rake → lato_view_tasks.rake} +1 -4
  92. metadata +76 -115
  93. data/lib/lato_view/concepts.rb +0 -19
  94. data/test/controllers/lato_view/api/v1/api_controller_test.rb +0 -9
  95. data/test/controllers/lato_view/application_controller_test.rb +0 -9
  96. data/test/controllers/lato_view/back/back_controller_test.rb +0 -9
  97. data/test/dummy/README.rdoc +0 -28
  98. data/test/dummy/Rakefile +0 -6
  99. data/test/dummy/app/assets/javascripts/application.js +0 -13
  100. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  101. data/test/dummy/app/controllers/application_controller.rb +0 -5
  102. data/test/dummy/app/helpers/application_helper.rb +0 -2
  103. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  104. data/test/dummy/bin/bundle +0 -3
  105. data/test/dummy/bin/rails +0 -4
  106. data/test/dummy/bin/rake +0 -4
  107. data/test/dummy/bin/setup +0 -29
  108. data/test/dummy/config.ru +0 -4
  109. data/test/dummy/config/application.rb +0 -25
  110. data/test/dummy/config/boot.rb +0 -5
  111. data/test/dummy/config/database.yml +0 -25
  112. data/test/dummy/config/environment.rb +0 -5
  113. data/test/dummy/config/environments/development.rb +0 -41
  114. data/test/dummy/config/environments/production.rb +0 -79
  115. data/test/dummy/config/environments/test.rb +0 -42
  116. data/test/dummy/config/initializers/assets.rb +0 -11
  117. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  118. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  119. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  120. data/test/dummy/config/initializers/inflections.rb +0 -16
  121. data/test/dummy/config/initializers/mime_types.rb +0 -4
  122. data/test/dummy/config/initializers/session_store.rb +0 -3
  123. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  124. data/test/dummy/config/locales/en.yml +0 -23
  125. data/test/dummy/config/routes.rb +0 -3
  126. data/test/dummy/config/secrets.yml +0 -22
  127. data/test/dummy/public/404.html +0 -67
  128. data/test/dummy/public/422.html +0 -67
  129. data/test/dummy/public/500.html +0 -66
  130. data/test/dummy/public/favicon.ico +0 -0
  131. data/test/integration/navigation_test.rb +0 -8
  132. data/test/lato_view_test.rb +0 -7
  133. data/test/test_helper.rb +0 -21
@@ -1,16 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format. Inflections
4
- # are locale specific, and you may define rules for as many different
5
- # locales as you wish. All of these examples are active by default:
6
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
- # inflect.plural /^(ox)$/i, '\1en'
8
- # inflect.singular /^(ox)en/i, '\1'
9
- # inflect.irregular 'person', 'people'
10
- # inflect.uncountable %w( fish sheep )
11
- # end
12
-
13
- # These inflection rules are supported but not enabled by default:
14
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
- # inflect.acronym 'RESTful'
16
- # end
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
- end
10
-
11
- # To enable root element in JSON for ActiveRecord objects.
12
- # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
14
- # end
@@ -1,23 +0,0 @@
1
- # Files in the config/locales directory are used for internationalization
2
- # and are automatically loaded by Rails. If you want to use locales other
3
- # than English, add the necessary files in this directory.
4
- #
5
- # To use the locales, use `I18n.t`:
6
- #
7
- # I18n.t 'hello'
8
- #
9
- # In views, this is aliased to just `t`:
10
- #
11
- # <%= t('hello') %>
12
- #
13
- # To use a different locale, set it with `I18n.locale`:
14
- #
15
- # I18n.locale = :es
16
- #
17
- # This would use the information in config/locales/es.yml.
18
- #
19
- # To learn more, please read the Rails Internationalization guide
20
- # available at http://guides.rubyonrails.org/i18n.html.
21
-
22
- en:
23
- hello: "Hello world"
@@ -1,3 +0,0 @@
1
- Rails.application.routes.draw do
2
-
3
- end
@@ -1,22 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- development:
14
- secret_key_base: f539f3d8e47dd8738d5da32f83bc415d786e0ac875feed69a6068c38fed4b50888552747d374431da8eb803aefbcfad409391aa536cf4931a38cab0bf0fe1539
15
-
16
- test:
17
- secret_key_base: 57bf61dab545d07fc1032e65d802262e74f8dc60ce6fbdf1458124e113faa2cc21ed0797530277fd8d0da3dadade21179702961cb660378bf04ac7cd4e9b240d
18
-
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
- production:
22
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body>
58
- <!-- This file lives in public/404.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The page you were looking for doesn't exist.</h1>
62
- <p>You may have mistyped the address or the page may have moved.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body>
58
- <!-- This file lives in public/422.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The change you wanted was rejected.</h1>
62
- <p>Maybe you tried to change something you didn't have access to.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>
@@ -1,66 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body>
58
- <!-- This file lives in public/500.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>We're sorry, but something went wrong.</h1>
62
- </div>
63
- <p>If you are the application owner check the logs for more information.</p>
64
- </div>
65
- </body>
66
- </html>
File without changes
@@ -1,8 +0,0 @@
1
- require 'test_helper'
2
-
3
- class NavigationTest < ActionDispatch::IntegrationTest
4
- # test "the truth" do
5
- # assert true
6
- # end
7
- end
8
-
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class LatoStarterTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, LatoStarter
6
- end
7
- end
@@ -1,21 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
- ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
6
- ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
7
- require "rails/test_help"
8
-
9
- # Filter out Minitest backtrace while allowing backtrace from other libraries
10
- # to be shown.
11
- Minitest.backtrace_filter = Minitest::BacktraceFilter.new
12
-
13
- # Load support files
14
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
15
-
16
- # Load fixtures from the engine
17
- if ActiveSupport::TestCase.respond_to?(:fixture_path=)
18
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
19
- ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
20
- ActiveSupport::TestCase.fixtures :all
21
- end