-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pin working version
0.1.20
of @graphiql/plugin-explorer
Resolves #25
- Loading branch information
Showing
4 changed files
with
28 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ parameters: | |
paths: | ||
- src | ||
- views | ||
- .php-cs-fixer.php | ||
checkOctaneCompatibility: true |
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 |
---|---|---|
|
@@ -19,8 +19,9 @@ class DownloadAssetsCommand extends Command | |
public const JS_PATH_LOCAL = 'vendor/graphiql/graphiql.min.js'; | ||
public const JS_PATH_CDN = '//unpkg.com/graphiql/graphiql.min.js'; | ||
|
||
public const EXPLORER_PLUGIN_PATH_LOCAL = 'vendor/graphiql/graphiql-plugin-explorer.umd.js'; | ||
public const EXPLORER_PLUGIN_PATH_CDN = '//unpkg.com/@graphiql/plugin-explorer/dist/graphiql-plugin-explorer.umd.js'; | ||
public const PLUGIN_EXPLORER_PATH_LOCAL = 'vendor/graphiql/graphiql-plugin-explorer.umd.js'; | ||
/** Pinned because the latest version broke, see https://github.com/mll-lab/laravel-graphiql/issues/25. */ | ||
public const PLUGIN_EXPLORER_PATH_CDN = '//unpkg.com/@graphiql/[email protected]/dist/graphiql-plugin-explorer.umd.js'; | ||
|
||
public const CSS_PATH_LOCAL = 'vendor/graphiql/graphiql.min.css'; | ||
public const CSS_PATH_CDN = '//unpkg.com/graphiql/graphiql.min.css'; | ||
|
@@ -38,7 +39,7 @@ public function handle(): void | |
$this->downloadFileFromCDN(self::REACT_DOM_PATH_LOCAL, self::REACT_DOM_PATH_CDN); | ||
$this->downloadFileFromCDN(self::CSS_PATH_LOCAL, self::CSS_PATH_CDN); | ||
$this->downloadFileFromCDN(self::JS_PATH_LOCAL, self::JS_PATH_CDN); | ||
$this->downloadFileFromCDN(self::EXPLORER_PLUGIN_PATH_LOCAL, self::EXPLORER_PLUGIN_PATH_CDN); | ||
$this->downloadFileFromCDN(self::PLUGIN_EXPLORER_PATH_LOCAL, self::PLUGIN_EXPLORER_PATH_CDN); | ||
$this->downloadFileFromCDN(self::FAVICON_PATH_LOCAL, self::FAVICON_PATH_CDN); | ||
} | ||
|
||
|
@@ -76,9 +77,9 @@ public static function jsPath(): string | |
return self::assetPath(self::JS_PATH_LOCAL, self::JS_PATH_CDN); | ||
} | ||
|
||
public static function explorerPluginPath(): string | ||
public static function pluginExplorerPath(): string | ||
{ | ||
return self::assetPath(self::EXPLORER_PLUGIN_PATH_LOCAL, self::EXPLORER_PLUGIN_PATH_CDN); | ||
return self::assetPath(self::PLUGIN_EXPLORER_PATH_LOCAL, self::PLUGIN_EXPLORER_PATH_CDN); | ||
} | ||
|
||
public static function cssPath(): string | ||
|
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