placementt-core 1.20.197 → 11.0.533
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +40 -40
- package/.gitattributes +2 -2
- package/lib/config.d.ts +0 -1
- package/lib/constants.d.ts +5 -2
- package/lib/constants.js +130 -136
- package/lib/constants.js.map +1 -1
- package/lib/features/analytics/useAnalytics.d.ts +0 -1
- package/lib/features/analytics/useAnalytics.js +3 -4
- package/lib/features/analytics/useAnalytics.js.map +1 -1
- package/lib/features/config.d.ts +133 -133
- package/lib/features/config.js +35 -35
- package/lib/features/contacts/contacts.d.ts +75 -75
- package/lib/features/contacts/contacts.js +105 -105
- package/lib/features/contacts/contactsSlice.d.ts +5 -5
- package/lib/features/contacts/useContacts.js +1 -2
- package/lib/features/contacts/useContacts.js.map +1 -1
- package/lib/features/downtime/useDowntime.d.ts +11 -11
- package/lib/features/downtime/useDowntime.js +22 -22
- package/lib/features/dropdown/useDropdown.d.ts +2 -3
- package/lib/features/dropdown/useDropdown.js +1 -2
- package/lib/features/dropdown/useDropdown.js.map +1 -1
- package/lib/features/global/downtime/useDowntime.d.ts +0 -1
- package/lib/features/global/downtime/useDowntime.js +3 -2
- package/lib/features/global/downtime/useDowntime.js.map +1 -1
- package/lib/features/global/users/useUserFunctions.d.ts +0 -1
- package/lib/features/global/users/useUserFunctions.js +6 -7
- package/lib/features/global/users/useUserFunctions.js.map +1 -1
- package/lib/features/placements/studentPlacements/activePlacement.d.ts +1 -1
- package/lib/features/placements/studentPlacements/activePlacement.js +1 -1
- package/lib/features/placements/studentPlacements/activePlacement.js.map +1 -1
- package/lib/features/placements/studentPlacements/completedStudentPlacementsSlice.d.ts +4 -5
- package/lib/features/placements/studentPlacements/completedStudentPlacementsSlice.js +1 -4
- package/lib/features/placements/studentPlacements/completedStudentPlacementsSlice.js.map +1 -1
- package/lib/features/placements/studentPlacements/studentPlacementsSlice.d.ts +63 -63
- package/lib/features/placements/studentPlacements/studentPlacementsSlice.js +81 -81
- package/lib/features/placements/studentPlacements/upcomingStudentPlacementsSlice.d.ts +4 -4
- package/lib/features/placements/studentPlacements/upcomingStudentPlacementsSlice.js +1 -1
- package/lib/features/placements/studentPlacements/upcomingStudentPlacementsSlice.js.map +1 -1
- package/lib/features/placements/studentPlacements/useStudentPlacements.d.ts +0 -1
- package/lib/features/placements/studentPlacements/useStudentPlacements.js +1 -2
- package/lib/features/placements/studentPlacements/useStudentPlacements.js.map +1 -1
- package/lib/features/providerPlacements/providerPlacementsSlice.d.ts +19 -19
- package/lib/features/providerPlacements/providerPlacementsSlice.js +24 -24
- package/lib/features/referrals/useReferrals.d.ts +0 -1
- package/lib/features/referrals/useReferrals.js +1 -2
- package/lib/features/referrals/useReferrals.js.map +1 -1
- package/lib/features/studentPlacements/studentPlacementsSlice.d.ts +62 -62
- package/lib/features/studentPlacements/studentPlacementsSlice.js +87 -87
- package/lib/features/studentPlacements/useStudentPlacements.d.ts +6 -6
- package/lib/features/studentPlacements/useStudentPlacements.js +18 -18
- package/lib/features/updates/useUpdates.js +1 -2
- package/lib/features/updates/useUpdates.js.map +1 -1
- package/lib/features/userSlice.d.ts +26 -26
- package/lib/features/userSlice.js +23 -23
- package/lib/features/users/useUserFunctions.d.ts +25 -25
- package/lib/features/users/useUserFunctions.js +124 -124
- package/lib/features/users/userSlice.d.ts +46 -46
- package/lib/features/users/userSlice.js +48 -48
- package/lib/firebase/firebase.d.ts +1 -1
- package/lib/firebase/firebase.js +9 -4
- package/lib/firebase/firebase.js.map +1 -1
- package/lib/firebase/firebaseConfig.js +3 -0
- package/lib/firebase/firebaseConfig.js.map +1 -1
- package/lib/firebase/firebaseQuery.js +3 -0
- package/lib/firebase/firebaseQuery.js.map +1 -1
- package/lib/firebase/persistence.js +2 -2
- package/lib/firebase/persistence.js.map +1 -1
- package/lib/firebase/readDatabase.d.ts +9 -6
- package/lib/firebase/readDatabase.js +16 -6
- package/lib/firebase/readDatabase.js.map +1 -1
- package/lib/firebase/util.d.ts +3 -4
- package/lib/firebase/util.js +49 -4
- package/lib/firebase/util.js.map +1 -1
- package/lib/firebase/writeDatabase.d.ts +3 -3
- package/lib/firebase/writeDatabase.js +7 -1
- package/lib/firebase/writeDatabase.js.map +1 -1
- package/lib/hooks.d.ts +384 -23
- package/lib/hooks.js +1342 -223
- package/lib/hooks.js.map +1 -1
- package/lib/images/GatsbyBenchmarks.d.ts +0 -1
- package/lib/images/GatsbyBenchmarks.js +1 -1
- package/lib/images/GatsbyBenchmarks.js.map +1 -1
- package/lib/reduxHooks.d.ts +11 -20
- package/lib/reduxHooks.js +28 -18
- package/lib/reduxHooks.js.map +1 -1
- package/lib/tasksAndTips.d.ts +25 -5
- package/lib/tasksAndTips.js +346 -48
- package/lib/tasksAndTips.js.map +1 -1
- package/lib/typeDefinitions.d.ts +478 -53
- package/lib/util.d.ts +1 -0
- package/lib/util.js +78 -6
- package/lib/util.js.map +1 -1
- package/package.json +52 -49
- package/src/DatabaseDefinitions.ts +18 -18
- package/src/apiCalls.ts +128 -128
- package/src/config.ts +50 -50
- package/src/constants.ts +708 -707
- package/src/databaseTypes.ts +42 -42
- package/src/features/analytics/useAnalytics.tsx +55 -55
- package/src/features/contacts/contactsSlice.ts +147 -147
- package/src/features/contacts/useContacts.tsx +73 -73
- package/src/features/dropdown/useDropdown.tsx +52 -52
- package/src/features/global/downtime/useDowntime.tsx +19 -18
- package/src/features/global/users/useUserFunctions.tsx +132 -132
- package/src/features/jobs/jobsSlice.ts +65 -65
- package/src/features/placements/studentPlacements/activePlacement.ts +63 -63
- package/src/features/placements/studentPlacements/completedStudentPlacementsSlice.ts +94 -97
- package/src/features/placements/studentPlacements/upcomingStudentPlacementsSlice.ts +108 -108
- package/src/features/placements/studentPlacements/useStudentPlacements.tsx +33 -33
- package/src/features/placements/types.ts +10 -10
- package/src/features/referrals/useReferrals.tsx +56 -56
- package/src/features/updates/useUpdates.tsx +36 -36
- package/src/firebase/firebase.tsx +142 -138
- package/src/firebase/firebaseConfig.tsx +45 -42
- package/src/firebase/firebaseQuery.tsx +143 -140
- package/src/firebase/persistence.ts +84 -84
- package/src/firebase/readDatabase.tsx +208 -197
- package/src/firebase/util.tsx +352 -308
- package/src/firebase/writeDatabase.tsx +75 -68
- package/src/hooks.tsx +3395 -1943
- package/src/images/GatsbyBenchmarks.tsx +711 -711
- package/src/images/LogFuturePlacement.jsx +64 -64
- package/src/images/LogPreviousPlacement.jsx +228 -228
- package/src/images/gatsby_benchmarks.svg +466 -466
- package/src/images/log_future_placement.svg +114 -114
- package/src/images/log_previous_placement.svg +199 -199
- package/src/index.ts +34 -34
- package/src/readDatabase.tsx +3 -3
- package/src/reduxHooks.ts +183 -170
- package/src/tasksAndTips.ts +744 -410
- package/src/tutorialTips.ts +58 -58
- package/src/typeDefinitions.ts +899 -503
- package/src/util.ts +132 -47
- package/tsconfig.dev.json +5 -5
- package/tsconfig.json +21 -21
package/src/tutorialTips.ts
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import {getItemInNestedObject} from "./firebase/util";
|
|
2
|
-
|
|
3
|
-
export const getTip = (path: string[]) => {
|
|
4
|
-
const tips = {
|
|
5
|
-
institutes: {
|
|
6
|
-
Students: {
|
|
7
|
-
submissionSoon: {
|
|
8
|
-
title: "",
|
|
9
|
-
description: "",
|
|
10
|
-
},
|
|
11
|
-
submissionNow: {
|
|
12
|
-
title: "",
|
|
13
|
-
description: "",
|
|
14
|
-
},
|
|
15
|
-
submissionClosed: {
|
|
16
|
-
title: "",
|
|
17
|
-
description: "",
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
Staff: {
|
|
21
|
-
addUsers: {
|
|
22
|
-
title: "Adding users",
|
|
23
|
-
description: "You can add staff and students to your account in the 'Users' page. Upload a CSV file or add individual users through with form.",
|
|
24
|
-
buttonTitle: "Users",
|
|
25
|
-
buttonURL: "/institutes/users",
|
|
26
|
-
},
|
|
27
|
-
userGroups: {
|
|
28
|
-
title: "Set up user groups",
|
|
29
|
-
description: "Students must have a user group with a workflow before they are activated. Customise your user group on the 'Users' page.",
|
|
30
|
-
buttonTitle: "Users",
|
|
31
|
-
buttonURL: "/institutes/users",
|
|
32
|
-
},
|
|
33
|
-
activateStudents: {
|
|
34
|
-
title: "Activate students",
|
|
35
|
-
description: "Activate your students from the 'Users' page to allow them to use the platform. Click the tick icon on the user table.",
|
|
36
|
-
buttonTitle: "Users",
|
|
37
|
-
buttonURL: "/institutes/users",
|
|
38
|
-
},
|
|
39
|
-
activateStaff: {
|
|
40
|
-
title: "Activate staff",
|
|
41
|
-
description: "Activate staff on the 'Users' page. Assign staff roles to filter their students. Do this from the staff user profile and customise visibility in their user group.",
|
|
42
|
-
buttonTitle: "Users",
|
|
43
|
-
buttonURL: "/institutes/users",
|
|
44
|
-
},
|
|
45
|
-
addPlacements: {
|
|
46
|
-
title: "Add placements",
|
|
47
|
-
description: "Students can now create placements within the submission period you defined in their user group. You can also manually create placements on the Placements page.",
|
|
48
|
-
buttonTitle: "Placements",
|
|
49
|
-
buttonURL: "/institutes/placements",
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
console.log("tips", tips);
|
|
56
|
-
|
|
57
|
-
return getItemInNestedObject(path, tips);
|
|
58
|
-
};
|
|
1
|
+
import {getItemInNestedObject} from "./firebase/util";
|
|
2
|
+
|
|
3
|
+
export const getTip = (path: string[]) => {
|
|
4
|
+
const tips = {
|
|
5
|
+
institutes: {
|
|
6
|
+
Students: {
|
|
7
|
+
submissionSoon: {
|
|
8
|
+
title: "",
|
|
9
|
+
description: "",
|
|
10
|
+
},
|
|
11
|
+
submissionNow: {
|
|
12
|
+
title: "",
|
|
13
|
+
description: "",
|
|
14
|
+
},
|
|
15
|
+
submissionClosed: {
|
|
16
|
+
title: "",
|
|
17
|
+
description: "",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
Staff: {
|
|
21
|
+
addUsers: {
|
|
22
|
+
title: "Adding users",
|
|
23
|
+
description: "You can add staff and students to your account in the 'Users' page. Upload a CSV file or add individual users through with form.",
|
|
24
|
+
buttonTitle: "Users",
|
|
25
|
+
buttonURL: "/institutes/users",
|
|
26
|
+
},
|
|
27
|
+
userGroups: {
|
|
28
|
+
title: "Set up user groups",
|
|
29
|
+
description: "Students must have a user group with a workflow before they are activated. Customise your user group on the 'Users' page.",
|
|
30
|
+
buttonTitle: "Users",
|
|
31
|
+
buttonURL: "/institutes/users",
|
|
32
|
+
},
|
|
33
|
+
activateStudents: {
|
|
34
|
+
title: "Activate students",
|
|
35
|
+
description: "Activate your students from the 'Users' page to allow them to use the platform. Click the tick icon on the user table.",
|
|
36
|
+
buttonTitle: "Users",
|
|
37
|
+
buttonURL: "/institutes/users",
|
|
38
|
+
},
|
|
39
|
+
activateStaff: {
|
|
40
|
+
title: "Activate staff",
|
|
41
|
+
description: "Activate staff on the 'Users' page. Assign staff roles to filter their students. Do this from the staff user profile and customise visibility in their user group.",
|
|
42
|
+
buttonTitle: "Users",
|
|
43
|
+
buttonURL: "/institutes/users",
|
|
44
|
+
},
|
|
45
|
+
addPlacements: {
|
|
46
|
+
title: "Add placements",
|
|
47
|
+
description: "Students can now create placements within the submission period you defined in their user group. You can also manually create placements on the Placements page.",
|
|
48
|
+
buttonTitle: "Placements",
|
|
49
|
+
buttonURL: "/institutes/placements",
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
console.log("tips", tips);
|
|
56
|
+
|
|
57
|
+
return getItemInNestedObject(path, tips);
|
|
58
|
+
};
|