mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-07-07 20:21:12 +00:00
make the md prop private
This commit is contained in:
parent
284b3cc9f2
commit
b1765a1e3c
1 changed files with 6 additions and 3 deletions
|
|
@ -57,17 +57,20 @@ export default class ConfigMenu {
|
||||||
/** @type {Object.<string, DribbblishConfigItem>} */
|
/** @type {Object.<string, DribbblishConfigItem>} */
|
||||||
#config;
|
#config;
|
||||||
|
|
||||||
|
/** @type {MarkdownIt} */
|
||||||
|
#md;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.#config = {};
|
this.#config = {};
|
||||||
this.configButton = new Spicetify.Menu.Item("Dribbblish Settings", false, () => this.open());
|
this.configButton = new Spicetify.Menu.Item("Dribbblish Settings", false, () => this.open());
|
||||||
this.configButton.register();
|
this.configButton.register();
|
||||||
this.md = MarkdownIt({
|
this.#md = MarkdownIt({
|
||||||
html: true,
|
html: true,
|
||||||
breaks: true,
|
breaks: true,
|
||||||
linkify: true,
|
linkify: true,
|
||||||
typographer: true
|
typographer: true
|
||||||
});
|
});
|
||||||
this.md.use(MarkdownItAttrs);
|
this.#md.use(MarkdownItAttrs);
|
||||||
|
|
||||||
const container = document.createElement("div");
|
const container = document.createElement("div");
|
||||||
container.id = "dribbblish-config";
|
container.id = "dribbblish-config";
|
||||||
|
|
@ -119,7 +122,7 @@ export default class ConfigMenu {
|
||||||
${options.name}
|
${options.name}
|
||||||
${options.resetButton ? /* html */ `<button aria-label="Reset" class="dribbblish-config-item-reset main-trackCreditsModal-closeBtn">${svgUndo}</button>` : ""}
|
${options.resetButton ? /* html */ `<button aria-label="Reset" class="dribbblish-config-item-reset main-trackCreditsModal-closeBtn">${svgUndo}</button>` : ""}
|
||||||
</h2>
|
</h2>
|
||||||
<label class="main-type-mesto" empty="${options.description == null}" markdown>${this.md.render(options.description)}</label>
|
<label class="main-type-mesto" empty="${options.description == null}" markdown>${this.#md.render(options.description)}</label>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
: ""
|
: ""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue