-
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 #7 from polarityio/develop
feat: add search observables
- Loading branch information
Showing
11 changed files
with
1,384 additions
and
76 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 |
---|---|---|
@@ -1,10 +1,24 @@ | ||
polarity.export = PolarityComponent.extend({ | ||
details: Ember.computed.alias('block.data.details'), | ||
webUrl: Ember.computed('block.userOptions.url', function(){ | ||
const url = this.get('block.userOptions.url'); | ||
return url.endsWith('/') ? url : `${url}/`; | ||
}), | ||
timezone: Ember.computed("Intl", function () { | ||
return Intl.DateTimeFormat().resolvedOptions().timeZone; | ||
}) | ||
details: Ember.computed.alias('block.data.details'), | ||
webUrl: Ember.computed('block.userOptions.url', function () { | ||
const url = this.get('block.userOptions.url'); | ||
return url.endsWith('/') ? url : `${url}/`; | ||
}), | ||
timezone: Ember.computed('Intl', function () { | ||
return Intl.DateTimeFormat().resolvedOptions().timeZone; | ||
}), | ||
expandableTitleStates: {}, | ||
actions: { | ||
toggleExpandableTitle: function (index) { | ||
const modifiedExpandableTitleStates = Object.assign( | ||
{}, | ||
this.get('expandableTitleStates'), | ||
{ | ||
[index]: !this.get('expandableTitleStates')[index] | ||
} | ||
); | ||
|
||
this.set(`expandableTitleStates`, modifiedExpandableTitleStates); | ||
} | ||
} | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright (c) 2022, Polarity.io, Inc. | ||
*/ | ||
let logger; | ||
|
||
function setLogger (Logger) { | ||
logger = Logger; | ||
} | ||
|
||
function getLogger () { | ||
return logger; | ||
} | ||
|
||
module.exports = { | ||
setLogger, | ||
getLogger | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,11 +1,11 @@ | ||
{ | ||
"name": "opencti", | ||
"version": "3.1.3", | ||
"version": "3.2.0", | ||
"main": "./integration.js", | ||
"private": true, | ||
"dependencies": { | ||
"async": "^3.2.4", | ||
"lodash": "^4.17.21", | ||
"postman-request": "^2.88.1-postman.31" | ||
} | ||
} | ||
} |
Oops, something went wrong.