build fixes

pull/526/head
Florian Geiselhart 2024-02-29 17:45:38 +01:00
parent 09eea0a7f8
commit f337f3a65d
5 changed files with 22 additions and 9 deletions

View File

@ -17,7 +17,7 @@ export interface GenDiffInfo {
empty: boolean
ownFile: string
otherFile: string
diff: object
diff: any
}
export const getTargetFolderFiles = async (folder_path: string) => {

View File

@ -2,7 +2,7 @@
import { CaretRightOutlined } from '@/icon'
import type { GenDiffInfo } from '@/api/files'
const props = defineProps<{
defineProps<{
genDiffToPrevious: GenDiffInfo
genDiffToNext: GenDiffInfo
genInfo?: string
@ -83,7 +83,7 @@ function hasOtherProps(diff: Record<string, unknown>) {
<div v-if="hasOtherProps(genDiffToPrevious.diff)">
<span class="otherChangeIndicator">Other</span> props that changed:<br/><br/>
<ul>
<li v-for="(value, propertyName) in filterManualProps(genDiffToPrevious.diff)">{{ propertyName }}
<li v-for="(_value, propertyName) in filterManualProps(genDiffToPrevious.diff)">{{ propertyName }}
</li>
</ul>
</div>
@ -146,7 +146,7 @@ function hasOtherProps(diff: Record<string, unknown>) {
<div v-if="hasOtherProps(genDiffToNext.diff)">
<span class="otherChangeIndicator">Other</span> props that changed:<br/><br/>
<ul>
<li v-for="(value, propertyName) in filterManualProps(genDiffToNext.diff)">{{ propertyName }}
<li v-for="(_value, propertyName) in filterManualProps(genDiffToNext.diff)">{{ propertyName }}
</li>
</ul>
</div>

View File

@ -17,6 +17,7 @@ import type { GenDiffInfo } from '@/api/files'
const global = useGlobalStore()
const tagStore = useTagStore()
const props = withDefaults(
defineProps<{
file: FileNodeInfo
@ -28,12 +29,22 @@ const props = withDefaults(
enableRightClickMenu?: boolean,
enableCloseIcon?: boolean
isSelectedMutilFiles?: boolean
genDiffToPrevious: GenDiffInfo
genDiffToNext: GenDiffInfo
genDiffToPrevious?: GenDiffInfo
genDiffToNext?: GenDiffInfo
genInfo?: string
enableChangeIndicator: boolean
enableChangeIndicator?: boolean
}>(),
{ selected: false, enableRightClickMenu: true, enableCloseIcon: false }
{ selected: false, enableRightClickMenu: true, enableCloseIcon: false, genDiffToNext: () => ({
empty: true,
ownFile: "",
otherFile: "",
diff: "",
}), genDiffToPrevious: () => ({
empty: true,
ownFile: "",
otherFile: "",
diff: "",
}) }
)
const emit = defineEmits<{

View File

@ -173,6 +173,8 @@ export const zhHans = {
clientSpecificSettings: '客户端特有的设置',
initiateSoftwareStartupConfig: '初始化软件启动配置',
gridCellWidth: '网格单元宽度 (px)',
showChangeIndicators: 'Show Change Indicators',
seedAsChange: 'Seed as Change',
defaultGridCellWidth: '默认网格单元宽度 (px)',
thumbnailResolution: '缩略图分辨率 (px)',
livePreview: '实时预览',

View File

@ -137,7 +137,7 @@ function getGenDiff(ownGenInfo: any, idx: any, increment: any, ownFile: FileNode
//diff vars init
let gen_a = ownGenInfo
let gen_b = sortedFiles.value[idx + increment].gen_info_obj
let gen_b :any = sortedFiles.value[idx + increment].gen_info_obj
if(gen_b == undefined) {
return result
}