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
INFO - LoggingAdvice.invoke(115) |2015-12-30 21:03:50,891| In method DataImportToolService.saveDataImportTool. Arguments: DataImportTool=DataImportTool[hashCode=8bfa712d,uuid=44e6095e-e7e9-4788-9d6b-fb31f85a917d], | |
INFO - LoggingAdvice.invoke(115) |2015-12-30 21:03:50,891| In method DataImportToolService.saveDataImportTool. Arguments: DataImportTool=DataImportTool[hashCode=8bfa712d,uuid=44e6095e-e7e9-4788-9d6b-fb31f85a917d], | |
INFO - LoggingAdvice.invoke(155) |2015-12-30 21:03:50,893| Exiting method saveDataImportTool | |
WARN - ValidationManager.writeSimpleInfoLog(312) |2015-12-30 21:03:51,643| INFO at: VALID | |
WARN - ValidationManager.writeSimpleInfoLog(312) |2015-12-30 21:03:51,644| INFO | |
WARN - ValidationManager.validateSizeOfMatch(262) |2015-12-30 21:03:53,006| WARNING WAR002 at: VALID Tuple/Match: 2 MATCH_L_TO_R : 6 | |
WARN - ValidationManager.validateSizeOfMatch(262) |2015-12-30 21:03:53,008| WARNING WAR002 at: VALID Tuple/Match: 2 MATCH_L_TO_R : 7 | |
WARN - ValidationManager.writeSimpleInfoLog(312) |2015-12-30 21: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
SEVERE 1/16/16 6:41 AM:liquibase: Change Set liquibase-update-to-latest.xml::TRUNK-4548-MigrateAllergiesChangeSet1::dkayiwa failed. Error: liquibase.exception.CustomChangeException: org.openmrs.api.APIException: Service not found: interface org.openmrs.api.AdministrationService | |
liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.CustomChangeException: org.openmrs.api.APIException: Service not found: interface org.openmrs.api.AdministrationService | |
at liquibase.change.custom.CustomChangeWrapper.generateStatements(CustomChangeWrapper.java:115) | |
at liquibase.database.AbstractDatabase.executeStatements(AbstractDatabase.java:1073) | |
at liquibase.changelog.ChangeSet.execute(ChangeSet.java:317) | |
at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27) | |
at org.openmrs.util.DatabaseUpdater$1OpenmrsUpdateVisitor.visit(DatabaseUpdater.java:189) | |
at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58) | |
at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater. |
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 memokingDB = (function() { | |
var mkDB = {}; | |
var datastore = null; | |
/** Open conection to the DB **/ | |
mkDB.open = function(callback) { | |
var request = indexedDB.open("memoking"); | |
request.onupgradeneeded = function() { | |
// The database did not previously exist, so create object stores and indexes. |
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
/** Fetch all of the stats from the datastore **/ | |
mkDB.fetchStats = function(callback, user = "All") { | |
var db = datastore; | |
var tx = db.transaction("stats", "readonly"); | |
var store = tx.objectStore("stats"); | |
//Get only certain user data if specified | |
if (user === "All") { | |
var request = store.openCursor(IDBKeyRange.lowerBound(0)); | |
} else { |
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
/** Create a new stat **/ | |
mkDB.createStat = function(title, score, callback) { | |
var db = datastore; | |
var transaction = db.transaction(['stats'], 'readwrite'); | |
var objStore = transaction.objectStore('stats'); | |
// Create a timestamp for the stat item. (this is key value) | |
var timestamp = new Date().getTime(); | |
// Create an object for the stat |
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
/** Delete a stat **/ | |
mkDB.deleteStat = function(id, callback) { | |
var db = datastore; | |
var transaction = db.transaction(['stats'], 'readwrite'); | |
var objStore = transaction.objectStore('stats'); | |
//Delete stat by timestamp (id) | |
var request = objStore.delete(id); | |
request.onsuccess = function(e) { |
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
componentDidUpdate: function() { | |
componentHandler.upgradeDom(); | |
} |
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
<Route path='/' component={Container}> | |
// and | |
<Link to='/'>Home</Link> |
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
// Specify the path with parameter "name" | |
<Route path='/info(/:name)' component={Comp} /> | |
// Use parameter "name" if specified | |
const Comp = (props) => ( | |
<div> | |
{props.params.name && <p>{props.params.name}</p>} | |
</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
import React from 'react'; | |
const MyComponent = React.createClass({ | |
render() { | |
return ( | |
<h1>My Component</h1> | |
) | |
}, | |
keyHandling: function(e) { |
OlderNewer