chore: remove debug logs (CTN/SETURL), keep token race fix; bump cache ver

This commit is contained in:
yumoqing 2026-08-15 20:07:44 +08:00
parent efbd5f5839
commit b09ef14301
3 changed files with 3 additions and 9 deletions

View File

@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="{{entire_url('/bricks/3parties/xterm.css')}}" />
<link rel="stylesheet" href="{{entire_url('/bricks/css/bricks.css')}}?v=20260815d">
<link rel="stylesheet" href="{{entire_url('/bricks/css/bricks.css')}}?v=20260815e">
<link rel="stylesheet" href="{{entire_url('/bricks/css/api_doc.css')}}">
{% for mycss in cssfiles() %}
<link rel="stylesheet" href="{{entire_url(mycss)}}">
@ -37,7 +37,7 @@
<script type="module"
src="{{entire_url('/bricks/3parties/model-viewer.min.js')}}">
</script>
<script src="{{entire_url('/bricks/bricks.js')}}?v=20260815d"></script>
<script src="{{entire_url('/bricks/bricks.js')}}?v=20260815e"></script>
{% for myjs in jsfiles() %}
<script src="{{entire_url(myjs)}}"></script>
{% endfor %}

View File

@ -27,18 +27,13 @@ bricks.Svg = class extends bricks.VBox {
var token = this._url_token;
if (!url){
this.dom_element.innerHTML = '';
console.log('SETURL null token=', token);
return;
}
this.url = url;
fetch(url)
.then(response => response.text())
.then(svgText => {
if (token !== this._url_token){
console.log('SETURL STALE token=', token, 'cur=', this._url_token, 'url=', url);
return;
}
console.log('SETURL RENDER url=', url, 'len=', svgText.length);
if (token !== this._url_token) return;
if (svgText.startsWith("<svg ")){
this.svgText = svgText;
this.set_colored_svg(this.color);

View File

@ -102,7 +102,6 @@ bricks.TreeNode = class extends bricks.VBox {
});
}
change_node_type(){
console.log('CTN id=', this.user_data && this.user_data.id, 'is_leaf=', this.is_leaf, 'raw=', this.user_data && this.user_data.is_leaf, 'field=', this.is_leaf_field);
if (this.is_leaf){
this.triple.set_url(null);
} else {