phcscriptcdn 51.0.0 → 52.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/app/assets/javascripts/phcscriptcdn/application.js +1 -1
- data/app/controllers/phcscriptcdn/application_controller.rb +15 -20
- data/app/controllers/phcscriptcdn/script/authors_controller.rb +13 -13
- data/app/controllers/phcscriptcdn/script/extensions_controller.rb +15 -15
- data/app/controllers/phcscriptcdn/script/licences_controller.rb +13 -13
- data/app/controllers/phcscriptcdn/script/listings_controller.rb +11 -11
- data/app/controllers/phcscriptcdn/script/urls_controller.rb +14 -14
- data/app/controllers/phcscriptcdn/script/versions_controller.rb +15 -15
- data/app/models/phcscriptcdn/application_record.rb +0 -2
- data/app/models/phcscriptcdn/script.rb +0 -2
- data/app/models/phcscriptcdn/script/author.rb +16 -7
- data/app/models/phcscriptcdn/script/extension.rb +5 -8
- data/app/models/phcscriptcdn/script/licence.rb +5 -8
- data/app/models/phcscriptcdn/script/listing.rb +12 -17
- data/app/models/phcscriptcdn/script/url.rb +4 -16
- data/app/models/phcscriptcdn/script/version.rb +6 -9
- data/app/views/layouts/phcscriptcdn/application.html.erb +6 -5
- data/app/views/layouts/phcscriptcdn/components/backend/footer/_footer.html.erb +5 -5
- data/app/views/layouts/phcscriptcdn/components/backend/sidebars/_side_menu.html.erb +60 -25
- data/app/views/phcscriptcdn/script/authors/_form.html.erb +6 -5
- data/app/views/phcscriptcdn/script/authors/edit.html.erb +4 -4
- data/app/views/phcscriptcdn/script/authors/index.html.erb +19 -15
- data/app/views/phcscriptcdn/script/authors/new.html.erb +4 -4
- data/app/views/phcscriptcdn/script/authors/show.html.erb +1 -4
- data/app/views/phcscriptcdn/script/extensions/_form.html.erb +5 -4
- data/app/views/phcscriptcdn/script/extensions/edit.html.erb +4 -7
- data/app/views/phcscriptcdn/script/extensions/index.html.erb +19 -15
- data/app/views/phcscriptcdn/script/extensions/new.html.erb +4 -6
- data/app/views/phcscriptcdn/script/extensions/show.html.erb +1 -4
- data/app/views/phcscriptcdn/script/licences/_form.html.erb +10 -9
- data/app/views/phcscriptcdn/script/licences/edit.html.erb +4 -6
- data/app/views/phcscriptcdn/script/licences/index.html.erb +19 -15
- data/app/views/phcscriptcdn/script/licences/new.html.erb +4 -6
- data/app/views/phcscriptcdn/script/licences/show.html.erb +1 -4
- data/app/views/phcscriptcdn/script/listings/_form.html.erb +21 -17
- data/app/views/phcscriptcdn/script/listings/edit.html.erb +4 -4
- data/app/views/phcscriptcdn/script/listings/index.html.erb +24 -19
- data/app/views/phcscriptcdn/script/listings/new.html.erb +6 -5
- data/app/views/phcscriptcdn/script/listings/show.html.erb +3 -5
- data/app/views/phcscriptcdn/script/urls/_form.html.erb +7 -6
- data/app/views/phcscriptcdn/script/urls/edit.html.erb +15 -5
- data/app/views/phcscriptcdn/script/urls/index.html.erb +19 -15
- data/app/views/phcscriptcdn/script/urls/new.html.erb +4 -6
- data/app/views/phcscriptcdn/script/urls/show.html.erb +1 -4
- data/app/views/phcscriptcdn/script/versions/_form.html.erb +3 -2
- data/app/views/phcscriptcdn/script/versions/edit.html.erb +4 -6
- data/app/views/phcscriptcdn/script/versions/index.html.erb +19 -15
- data/app/views/phcscriptcdn/script/versions/new.html.erb +4 -6
- data/app/views/phcscriptcdn/script/versions/show.html.erb +1 -4
- data/config/routes.rb +19 -20
- data/db/migrate/20160821183652_create_phcscriptcdn_script_listings.rb +1 -1
- data/lib/phcscriptcdn/engine.rb +16 -15
- data/lib/phcscriptcdn/version.rb +1 -1
- metadata +8 -8
@@ -17,7 +17,7 @@
|
|
17
17
|
<!-- Page Header -->
|
18
18
|
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
19
|
<!-- Page Header -->
|
20
|
-
|
20
|
+
|
21
21
|
<!-- Page Content -->
|
22
22
|
<div class="panel panel-inverse">
|
23
23
|
<div class="panel-heading">
|
@@ -26,14 +26,12 @@
|
|
26
26
|
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
27
27
|
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
28
28
|
</div>
|
29
|
-
<h4 class="panel-title"><%= yield(:
|
29
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
30
30
|
</div>
|
31
31
|
<div class="panel-body">
|
32
|
-
|
33
|
-
<!-- -->
|
32
|
+
<!-- Form to Edit Version -->
|
34
33
|
<%= render 'form', script_version: @script_version %>
|
35
|
-
<!--
|
36
|
-
|
34
|
+
<!-- Form to Edit Version -->
|
37
35
|
</div>
|
38
36
|
</div>
|
39
37
|
<!-- Page Content -->
|
@@ -7,27 +7,30 @@
|
|
7
7
|
|
8
8
|
<!-- Page Bradcrumbs -->
|
9
9
|
<ol class="breadcrumb pull-right">
|
10
|
-
|
11
|
-
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
12
|
</ol>
|
13
13
|
<!-- Page Bradcrumbs -->
|
14
14
|
|
15
15
|
<!-- Page Header -->
|
16
16
|
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
17
|
<!-- Page Header -->
|
18
|
-
|
19
|
-
<!-- Page Content -->
|
18
|
+
|
19
|
+
<!-- Page & Panel Content -->
|
20
20
|
<div class="panel panel-inverse">
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
21
|
+
<!-- Panel Heading -->
|
22
|
+
<div class="panel-heading">
|
23
|
+
<div class="panel-heading-btn">
|
24
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
25
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
26
|
+
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
27
|
+
</div>
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel Heading -->
|
31
|
+
<!-- Panel Body -->
|
32
|
+
<div class="panel-body">
|
33
|
+
<!-- Table - Version Index -->
|
31
34
|
<div class="table-responsive">
|
32
35
|
<table class="table table-striped table-bordered">
|
33
36
|
<thead>
|
@@ -45,9 +48,10 @@
|
|
45
48
|
</table>
|
46
49
|
<%= link_to phcscriptcdn.new_script_version_path, class: "btn btn-primary" do %>
|
47
50
|
<i class="fas fa-plus-circle"></i>
|
48
|
-
|
51
|
+
Add a New Version Number
|
49
52
|
<% end %>
|
50
53
|
</div>
|
54
|
+
<!-- Table - Version Index -->
|
51
55
|
</div>
|
52
56
|
</div>
|
53
57
|
<!-- Page Content -->
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<!-- Page Header -->
|
18
18
|
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
19
|
<!-- Page Header -->
|
20
|
-
|
20
|
+
|
21
21
|
<!-- Page Content -->
|
22
22
|
<div class="panel panel-inverse">
|
23
23
|
<div class="panel-heading">
|
@@ -26,14 +26,12 @@
|
|
26
26
|
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
27
27
|
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
28
28
|
</div>
|
29
|
-
<h4 class="panel-title"><%= yield(:
|
29
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
30
30
|
</div>
|
31
31
|
<div class="panel-body">
|
32
|
-
|
33
|
-
<!-- -->
|
32
|
+
<!-- Form for New Version -->
|
34
33
|
<%= render 'form', script_version: @script_version %>
|
35
|
-
<!--
|
36
|
-
|
34
|
+
<!-- Form for New Version -->
|
37
35
|
</div>
|
38
36
|
</div>
|
39
37
|
<!-- Page Content -->
|
@@ -30,12 +30,10 @@
|
|
30
30
|
</div>
|
31
31
|
</div>
|
32
32
|
<div class="panel-body">
|
33
|
-
|
34
33
|
<div class="btn-group d-flex" role="group">
|
35
34
|
<%= link_to 'Update', phcscriptcdn.edit_script_version_path, class: "btn btn-primary" %>
|
36
35
|
<%= link_to 'Remove', phcscriptcdn.script_version_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
|
37
|
-
</div>
|
38
|
-
|
36
|
+
</div>
|
39
37
|
</div>
|
40
38
|
</div>
|
41
39
|
|
@@ -44,7 +42,6 @@
|
|
44
42
|
|
45
43
|
<!-- Main Panel -->
|
46
44
|
<div class="col-lg-8">
|
47
|
-
|
48
45
|
</div>
|
49
46
|
<!-- Main Panel -->
|
50
47
|
|
data/config/routes.rb
CHANGED
@@ -1,27 +1,26 @@
|
|
1
1
|
Phcscriptcdn::Engine.routes.draw do
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
resources :listings, class_name: 'Phcscriptcdn::Script::Listing' do
|
10
|
-
resources :urls, class_name: 'Phcscriptcdn::Script::Url'
|
11
|
-
end
|
12
|
-
resources :authors, class_name: 'Phcscriptcdn::Script::Author'
|
13
|
-
resources :extensions, class_name: 'Phcscriptcdn::Script::Extension'
|
14
|
-
resources :versions, class_name: 'Phcscriptcdn::Script::Version'
|
15
|
-
resources :licences, class_name: 'Phcscriptcdn::Script::Licence'
|
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'}
|
16
9
|
end
|
10
|
+
end
|
17
11
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
resources :informations, defaults: {format: 'json'}
|
23
|
-
resources :versions, defaults: {format: 'json'}
|
24
|
-
end
|
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'
|
25
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 => '/'
|
26
25
|
|
27
26
|
end
|
data/lib/phcscriptcdn/engine.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Phcscriptcdn
|
2
2
|
class Engine < ::Rails::Engine
|
3
|
-
|
3
|
+
|
4
4
|
# PHCTheme Dependencies
|
5
5
|
require 'phctheme1'
|
6
6
|
require 'phctheme2'
|
@@ -9,7 +9,8 @@ module Phcscriptcdn
|
|
9
9
|
require 'phctheme5'
|
10
10
|
require 'phctheme6'
|
11
11
|
require 'phctheme7'
|
12
|
-
|
12
|
+
|
13
|
+
# PHCAdmin Dependencies
|
13
14
|
require 'phcadmin1'
|
14
15
|
require 'phcadmin2'
|
15
16
|
require 'phcadmin3'
|
@@ -17,32 +18,32 @@ module Phcscriptcdn
|
|
17
18
|
require 'phcadmin5'
|
18
19
|
require 'phcadmin6'
|
19
20
|
require 'phcadmin7'
|
20
|
-
|
21
|
-
#
|
21
|
+
|
22
|
+
# PHCHelper Dependencies
|
22
23
|
require 'phccorehelpers'
|
23
24
|
require 'phcmenus'
|
24
25
|
require 'phcnotifi'
|
25
26
|
require 'phctitleseo'
|
26
|
-
|
27
|
-
#
|
27
|
+
|
28
|
+
# Frontend Dependencies
|
28
29
|
require 'gravtastic'
|
29
30
|
require 'friendly_id'
|
30
|
-
|
31
|
-
#
|
31
|
+
|
32
|
+
# Upload Dependencies
|
32
33
|
require 'aws-sdk-s3'
|
33
34
|
require 'google-cloud-storage'
|
34
35
|
require 'mini_magick'
|
35
|
-
|
36
|
-
# Database
|
36
|
+
|
37
|
+
# Database Dependencies
|
37
38
|
require 'paper_trail'
|
38
39
|
require 'pg'
|
39
|
-
|
40
|
-
#
|
40
|
+
|
41
|
+
# Payment Dependencies
|
41
42
|
require 'phcaccounts'
|
42
43
|
|
43
44
|
# Isolate Namespace
|
44
45
|
isolate_namespace Phcscriptcdn
|
45
|
-
|
46
|
+
|
46
47
|
# Testing Generator
|
47
48
|
config.generators do |g|
|
48
49
|
g.test_framework :rspec,
|
@@ -55,7 +56,7 @@ module Phcscriptcdn
|
|
55
56
|
g.fixture_replacement :factory_bot,
|
56
57
|
dir: "spec/factories"
|
57
58
|
end
|
58
|
-
|
59
|
+
|
59
60
|
# Load Requried Helper Files
|
60
61
|
config.to_prepare do
|
61
62
|
Phcaccounts::ApplicationController.helper(ApplicationHelper)
|
@@ -64,6 +65,6 @@ module Phcscriptcdn
|
|
64
65
|
Phcnotifi::ApplicationController.helper(ApplicationHelper)
|
65
66
|
Phctitleseo::ApplicationController.helper(ApplicationHelper)
|
66
67
|
end
|
67
|
-
|
68
|
+
|
68
69
|
end
|
69
70
|
end
|
data/lib/phcscriptcdn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcscriptcdn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 52.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -232,14 +232,14 @@ dependencies:
|
|
232
232
|
requirements:
|
233
233
|
- - "~>"
|
234
234
|
- !ruby/object:Gem::Version
|
235
|
-
version: '
|
235
|
+
version: '5.2'
|
236
236
|
type: :runtime
|
237
237
|
prerelease: false
|
238
238
|
version_requirements: !ruby/object:Gem::Requirement
|
239
239
|
requirements:
|
240
240
|
- - "~>"
|
241
241
|
- !ruby/object:Gem::Version
|
242
|
-
version: '
|
242
|
+
version: '5.2'
|
243
243
|
- !ruby/object:Gem::Dependency
|
244
244
|
name: phcmenus
|
245
245
|
requirement: !ruby/object:Gem::Requirement
|
@@ -260,14 +260,14 @@ dependencies:
|
|
260
260
|
requirements:
|
261
261
|
- - "~>"
|
262
262
|
- !ruby/object:Gem::Version
|
263
|
-
version: '
|
263
|
+
version: '47.2'
|
264
264
|
type: :runtime
|
265
265
|
prerelease: false
|
266
266
|
version_requirements: !ruby/object:Gem::Requirement
|
267
267
|
requirements:
|
268
268
|
- - "~>"
|
269
269
|
- !ruby/object:Gem::Version
|
270
|
-
version: '
|
270
|
+
version: '47.2'
|
271
271
|
- !ruby/object:Gem::Dependency
|
272
272
|
name: phctitleseo
|
273
273
|
requirement: !ruby/object:Gem::Requirement
|
@@ -456,14 +456,14 @@ dependencies:
|
|
456
456
|
requirements:
|
457
457
|
- - "~>"
|
458
458
|
- !ruby/object:Gem::Version
|
459
|
-
version: '
|
459
|
+
version: '39.0'
|
460
460
|
type: :runtime
|
461
461
|
prerelease: false
|
462
462
|
version_requirements: !ruby/object:Gem::Requirement
|
463
463
|
requirements:
|
464
464
|
- - "~>"
|
465
465
|
- !ruby/object:Gem::Version
|
466
|
-
version: '
|
466
|
+
version: '39.0'
|
467
467
|
- !ruby/object:Gem::Dependency
|
468
468
|
name: sqlite3
|
469
469
|
requirement: !ruby/object:Gem::Requirement
|