billy_cms 0.0.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.
Files changed (63) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.travis.yml +4 -0
  4. data/CODE_OF_CONDUCT.md +49 -0
  5. data/Gemfile +8 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +41 -0
  8. data/Rakefile +10 -0
  9. data/app/assets/images/billy_cms/32px.png +0 -0
  10. data/app/assets/images/billy_cms/40px.png +0 -0
  11. data/app/assets/images/billy_cms/fileicon.png +0 -0
  12. data/app/assets/images/billy_cms/throbber.gif +0 -0
  13. data/app/assets/javascripts/billy_cms/backend/app.js.erb +217 -0
  14. data/app/assets/javascripts/billy_cms/backend/attributes.js +33 -0
  15. data/app/assets/javascripts/billy_cms/backend/billy_object.js +41 -0
  16. data/app/assets/javascripts/billy_cms/backend/directives/ng-jstree.js +200 -0
  17. data/app/assets/javascripts/billy_cms/backend/jstree.js +7781 -0
  18. data/app/assets/javascripts/billy_cms/backend/ngfileupload.js +2506 -0
  19. data/app/assets/javascripts/billy_cms/backend/page_type.js +11 -0
  20. data/app/assets/javascripts/billy_cms/backend/ui-router.js +4370 -0
  21. data/app/assets/javascripts/billy_cms/backend.js +15 -0
  22. data/app/assets/javascripts/billy_cms/frontend/api_connector.js +5 -0
  23. data/app/assets/javascripts/billy_cms/frontend/editing.es6 +120 -0
  24. data/app/assets/javascripts/billy_cms/frontend/google_maps.js +13 -0
  25. data/app/assets/javascripts/billy_cms/frontend/navbar.js +0 -0
  26. data/app/assets/javascripts/billy_cms/frontend/slick.es6 +8 -0
  27. data/app/assets/javascripts/billy_cms.js +16 -0
  28. data/app/assets/stylesheets/billy_cms/backend/index.scss +17 -0
  29. data/app/assets/stylesheets/billy_cms/editmode.scss +78 -0
  30. data/app/assets/stylesheets/billy_cms/index.scss +5 -0
  31. data/app/assets/stylesheets/billy_cms/jstree.scss +1061 -0
  32. data/app/assets/stylesheets/billy_cms.css +15 -0
  33. data/app/controllers/billy_cms/api/api_controller.rb +25 -0
  34. data/app/controllers/billy_cms/api/attributes_controller.rb +65 -0
  35. data/app/controllers/billy_cms/api/page_types_controller.rb +13 -0
  36. data/app/controllers/billy_cms/api/pages_controller.rb +63 -0
  37. data/app/controllers/billy_cms/backend_controller.rb +10 -0
  38. data/app/controllers/billy_cms/base_controller.rb +23 -0
  39. data/app/helpers/billy_cms/cms_path_helper.rb +8 -0
  40. data/app/helpers/billy_cms/content_helper.rb +17 -0
  41. data/app/helpers/billy_cms/permission_helper.rb +24 -0
  42. data/app/models/billy_cms/additional_attribute.rb +6 -0
  43. data/app/models/billy_cms/additional_attributes_page_types.rb +6 -0
  44. data/app/models/billy_cms/page.rb +61 -0
  45. data/app/models/billy_cms/page_type.rb +7 -0
  46. data/app/models/billy_router.rb +20 -0
  47. data/app/serializers/billy_cms/additional_attribute_serializer.rb +6 -0
  48. data/app/serializers/billy_cms/page_serializer.rb +15 -0
  49. data/app/serializers/billy_cms/page_type_serializer.rb +5 -0
  50. data/app/views/billy_cms/_edit_page_button.html.erb +1 -0
  51. data/app/views/billy_cms/_page_settings_form.html.erb +25 -0
  52. data/app/views/billy_cms/_page_settings_modal.html.erb +19 -0
  53. data/app/views/billy_cms/_settings_page_button.html.erb +4 -0
  54. data/app/views/billy_cms/backend/_attributes.html.erb +12 -0
  55. data/app/views/billy_cms/backend/_header.html.erb +84 -0
  56. data/app/views/billy_cms/backend/_tree.html.erb +58 -0
  57. data/app/views/billy_cms/backend/index.html.erb +19 -0
  58. data/billy_cms.gemspec +32 -0
  59. data/bin/console +14 -0
  60. data/bin/setup +8 -0
  61. data/lib/billy_cms/version.rb +3 -0
  62. data/lib/billy_cms.rb +5 -0
  63. metadata +147 -0
data/billy_cms.gemspec ADDED
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'billy_cms/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "billy_cms"
8
+ spec.version = BillyCms::VERSION
9
+ spec.authors = ["unsdrei GbR"]
10
+ spec.email = ["alexis.rinaldoni@unsdrei.de"]
11
+
12
+ spec.summary = "A simple Plugin CMS for rails, including built-in in-page-editing option."
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
17
+ # delete this section to allow pushing this gem to any host.
18
+ # if spec.respond_to?(:metadata)
19
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
20
+ # else
21
+ # raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
22
+ # end
23
+
24
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
+ spec.bindir = "exe"
26
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
+ spec.require_paths = ["lib"]
28
+
29
+ spec.add_development_dependency "bundler", "~> 1.11"
30
+ spec.add_development_dependency "rake", "~> 10.0"
31
+ spec.add_development_dependency "minitest", "~> 5.0"
32
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "billy_cms"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,3 @@
1
+ module BillyCms
2
+ VERSION = "0.0.2"
3
+ end
data/lib/billy_cms.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "billy_cms/version"
2
+
3
+ module BillyCms
4
+ class Engine < ::Rails::Engine; end
5
+ end
metadata ADDED
@@ -0,0 +1,147 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: billy_cms
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - unsdrei GbR
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-06-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ description:
56
+ email:
57
+ - alexis.rinaldoni@unsdrei.de
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".travis.yml"
64
+ - CODE_OF_CONDUCT.md
65
+ - Gemfile
66
+ - LICENSE.txt
67
+ - README.md
68
+ - Rakefile
69
+ - app/assets/images/billy_cms/32px.png
70
+ - app/assets/images/billy_cms/40px.png
71
+ - app/assets/images/billy_cms/fileicon.png
72
+ - app/assets/images/billy_cms/throbber.gif
73
+ - app/assets/javascripts/billy_cms.js
74
+ - app/assets/javascripts/billy_cms/backend.js
75
+ - app/assets/javascripts/billy_cms/backend/app.js.erb
76
+ - app/assets/javascripts/billy_cms/backend/attributes.js
77
+ - app/assets/javascripts/billy_cms/backend/billy_object.js
78
+ - app/assets/javascripts/billy_cms/backend/directives/ng-jstree.js
79
+ - app/assets/javascripts/billy_cms/backend/jstree.js
80
+ - app/assets/javascripts/billy_cms/backend/ngfileupload.js
81
+ - app/assets/javascripts/billy_cms/backend/page_type.js
82
+ - app/assets/javascripts/billy_cms/backend/ui-router.js
83
+ - app/assets/javascripts/billy_cms/frontend/api_connector.js
84
+ - app/assets/javascripts/billy_cms/frontend/editing.es6
85
+ - app/assets/javascripts/billy_cms/frontend/google_maps.js
86
+ - app/assets/javascripts/billy_cms/frontend/navbar.js
87
+ - app/assets/javascripts/billy_cms/frontend/slick.es6
88
+ - app/assets/stylesheets/billy_cms.css
89
+ - app/assets/stylesheets/billy_cms/backend/index.scss
90
+ - app/assets/stylesheets/billy_cms/editmode.scss
91
+ - app/assets/stylesheets/billy_cms/index.scss
92
+ - app/assets/stylesheets/billy_cms/jstree.scss
93
+ - app/controllers/billy_cms/api/api_controller.rb
94
+ - app/controllers/billy_cms/api/attributes_controller.rb
95
+ - app/controllers/billy_cms/api/page_types_controller.rb
96
+ - app/controllers/billy_cms/api/pages_controller.rb
97
+ - app/controllers/billy_cms/backend_controller.rb
98
+ - app/controllers/billy_cms/base_controller.rb
99
+ - app/helpers/billy_cms/cms_path_helper.rb
100
+ - app/helpers/billy_cms/content_helper.rb
101
+ - app/helpers/billy_cms/permission_helper.rb
102
+ - app/models/billy_cms/additional_attribute.rb
103
+ - app/models/billy_cms/additional_attributes_page_types.rb
104
+ - app/models/billy_cms/page.rb
105
+ - app/models/billy_cms/page_type.rb
106
+ - app/models/billy_router.rb
107
+ - app/serializers/billy_cms/additional_attribute_serializer.rb
108
+ - app/serializers/billy_cms/page_serializer.rb
109
+ - app/serializers/billy_cms/page_type_serializer.rb
110
+ - app/views/billy_cms/_edit_page_button.html.erb
111
+ - app/views/billy_cms/_page_settings_form.html.erb
112
+ - app/views/billy_cms/_page_settings_modal.html.erb
113
+ - app/views/billy_cms/_settings_page_button.html.erb
114
+ - app/views/billy_cms/backend/_attributes.html.erb
115
+ - app/views/billy_cms/backend/_header.html.erb
116
+ - app/views/billy_cms/backend/_tree.html.erb
117
+ - app/views/billy_cms/backend/index.html.erb
118
+ - billy_cms.gemspec
119
+ - bin/console
120
+ - bin/setup
121
+ - lib/billy_cms.rb
122
+ - lib/billy_cms/version.rb
123
+ homepage: ''
124
+ licenses:
125
+ - MIT
126
+ metadata: {}
127
+ post_install_message:
128
+ rdoc_options: []
129
+ require_paths:
130
+ - lib
131
+ required_ruby_version: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
136
+ required_rubygems_version: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ requirements: []
142
+ rubyforge_project:
143
+ rubygems_version: 2.6.4
144
+ signing_key:
145
+ specification_version: 4
146
+ summary: A simple Plugin CMS for rails, including built-in in-page-editing option.
147
+ test_files: []