Skip to content

Commit

Permalink
Merge pull request #4 from denisoed/develop
Browse files Browse the repository at this point in the history
Develop to Master
  • Loading branch information
denisoed authored Jan 27, 2021
2 parents a88c5bc + 4b2e5a0 commit dba789a
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 15 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

[![Developed by Mad Devs](https://maddevs.io/badge-dark.svg)](https://maddevs.io/)
 
![License MIT](https://img.shields.io/github/license/denisoed/obsidian-orthography)
 
![Version](https://img.shields.io/github/manifest-json/v/denisoed/obsidian-orthography)
 

Obsidian plugin to check & fix orthography errors in text

Expand All @@ -18,7 +22,3 @@ Obsidian plugin to check & fix orthography errors in text
* Search for spelling errors in the text
* Displaying options for correcting word mistakes
* Correct a word mistake in one click

## Issues

* WIP: [Do not deselect words when updating text](https://github.com/denisoed/obsidian-orthography/issues/1)
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"id": "obsidian-orthography",
"name": "Obsidian Orthography",
"version": "1.0.1",
"version": "1.0.2",
"minAppVersion": "0.10.8",
"description": "Obsidian plugin to check orthography errors",
"description": "Obsidian plugin to check & fix orthography errors in text",
"author": "Denisoed",
"authorUrl": "https://github.com/denisoed",
"isDesktopOnly": false
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-orthography",
"version": "1.0.1",
"version": "1.0.2",
"description": "Check orthography plugin for Obsidian (https://obsidian.md)",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class OrthographyPlugin extends Plugin {
});
}

onunload() {
onunload(): void {
this.emitter.off('onUpdateSettings', this.onUpdateSettings.bind(this));
this.runner.destroy();
this.tooltip.destroy();
Expand Down
2 changes: 1 addition & 1 deletion src/orthography/orthographyChecker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class OrthographyChecker implements IOrthographyChecker {
}
}

public updateDataPos() {
public updateDataPos(): Promise<any> {
return new Promise<any>((resolve, reject) => {
this.getHintsFromServer()
.then((hints) => {
Expand Down
4 changes: 2 additions & 2 deletions src/orthography/orthographyRunner.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Notice } from 'obsidian';
import { Notice, Events } from 'obsidian';
import { OrthographySettings } from 'src/settings';
import { OrthographyChecker } from './orthographyChecker';
import type { App } from 'obsidian';
Expand All @@ -23,7 +23,7 @@ export class OrthographyRunner implements IOrthographyRunner {
private onClickByBtn: any;
private runner: any;

constructor(app: App, settings: OrthographySettings, emitter: any) {
constructor(app: App, settings: OrthographySettings, emitter: Events) {
this.app = app;
this.settings = settings;
this.emitter = emitter;
Expand Down
4 changes: 2 additions & 2 deletions src/orthography/orthographyTooltip.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { App } from 'obsidian';
import type { App, Events } from 'obsidian';
import { OrthographyChecker } from './orthographyChecker';
import { OrthographySettings } from 'src/settings';
import {
Expand All @@ -23,7 +23,7 @@ export class OrthographyTooltip implements IOrthographyTooltip {
private eventTooltipToggle: any;
private eventReplaceWord: any;

constructor(app: App, settings: OrthographySettings, emitter: any) {
constructor(app: App, settings: OrthographySettings, emitter: Events) {
this.app = app;
this.settings = settings;
this.emitter = emitter;
Expand Down
3 changes: 2 additions & 1 deletion src/settings/orthographySettings.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { Events } from 'obsidian';
import type OrthographyPlugin from '../main';

interface SettingsData {
Expand All @@ -16,7 +17,7 @@ export class OrthographySettings {
private data: SettingsData;
private emitter: any;

constructor(private plugin: OrthographyPlugin, emitter: any) {
constructor(private plugin: OrthographyPlugin, emitter: Events) {
this.data = getDefaultData();
this.emitter = emitter;
}
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"1.0.1": "0.10.8"
"1.0.2": "0.10.8"
}

0 comments on commit dba789a

Please sign in to comment.