phcscriptcdnpro 78.4.0 → 79.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/Rakefile +4 -18
  4. data/app/assets/config/phcscriptcdnpro_manifest.js +2 -2
  5. data/app/controllers/phcscriptcdnpro/application_controller.rb +4 -5
  6. data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +1 -1
  7. data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +1 -1
  8. data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +1 -1
  9. data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +1 -1
  10. data/app/controllers/phcscriptcdnpro/script/urls_controller.rb +2 -2
  11. data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +1 -1
  12. data/app/models/phcscriptcdnpro/script/url.rb +16 -16
  13. data/app/views/layouts/phcscriptcdnpro/application.html.erb +58 -64
  14. data/app/views/layouts/phcscriptcdnpro/components/backend/footer/_footer.html.erb +14 -6
  15. data/app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_menu.html.erb +41 -37
  16. data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_side_menu.html.erb +921 -189
  17. data/app/views/phcscriptcdnpro/script/authors/_form.html.erb +15 -15
  18. data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +21 -17
  19. data/app/views/phcscriptcdnpro/script/authors/index.html.erb +26 -25
  20. data/app/views/phcscriptcdnpro/script/authors/new.html.erb +21 -17
  21. data/app/views/phcscriptcdnpro/script/authors/show.html.erb +15 -15
  22. data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +13 -13
  23. data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +21 -17
  24. data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +26 -25
  25. data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +21 -17
  26. data/app/views/phcscriptcdnpro/script/extensions/show.html.erb +15 -15
  27. data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +29 -29
  28. data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +21 -17
  29. data/app/views/phcscriptcdnpro/script/licences/index.html.erb +26 -25
  30. data/app/views/phcscriptcdnpro/script/licences/new.html.erb +21 -17
  31. data/app/views/phcscriptcdnpro/script/licences/show.html.erb +15 -15
  32. data/app/views/phcscriptcdnpro/script/listings/_form.html.erb +34 -34
  33. data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +21 -17
  34. data/app/views/phcscriptcdnpro/script/listings/index.html.erb +26 -25
  35. data/app/views/phcscriptcdnpro/script/listings/new.html.erb +21 -17
  36. data/app/views/phcscriptcdnpro/script/listings/show.html.erb +15 -15
  37. data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +19 -19
  38. data/app/views/phcscriptcdnpro/script/urls/edit.html.erb +21 -17
  39. data/app/views/phcscriptcdnpro/script/urls/index.html.erb +26 -25
  40. data/app/views/phcscriptcdnpro/script/urls/new.html.erb +21 -17
  41. data/app/views/phcscriptcdnpro/script/urls/show.html.erb +15 -15
  42. data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +10 -10
  43. data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +21 -17
  44. data/app/views/phcscriptcdnpro/script/versions/index.html.erb +26 -25
  45. data/app/views/phcscriptcdnpro/script/versions/new.html.erb +21 -17
  46. data/app/views/phcscriptcdnpro/script/versions/show.html.erb +15 -15
  47. data/config/routes.rb +18 -21
  48. data/db/migrate/20160821183652_create_phcscriptcdnpro_script_listings.rb +33 -0
  49. data/db/migrate/20160821183714_create_phcscriptcdnpro_script_authors.rb +22 -0
  50. data/db/migrate/20160821183735_create_phcscriptcdnpro_script_extensions.rb +20 -0
  51. data/db/migrate/20160821183805_create_phcscriptcdnpro_script_licences.rb +26 -0
  52. data/db/migrate/20160821183830_create_phcscriptcdnpro_script_urls.rb +24 -0
  53. data/db/migrate/20160821183946_create_phcscriptcdnpro_script_versions.rb +18 -0
  54. data/db/migrate/20170509002355_create_phcscriptcdnpro_friendly_id_slugs.rb +18 -0
  55. data/db/migrate/20170517064030_create_phcscriptcdnpro_extension_versions.rb +17 -0
  56. data/db/migrate/20170517064049_create_phcscriptcdnpro_listing_versions.rb +17 -0
  57. data/db/migrate/20170517064114_create_phcscriptcdnpro_scriptversion_versions.rb +17 -0
  58. data/db/migrate/20170517064150_create_phcscriptcdnpro_url_versions.rb +17 -0
  59. data/db/migrate/20170517064208_create_phcscriptcdnpro_author_versions.rb +17 -0
  60. data/db/migrate/20170517064427_create_phcscriptcdnpro_licence_versions.rb +17 -0
  61. data/lib/phcscriptcdnpro/engine.rb +30 -56
  62. data/lib/phcscriptcdnpro/version.rb +1 -1
  63. data/lib/phcscriptcdnpro.rb +2 -0
  64. metadata +73 -389
  65. data/app/assets/javascripts/phcscriptcdnpro/application.js +0 -2
  66. data/app/assets/stylesheets/phcscriptcdnpro/application.scss +0 -2
@@ -1,27 +1,27 @@
1
- <!-- Title System -->
1
+ <!-- -PHCDEV- Title Variables -->
2
2
  <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Script Version Details" %>
4
4
  <% phc_breadcrumb_one link_to "Script Index", phcscriptcdnpro.script_listings_path %>
5
5
  <% phc_breadcrumb_two link_to "Script Version Index", phcscriptcdnpro.script_versions_path %>
6
6
  <% phc_breadcrumb_three yield(:phc_title_tagline) %>
7
- <!-- Title System -->
7
+ <!-- -PHCDEV- Title Variables -->
8
8
 
9
- <!-- Page Bradcrumbs -->
10
- <ol class="breadcrumb pull-right">
9
+ <!-- -PHCDEV- Bradcrumbs -->
10
+ <ol class="breadcrumb float-xl-end">
11
11
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
12
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
13
13
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
14
14
  </ol>
15
- <!-- Page Bradcrumbs -->
15
+ <!-- -PHCDEV- Bradcrumbs -->
16
16
 
17
- <!-- Page Header -->
17
+ <!-- -PHCDEV- Header -->
18
18
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
- <!-- Page Header -->
19
+ <!-- -PHCDEV- Bradcrumbs -->
20
20
 
21
- <!-- Page Content -->
21
+ <!-- -PHCDEV- Panel -->
22
22
  <div class="row">
23
23
 
24
- <!-- Button Panel -->
24
+ <!-- -PHCDEV- Button Panel -->
25
25
  <div class="col-lg-4">
26
26
 
27
27
  <div class="panel panel-inverse">
@@ -31,19 +31,19 @@
31
31
  </div>
32
32
  <div class="panel-body">
33
33
  <div class="btn-group d-flex" role="group">
34
- <%= link_to 'Update', phcscriptcdnpro.edit_script_version_path, class: "btn btn-primary" %>
35
- <%= link_to 'Remove', phcscriptcdnpro.script_version_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
34
+ <%= link_to "Update", phcscriptcdnpro.edit_script_version_path, class: "btn btn-primary" %>
35
+ <%= link_to "Remove", phcscriptcdnpro.script_version_path, method: :delete, data: { confirm: "Are you sure?" }, class: "btn btn-danger" %>
36
36
  </div>
37
37
  </div>
38
38
  </div>
39
39
 
40
40
  </div>
41
- <!-- Button Panel -->
41
+ <!-- -PHCDEV- Button Panel -->
42
42
 
43
- <!-- Main Panel -->
43
+ <!-- -PHCDEV- Main Panel -->
44
44
  <div class="col-lg-8">
45
45
  </div>
46
- <!-- Main Panel -->
46
+ <!-- -PHCDEV- Main Panel -->
47
47
 
48
48
  </div>
49
- <!-- Page Content -->
49
+ <!-- -PHCDEV- Panel -->
data/config/routes.rb CHANGED
@@ -1,26 +1,23 @@
1
1
  Phcscriptcdnpro::Engine.routes.draw do
2
2
 
3
- # API Routes
4
- namespace :api, :path => "", :constraints => {:subdomain => "api"} do
5
- namespace :v1 do
6
- resources :mains, defaults: {format: 'json'}
7
- resources :informations, defaults: {format: 'json'}
8
- resources :versions, defaults: {format: 'json'}
9
- end
10
- end
3
+ # API Routes
4
+ namespace :api, :path => "", :constraints => {:subdomain => "api"} do
5
+ namespace :v1 do
6
+ resources :mains, defaults: {format: "json"}
7
+ resources :informations, defaults: {format: "json"}
8
+ resources :versions, defaults: {format: "json"}
9
+ end
10
+ end
11
11
 
12
- # Script CDN Routes
13
- namespace :script do
14
- resources :listings, class_name: 'Phcscriptcdnpro::Script::Listing' do
15
- resources :urls, class_name: 'Phcscriptcdnpro::Script::Url'
16
- end
17
- resources :authors, class_name: 'Phcscriptcdnpro::Script::Author'
18
- resources :extensions, class_name: 'Phcscriptcdnpro::Script::Extension'
19
- resources :versions, class_name: 'Phcscriptcdnpro::Script::Version'
20
- resources :licences, class_name: 'Phcscriptcdnpro::Script::Licence'
21
- end
22
-
23
- # PHCAccounts Routes
24
- mount Phcaccountspro::Engine, :at => '/'
12
+ # Script CDN Routes
13
+ namespace :script do
14
+ resources :listings, class_name: "Phcscriptcdnpro::Script::Listing" do
15
+ resources :urls, class_name: "Phcscriptcdnpro::Script::Url"
16
+ end
17
+ resources :authors, class_name: "Phcscriptcdnpro::Script::Author"
18
+ resources :extensions, class_name: "Phcscriptcdnpro::Script::Extension"
19
+ resources :versions, class_name: "Phcscriptcdnpro::Script::Version"
20
+ resources :licences, class_name: "Phcscriptcdnpro::Script::Licence"
21
+ end
25
22
 
26
23
  end
@@ -0,0 +1,33 @@
1
+ class CreatePhcscriptcdnproScriptListings < ActiveRecord::Migration[7.0]
2
+ def change
3
+
4
+ create_table :phcscriptcdnpro_script_listings do |t|
5
+
6
+ t.string :script_title
7
+ t.text :script_description
8
+ t.string :script_source
9
+
10
+ t.string :script_website
11
+ t.string :script_github
12
+
13
+ t.date :script_initial_release
14
+ t.date :script_lastest_release
15
+ t.date :script_beta_release
16
+ t.date :script_lastest_release_cdn
17
+
18
+ t.string :script_status
19
+
20
+ t.string :slug
21
+
22
+ t.string :user_id
23
+ t.string :org_id
24
+
25
+ t.references :licence
26
+ t.references :author
27
+
28
+ t.timestamps
29
+
30
+ end
31
+
32
+ end
33
+ end
@@ -0,0 +1,22 @@
1
+ class CreatePhcscriptcdnproScriptAuthors < ActiveRecord::Migration[7.0]
2
+ def change
3
+
4
+ create_table :phcscriptcdnpro_script_authors do |t|
5
+
6
+ t.string :author_first_name
7
+ t.string :author_last_name
8
+
9
+ t.string :author_website
10
+ t.string :author_github
11
+
12
+ t.string :slug
13
+
14
+ t.string :user_id
15
+ t.string :org_id
16
+
17
+ t.timestamps
18
+
19
+ end
20
+
21
+ end
22
+ end
@@ -0,0 +1,20 @@
1
+ class CreatePhcscriptcdnproScriptExtensions < ActiveRecord::Migration[7.0]
2
+ def change
3
+
4
+ create_table :phcscriptcdnpro_script_extensions do |t|
5
+
6
+ t.string :script_extension_name
7
+ t.text :script_extension_description
8
+ t.string :script_extension
9
+
10
+ t.string :slug
11
+
12
+ t.string :user_id
13
+ t.string :org_id
14
+
15
+ t.timestamps
16
+
17
+ end
18
+
19
+ end
20
+ end
@@ -0,0 +1,26 @@
1
+ class CreatePhcscriptcdnproScriptLicences < ActiveRecord::Migration[7.0]
2
+ def change
3
+
4
+ create_table :phcscriptcdnpro_script_licences do |t|
5
+
6
+ t.string :licence_name
7
+ t.text :licence_description
8
+
9
+ t.string :licence_compatible_gpl
10
+ t.string :licence_approval_fsf
11
+ t.string :licence_approval_osi
12
+ t.string :licence_approval_copyfree
13
+ t.string :licence_approval_debian
14
+ t.string :licence_approval_fedora
15
+
16
+ t.string :slug
17
+
18
+ t.string :user_id
19
+ t.string :org_id
20
+
21
+ t.timestamps
22
+
23
+ end
24
+
25
+ end
26
+ end
@@ -0,0 +1,24 @@
1
+ class CreatePhcscriptcdnproScriptUrls < ActiveRecord::Migration[7.0]
2
+ def change
3
+
4
+ create_table :phcscriptcdnpro_script_urls do |t|
5
+
6
+ t.string :script_url
7
+ t.date :script_url_release
8
+ t.date :script_url_cdn_update
9
+
10
+ t.string :slug
11
+
12
+ t.string :user_id
13
+ t.string :org_id
14
+
15
+ t.references :listing
16
+ t.references :extension
17
+ t.references :version
18
+
19
+ t.timestamps
20
+
21
+ end
22
+
23
+ end
24
+ end
@@ -0,0 +1,18 @@
1
+ class CreatePhcscriptcdnproScriptVersions < ActiveRecord::Migration[7.0]
2
+ def change
3
+
4
+ create_table :phcscriptcdnpro_script_versions do |t|
5
+
6
+ t.string :script_version_number
7
+
8
+ t.string :slug
9
+
10
+ t.string :user_id
11
+ t.string :org_id
12
+
13
+ t.timestamps
14
+
15
+ end
16
+
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ class CreatePhcscriptcdnproFriendlyIdSlugs < ActiveRecord::Migration[7.0]
2
+ def change
3
+
4
+ create_table :phcscriptcdnpro_friendly_id_slugs do |t|
5
+ t.string :slug, :null => false
6
+ t.integer :sluggable_id, :null => false
7
+ t.string :sluggable_type, :limit => 50
8
+ t.string :scope
9
+ t.datetime :created_at
10
+ end
11
+
12
+ add_index :phcscriptcdnpro_friendly_id_slugs, :sluggable_id
13
+ add_index :phcscriptcdnpro_friendly_id_slugs, [:slug, :sluggable_type], name: 'scriptcdnpro_fri_id_slugable_type', length: { slug: 140, sluggable_type: 50 }
14
+ add_index :phcscriptcdnpro_friendly_id_slugs, [:slug, :sluggable_type, :scope], name: 'scriptcdnpro_fri_id_slugable_scope_type', length: { slug: 70, sluggable_type: 50, scope: 70 }, unique: true
15
+ add_index :phcscriptcdnpro_friendly_id_slugs, :sluggable_type
16
+
17
+ end
18
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnproExtensionVersions < ActiveRecord::Migration[7.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdnpro_extension_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 :phcscriptcdnpro_extension_versions, %i(item_type item_id), :name => 'scriptcdnpro_ext_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnproListingVersions < ActiveRecord::Migration[7.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdnpro_listing_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 :phcscriptcdnpro_listing_versions, %i(item_type item_id), :name => 'scriptcdnpro_listing_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnproScriptversionVersions < ActiveRecord::Migration[7.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdnpro_scriptversion_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 :phcscriptcdnpro_scriptversion_versions, %i(item_type item_id), :name => 'scriptcdnpro_scriptversion_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnproUrlVersions < ActiveRecord::Migration[7.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdnpro_url_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 :phcscriptcdnpro_url_versions, %i(item_type item_id), :name => 'scriptcdnpro_url_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnproAuthorVersions < ActiveRecord::Migration[7.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdnpro_author_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 :phcscriptcdnpro_author_versions, %i(item_type item_id), :name => 'scriptcdnpro_author_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnproLicenceVersions < ActiveRecord::Migration[7.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdnpro_licence_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 :phcscriptcdnpro_licence_versions, %i(item_type item_id), :name => 'scriptcdnpro_licence_versions'
15
+
16
+ end
17
+ end
@@ -1,69 +1,43 @@
1
1
  module Phcscriptcdnpro
2
2
  class Engine < ::Rails::Engine
3
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'
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"
27
23
 
28
24
  # 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'
25
+ require "wicked"
26
+ require "gravtastic"
27
+ require "friendly_id"
36
28
 
37
- # Database Dependencies
38
- require 'paper_trail'
39
- require 'pg'
29
+ # Mailer Dependencies
30
+ require "mail_form"
40
31
 
41
- # Payment Dependencies
42
- require 'phcaccountspro'
43
-
44
- # Isolate Namespace
32
+ # Engine Namespace
45
33
  isolate_namespace Phcscriptcdnpro
46
34
 
47
- # Testing Generator
35
+ # Rspec Generators
48
36
  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)
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
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "78.4.0"
2
+ VERSION = "79.0.0"
3
3
  end
@@ -1,4 +1,6 @@
1
+ require "phcscriptcdnpro/version"
1
2
  require "phcscriptcdnpro/engine"
2
3
 
3
4
  module Phcscriptcdnpro
5
+ # Your code goes here...
4
6
  end