phcdevworks_core_modules 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +28 -0
  4. data/Rakefile +32 -0
  5. data/app/assets/config/phcdevworks_core_modules_manifest.js +2 -0
  6. data/app/assets/javascripts/phcdevworks_core_modules/application.js +2 -0
  7. data/app/assets/stylesheets/phcdevworks_core_modules/application.scss +2 -0
  8. data/app/controllers/phcdevworks_core_modules/application_controller.rb +13 -0
  9. data/app/controllers/phcdevworks_core_modules/modules/categories_controller.rb +81 -0
  10. data/app/helpers/phcdevworks_core_modules/application_helper.rb +4 -0
  11. data/app/helpers/phcdevworks_core_modules/modules/categories_helper.rb +4 -0
  12. data/app/jobs/phcdevworks_core_modules/application_job.rb +4 -0
  13. data/app/mailers/phcdevworks_core_modules/application_mailer.rb +6 -0
  14. data/app/models/phcdevworks_core_modules/application_record.rb +5 -0
  15. data/app/models/phcdevworks_core_modules/core_category_versions.rb +5 -0
  16. data/app/models/phcdevworks_core_modules/modules.rb +7 -0
  17. data/app/models/phcdevworks_core_modules/modules/category.rb +27 -0
  18. data/app/views/layouts/phcdevworks_core_modules/application.html.erb +136 -0
  19. data/app/views/layouts/phcdevworks_core_modules/components/backend/footer/_footer.html.erb +16 -0
  20. data/app/views/layouts/phcdevworks_core_modules/components/backend/navigation/_top_menu.html.erb +40 -0
  21. data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb +291 -0
  22. data/app/views/phcdevworks_core_modules/modules/categories/_form.html.erb +22 -0
  23. data/app/views/phcdevworks_core_modules/modules/categories/edit.html.erb +47 -0
  24. data/app/views/phcdevworks_core_modules/modules/categories/index.html.erb +80 -0
  25. data/app/views/phcdevworks_core_modules/modules/categories/new.html.erb +47 -0
  26. data/app/views/phcdevworks_core_modules/modules/categories/show.html.erb +9 -0
  27. data/config/routes.rb +11 -0
  28. data/db/migrate/20170517064427_create_phcdevworks_core_category_versions.rb +17 -0
  29. data/db/migrate/20200629113153_create_phcdevworks_core_modules_modules_categories.rb +15 -0
  30. data/lib/phcdevworks_core_modules.rb +5 -0
  31. data/lib/phcdevworks_core_modules/engine.rb +36 -0
  32. data/lib/phcdevworks_core_modules/version.rb +3 -0
  33. data/lib/tasks/phcdevworks_core_modules_tasks.rake +4 -0
  34. metadata +319 -0
@@ -0,0 +1,9 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Category name:</strong>
5
+ <%= @modules_category.category_name %>
6
+ </p>
7
+
8
+ <%= link_to 'Edit', edit_modules_category_path(@modules_category) %> |
9
+ <%= link_to 'Back', modules_categories_path %>
@@ -0,0 +1,11 @@
1
+ PhcdevworksCoreModules::Engine.routes.draw do
2
+
3
+ # Core Module Routes
4
+ namespace :modules do
5
+ resources :categories
6
+ end
7
+
8
+ # Mount Routes
9
+ mount PhcdevworksAccounts::Engine, :at => '/'
10
+
11
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcdevworksCoreCategoryVersions < ActiveRecord::Migration[6.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcdevworks_core_category_versions do |t|
6
+ t.string :item_type, {:null=>false}
7
+ t.integer :item_id, null: false
8
+ t.string :event, null: false
9
+ t.string :whodunnit
10
+ t.text :object, limit: TEXT_BYTES
11
+ t.datetime :created_at
12
+ end
13
+
14
+ add_index :phcdevworks_core_category_versions, %i(item_type item_id), :name => 'core_category_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,15 @@
1
+ class CreatePhcdevworksCoreModulesModulesCategories < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :phcdevworks_core_modules_modules_categories do |t|
4
+
5
+ t.string :category_name
6
+
7
+ t.string :slug
8
+ t.string :user_id
9
+ t.string :org_id
10
+
11
+ t.timestamps
12
+
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,5 @@
1
+ require "phcdevworks_core_modules/engine"
2
+
3
+ module PhcdevworksCoreModules
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,36 @@
1
+ module PhcdevworksCoreModules
2
+ class Engine < ::Rails::Engine
3
+
4
+ # Load Main Dependencies
5
+ require "jbuilder"
6
+ require "paper_trail"
7
+ require "friendly_id"
8
+
9
+ # Load Theme Dependencies
10
+ require "phcthemes_admin_panel_pack"
11
+ require "phcthemes_web_theme_pack"
12
+
13
+ # Load Helper Dependencies
14
+ require "phcdevworks_core"
15
+ require "phcdevworks_active_menus"
16
+ require "phcdevworks_notifications"
17
+ require "phcdevworks_titleseo"
18
+
19
+ # Load Upload Dependencies
20
+ require "aws-sdk-s3"
21
+ require "google-cloud-storage"
22
+ require "mini_magick"
23
+
24
+ # Frontend Dependencies
25
+ require "wicked"
26
+ require "gravtastic"
27
+ require "friendly_id"
28
+
29
+ # Load User Accounts
30
+ require "phcdevworks_accounts"
31
+
32
+ # Engine Namespace
33
+ isolate_namespace PhcdevworksCoreModules
34
+
35
+ end
36
+ end
@@ -0,0 +1,3 @@
1
+ module PhcdevworksCoreModules
2
+ VERSION = '0.1.0'
3
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :phcdevworks_core_modules do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,319 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: phcdevworks_core_modules
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - PHCDevworks
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-06-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '6.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 6.0.3.2
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '6.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 6.0.3.2
33
+ - !ruby/object:Gem::Dependency
34
+ name: jbuilder
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2.10'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.10'
47
+ - !ruby/object:Gem::Dependency
48
+ name: paper_trail
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '10.3'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '10.3'
61
+ - !ruby/object:Gem::Dependency
62
+ name: phcthemes_admin_panel_pack
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '1.10'
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '1.10'
75
+ - !ruby/object:Gem::Dependency
76
+ name: phcthemes_web_theme_pack
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '1.10'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '1.10'
89
+ - !ruby/object:Gem::Dependency
90
+ name: phcdevworks_active_menus
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.5'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '1.5'
103
+ - !ruby/object:Gem::Dependency
104
+ name: phcdevworks_core
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '1.5'
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '1.5'
117
+ - !ruby/object:Gem::Dependency
118
+ name: phcdevworks_notifications
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '1.5'
124
+ type: :runtime
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: '1.5'
131
+ - !ruby/object:Gem::Dependency
132
+ name: phcdevworks_titleseo
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: '2.4'
138
+ type: :runtime
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - "~>"
143
+ - !ruby/object:Gem::Version
144
+ version: '2.4'
145
+ - !ruby/object:Gem::Dependency
146
+ name: wicked
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: '1.3'
152
+ type: :runtime
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - "~>"
157
+ - !ruby/object:Gem::Version
158
+ version: '1.3'
159
+ - !ruby/object:Gem::Dependency
160
+ name: friendly_id
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: '5.3'
166
+ type: :runtime
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: '5.3'
173
+ - !ruby/object:Gem::Dependency
174
+ name: gravtastic
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - "~>"
178
+ - !ruby/object:Gem::Version
179
+ version: '3.2'
180
+ type: :runtime
181
+ prerelease: false
182
+ version_requirements: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - "~>"
185
+ - !ruby/object:Gem::Version
186
+ version: '3.2'
187
+ - !ruby/object:Gem::Dependency
188
+ name: aws-sdk-s3
189
+ requirement: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - "~>"
192
+ - !ruby/object:Gem::Version
193
+ version: '1.67'
194
+ type: :runtime
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - "~>"
199
+ - !ruby/object:Gem::Version
200
+ version: '1.67'
201
+ - !ruby/object:Gem::Dependency
202
+ name: google-cloud-storage
203
+ requirement: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - "~>"
206
+ - !ruby/object:Gem::Version
207
+ version: '1.26'
208
+ type: :runtime
209
+ prerelease: false
210
+ version_requirements: !ruby/object:Gem::Requirement
211
+ requirements:
212
+ - - "~>"
213
+ - !ruby/object:Gem::Version
214
+ version: '1.26'
215
+ - !ruby/object:Gem::Dependency
216
+ name: mini_magick
217
+ requirement: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - "~>"
220
+ - !ruby/object:Gem::Version
221
+ version: '4.10'
222
+ type: :runtime
223
+ prerelease: false
224
+ version_requirements: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - "~>"
227
+ - !ruby/object:Gem::Version
228
+ version: '4.10'
229
+ - !ruby/object:Gem::Dependency
230
+ name: phcdevworks_accounts
231
+ requirement: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - "~>"
234
+ - !ruby/object:Gem::Version
235
+ version: '1.11'
236
+ type: :runtime
237
+ prerelease: false
238
+ version_requirements: !ruby/object:Gem::Requirement
239
+ requirements:
240
+ - - "~>"
241
+ - !ruby/object:Gem::Version
242
+ version: '1.11'
243
+ - !ruby/object:Gem::Dependency
244
+ name: sqlite3
245
+ requirement: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - "~>"
248
+ - !ruby/object:Gem::Version
249
+ version: '1.4'
250
+ type: :development
251
+ prerelease: false
252
+ version_requirements: !ruby/object:Gem::Requirement
253
+ requirements:
254
+ - - "~>"
255
+ - !ruby/object:Gem::Version
256
+ version: '1.4'
257
+ description: ''
258
+ email:
259
+ - info@phcdevworks.com
260
+ executables: []
261
+ extensions: []
262
+ extra_rdoc_files: []
263
+ files:
264
+ - MIT-LICENSE
265
+ - README.md
266
+ - Rakefile
267
+ - app/assets/config/phcdevworks_core_modules_manifest.js
268
+ - app/assets/javascripts/phcdevworks_core_modules/application.js
269
+ - app/assets/stylesheets/phcdevworks_core_modules/application.scss
270
+ - app/controllers/phcdevworks_core_modules/application_controller.rb
271
+ - app/controllers/phcdevworks_core_modules/modules/categories_controller.rb
272
+ - app/helpers/phcdevworks_core_modules/application_helper.rb
273
+ - app/helpers/phcdevworks_core_modules/modules/categories_helper.rb
274
+ - app/jobs/phcdevworks_core_modules/application_job.rb
275
+ - app/mailers/phcdevworks_core_modules/application_mailer.rb
276
+ - app/models/phcdevworks_core_modules/application_record.rb
277
+ - app/models/phcdevworks_core_modules/core_category_versions.rb
278
+ - app/models/phcdevworks_core_modules/modules.rb
279
+ - app/models/phcdevworks_core_modules/modules/category.rb
280
+ - app/views/layouts/phcdevworks_core_modules/application.html.erb
281
+ - app/views/layouts/phcdevworks_core_modules/components/backend/footer/_footer.html.erb
282
+ - app/views/layouts/phcdevworks_core_modules/components/backend/navigation/_top_menu.html.erb
283
+ - app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb
284
+ - app/views/phcdevworks_core_modules/modules/categories/_form.html.erb
285
+ - app/views/phcdevworks_core_modules/modules/categories/edit.html.erb
286
+ - app/views/phcdevworks_core_modules/modules/categories/index.html.erb
287
+ - app/views/phcdevworks_core_modules/modules/categories/new.html.erb
288
+ - app/views/phcdevworks_core_modules/modules/categories/show.html.erb
289
+ - config/routes.rb
290
+ - db/migrate/20170517064427_create_phcdevworks_core_category_versions.rb
291
+ - db/migrate/20200629113153_create_phcdevworks_core_modules_modules_categories.rb
292
+ - lib/phcdevworks_core_modules.rb
293
+ - lib/phcdevworks_core_modules/engine.rb
294
+ - lib/phcdevworks_core_modules/version.rb
295
+ - lib/tasks/phcdevworks_core_modules_tasks.rake
296
+ homepage: https://phcdevworks.com/
297
+ licenses:
298
+ - MIT
299
+ metadata: {}
300
+ post_install_message:
301
+ rdoc_options: []
302
+ require_paths:
303
+ - lib
304
+ required_ruby_version: !ruby/object:Gem::Requirement
305
+ requirements:
306
+ - - ">="
307
+ - !ruby/object:Gem::Version
308
+ version: '0'
309
+ required_rubygems_version: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - ">="
312
+ - !ruby/object:Gem::Version
313
+ version: '0'
314
+ requirements: []
315
+ rubygems_version: 3.0.3
316
+ signing_key:
317
+ specification_version: 4
318
+ summary: Rails 6 - Engine - Core - Modules
319
+ test_files: []