lato_view 1.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +0 -12
- data/app/assets/javascripts/lato_view/build/FormManager.js +8 -2
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/actionbar/cell.rb +1 -1
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/actionbar/views/show.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/block/cell.rb +1 -1
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/buttongroup/cell.rb +1 -5
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/buttongroup/views/show.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/dropdown/cell.rb +2 -2
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/dropdown/views/show.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/index/cell.rb +2 -2
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/index/views/head.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/index/views/rows.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/cell.rb +5 -4
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/checkbox.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/date.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/editor.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/email.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/file.html.erb +0 -6
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/multiple-select.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/number.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/password.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/radio.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/select.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/text.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/textarea.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/input/views/time.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/searchbar/cell.rb +1 -6
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/searchbar/views/show.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/table/cell.rb +2 -2
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/table/views/head.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/table/views/row.html.erb +0 -0
- data/app/{concepts/lato_view → cells/lato_view/cells_v1}/table/views/rows.html.erb +0 -0
- data/app/cells/lato_view/component/button/cell.rb +30 -0
- data/app/cells/lato_view/component/button/views/show.html.erb +1 -0
- data/app/cells/lato_view/component/buttongroup/cell.rb +31 -0
- data/app/cells/lato_view/component/buttongroup/views/show.html.erb +13 -0
- data/app/cells/lato_view/component/dropdown/cell.rb +26 -0
- data/app/cells/lato_view/component/dropdown/views/show.html.erb +43 -0
- data/app/cells/lato_view/component/form/cell.rb +35 -0
- data/app/cells/lato_view/component/form/views/open.html.erb +3 -0
- data/app/cells/lato_view/component/form/views/show.html.erb +1 -0
- data/app/cells/lato_view/component/searchbar/cell.rb +36 -0
- data/app/cells/lato_view/component/searchbar/views/show.html.erb +9 -0
- data/app/cells/lato_view/input/checkbox/cell.rb +48 -0
- data/app/cells/lato_view/input/checkbox/views/show.html.erb +17 -0
- data/app/cells/lato_view/input/date/cell.rb +45 -0
- data/app/cells/lato_view/input/date/views/show.html.erb +11 -0
- data/app/cells/lato_view/input/editor/cell.rb +45 -0
- data/app/cells/lato_view/input/editor/views/show.html.erb +12 -0
- data/app/cells/lato_view/input/email/cell.rb +45 -0
- data/app/cells/lato_view/input/email/views/show.html.erb +11 -0
- data/app/cells/lato_view/input/file/cell.rb +51 -0
- data/app/cells/lato_view/input/file/views/show.html.erb +18 -0
- data/app/cells/lato_view/input/number/cell.rb +45 -0
- data/app/cells/lato_view/input/number/views/show.html.erb +11 -0
- data/app/cells/lato_view/input/password/cell.rb +46 -0
- data/app/cells/lato_view/input/password/views/show.html.erb +15 -0
- data/app/cells/lato_view/input/radio/cell.rb +63 -0
- data/app/cells/lato_view/input/radio/views/show.html.erb +20 -0
- data/app/cells/lato_view/input/select/cell.rb +87 -0
- data/app/cells/lato_view/input/select/views/show.html.erb +21 -0
- data/app/cells/lato_view/input/text/cell.rb +45 -0
- data/app/cells/lato_view/input/text/views/show.html.erb +11 -0
- data/app/cells/lato_view/input/textarea/cell.rb +45 -0
- data/app/cells/lato_view/input/textarea/views/show.html.erb +12 -0
- data/app/cells/lato_view/input/time/cell.rb +45 -0
- data/app/cells/lato_view/input/time/views/show.html.erb +11 -0
- data/app/cells/lato_view/layout/actionbar/cell.rb +29 -0
- data/app/cells/lato_view/layout/actionbar/views/show.html.erb +13 -0
- data/app/cells/lato_view/layout/block/cell.rb +37 -0
- data/app/cells/lato_view/layout/index/cell.rb +73 -0
- data/app/cells/lato_view/layout/index/views/head.html.erb +12 -0
- data/app/cells/lato_view/layout/index/views/rows.html.erb +49 -0
- data/app/controllers/lato_view/assets_controller.rb +3 -6
- data/app/controllers/lato_view/develop_controller.rb +5 -5
- data/app/helpers/lato_view/application_helper.rb +19 -10
- data/config/example.yml +2 -2
- data/config/initializers/init.rb +1 -1
- data/config/initializers/lists.rb +2 -18
- data/config/initializers/ram.rb +1 -13
- data/config/routes.rb +1 -0
- data/lib/lato_view.rb +5 -7
- data/lib/lato_view/cells.rb +16 -0
- data/lib/lato_view/engine.rb +6 -5
- data/lib/lato_view/interface.rb +4 -5
- data/lib/lato_view/interface/assets.rb +67 -76
- data/lib/lato_view/interface/images.rb +52 -58
- data/lib/lato_view/interface/navigation.rb +6 -11
- data/lib/lato_view/interface/themes.rb +22 -28
- data/lib/tasks/{lato_starter_tasks.rake → lato_view_tasks.rake} +1 -4
- metadata +76 -115
- data/lib/lato_view/concepts.rb +0 -19
- data/test/controllers/lato_view/api/v1/api_controller_test.rb +0 -9
- data/test/controllers/lato_view/application_controller_test.rb +0 -9
- data/test/controllers/lato_view/back/back_controller_test.rb +0 -9
- data/test/dummy/README.rdoc +0 -28
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/assets/javascripts/application.js +0 -13
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/app/controllers/application_controller.rb +0 -5
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/bin/bundle +0 -3
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/bin/setup +0 -29
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -25
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -41
- data/test/dummy/config/environments/production.rb +0 -79
- data/test/dummy/config/environments/test.rb +0 -42
- data/test/dummy/config/initializers/assets.rb +0 -11
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -4
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -23
- data/test/dummy/config/routes.rb +0 -3
- data/test/dummy/config/secrets.yml +0 -22
- data/test/dummy/public/404.html +0 -67
- data/test/dummy/public/422.html +0 -67
- data/test/dummy/public/500.html +0 -66
- data/test/dummy/public/favicon.ico +0 -0
- data/test/integration/navigation_test.rb +0 -8
- data/test/lato_view_test.rb +0 -7
- data/test/test_helper.rb +0 -21
@@ -1,68 +1,62 @@
|
|
1
1
|
module LatoView
|
2
|
-
module
|
3
|
-
|
4
|
-
module Images
|
2
|
+
# This module contains function for images.
|
3
|
+
module Interface::Images
|
5
4
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
return "lato/sidebar_logo.svg"
|
13
|
-
end
|
14
|
-
if File.exist?("#{dir}/sidebar_logo.png")
|
15
|
-
return "lato/sidebar_logo.png"
|
16
|
-
end
|
17
|
-
if File.exist?("#{dir}/sidebar_logo.jpg")
|
18
|
-
return "lato/sidebar_logo.jpg"
|
19
|
-
end
|
20
|
-
if File.exist?("#{dir}/sidebar_logo.gif")
|
21
|
-
return "lato/sidebar_logo.gif"
|
22
|
-
end
|
23
|
-
return view_getApplicationLogo
|
5
|
+
# This function return the url of sidebar logo.
|
6
|
+
def view_getSidebarLogo
|
7
|
+
return VIEW_SIDEBARLOGO if defined? VIEW_SIDEBARLOGO
|
8
|
+
dir = "#{Rails.root}/app/assets/images/lato/"
|
9
|
+
if File.exist?("#{dir}/sidebar_logo.svg")
|
10
|
+
return "lato/sidebar_logo.svg"
|
24
11
|
end
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
return
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
end
|
34
|
-
if File.exist?("#{dir}/login_logo.png")
|
35
|
-
return "lato/login_logo.png"
|
36
|
-
end
|
37
|
-
if File.exist?("#{dir}/login_logo.jpg")
|
38
|
-
return "lato/login_logo.jpg"
|
39
|
-
end
|
40
|
-
if File.exist?("#{dir}/login_logo.gif")
|
41
|
-
return "lato/login_logo.gif"
|
42
|
-
end
|
43
|
-
return view_getApplicationLogo
|
12
|
+
if File.exist?("#{dir}/sidebar_logo.png")
|
13
|
+
return "lato/sidebar_logo.png"
|
14
|
+
end
|
15
|
+
if File.exist?("#{dir}/sidebar_logo.jpg")
|
16
|
+
return "lato/sidebar_logo.jpg"
|
17
|
+
end
|
18
|
+
if File.exist?("#{dir}/sidebar_logo.gif")
|
19
|
+
return "lato/sidebar_logo.gif"
|
44
20
|
end
|
21
|
+
return view_getApplicationLogo
|
22
|
+
end
|
45
23
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
return "lato/logo.jpg"
|
59
|
-
end
|
60
|
-
if File.exist?("#{dir}/logo.gif")
|
61
|
-
return "lato/logo.gif"
|
62
|
-
end
|
63
|
-
return false
|
24
|
+
# This function return the url of login logo.
|
25
|
+
def view_getLoginLogo
|
26
|
+
return VIEW_LOGINLOGO if defined? VIEW_LOGINLOGO
|
27
|
+
dir = "#{Rails.root}/app/assets/images/lato/"
|
28
|
+
if File.exist?("#{dir}/login_logo.svg")
|
29
|
+
return "lato/login_logo.svg"
|
30
|
+
end
|
31
|
+
if File.exist?("#{dir}/login_logo.png")
|
32
|
+
return "lato/login_logo.png"
|
33
|
+
end
|
34
|
+
if File.exist?("#{dir}/login_logo.jpg")
|
35
|
+
return "lato/login_logo.jpg"
|
64
36
|
end
|
37
|
+
if File.exist?("#{dir}/login_logo.gif")
|
38
|
+
return "lato/login_logo.gif"
|
39
|
+
end
|
40
|
+
return view_getApplicationLogo
|
41
|
+
end
|
65
42
|
|
43
|
+
# This function return the url of application logo.
|
44
|
+
def view_getApplicationLogo
|
45
|
+
return VIEW_APPLOGO if defined? VIEW_APPLOGO
|
46
|
+
dir = "#{Rails.root}/app/assets/images/lato/"
|
47
|
+
if File.exist?("#{dir}/logo.svg")
|
48
|
+
return "lato/logo.svg"
|
49
|
+
end
|
50
|
+
if File.exist?("#{dir}/logo.png")
|
51
|
+
return "lato/logo.png"
|
52
|
+
end
|
53
|
+
if File.exist?("#{dir}/logo.jpg")
|
54
|
+
return "lato/logo.jpg"
|
55
|
+
end
|
56
|
+
if File.exist?("#{dir}/logo.gif")
|
57
|
+
return "lato/logo.gif"
|
58
|
+
end
|
59
|
+
return false
|
66
60
|
end
|
67
61
|
|
68
62
|
end
|
@@ -1,16 +1,11 @@
|
|
1
1
|
module LatoView
|
2
|
-
module
|
3
|
-
|
4
|
-
# sistema
|
5
|
-
module Navigation
|
6
|
-
|
7
|
-
# Funzione che prende una stringa come parametro e, se essa e' presente
|
8
|
-
# come nome univoco tra le voci della navbar la imposta come voce con
|
9
|
-
# classe active nella navigazione
|
10
|
-
def view_setCurrentVoice(unique_name)
|
11
|
-
@view_navbar_unique_name = unique_name
|
12
|
-
end
|
2
|
+
# This module contains function for the navigationbar.
|
3
|
+
module Interface::Navigation
|
13
4
|
|
5
|
+
# This function is used to set active the sidebar menu voice with the
|
6
|
+
# key set as params.
|
7
|
+
def view_setCurrentVoice(unique_name)
|
8
|
+
@view_navbar_unique_name = unique_name
|
14
9
|
end
|
15
10
|
|
16
11
|
end
|
@@ -1,36 +1,30 @@
|
|
1
|
-
include LatoCore::Interface
|
2
|
-
|
3
1
|
module LatoView
|
4
|
-
module
|
5
|
-
|
6
|
-
# gestita da lato_view.
|
7
|
-
module Themes
|
2
|
+
# This module contain functions used to manage themes.
|
3
|
+
module Interface::Themes
|
8
4
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
return false
|
22
|
-
end
|
23
|
-
# verifico che il template sia valido
|
24
|
-
unless VIEW_TEMPLATES.include? config['template']
|
25
|
-
raise 'Template value is not correct on view.yml config file' and return false
|
26
|
-
end
|
27
|
-
# ritorno nome template
|
28
|
-
return config['template']
|
29
|
-
else
|
5
|
+
# This function return the name of the current theme used for the
|
6
|
+
# application.
|
7
|
+
def view_getCurrentTemplateName
|
8
|
+
return VIEW_CURRENTTEMPLATENAME if defined? VIEW_CURRENTTEMPLATENAME
|
9
|
+
directory = core_getCacheDirectory
|
10
|
+
if File.exist? "#{directory}/view.yml"
|
11
|
+
# accedo al view.yml
|
12
|
+
config = YAML.load(
|
13
|
+
File.read(File.expand_path("#{directory}/view.yml", __FILE__))
|
14
|
+
)
|
15
|
+
# verifico esistenza dati
|
16
|
+
if !config || !config['template']
|
30
17
|
return false
|
31
18
|
end
|
19
|
+
# verifico che il template sia valido
|
20
|
+
unless VIEW_TEMPLATES.include? config['template']
|
21
|
+
raise 'Template value is not correct on view.yml config file' and return false
|
22
|
+
end
|
23
|
+
# ritorno nome template
|
24
|
+
return config['template']
|
25
|
+
else
|
26
|
+
return false
|
32
27
|
end
|
33
|
-
|
34
28
|
end
|
35
29
|
|
36
30
|
end
|
@@ -1,11 +1,8 @@
|
|
1
1
|
include LatoCore::Interface
|
2
2
|
|
3
|
-
#
|
4
|
-
# dell'applicazione principale
|
3
|
+
# Initialize module on project
|
5
4
|
desc 'Create view.yml file for Lato configuration'
|
6
5
|
task :lato_view_initialize do
|
7
|
-
# determino la directory di cache
|
8
6
|
directory = core_getCacheDirectory
|
9
7
|
FileUtils.cp "#{LatoView::Engine.root}/config/example.yml", "#{Rails.root}/config/lato/view.yml"
|
10
|
-
|
11
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lato_view
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregorio Galante, Antonio Dal Cin, Riccardo Zanutta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -257,36 +257,77 @@ files:
|
|
257
257
|
- app/assets/stylesheets/lato_view/views/_login.scss
|
258
258
|
- app/assets/stylesheets/lato_view/views/_print.scss
|
259
259
|
- app/assets/stylesheets/lato_view/views/_views.scss
|
260
|
-
- app/
|
261
|
-
- app/
|
262
|
-
- app/
|
263
|
-
- app/
|
264
|
-
- app/
|
265
|
-
- app/
|
266
|
-
- app/
|
267
|
-
- app/
|
268
|
-
- app/
|
269
|
-
- app/
|
270
|
-
- app/
|
271
|
-
- app/
|
272
|
-
- app/
|
273
|
-
- app/
|
274
|
-
- app/
|
275
|
-
- app/
|
276
|
-
- app/
|
277
|
-
- app/
|
278
|
-
- app/
|
279
|
-
- app/
|
280
|
-
- app/
|
281
|
-
- app/
|
282
|
-
- app/
|
283
|
-
- app/
|
284
|
-
- app/
|
285
|
-
- app/
|
286
|
-
- app/
|
287
|
-
- app/
|
288
|
-
- app/
|
289
|
-
- app/
|
260
|
+
- app/cells/lato_view/cells_v1/actionbar/cell.rb
|
261
|
+
- app/cells/lato_view/cells_v1/actionbar/views/show.html.erb
|
262
|
+
- app/cells/lato_view/cells_v1/block/cell.rb
|
263
|
+
- app/cells/lato_view/cells_v1/buttongroup/cell.rb
|
264
|
+
- app/cells/lato_view/cells_v1/buttongroup/views/show.html.erb
|
265
|
+
- app/cells/lato_view/cells_v1/dropdown/cell.rb
|
266
|
+
- app/cells/lato_view/cells_v1/dropdown/views/show.html.erb
|
267
|
+
- app/cells/lato_view/cells_v1/index/cell.rb
|
268
|
+
- app/cells/lato_view/cells_v1/index/views/head.html.erb
|
269
|
+
- app/cells/lato_view/cells_v1/index/views/rows.html.erb
|
270
|
+
- app/cells/lato_view/cells_v1/input/cell.rb
|
271
|
+
- app/cells/lato_view/cells_v1/input/views/checkbox.html.erb
|
272
|
+
- app/cells/lato_view/cells_v1/input/views/date.html.erb
|
273
|
+
- app/cells/lato_view/cells_v1/input/views/editor.html.erb
|
274
|
+
- app/cells/lato_view/cells_v1/input/views/email.html.erb
|
275
|
+
- app/cells/lato_view/cells_v1/input/views/file.html.erb
|
276
|
+
- app/cells/lato_view/cells_v1/input/views/multiple-select.html.erb
|
277
|
+
- app/cells/lato_view/cells_v1/input/views/number.html.erb
|
278
|
+
- app/cells/lato_view/cells_v1/input/views/password.html.erb
|
279
|
+
- app/cells/lato_view/cells_v1/input/views/radio.html.erb
|
280
|
+
- app/cells/lato_view/cells_v1/input/views/select.html.erb
|
281
|
+
- app/cells/lato_view/cells_v1/input/views/text.html.erb
|
282
|
+
- app/cells/lato_view/cells_v1/input/views/textarea.html.erb
|
283
|
+
- app/cells/lato_view/cells_v1/input/views/time.html.erb
|
284
|
+
- app/cells/lato_view/cells_v1/searchbar/cell.rb
|
285
|
+
- app/cells/lato_view/cells_v1/searchbar/views/show.html.erb
|
286
|
+
- app/cells/lato_view/cells_v1/table/cell.rb
|
287
|
+
- app/cells/lato_view/cells_v1/table/views/head.html.erb
|
288
|
+
- app/cells/lato_view/cells_v1/table/views/row.html.erb
|
289
|
+
- app/cells/lato_view/cells_v1/table/views/rows.html.erb
|
290
|
+
- app/cells/lato_view/component/button/cell.rb
|
291
|
+
- app/cells/lato_view/component/button/views/show.html.erb
|
292
|
+
- app/cells/lato_view/component/buttongroup/cell.rb
|
293
|
+
- app/cells/lato_view/component/buttongroup/views/show.html.erb
|
294
|
+
- app/cells/lato_view/component/dropdown/cell.rb
|
295
|
+
- app/cells/lato_view/component/dropdown/views/show.html.erb
|
296
|
+
- app/cells/lato_view/component/form/cell.rb
|
297
|
+
- app/cells/lato_view/component/form/views/open.html.erb
|
298
|
+
- app/cells/lato_view/component/form/views/show.html.erb
|
299
|
+
- app/cells/lato_view/component/searchbar/cell.rb
|
300
|
+
- app/cells/lato_view/component/searchbar/views/show.html.erb
|
301
|
+
- app/cells/lato_view/input/checkbox/cell.rb
|
302
|
+
- app/cells/lato_view/input/checkbox/views/show.html.erb
|
303
|
+
- app/cells/lato_view/input/date/cell.rb
|
304
|
+
- app/cells/lato_view/input/date/views/show.html.erb
|
305
|
+
- app/cells/lato_view/input/editor/cell.rb
|
306
|
+
- app/cells/lato_view/input/editor/views/show.html.erb
|
307
|
+
- app/cells/lato_view/input/email/cell.rb
|
308
|
+
- app/cells/lato_view/input/email/views/show.html.erb
|
309
|
+
- app/cells/lato_view/input/file/cell.rb
|
310
|
+
- app/cells/lato_view/input/file/views/show.html.erb
|
311
|
+
- app/cells/lato_view/input/number/cell.rb
|
312
|
+
- app/cells/lato_view/input/number/views/show.html.erb
|
313
|
+
- app/cells/lato_view/input/password/cell.rb
|
314
|
+
- app/cells/lato_view/input/password/views/show.html.erb
|
315
|
+
- app/cells/lato_view/input/radio/cell.rb
|
316
|
+
- app/cells/lato_view/input/radio/views/show.html.erb
|
317
|
+
- app/cells/lato_view/input/select/cell.rb
|
318
|
+
- app/cells/lato_view/input/select/views/show.html.erb
|
319
|
+
- app/cells/lato_view/input/text/cell.rb
|
320
|
+
- app/cells/lato_view/input/text/views/show.html.erb
|
321
|
+
- app/cells/lato_view/input/textarea/cell.rb
|
322
|
+
- app/cells/lato_view/input/textarea/views/show.html.erb
|
323
|
+
- app/cells/lato_view/input/time/cell.rb
|
324
|
+
- app/cells/lato_view/input/time/views/show.html.erb
|
325
|
+
- app/cells/lato_view/layout/actionbar/cell.rb
|
326
|
+
- app/cells/lato_view/layout/actionbar/views/show.html.erb
|
327
|
+
- app/cells/lato_view/layout/block/cell.rb
|
328
|
+
- app/cells/lato_view/layout/index/cell.rb
|
329
|
+
- app/cells/lato_view/layout/index/views/head.html.erb
|
330
|
+
- app/cells/lato_view/layout/index/views/rows.html.erb
|
290
331
|
- app/controllers/lato_view/assets_controller.rb
|
291
332
|
- app/controllers/lato_view/develop_controller.rb
|
292
333
|
- app/helpers/lato_view/application_helper.rb
|
@@ -338,54 +379,14 @@ files:
|
|
338
379
|
- config/initializers/ram.rb
|
339
380
|
- config/routes.rb
|
340
381
|
- lib/lato_view.rb
|
341
|
-
- lib/lato_view/
|
382
|
+
- lib/lato_view/cells.rb
|
342
383
|
- lib/lato_view/engine.rb
|
343
384
|
- lib/lato_view/interface.rb
|
344
385
|
- lib/lato_view/interface/assets.rb
|
345
386
|
- lib/lato_view/interface/images.rb
|
346
387
|
- lib/lato_view/interface/navigation.rb
|
347
388
|
- lib/lato_view/interface/themes.rb
|
348
|
-
- lib/tasks/
|
349
|
-
- test/controllers/lato_view/api/v1/api_controller_test.rb
|
350
|
-
- test/controllers/lato_view/application_controller_test.rb
|
351
|
-
- test/controllers/lato_view/back/back_controller_test.rb
|
352
|
-
- test/dummy/README.rdoc
|
353
|
-
- test/dummy/Rakefile
|
354
|
-
- test/dummy/app/assets/javascripts/application.js
|
355
|
-
- test/dummy/app/assets/stylesheets/application.css
|
356
|
-
- test/dummy/app/controllers/application_controller.rb
|
357
|
-
- test/dummy/app/helpers/application_helper.rb
|
358
|
-
- test/dummy/app/views/layouts/application.html.erb
|
359
|
-
- test/dummy/bin/bundle
|
360
|
-
- test/dummy/bin/rails
|
361
|
-
- test/dummy/bin/rake
|
362
|
-
- test/dummy/bin/setup
|
363
|
-
- test/dummy/config.ru
|
364
|
-
- test/dummy/config/application.rb
|
365
|
-
- test/dummy/config/boot.rb
|
366
|
-
- test/dummy/config/database.yml
|
367
|
-
- test/dummy/config/environment.rb
|
368
|
-
- test/dummy/config/environments/development.rb
|
369
|
-
- test/dummy/config/environments/production.rb
|
370
|
-
- test/dummy/config/environments/test.rb
|
371
|
-
- test/dummy/config/initializers/assets.rb
|
372
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
373
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
374
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
375
|
-
- test/dummy/config/initializers/inflections.rb
|
376
|
-
- test/dummy/config/initializers/mime_types.rb
|
377
|
-
- test/dummy/config/initializers/session_store.rb
|
378
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
379
|
-
- test/dummy/config/locales/en.yml
|
380
|
-
- test/dummy/config/routes.rb
|
381
|
-
- test/dummy/config/secrets.yml
|
382
|
-
- test/dummy/public/404.html
|
383
|
-
- test/dummy/public/422.html
|
384
|
-
- test/dummy/public/500.html
|
385
|
-
- test/dummy/public/favicon.ico
|
386
|
-
- test/integration/navigation_test.rb
|
387
|
-
- test/lato_view_test.rb
|
388
|
-
- test/test_helper.rb
|
389
|
+
- lib/tasks/lato_view_tasks.rake
|
389
390
|
homepage: https://github.com/LatoTeam/lato_view
|
390
391
|
licenses:
|
391
392
|
- MIT
|
@@ -410,44 +411,4 @@ rubygems_version: 2.5.1
|
|
410
411
|
signing_key:
|
411
412
|
specification_version: 4
|
412
413
|
summary: Lato module for view elements
|
413
|
-
test_files:
|
414
|
-
- test/controllers/lato_view/api/v1/api_controller_test.rb
|
415
|
-
- test/controllers/lato_view/application_controller_test.rb
|
416
|
-
- test/controllers/lato_view/back/back_controller_test.rb
|
417
|
-
- test/dummy/app/assets/javascripts/application.js
|
418
|
-
- test/dummy/app/assets/stylesheets/application.css
|
419
|
-
- test/dummy/app/controllers/application_controller.rb
|
420
|
-
- test/dummy/app/helpers/application_helper.rb
|
421
|
-
- test/dummy/app/views/layouts/application.html.erb
|
422
|
-
- test/dummy/bin/bundle
|
423
|
-
- test/dummy/bin/rails
|
424
|
-
- test/dummy/bin/rake
|
425
|
-
- test/dummy/bin/setup
|
426
|
-
- test/dummy/config/application.rb
|
427
|
-
- test/dummy/config/boot.rb
|
428
|
-
- test/dummy/config/database.yml
|
429
|
-
- test/dummy/config/environment.rb
|
430
|
-
- test/dummy/config/environments/development.rb
|
431
|
-
- test/dummy/config/environments/production.rb
|
432
|
-
- test/dummy/config/environments/test.rb
|
433
|
-
- test/dummy/config/initializers/assets.rb
|
434
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
435
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
436
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
437
|
-
- test/dummy/config/initializers/inflections.rb
|
438
|
-
- test/dummy/config/initializers/mime_types.rb
|
439
|
-
- test/dummy/config/initializers/session_store.rb
|
440
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
441
|
-
- test/dummy/config/locales/en.yml
|
442
|
-
- test/dummy/config/routes.rb
|
443
|
-
- test/dummy/config/secrets.yml
|
444
|
-
- test/dummy/config.ru
|
445
|
-
- test/dummy/public/404.html
|
446
|
-
- test/dummy/public/422.html
|
447
|
-
- test/dummy/public/500.html
|
448
|
-
- test/dummy/public/favicon.ico
|
449
|
-
- test/dummy/Rakefile
|
450
|
-
- test/dummy/README.rdoc
|
451
|
-
- test/integration/navigation_test.rb
|
452
|
-
- test/lato_view_test.rb
|
453
|
-
- test/test_helper.rb
|
414
|
+
test_files: []
|
data/lib/lato_view/concepts.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
module LatoView
|
2
|
-
# Sopraclasse di tutte le Celle. Include tutte quelle componenti usate
|
3
|
-
# dalle celle che generano l'interfaccia grafica.
|
4
|
-
class Cell < Cell::Concept
|
5
|
-
|
6
|
-
# Imposto la directory che contiene i vari concepts
|
7
|
-
view_paths << "#{LatoView::Engine.root}/app/concepts"
|
8
|
-
|
9
|
-
# Includo tutte le funzioni necessarie al corretto funzionamento dei
|
10
|
-
# concepts
|
11
|
-
include ActionView::Helpers::FormHelper
|
12
|
-
include ActionView::Helpers::UrlHelper
|
13
|
-
include ERB::Util
|
14
|
-
|
15
|
-
# Funzioni per usare files .erb nelle celle
|
16
|
-
include ::Cell::Erb
|
17
|
-
|
18
|
-
end
|
19
|
-
end
|