Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
{"version":3,"sources":["webpack:///./src/components/rules/mode-pipeline.js","webpack:///./src/components/common/SourceCodeEditor.jsx","webpack:///./src/components/common/ace/theme-graylog.js"],"names":["builtinFunctions","PipelineHighlightRules","ace","require","TextHighlightRules","keywordMapper","createKeywordMapper","keyword","$rules","start","token","regex","next","comment","defaultToken","PipelineRulesMode","Mode","args","HighlightRules","SourceCodeContainer","styled","div","resizable","theme","css","components","aceEditor","StyledTooltip","Tooltip","Toolbar","colors","global","contentBackground","gray","variant","dark","info","darkest","lightest","light","SourceCodeEditor","props","event","size","height","width","setState","reloadEditor","reactAce","editor","resize","readOnly","state","selectedText","getSession","getUndoManager","hasRedo","hasUndo","redo","focusEditor","undo","selection","toolbar","getTextRange","getRange","focus","overlayContainerRef","React","createRef","this","mode","url","qualifyUrl","ApiRoutes","RulesController","functions","fetch","then","response","map","res","name","join","pipelineRulesMode","setMode","prevProps","annotations","fontSize","id","innerRef","onLoad","onChange","value","validCssWidth","lodash","isFinite","overlay","className","style","ref","ClipboardButton","title","Icon","fixedWidth","bsStyle","bsSize","onSuccess","text","buttonTitle","disabled","isCopyDisabled","placement","trigger","rootClose","container","current","isPasteDisabled","onClick","handleUndo","isUndoDisabled","handleRedo","isRedoDisabled","minConstraints","onResize","handleResize","c","editorProps","$blockScrolling","setOptions","newLineMode","onSelectionChange","handleSelectionChange","Component","PropTypes","array","bool","number","string","isRequired","oneOfType","func","shape","any","oneOf","undefined","Infinity","define","exports","cssText","cssClass","importCssString","m","module"],"mappings":"6pDAkBA,IAAIA,EAAmB,GAEVC,EAAb,gBAA4CC,IAAIC,QAAQ,iCAAiCC,oBAAzF,WACE,aAAc,gBAEZ,IAIMC,GALN,gBAK2BC,oBAAoB,CAC7C,oBAAqB,QACrB,eAAgB,WAChB,mBAAoBN,EACpBO,QARe,yBASf,oBAPuB,qBAQtB,cAZS,OAcZ,EAAKC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UO,KAEpBzF,SAAUkF,YAAUE,KAEpBjH,UAAW+G,YAAUE,KAErBzE,QAASuE,YAAUE,KAEnB3C,MAAOyC,YAAUI,OAEjB5F,MAAOwF,YAAUG,S,EApCfhG,E,eAuCkB,CACpB8C,YAAa,GACbrB,OAAO,EACPsB,SAAU,GACV3C,OAAQ,IACR6C,cAAUuD,EACV1E,KAAM,OACNqB,SAAU,aACVD,OAAQ,aACRvC,UAAU,EACV7B,WAAW,EACXwC,SAAS,EACT8B,WAAOoD,EACPnG,MAAOoG,MAuLIzG,a,iRC/SftC,IAAIgJ,OAAO,oBAAqB,CAAC,UAAW,UAAW,SAAU,gBAAgB,SAAC/I,QAASgJ,SAEzFA,QAAQC,QAAU,GAElBD,QAAQE,SAAW,cAEPlJ,QAAQ,cAChBmJ,gBAAgBH,QAAQC,QAASD,QAAQE,aAI7CnJ,IAAIC,QAAQ,CAAC,sBAAsB,SAACoJ,GACZ,WAAlB,EAAOC,IAA0C,WAAnB,EAAOL,UAAwBK,IAC/DA,EAAOL,QAAUI,Q","file":"6e61897c-68.472622149827c1587209.js","sourcesContent":["/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\n/* global ace */\n\nlet builtinFunctions = '';\n\nexport class PipelineHighlightRules extends ace.require('ace/mode/text_highlight_rules').TextHighlightRules {\n constructor() {\n super();\n const keywords = 'let|when|then|rule|end';\n\n const builtinConstants = 'and|or|not|during';\n\n const keywordMapper = this.createKeywordMapper({\n 'variable.language': 'stage',\n 'support.type': '$message',\n 'support.function': builtinFunctions,\n keyword: keywords,\n 'constant.language': builtinConstants,\n }, 'identifier');\n\n this.$rules = {\n start: [\n {\n token: 'comment',\n regex: '\\\\/\\\\/.*$',\n },\n {\n token: 'comment', // multi line comment\n regex: '\\\\/\\\\*',\n next: 'comment',\n },\n {\n token: 'string', // single line\n regex: '[\"](?:(?:\\\\\\\\.)|(?:[^\"\\\\\\\\]))*?[\"]',\n },\n {\n token: 'string', // single line\n regex: \"['](?:(?:\\\\\\\\.)|(?:[^'\\\\\\\\]))*?[']\",\n },\n {\n token: 'constant.numeric', // hex\n regex: /0(?:[xX][0-9a-fA-F][0-9a-fA-F_]*|[bB][01][01_]*)[LlSsDdFfYy]?\\b/,\n },\n {\n token: 'constant.numeric', // float\n regex: /[+-]?\\d[\\d_]*(?:(?:\\.[\\d_]*)?(?:[eE][+-]?[\\d_]+)?)?[LlSsDdFfYy]?\\b/,\n },\n {\n token: 'constant.language.boolean',\n regex: '(?:true|false)\\\\b',\n },\n {\n token: 'language.support.class',\n regex: '&&',\n },\n {\n token: keywordMapper,\n regex: '[a-zA-Z_$][a-zA-Z0-9_$]*\\\\b',\n },\n {\n token: 'text',\n regex: '\\\\s+',\n },\n ],\n comment: [\n {\n token: 'comment', // closing comment\n regex: '\\\\*\\\\/',\n next: 'start',\n }, {\n defaultToken: 'comment',\n },\n ],\n };\n }\n}\n\nexport default class PipelineRulesMode extends ace.require('ace/mode/text').Mode {\n constructor(args) {\n super(args);\n\n builtinFunctions = args;\n this.HighlightRules = PipelineHighlightRules;\n }\n}\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport React from 'react';\nimport lodash from 'lodash';\nimport { PropTypes } from 'prop-types';\nimport { Resizable } from 'react-resizable';\nimport AceEditor from 'react-ace';\nimport styled, { css } from 'styled-components';\n\nimport { qualifyUrl } from 'util/URLUtils';\nimport ApiRoutes from 'routing/ApiRoutes';\nimport fetch from 'logic/rest/FetchProvider';\nimport { Button, ButtonGroup, ButtonToolbar, OverlayTrigger, Tooltip } from 'components/graylog';\nimport PipelineRulesMode from 'components/rules/mode-pipeline';\n\nimport ClipboardButton from './ClipboardButton';\nimport Icon from './Icon';\nimport './webpack-resolver';\nimport './ace/theme-graylog';\n\nconst SourceCodeContainer = styled.div(({ resizable, theme }) => css`\n .react-resizable-handle {\n z-index: 100; /* Ensure resize handle is over text editor */\n display: ${resizable ? 'block' : 'none'};\n }\n\n ${theme.components.aceEditor}\n`);\n\nconst StyledTooltip = styled(Tooltip)`\n width: 250px;\n`;\n\nconst Toolbar = styled.div(({ theme }) => css`\n background: ${theme.colors.global.contentBackground};\n border: 1px solid ${theme.colors.gray[80]};\n border-bottom: 0;\n border-radius: 5px 5px 0 0;\n\n .btn-link {\n color: ${theme.colors.variant.dark.info};\n \n :hover {\n color: ${theme.colors.variant.darkest.info};\n background-color: ${theme.colors.variant.lightest.info};\n }\n\n &.disabled,\n &[disabled] {\n color: ${theme.colors.variant.light.default};\n \n :hover {\n color: ${theme.colors.variant.light.default};\n }\n }\n }\n\n & + ${SourceCodeContainer} {\n /* Do not add border radius if code editor comes after toolbar */\n .ace_editor {\n border-radius: 0 0 5px 5px;\n }\n }\n`);\n\n/**\n * Component that renders a source code editor input. This is what powers the pipeline rules and collector\n * editors.\n *\n * **Note:** The component needs to be used in a [controlled way](https://reactjs.org/docs/forms.html#controlled-components).\n * Letting the component handle its own internal state may lead to weird errors while typing.\n */\nclass SourceCodeEditor extends React.Component {\n static propTypes = {\n /**\n * Annotations to show in the editor's gutter. The format should be:\n * `[{ row: 0, column: 2, type: 'error', text: 'Some error.'}]`\n * The type value must be one of `error`, `warning`, or `info`.\n */\n annotations: PropTypes.array,\n /** Specifies if the source code editor should have the input focus or not. */\n focus: PropTypes.bool,\n /** Specifies the font size in pixels to use in the text editor. */\n fontSize: PropTypes.number,\n /** Editor height in pixels. */\n height: PropTypes.number,\n /** Specifies a unique ID for the source code editor. */\n id: PropTypes.string.isRequired,\n /** Provides a ref associated to AceEditor component */\n innerRef: PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.shape({ current: PropTypes.any }),\n ]),\n /** Specifies the mode to use in the editor. This is used for highlighting and auto-completion. */\n mode: PropTypes.oneOf(['json', 'lua', 'markdown', 'text', 'yaml', 'pipeline']),\n /** Function called on editor load. The first argument is the instance of the editor. */\n onLoad: PropTypes.func,\n /** Function called when the value of the text changes. It receives the new value and an event as arguments. */\n onChange: PropTypes.func,\n /** Specifies if the editor should be in read-only mode. */\n readOnly: PropTypes.bool,\n /** Specifies if the editor should be resizable by the user. */\n resizable: PropTypes.bool,\n /** Specifies if the editor should also include a toolbar. */\n toolbar: PropTypes.bool,\n /** Text to use in the editor. */\n value: PropTypes.string,\n /** Editor width in pixels. Use `Infinity` to indicate the editor should use 100% of its container's width. */\n width: PropTypes.number,\n }\n\n static defaultProps = {\n annotations: [],\n focus: false,\n fontSize: 13,\n height: 200,\n innerRef: undefined,\n mode: 'text',\n onChange: () => {},\n onLoad: () => {},\n readOnly: false,\n resizable: true,\n toolbar: true,\n value: undefined,\n width: Infinity,\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n height: props.height,\n width: props.width,\n selectedText: '',\n };\n\n this.overlayContainerRef = React.createRef();\n }\n\n componentDidMount() {\n const { mode } = this.props;\n\n if (mode === 'pipeline') {\n const url = qualifyUrl(ApiRoutes.RulesController.functions().url);\n\n fetch('GET', url).then((response) => {\n const functions = response.map((res) => res.name).join('|');\n const pipelineRulesMode = new PipelineRulesMode(functions);\n\n this.reactAce.editor.getSession().setMode(pipelineRulesMode);\n\n return functions;\n });\n }\n }\n\n componentDidUpdate(prevProps) {\n const { height, width } = this.props;\n\n if (height !== prevProps.height || width !== prevProps.width) {\n this.reloadEditor();\n }\n }\n\n handleResize = (event, { size }) => {\n const { height, width } = size;\n\n this.setState({ height: height, width: width }, this.reloadEditor);\n };\n\n reloadEditor = () => {\n const { resizable } = this.props;\n\n if (resizable) {\n this.reactAce.editor.resize();\n }\n };\n\n /* eslint-disable-next-line react/destructuring-assignment */\n isCopyDisabled = () => this.props.readOnly || this.state.selectedText === '';\n\n /* eslint-disable-next-line react/destructuring-assignment */\n isPasteDisabled = () => this.props.readOnly;\n\n /* eslint-disable-next-line react/destructuring-assignment */\n isRedoDisabled = () => this.props.readOnly || !this.reactAce || !this.reactAce.editor.getSession().getUndoManager().hasRedo();\n\n /* eslint-disable-next-line react/destructuring-assignment */\n isUndoDisabled = () => this.props.readOnly || !this.reactAce || !this.reactAce.editor.getSession().getUndoManager().hasUndo();\n\n handleRedo = () => {\n this.reactAce.editor.redo();\n this.focusEditor();\n };\n\n handleUndo = () => {\n this.reactAce.editor.undo();\n this.focusEditor();\n };\n\n handleSelectionChange = (selection) => {\n const { toolbar, readOnly } = this.props;\n\n if (!this.reactAce || !toolbar || readOnly) {\n return;\n }\n\n const selectedText = this.reactAce.editor.getSession().getTextRange(selection.getRange());\n\n this.setState({ selectedText: selectedText });\n };\n\n focusEditor = () => {\n this.reactAce.editor.focus();\n };\n\n render() {\n const { height, width, selectedText } = this.state;\n const {\n resizable,\n toolbar,\n annotations,\n focus,\n fontSize,\n mode,\n id,\n innerRef,\n onLoad,\n onChange,\n readOnly,\n value,\n } = this.props;\n const validCssWidth = lodash.isFinite(width) ? width : '100%';\n const overlay = Press Ctrl+V (⌘V in macOS) or select Edit → Paste to paste from clipboard.;\n\n return (\n
\n );\n }\n}\n\nexport default SourceCodeEditor;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\n/* global ace */\n\nace.define('ace/theme/graylog', ['require', 'exports', 'module', 'ace/lib/dom'], (require, exports) => {\n // CSS found in `components/common/SourceCodeEditor.jsx`\n exports.cssText = ''; // eslint-disable-line no-param-reassign\n\n exports.cssClass = 'ace-graylog'; // eslint-disable-line no-param-reassign\n\n const dom = require('../lib/dom');\n dom.importCssString(exports.cssText, exports.cssClass);\n});\n\n(function () { // eslint-disable-line func-names\n ace.require(['ace/theme/graylog'], (m) => {\n if (typeof module === 'object' && typeof exports === 'object' && module) {\n module.exports = m;\n }\n });\n}());\n"],"sourceRoot":""}