-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
77 changed files
with
243 additions
and
34,063 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export class DistributionBeneficiary { | ||
constructor(beneficiaryCode, distributionName) { | ||
this.beneficiaryCode = beneficiaryCode; | ||
this.distributionName = distributionName; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
PWA/public/Services/BenificiarySpreadSheetRowsDeserializationService.js
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,14 +25,15 @@ import { BeneficiaryEligilityService } from "./BeneficiaryEligilityService.js"; | |
export class CacheFilePathService { | ||
pathsOfFilesToCache() { | ||
return [ | ||
this.imagesPaths(), | ||
this.pagePaths(), | ||
this.modelPaths(), | ||
this.toplevelScriptsPaths(), | ||
this.fetchEventHanderPaths(), | ||
this.interfacesPaths(), | ||
this.externalLibrariesPaths(), | ||
this.servicePaths(), | ||
this.sessionStatePaths() | ||
this.sessionStatePaths(), | ||
].reduce((previousArray, currentValue) => { | ||
return previousArray.concat(currentValue); | ||
}, []); | ||
|
@@ -58,13 +59,24 @@ export class CacheFilePathService { | |
"app", | ||
"sw", | ||
"navbar-burger", | ||
RouteEvents.name | ||
RouteEvents.name, | ||
]); | ||
} | ||
externalLibrariesPaths() { | ||
return this.pathsForTypesInFolder("ExternalLibraries", [ | ||
"mustache", | ||
"xlsx.full.min" | ||
"xlsx.full.min", | ||
]).concat([ | ||
"https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css", | ||
"https://unpkg.com/@zxing/library@latest/umd/index.min.js", | ||
]); | ||
} | ||
imagesPaths() { | ||
return this.pathsForTypesInFolder("images", [ | ||
"/images/ReliefBox-horizontal-nobackground.png", | ||
"/images/510logo.jpg", | ||
"/images/ReliefBox-horizontal.png", | ||
"/images/ReliefBox.PNG", | ||
]); | ||
} | ||
modelPaths() { | ||
|
@@ -73,7 +85,7 @@ export class CacheFilePathService { | |
Distribution.name, | ||
DeleteDistributionPost.name, | ||
SelectDistributionPost.name, | ||
BeneficiaryCodeInputMethodPost.name | ||
BeneficiaryCodeInputMethodPost.name, | ||
]); | ||
} | ||
servicePaths() { | ||
|
@@ -83,13 +95,11 @@ export class CacheFilePathService { | |
Database.name, | ||
DeserialisationService.name, | ||
FormParser.name, | ||
BeneficiaryEligilityService.name | ||
BeneficiaryEligilityService.name, | ||
]); | ||
} | ||
sessionStatePaths() { | ||
return this.pathsForTypesInFolder("Services", [ | ||
ActiveSession.name | ||
]); | ||
return this.pathsForTypesInFolder("Services", [ActiveSession.name]); | ||
} | ||
fetchEventHanderPaths() { | ||
return this.pathsForTypesInFolder("Services/FetchEventHandlers", [ | ||
|
@@ -109,7 +119,7 @@ export class CacheFilePathService { | |
interfacesPaths() { | ||
return this.pathsForTypesInFolder("Interfaces", [ | ||
"FetchEvent", | ||
"FetchEventHandler" | ||
"FetchEventHandler", | ||
]); | ||
} | ||
pathsForTypesInFolder(folder, typeNames, extension = ".js") { | ||
|
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
Oops, something went wrong.