forked from splunk/slack-alerts
-
Notifications
You must be signed in to change notification settings - Fork 0
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 splunk#6 from ziegfried/setup-view
Setup view
- Loading branch information
Showing
35 changed files
with
4,214 additions
and
113 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
presets: ['@splunk/babel-preset'], | ||
}; |
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 |
---|---|---|
|
@@ -4,24 +4,44 @@ | |
"description": "Slack alert action for Splunk Enterprise", | ||
"private": true, | ||
"splunk": { | ||
"appName": "slack_alerts" | ||
"appName": "slack_alerts", | ||
"appSource": "src/app" | ||
}, | ||
"repository": "[email protected]:ziegfried/splunk-slack-alerts.git", | ||
"author": "Siegfried Puchbauer <[email protected]>", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@splunk/react-page": "^3.0.0", | ||
"@splunk/react-toast-notifications": "^0.7.0", | ||
"@splunk/react-ui": "^2", | ||
"react": "^16", | ||
"react-dom": "^16", | ||
"styled-components": "^4" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7", | ||
"@splunk/babel-preset": "^3.0.0", | ||
"@splunk/webpack-configs": "^5.0.0", | ||
"babel-loader": "^8.0.4", | ||
"onchange": "^3.2.1", | ||
"splunk-slap": "^0.0.6" | ||
"prettier": "^2.0.5", | ||
"splunk-slap": "^0.0.6", | ||
"webpack": "^4.16.2", | ||
"webpack-cli": "^3.1.0", | ||
"webpack-livereload-plugin": "^2.1.1", | ||
"webpack-merge": "^4.1.3" | ||
}, | ||
"scripts": { | ||
"setup": "yarn install && yarn build && yarn symlink", | ||
"build": "slap stage", | ||
"build:pages": "webpack --config=src/ui/webpack.config.js --bail", | ||
"slap:post-stage": "yarn build:pages", | ||
"symlink": "slap symlink", | ||
"package": "slap package --prod", | ||
"pkg": "yarn package", | ||
"rebuild": "echo \"Rebuilding...\" && slap stage --skip-clean", | ||
"start": "yarn build && onchange src/main/resources/splunk/** -- slap stage", | ||
"test": "python -m unittest discover -s src/main/resources/splunk/bin -p '*_tests.py' -v", | ||
"test:watch": "onchange src/main/resources/splunk/bin/** -- yarn test" | ||
"start": "yarn build && onchange src/** -- slap stage", | ||
"test": "python -m unittest discover -s src/app/bin -p '*_tests.py' -v", | ||
"test:watch": "onchange src/app/bin/** -- yarn test" | ||
} | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
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 @@ | ||
<!doctype html> | ||
<html class="no-js" lang=""> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<title> | ||
Slack Alerts Setup | ||
</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="apple-touch-icon" href="apple-touch-icon.png"> | ||
</head> | ||
<body> | ||
<script src="${make_url('/config?autoload=1')}" crossorigin="use-credentials"></script> | ||
<script src="${make_url('/static/js/i18n.js')}"></script> | ||
<script src="${make_url('/i18ncatalog?autoload=1')}"></script> | ||
<% | ||
page_path = "/static/app/slack_alerts/pages/slack_alerts_setup.js" | ||
common_path = "/static/app/slack_alerts/pages/common.js" | ||
%> | ||
<script src="${make_url(common_path)}"></script> | ||
<script src="${make_url(page_path)}"></script> | ||
</body> | ||
</html> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 3 additions & 4 deletions
7
src/main/resources/splunk/default/app.conf → src/app/default/app.conf
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,14 +1,13 @@ | ||
[ui] | ||
is_visible = 0 | ||
is_visible = 1 | ||
show_in_nav = 0 | ||
label = Slack Alerts | ||
setup_view = slack_alerts_setup | ||
|
||
[launcher] | ||
author = Siegfried Puchbauer | ||
description = Custom alert action to send messages to Slack channels | ||
version = 0.0.0 | ||
|
||
[install] | ||
is_configured = 0 | ||
|
||
[package] | ||
id = slack_alerts |
File renamed without changes.
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,3 @@ | ||
<nav search_view="search"> | ||
<view name="slack_alerts_setup" default="true" /> | ||
</nav> |
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,4 @@ | ||
<?xml version="1.0"?> | ||
<view template="slack_alerts:/templates/setup.html" type="html"> | ||
<label>Slack Alerts Setup</label> | ||
</view> |
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.