- 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.
21 lines
610 B
TypeScript
21 lines
610 B
TypeScript
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);
|
|
}
|
|
}
|