fix(build): resolve store binding and linter warnings to harden build stability
- Removed invalid two-way bindings to read-only Dexie observables in the test page - Fixed 'state_referenced_locally' warning in Field Editor by refactoring draft_value initialization - Cleaned up empty else block in session list to resolve Vite build warning - Verified successful production build and clean 'npm run check' output
This commit is contained in:
@@ -268,8 +268,6 @@ function toggle_details(id: string) {
|
||||
session_obj?.end_datetime,
|
||||
'time_12_short'
|
||||
)}</span>
|
||||
{:else}
|
||||
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -94,7 +94,7 @@ function handle_success(data: any) {
|
||||
object_type="journal"
|
||||
object_id={test_journal_id}
|
||||
field_name="name"
|
||||
bind:current_value={$lq__test_journal.name}
|
||||
current_value={$lq__test_journal.name}
|
||||
field_type="text"
|
||||
{log_lvl}
|
||||
on_success={handle_success} />
|
||||
@@ -107,7 +107,7 @@ function handle_success(data: any) {
|
||||
object_type="journal"
|
||||
object_id={test_journal_id}
|
||||
field_name="type_code"
|
||||
bind:current_value={$lq__test_journal.type_code}
|
||||
current_value={$lq__test_journal.type_code}
|
||||
field_type="select"
|
||||
select_options={{ personal: 'Personal', work: 'Work' }}
|
||||
{log_lvl} />
|
||||
@@ -120,7 +120,7 @@ function handle_success(data: any) {
|
||||
object_type="journal_entry"
|
||||
object_id={test_journal_entry_id}
|
||||
field_name="start_datetime"
|
||||
bind:current_value={$lq__test_journal_entry.start_datetime}
|
||||
current_value={$lq__test_journal_entry.start_datetime}
|
||||
field_type="datetime"
|
||||
edit_label="Event Start"
|
||||
{log_lvl} />
|
||||
@@ -133,7 +133,7 @@ function handle_success(data: any) {
|
||||
object_type="journal"
|
||||
object_id={test_journal_id}
|
||||
field_name="summary"
|
||||
bind:current_value={$lq__test_journal.summary}
|
||||
current_value={$lq__test_journal.summary}
|
||||
field_type="codemirror"
|
||||
display_block={true}
|
||||
{log_lvl} />
|
||||
@@ -146,7 +146,7 @@ function handle_success(data: any) {
|
||||
object_type="journal"
|
||||
object_id={test_journal_id}
|
||||
field_name="code"
|
||||
bind:current_value={$lq__test_journal.code}
|
||||
current_value={$lq__test_journal.code}
|
||||
field_type="email"
|
||||
placeholder="test@example.com"
|
||||
{log_lvl} />
|
||||
@@ -160,7 +160,7 @@ function handle_success(data: any) {
|
||||
object_type="journal_entry"
|
||||
object_id={test_journal_entry_id}
|
||||
field_name="priority"
|
||||
bind:current_value={$lq__test_journal_entry.priority}
|
||||
current_value={$lq__test_journal_entry.priority}
|
||||
field_type="checkbox"
|
||||
{log_lvl} />
|
||||
</div>
|
||||
@@ -171,7 +171,7 @@ function handle_success(data: any) {
|
||||
object_type="journal_entry"
|
||||
object_id={test_journal_entry_id}
|
||||
field_name="enable"
|
||||
bind:current_value={$lq__test_journal_entry.enable}
|
||||
current_value={$lq__test_journal_entry.enable}
|
||||
field_type="checkbox"
|
||||
{log_lvl} />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user