-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a485588
commit e143161
Showing
23 changed files
with
141 additions
and
138 deletions.
There are no files selected for viewing
21 changes: 0 additions & 21 deletions
21
api/app/graph/refinery/api/fields_deprecated/pages/page_field.rb
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
api/app/graph/refinery/api/fields_deprecated/pages/pages_field.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
api/app/graph/refinery/api/inputs/pages/page_part_input.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Refinery | ||
module Api | ||
module Resolvers | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Refinery | ||
module Api | ||
module Types | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Refinery | ||
module Api | ||
module Types | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Refinery | ||
module Api | ||
module Types | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Refinery | ||
module Api | ||
module Types | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Refinery | ||
module Api | ||
module Types | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# frozen_string_literal: true | ||
|
||
module Refinery | ||
module Api | ||
module Types | ||
module Pages | ||
class PageAttributes < Types::BaseInputObject | ||
description "Attributes for creating or updating a page" | ||
|
||
argument :parent_id, Integer, required: false | ||
argument :path, String, required: false | ||
argument :show_in_menu, Boolean, required: false | ||
argument :link_url, String, required: false | ||
argument :menu_match, String, required: false | ||
argument :deletable, Boolean, required: false | ||
argument :draft, Boolean, required: false | ||
argument :skip_to_first_child, Boolean, required: false | ||
argument :lft, Integer, required: false | ||
argument :rgt, required: false | ||
argument :depth, Integer, required: false | ||
argument :view_template, String, required: false | ||
argument :layout_template, String, required: false | ||
argument :locale, String, required: false | ||
argument :title, String, required: false | ||
argument :custom_slug, String, required: false | ||
argument :menu_title, String, required: false | ||
argument :slug, String, required: false | ||
argument :meta_description, String, required: false | ||
argument :browser_title, String, required: false | ||
|
||
argument :parts, [Types::PagePart], required: false | ||
end | ||
end | ||
end | ||
end | ||
end | ||
|
||
|
20 changes: 20 additions & 0 deletions
20
api/app/graph/refinery/api/types/pages/page_part_attributes.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# frozen_string_literal: true | ||
|
||
module Refinery | ||
module Api | ||
module Types | ||
module Pages | ||
class PagePartAttributes < Types::BaseInputObject | ||
description "Attributes for creating or updating a page part" | ||
|
||
argument :slug, String, required: false | ||
argument :position, Integer, required: false | ||
argument :title, String, required: false | ||
|
||
argument :locale, String, required: false | ||
argument :body, String, required: false | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
Refinery::Core::Engine.routes.draw do | ||
namespace :api do | ||
post '/graphql', to: 'graphql#execute' | ||
end | ||
|
||
if Rails.env.development? | ||
mount GraphiQL::Rails::Engine, at: '/graphiql', graphql_path: "/#{Refinery::Core.backend_route}/graphql" | ||
end | ||
if Rails.env.development? | ||
mount GraphiQL::Rails::Engine, at: "/#{Refinery::Core.backend_route}/api/graphiql", graphql_path: '/api/graphql' | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
require 'refinerycms-core' | ||
require 'graphql' | ||
require 'graphiql/rails' | ||
|
||
module Refinery | ||
module Api | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.