Skip to content

Commit

Permalink
Implement reminder feature for ics files.
Browse files Browse the repository at this point in the history
  • Loading branch information
barinbritva committed Jul 14, 2024
1 parent c7c7d4b commit ea4063e
Show file tree
Hide file tree
Showing 19 changed files with 322 additions and 151 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Implement reminder feature for `ics` files.

## [1.3.2] - 2024-04-16

### Fixed
Expand Down
28 changes: 14 additions & 14 deletions docs/assets/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@
return e === t.Set.complete
? t.Set.complete
: e === t.Set.empty
? this
: new t.Set(Object.keys(this.elements).concat(Object.keys(e.elements)));
? this
: new t.Set(Object.keys(this.elements).concat(Object.keys(e.elements)));
}),
(t.idf = function (e, n) {
var r = 0;
Expand Down Expand Up @@ -309,8 +309,8 @@
a < u
? (l += 2)
: a > u
? (h += 2)
: a == u && ((n += r[l + 1] * i[h + 1]), (l += 2), (h += 2));
? (h += 2)
: a == u && ((n += r[l + 1] * i[h + 1]), (l += 2), (h += 2));
return n;
}),
(t.Vector.prototype.similarity = function (e) {
Expand Down Expand Up @@ -409,8 +409,8 @@
x.test(c)
? (c = c + 'e')
: O.test(c)
? ((d = w), (c = c.replace(d, '')))
: D.test(c) && (c = c + 'e'));
? ((d = w), (c = c.replace(d, '')))
: D.test(c) && (c = c + 'e'));
}
if (((d = H), d.test(c))) {
var L = d.exec(c);
Expand Down Expand Up @@ -1458,8 +1458,8 @@
typeof define == 'function' && define.amd
? define(n)
: typeof ce == 'object'
? (he.exports = n())
: (e.lunr = n());
? (he.exports = n())
: (e.lunr = n());
})(this, function () {
return t;
});
Expand Down Expand Up @@ -1687,12 +1687,12 @@
s.key == 'Enter'
? Ve(e, n)
: s.key == 'Escape'
? n.blur()
: s.key == 'ArrowUp'
? pe(e, -1)
: s.key === 'ArrowDown'
? pe(e, 1)
: (i = !1);
? n.blur()
: s.key == 'ArrowUp'
? pe(e, -1)
: s.key === 'ArrowDown'
? pe(e, 1)
: (i = !1);
}),
n.addEventListener('keypress', (s) => {
i && s.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

103 changes: 71 additions & 32 deletions docs/classes/Event.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/classes/Google.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">Google</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/4cf822f/src/Generator/Google.ts#L17">Generator/Google.ts:17</a></li></ul></aside>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/2b28499/src/Generator/Google.ts#L17">Generator/Google.ts:17</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -58,7 +58,7 @@ <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</co
<div class="tsd-signature">url<wbr/>Base<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;https://calendar.google.com/calendar/render&#39;</span></div><aside class="tsd-sources">
<p>Overrides UrlGenerator.urlBase</p>
<ul>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/4cf822f/src/Generator/Google.ts#L18">Generator/Google.ts:18</a></li></ul></aside></section></section>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/2b28499/src/Generator/Google.ts#L18">Generator/Google.ts:18</a></li></ul></aside></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited"><a id="convertAttendeesToString" class="tsd-anchor"></a>
Expand All @@ -74,7 +74,7 @@ <h5>attendees: <a href="../types/Attendee.html" class="tsd-signature-type" data-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<p>Inherited from UrlGenerator.convertAttendeesToString</p>
<ul>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/4cf822f/src/Generator/UrlGenerator.ts#L17">Generator/UrlGenerator.ts:17</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/2b28499/src/Generator/UrlGenerator.ts#L17">Generator/UrlGenerator.ts:17</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a id="convertEventToQueryObject" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>convert<wbr/>Event<wbr/>To<wbr/>Query<wbr/>Object</span><a href="#convertEventToQueryObject" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
Expand All @@ -88,7 +88,7 @@ <h5>event: <a href="Event.html" class="tsd-signature-type" data-tsd-kind="Class"
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">QueryParameters</span></h4><aside class="tsd-sources">
<p>Overrides UrlGenerator.convertEventToQueryObject</p>
<ul>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/4cf822f/src/Generator/Google.ts#L20">Generator/Google.ts:20</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/2b28499/src/Generator/Google.ts#L20">Generator/Google.ts:20</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="createLink" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>create<wbr/>Link</span><a href="#createLink" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
Expand All @@ -102,7 +102,7 @@ <h5>event: <a href="Event.html" class="tsd-signature-type" data-tsd-kind="Class"
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<p>Inherited from UrlGenerator.createLink</p>
<ul>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/4cf822f/src/Generator/UrlGenerator.ts#L11">Generator/UrlGenerator.ts:11</a></li></ul></aside></li></ul></section></section></div>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/2b28499/src/Generator/UrlGenerator.ts#L11">Generator/UrlGenerator.ts:11</a></li></ul></aside></li></ul></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand Down
16 changes: 8 additions & 8 deletions docs/classes/ICalendar.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h4>Implements</h4>
<ul class="tsd-hierarchy">
<li><span class="tsd-signature-type">Generator</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/4cf822f/src/Generator/ICalendar.ts#L32">Generator/ICalendar.ts:32</a></li></ul></aside>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/2b28499/src/Generator/ICalendar.ts#L26">Generator/ICalendar.ts:26</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -61,7 +61,7 @@ <h2>Properties</h2>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>invitation<wbr/>Meta</span><a href="#invitationMeta" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">invitation<wbr/>Meta<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">InvitationMeta</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/4cf822f/src/Generator/ICalendar.ts#L33">Generator/ICalendar.ts:33</a></li></ul></aside></section></section>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/2b28499/src/Generator/ICalendar.ts#L27">Generator/ICalendar.ts:27</a></li></ul></aside></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="configure" class="tsd-anchor"></a>
Expand All @@ -76,7 +76,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h5>invitationMeta: <span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">InvitationMeta</span><span class="tsd-signature-symbol">&gt;</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="ICalendar.html" class="tsd-signature-type" data-tsd-kind="Class">ICalendar</a></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/4cf822f/src/Generator/ICalendar.ts#L38">Generator/ICalendar.ts:38</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/2b28499/src/Generator/ICalendar.ts#L32">Generator/ICalendar.ts:32</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private"><a id="convertEventToData" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>convert<wbr/>Event<wbr/>To<wbr/>Data</span><a href="#convertEventToData" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
Expand All @@ -89,7 +89,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h5>event: <a href="Event.html" class="tsd-signature-type" data-tsd-kind="Class">Event</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">DataPiece</span><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/4cf822f/src/Generator/ICalendar.ts#L55">Generator/ICalendar.ts:55</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/2b28499/src/Generator/ICalendar.ts#L49">Generator/ICalendar.ts:49</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="createFile" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>create<wbr/>File</span><a href="#createFile" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
Expand All @@ -102,7 +102,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h5>event: <a href="Event.html" class="tsd-signature-type" data-tsd-kind="Class">Event</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/4cf822f/src/Generator/ICalendar.ts#L49">Generator/ICalendar.ts:49</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/2b28499/src/Generator/ICalendar.ts#L43">Generator/ICalendar.ts:43</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="createLink" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>create<wbr/>Link</span><a href="#createLink" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
Expand All @@ -116,7 +116,7 @@ <h5>event: <a href="Event.html" class="tsd-signature-type" data-tsd-kind="Class"
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<p>Implementation of Generator.createLink</p>
<ul>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/4cf822f/src/Generator/ICalendar.ts#L43">Generator/ICalendar.ts:43</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/2b28499/src/Generator/ICalendar.ts#L37">Generator/ICalendar.ts:37</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private"><a id="dataPiecesToContent" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>data<wbr/>Pieces<wbr/>To<wbr/>Content</span><a href="#dataPiecesToContent" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
Expand All @@ -131,7 +131,7 @@ <h5>data: <span class="tsd-signature-type">DataPiece</span><span class="tsd-sign
<h5>encode: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/4cf822f/src/Generator/ICalendar.ts#L170">Generator/ICalendar.ts:170</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/2b28499/src/Generator/ICalendar.ts#L189">Generator/ICalendar.ts:189</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private"><a id="escapeSpecialChars" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>escape<wbr/>Special<wbr/>Chars</span><a href="#escapeSpecialChars" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
Expand All @@ -144,7 +144,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h5><code class="tsd-tag ts-flagOptional">Optional</code> text: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/4cf822f/src/Generator/ICalendar.ts#L158">Generator/ICalendar.ts:158</a></li></ul></aside></li></ul></section></section></div>
<li>Defined in <a href="https://github.com/barinbritva/add-to-calendar/blob/2b28499/src/Generator/ICalendar.ts#L177">Generator/ICalendar.ts:177</a></li></ul></aside></li></ul></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand Down
Loading

0 comments on commit ea4063e

Please sign in to comment.