phcpress 56.4.0 → 57.0.0
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/Rakefile +4 -18
- data/app/assets/config/phcpress_manifest.js +2 -2
- data/app/controllers/phcpress/application_controller.rb +6 -6
- data/app/controllers/phcpress/article/categories_controller.rb +1 -1
- data/app/controllers/phcpress/article/posts_controller.rb +1 -1
- data/app/models/phcpress/article/category.rb +18 -18
- data/app/models/phcpress/article/post.rb +21 -21
- data/app/views/layouts/phcpress/application.html.erb +58 -65
- data/app/views/layouts/phcpress/components/backend/footer/_footer.html.erb +14 -6
- data/app/views/layouts/phcpress/components/backend/navigation/_top_menu.html.erb +41 -37
- data/app/views/layouts/phcpress/components/backend/sidebars/_side_menu.html.erb +921 -189
- data/app/views/layouts/phcpress/frontend.html.erb +2 -2
- data/app/views/phcpress/article/categories/_form.html.erb +16 -16
- data/app/views/phcpress/article/categories/edit.html.erb +21 -17
- data/app/views/phcpress/article/categories/index.html.erb +28 -27
- data/app/views/phcpress/article/categories/new.html.erb +21 -17
- data/app/views/phcpress/article/posts/_form.html.erb +12 -16
- data/app/views/phcpress/article/posts/edit.html.erb +10 -10
- data/app/views/phcpress/article/posts/index.html.erb +30 -27
- data/app/views/phcpress/article/posts/new.html.erb +10 -10
- data/app/views/phcpress/blog/articles/index.html.erb +1 -1
- data/config/routes.rb +16 -19
- data/db/migrate/20170509002355_create_phcpress_friendly_id_slugs.rb +18 -0
- data/db/migrate/20170517064030_create_phcpress_post_versions.rb +17 -0
- data/db/migrate/20170517064427_create_phcpress_category_versions.rb +17 -0
- data/db/migrate/20190315010932_create_phcpress_article_posts.rb +17 -0
- data/db/migrate/20190315040834_create_phcpress_article_categories.rb +14 -0
- data/db/migrate/20190315173237_create_join_table_categories_posts.rb +8 -0
- data/lib/phcpress/engine.rb +30 -56
- data/lib/phcpress/version.rb +1 -1
- data/lib/phcpress.rb +1 -0
- metadata +67 -390
- data/app/assets/javascripts/phcpress/application.js +0 -2
- data/app/assets/stylesheets/phcpress/application.scss +0 -2
data/lib/phcpress/engine.rb
CHANGED
@@ -1,69 +1,43 @@
|
|
1
1
|
module Phcpress
|
2
|
-
|
2
|
+
class Engine < ::Rails::Engine
|
3
3
|
|
4
|
-
#
|
5
|
-
require
|
6
|
-
require
|
7
|
-
require
|
8
|
-
require 'phctheme4'
|
9
|
-
require 'phctheme5'
|
10
|
-
require 'phctheme6'
|
11
|
-
require 'phctheme7'
|
4
|
+
# Load Main Dependencies
|
5
|
+
require "jbuilder"
|
6
|
+
require "paper_trail"
|
7
|
+
require "friendly_id"
|
12
8
|
|
13
|
-
#
|
14
|
-
require
|
15
|
-
require
|
16
|
-
require 'phcadmin3'
|
17
|
-
require 'phcadmin4'
|
18
|
-
require 'phcadmin5'
|
19
|
-
require 'phcadmin6'
|
20
|
-
require 'phcadmin7'
|
9
|
+
# Load Theme Dependencies
|
10
|
+
require "phcthemes_admin_panel_pack"
|
11
|
+
require "phcthemes_web_theme_pack"
|
21
12
|
|
22
|
-
#
|
23
|
-
require
|
24
|
-
require
|
25
|
-
require
|
26
|
-
require
|
13
|
+
# Load Helper Dependencies
|
14
|
+
require "phcdevworks_core"
|
15
|
+
require "phcdevworks_active_menus"
|
16
|
+
require "phcdevworks_notifications"
|
17
|
+
require "phcdevworks_titleseo"
|
27
18
|
|
28
|
-
#
|
29
|
-
require
|
30
|
-
require
|
31
|
-
|
32
|
-
# Upload Dependencies
|
33
|
-
require 'aws-sdk-s3'
|
34
|
-
require 'google-cloud-storage'
|
35
|
-
require 'mini_magick'
|
19
|
+
# Load Upload Dependencies
|
20
|
+
require "aws-sdk-s3"
|
21
|
+
require "google-cloud-storage"
|
22
|
+
require "mini_magick"
|
36
23
|
|
37
|
-
#
|
38
|
-
require
|
39
|
-
require
|
24
|
+
# Frontend Dependencies
|
25
|
+
require "wicked"
|
26
|
+
require "gravtastic"
|
27
|
+
require "friendly_id"
|
40
28
|
|
41
|
-
#
|
42
|
-
require
|
29
|
+
# Mailer Dependencies
|
30
|
+
require "mail_form"
|
43
31
|
|
44
|
-
#
|
45
|
-
|
32
|
+
# Engine Namespace
|
33
|
+
isolate_namespace Phcpress
|
46
34
|
|
47
|
-
|
35
|
+
# Rspec Generators
|
48
36
|
config.generators do |g|
|
49
|
-
g.test_framework :rspec
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
-
Phcaccounts::ApplicationController.helper(ApplicationHelper)
|
63
|
-
Phccorehelpers::ApplicationController.helper(ApplicationHelper)
|
64
|
-
Phcmenus::ApplicationController.helper(ApplicationHelper)
|
65
|
-
Phcnotifi::ApplicationController.helper(ApplicationHelper)
|
66
|
-
Phctitleseo::ApplicationController.helper(ApplicationHelper)
|
37
|
+
g.test_framework :rspec
|
38
|
+
g.fixture_replacement :factory_bot
|
39
|
+
g.factory_bot dir: 'spec/factories'
|
40
|
+
g.factory_bot suffix: "factory"
|
67
41
|
end
|
68
42
|
|
69
43
|
end
|
data/lib/phcpress/version.rb
CHANGED
data/lib/phcpress.rb
CHANGED