-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added status to reset function * Switching to one-pager * Changed SWA config * Added confirm dialog for delete
- Loading branch information
Showing
23 changed files
with
13,869 additions
and
5,930 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"printWidth": 120, | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"jsxBracketSameLine": true | ||
|
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
File renamed without changes.
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,45 @@ | ||
const tableStore = require(`azure-storage`); | ||
|
||
module.exports = async function (context, req) { | ||
context.res = { | ||
status: 200, | ||
body: await getTestStatus(), | ||
headers: { | ||
'Content-Type': 'application/json', | ||
'X-Content-Type-Options': 'nosniff', | ||
}, | ||
}; | ||
}; | ||
|
||
async function getTestStatus() { | ||
const tableService = tableStore.createTableService(); | ||
const statusQuery = new tableStore.TableQuery().select([ | ||
`PartitionKey`, | ||
`Status`, | ||
]); | ||
|
||
return new Promise(function (resolve, reject) { | ||
tableService.queryEntities( | ||
process.env['STATUSTABLE_NAME'], | ||
statusQuery, | ||
null, | ||
function (error, result) { | ||
if (!error) { | ||
let entities = result.entries; | ||
let resultSet = new Array(); | ||
|
||
entities.forEach(function (entity) { | ||
resultSet.push({ | ||
class: entity.PartitionKey._, | ||
status: entity.Status._, | ||
}); | ||
}); | ||
|
||
resolve(JSON.stringify(resultSet)); | ||
} else { | ||
reject(error.message); | ||
} | ||
} | ||
); | ||
}); | ||
} |
This file was deleted.
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
File renamed without changes.
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
File renamed without changes.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.