diff --git a/src/lib/components/dashboard/funnel.card.svelte b/src/lib/components/dashboard/funnel.card.svelte
index 24fa307d..722c8943 100644
--- a/src/lib/components/dashboard/funnel.card.svelte
+++ b/src/lib/components/dashboard/funnel.card.svelte
@@ -1,7 +1,7 @@
diff --git a/src/routes/users/[userId]/assessment-templates/[templateId]/assessment-nodes/[nodeId]/view/+page.svelte b/src/routes/users/[userId]/assessment-templates/[templateId]/assessment-nodes/[nodeId]/view/+page.svelte
index a08c3855..d427ea3d 100755
--- a/src/routes/users/[userId]/assessment-templates/[templateId]/assessment-nodes/[nodeId]/view/+page.svelte
+++ b/src/routes/users/[userId]/assessment-templates/[templateId]/assessment-nodes/[nodeId]/view/+page.svelte
@@ -12,7 +12,6 @@
export let data: PageServerData;
let sessionId = data.sessionId;
- let id = data.assessmentNode.id;
let nodeType = data.assessmentNode.NodeType;
let title = data.assessmentNode.Title;
let description = data.assessmentNode.Description !== null && data.assessmentNode.Description !== "" ? data.assessmentNode.Description : "Not specified";
@@ -79,7 +78,7 @@
};
async function Delete(model) {
- const response = await fetch(`/api/server/assessment-nodes`, {
+ await fetch(`/api/server/assessment-nodes`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/careplan/assets/meditations/[id]/edit/+page.svelte b/src/routes/users/[userId]/careplan/assets/meditations/[id]/edit/+page.svelte
index c07a6054..ae9541f4 100755
--- a/src/routes/users/[userId]/careplan/assets/meditations/[id]/edit/+page.svelte
+++ b/src/routes/users/[userId]/careplan/assets/meditations/[id]/edit/+page.svelte
@@ -4,8 +4,7 @@
import BreadCrumbs from '$lib/components/breadcrumbs/breadcrums.svelte';
import Icon from '@iconify/svelte';
import InputChip from '$lib/components/input-chips.svelte';
- import { EMPTY_PATH } from 'zod';
- import { enhance } from '$app/forms';
+ import { enhance } from '$app/forms';
///////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/routes/users/[userId]/careplan/careplans/[careplanId]/edit/+page.svelte b/src/routes/users/[userId]/careplan/careplans/[careplanId]/edit/+page.svelte
index da1b9cd7..ae2030a4 100755
--- a/src/routes/users/[userId]/careplan/careplans/[careplanId]/edit/+page.svelte
+++ b/src/routes/users/[userId]/careplan/careplans/[careplanId]/edit/+page.svelte
@@ -13,7 +13,6 @@
const editRoute = `/users/${userId}/careplan/careplans/${careplanId}/edit`;
const viewRoute = `/users/${userId}/careplan/careplans/${careplanId}/view`;
const careplansRoute = `/users/${userId}/careplan/careplans`;
- const schedulingRoute = `/users/${userId}/careplan/careplans/${careplanId}/scheduling`;
export let form;
export let data: PageServerData;
diff --git a/src/routes/users/[userId]/careplan/careplans/[careplanId]/scheduling/+page.svelte b/src/routes/users/[userId]/careplan/careplans/[careplanId]/scheduling/+page.svelte
index 2702a0fd..6f95c23a 100755
--- a/src/routes/users/[userId]/careplan/careplans/[careplanId]/scheduling/+page.svelte
+++ b/src/routes/users/[userId]/careplan/careplans/[careplanId]/scheduling/+page.svelte
@@ -139,6 +139,7 @@
};
async function searchAssets(model) {
+ console.log(model);
const selectedAssetRoute = assetRouteMap[selectedAssetType];
let url = `/api/server/careplan/assets/search?assetType=${selectedAssetRoute}`;
const res = await fetch(url, {
diff --git a/src/routes/users/[userId]/careplan/careplans/[careplanId]/scheduling/[activityId]/edit/+page.svelte b/src/routes/users/[userId]/careplan/careplans/[careplanId]/scheduling/[activityId]/edit/+page.svelte
index 76fbdb21..f0b44f37 100755
--- a/src/routes/users/[userId]/careplan/careplans/[careplanId]/scheduling/[activityId]/edit/+page.svelte
+++ b/src/routes/users/[userId]/careplan/careplans/[careplanId]/scheduling/[activityId]/edit/+page.svelte
@@ -92,6 +92,7 @@
});
};
async function searchAssets(model) {
+ console.log(model);
const selectedAssetRoute = assetRouteMap[selectedAssetType];
let url = `/api/server/assets/search?assetType=${selectedAssetRoute}`;
diff --git a/src/routes/users/[userId]/careplan/careplans/[careplanId]/scheduling/[activityId]/view/+page.svelte b/src/routes/users/[userId]/careplan/careplans/[careplanId]/scheduling/[activityId]/view/+page.svelte
index e467b49a..1f80d839 100755
--- a/src/routes/users/[userId]/careplan/careplans/[careplanId]/scheduling/[activityId]/view/+page.svelte
+++ b/src/routes/users/[userId]/careplan/careplans/[careplanId]/scheduling/[activityId]/view/+page.svelte
@@ -15,7 +15,6 @@
const viewRoute = `/users/${userId}/careplan/careplans/${careplanId}/scheduling/${activityId}/view`;
const schedulingRoute = `/users/${userId}/careplan/careplans/${careplanId}/scheduling`;
- let id = data.careplanActivity.id;
let assetType = data.careplanActivity.AssetType;
let name = data.careplanActivity.Asset.Name;
let timeslot = data.careplanActivity.TimeSlot;
diff --git a/src/routes/users/[userId]/careplan/careplans/create/+page.svelte b/src/routes/users/[userId]/careplan/careplans/create/+page.svelte
index fda9d57e..dfce94da 100755
--- a/src/routes/users/[userId]/careplan/careplans/create/+page.svelte
+++ b/src/routes/users/[userId]/careplan/careplans/create/+page.svelte
@@ -11,10 +11,7 @@
export let form;
const userId = $page.params.userId;
- const careplanId = $page.params.id;
const createRoute = `/users/${userId}/careplan/careplans/create`;
- const editRoute = `/users/${userId}/careplan/careplans/${careplanId}/edit`;
- const viewRoute = `/users/${userId}/careplan/careplans/${careplanId}/view`;
const careplansRoute = `/users/${userId}/careplan/careplans`;
let careplanCategories = data.careplanCategories;
diff --git a/src/routes/users/[userId]/careplan/enrollments/+page.svelte b/src/routes/users/[userId]/careplan/enrollments/+page.svelte
index 0c6560ea..80b6c8c1 100755
--- a/src/routes/users/[userId]/careplan/enrollments/+page.svelte
+++ b/src/routes/users/[userId]/careplan/enrollments/+page.svelte
@@ -46,6 +46,7 @@
} satisfies PaginationSettings;
async function searchEnrollments(model) {
+ console.log(model);
let url = `/api/server/careplan/enrollments/search?`;
if (sortOrder) url += `sortOrder=${sortOrder}`;
else url += `sortOrder=ascending`;
diff --git a/src/routes/users/[userId]/careplan/enrollments/[enrollmentId]/tasks/+page.svelte b/src/routes/users/[userId]/careplan/enrollments/[enrollmentId]/tasks/+page.svelte
index 41819682..eabc9f92 100755
--- a/src/routes/users/[userId]/careplan/enrollments/[enrollmentId]/tasks/+page.svelte
+++ b/src/routes/users/[userId]/careplan/enrollments/[enrollmentId]/tasks/+page.svelte
@@ -16,7 +16,6 @@
const enrollmentId = $page.params.enrollmentId;
let enrollmentsTasks = data.enrollmentTask.Items;
let participantResponse = data.participantResponse;
- let id = enrollmentsTasks.id;
let enrollmentDsipId = data.enrollment;
let enrollmentCode = enrollmentDsipId.DisplayId;
@@ -65,6 +64,7 @@
];
async function searchEnrollments(model) {
+ console.log(model);
let url = `/api/server/careplan/enrollment-task/search?`;
if (sortOrder) url += `sortOrder=${sortOrder}`;
else url += `sortOrder=ascending`;
diff --git a/src/routes/users/[userId]/careplan/enrollments/[enrollmentId]/view/+page.svelte b/src/routes/users/[userId]/careplan/enrollments/[enrollmentId]/view/+page.svelte
index 21914876..a5cf7871 100755
--- a/src/routes/users/[userId]/careplan/enrollments/[enrollmentId]/view/+page.svelte
+++ b/src/routes/users/[userId]/careplan/enrollments/[enrollmentId]/view/+page.svelte
@@ -3,23 +3,18 @@
import date from 'date-and-time';
import { page } from '$app/stores';
import EnrollmentDisplay from '$lib/components/enrollment.display/enrollment.display.svelte';
- import { goto } from '$app/navigation';
- import { ProgressRadial } from '@skeletonlabs/skeleton';
- import BreadCrumbs from '$lib/components/breadcrumbs/breadcrums.svelte';
+ import BreadCrumbs from '$lib/components/breadcrumbs/breadcrums.svelte';
////////////////////////////////////////////////////////////////////////
const userId = $page.params.userId;
const enrollmentId = $page.params.enrollmentId;
- const createRoute = `/users/${userId}/enrollments/create`;
- const editRoute = `/users/${userId}/careplan/enrollments/${enrollmentId}/edit`;
const viewRoute = `/users/${userId}/careplan/enrollments/${enrollmentId}/view`;
const viewTaskRoute = `/users/${userId}/careplan/enrollments/${enrollmentId}/tasks`;
const enrollmentsRoute = `/users/${userId}/careplan/enrollments`;
export let data: PageServerData;
- let value: number = 50; // %
let enrollment = data.enrollment;
let enrollmentStats = data.enrollmentStats;
let participantBirthDate = enrollment.Participant.BirthDate;
@@ -27,7 +22,6 @@
let enrollmentCode = enrollment.DisplayId;
let currentWeek = enrollmentStats.CurrentWeek;
let totalWeeks = enrollmentStats.TotalWeek;
- let weekArray = Array.from(new Array(totalWeeks), (x, i) => i + 1);
let MAX_STEP_WIDTH = 500;
//Calculating age by birthdate
let year = Number(participantBirthDate.substr(0, 4));
diff --git a/src/routes/users/[userId]/cohorts/+page.svelte b/src/routes/users/[userId]/cohorts/+page.svelte
index 282da74f..836bb5e8 100755
--- a/src/routes/users/[userId]/cohorts/+page.svelte
+++ b/src/routes/users/[userId]/cohorts/+page.svelte
@@ -40,6 +40,7 @@
} satisfies PaginationSettings;
async function searchCohorts(model) {
+ console.log(model);
let url = `/api/server/cohorts/search?`;
if (sortOrder) url += `sortOrder=${sortOrder}`;
else url += `sortOrder=ascending`;
@@ -109,7 +110,7 @@
}
async function Delete(model) {
- const response = await fetch(`/api/server/cohorts`, {
+ await fetch(`/api/server/cohorts`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/cohorts/[id]/view/+page.svelte b/src/routes/users/[userId]/cohorts/[id]/view/+page.svelte
index 0b1be338..daeebd63 100755
--- a/src/routes/users/[userId]/cohorts/[id]/view/+page.svelte
+++ b/src/routes/users/[userId]/cohorts/[id]/view/+page.svelte
@@ -11,7 +11,6 @@
console.log(data.cohort)
let name = data.cohort.Name;
let description = (data.cohort.Description !== '' && data.cohort.Description !== null) ? data.cohort.Description : 'Not specified';
- let tenant = data.cohort.TenantId;
let imageUrl = data.cohort.ImageUrl;
const userId = $page.params.userId;
diff --git a/src/routes/users/[userId]/courses/+page.svelte b/src/routes/users/[userId]/courses/+page.svelte
index c1eb76fc..674a2d18 100755
--- a/src/routes/users/[userId]/courses/+page.svelte
+++ b/src/routes/users/[userId]/courses/+page.svelte
@@ -20,7 +20,6 @@
const userId = $page.params.userId;
const courseRoute = `/users/${userId}/courses`;
- const editRoute = (id) => `/users/${userId}/courses/${id}/edit`;
const createRoute = `/users/${userId}/courses/create`;
const breadCrumbs = [
@@ -137,7 +136,7 @@
};
async function DeleteModule(model) {
- const response = await fetch(`/api/server/modules`, {
+ await fetch(`/api/server/modules`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
@@ -155,7 +154,7 @@
};
async function DeleteContent(model) {
- const response = await fetch(`/api/server/course-contents`, {
+ await fetch(`/api/server/course-contents`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/courses/[courseId]/edit/+page.svelte b/src/routes/users/[userId]/courses/[courseId]/edit/+page.svelte
index ad7e76c4..cc1e7c02 100755
--- a/src/routes/users/[userId]/courses/[courseId]/edit/+page.svelte
+++ b/src/routes/users/[userId]/courses/[courseId]/edit/+page.svelte
@@ -11,7 +11,6 @@
export let form;
export let data: PageServerData;
- let id = data.course.id;
let name = data.course.Name;
let description = data.course.Description;
let durationInDays = data.course.DurationInDays;
@@ -64,7 +63,6 @@
console.log(Date.now().toString());
const response = await res.json();
if (response.Status === 'success' && response.HttpCode === 201) {
- const imageResourceId = response.Data.FileResources[0].id;
const imageUrl_ = response.Data.FileResources[0].Url;
console.log('imageUrl_', imageUrl_);
if (imageUrl_) {
diff --git a/src/routes/users/[userId]/courses/[courseId]/modules/+page.svelte b/src/routes/users/[userId]/courses/[courseId]/modules/+page.svelte
index c71fa201..5fbec3ae 100755
--- a/src/routes/users/[userId]/courses/[courseId]/modules/+page.svelte
+++ b/src/routes/users/[userId]/courses/[courseId]/modules/+page.svelte
@@ -53,7 +53,6 @@
let itemsPerPage = 10;
let offset = 0;
let totalModuleCount = data.modules.TotalCount;
- let isSortingName = false;
let items = 10;
let paginationSettings = {
@@ -121,7 +120,7 @@
};
async function Delete(model) {
- const response = await fetch(`/api/server/modules`, {
+ await fetch(`/api/server/modules`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/courses/[courseId]/modules/[moduleId]/contents/+page.svelte b/src/routes/users/[userId]/courses/[courseId]/modules/[moduleId]/contents/+page.svelte
index f017fdb6..73573a18 100755
--- a/src/routes/users/[userId]/courses/[courseId]/modules/[moduleId]/contents/+page.svelte
+++ b/src/routes/users/[userId]/courses/[courseId]/modules/[moduleId]/contents/+page.svelte
@@ -41,7 +41,6 @@
let itemsPerPage = 10;
let offset = 0;
let totalModuleCount = data.courseContent.TotalCount;
- let isSortingName = false;
let items = 10;
let paginationSettings = {
@@ -110,7 +109,7 @@
};
async function Delete(model) {
- const response = await fetch(`/api/server/course-contents`, {
+ await fetch(`/api/server/course-contents`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/courses/[courseId]/modules/[moduleId]/contents/[contentId]/edit/+page.svelte b/src/routes/users/[userId]/courses/[courseId]/modules/[moduleId]/contents/[contentId]/edit/+page.svelte
index 0b20497f..b6a461eb 100755
--- a/src/routes/users/[userId]/courses/[courseId]/modules/[moduleId]/contents/[contentId]/edit/+page.svelte
+++ b/src/routes/users/[userId]/courses/[courseId]/modules/[moduleId]/contents/[contentId]/edit/+page.svelte
@@ -3,15 +3,13 @@
import BreadCrumbs from '$lib/components/breadcrumbs/breadcrums.svelte';
import Image from '$lib/components/image.svelte';
import { showMessage } from '$lib/utils/message.utils';
- import Icon from '@iconify/svelte';
import type { PageServerData } from './$types';
- import { enhance } from '$app/forms';
+ import { enhance } from '$app/forms';
/////////////////////////////////////////////////////////////////////////////////////////
export let form;
export let data: PageServerData;
- let id = data.content.id;
let title = data.content.Title;
let description = data.content.Description;
let contentType = data.content.ContentType;
@@ -84,7 +82,6 @@
console.log(Date.now().toString());
const response = await res.json();
if (response.Status === 'success' && response.HttpCode === 201) {
- const imageResourceId = response.Data.FileResources[0].id;
const imageUrl_ = response.Data.FileResources[0].Url;
console.log('imageUrl_', imageUrl_);
if (imageUrl_) {
diff --git a/src/routes/users/[userId]/courses/[courseId]/modules/[moduleId]/edit/+page.svelte b/src/routes/users/[userId]/courses/[courseId]/modules/[moduleId]/edit/+page.svelte
index 2cae3562..9627f7d1 100755
--- a/src/routes/users/[userId]/courses/[courseId]/modules/[moduleId]/edit/+page.svelte
+++ b/src/routes/users/[userId]/courses/[courseId]/modules/[moduleId]/edit/+page.svelte
@@ -36,7 +36,6 @@
const moduleId = $page.params.moduleId;
const editRoute = `/users/${userId}/courses/${courseId}/modules/${moduleId}/edit`;
const viewRoute = `/users/${userId}/courses/${courseId}/modules/${moduleId}/view`;
- const moduleRoute = `/users/${userId}/courses/${courseId}/modules/${moduleId}/view`;
const courseRoute = `/users/${userId}/courses`;
const breadCrumbs = [
diff --git a/src/routes/users/[userId]/custom-queries/+page.svelte b/src/routes/users/[userId]/custom-queries/+page.svelte
index 7816e587..ec23c5f7 100755
--- a/src/routes/users/[userId]/custom-queries/+page.svelte
+++ b/src/routes/users/[userId]/custom-queries/+page.svelte
@@ -8,9 +8,8 @@
import {
Paginator, type PaginationSettings,
} from '@skeletonlabs/skeleton';
- import date from 'date-and-time';
import type { PageServerData } from './$types';
- import { invalidate } from '$app/navigation';
+ import { invalidate } from '$app/navigation';
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -32,7 +31,6 @@
let offset = 0;
let totalCustomQueriesCount = data.queries.TotalCount;
let isSortingName = false;
- let isSortingGenericName = false;
let items = 10;
let paginationSettings = {
@@ -43,6 +41,7 @@
} satisfies PaginationSettings;
async function searchQuery(model) {
+ console.log(model);
let url = `/api/server/custom-query/search?`;
if (sortOrder) url += `sortOrder=${sortOrder}`;
else url += `sortOrder=ascending`;
@@ -107,7 +106,7 @@
};
async function Delete(model) {
- const response = await fetch(`/api/server/custom-query/delete`, {
+ await fetch(`/api/server/custom-query/delete`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/custom-queries/[id]/edit/+page.svelte b/src/routes/users/[userId]/custom-queries/[id]/edit/+page.svelte
index fc5adf6d..ac7a5fd7 100755
--- a/src/routes/users/[userId]/custom-queries/[id]/edit/+page.svelte
+++ b/src/routes/users/[userId]/custom-queries/[id]/edit/+page.svelte
@@ -6,12 +6,10 @@
import type { PageServerData } from './$types';
import { goto } from '$app/navigation';
import toast from 'svelte-french-toast';
- import { enhance } from '$app/forms';
//////////////////////////////////////////////////////////////////////
export let data: PageServerData;
- let id = data.query.id;
let name = data.query.Name;
let description = data.query.Description;
let query = data.query.Query;
@@ -74,6 +72,7 @@
goto(queryRoute);
} else {
const data = downloadFile(res)
+ console.log(data);
toast.success(`Query executed successfully, View downloads for data file`)
goto(queryRoute);
}
diff --git a/src/routes/users/[userId]/custom-queries/create/+page.svelte b/src/routes/users/[userId]/custom-queries/create/+page.svelte
index a4502296..12032adb 100755
--- a/src/routes/users/[userId]/custom-queries/create/+page.svelte
+++ b/src/routes/users/[userId]/custom-queries/create/+page.svelte
@@ -5,7 +5,6 @@
import InputChip from '$lib/components/input-chips.svelte';
import toast from 'svelte-french-toast';
import { goto } from '$app/navigation';
- import { enhance } from '$app/forms';
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -48,6 +47,7 @@
goto(queryRoute);
} else {
const data = downloadFile(res)
+ console.log(data);
toast.success(`Query executed successfully, View downloads for data file`)
goto(queryRoute);
}
diff --git a/src/routes/users/[userId]/drugs/+page.svelte b/src/routes/users/[userId]/drugs/+page.svelte
index 92003f45..b20cf3c0 100755
--- a/src/routes/users/[userId]/drugs/+page.svelte
+++ b/src/routes/users/[userId]/drugs/+page.svelte
@@ -117,7 +117,7 @@
};
async function Delete(model) {
- const response = await fetch(`/api/server/drugs`, {
+ await fetch(`/api/server/drugs`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/drugs/[id]/edit/+page.svelte b/src/routes/users/[userId]/drugs/[id]/edit/+page.svelte
index 7657ae5f..e7bcd244 100755
--- a/src/routes/users/[userId]/drugs/[id]/edit/+page.svelte
+++ b/src/routes/users/[userId]/drugs/[id]/edit/+page.svelte
@@ -7,7 +7,6 @@
export let form;
export let data: PageServerData;
- let initiaData = {};
let id = data.drug.id;
let drugName = data.drug.DrugName;
let genericName = data.drug.GenericName;
diff --git a/src/routes/users/[userId]/gamification/badge-categories/+page.svelte b/src/routes/users/[userId]/gamification/badge-categories/+page.svelte
index 978f6494..d3eede8b 100755
--- a/src/routes/users/[userId]/gamification/badge-categories/+page.svelte
+++ b/src/routes/users/[userId]/gamification/badge-categories/+page.svelte
@@ -90,7 +90,7 @@
if (columnName === 'Name') {
isSortingName = true;
} else if (columnName === 'GenericName') {
-
+ console.log(columnName);
}
sortBy = columnName;
}
@@ -106,7 +106,7 @@
};
async function Delete(model) {
- const response = await fetch(`/api/server/gamification/badge-categories`, {
+ await fetch(`/api/server/gamification/badge-categories`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/gamification/badge-categories/[id]/edit/+page.svelte b/src/routes/users/[userId]/gamification/badge-categories/[id]/edit/+page.svelte
index ddc8efcd..7df253ce 100755
--- a/src/routes/users/[userId]/gamification/badge-categories/[id]/edit/+page.svelte
+++ b/src/routes/users/[userId]/gamification/badge-categories/[id]/edit/+page.svelte
@@ -11,7 +11,6 @@
export let form;
export let data: PageServerData;
- let id = data.badgeCategory.id;
let name = data.badgeCategory.Name;
let description = data.badgeCategory.Description;
let imageUrl = data.badgeCategory.ImageUrl;
@@ -61,7 +60,6 @@
console.log(Date.now().toString());
const response = await res.json();
if (response.Status === 'success' && response.HttpCode === 201) {
- const imageResourceId = response.Data.FileResources[0].id;
const imageUrl_ = response.Data.FileResources[0].Url;
console.log('imageUrl_', imageUrl_);
if (imageUrl_) {
diff --git a/src/routes/users/[userId]/gamification/badge-categories/[id]/view/+page.svelte b/src/routes/users/[userId]/gamification/badge-categories/[id]/view/+page.svelte
index b3e3934c..d6c33e20 100755
--- a/src/routes/users/[userId]/gamification/badge-categories/[id]/view/+page.svelte
+++ b/src/routes/users/[userId]/gamification/badge-categories/[id]/view/+page.svelte
@@ -8,7 +8,6 @@
//////////////////////////////////////////////////////////////////////
export let data: PageServerData;
- let id = data.badgeCategory.id;
let name = data.badgeCategory.Name;
let description = (data.badgeCategory.Description !== null && data.badgeCategory.Description ) ? data.badgeCategory.Description: 'Not specified';
let imageUrl = data.badgeCategory.ImageUrl;
diff --git a/src/routes/users/[userId]/gamification/badges/+page.svelte b/src/routes/users/[userId]/gamification/badges/+page.svelte
index 73115fea..1ee88db0 100755
--- a/src/routes/users/[userId]/gamification/badges/+page.svelte
+++ b/src/routes/users/[userId]/gamification/badges/+page.svelte
@@ -120,7 +120,7 @@
};
async function Delete(model) {
- const response = await fetch(`/api/server/gamification/badges`, {
+ await fetch(`/api/server/gamification/badges`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/gamification/badges/[id]/edit/+page.svelte b/src/routes/users/[userId]/gamification/badges/[id]/edit/+page.svelte
index 83d3d676..fb87bebe 100755
--- a/src/routes/users/[userId]/gamification/badges/[id]/edit/+page.svelte
+++ b/src/routes/users/[userId]/gamification/badges/[id]/edit/+page.svelte
@@ -65,7 +65,6 @@
console.log(Date.now().toString());
const response = await res.json();
if (response.Status === 'success' && response.HttpCode === 201) {
- const imageResourceId = response.Data.FileResources[0].id;
const imageUrl_ = response.Data.FileResources[0].Url;
console.log('imageUrl_', imageUrl_);
if (imageUrl_) {
diff --git a/src/routes/users/[userId]/gamification/event-types/+page.svelte b/src/routes/users/[userId]/gamification/event-types/+page.svelte
index 84845a7f..d106b608 100755
--- a/src/routes/users/[userId]/gamification/event-types/+page.svelte
+++ b/src/routes/users/[userId]/gamification/event-types/+page.svelte
@@ -92,7 +92,7 @@
if (columnName === 'Name') {
isSortingName = true;
} else if (columnName === '') {
-
+ console.log(columnName);
}
sortBy = columnName;
}
@@ -108,7 +108,7 @@
};
async function Delete(model) {
- const response = await fetch(`/api/server/gamification/event-types`, {
+ await fetch(`/api/server/gamification/event-types`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/gamification/schemas/+page.svelte b/src/routes/users/[userId]/gamification/schemas/+page.svelte
index fdf11217..5c7b1086 100755
--- a/src/routes/users/[userId]/gamification/schemas/+page.svelte
+++ b/src/routes/users/[userId]/gamification/schemas/+page.svelte
@@ -91,6 +91,7 @@
if (columnName === 'Name') {
isSortingName = true;
} else if (columnName === '') {
+ console.log(columnName);
}
sortBy = columnName;
}
@@ -106,7 +107,7 @@
};
async function Delete(model) {
- const response = await fetch(`/api/server/gamification/schemas`, {
+ await fetch(`/api/server/gamification/schemas`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/gamification/schemas/[schemaId]/nodes/+page.svelte b/src/routes/users/[userId]/gamification/schemas/[schemaId]/nodes/+page.svelte
index 6953a036..3ba70cce 100755
--- a/src/routes/users/[userId]/gamification/schemas/[schemaId]/nodes/+page.svelte
+++ b/src/routes/users/[userId]/gamification/schemas/[schemaId]/nodes/+page.svelte
@@ -46,6 +46,7 @@
} satisfies PaginationSettings;
async function searchNode(model) {
+ console.log(model);
let url = `/api/server/gamification/nodes/search?schemaId=${schemaId}&`;
if (sortOrder) url += `sortOrder=${sortOrder}`;
else url += `sortOrder=ascending`;
@@ -103,12 +104,13 @@
if (columnName === 'Name') {
isSortingName = true;
} else if (columnName === '') {
+ console.log(columnName);
}
sortBy = columnName;
}
async function Delete(model) {
- const response = await fetch(`/api/server/gamification/nodes`, {
+ await fetch(`/api/server/gamification/nodes`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/gamification/schemas/[schemaId]/nodes/[nodeId]/edit/+page.svelte b/src/routes/users/[userId]/gamification/schemas/[schemaId]/nodes/[nodeId]/edit/+page.svelte
index 2cd42df8..773130ca 100755
--- a/src/routes/users/[userId]/gamification/schemas/[schemaId]/nodes/[nodeId]/edit/+page.svelte
+++ b/src/routes/users/[userId]/gamification/schemas/[schemaId]/nodes/[nodeId]/edit/+page.svelte
@@ -71,9 +71,7 @@ $:console.log("items", $items)
};
const userId = $page.params.userId;
const schemaId = $page.params.schemaId;
- const createRoute = `/users/${userId}/gamification/schemas/${schemaId}/nodes/create`;
const editRoute = `/users/${userId}/gamification/schemas/${schemaId}/edit`;
- const viewRoute = `/users/${userId}/gamification/schemas/${schemaId}/view`;
const schemaRoute = `/users/${userId}/gamification/schemas`;
const nodeRoute = `/users/${userId}/gamification/schemas/${schemaId}/nodes`;
diff --git a/src/routes/users/[userId]/gamification/schemas/[schemaId]/nodes/create/+page.svelte b/src/routes/users/[userId]/gamification/schemas/[schemaId]/nodes/create/+page.svelte
index 16ea235b..e429b720 100755
--- a/src/routes/users/[userId]/gamification/schemas/[schemaId]/nodes/create/+page.svelte
+++ b/src/routes/users/[userId]/gamification/schemas/[schemaId]/nodes/create/+page.svelte
@@ -30,9 +30,7 @@
const userId = $page.params.userId;
const schemaId = $page.params.schemaId;
const createRoute = `/users/${userId}/gamification/schemas/${schemaId}/nodes/create`;
- const editRoute = `/users/${userId}/gamification/schemas/${schemaId}/edit`;
- const viewRoute = `/users/${userId}/gamification/schemas/${schemaId}/view`;
- const schemaRoute = `/users/${userId}/gamification/schemas`;
+ const schemaRoute = `/users/${userId}/gamification/schemas`;
const nodeRoute = `/users/${userId}/gamification/schemas/${schemaId}/nodes`;
const breadCrumbs = [
diff --git a/src/routes/users/[userId]/gamification/schemas/create/+page.svelte b/src/routes/users/[userId]/gamification/schemas/create/+page.svelte
index 01c05c89..1c7d2be4 100755
--- a/src/routes/users/[userId]/gamification/schemas/create/+page.svelte
+++ b/src/routes/users/[userId]/gamification/schemas/create/+page.svelte
@@ -1,9 +1,7 @@
diff --git a/src/routes/users/[userId]/newsfeeds/[newsfeedId]/newsfeed-items/[newsfeedItemId]/edit/+page.svelte b/src/routes/users/[userId]/newsfeeds/[newsfeedId]/newsfeed-items/[newsfeedItemId]/edit/+page.svelte
index e66d1a70..14b384c2 100755
--- a/src/routes/users/[userId]/newsfeeds/[newsfeedId]/newsfeed-items/[newsfeedItemId]/edit/+page.svelte
+++ b/src/routes/users/[userId]/newsfeeds/[newsfeedId]/newsfeed-items/[newsfeedItemId]/edit/+page.svelte
@@ -10,7 +10,6 @@
export let form;
export let data: PageServerData;
- let initiaData = {};
let id = data.newsfeedItem.id;
let title = data.newsfeedItem.Title;
let description = data.newsfeedItem.Description;
@@ -31,7 +30,6 @@
let _authorName = authorName;
let _authorEmail = authorEmail;
let _authorLink = authorLink;
- let _publishingDate = publishingDate;
let _image = image;
function handleReset() {
diff --git a/src/routes/users/[userId]/newsfeeds/[newsfeedId]/view/+page.svelte b/src/routes/users/[userId]/newsfeeds/[newsfeedId]/view/+page.svelte
index 33d506bd..a12ee2d9 100755
--- a/src/routes/users/[userId]/newsfeeds/[newsfeedId]/view/+page.svelte
+++ b/src/routes/users/[userId]/newsfeeds/[newsfeedId]/view/+page.svelte
@@ -32,7 +32,6 @@
const editRoute = `/users/${userId}/newsfeeds/${id}/edit`;
const viewRoute = `/users/${userId}/newsfeeds/${id}/view`;
const newsfeedRoute = `/users/${userId}/newsfeeds`;
- const viewItemRoute = (id) => `/users/${userId}/newsfeeds/${id}/newsfeed-items/${id}/view`;
const newsfeedItemRoute = `/users/${userId}/newsfeeds/${newsfeedId}/newsfeed-items/create`;
const editItemRoute = (id) => `/users/${userId}/newsfeeds/${id}/newsfeed-items/${id}/edit`;
@@ -57,7 +56,7 @@
};
async function Delete(model) {
- const response = await fetch(`/api/server/newsfeed-items`, {
+ await fetch(`/api/server/newsfeed-items`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/notices/+page.svelte b/src/routes/users/[userId]/notices/+page.svelte
index 77805174..7720df27 100755
--- a/src/routes/users/[userId]/notices/+page.svelte
+++ b/src/routes/users/[userId]/notices/+page.svelte
@@ -41,6 +41,7 @@
} satisfies PaginationSettings;
async function searchLinkage(model) {
+ console.log(model);
let url = `/api/server/notices/search?`;
if (sortOrder) url += `sortOrder=${sortOrder}`;
else url += `sortOrder=ascending`;
@@ -106,7 +107,7 @@
};
async function Delete(model) {
- const response = await fetch(`/api/server/notices`, {
+ await fetch(`/api/server/notices`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/notifications/+page.svelte b/src/routes/users/[userId]/notifications/+page.svelte
index 4dc74cf5..d10e95e0 100755
--- a/src/routes/users/[userId]/notifications/+page.svelte
+++ b/src/routes/users/[userId]/notifications/+page.svelte
@@ -41,6 +41,7 @@
} satisfies PaginationSettings;
async function searchNotification(model) {
+ console.log(model);
let url = `/api/server/notifications/search?`;
if (sortOrder) url += `sortOrder=${sortOrder}`;
else url += `sortOrder=ascending`;
@@ -106,7 +107,7 @@
};
async function Delete(model) {
- const response = await fetch(`/api/server/notifications`, {
+ await fetch(`/api/server/notifications`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/organizations/+page.svelte b/src/routes/users/[userId]/organizations/+page.svelte
index c3e0e56a..9da816d0 100755
--- a/src/routes/users/[userId]/organizations/+page.svelte
+++ b/src/routes/users/[userId]/organizations/+page.svelte
@@ -40,6 +40,7 @@
} satisfies PaginationSettings;
async function searchOrganization(model) {
+ console.log(model);
let url = `/api/server/organizations/search?`;
if (sortOrder) url += `sortOrder=${sortOrder}`;
else url += `sortOrder=ascending`;
@@ -109,7 +110,7 @@
};
async function Delete(model) {
- const response = await fetch(`/api/server/organizations/delete`, {
+ await fetch(`/api/server/organizations/delete`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/organizations/create/+page.svelte b/src/routes/users/[userId]/organizations/create/+page.svelte
index 3d4e0627..5e6f0a73 100755
--- a/src/routes/users/[userId]/organizations/create/+page.svelte
+++ b/src/routes/users/[userId]/organizations/create/+page.svelte
@@ -5,15 +5,13 @@
import { LocalStorageUtils } from '$lib/utils/local.storage.utils';
import { showMessage } from '$lib/utils/message.utils';
import Icon from '@iconify/svelte';
- import { Country } from 'country-state-city';
import type { PageServerData } from './$types';
- import { enhance } from '$app/forms';
+ import { enhance } from '$app/forms';
///////////////////////////////////////////////////////////////////////////////////////
export let form;
export let data: PageServerData;
- let country = Country.getAllCountries();
const userId = $page.params.userId;
let imageResourceId = '';
let imageUrl = undefined;
@@ -54,7 +52,6 @@
console.log(Date.now().toString());
const response = await res.json();
if (response.Status === 'success' && response.HttpCode === 201) {
- const imageUrl_ = response.Data.FileResources[0].Url;
console.log('imageUrl', imageUrl);
const imageResourceId_ = response.Data.FileResources[0].id;
console.log('imageResourceId_', imageUrl);
diff --git a/src/routes/users/[userId]/person-role-types/+page.svelte b/src/routes/users/[userId]/person-role-types/+page.svelte
index 3cb95733..5c12ca70 100755
--- a/src/routes/users/[userId]/person-role-types/+page.svelte
+++ b/src/routes/users/[userId]/person-role-types/+page.svelte
@@ -85,7 +85,7 @@
};
async function Delete(model) {
- const response = await fetch(`/api/server/person-role-types`, {
+ await fetch(`/api/server/person-role-types`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/priorities/+page.svelte b/src/routes/users/[userId]/priorities/+page.svelte
index a13abdd4..5b81f734 100755
--- a/src/routes/users/[userId]/priorities/+page.svelte
+++ b/src/routes/users/[userId]/priorities/+page.svelte
@@ -91,7 +91,7 @@
};
async function Delete(model) {
- const response = await fetch(`/api/server/priorities`, {
+ await fetch(`/api/server/priorities`, {
method: 'DELETE',
body: JSON.stringify(model),
headers: { 'content-type': 'application/json' }
diff --git a/src/routes/users/[userId]/priorities/[id]/view/+page.svelte b/src/routes/users/[userId]/priorities/[id]/view/+page.svelte
index 9fbb0579..df149491 100755
--- a/src/routes/users/[userId]/priorities/[id]/view/+page.svelte
+++ b/src/routes/users/[userId]/priorities/[id]/view/+page.svelte
@@ -1,10 +1,7 @@