bump version + fix formatting
This commit is contained in:
parent
bdda8146aa
commit
752f13f8bf
12 changed files with 16 additions and 17 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "obsidian-media-db-plugin",
|
"id": "obsidian-media-db-plugin",
|
||||||
"name": "Media DB Plugin",
|
"name": "Media DB Plugin",
|
||||||
"version": "0.4.0",
|
"version": "0.4.1",
|
||||||
"minAppVersion": "0.14.0",
|
"minAppVersion": "0.14.0",
|
||||||
"description": "A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault.",
|
"description": "A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault.",
|
||||||
"author": "Moritz Jung",
|
"author": "Moritz Jung",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "obsidian-media-db-plugin",
|
"name": "obsidian-media-db-plugin",
|
||||||
"version": "0.4.0",
|
"version": "0.4.1",
|
||||||
"description": "A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault.",
|
"description": "A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault.",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ export class MediaDbPreviewModal extends Modal {
|
||||||
onOpen(): void {
|
onOpen(): void {
|
||||||
this.preview();
|
this.preview();
|
||||||
}
|
}
|
||||||
|
|
||||||
onClose(): void {
|
onClose(): void {
|
||||||
this.closeCallback();
|
this.closeCallback();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ export class BoardGameModel extends MediaTypeModel {
|
||||||
|
|
||||||
migrateObject(this, obj, this);
|
migrateObject(this, obj, this);
|
||||||
|
|
||||||
if(!obj.hasOwnProperty('userData')) {
|
if (!obj.hasOwnProperty('userData')) {
|
||||||
migrateObject(this.userData, obj, this.userData);
|
migrateObject(this.userData, obj, this.userData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ export class GameModel extends MediaTypeModel {
|
||||||
|
|
||||||
migrateObject(this, obj, this);
|
migrateObject(this, obj, this);
|
||||||
|
|
||||||
if(!obj.hasOwnProperty('userData')) {
|
if (!obj.hasOwnProperty('userData')) {
|
||||||
migrateObject(this.userData, obj, this.userData);
|
migrateObject(this.userData, obj, this.userData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ export class MovieModel extends MediaTypeModel {
|
||||||
|
|
||||||
migrateObject(this, obj, this);
|
migrateObject(this, obj, this);
|
||||||
|
|
||||||
if(!obj.hasOwnProperty('userData')) {
|
if (!obj.hasOwnProperty('userData')) {
|
||||||
migrateObject(this.userData, obj, this.userData);
|
migrateObject(this.userData, obj, this.userData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ export class MusicReleaseModel extends MediaTypeModel {
|
||||||
|
|
||||||
migrateObject(this, obj, this);
|
migrateObject(this, obj, this);
|
||||||
|
|
||||||
if(!obj.hasOwnProperty('userData')) {
|
if (!obj.hasOwnProperty('userData')) {
|
||||||
migrateObject(this.userData, obj, this.userData);
|
migrateObject(this.userData, obj, this.userData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ export class SeriesModel extends MediaTypeModel {
|
||||||
|
|
||||||
migrateObject(this, obj, this);
|
migrateObject(this, obj, this);
|
||||||
|
|
||||||
if(!obj.hasOwnProperty('userData')) {
|
if (!obj.hasOwnProperty('userData')) {
|
||||||
migrateObject(this.userData, obj, this.userData);
|
migrateObject(this.userData, obj, this.userData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ export class WikiModel extends MediaTypeModel {
|
||||||
|
|
||||||
migrateObject(this, obj, this);
|
migrateObject(this, obj, this);
|
||||||
|
|
||||||
if(!obj.hasOwnProperty('userData')) {
|
if (!obj.hasOwnProperty('userData')) {
|
||||||
migrateObject(this.userData, obj, this.userData);
|
migrateObject(this.userData, obj, this.userData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,7 @@
|
||||||
{ #each model.properties as property }
|
{ #each model.properties as property }
|
||||||
<div class="media-db-plugin-property-mapping-element">
|
<div class="media-db-plugin-property-mapping-element">
|
||||||
<div class="media-db-plugin-property-mapping-element-property-name-wrapper">
|
<div class="media-db-plugin-property-mapping-element-property-name-wrapper">
|
||||||
<pre
|
<pre class="media-db-plugin-property-mapping-element-property-name"><code>{property.property}</code></pre>
|
||||||
class="media-db-plugin-property-mapping-element-property-name"><code>{property.property}</code></pre>
|
|
||||||
</div>
|
</div>
|
||||||
{ #if property.locked }
|
{ #if property.locked }
|
||||||
<div class="media-db-plugin-property-binding-text">
|
<div class="media-db-plugin-property-binding-text">
|
||||||
|
|
@ -46,16 +45,16 @@
|
||||||
<div class="media-db-plugin-property-mapping-to">
|
<div class="media-db-plugin-property-mapping-to">
|
||||||
<input type="text" spellcheck="false" bind:value="{property.newProperty}">
|
<input type="text" spellcheck="false" bind:value="{property.newProperty}">
|
||||||
</div>
|
</div>
|
||||||
{ /if }
|
{ /if }
|
||||||
{ /if }
|
{ /if }
|
||||||
</div>
|
</div>
|
||||||
{ /each }
|
{ /each }
|
||||||
</div>
|
</div>
|
||||||
{ #if !validationResult?.res }
|
{ #if !validationResult?.res }
|
||||||
<div class="media-db-plugin-property-mapping-validation">
|
<div class="media-db-plugin-property-mapping-validation">
|
||||||
{validationResult?.err?.message}
|
{validationResult?.err?.message}
|
||||||
</div>
|
</div>
|
||||||
{ /if }
|
{ /if }
|
||||||
<button
|
<button
|
||||||
class="media-db-plugin-property-mappings-save-button {validationResult?.res ? 'mod-cta' : 'mod-muted'}"
|
class="media-db-plugin-property-mappings-save-button {validationResult?.res ? 'mod-cta' : 'mod-muted'}"
|
||||||
on:click={() => { if(model.validate().res) save(model) }}>Save
|
on:click={() => { if(model.validate().res) save(model) }}>Save
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
<div class="setting-item" style="display: flex; gap: 10px; flex-direction: column; align-items: stretch;">
|
<div class="setting-item" style="display: flex; gap: 10px; flex-direction: column; align-items: stretch;">
|
||||||
{ #each models as model }
|
{ #each models as model }
|
||||||
<PropertyMappingModelComponent model={model} save={save}></PropertyMappingModelComponent>
|
<PropertyMappingModelComponent model={model} save={save}></PropertyMappingModelComponent>
|
||||||
{ /each }
|
{ /each }
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<pre>{JSON.stringify(models, null, 4)}</pre>
|
<pre>{JSON.stringify(models, null, 4)}</pre>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import {TFile, TFolder} from 'obsidian';
|
||||||
export const pluginName: string = 'obsidian-media-db-plugin';
|
export const pluginName: string = 'obsidian-media-db-plugin';
|
||||||
export const contactEmail: string = 'm.projects.code@gmail.com';
|
export const contactEmail: string = 'm.projects.code@gmail.com';
|
||||||
export const mediaDbTag: string = 'mediaDB';
|
export const mediaDbTag: string = 'mediaDB';
|
||||||
export const mediaDbVersion: string = '0.4.0';
|
export const mediaDbVersion: string = '0.4.1';
|
||||||
export const debug: boolean = true;
|
export const debug: boolean = true;
|
||||||
|
|
||||||
export function wrapAround(value: number, size: number): number {
|
export function wrapAround(value: number, size: number): number {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue