-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1afe20
commit 4002952
Showing
25 changed files
with
244 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/utils/templates/apply-functions/apply-reminderdonetime-template.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { NoteData } from '../../../models/NoteData'; | ||
import * as P from '../placeholders/reminderdonetime-placeholders'; | ||
|
||
import { applyConditionalTemplate } from './apply-conditional-template'; | ||
|
||
export const applyReminderDoneTimeTemplate = (noteData: NoteData, text: string): string => { | ||
return applyConditionalTemplate(text, P, noteData.reminderDoneTime); | ||
}; |
8 changes: 8 additions & 0 deletions
8
src/utils/templates/apply-functions/apply-reminderorder-template.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { NoteData } from '../../../models/NoteData'; | ||
import * as P from '../placeholders/reminderorder-placeholders'; | ||
|
||
import { applyConditionalTemplate } from './apply-conditional-template'; | ||
|
||
export const applyReminderOrderTemplate = (noteData: NoteData, text: string): string => { | ||
return applyConditionalTemplate(text, P, noteData.reminderOrder); | ||
}; |
8 changes: 8 additions & 0 deletions
8
src/utils/templates/apply-functions/apply-remindertime-template.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { NoteData } from '../../../models/NoteData'; | ||
import * as P from '../placeholders/remindertime-placeholders'; | ||
|
||
import { applyConditionalTemplate } from './apply-conditional-template'; | ||
|
||
export const applyReminderTimeTemplate = (noteData: NoteData, text: string): string => { | ||
return applyConditionalTemplate(text, P, noteData.reminderTime); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/utils/templates/placeholders/reminderdonetime-placeholders.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const CONTENT_PLACEHOLDER = '{reminder-done-time}'; | ||
export const START_BLOCK = '{reminder-done-time-block}'; | ||
export const END_BLOCK = '{end-reminder-done-time-block}'; |
3 changes: 3 additions & 0 deletions
3
src/utils/templates/placeholders/reminderorder-placeholders.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const CONTENT_PLACEHOLDER = '{reminder-order}'; | ||
export const START_BLOCK = '{reminder-order-block}'; | ||
export const END_BLOCK = '{end-reminder-order-block}'; |
3 changes: 3 additions & 0 deletions
3
src/utils/templates/placeholders/remindertime-placeholders.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const CONTENT_PLACEHOLDER = '{reminder-time}'; | ||
export const START_BLOCK = '{reminder-time-block}'; | ||
export const END_BLOCK = '{end-reminder-time-block}'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/utils/templates/remove-functions/remove-reminderdonetime-placeholder.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { EOL } from 'os'; | ||
|
||
import * as T from '../placeholders/reminderdonetime-placeholders'; | ||
|
||
import { removePlaceholder } from './remove-placeholder'; | ||
|
||
export const removeReminderDoneTimePlaceholder = (text: string): string => { | ||
return removePlaceholder(text, T); | ||
}; |
9 changes: 9 additions & 0 deletions
9
src/utils/templates/remove-functions/remove-reminderorder-placeholder.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { EOL } from 'os'; | ||
|
||
import * as T from '../placeholders/reminderorder-placeholders'; | ||
|
||
import { removePlaceholder } from './remove-placeholder'; | ||
|
||
export const removeReminderOrderPlaceholder = (text: string): string => { | ||
return removePlaceholder(text, T); | ||
}; |
9 changes: 9 additions & 0 deletions
9
src/utils/templates/remove-functions/remove-remindertime-placeholder.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { EOL } from 'os'; | ||
|
||
import * as T from '../placeholders/remindertime-placeholders'; | ||
|
||
import { removePlaceholder } from './remove-placeholder'; | ||
|
||
export const removeReminderTimePlaceholder = (text: string): string => { | ||
return removePlaceholder(text, T); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{title-block}# {title}{end-title-block} | ||
{tags-block} | ||
--- | ||
Tag(s): {tags} | ||
|
||
--- | ||
{end-tags-block} | ||
{content-block}{content}{end-content-block} | ||
|
||
|
||
{reminder-time-block} Reminder: {reminder-time}{end-reminder-time-block} | ||
{reminder-done-time-block} Reminder Done: {reminder-done-time}{end-reminder-done-time-block} | ||
{reminder-order-block} Reminder Order: {reminder-order}{end-reminder-order-block} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# reminders title | ||
|
||
|
||
|
||
|
||
Reminder: 2022-01-20T07:00:00+00:00 | ||
Reminder Done: 2022-01-19T20:01:23+00:00 | ||
Reminder Order: 1642621213000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export3.dtd"> | ||
<en-export export-date="20220119T200151Z" application="Evernote" version="Evernote Mac 7.14 (458244)"> | ||
<note> | ||
<title> | ||
reminders title | ||
</title> | ||
<content> | ||
<![CDATA[ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"> | ||
<en-note/> | ||
]]> | ||
</content> | ||
<created> | ||
20220119T193959Z | ||
</created> | ||
<updated> | ||
20220119T194008Z | ||
</updated> | ||
<note-attributes> | ||
<latitude> | ||
47.625 | ||
</latitude> | ||
<longitude> | ||
19.1387093306179 | ||
</longitude> | ||
<altitude> | ||
126.2126541137695 | ||
</altitude> | ||
<author> | ||
akos | ||
</author> | ||
<source> | ||
desktop.mac | ||
</source> | ||
<reminder-order> | ||
1642621213000 | ||
</reminder-order> | ||
<reminder-time> | ||
20220120T070000Z | ||
</reminder-time> | ||
<reminder-done-time> | ||
20220119T200123Z | ||
</reminder-done-time> | ||
</note-attributes> | ||
</note> | ||
</en-export> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters