phccodesnipperpro 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +0 -0
- data/Rakefile +22 -0
- data/app/assets/config/phccodesnipperpro_manifest.js +2 -0
- data/app/assets/javascripts/phccodesnipperpro/application.js +2 -0
- data/app/assets/stylesheets/phccodesnipperpro/application.scss +2 -0
- data/app/controllers/phccodesnipperpro/application_controller.rb +22 -0
- data/app/controllers/phccodesnipperpro/script/snippets_controller.rb +67 -0
- data/app/controllers/phccodesnipperpro/script/urls_controller.rb +76 -0
- data/app/helpers/phccodesnipperpro/application_helper.rb +4 -0
- data/app/helpers/phccodesnipperpro/script/snippets_helper.rb +4 -0
- data/app/helpers/phccodesnipperpro/script/urls_helper.rb +4 -0
- data/app/jobs/phccodesnipperpro/application_job.rb +4 -0
- data/app/mailers/phccodesnipperpro/application_mailer.rb +6 -0
- data/app/models/phccodesnipperpro/application_record.rb +5 -0
- data/app/models/phccodesnipperpro/script/snippet.rb +30 -0
- data/app/models/phccodesnipperpro/script/url.rb +16 -0
- data/app/models/phccodesnipperpro/script.rb +7 -0
- data/app/views/layouts/phccodesnipperpro/application.html.erb +79 -0
- data/app/views/layouts/phccodesnipperpro/components/backend/footer/_footer.html.erb +11 -0
- data/app/views/layouts/phccodesnipperpro/components/backend/navigation/_top_menu.html.erb +37 -0
- data/app/views/layouts/phccodesnipperpro/components/backend/sidebars/_side_menu.html.erb +189 -0
- data/app/views/phccodesnipperpro/script/snippets/_form.html.erb +26 -0
- data/app/views/phccodesnipperpro/script/snippets/edit.html.erb +39 -0
- data/app/views/phccodesnipperpro/script/snippets/index.html.erb +68 -0
- data/app/views/phccodesnipperpro/script/snippets/new.html.erb +39 -0
- data/app/views/phccodesnipperpro/script/snippets/show.html.erb +71 -0
- data/app/views/phccodesnipperpro/script/urls/_form.html.erb +22 -0
- data/app/views/phccodesnipperpro/script/urls/edit.html.erb +39 -0
- data/app/views/phccodesnipperpro/script/urls/index.html.erb +66 -0
- data/app/views/phccodesnipperpro/script/urls/new.html.erb +39 -0
- data/app/views/phccodesnipperpro/script/urls/show.html.erb +71 -0
- data/config/initializers/friendly_id.rb +107 -0
- data/config/routes.rb +13 -0
- data/db/migrate/20190504104048_create_phccodesnipperpro_script_urls.rb +19 -0
- data/db/migrate/20190504104101_create_phccodesnipperpro_script_snippets.rb +19 -0
- data/lib/phccodesnipperpro/engine.rb +70 -0
- data/lib/phccodesnipperpro/version.rb +3 -0
- data/lib/phccodesnipperpro.rb +4 -0
- data/lib/tasks/phccodesnipperpro_tasks.rake +4 -0
- metadata +697 -0
@@ -0,0 +1,70 @@
|
|
1
|
+
module Phccodesnipperpro
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
|
4
|
+
# PHCTheme Dependencies
|
5
|
+
require 'phctheme1'
|
6
|
+
require 'phctheme2'
|
7
|
+
require 'phctheme3'
|
8
|
+
require 'phctheme4'
|
9
|
+
require 'phctheme5'
|
10
|
+
require 'phctheme6'
|
11
|
+
require 'phctheme7'
|
12
|
+
|
13
|
+
# PHCAdmin Dependencies
|
14
|
+
require 'phcadmin1'
|
15
|
+
require 'phcadmin2'
|
16
|
+
require 'phcadmin3'
|
17
|
+
require 'phcadmin4'
|
18
|
+
require 'phcadmin5'
|
19
|
+
require 'phcadmin6'
|
20
|
+
require 'phcadmin7'
|
21
|
+
|
22
|
+
# PHCHelper Dependencies
|
23
|
+
require 'phccorehelpers'
|
24
|
+
require 'phcmenus'
|
25
|
+
require 'phcnotifi'
|
26
|
+
require 'phctitleseo'
|
27
|
+
|
28
|
+
# Frontend Dependencies
|
29
|
+
require 'gravtastic'
|
30
|
+
require 'friendly_id'
|
31
|
+
|
32
|
+
# Upload Dependencies
|
33
|
+
require 'aws-sdk-s3'
|
34
|
+
require 'google-cloud-storage'
|
35
|
+
require 'mini_magick'
|
36
|
+
|
37
|
+
# Database Dependencies
|
38
|
+
require 'paper_trail'
|
39
|
+
require 'pg'
|
40
|
+
|
41
|
+
# Payment Dependencies
|
42
|
+
require 'phcaccountspro'
|
43
|
+
|
44
|
+
# Isolate Namespace
|
45
|
+
isolate_namespace Phccodesnipperpro
|
46
|
+
|
47
|
+
# Testing Generator
|
48
|
+
config.generators do |g|
|
49
|
+
g.test_framework :rspec,
|
50
|
+
fixtures: true,
|
51
|
+
view_specs: false,
|
52
|
+
helper_specs: false,
|
53
|
+
routing_specs: false,
|
54
|
+
controller_specs: true,
|
55
|
+
request_specs: false
|
56
|
+
g.fixture_replacement :factory_bot,
|
57
|
+
dir: "spec/factories"
|
58
|
+
end
|
59
|
+
|
60
|
+
# Load Requried Helper Files
|
61
|
+
config.to_prepare do
|
62
|
+
Phcaccountspro::ApplicationController.helper(ApplicationHelper)
|
63
|
+
Phccorehelpers::ApplicationController.helper(ApplicationHelper)
|
64
|
+
Phcmenus::ApplicationController.helper(ApplicationHelper)
|
65
|
+
Phcnotifi::ApplicationController.helper(ApplicationHelper)
|
66
|
+
Phctitleseo::ApplicationController.helper(ApplicationHelper)
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
70
|
+
end
|