Skip to content

Commit

Permalink
Deploying to gh-pages from @ 776e528 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
ishiko732 committed Nov 20, 2023
1 parent 615e7dc commit 27928a0
Show file tree
Hide file tree
Showing 33 changed files with 53 additions and 51 deletions.
26 changes: 13 additions & 13 deletions classes/FSRS.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions classes/SchedulingCard.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions enums/Rating.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions enums/State.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions/createEmptyCard.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions/date_diff.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions/date_scheduler.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions/fixDate.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions/fixRating.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions/fixState.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions/formatDate.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions/fsrs-1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions/generatorParameters.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions/show_diff_message.html

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
</code><button>Copy</button></pre>
<a id="md:example" class="tsd-anchor"></a><h1><a href="#md:example">Example</a></h1><pre><code class="language-typescript"><span class="hl-2">import</span><span class="hl-1"> {</span><span class="hl-0">createEmptyCard</span><span class="hl-1">, </span><span class="hl-0">formatDate</span><span class="hl-1">, </span><span class="hl-0">fsrs</span><span class="hl-1">, </span><span class="hl-0">generatorParameters</span><span class="hl-1">, </span><span class="hl-0">Rating</span><span class="hl-1">, </span><span class="hl-0">Grades</span><span class="hl-1">} </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">&#39;ts-fsrs&#39;</span><span class="hl-1">;</span><br/><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">params</span><span class="hl-1"> = </span><span class="hl-6">generatorParameters</span><span class="hl-1">({ </span><span class="hl-0">enable_fuzz:</span><span class="hl-1"> </span><span class="hl-4">true</span><span class="hl-1"> });</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">f</span><span class="hl-1"> = </span><span class="hl-6">fsrs</span><span class="hl-1">(</span><span class="hl-0">params</span><span class="hl-1">);</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">card</span><span class="hl-1"> = </span><span class="hl-6">createEmptyCard</span><span class="hl-1">(</span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-6">Date</span><span class="hl-1">(</span><span class="hl-3">&#39;2022-2-1 10:00:00&#39;</span><span class="hl-1">));</span><span class="hl-7">// createEmptyCard();</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">now</span><span class="hl-1"> = </span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-6">Date</span><span class="hl-1">(</span><span class="hl-3">&#39;2022-2-2 10:00:00&#39;</span><span class="hl-1">);</span><span class="hl-7">// new Date();</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">scheduling_cards</span><span class="hl-1"> = </span><span class="hl-0">f</span><span class="hl-1">.</span><span class="hl-6">repeat</span><span class="hl-1">(</span><span class="hl-0">card</span><span class="hl-1">, </span><span class="hl-0">now</span><span class="hl-1">);</span><br/><br/><span class="hl-7">// console.log(scheduling_cards);</span><br/><span class="hl-0">Grades</span><span class="hl-1">.</span><span class="hl-6">forEach</span><span class="hl-1">(</span><span class="hl-0">grade</span><span class="hl-1"> </span><span class="hl-4">=&gt;</span><span class="hl-1"> { </span><span class="hl-7">// [Rating.Again, Rating.Hard, Rating.Good, Rating.Easy]</span><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> { </span><span class="hl-5">log</span><span class="hl-1">, </span><span class="hl-5">card</span><span class="hl-1"> } = </span><span class="hl-0">scheduling_cards</span><span class="hl-1">[</span><span class="hl-0">grade</span><span class="hl-1">];</span><br/><span class="hl-1"> </span><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">group</span><span class="hl-1">(</span><span class="hl-3">`</span><span class="hl-4">${</span><span class="hl-0">Rating</span><span class="hl-8">[</span><span class="hl-0">grade</span><span class="hl-8">]</span><span class="hl-4">}</span><span class="hl-3">`</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">table</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">[</span><span class="hl-3">`card_</span><span class="hl-4">${</span><span class="hl-0">Rating</span><span class="hl-8">[</span><span class="hl-0">grade</span><span class="hl-8">]</span><span class="hl-4">}</span><span class="hl-3">`</span><span class="hl-0">]:</span><span class="hl-1"> {</span><br/><span class="hl-1"> ...</span><span class="hl-0">card</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">due:</span><span class="hl-1"> </span><span class="hl-6">formatDate</span><span class="hl-1">(</span><span class="hl-0">card</span><span class="hl-1">.</span><span class="hl-0">due</span><span class="hl-1">),</span><br/><span class="hl-1"> </span><span class="hl-0">last_review:</span><span class="hl-1"> </span><span class="hl-6">formatDate</span><span class="hl-1">(</span><span class="hl-0">card</span><span class="hl-1">.</span><span class="hl-0">last_review</span><span class="hl-1"> </span><span class="hl-2">as</span><span class="hl-1"> </span><span class="hl-9">Date</span><span class="hl-1">),</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> });</span><br/><span class="hl-1"> </span><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">table</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">[</span><span class="hl-3">`log_</span><span class="hl-4">${</span><span class="hl-0">Rating</span><span class="hl-8">[</span><span class="hl-0">grade</span><span class="hl-8">]</span><span class="hl-4">}</span><span class="hl-3">`</span><span class="hl-0">]:</span><span class="hl-1"> {</span><br/><span class="hl-1"> ...</span><span class="hl-0">log</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">review:</span><span class="hl-1"> </span><span class="hl-6">formatDate</span><span class="hl-1">(</span><span class="hl-0">log</span><span class="hl-1">.</span><span class="hl-0">review</span><span class="hl-1">),</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> });</span><br/><span class="hl-1"> </span><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">groupEnd</span><span class="hl-1">();</span><br/><span class="hl-1"> </span><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-3">&#39;----------------------------------------------------------------&#39;</span><span class="hl-1">);</span><br/><span class="hl-1">});</span>
</code><button>Copy</button></pre>
<p>More examples refer:</p>
<p>More refer:</p>
<ul>
<li><a href="https://ishiko732.github.io/ts-fsrs/">Docs - Github Pages</a></li>
<li><a href="https://ishiko732.github.io/example.html">Example.html - Github Pages</a></li>
<li><a href="https://github.com/ishiko732/ts-fsrs/blob/master/example/example.html">Browser</a> (ts-fsrs package using CDN)</li>
<li><a href="https://github.com/ishiko732/ts-fsrs-demo">Next.js+Prisma</a></li>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions interfaces/Card.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions interfaces/FSRSParameters.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions interfaces/ReviewLog.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion types/CardInput.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion types/DateInput.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion types/Grade.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion types/RatingType.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion types/RecordLog.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion types/RecordLogItem.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion types/StateType.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion types/double.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion types/int.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion variables/FSRSVersion.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion variables/Grades.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion variables/default_enable_fuzz.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion variables/default_maximum_interval.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion variables/default_request_retention.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion variables/default_w.html

Large diffs are not rendered by default.

0 comments on commit 27928a0

Please sign in to comment.