update at 2025-10-16 14:03:45
This commit is contained in:
@@ -4,19 +4,19 @@
|
||||
*/
|
||||
|
||||
import { App, TextAreaComponent, PluginSettingTab, Setting, Notice, sanitizeHTMLToDom } from 'obsidian';
|
||||
import NoteToMpPlugin from './main';
|
||||
import Note2AnyPlugin from './main';
|
||||
import { wxGetToken, wxEncrypt } from './wechat/weixin-api';
|
||||
import { cleanMathCache } from './markdown/math';
|
||||
import { NMPSettings } from './settings';
|
||||
import { DocModal } from './doc-modal';
|
||||
|
||||
export class NoteToMpSettingTab extends PluginSettingTab {
|
||||
plugin: NoteToMpPlugin;
|
||||
export class Note2AnySettingTab extends PluginSettingTab {
|
||||
plugin: Note2AnyPlugin;
|
||||
wxInfo: string;
|
||||
wxTextArea: TextAreaComponent|null;
|
||||
settings: NMPSettings;
|
||||
|
||||
constructor(app: App, plugin: NoteToMpPlugin) {
|
||||
constructor(app: App, plugin: Note2AnyPlugin) {
|
||||
super(app, plugin);
|
||||
this.plugin = plugin;
|
||||
this.settings = NMPSettings.getInstance();
|
||||
@@ -425,7 +425,7 @@ export class NoteToMpSettingTab extends PluginSettingTab {
|
||||
private renderImageTab(panel: HTMLElement): void {
|
||||
new Setting(panel)
|
||||
.setName('切图保存路径')
|
||||
.setDesc('切图文件的保存目录,默认:/Users/gavin/note2mp/images/xhs')
|
||||
.setDesc('切图文件的保存目录,默认:/Users/gavin/note2any/images/xhs')
|
||||
.addText(text => {
|
||||
text.setPlaceholder('例如 /Users/xxx/images/xhs')
|
||||
.setValue(this.settings.sliceImageSavePath || '')
|
||||
|
||||
Reference in New Issue
Block a user