Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcain committed Apr 11, 2021
1 parent 40ab2c9 commit 817c4cb
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# obsidian-calendar-plugin

| Announcing Calendar 2.0 Beta |
| ---------------------------- |

| A new version of the calendar plugin is on the horizon! If you'd like to try out the beta, there are instructions for how to download it [here](#installing-the-calendar-beta).

This plugin for [Obsidian](https://obsidian.md/) creates a simple Calendar view for visualizing and navigating between your daily notes.

![screenshot-full](https://raw.githubusercontent.com/liamcain/obsidian-calendar-plugin/master/images/screenshot-full.png)
Expand Down Expand Up @@ -142,6 +147,12 @@ If you want to style weekends to be distinguishable from weekdays, you can set t

![how-to-weekend](./images/how-to-weekend.png)

## Installing the Calendar Beta

To install the plugin manually, download the `main.js`, `styles.css`, and `manifest.json` from the latest Github Release.

Then move those files into your `<vault>/.obsidian/plugins/calendar/` folder. Restart Obsidian.

## Say Thanks 🙏

If you like this plugin and would like to buy me a coffee, you can!
Expand Down
1 change: 1 addition & 0 deletions popper.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module "@popperjs/svelte";
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import replace from "@rollup/plugin-replace";
import typescript from "@rollup/plugin-typescript";
import autoPreprocess from "svelte-preprocess";
import { env } from "process";

import pkg from "./package.json";

export default {
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ export default class CalendarPlugin extends Plugin {

async loadSettings(): Promise<void> {
const savedSettings = await this.loadData();
const settingsWithMigrationsApplied = applyMigrations(savedSettings);
const settingsWithMigrationsApplied = applyMigrations(savedSettings || {});

settings.update((existingSettings) => ({
...existingSettings,
...(settingsWithMigrationsApplied || {}),
...settingsWithMigrationsApplied,
}));
}

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "@tsconfig/svelte/tsconfig.json",

"include": ["src/**/*"],
"include": ["src/**/*", "popper.d.ts"],
"exclude": ["node_modules/*"],
"compilerOptions": {
"types": ["node", "svelte"],
Expand Down

0 comments on commit 817c4cb

Please sign in to comment.