-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support for all note-attributes defined in the ENEX DTD 3.0 (#659)
- Loading branch information
1 parent
2dfa5ff
commit f5a6f6e
Showing
40 changed files
with
482 additions
and
18 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
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-altitude-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/altitude-placeholders'; | ||
import { applyConditionalTemplate } from './apply-conditional-template'; | ||
|
||
export const applyAltitudeTemplate = (noteData: NoteData, text: string): string => { | ||
return applyConditionalTemplate(text, P, noteData.altitude); | ||
}; |
8 changes: 8 additions & 0 deletions
8
src/utils/templates/apply-functions/apply-application-data-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/application-data-yaml-list-placeholders'; | ||
import { applyConditionalTemplate } from './apply-conditional-template'; | ||
|
||
export const applyApplicationDataTemplate = (noteData: NoteData, text: string): string => { | ||
return applyConditionalTemplate(text, P, noteData.applicationData); | ||
}; |
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/author-placeholders'; | ||
import { applyConditionalTemplate } from './apply-conditional-template'; | ||
|
||
export const applyAuthorTemplate = (noteData: NoteData, text: string): string => { | ||
return applyConditionalTemplate(text, P, noteData.author); | ||
}; |
8 changes: 8 additions & 0 deletions
8
src/utils/templates/apply-functions/apply-content-class-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/content-class-placeholders'; | ||
import { applyConditionalTemplate } from './apply-conditional-template'; | ||
|
||
export const applyContentClassTemplate = (noteData: NoteData, text: string): string => { | ||
return applyConditionalTemplate(text, P, noteData.contentClass); | ||
}; |
8 changes: 8 additions & 0 deletions
8
src/utils/templates/apply-functions/apply-place-name-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/place-name-placeholders'; | ||
import { applyConditionalTemplate } from './apply-conditional-template'; | ||
|
||
export const applyPlaceNameTemplate = (noteData: NoteData, text: string): string => { | ||
return applyConditionalTemplate(text, P, noteData.placeName); | ||
}; |
8 changes: 8 additions & 0 deletions
8
src/utils/templates/apply-functions/apply-source-application-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/source-application-placeholders'; | ||
import { applyConditionalTemplate } from './apply-conditional-template'; | ||
|
||
export const applySourceApplicationTemplate = (noteData: NoteData, text: string): string => { | ||
return applyConditionalTemplate(text, P, noteData.sourceApplication); | ||
}; |
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/source-placeholders'; | ||
import { applyConditionalTemplate } from './apply-conditional-template'; | ||
|
||
export const applySourceTemplate = (noteData: NoteData, text: string): string => { | ||
return applyConditionalTemplate(text, P, noteData.source); | ||
}; |
2 changes: 1 addition & 1 deletion
2
...ply-functions/apply-sourceurl-template.ts → ...ly-functions/apply-source-url-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
8 changes: 8 additions & 0 deletions
8
src/utils/templates/apply-functions/apply-subject-date-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/subject-date-placeholders'; | ||
import { applyConditionalTemplate } from './apply-conditional-template'; | ||
|
||
export const applySubjectDateTemplate = (noteData: NoteData, text: string): string => { | ||
return applyConditionalTemplate(text, P, noteData.subjectDate); | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const CONTENT_PLACEHOLDER = '{altitude}'; | ||
export const START_BLOCK = '{altitude-block}'; | ||
export const END_BLOCK = '{end-altitude-block}'; |
3 changes: 3 additions & 0 deletions
3
src/utils/templates/placeholders/application-data-yaml-list-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 = '{application-data-yaml-list}'; | ||
export const START_BLOCK = '{application-data-yaml-list-block}'; | ||
export const END_BLOCK = '{end-application-data-yaml-list-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,3 @@ | ||
export const CONTENT_PLACEHOLDER = '{author}'; | ||
export const START_BLOCK = '{author-block}'; | ||
export const END_BLOCK = '{end-author-block}'; |
3 changes: 3 additions & 0 deletions
3
src/utils/templates/placeholders/content-class-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 = '{content-class}'; | ||
export const START_BLOCK = '{content-class-block}'; | ||
export const END_BLOCK = '{end-content-class-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,3 @@ | ||
export const CONTENT_PLACEHOLDER = '{place-name}'; | ||
export const START_BLOCK = '{place-name-block}'; | ||
export const END_BLOCK = '{end-place-name-block}'; |
3 changes: 3 additions & 0 deletions
3
src/utils/templates/placeholders/source-application-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 = '{source-application}'; | ||
export const START_BLOCK = '{source-application-block}'; | ||
export const END_BLOCK = '{end-source-application-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,3 @@ | ||
export const CONTENT_PLACEHOLDER = '{source}'; | ||
export const START_BLOCK = '{source-block}'; | ||
export const END_BLOCK = '{end-source-block}'; |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
src/utils/templates/placeholders/subject-date-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 = '{subject-date}'; | ||
export const START_BLOCK = '{subject-date-block}'; | ||
export const END_BLOCK = '{end-subject-date-block}'; |
Oops, something went wrong.