-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #210 from avored/develop
Develop
- Loading branch information
Showing
18 changed files
with
5,471 additions
and
2,435 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@foreach($productProperties as $property) | ||
|
||
@switch($property->field_type) | ||
@case('SELECT') | ||
<div class="mt-3"> | ||
<x-avored::form.select | ||
name="properties[{{ $property->id }}]" | ||
label="{{ $property->name }}" | ||
> | ||
<option value="">{{ __('avored::system.please_select') }}</option> | ||
@foreach ($property->getDropdownOptions() as $dropdownOption) | ||
<option {{ (isset($product) && $product->categories->contains(Arr::get($dropdownOption, 'value'))) ? 'selected' : ''}} value="{{ Arr::get($dropdownOption, 'value') }}"> | ||
{{ Arr::get($dropdownOption, 'label') }} | ||
</option> | ||
@endforeach | ||
|
||
</x-avored::form.select> | ||
</div> | ||
@break | ||
|
||
@endswitch | ||
|
||
@endforeach |
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
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
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
namespace AvoRed\Framework\Graphql\Types; | ||
|
||
use Rebing\GraphQL\Support\Type as GraphQLType; | ||
use GraphQL\Type\Definition\Type; | ||
|
||
class TokenType extends GraphQLType | ||
{ | ||
/** | ||
* Attribute for Token Type | ||
* @var array | ||
*/ | ||
protected $attributes = [ | ||
'name' => 'Token', | ||
'description' => 'A type' | ||
]; | ||
|
||
/** | ||
* Fields for Token Type | ||
* @return array $fields | ||
*/ | ||
public function fields(): array | ||
{ | ||
return [ | ||
'token_type' => [ | ||
'type' => Type::string(), | ||
'description' => 'Customer updated at' | ||
], | ||
'expires_in' => [ | ||
'type' => Type::int(), | ||
'description' => 'Customer updated at' | ||
], | ||
'access_token' => [ | ||
'type' => Type::string(), | ||
'description' => 'Customer updated at' | ||
], | ||
'refresh_token' => [ | ||
'type' => Type::string(), | ||
'description' => 'Customer updated at' | ||
], | ||
]; | ||
} | ||
} |
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