Refactored editor.page.html to use a Vue-style `data()` function for reactive state, adding a new `content` property and cleaning up redundant inline styles. Updated profile-form.html to replace single `error` handling with field-specific `errors.<field>` bindings, improving form validation clarity and user feedback.
55 lines
1.9 KiB
HTML
55 lines
1.9 KiB
HTML
<div id="main-content">
|
|
<div class="content-section active">
|
|
<div class="app-container">
|
|
<div class="content-container">
|
|
<div class="header">
|
|
<h1>📊 Tables</h1>
|
|
<div class="subtitle">Excel Clone - Celebrating Lotus 1-2-3 Legacy 🎉</div>
|
|
</div>
|
|
|
|
<div class="resizable-container">
|
|
<div class="resizable-panel left" style="width: 30%">
|
|
<!-- Left panel content -->
|
|
</div>
|
|
<div class="resizable-handle"></div>
|
|
<div class="resizable-panel right" style="width: 70%">
|
|
<div class="spreadsheet-content">
|
|
<table>
|
|
<thead id="tableHead"></thead>
|
|
<tbody id="tableBody"></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Formula bar -->
|
|
<div class="formula-bar">
|
|
<span id="cellRef">A1</span>
|
|
<input type="text"
|
|
id="formulaInput"
|
|
placeholder="Enter formula..."
|
|
@keypress.enter="updateCellValue($event.target.value)"
|
|
x-model="formulaInputValue">
|
|
</div>
|
|
|
|
<!-- Status bar -->
|
|
<div class="status-bar">
|
|
<span>Rows: <span id="rowCount" x-text="rows"></span></span>
|
|
<span>Columns: <span id="colCount" x-text="cols"></span></span>
|
|
</div>
|
|
|
|
<!-- Toolbar -->
|
|
<div class="toolbar">
|
|
<button @click="addRow()">Add Row</button>
|
|
<button @click="addColumn()">Add Column</button>
|
|
<button @click="deleteRow()">Delete Row</button>
|
|
<button @click="deleteColumn()">Delete Column</button>
|
|
<button @click="sort()">Sort</button>
|
|
<button @click="sum()">Sum</button>
|
|
<button @click="average()">Average</button>
|
|
<button @click="exportData()">Export</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|