Add change indicator control to global settings.
parent
36e1b6fd81
commit
73dcd1aab6
|
|
@ -50,6 +50,8 @@ export const en: IIBI18nMap = {
|
|||
gridCellWidth: 'Grid Cell Width (px)',
|
||||
showChangeIndicators: 'Show Change Indicators',
|
||||
seedAsChange: 'Seed as Change',
|
||||
defaultShowChangeIndicators: 'Default Show Change Indicators',
|
||||
defaultSeedAsChange: 'Default Compare Seed as Change',
|
||||
defaultGridCellWidth: 'Default Grid Cell Width (px)',
|
||||
thumbnailResolution: 'Thumbnail Resolution (px)',
|
||||
inputTargetFolderPath: 'Enter the absolute path of the target folder',
|
||||
|
|
|
|||
|
|
@ -184,7 +184,9 @@ export const zhHans = {
|
|||
initiateSoftwareStartupConfig: '初始化软件启动配置',
|
||||
gridCellWidth: '网格单元宽度 (px)',
|
||||
showChangeIndicators: '显示变更指示器',
|
||||
seedAsChange: 'Seed as Change',
|
||||
seedAsChange: '将Seed也进行比较',
|
||||
defaultShowChangeIndicators: '默认显示变更指示器',
|
||||
defaultSeedAsChange: '默认将Seed也进行比较',
|
||||
defaultGridCellWidth: '默认网格单元宽度 (px)',
|
||||
thumbnailResolution: '缩略图分辨率 (px)',
|
||||
livePreview: '实时预览',
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
import type { IIBI18nMap } from '.'
|
||||
|
||||
export const zhHant: Partial<IIBI18nMap> = {
|
||||
showChangeIndicators: '顯示變更指示器',
|
||||
seedAsChange: '將Seed也進行比較',
|
||||
defaultShowChangeIndicators: '預設顯示變更指示器',
|
||||
defaultSeedAsChange: '預設將Seed也進行比較',
|
||||
exit: '退出',
|
||||
'select-all': '全選',
|
||||
'rerverse-select': '反選',
|
||||
|
|
@ -11,7 +15,6 @@ export const zhHant: Partial<IIBI18nMap> = {
|
|||
saveSelectedAsJson: '儲存選取的圖像資訊',
|
||||
saveAllAsJson: '儲存所有圖像資訊',
|
||||
saveLoadedImageAsJson: '儲存已載入的圖像資訊',
|
||||
showChangeIndicators: '顯示變更指示器',
|
||||
scrollDownToComparePrompt: '向下滾查看Prompt比較',
|
||||
sourceText: '源文本',
|
||||
structuredData: '結構化數據',
|
||||
|
|
|
|||
|
|
@ -96,8 +96,8 @@ watch(sortedFiles, async (newList, oldList) => {
|
|||
}
|
||||
})
|
||||
|
||||
const changeIndchecked = ref<boolean>(true)
|
||||
const seedChangeChecked = ref<boolean>(false)
|
||||
const changeIndchecked = ref<boolean>(global.defaultChangeIndchecked)
|
||||
const seedChangeChecked = ref<boolean>(global.defaultSeedChangeChecked)
|
||||
|
||||
function getRawGenParams () {
|
||||
//extract fullpaths of all files from sortedfiles to array, but only if it's an actual file (not a folder or something else)
|
||||
|
|
|
|||
|
|
@ -47,5 +47,11 @@ watch(() => [g.enableThumbnail, g.gridThumbnailResolution], debounce(async () =>
|
|||
<img :width="g.defaultGridCellWidth" :height="g.defaultGridCellWidth" :src="g.enableThumbnail ? thuImg : sampleImg">
|
||||
</div>
|
||||
</a-form-item>
|
||||
<a-form-item :label="t('defaultShowChangeIndicators')">
|
||||
<a-switch v-model:checked="g.defaultChangeIndchecked" />
|
||||
</a-form-item>
|
||||
<a-form-item v-if="g.defaultChangeIndchecked" :label="t('defaultSeedAsChange')">
|
||||
<a-switch v-model:checked="g.defaultSeedChangeChecked" />
|
||||
</a-form-item>
|
||||
</template>
|
||||
<style lang="scss" scoped></style>
|
||||
|
|
|
|||
|
|
@ -253,6 +253,8 @@ export const useGlobalStore = defineStore(
|
|||
darkModeControl,
|
||||
defaultSortingMethod,
|
||||
defaultGridCellWidth,
|
||||
defaultChangeIndchecked: ref(true),
|
||||
defaultSeedChangeChecked: ref(false),
|
||||
pathAliasMap,
|
||||
createEmptyPane,
|
||||
lang,
|
||||
|
|
@ -281,6 +283,8 @@ export const useGlobalStore = defineStore(
|
|||
persist: {
|
||||
// debug: true,
|
||||
paths: [
|
||||
'defaultChangeIndchecked',
|
||||
'defaultSeedChangeChecked',
|
||||
'darkModeControl',
|
||||
'dontShowAgainNewImgOpts',
|
||||
'defaultSortingMethod',
|
||||
|
|
|
|||
Loading…
Reference in New Issue