-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworked PDPs to enable layering PDPs, added platform.base, added Scr…
…ipture extender layering PDP, replaced name from ProjectMetadata with project setting platform.name
- Loading branch information
1 parent
46b4853
commit 8b645fe
Showing
125 changed files
with
14,223 additions
and
32,723 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Currently Excluded Assets | ||
|
||
This folder's contents: | ||
|
||
- Folder of logos not currently used. | ||
- `custom.sty` file containing the custom milestone used to mark comment anchors. Currently you must add this file (or append its content if the file already exists) to a project to enable comments to be anchored. |
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,20 @@ | ||
# ******************************************************************** | ||
# * custom.sty is the custom stylesheet for this Paratext project * | ||
# * using USFM markup. * | ||
# * Latest documentation and stylesheets are maintained at: * | ||
# * http://markups.paratext.org/usfm * | ||
# ******************************************************************** | ||
|
||
# WARNING: Using a custom stylesheet will likely make it more difficult to publish your project | ||
# or submit it to the Digital Bible Library (DBL), especially if you add any custom markers. | ||
|
||
# You must copy this file to the project directory (e.g. c:\My Paratext 9 Projects\XYZ) | ||
# for it to take effect. | ||
|
||
\Marker zmsc-s | ||
\Endmarker zmsc-e | ||
\Name Custom - Platform.Bible comment anchor start/end | ||
\Description For anchoring comments (revision notes) | ||
\OccursUnder ip im ipi imi ipq imq ipr iq iq1 iq2 iq3 io io1 io2 io3 io4 ms ms1 ms2 s s1 s2 s3 s4 cd sp d lh li li1 li2 li3 li4 lf lim lim1 lim2 lim3 lim4 m mi nb p pc ph phi pi pi1 pi2 pi3 pr pmo pm pmc pmr po q q1 q2 q3 q4 qc qr qd qm qm1 qm2 qm3 tr th1 th2 th3 th4 thr1 thr2 thr3 thr4 tc1 tc2 tc3 tc4 tcr1 tcr2 tcr3 tcr4 f fe NEST | ||
\StyleType Milestone | ||
\Attributes ?who ?sid ?eid |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
using System.Text.Json.Nodes; | ||
using Paranext.DataProvider.MessageHandlers; | ||
using Paranext.DataProvider.MessageTransports; | ||
using Paranext.DataProvider.NetworkObjects; | ||
using Paranext.DataProvider.Services; | ||
|
||
namespace TestParanextDataProvider; | ||
|
||
[ExcludeFromCodeCoverage] | ||
internal class DummySettingsService : DataProvider | ||
{ | ||
private readonly Dictionary<string, object> _settingValues = []; | ||
private readonly List<string> _supportedFunctions = ["get"]; | ||
|
||
public DummySettingsService(PapiClient papiClient) | ||
: base(SettingsService.SETTINGS_SERVICE_NAME, papiClient) { } | ||
|
||
public void AddSettingValue(string key, object value) | ||
{ | ||
_settingValues.Add(key, value); | ||
} | ||
|
||
public void ClearSettingValues() | ||
{ | ||
_settingValues.Clear(); | ||
} | ||
|
||
protected override Task StartDataProvider() | ||
{ | ||
return Task.CompletedTask; | ||
} | ||
|
||
protected override List<string> GetFunctionNames() | ||
{ | ||
return _supportedFunctions; | ||
} | ||
|
||
protected override ResponseToRequest HandleRequest(string functionName, JsonArray args) | ||
{ | ||
return functionName switch | ||
{ | ||
"get" | ||
=> _settingValues.ContainsKey(args[0]!.ToString()) | ||
? ResponseToRequest.Succeeded(_settingValues[args[0]!.ToString()]) | ||
: ResponseToRequest.Failed($"Could not find value for setting {args[0]}"), | ||
_ => ResponseToRequest.Failed($"Unexpected function: {functionName}") | ||
}; | ||
} | ||
} |
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
Oops, something went wrong.