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
$(document).ready(function () { | |
$(function () { | |
$("#itemTable tbody").sortable({ | |
update: function (event, ui) { | |
app.updateOrders(); | |
} | |
}); | |
}); |
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
$(document).ready(function () { | |
$(function () { | |
$("#itemTable tbody").sortable({}); | |
}); | |
const app = new Vue({ | |
el: "#app", | |
data: { | |
items: [{ | |
"order": 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
$(document).ready(function () { | |
$(function () { | |
$("#itemTable tbody").sortable({}); | |
}); | |
}); |
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
<html> | |
<head> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" | |
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css" | |
crossorigin="anonymous"> | |
</head> | |
<body> |
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
<html> | |
<head> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css" crossorigin="anonymous"> | |
</head> | |
<body> | |
<script src="https://code.jquery.com/jquery-1.12.4.js"></script> | |
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js" integrity="sha256-T0Vest3yCU7pafRw9r+settMBX6JkKN06dqBnpQ8d30=" crossorigin="anonymous"></script> | |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> | |
<script src="https://cdn.jsdelivr.net/npm/vue"></script> |
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
// first query, > 40 | |
"{\"message\":[{\"tokenAmount\":250,\"walletId\":\"sam\"},{\"tokenAmount\":50,\"walletId\":\"tom\"}], \"OK\":true}" | |
// second query, > 200 | |
"{\"message\":[{\"tokenAmount\":250,\"walletId\":\"sam\"}], \"OK\":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
"{\"message\":{\"walletId\":\"tom\",\"tokenAmount\":50.0}, \"OK\":true}" | |
"{\"message\":{\"walletId\":\"sam\",\"tokenAmount\":250.0}, \"OK\":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
"{\"message\":{\"walletId\":\"tom\",\"tokenAmount\":100.0}, \"OK\":true}" | |
"{\"message\":{\"walletId\":\"sam\",\"tokenAmount\":200.0}, \"OK\":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
package org.hyperledger.fabric.chaincode; | |
import java.util.List; | |
import org.hyperledger.fabric.chaincode.Models.Wallet; | |
import org.hyperledger.fabric.shim.ChaincodeBase; | |
import org.hyperledger.fabric.shim.ChaincodeStub; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import org.hyperledger.fabric.shim.ledger.KeyValue; | |
import org.hyperledger.fabric.shim.ledger.QueryResultsIterator; | |
public class AccountBasedChaincode extends ChaincodeBase { |
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
"{\"message\":{\"walletId\":\"tom\",\"tokenAmount\":90.0}, \"OK\":true}" | |
"{\"message\":{\"walletId\":\"sam\",\"tokenAmount\":110.0}, \"OK\":true}" |
NewerOlder