st=>start: Start
e=>end
login=>operation: Login Screen
loginCredentialsEntering=>subroutine: user enter credentials
isLoginSucceed=>condition: Login succeed?
isMultipleOrg=>condition: User have more than 1 organization?
selectOrg=>operation: Organization Selection Screen
orgSelection=>subroutine: User choose an organization
dashboardTab=>operation: Home Screen - Dashboard Tab
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
controllerExist = (controllerStrg) -> | |
try | |
$controller controllerStrg | |
return false | |
catch error | |
return !(error instanceof TypeError) |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
module.exports = { | |
plugins: [ | |
"hyper-snazzy", | |
"hyper-hide-title", | |
"hyper-tabs-enhanced", | |
"hyper-sync-settings" | |
], | |
config: { | |
fontSize: 15, | |
// fontFamily: '"Menlo-Regular"', |
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
const unique = (list, key) => | |
key | |
? list.map(e => e !== null && e[key]) | |
.map((e, i, final) => final.indexOf(e) === i && i) | |
.filter(e => e !== null && list[e]) | |
.map(e => list[e]) | |
: [...new Set(list)].filter(entry => entry !== null) | |
describe('uniq()', () => { | |
it('should work as expected', () => { |