phcpresspro 86.4.0 → 87.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +31 -32
- data/Rakefile +4 -18
- data/app/assets/config/phcpresspro_manifest.js +2 -2
- data/app/controllers/phcpresspro/application_controller.rb +4 -5
- data/app/controllers/phcpresspro/article/categories_controller.rb +1 -1
- data/app/controllers/phcpresspro/article/posts_controller.rb +1 -1
- data/app/models/phcpresspro/article/category.rb +18 -18
- data/app/models/phcpresspro/article/post.rb +21 -21
- data/app/views/layouts/phcpresspro/application.html.erb +58 -65
- data/app/views/layouts/phcpresspro/components/backend/footer/_footer.html.erb +14 -6
- data/app/views/layouts/phcpresspro/components/backend/navigation/_top_menu.html.erb +41 -37
- data/app/views/layouts/phcpresspro/components/backend/sidebars/_side_menu.html.erb +921 -189
- data/app/views/layouts/phcpresspro/frontend.html.erb +2 -2
- data/app/views/phcpresspro/article/categories/_form.html.erb +16 -16
- data/app/views/phcpresspro/article/categories/edit.html.erb +21 -17
- data/app/views/phcpresspro/article/categories/index.html.erb +35 -34
- data/app/views/phcpresspro/article/categories/new.html.erb +21 -17
- data/app/views/phcpresspro/article/posts/_form.html.erb +11 -16
- data/app/views/phcpresspro/article/posts/edit.html.erb +10 -10
- data/app/views/phcpresspro/article/posts/index.html.erb +28 -27
- data/app/views/phcpresspro/article/posts/new.html.erb +10 -10
- data/app/views/phcpresspro/blog/articles/index.html.erb +1 -1
- data/config/routes.rb +16 -19
- data/db/migrate/20170509002355_create_phcpresspro_friendly_id_slugs.rb +18 -0
- data/db/migrate/20170517064030_create_phcpresspro_post_versions.rb +17 -0
- data/db/migrate/20170517064427_create_phcpresspro_category_versions.rb +17 -0
- data/db/migrate/20190315010932_create_phcpresspro_article_posts.rb +19 -0
- data/db/migrate/20190315040834_create_phcpresspro_article_categories.rb +16 -0
- data/db/migrate/20190315173237_create_join_table_categories_posts.rb +8 -0
- data/lib/phcpresspro/engine.rb +42 -68
- data/lib/phcpresspro/version.rb +1 -1
- data/lib/phcpresspro.rb +2 -0
- metadata +70 -389
- data/app/assets/javascripts/phcpresspro/application.js +0 -2
- data/app/assets/stylesheets/phcpresspro/application.scss +0 -2
data/lib/phcpresspro/engine.rb
CHANGED
@@ -1,70 +1,44 @@
|
|
1
1
|
module Phcpresspro
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
# Isolate Namespace
|
45
|
-
isolate_namespace Phcpresspro
|
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
|
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
|
+
# Mailer Dependencies
|
30
|
+
require "mail_form"
|
31
|
+
|
32
|
+
# Engine Namespace
|
33
|
+
isolate_namespace Phcpresspro
|
34
|
+
|
35
|
+
# Rspec Generators
|
36
|
+
config.generators do |g|
|
37
|
+
g.test_framework :rspec
|
38
|
+
g.fixture_replacement :factory_bot
|
39
|
+
g.factory_bot dir: 'spec/factories'
|
40
|
+
g.factory_bot suffix: "factory"
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
70
44
|
end
|
data/lib/phcpresspro/version.rb
CHANGED