-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* go get -u github.com/grafana/grafana-plugin-sdk-go * npx -y @grafana/create-plugin@latest update * SEARCH-8100 Make query timeout configurable (#29) * SEARCH-8103 Include info about scheduled queries in the timeout error (#30) * SEARCH-8309 Allow savedSearchId to be composed using variable(s) (#27) * SEARCH-8309 Allow savedSearchId to be composed using variable(s) * SEARCH-8309 Update QueryEditor to allow typing savedSearchId with ${variable} * SEARCH-8101 Cancel the query upon timeout (#31) * ran "npx -y @grafana/create-plugin@latest update" again * Bumps for v1.1.2
- Loading branch information
1 parent
f87c18a
commit efa16d5
Showing
16 changed files
with
966 additions
and
938 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"version": "5.5.1" | ||
"version": "5.11.1" | ||
} |
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,33 @@ | ||
import * as webpack from 'webpack'; | ||
|
||
const PLUGIN_NAME = 'BuildModeWebpack'; | ||
|
||
export class BuildModeWebpackPlugin { | ||
apply(compiler: webpack.Compiler) { | ||
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => { | ||
compilation.hooks.processAssets.tap( | ||
{ | ||
name: PLUGIN_NAME, | ||
stage: webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONS, | ||
}, | ||
async () => { | ||
const assets = compilation.getAssets(); | ||
for (const asset of assets) { | ||
if (asset.name.endsWith('plugin.json')) { | ||
const pluginJsonString = asset.source.source().toString(); | ||
const pluginJsonWithBuildMode = JSON.stringify( | ||
{ | ||
...JSON.parse(pluginJsonString), | ||
buildMode: compilation.options.mode, | ||
}, | ||
null, | ||
4 | ||
); | ||
compilation.updateAsset(asset.name, new webpack.sources.RawSource(pluginJsonWithBuildMode)); | ||
} | ||
} | ||
} | ||
); | ||
}); | ||
} | ||
} |
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
Oops, something went wrong.