Skip to content

Commit

Permalink
prevent 404 because of mismatch in filename bump 0.15.4
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmenno committed Nov 4, 2024
1 parent 096f241 commit f6c6dc9
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion PWA/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ReliefBox",
"version": "0.15.3",
"version": "0.15.4",
"description": "A tool for managing the distribution of relief items during humanitarian emergencies.",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions PWA/public/Services/CacheFilePathService.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { DownloadSpreadsheetTemplateHandler } from "./FetchEventHandlers/Downloa
import { DeleteDistributionsConfirmHandler } from "./FetchEventHandlers/DeleteDistributionsConfirmHandler.js";
import { DistributionResponseProvider } from "./DistributionResponseProvider.js";
import { DistributionsHandler } from "./FetchEventHandlers/DistributionsHandler.js";
import { DocumentationPageHandler } from "./FetchEventHandlers/DocumentationPageHandler.js";
import { DocumentationHandler } from "./FetchEventHandlers/DocumentationHandler.js";
// Provides all the files that have to be cached for offline use
export class CacheFilePathService {
pathsOfFilesToCache() {
Expand Down Expand Up @@ -142,7 +142,7 @@ export class CacheFilePathService {
DownloadSpreadsheetTemplateHandler.name,
DeleteDistributionsConfirmHandler.name,
DistributionsHandler.name,
DocumentationPageHandler.name
DocumentationHandler.name
]);
}
interfacesPaths() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RouteEvents } from "../../RouteEvents.js";
import { ResponseTools } from "../ResponseTools.js";
export class DocumentationPageHandler {
export class DocumentationHandler {
canHandleEvent(event) {
return event.request.url.includes(RouteEvents.documentation);
}
Expand Down
4 changes: 2 additions & 2 deletions PWA/public/Services/FetchEventHandlers/FetchEventHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { DownloadDataHandler } from "./DownloadDataHandler.js";
import { DownloadSpreadsheetTemplateHandler } from "./DownloadSpreadsheetTemplateHandler.js";
import { DeleteDistributionsConfirmHandler } from "./DeleteDistributionsConfirmHandler.js";
import { DistributionsHandler } from "./DistributionsHandler.js";
import { DocumentationPageHandler } from "./DocumentationPageHandler.js";
import { DocumentationHandler } from "./DocumentationHandler.js";
export class FetchEventHandlers extends ActiveSessionContainer {
constructor() {
super(...arguments);
Expand All @@ -44,7 +44,7 @@ export class FetchEventHandlers extends ActiveSessionContainer {
new DownloadSpreadsheetTemplateHandler(),
new DeleteDistributionsConfirmHandler(),
new DistributionsHandler(),
new DocumentationPageHandler()
new DocumentationHandler()
];
}
handlersForEvent(event) {
Expand Down
2 changes: 1 addition & 1 deletion PWA/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<!-- <a class="navbar-item">-->
<img src="images/ReliefBox-horizontal-nobackground.png" width="220" height="30">
<!-- </a>-->
<div class="navbar-item">Alpha 0.15.3</div>
<div class="navbar-item">Alpha 0.15.4</div>
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
Expand Down
4 changes: 2 additions & 2 deletions PWA/src/Services/CacheFilePathService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { DownloadSpreadsheetTemplateHandler } from "./FetchEventHandlers/Downloa
import { DeleteDistributionsConfirmHandler } from "./FetchEventHandlers/DeleteDistributionsConfirmHandler.js";
import { DistributionResponseProvider } from "./DistributionResponseProvider.js";
import { DistributionsHandler } from "./FetchEventHandlers/DistributionsHandler.js";
import { DocumentationPageHandler } from "./FetchEventHandlers/DocumentationPageHandler.js";
import { DocumentationHandler } from "./FetchEventHandlers/DocumentationHandler.js";

// Provides all the files that have to be cached for offline use
export class CacheFilePathService {
Expand Down Expand Up @@ -155,7 +155,7 @@ export class CacheFilePathService {
DownloadSpreadsheetTemplateHandler.name,
DeleteDistributionsConfirmHandler.name,
DistributionsHandler.name,
DocumentationPageHandler.name
DocumentationHandler.name
]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FetchEvent } from "../../Interfaces/FetchEvent.js";
import { FetchEventHandler } from "../../Interfaces/FetchEventHandler.js";
import { ResponseTools } from "../ResponseTools.js";

export class DocumentationPageHandler implements FetchEventHandler {
export class DocumentationHandler implements FetchEventHandler {
canHandleEvent(event: FetchEvent): boolean {
return event.request.url.includes(RouteEvents.documentation);
}
Expand Down
4 changes: 2 additions & 2 deletions PWA/src/Services/FetchEventHandlers/FetchEventHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { DownloadDataHandler } from "./DownloadDataHandler.js";
import { DownloadSpreadsheetTemplateHandler } from "./DownloadSpreadsheetTemplateHandler.js";
import { DeleteDistributionsConfirmHandler } from "./DeleteDistributionsConfirmHandler.js";
import { DistributionsHandler } from "./DistributionsHandler.js";
import { DocumentationPageHandler } from "./DocumentationPageHandler.js";
import { DocumentationHandler } from "./DocumentationHandler.js";

export class FetchEventHandlers extends ActiveSessionContainer implements FetchEventHandler {
all: FetchEventHandler[] = [
Expand All @@ -45,7 +45,7 @@ export class FetchEventHandlers extends ActiveSessionContainer implements FetchE
new DownloadSpreadsheetTemplateHandler(),
new DeleteDistributionsConfirmHandler(),
new DistributionsHandler(),
new DocumentationPageHandler()
new DocumentationHandler()
];

handlersForEvent(event: FetchEvent): FetchEventHandler[] {
Expand Down

0 comments on commit f6c6dc9

Please sign in to comment.