phcscriptcdn 10.1.0 → 11.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c240270ebc5acabbb9a37010ed1602a667d45ba7
4
- data.tar.gz: 2bfffb7c21b636b4f737e26f7495e4f178895f2f
3
+ metadata.gz: e1cc291fff8888bdba91e342dd8aa605cefcd7f7
4
+ data.tar.gz: 1c9fe3f91b415cfe0b44f1c4b76e346841a3ac9a
5
5
  SHA512:
6
- metadata.gz: 2873a69e1030f2574a12bfb1e14a40feaf849dc64080ad96a8a0d17373e51c741b79a43c35b81f02a0071d7dada614df43aab375ddbea3c74ccd63d9720002ae
7
- data.tar.gz: f6aa3b593e0ac4d6a6310289fb9fe4bcb48df2472d4aede56ecc6740da31ae18c3b0892be57cb0b4733089b6a5e96c14086f33af77334be36181575386c3213b
6
+ metadata.gz: 5c631c8eed6733ae0566c5d92d5fa23248ff7944bf10b4d7254d6a917777144e9968098568ee83e7010e9ae54f99ffd6e10d81658e81457892239689665bac09
7
+ data.tar.gz: 91cbf32f5eca238b76e4775ff3a780f2d86f9433fdc6ee573f0e64008ea5fa70fee845c50448cecc9bc3ddc0ce2606292efef5c0d99dd6c08331d924c52fd9dd
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the frontend/listings controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,20 @@
1
+ require_dependency "phcscriptcdn/application_controller"
2
+
3
+ module Phcscriptcdn
4
+ class Frontend::ListingsController < ApplicationController
5
+
6
+ # Change Layout
7
+ layout '/layouts/phcscriptcdn/frontend.html.erb'
8
+
9
+ # Script Listing Index
10
+ def index
11
+ @script_listings_index = Script::Listing.all
12
+ end
13
+
14
+ # Script Listing Post
15
+ def show
16
+ @script_listings_single = Script::Listing.friendly.find(params[:id])
17
+ end
18
+
19
+ end
20
+ end
@@ -0,0 +1,4 @@
1
+ module Phcscriptcdn
2
+ module Frontend::ListingsHelper
3
+ end
4
+ end
@@ -0,0 +1,8 @@
1
+ module Phcscriptcdn
2
+ class Frontend::Listing < ApplicationRecord
3
+
4
+ # Clean URL Initialize
5
+ extend FriendlyId
6
+
7
+ end
8
+ end
@@ -17,9 +17,6 @@ module Phcscriptcdn
17
17
  validates :lcncdescript,
18
18
  presence: true
19
19
 
20
- validates :lcncdescription,
21
- presence: true
22
-
23
20
  # Clean URL Define
24
21
  friendly_id :phcscriptcdn_licence_slug, use: [:slugged, :finders]
25
22
 
@@ -0,0 +1,46 @@
1
+ <!-- Title System -->
2
+ <% phc_title "PHCNetworks Script CDN" %>
3
+ <% phc_title_tagline "Global Script Delivery Network" %>
4
+ <!-- Title System -->
5
+
6
+ <!-- Page Content -->
7
+ <section>
8
+ <div class="container">
9
+ <div class="row">
10
+
11
+ <!-- Left Sidebar -->
12
+ <div class="col-md-3 col-sm-3">
13
+ </div>
14
+ <!-- Left Sidebar -->
15
+
16
+ <!-- Script CDN List -->
17
+ <div class="col-md-9 col-sm-9">
18
+
19
+ <% @script_listings_index.each do |script_listings_index| %>
20
+ <div class="blog-post-item">
21
+ <h2><%= link_to script_listings_index.scripttitle, phcscriptcdn.frontend_listing_path(script_listings_index) %> <small></small></h2>
22
+ <ul class="blog-post-info list-inline">
23
+ <li>
24
+ <%= link_to "#" do %>
25
+ <i class="fa fa-clock-o"></i>
26
+ <span class="font-lato"><%= script_listings_index.created_at %></span>
27
+ <% end %>
28
+ </li>
29
+ <li>
30
+ <%= link_to "#" do %>
31
+ <i class="fa fa-user"></i>
32
+ <span class="font-lato">Posted By - <%= script_listings_index.user_name %></span>
33
+ <% end %>
34
+ </li>
35
+ </ul>
36
+ <div></div>
37
+ </div>
38
+ <% end %>
39
+
40
+ </div>
41
+ <!-- Script CDN List -->
42
+
43
+ </div>
44
+ </div>
45
+ </section>
46
+ <!-- Page Content -->
@@ -0,0 +1,59 @@
1
+ <!-- Title System -->
2
+ <% phc_title @script_listings_single.scripttitle + " CDN" %>
3
+ <% phc_title_tagline "Global Script Delivery Network" %>
4
+ <!-- Title System -->
5
+
6
+ <section>
7
+ <div class="container">
8
+ <div class="row">
9
+
10
+ <!-- Script Listing -->
11
+ <div class="col-md-9 col-sm-9">
12
+
13
+ <h1 class="blog-post-title"><%= @script_listings_single.scripttitle %> <small></small></h1>
14
+ <ul class="blog-post-info list-inline">
15
+ <li>
16
+ <%= link_to "#" do %>
17
+ <i class="fa fa-clock-o"></i>
18
+ <span class="font-lato"><%= @script_listings_single.created_at %></span>
19
+ <% end %>
20
+ </li>
21
+ <li>
22
+ <i class="fa fa-folder-open-o"></i>
23
+ <% @script_listings_single.urls.extensions.each do |script_listing_url_extensions| %>
24
+ <%= link_to "#" do %>
25
+ <span class="font-lato"><%= script_listing_url_extensions.scriptextensionname %></span>
26
+ <% end %>
27
+ <% end %>
28
+ </li>
29
+ <li>
30
+ <%= link_to "#" do %>
31
+ <i class="fa fa-user"></i>
32
+ <span class="font-lato">Posted By - <%= @script_listings_single.user_name %></span>
33
+ <% end %>
34
+ </li>
35
+ </ul>
36
+ <div>
37
+ <%= @script_listings_single.scriptdescription.html_safe %>
38
+ <p><small>Source: <i><%= @script_listings_single.descriptionsource %></i></small></p>
39
+ </div>
40
+ <br/>
41
+ <div>
42
+ <!-- Script Urls -->
43
+ <% @script_listings_single.urls.each do |script_listing_urls| %>
44
+ <input id="cdn_copy_trgt" type="text" class="form-control" value="<%= script_listing_urls.scripturl %>">
45
+ <% end %>
46
+ <!-- Script Urls -->
47
+ </div>
48
+ </div>
49
+ <!-- Script Listing -->
50
+
51
+ <!-- Right Sidebar -->
52
+ <div class="col-md-3 col-sm-3">
53
+ </div>
54
+ <!-- Right Sidebar -->
55
+
56
+ </div>
57
+ </div>
58
+ </section>
59
+ <!-- Page Content -->
@@ -1,8 +1,8 @@
1
- class CreatePhcscriptcdnExtensionsVersions < ActiveRecord::Migration[5.1]
1
+ class CreatePhcscriptcdnExtensionVersions < ActiveRecord::Migration[5.1]
2
2
  TEXT_BYTES = 1_073_741_823
3
3
  def change
4
4
 
5
- create_table :phcscriptcdn_extensions_versions do |t|
5
+ create_table :phcscriptcdn_extension_versions do |t|
6
6
  t.string :item_type, {:null=>false}
7
7
  t.integer :item_id, null: false
8
8
  t.string :event, null: false
@@ -11,7 +11,7 @@ class CreatePhcscriptcdnExtensionsVersions < ActiveRecord::Migration[5.1]
11
11
  t.datetime :created_at
12
12
  end
13
13
 
14
- add_index :phcscriptcdn_extensions_versions, %i(item_type item_id), :name => 'scriptcdn_ext_versions'
14
+ add_index :phcscriptcdn_extension_versions, %i(item_type item_id), :name => 'scriptcdn_ext_versions'
15
15
 
16
16
  end
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdn
2
- VERSION = "10.1.0"
2
+ VERSION = "11.0.0"
3
3
  end
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: 10.1.0
4
+ version: 11.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: 2017-07-13 00:00:00.000000000 Z
11
+ date: 2017-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -683,8 +683,11 @@ files:
683
683
  - Rakefile
684
684
  - app/assets/config/phcscriptcdn_manifest.js
685
685
  - app/assets/javascripts/phcscriptcdn/application.js
686
+ - app/assets/javascripts/phcscriptcdn/frontend/listings.js
686
687
  - app/assets/stylesheets/phcscriptcdn/application.scss
688
+ - app/assets/stylesheets/phcscriptcdn/frontend/listings.scss
687
689
  - app/controllers/phcscriptcdn/application_controller.rb
690
+ - app/controllers/phcscriptcdn/frontend/listings_controller.rb
688
691
  - app/controllers/phcscriptcdn/script/authors_controller.rb
689
692
  - app/controllers/phcscriptcdn/script/extensions_controller.rb
690
693
  - app/controllers/phcscriptcdn/script/licences_controller.rb
@@ -692,10 +695,12 @@ files:
692
695
  - app/controllers/phcscriptcdn/script/urls_controller.rb
693
696
  - app/controllers/phcscriptcdn/script/versions_controller.rb
694
697
  - app/helpers/phcscriptcdn/application_helper.rb
698
+ - app/helpers/phcscriptcdn/frontend/listings_helper.rb
695
699
  - app/jobs/phcscriptcdn/application_job.rb
696
700
  - app/models/phcscriptcdn/application_record.rb
697
701
  - app/models/phcscriptcdn/author_versions.rb
698
702
  - app/models/phcscriptcdn/extension_versions.rb
703
+ - app/models/phcscriptcdn/frontend/listing.rb
699
704
  - app/models/phcscriptcdn/licence_versions.rb
700
705
  - app/models/phcscriptcdn/listing_versions.rb
701
706
  - app/models/phcscriptcdn/script.rb
@@ -713,6 +718,8 @@ files:
713
718
  - app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar.html.erb
714
719
  - app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar_links.html.erb
715
720
  - app/views/layouts/phcscriptcdn/frontend.html.erb
721
+ - app/views/phcscriptcdn/frontend/listings/index.html.erb
722
+ - app/views/phcscriptcdn/frontend/listings/show.html.erb
716
723
  - app/views/phcscriptcdn/script/authors/_form.html.erb
717
724
  - app/views/phcscriptcdn/script/authors/edit.html.erb
718
725
  - app/views/phcscriptcdn/script/authors/index.html.erb
@@ -754,7 +761,7 @@ files:
754
761
  - db/migrate/20160731210723_create_phcscriptcdn_script_authors.rb
755
762
  - db/migrate/20160801032225_create_phcscriptcdn_script_licences.rb
756
763
  - db/migrate/20170509002355_create_phcscriptcdn_friendly_id_slugs.rb
757
- - db/migrate/20170517064030_create_phcscriptcdn_extensions_versions.rb
764
+ - db/migrate/20170517064030_create_phcscriptcdn_extension_versions.rb
758
765
  - db/migrate/20170517064049_create_phcscriptcdn_listing_versions.rb
759
766
  - db/migrate/20170517064114_create_phcscriptcdn_scriptversion_versions.rb
760
767
  - db/migrate/20170517064150_create_phcscriptcdn_url_versions.rb