index.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta name="color-scheme" content="light">
  7. <title>电路板选脚查看器</title>
  8. <link rel="stylesheet" href="app.css">
  9. </head>
  10. <body>
  11. <div class="app-shell" id="app">
  12. <header class="topbar">
  13. <div class="product-block">
  14. <span class="product-mark" aria-hidden="true"></span>
  15. <div>
  16. <div class="product-title">FCB 电路板选脚查看器</div>
  17. <div class="product-meta" id="board-summary">正在载入板数据</div>
  18. </div>
  19. </div>
  20. <div class="search-block">
  21. <label class="search-field" for="board-search">
  22. <span aria-hidden="true">⌕</span>
  23. <input
  24. id="board-search"
  25. type="search"
  26. autocomplete="off"
  27. spellcheck="false"
  28. placeholder="位号、针号、网络、功能、能力或 FPGA 球位"
  29. aria-controls="search-results"
  30. aria-autocomplete="list"
  31. >
  32. </label>
  33. <div id="search-results" class="search-results" role="listbox" aria-label="搜索结果" hidden></div>
  34. </div>
  35. <div class="status-cluster">
  36. <span id="app-status" class="status-badge status-loading" role="status">校验中</span>
  37. <button id="drawer-toggle" class="icon-button drawer-toggle" type="button" title="展开详情" aria-label="展开详情" aria-expanded="true">
  38. <span aria-hidden="true">⌄</span>
  39. </button>
  40. </div>
  41. </header>
  42. <main class="workspace">
  43. <section class="board-pane" aria-label="电路板工作区">
  44. <div id="stale-banner" class="stale-banner" role="alert" hidden></div>
  45. <div class="board-toolbar">
  46. <fieldset id="category-filters" class="segmented filters" aria-label="座子类别">
  47. <legend class="sr-only">座子类别</legend>
  48. <label><input type="checkbox" value="CON" checked><span>CON</span></label>
  49. <label><input type="checkbox" value="J" checked><span>J</span></label>
  50. <label><input type="checkbox" value="PL" checked><span>PL</span></label>
  51. <label><input type="checkbox" value="TP" checked><span>TP</span></label>
  52. </fieldset>
  53. <fieldset id="layer-controls" class="layer-controls" aria-label="板图图层">
  54. <legend class="sr-only">板图图层</legend>
  55. <label><input type="checkbox" value="mask" checked><span class="swatch swatch-mask"></span>阻焊/板框</label>
  56. <label><input type="checkbox" value="silk" checked><span class="swatch swatch-silk"></span>丝印</label>
  57. <label><input type="checkbox" value="copper" checked><span class="swatch swatch-copper"></span>铜层</label>
  58. <label id="photo-control" class="disabled-control" title="当前版本未配置照片叠层"><input id="photo-layer" type="checkbox" value="photo" disabled><span class="swatch swatch-photo"></span><span id="photo-label">照片未配置</span></label>
  59. </fieldset>
  60. <div class="view-tools" aria-label="视图工具">
  61. <button id="zoom-out" class="icon-button" type="button" title="缩小" aria-label="缩小"><span aria-hidden="true">−</span></button>
  62. <button id="zoom-in" class="icon-button" type="button" title="放大" aria-label="放大"><span aria-hidden="true">+</span></button>
  63. <button id="reset-view" class="icon-button" type="button" title="重置视图" aria-label="重置视图"><span aria-hidden="true">↺</span></button>
  64. </div>
  65. </div>
  66. <div id="board-viewport" class="board-viewport">
  67. <svg id="board-svg" role="img" aria-label="电路板视图" tabindex="0" preserveAspectRatio="xMidYMid meet">
  68. <g id="asset-layers" aria-hidden="true">
  69. <image id="layer-mask" href="/generated/board-mask-edge.svg" preserveAspectRatio="none"></image>
  70. <image id="layer-silk" href="/generated/board-silkscreen.svg" preserveAspectRatio="none"></image>
  71. <image id="layer-copper" href="/generated/board-copper.svg" preserveAspectRatio="none"></image>
  72. <image id="layer-photo" preserveAspectRatio="none" hidden></image>
  73. </g>
  74. <g id="net-layer" aria-hidden="true"></g>
  75. <g id="hotspot-layer"></g>
  76. <g id="pin-layer"></g>
  77. <g id="selection-layer" aria-hidden="true"></g>
  78. </svg>
  79. <div id="board-loading" class="board-loading" role="status">正在载入 110 个接触点</div>
  80. <div id="board-tooltip" class="board-tooltip" role="tooltip" hidden></div>
  81. <div class="coordinate-rail" aria-hidden="true"><span>0</span><span>215 mm</span><span>430 mm</span></div>
  82. </div>
  83. <footer class="board-footer">
  84. <span id="visible-count">0 个座子</span>
  85. <span id="zoom-readout">100%</span>
  86. <span id="selection-readout">未选择</span>
  87. </footer>
  88. </section>
  89. <aside id="detail-panel" class="detail-panel" aria-label="座子与针脚详情">
  90. <div class="drawer-handle" aria-hidden="true"></div>
  91. <div class="detail-tabs" role="tablist" aria-label="详情视图">
  92. <button id="detail-tab" type="button" role="tab" aria-selected="true" aria-controls="detail-content">座子详情</button>
  93. <button id="candidate-tab" type="button" role="tab" aria-selected="false" aria-controls="candidate-content">选脚辅助</button>
  94. </div>
  95. <section id="detail-content" class="panel-content" role="tabpanel" aria-labelledby="detail-tab"></section>
  96. <section id="candidate-content" class="panel-content" role="tabpanel" aria-labelledby="candidate-tab" hidden>
  97. <div class="candidate-controls">
  98. <label for="capability-select">目标能力</label>
  99. <select id="capability-select">
  100. <option value="uart_tx">UART TX</option>
  101. <option value="uart_rx">UART RX</option>
  102. <option value="pwm">PWM</option>
  103. <option value="gpio_output">GPIO 输出</option>
  104. <option value="gpio_input">GPIO 输入</option>
  105. <option value="tach">转速输入</option>
  106. <option value="fan_tach">风扇转速输入</option>
  107. <option value="presence">在位检测</option>
  108. <option value="gpio">通用 GPIO</option>
  109. </select>
  110. </div>
  111. <div id="candidate-list" class="candidate-list"></div>
  112. </section>
  113. </aside>
  114. </main>
  115. </div>
  116. <script type="module" src="app.js"></script>
  117. </body>
  118. </html>