bmathern / samotraces.js Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Lesser General Public License v3.0
License: GNU Lesser General Public License v3.0
Update the way events are handled in widgets ListBases and ListTracesInBases.
Remove the predefined event and add a css class instead to make it more flexible and generic.
Lors de l'appel de list_obsels() sur un objet de type Samotraces.KTBS.Trace (uri), la requête pour récupérer les obsels échoue. Il essaye de récupérer des obsels sur l'uri localhost/@obsels au lieu d'utiliser l'uri de la trace (+ @obsels). En regardant les attributs de mon objet (trace), je m'aperçois que obsels_list_uri = "@obsels"
Voici mon code :
var trace = new Samotraces.KTBS.Trace("http://localhost:8001/base1/t01/");
trace.list_obsels(); // ici cela échoue
De même pour l'utilisation Samotraces.UI.Widgets.TraceDisplayIcons qui utilise aussi list_obsels(), je ne peux pas afficher les obsels.
Pour pouvoir récupérer les obsels, j'ai modifié le code pour qu'il ajoute l'uri de la trace avant le @Obsel au lieu d'utiliser le chemin:
list_obsels: function(begin,end,reverse) {
this.obsel_list_uri = this.uri + this.obsel_list_uri; // ajouté
if(this.obsel_list_uri === "") {
console.log("Error in KTBS:Trace:list_obsels() unknown uri");
return false;
}
etc...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.