Skip to content

Commit

Permalink
bump version + fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mProjectsCode committed Oct 18, 2022
1 parent bdda814 commit 752f13f
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-media-db-plugin",
"name": "Media DB Plugin",
"version": "0.4.0",
"version": "0.4.1",
"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.",
"author": "Moritz Jung",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"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.",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/modals/MediaDbPreviewModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class MediaDbPreviewModal extends Modal {
onOpen(): void {
this.preview();
}

onClose(): void {
this.closeCallback();
}
Expand Down
2 changes: 1 addition & 1 deletion src/models/BoardGameModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class BoardGameModel extends MediaTypeModel {

migrateObject(this, obj, this);

if(!obj.hasOwnProperty('userData')) {
if (!obj.hasOwnProperty('userData')) {
migrateObject(this.userData, obj, this.userData);
}

Expand Down
2 changes: 1 addition & 1 deletion src/models/GameModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class GameModel extends MediaTypeModel {

migrateObject(this, obj, this);

if(!obj.hasOwnProperty('userData')) {
if (!obj.hasOwnProperty('userData')) {
migrateObject(this.userData, obj, this.userData);
}

Expand Down
2 changes: 1 addition & 1 deletion src/models/MovieModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class MovieModel extends MediaTypeModel {

migrateObject(this, obj, this);

if(!obj.hasOwnProperty('userData')) {
if (!obj.hasOwnProperty('userData')) {
migrateObject(this.userData, obj, this.userData);
}

Expand Down
2 changes: 1 addition & 1 deletion src/models/MusicReleaseModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class MusicReleaseModel extends MediaTypeModel {

migrateObject(this, obj, this);

if(!obj.hasOwnProperty('userData')) {
if (!obj.hasOwnProperty('userData')) {
migrateObject(this.userData, obj, this.userData);
}

Expand Down
2 changes: 1 addition & 1 deletion src/models/SeriesModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class SeriesModel extends MediaTypeModel {

migrateObject(this, obj, this);

if(!obj.hasOwnProperty('userData')) {
if (!obj.hasOwnProperty('userData')) {
migrateObject(this.userData, obj, this.userData);
}

Expand Down
2 changes: 1 addition & 1 deletion src/models/WikiModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class WikiModel extends MediaTypeModel {

migrateObject(this, obj, this);

if(!obj.hasOwnProperty('userData')) {
if (!obj.hasOwnProperty('userData')) {
migrateObject(this.userData, obj, this.userData);
}

Expand Down
11 changes: 5 additions & 6 deletions src/settings/PropertyMappingModelComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
{ #each model.properties as property }
<div class="media-db-plugin-property-mapping-element">
<div class="media-db-plugin-property-mapping-element-property-name-wrapper">
<pre
class="media-db-plugin-property-mapping-element-property-name"><code>{property.property}</code></pre>
<pre class="media-db-plugin-property-mapping-element-property-name"><code>{property.property}</code></pre>
</div>
{ #if property.locked }
<div class="media-db-plugin-property-binding-text">
Expand All @@ -46,16 +45,16 @@
<div class="media-db-plugin-property-mapping-to">
<input type="text" spellcheck="false" bind:value="{property.newProperty}">
</div>
{ /if }
{ /if }
{ /if }
{ /if }
</div>
{ /each }
{ /each }
</div>
{ #if !validationResult?.res }
<div class="media-db-plugin-property-mapping-validation">
{validationResult?.err?.message}
</div>
{ /if }
{ /if }
<button
class="media-db-plugin-property-mappings-save-button {validationResult?.res ? 'mod-cta' : 'mod-muted'}"
on:click={() => { if(model.validate().res) save(model) }}>Save
Expand Down
2 changes: 1 addition & 1 deletion src/settings/PropertyMappingModelsComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="setting-item" style="display: flex; gap: 10px; flex-direction: column; align-items: stretch;">
{ #each models as model }
<PropertyMappingModelComponent model={model} save={save}></PropertyMappingModelComponent>
{ /each }
{ /each }

<!--
<pre>{JSON.stringify(models, null, 4)}</pre>
Expand Down
2 changes: 1 addition & 1 deletion src/utils/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {TFile, TFolder} from 'obsidian';
export const pluginName: string = 'obsidian-media-db-plugin';
export const contactEmail: string = '[email protected]';
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 function wrapAround(value: number, size: number): number {
Expand Down

0 comments on commit 752f13f

Please sign in to comment.