feat: more breaking changes

This commit is contained in:
2025-03-06 20:38:18 +00:00
parent 39ba6a5891
commit cda8230d7d
19 changed files with 638 additions and 559 deletions

View File

@ -4,7 +4,9 @@ import Button from 'primevue/button';
import * as path from '@tauri-apps/api/path';
import { open } from '@tauri-apps/plugin-dialog';
import { readTextFile, writeTextFile } from '@tauri-apps/plugin-fs';
import { invoke } from '../invoke';
import { usePrfStore } from '../stores';
const prf = usePrfStore();
const props = defineProps({
filename: String,
@ -53,13 +55,10 @@ const filePick = async () => {
};
(async () => {
const profileDir: string = await invoke('get_current_profile_dir');
if (props.filename === undefined) {
throw new Error('FileEditor without a filename');
}
target_path.value = await path.join(profileDir, props.filename);
target_path.value = await path.join(await prf.configDir, props.filename);
await load(target_path.value);
})();
</script>