Enhance interview functionality and settings; add YAML dependency
- Introduced profile selection modal for creating notes from interview profiles. - Added settings for interview configuration path, auto-starting interviews, and intercepting unresolved link clicks. - Updated package files to include YAML dependency for configuration handling. - Enhanced CSS for profile selection and interview wizard UI elements.
This commit is contained in:
1 parent
d577283af6
commit
bab84549e2
19 files changed
+2840
-5
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import type { App } from "obsidian";
|
||||
import { VocabularyLoader } from "../vocab/VocabularyLoader";
|
||||
import { parseInterviewConfig, validateConfig } from "./parseInterviewConfig";
|
||||
import type { InterviewConfig } from "./types";
|
||||
|
||||
/**
|
||||
* Loader for interview config YAML files.
|
||||
*/
|
||||
export class InterviewConfigLoader {
|
||||
/**
|
||||
* Load and parse interview config from vault.
|
||||
*/
|
||||
static async loadConfig(
|
||||
app: App,
|
||||
path: string
|
||||
): Promise<{ config: InterviewConfig; errors: string[] }> {
|
||||
const yamlText = await VocabularyLoader.loadText(app, path);
|
||||
return parseInterviewConfig(yamlText);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user