Skip to content

Commit

Permalink
fix: typescript import error
Browse files Browse the repository at this point in the history
  • Loading branch information
mvgrimes committed Jul 28, 2023
1 parent 3f24e5c commit 9bedcb8
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 26 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Helpful commands to run while developing:

## Thanks

* Thanks to the authors of (todotxt)[https://github.com/todotxt].
* Thanks to the authors of (SwiftoDo)[https://swiftodoapp.com/] for documenting
* Thanks to the authors of [todotxt](https://github.com/todotxt).
* Thanks to the authors of [SwiftoDo](https://swiftodoapp.com/) for documenting
the due and recurring extensions to the spec.

19 changes: 9 additions & 10 deletions dist/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"id": "obsidian-todotxt-plugin",
"name": "TodoTxt",
"version": "1.0.0",
"minAppVersion": "0.15.0",
"description": "This is a sample plugin for Obsidian. This plugin demonstrates some of the capabilities of the Obsidian API.",
"author": "Mark Grimes",
"authorUrl": "https://obsidian.md",
"fundingUrl": "https://obsidian.md/pricing",
"isDesktopOnly": false
}
"id": "todotxt",
"name": "TodoTxt",
"version": "1.2.2",
"minAppVersion": "0.15.0",
"description": "Manage Todo.txt files.",
"author": "Mark Grimes",
"authorUrl": "https://github.com/mvgrimes",
"isDesktopOnly": false
}
13 changes: 11 additions & 2 deletions dist/versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"1.0.0": "0.15.0"
}
"1.0.0": "0.15.0",
"1.0.1": "0.15.0",
"1.0.2": "0.15.0",
"1.0.3": "0.15.0",
"1.0.4": "0.15.0",
"1.0.5": "0.15.0",
"1.1.0": "0.15.0",
"1.2.0": "0.15.0",
"1.2.1": "0.15.0",
"1.2.2": "0.15.0"
}
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "todotxt",
"name": "TodoTxt",
"version": "1.2.1",
"version": "1.2.2",
"minAppVersion": "0.15.0",
"description": "Manage Todo.txt files.",
"author": "Mark Grimes",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-sample-plugin",
"version": "1.2.1",
"version": "1.2.2",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"main": "dist/main.js",
"scripts": {
Expand All @@ -9,7 +9,8 @@
"css": "postcss -o ./dist/styles.css --watch ./src/styles.css",
"cp": "nodemon --watch ./dist --ext js,json,css --exec bash -c 'cp dist/* $HOME/Notes/.obsidian/plugins/todotxt-plugin/'",
"version": "node ./scripts/version-bump.mjs",
"release": "zx ./scripts/release.mjs",
"release": "yarn run build && zx ./scripts/release.mjs",
"deploy": "yarn run release",
"pretty": "prettier --write 'src/**/*.{js,ts,jsx,tsx}'"
},
"keywords": [],
Expand Down
9 changes: 5 additions & 4 deletions src/ui/create-todo-dialog.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React, {
import * as React from 'react';
import {
useState,
type KeyboardEvent,
type MouseEvent,
type ChangeEvent,
KeyboardEvent,
MouseEvent,
ChangeEvent,
} from 'react';

interface CreateTodoProps {
Expand Down
3 changes: 2 additions & 1 deletion src/ui/delete-todo-dialog.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { type KeyboardEvent, type MouseEvent } from 'react';
import * as React from 'react';
import type { KeyboardEvent, MouseEvent } from 'react';

interface DeleteTodoProps {
onDelete: (t: boolean) => void;
Expand Down
3 changes: 2 additions & 1 deletion src/ui/edit-todo-dialog.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {
import * as React from 'react';
import {
useState,
type ChangeEvent,
type KeyboardEvent,
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"1.0.5": "0.15.0",
"1.1.0": "0.15.0",
"1.2.0": "0.15.0",
"1.2.1": "0.15.0"
"1.2.1": "0.15.0",
"1.2.2": "0.15.0"
}

0 comments on commit 9bedcb8

Please sign in to comment.