This file contains hidden or 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
| getData = (startDate, endDate, selectedView = 'daily') => { | |
| // startDate = yestarday | |
| // endDate = yestarday | |
| let query = `{$and:[ {BuildingID: '${selfObj.state.BuildingId}'}, | |
| {Type:'daily'}, | |
| {StartDate:{$gte:new Date('${startDate}')}}, | |
| {EndDate:{$lte:new Date('${endDate}')}}]}`; | |
| // console.log(query); | |
| let apiHandler = new ApiHandler(SettingStore.getNosqlUrl(), SettingStore.getAppKey(), SettingStore.getKey()); |
This file contains hidden or 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
| (function () { | |
| // NOTE | |
| // Backdated / legacy browsers might cause issues on development build | |
| if (typeof __DEV__ == 'undefined') { | |
| window.__DEV__ = true; | |
| } | |
| var version = typeof __VERSION__ == 'undefined' ? '' : __VERSION__; |
This file contains hidden or 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
| getUsers = () => { | |
| let userAPIHandler = new ApiHandler(SettingStore.getNosqlUrl(), SettingStore.getAppKey(), SettingStore.getKey()); | |
| let getUserQuery = []; | |
| // let buildingId = '4fa0b1e3176d4d079679af46dee55bc7'; //199 Bay Street, only this building has three users, other one has only 1 | |
| let buildingId = this.state.BuildingId; | |
| getUserQuery.push(JSON.stringify({ $match: { PropertyBuilding: { $regex: `${buildingId}` } } })); | |
| userAPIHandler.aggregate(JSON.stringify(getUserQuery), "User System", function (userApiResponse) { |
This file contains hidden or 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
| stark = "Jarvis" | |
| def stark.suit | |
| puts "IronMan" | |
| end |
This file contains hidden or 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 A | |
| puts "A class is an object" | |
| end | |
| # outputs A class is an object |
This file contains hidden or 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
| ticket = Object.new | |
| def ticket.date | |
| '1903-01-02' | |
| end | |
| def ticket.venue | |
| 'Town Hall' | |
| end |
This file contains hidden or 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
| .icon-lock { | |
| width: 15px; | |
| height: 15px; | |
| background: url("lock.svg") no-repeat; | |
| background-size: contain; | |
| } |
This file contains hidden or 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
| .icon-container { | |
| position: absolute; | |
| top: 8px; | |
| padding: 10px 0 0 10px; | |
| transition: 0.3s; | |
| color: #373737; | |
| border-right: 1px solid #E6E6E6; | |
| width: 23px; | |
| height: 23px; | |
| } |
This file contains hidden or 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
| .icon-input { | |
| width: 100%; | |
| border: 1px solid #E6E6E6; | |
| margin: 8px 0; | |
| outline: none; | |
| padding: 8px 0px 8px 35px; | |
| transition: 0.3s; | |
| } |
This file contains hidden or 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
| .icon-input-container { | |
| position: relative; | |
| } |