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
name: Manage Inventory | |
type: module | |
description: 'Provides Inventory entity.' | |
package: Custom | |
core: 8.x | |
package: Custom |
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.setState({ | |
query: this.state.query.filter((_,i) => i !== removeId) | |
}); |
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
export const BackofficeRoute = ({component:Component, ...rest}) => { | |
return ( | |
<Route {...rest} render={matchProps => ( | |
<div className="BackofficeLayout"> | |
<AuthRequired/> | |
<Header/> | |
<div className="Header">Header</div> | |
<Component {...matchProps}/> | |
<div className="Footer">Footer</div> | |
</div> |
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.setState({ | |
result: this.state.query.slice(0), | |
}); |
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
class App extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
data: null | |
}; | |
this.handleFileSelect = this.handleFileSelect.bind(this); | |
} | |
displayData(content) { |
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
The syntax for importing a member of a module with an aliased name is: | |
import {key as foo} from 'bar'; | |
This is equivalent to var foo = require('bar').key; | |
If you want to import a member without aliasing it, the syntax is simpler: | |
import {foo} from 'bar'; |
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
GET /_search | |
{ | |
"query": { | |
"match_all": {} | |
} | |
} |
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
{ | |
'query': { | |
'bool': { | |
'should': [ | |
{ | |
'match': { | |
'value': '4352435342532' | |
} | |
}, | |
{ |
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
token = sub('Bearer ', '', request.META.get('HTTP_AUTHORIZATION', None)) |
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
header = request.META.get('HTTP_AUTHORIZATION') | |
if header: | |
token = header.split(' ')[1] | |
print(token_backend.decode(token, verify=True)) |
OlderNewer