-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the token blade files and the verify shopify
- Loading branch information
Showing
4 changed files
with
52 additions
and
44 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
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,44 +1,31 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="csrf-token" content="{{ csrf_token() }}"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="csrf-token" content="{{ csrf_token() }}"> | ||
|
||
<title>{{ \Osiset\ShopifyApp\Util::getShopifyConfig('app_name') }}</title> | ||
@yield('styles') | ||
</head> | ||
<title>{{ \Osiset\ShopifyApp\Util::getShopifyConfig('app_name') }}</title> | ||
|
||
<body> | ||
<div class="app-wrapper"> | ||
<div class="app-content"> | ||
<main role="main"> | ||
@yield('content') | ||
</main> | ||
</div> | ||
</div> | ||
<meta name="shopify-api-key" | ||
content="{{ \Osiset\ShopifyApp\Util::getShopifyConfig('api_key', $shopDomain ?? Auth::user()->name ) }}"/> | ||
<script src="https://cdn.shopify.com/shopifycloud/app-bridge.js"></script> | ||
|
||
@if(\Osiset\ShopifyApp\Util::getShopifyConfig('appbridge_enabled') && \Osiset\ShopifyApp\Util::useNativeAppBridge()) | ||
<script src="{{config('shopify-app.appbridge_cdn_url') ?? 'https://unpkg.com'}}/@shopify/app-bridge{{ \Osiset\ShopifyApp\Util::getShopifyConfig('appbridge_version') ? '@'.config('shopify-app.appbridge_version') : '' }}"></script> | ||
<script | ||
@if(\Osiset\ShopifyApp\Util::getShopifyConfig('turbo_enabled')) | ||
data-turbolinks-eval="false" | ||
@endif | ||
> | ||
var AppBridge = window['app-bridge']; | ||
var actions = AppBridge.actions; | ||
var utils = AppBridge.utilities; | ||
var createApp = AppBridge.default; | ||
var app = createApp({ | ||
apiKey: "{{ \Osiset\ShopifyApp\Util::getShopifyConfig('api_key', $shopDomain ?? Auth::user()->name ) }}", | ||
host: "{{ \Request::get('host') }}", | ||
forceRedirect: true, | ||
}); | ||
</script> | ||
@yield('styles') | ||
</head> | ||
|
||
@include('shopify-app::partials.token_handler') | ||
@include('shopify-app::partials.flash_messages') | ||
@endif | ||
<body> | ||
<div class="app-wrapper"> | ||
<div class="app-content"> | ||
<main role="main"> | ||
@yield('content') | ||
</main> | ||
</div> | ||
</div> | ||
|
||
@yield('scripts') | ||
</body> | ||
@if(\Osiset\ShopifyApp\Util::getShopifyConfig('appbridge_enabled') && \Osiset\ShopifyApp\Util::useNativeAppBridge()) | ||
@include('shopify-app::partials.token_handler') | ||
@endif | ||
|
||
@yield('scripts') | ||
</body> | ||
</html> |
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