Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/client/craco.build.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const plugins = [];

plugins.push(
new WorkboxPlugin.InjectManifest({
swSrc: "./src/serviceWorker.js",
swSrc: "./src/serviceWorker.ts",
mode: "development",
swDest: "./pageService.js",
maximumFileSizeToCacheInBytes: 11 * 1024 * 1024,
Expand Down
2 changes: 1 addition & 1 deletion app/client/craco.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = merge(common, {
webpack: {
plugins: [
new WorkboxPlugin.InjectManifest({
swSrc: "./src/serviceWorker.js",
swSrc: "./src/serviceWorker.ts",
mode: "development",
swDest: "./pageService.js",
exclude: [
Expand Down
1 change: 1 addition & 0 deletions app/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@
"@types/moment-timezone": "^0.5.10",
"@types/nanoid": "^2.0.0",
"@types/node": "^10.12.18",
"@types/node-fetch": "^2.6.11",
"@types/node-forge": "^0.10.0",
"@types/object-hash": "^2.2.1",
"@types/pg": "^8.10.2",
Expand Down
8 changes: 5 additions & 3 deletions app/client/src/api/ConsolidatedPageLoadApi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,21 @@ import type { ApiResponse } from "api/ApiResponses";
import type { InitConsolidatedApi } from "sagas/InitSagas";

class ConsolidatedPageLoadApi extends Api {
static url = "/v1/consolidated-api";
static url = "v1/consolidated-api";
static consolidatedApiViewUrl = `${ConsolidatedPageLoadApi.url}/view`;
static consolidatedApiEditUrl = `${ConsolidatedPageLoadApi.url}/edit`;

static async getConsolidatedPageLoadDataView(params: {
applicationId?: string;
defaultPageId?: string;
}): Promise<AxiosPromise<ApiResponse<InitConsolidatedApi>>> {
return Api.get(ConsolidatedPageLoadApi.url + "/view", params);
return Api.get(ConsolidatedPageLoadApi.consolidatedApiViewUrl, params);
}
static async getConsolidatedPageLoadDataEdit(params: {
applicationId?: string;
defaultPageId?: string;
}): Promise<AxiosPromise<ApiResponse<InitConsolidatedApi>>> {
return Api.get(ConsolidatedPageLoadApi.url + "/edit", params);
return Api.get(ConsolidatedPageLoadApi.consolidatedApiEditUrl, params);
}
}

Expand Down
Loading