phcdevworks_portfolio 0.2.0 → 0.3.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
  SHA256:
3
- metadata.gz: 9e71d51a4c5978fa51cf7cb826e35ca8cd8a8bb41a12b2b00873da132bdfd520
4
- data.tar.gz: fe2c3f32ac22e047c9caf0c25080d78fa3b726461d79bf44ed3f776fc793af32
3
+ metadata.gz: 06ac663c4bf3aa9e874e7e83fe6ed4767a49e379ccdfec9b0b4ee4e070743a7d
4
+ data.tar.gz: e5797d9ed1661c68bf9290045c204704c4d48575cef19f168f54d4ee8e373dbd
5
5
  SHA512:
6
- metadata.gz: 4489add284e6abc6219620d06083a514a954f6e70eb4a60a7d258d94ee608f0e26585f87679af619b1fd521f05dae8ff932dc3852ed1386151e05ffadd1ab192
7
- data.tar.gz: 449f8855c8c6a9f7fa60e3399dbe821404e1ea63afa52eed95c91c7d5c35236b8b6fbeed546036587086bee7824163912b96c3dda5a1e0b925148d2d56a48ff7
6
+ metadata.gz: d4e21e4c59ba23897c2958e3e6a35e7751c9005d6703c7f5fa1029d3b2ed7fd6a288e1c09c4afd8347bbd60f19a020b049f2cd2f0c5dbd6ebbdc5bb01b9ace3c
7
+ data.tar.gz: af9c941c4352fcdc5702ef77c197b8dc375e7b6a9a7950e01c5628ee392ec6dcce8f0c0a57ed7fb4419a958c9350d787fd64acffef9c52716cdbe5b2e049b192
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the website/pages controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: https://sass-lang.com/
@@ -0,0 +1,20 @@
1
+ require_dependency "phcdevworks_portfolio/application_controller"
2
+
3
+ module PhcdevworksPortfolio
4
+ class Website::PagesController < ApplicationController
5
+
6
+ # Layout
7
+ layout 'phcdevworks_portfolio/frontend'
8
+
9
+ # INDEX
10
+ def index
11
+ @phcdevworks_projects_index = Project::Post.where(project_post_status: "published")
12
+ end
13
+
14
+ # SHOW
15
+ def show
16
+ @phcdevworks_projects_single = Project::Post.friendly.find(params[:id])
17
+ end
18
+
19
+ end
20
+ end
@@ -0,0 +1,4 @@
1
+ module PhcdevworksPortfolio
2
+ module Website::PagesHelper
3
+ end
4
+ end
data/config/routes.rb CHANGED
@@ -2,7 +2,12 @@ PhcdevworksPortfolio::Engine.routes.draw do
2
2
 
3
3
  # Project Routes
4
4
  namespace :project do
5
- resources :posts
5
+ resources :posts, class_name: "Project::Post"
6
+ end
7
+
8
+ # Frontend Routes
9
+ namespace :website do
10
+ resources :pages, only: [:index, :show]
6
11
  end
7
12
 
8
13
  # Mount Routes
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksPortfolio
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_portfolio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-15 00:00:00.000000000 Z
11
+ date: 2019-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -253,12 +253,16 @@ files:
253
253
  - app/assets/config/phcdevworks_portfolio_manifest.js
254
254
  - app/assets/javascripts/phcdevworks_portfolio/application.js
255
255
  - app/assets/javascripts/phcdevworks_portfolio/project/posts.coffee
256
+ - app/assets/javascripts/phcdevworks_portfolio/website/pages.coffee
256
257
  - app/assets/stylesheets/phcdevworks_portfolio/application.scss
257
258
  - app/assets/stylesheets/phcdevworks_portfolio/project/posts.scss
259
+ - app/assets/stylesheets/phcdevworks_portfolio/website/pages.scss
258
260
  - app/controllers/phcdevworks_portfolio/application_controller.rb
259
261
  - app/controllers/phcdevworks_portfolio/project/posts_controller.rb
262
+ - app/controllers/phcdevworks_portfolio/website/pages_controller.rb
260
263
  - app/helpers/phcdevworks_portfolio/application_helper.rb
261
264
  - app/helpers/phcdevworks_portfolio/project/posts_helper.rb
265
+ - app/helpers/phcdevworks_portfolio/website/pages_helper.rb
262
266
  - app/jobs/phcdevworks_portfolio/application_job.rb
263
267
  - app/mailers/phcdevworks_portfolio/application_mailer.rb
264
268
  - app/models/phcdevworks_portfolio/application_record.rb
@@ -268,11 +272,14 @@ files:
268
272
  - app/views/layouts/phcdevworks_portfolio/components/backend/footer/_footer.html.erb
269
273
  - app/views/layouts/phcdevworks_portfolio/components/backend/navigation/_top_menu.html.erb
270
274
  - app/views/layouts/phcdevworks_portfolio/components/backend/sidebars/_side_menu.html.erb
275
+ - app/views/layouts/phcdevworks_portfolio/frontend.html.erb
271
276
  - app/views/phcdevworks_portfolio/project/posts/_form.html.erb
272
277
  - app/views/phcdevworks_portfolio/project/posts/edit.html.erb
273
278
  - app/views/phcdevworks_portfolio/project/posts/index.html.erb
274
279
  - app/views/phcdevworks_portfolio/project/posts/new.html.erb
275
280
  - app/views/phcdevworks_portfolio/project/posts/show.html.erb
281
+ - app/views/phcdevworks_portfolio/website/pages/index.html.erb
282
+ - app/views/phcdevworks_portfolio/website/pages/show.html.erb
276
283
  - config/routes.rb
277
284
  - db/migrate/20191014112330_create_phcdevworks_portfolio_project_posts.rb
278
285
  - lib/phcdevworks_portfolio.rb