Fix embed date filter reload and classify profitable stops as trailing TP.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-25 11:27:42 +08:00
parent 924a385d6c
commit 2dadd93d91
9 changed files with 95 additions and 74 deletions
+13
View File
@@ -684,8 +684,21 @@ function toggleStatsCard(){
btn.innerText = collapsed ? "展开" : "折叠";
}
function bindListWindowDateAutoCustom(){
const preset = document.getElementById("win-preset-select");
const fromEl = document.getElementById("win-from-utc");
const toEl = document.getElementById("win-to-utc");
function toCustom(){
if(preset) preset.value = "custom";
toggleListWindowCustom();
}
if(fromEl) fromEl.addEventListener("change", toCustom);
if(toEl) toEl.addEventListener("change", toCustom);
}
attachListWindowToExports();
toggleListWindowCustom();
bindListWindowDateAutoCustom();
initStatsSegmentFromUrl();
if(document.getElementById("journal-list")) loadJournals();
if(document.getElementById("review-list")) loadReviews();
+1 -1
View File
@@ -115,6 +115,6 @@
<script src="/static/manual_order_rr_preview.js?v=3"></script>
<script src="/static/key_monitor_form.js?v=1"></script>
{% include 'embed_boot_scripts.html' %}
<script src="/static/instance_embed.js?v=2"></script>
<script src="/static/instance_embed.js?v=3"></script>
</body>
</html>