-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add user defined substring, which when present in assistant automat…
…ically adds your todo tag (ex. "electricit 22 !!") - created new settings page for assistant configs
- Loading branch information
1 parent
3e532cc
commit f56a3fa
Showing
11 changed files
with
87 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<template> | ||
<div class="app-form"> | ||
<app-top-toolbar /> | ||
|
||
<van-form @submit="onSave" class=""> | ||
<van-cell-group inset> | ||
<div class="van-cell-group-title">General:</div> | ||
|
||
<app-field left-icon="link-o" v-model="assistantTodoTagMatcher" label="Trailing substring to auto add the todo tag" :rules="[{ required: true, message: 'This field is required' }]" required /> | ||
</van-cell-group> | ||
|
||
<app-button-form-save /> | ||
</van-form> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { onMounted, ref } from 'vue' | ||
import { useProfileStore } from '~/stores/profileStore' | ||
import { useDataStore } from '~/stores/dataStore' | ||
import UIUtils from '~/utils/UIUtils' | ||
import { useToolbar } from '~/composables/useToolbar' | ||
import RouteConstants from '~/constants/RouteConstants' | ||
import { NUMBER_FORMAT } from '~/utils/MathUtils.js' | ||
import TablerIconConstants from '~/constants/TablerIconConstants.js' | ||
import { saveSettingsToStore, watchSettingsStore } from '~/utils/SettingUtils.js' | ||
const profileStore = useProfileStore() | ||
const dataStore = useDataStore() | ||
const assistantTodoTagMatcher = ref('') | ||
const syncedSettings = [{ store: profileStore, path: 'assistantTodoTagMatcher', ref: assistantTodoTagMatcher }] | ||
watchSettingsStore(syncedSettings) | ||
const onSave = async () => { | ||
saveSettingsToStore(syncedSettings) | ||
await profileStore.writeProfile() | ||
UIUtils.showToastSuccess('Settings saved') | ||
} | ||
const toolbar = useToolbar() | ||
toolbar.init({ | ||
title: 'Assistant settings', | ||
backRoute: RouteConstants.ROUTE_SETTINGS, | ||
}) | ||
onMounted(() => { | ||
animateSettings() | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters