Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebrynes7 committed Nov 26, 2023
1 parent 71bc89d commit 41a39ef
Show file tree
Hide file tree
Showing 33 changed files with 910 additions and 1,105 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "todoist-plugin",
"name": "obsidian-todoist-plugin",
"version": "1.11.1",
"description": "A Todoist plugin for Obsidian",
"main": "src/index.js",
"scripts": {
"dev": "npm run build && cp -R dist/* test-vault/.obsidian/plugins/todoist-sync-plugin/",
"dev": "npm run build && cp -R dist/* ../../test-vault/.obsidian/plugins/todoist-sync-plugin/",
"build": "svelte-check && rollup -c",
"test": "mocha -r ts-node/register src/**/*.test.ts",
"format": "prettier --write src/**/*",
Expand All @@ -13,11 +13,13 @@
"author": "Jamie Brynes",
"license": "ISC",
"dependencies": {
"@types/node": "^18.11.17",
"camelize": "^1.0.1",
"moment": "^2.29.4",
"obsidian": "0.15",
"snakeize": "^0.1.0",
"svelte": "^3.55.0",
"svelte-select": "^5.0.1",
"todoist-api": "^1.0.0",
"tslib": "^2.4.1",
"yaml": "^2.1.3"
},
Expand All @@ -28,6 +30,7 @@
"@tsconfig/svelte": "^3.0.0",
"@types/chai": "^4.3.4",
"@types/mocha": "^10.0.1",
"@types/node": "^18.11.17",
"chai": "^4.3.7",
"mocha": "^10.2.0",
"prettier": "^2.8.1",
Expand Down
257 changes: 0 additions & 257 deletions src/api/api.ts

This file was deleted.

6 changes: 6 additions & 0 deletions src/api/domain/label.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export type LabelId = string;

export type Label = {
id: LabelId,
name: string,
}
8 changes: 8 additions & 0 deletions src/api/domain/project.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export type ProjectId = string;

export type Project = {
id: ProjectId,
parentId: ProjectId | null,
name: string,
order: number,
}
10 changes: 10 additions & 0 deletions src/api/domain/section.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { ProjectId } from "./project";

export type SectionId = string;

export type Section = {
id: SectionId,
projectId: ProjectId,
name: string,
order: number,
}
Loading

0 comments on commit 41a39ef

Please sign in to comment.