phcscriptcdn 54.2.0 → 55.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/Rakefile +4 -18
  4. data/app/assets/config/phcscriptcdn_manifest.js +2 -2
  5. data/app/controllers/phcscriptcdn/application_controller.rb +6 -6
  6. data/app/controllers/phcscriptcdn/script/authors_controller.rb +1 -1
  7. data/app/controllers/phcscriptcdn/script/extensions_controller.rb +1 -1
  8. data/app/controllers/phcscriptcdn/script/licences_controller.rb +1 -1
  9. data/app/controllers/phcscriptcdn/script/listings_controller.rb +1 -1
  10. data/app/controllers/phcscriptcdn/script/urls_controller.rb +1 -1
  11. data/app/controllers/phcscriptcdn/script/versions_controller.rb +1 -1
  12. data/app/views/layouts/phcscriptcdn/application.html.erb +58 -64
  13. data/app/views/layouts/phcscriptcdn/components/backend/footer/_footer.html.erb +14 -6
  14. data/app/views/layouts/phcscriptcdn/components/backend/navigation/_top_menu.html.erb +41 -37
  15. data/app/views/layouts/phcscriptcdn/components/backend/sidebars/_side_menu.html.erb +921 -189
  16. data/app/views/phcscriptcdn/script/authors/_form.html.erb +15 -15
  17. data/app/views/phcscriptcdn/script/authors/edit.html.erb +21 -17
  18. data/app/views/phcscriptcdn/script/authors/index.html.erb +26 -25
  19. data/app/views/phcscriptcdn/script/authors/new.html.erb +21 -17
  20. data/app/views/phcscriptcdn/script/authors/show.html.erb +15 -15
  21. data/app/views/phcscriptcdn/script/extensions/_form.html.erb +13 -13
  22. data/app/views/phcscriptcdn/script/extensions/edit.html.erb +21 -17
  23. data/app/views/phcscriptcdn/script/extensions/index.html.erb +26 -25
  24. data/app/views/phcscriptcdn/script/extensions/new.html.erb +21 -17
  25. data/app/views/phcscriptcdn/script/extensions/show.html.erb +15 -15
  26. data/app/views/phcscriptcdn/script/licences/_form.html.erb +29 -29
  27. data/app/views/phcscriptcdn/script/licences/edit.html.erb +21 -17
  28. data/app/views/phcscriptcdn/script/licences/index.html.erb +26 -25
  29. data/app/views/phcscriptcdn/script/licences/new.html.erb +21 -17
  30. data/app/views/phcscriptcdn/script/licences/show.html.erb +15 -15
  31. data/app/views/phcscriptcdn/script/listings/_form.html.erb +34 -34
  32. data/app/views/phcscriptcdn/script/listings/edit.html.erb +21 -17
  33. data/app/views/phcscriptcdn/script/listings/index.html.erb +26 -25
  34. data/app/views/phcscriptcdn/script/listings/new.html.erb +21 -17
  35. data/app/views/phcscriptcdn/script/listings/show.html.erb +15 -15
  36. data/app/views/phcscriptcdn/script/urls/_form.html.erb +19 -19
  37. data/app/views/phcscriptcdn/script/urls/edit.html.erb +21 -17
  38. data/app/views/phcscriptcdn/script/urls/index.html.erb +26 -25
  39. data/app/views/phcscriptcdn/script/urls/new.html.erb +21 -17
  40. data/app/views/phcscriptcdn/script/urls/show.html.erb +15 -15
  41. data/app/views/phcscriptcdn/script/versions/_form.html.erb +9 -9
  42. data/app/views/phcscriptcdn/script/versions/edit.html.erb +21 -17
  43. data/app/views/phcscriptcdn/script/versions/index.html.erb +26 -25
  44. data/app/views/phcscriptcdn/script/versions/new.html.erb +21 -17
  45. data/app/views/phcscriptcdn/script/versions/show.html.erb +15 -15
  46. data/config/routes.rb +18 -21
  47. data/db/migrate/20160821183652_create_phcscriptcdn_script_listings.rb +31 -0
  48. data/db/migrate/20160821183714_create_phcscriptcdn_script_authors.rb +21 -0
  49. data/db/migrate/20160821183735_create_phcscriptcdn_script_extensions.rb +19 -0
  50. data/db/migrate/20160821183805_create_phcscriptcdn_script_licences.rb +25 -0
  51. data/db/migrate/20160821183830_create_phcscriptcdn_script_urls.rb +23 -0
  52. data/db/migrate/20160821183946_create_phcscriptcdn_script_versions.rb +17 -0
  53. data/db/migrate/20170509002355_create_phcscriptcdn_friendly_id_slugs.rb +18 -0
  54. data/db/migrate/20170517064030_create_phcscriptcdn_extension_versions.rb +17 -0
  55. data/db/migrate/20170517064049_create_phcscriptcdn_listing_versions.rb +17 -0
  56. data/db/migrate/20170517064114_create_phcscriptcdn_scriptversion_versions.rb +17 -0
  57. data/db/migrate/20170517064150_create_phcscriptcdn_url_versions.rb +17 -0
  58. data/db/migrate/20170517064208_create_phcscriptcdn_author_versions.rb +17 -0
  59. data/db/migrate/20170517064427_create_phcscriptcdn_licence_versions.rb +17 -0
  60. data/lib/phcscriptcdn/engine.rb +30 -56
  61. data/lib/phcscriptcdn/version.rb +1 -1
  62. data/lib/phcscriptcdn.rb +1 -0
  63. metadata +77 -390
  64. data/app/assets/javascripts/phcscriptcdn/application.js +0 -2
  65. data/app/assets/stylesheets/phcscriptcdn/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", phcscriptcdn.script_listings_path %>
5
5
  <% phc_breadcrumb_two link_to "Script Version Index", phcscriptcdn.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', phcscriptcdn.edit_script_version_path, class: "btn btn-primary" %>
35
- <%= link_to 'Remove', phcscriptcdn.script_version_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
34
+ <%= link_to "Update", phcscriptcdn.edit_script_version_path, class: "btn btn-primary" %>
35
+ <%= link_to "Remove", phcscriptcdn.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
  Phcscriptcdn::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: 'Phcscriptcdn::Script::Listing' do
15
- resources :urls, class_name: 'Phcscriptcdn::Script::Url'
16
- end
17
- resources :authors, class_name: 'Phcscriptcdn::Script::Author'
18
- resources :extensions, class_name: 'Phcscriptcdn::Script::Extension'
19
- resources :versions, class_name: 'Phcscriptcdn::Script::Version'
20
- resources :licences, class_name: 'Phcscriptcdn::Script::Licence'
21
- end
22
-
23
- # PHCAccounts Routes
24
- mount Phcaccounts::Engine, :at => '/'
12
+ # Script CDN Routes
13
+ namespace :script do
14
+ resources :listings, class_name: "Phcscriptcdn::Script::Listing" do
15
+ resources :urls, class_name: "Phcscriptcdn::Script::Url"
16
+ end
17
+ resources :authors, class_name: "Phcscriptcdn::Script::Author"
18
+ resources :extensions, class_name: "Phcscriptcdn::Script::Extension"
19
+ resources :versions, class_name: "Phcscriptcdn::Script::Version"
20
+ resources :licences, class_name: "Phcscriptcdn::Script::Licence"
21
+ end
25
22
 
26
23
  end
@@ -0,0 +1,31 @@
1
+ class CreatePhcscriptcdnScriptListings < ActiveRecord::Migration[7.0]
2
+ def change
3
+
4
+ create_table :phcscriptcdn_script_listings do |t|
5
+
6
+ t.string :script_title
7
+ t.text :script_description
8
+
9
+ t.string :script_source
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
+ t.string :script_status
18
+
19
+ t.string :slug
20
+
21
+ t.string :user_id
22
+
23
+ t.references :licence
24
+ t.references :author
25
+
26
+ t.timestamps
27
+
28
+ end
29
+
30
+ end
31
+ end
@@ -0,0 +1,21 @@
1
+ class CreatePhcscriptcdnScriptAuthors < ActiveRecord::Migration[7.0]
2
+ def change
3
+
4
+ create_table :phcscriptcdn_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
+
16
+ t.timestamps
17
+
18
+ end
19
+
20
+ end
21
+ end
@@ -0,0 +1,19 @@
1
+ class CreatePhcscriptcdnScriptExtensions < ActiveRecord::Migration[7.0]
2
+ def change
3
+
4
+ create_table :phcscriptcdn_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
+
14
+ t.timestamps
15
+
16
+ end
17
+
18
+ end
19
+ end
@@ -0,0 +1,25 @@
1
+ class CreatePhcscriptcdnScriptLicences < ActiveRecord::Migration[7.0]
2
+ def change
3
+
4
+ create_table :phcscriptcdn_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
+
20
+ t.timestamps
21
+
22
+ end
23
+
24
+ end
25
+ end
@@ -0,0 +1,23 @@
1
+ class CreatePhcscriptcdnScriptUrls < ActiveRecord::Migration[7.0]
2
+ def change
3
+
4
+ create_table :phcscriptcdn_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
+
14
+ t.references :listing
15
+ t.references :extension
16
+ t.references :version
17
+
18
+ t.timestamps
19
+
20
+ end
21
+
22
+ end
23
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnScriptVersions < ActiveRecord::Migration[7.0]
2
+ def change
3
+
4
+ create_table :phcscriptcdn_script_versions do |t|
5
+
6
+ t.string :script_version_number
7
+
8
+ t.string :slug
9
+
10
+ t.string :user_id
11
+
12
+ t.timestamps
13
+
14
+ end
15
+
16
+ end
17
+ end
@@ -0,0 +1,18 @@
1
+ class CreatePhcscriptcdnFriendlyIdSlugs < ActiveRecord::Migration[7.0]
2
+ def change
3
+
4
+ create_table :phcscriptcdn_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 :phcscriptcdn_friendly_id_slugs, :sluggable_id
13
+ add_index :phcscriptcdn_friendly_id_slugs, [:slug, :sluggable_type], name: 'scriptcdnpro_fri_id_slugable_type', length: { slug: 140, sluggable_type: 50 }
14
+ add_index :phcscriptcdn_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 :phcscriptcdn_friendly_id_slugs, :sluggable_type
16
+
17
+ end
18
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnExtensionVersions < ActiveRecord::Migration[7.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdn_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 :phcscriptcdn_extension_versions, %i(item_type item_id), :name => 'scriptcdnpro_ext_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnListingVersions < ActiveRecord::Migration[7.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdn_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 :phcscriptcdn_listing_versions, %i(item_type item_id), :name => 'scriptcdnpro_listing_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnScriptversionVersions < ActiveRecord::Migration[7.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdn_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 :phcscriptcdn_scriptversion_versions, %i(item_type item_id), :name => 'scriptcdnpro_scriptversion_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnUrlVersions < ActiveRecord::Migration[7.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdn_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 :phcscriptcdn_url_versions, %i(item_type item_id), :name => 'scriptcdnpro_url_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnAuthorVersions < ActiveRecord::Migration[7.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdn_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 :phcscriptcdn_author_versions, %i(item_type item_id), :name => 'scriptcdnpro_author_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcscriptcdnLicenceVersions < ActiveRecord::Migration[7.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcscriptcdn_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 :phcscriptcdn_licence_versions, %i(item_type item_id), :name => 'scriptcdnpro_licence_versions'
15
+
16
+ end
17
+ end
@@ -1,69 +1,43 @@
1
1
  module Phcscriptcdn
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 'phcaccounts'
43
-
44
- # Isolate Namespace
32
+ # Engine Namespace
45
33
  isolate_namespace Phcscriptcdn
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
- 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
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdn
2
- VERSION = "54.2.0"
2
+ VERSION = "55.0.1"
3
3
  end
data/lib/phcscriptcdn.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require "phcscriptcdn/version"
1
2
  require "phcscriptcdn/engine"
2
3
 
3
4
  module Phcscriptcdn