Skip to content

Commit

Permalink
Merge pull request #609 from vigoren/develop
Browse files Browse the repository at this point in the history
2.4.18
  • Loading branch information
vigoren authored May 25, 2024
2 parents b1fb358 + eaf6670 commit 2bf69ed
Show file tree
Hide file tree
Showing 30 changed files with 8,305 additions and 15,626 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Change Log

## 2.4.18 - Bug Fixes

![](https://img.shields.io/badge/release%20date-May%2024%2C%202024-blue)
![GitHub release](https://img.shields.io/github/downloads-pre/vigoren/foundryvtt-simple-calendar/v2.4.18/module.zip)

### Bug Fixes

- Fixed a bug where a date selector for picking a single date (Season start date and moon start date) would end up selecting a range with the initial date as the end date.

### Translation Updates

Thank you to the follow people for making updates to Simple Calendars translations:

- [Kharmans](https://github.com/Kharmans) (Portuguese (Brazil))
- [Jakub](https://weblate.foundryvtt-hub.com/user/Lioheart/) (Polish)

<hr/>

## 2.4.17 - Foundry V12 Support, Cyberpunk Red Theme and Bug Fixes

![](https://img.shields.io/badge/release%20date-May%2019%2C%202024-blue)
Expand All @@ -19,6 +37,8 @@ A new theme has been added to Simple Calendar for the Cyberpunk Red system. Big
- Fixed a bug when setting a multi day event that spanned 2 or more months, the end date would appear as NaN. ([#603](https://github.com/vigoren/foundryvtt-simple-calendar/issues/603))
- Fixed a bug when persistent open is set to true and the calendar is open, users could not deselect canvas items or open the main menu. ([#592](https://github.com/vigoren/foundryvtt-simple-calendar/issues/592))

<hr/>

## 2.4.13 - Chat Bug Fixes

![](https://img.shields.io/badge/release%20date-March%2016%2C%202024-blue)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "foundryvtt-simple-calendar",
"description": "A simple calendar module for keeping track of game days and events.",
"version": "2.4.17",
"version": "2.4.18",
"author": "Dean Vigoren (vigorator)",
"keywords": [
"foundryvtt",
Expand Down
20 changes: 20 additions & 0 deletions simple-calendar-docs/docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Change Log

## 2.4.18 - Bug Fixes

![](https://img.shields.io/badge/release%20date-May%2024%2C%202024-blue)
![GitHub release](https://img.shields.io/github/downloads-pre/vigoren/foundryvtt-simple-calendar/v2.4.18/module.zip)

### Bug Fixes

- Fixed a bug where a date selector for picking a single date (Season start date and moon start date) would end up selecting a range with the initial date as the end date.

### Translation Updates

Thank you to the follow people for making updates to Simple Calendars translations:

- [Kharmans](https://github.com/Kharmans) (Portuguese (Brazil))
- [Jakub](https://weblate.foundryvtt-hub.com/user/Lioheart/) (Polish)

<hr/>

## 2.4.17 - Foundry V12 Support, Cyberpunk Red Theme and Bug Fixes

![](https://img.shields.io/badge/release%20date-May%2019%2C%202024-blue)
Expand All @@ -19,6 +37,8 @@ A new theme has been added to Simple Calendar for the Cyberpunk Red system. Big
- Fixed a bug when setting a multi day event that spanned 2 or more months, the end date would appear as NaN. ([#603](https://github.com/vigoren/foundryvtt-simple-calendar/issues/603))
- Fixed a bug when persistent open is set to true and the calendar is open, users could not deselect canvas items or open the main menu. ([#592](https://github.com/vigoren/foundryvtt-simple-calendar/issues/592))

<hr/>

## 2.4.13 - Chat Bug Fixes

![](https://img.shields.io/badge/release%20date-March%2016%2C%202024-blue)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pagination_prev: null

### images

`Optional` **images**: `Record`<`string`, `string`\>
`Optional` **images**: `Record`\<`string`, `string`\>

___

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ ___

### addNote

**addNote**(`title`, `content`, `startDate`, `endDate`, `allDay`, `repeats?`, `categories?`, `calendarId?`, `macro?`, `userVisibility?`, `remindUsers?`): `Promise`<`StoredDocument`<`JournalEntry`\> \| ``null``\>
**addNote**(`title`, `content`, `startDate`, `endDate`, `allDay`, `repeats?`, `categories?`, `calendarId?`, `macro?`, `userVisibility?`, `remindUsers?`): `Promise`\<`StoredDocument`\<`JournalEntry`\> \| ``null``\>

This function adds a new note to the calendar

Expand Down Expand Up @@ -84,7 +84,7 @@ const newJournal = await SimpleCalendar.api.addNote('Christmas Day','Presents!',

#### Returns

`Promise`<`StoredDocument`<`JournalEntry`\> \| ``null``\>
`Promise`\<`StoredDocument`\<`JournalEntry`\> \| ``null``\>

The newly created JournalEntry that contains the note data, or null if there was an error encountered.

Expand Down Expand Up @@ -310,7 +310,7 @@ ___

### configureCalendar

**configureCalendar**(`calendarData`, `calendarId?`): `Promise`<`boolean`\>
**configureCalendar**(`calendarData`, `calendarId?`): `Promise`\<`boolean`\>

Sets up the current calendar to match the passed in configuration. This function can only be run by GMs.

Expand All @@ -336,7 +336,7 @@ const result = await SimpleCalendar.api.configureCalendar(custom);

#### Returns

`Promise`<`boolean`\>
`Promise`\<`boolean`\>

A promise that resolves to a boolean value, true if the change was successful and false if it was not.

Expand Down Expand Up @@ -1271,7 +1271,7 @@ ___

### getNotes

**getNotes**(`calendarId?`): (`StoredDocument`<`JournalEntry`\> \| `undefined`)[]
**getNotes**(`calendarId?`): (`StoredDocument`\<`JournalEntry`\> \| `undefined`)[]

Gets all notes that the current user is able to see for the specified calendar.

Expand All @@ -1290,15 +1290,15 @@ SimpleCalendar.api.getNotes();

#### Returns

(`StoredDocument`<`JournalEntry`\> \| `undefined`)[]
(`StoredDocument`\<`JournalEntry`\> \| `undefined`)[]

A list of [JournalEntries](https://foundryvtt.com/api/JournalEntry.html) that contain the note data.

___

### getNotesForDay

**getNotesForDay**(`year`, `month`, `day`, `calendarId?`): (`StoredDocument`<`JournalEntry`\> \| `undefined`)[]
**getNotesForDay**(`year`, `month`, `day`, `calendarId?`): (`StoredDocument`\<`JournalEntry`\> \| `undefined`)[]

Gets all notes that the current user is able to see for the specified date from the specified calendar.

Expand All @@ -1320,7 +1320,7 @@ SimpleCalendar.api.getNotesForDay(2022, 11, 24);

#### Returns

(`StoredDocument`<`JournalEntry`\> \| `undefined`)[]
(`StoredDocument`\<`JournalEntry`\> \| `undefined`)[]

A list of [JournalEntries](https://foundryvtt.com/api/JournalEntry.html) that contain the note data.

Expand Down Expand Up @@ -1433,7 +1433,7 @@ ___

### removeNote

**removeNote**(`journalEntryId`): `Promise`<`boolean`\>
**removeNote**(`journalEntryId`): `Promise`\<`boolean`\>

This function removes the specified note from Simple Calendar.

Expand All @@ -1451,7 +1451,7 @@ SimpleCalendar.api.removeNote("asd123").then(...).catch(console.error);

#### Returns

`Promise`<`boolean`\>
`Promise`\<`boolean`\>

True if the note was removed or false if it was not.

Expand Down Expand Up @@ -1480,7 +1480,7 @@ ___

### searchNotes

**searchNotes**(`term`, `options?`, `calendarId?`): (`StoredDocument`<`JournalEntry`\> \| `undefined`)[]
**searchNotes**(`term`, `options?`, `calendarId?`): (`StoredDocument`\<`JournalEntry`\> \| `undefined`)[]

Search the notes in Simple Calendar for a specific term. Only notes that the user can see are returned.

Expand Down Expand Up @@ -1509,7 +1509,7 @@ SimpleCalendar.api.searchNotes("Gamemaster", {author: true}); // Will return a l

#### Returns

(`StoredDocument`<`JournalEntry`\> \| `undefined`)[]
(`StoredDocument`\<`JournalEntry`\> \| `undefined`)[]

A list of [JournalEntry](https://foundryvtt.com/api/JournalEntry.html) that matched the term being searched.

Expand Down Expand Up @@ -1582,7 +1582,7 @@ ___

### setTheme

**setTheme**(`themeId`): `Promise`<`boolean`\>
**setTheme**(`themeId`): `Promise`\<`boolean`\>

Will set the players Simple Calendar theme that matches the passed in theme ID.

Expand Down Expand Up @@ -1610,7 +1610,7 @@ await SimpleCalendar.api.setTheme('themeDoesNotExist');

#### Returns

`Promise`<`boolean`\>
`Promise`\<`boolean`\>

A promise that resolves to True if the theme is valid and was applied successfully, or it was the theme already being used. The promise will resolve to False if a theme with that ID could not be found.

Expand Down
19 changes: 7 additions & 12 deletions simple-calendar-docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
// Note: type annotations allow type checking and IDEs autocompletion

const path = require("path");
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
const { themes } = require("prism-react-renderer");
const lightTheme = themes.github;
const darkTheme = themes.dracula;

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -60,14 +61,7 @@ const config = {
entryPoints: ["../types/index.d.ts"],
out: "developing-with-sc/api",
tsconfig: "../tsconfig.json",
media: "./static/img",
frontmatter: {
pagination_next: null,
pagination_prev: null
},
sidebar: {
//fullNames: true
}
media: "./static/img"
}
],
[
Expand Down Expand Up @@ -313,8 +307,9 @@ const config = {
copyright: `Copyright © ${new Date().getFullYear()} Simple Calendar. Built with Docusaurus.`
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme
theme: lightTheme,
darkTheme: darkTheme,
additionalLanguages: ["bash", "diff", "json"]
},
algolia: {
// The application ID provided by Algolia
Expand Down
Loading

0 comments on commit 2bf69ed

Please sign in to comment.