@vocollege/app 0.0.91 → 0.0.93
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/dist/interceptor.js
CHANGED
|
@@ -809,7 +809,12 @@
|
|
|
809
809
|
"tutorCertificates": "Handledarintyg",
|
|
810
810
|
"createTutorCertificate": "Skapa handledarintyg",
|
|
811
811
|
"steps": "Steg",
|
|
812
|
-
"scope": "Omfattning"
|
|
812
|
+
"scope": "Omfattning",
|
|
813
|
+
"step1": "Steg 1",
|
|
814
|
+
"step2": "Steg 2",
|
|
815
|
+
"step2Modules": "Steg 2, moduler",
|
|
816
|
+
"step3": "Steg 3",
|
|
817
|
+
"all": "Alla"
|
|
813
818
|
},
|
|
814
819
|
"messages": {
|
|
815
820
|
"intro": "Intyg för handledarutbildning steg 1, 2, 1 & 2 och steg 3.",
|
|
@@ -822,18 +827,54 @@
|
|
|
822
827
|
"title": "Intyg",
|
|
823
828
|
"subtitle": "Handledarutbildning steg ::step",
|
|
824
829
|
"textStep1a": "För genomförd handledarutbildning inom vård och omsorg - steg 1.",
|
|
825
|
-
"textStep1b": "
|
|
830
|
+
"textStep1b": "Utbildningen ger behörighet att handleda elever på reguljär utbildning (apl), praktikanter samt nyanställda",
|
|
826
831
|
"textStep2a": "För genomförd handledarutbildning inom vård och omsorg - steg 2.",
|
|
827
|
-
"textStep2b": "
|
|
832
|
+
"textStep2b": "Utbildningen ger behörighet att arbeta som valideringshandledare och handledare för Yrkeshögskolestuderande (YH). Steg 1 och 2 tillsammans motsvarar kursen Vårdpedagogik och handledning samt VO-College struktur för handledarutbildning.",
|
|
828
833
|
"textStep3a": "För genomförd handledarutbildning inom vård och omsorg - steg 3.",
|
|
829
|
-
"textStep3b": "
|
|
834
|
+
"textStep3b": "Utbildningen ger behörighet att arbeta som handledare för handledare.",
|
|
830
835
|
"textStep1Step2a": "För genomförd handledarutbildning inom vård och omsorg - steg 1 och 2.",
|
|
831
|
-
"textStep1Step2b": "
|
|
836
|
+
"textStep1Step2b": "Utbildningen ger behörighet att handleda elever på reguljär utbildning (apl), praktikanter och nyanställda samt att arbeta som valideringshandledare och handledare för Yrkeshögskolestuderande (YH). Steg 1 och 2 tillsammans motsvarar kursen Vårdpedagogik och handledning samt VO-College struktur för handledarutbildning.",
|
|
832
837
|
"responsible": "Utbildningsansvarig",
|
|
833
838
|
"region": "Regionalt Vård- och omsorgscollege ::region",
|
|
834
839
|
"and": "och",
|
|
835
|
-
"scope": "Kursens omfattning: ::scope"
|
|
836
|
-
|
|
840
|
+
"scope": "Kursens omfattning: ::scope",
|
|
841
|
+
"handledarutbildning": "Handledarutbildning",
|
|
842
|
+
"step1Title": "Steg 1 - Grundläggande handledarutbildning",
|
|
843
|
+
"step1Description": "För genomförd handledarutbildning som ger behörighet att handleda elever på prao och apl, deltagare i arbetsmarknadsåtgärder, introducera nyanställda, brukare/patienter samt närstående.",
|
|
844
|
+
"step2Title": "Steg 2 - Fördjupningsmoduler",
|
|
845
|
+
"step2PabyggnadsmodulTitle": "Steg 2 - Påbyggnadsmodul",
|
|
846
|
+
"step2PabyggnadsmodulDescription": "För genomförd handledarutbildning som ger behörighet att handleda elever från yrkeshögskoleutbildningar under Lärande i arbete (LIA).",
|
|
847
|
+
"step2LarlingsmodulTitle": "Steg 2 - Lärlingsmodul",
|
|
848
|
+
"step2LarlingsmodulDescription": "För genomförd webbaserad handledarutbildning inom Skolverket modul 5 som ger behörighet att handleda lärlingar.",
|
|
849
|
+
"step2SprakochinkluderingsmodulTitle": "Steg 2 - Språk- och inkluderingsmodul",
|
|
850
|
+
"step2SprakochinkluderingsmodulDescription": "För genomförd handledarutbildning i syfte att skapa förståelse kring hur olika kulturella bakgrunder påverkar kommunikationen och om språkinlärning.",
|
|
851
|
+
"step2ValideringsmodulTitle": "Steg 2 - Valideringsmodul",
|
|
852
|
+
"step2ValideringsmodulDescription": "För genomförd valideringshandledarutbildning som ger behörighet att lämna omdömen i de praktiska delarna vid validering.",
|
|
853
|
+
"step3Title": "Steg 3 - ",
|
|
854
|
+
"step3Description": "Utbildningen ger behörighet att arbeta som handledare för handledare."
|
|
855
|
+
},
|
|
856
|
+
"modules": [
|
|
857
|
+
{
|
|
858
|
+
"name": "step2-mod01",
|
|
859
|
+
"label": "Påbyggnadsmodul",
|
|
860
|
+
"steps": [2]
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"name": "step2-mod02",
|
|
864
|
+
"label": "Lärlingsmodul",
|
|
865
|
+
"steps": [2]
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"name": "step2-mod03",
|
|
869
|
+
"label": "Språk och inkluderingsmodul",
|
|
870
|
+
"steps": [2]
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"name": "step2-mod04",
|
|
874
|
+
"label": "Valideringsmodul",
|
|
875
|
+
"steps": [2]
|
|
876
|
+
}
|
|
877
|
+
]
|
|
837
878
|
},
|
|
838
879
|
"tutorAwardCertificate": {
|
|
839
880
|
"label": "Certifikat för Årets handledare",
|
package/dist/modules/VoAuth.js
CHANGED
|
@@ -276,7 +276,7 @@ var VoAuth = /** @class */ (function (_super) {
|
|
|
276
276
|
case 0:
|
|
277
277
|
_a.trys.push([0, 4, , 5]);
|
|
278
278
|
token = this.getToken();
|
|
279
|
-
if (!token) return [3 /*break*/, 2];
|
|
279
|
+
if (!((token === null || token === void 0 ? void 0 : token.refresh_token) && (token === null || token === void 0 ? void 0 : token.refresh_token) !== "")) return [3 /*break*/, 2];
|
|
280
280
|
params = {
|
|
281
281
|
grant_type: "refresh_token",
|
|
282
282
|
refresh_token: token.refresh_token,
|
|
@@ -410,10 +410,10 @@ var VoAuth = /** @class */ (function (_super) {
|
|
|
410
410
|
// // const expiresIn = Helpers.localStorage.get(expiresInKey);
|
|
411
411
|
// const expiresIn = JsCookies.get(expiresInKey);
|
|
412
412
|
// if (refreshToken && accessToken && tokenType && expiresIn) {
|
|
413
|
-
if (refreshToken
|
|
413
|
+
if (refreshToken) {
|
|
414
414
|
return {
|
|
415
415
|
refresh_token: refreshToken,
|
|
416
|
-
access_token: accessToken,
|
|
416
|
+
access_token: accessToken || "",
|
|
417
417
|
// token_type: tokenType,
|
|
418
418
|
// expires_in: expiresIn,
|
|
419
419
|
};
|
package/package.json
CHANGED
package/src/interceptor.ts
CHANGED
|
@@ -18,6 +18,7 @@ import I18n from "./modules/Services/I18n";
|
|
|
18
18
|
VoRouter.redirectToLogout();
|
|
19
19
|
} catch (error) {
|
|
20
20
|
console.error("Interceptor", error);
|
|
21
|
+
VoAuth.resetSession();
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
|
|
@@ -49,6 +50,7 @@ import I18n from "./modules/Services/I18n";
|
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
} catch (error) {}
|
|
53
|
+
|
|
52
54
|
if (isTokeRequest) {
|
|
53
55
|
toast.error(I18n.get.messages.sessionExpired, { autoClose: false });
|
|
54
56
|
redirect();
|
|
@@ -809,7 +809,12 @@
|
|
|
809
809
|
"tutorCertificates": "Handledarintyg",
|
|
810
810
|
"createTutorCertificate": "Skapa handledarintyg",
|
|
811
811
|
"steps": "Steg",
|
|
812
|
-
"scope": "Omfattning"
|
|
812
|
+
"scope": "Omfattning",
|
|
813
|
+
"step1": "Steg 1",
|
|
814
|
+
"step2": "Steg 2",
|
|
815
|
+
"step2Modules": "Steg 2, moduler",
|
|
816
|
+
"step3": "Steg 3",
|
|
817
|
+
"all": "Alla"
|
|
813
818
|
},
|
|
814
819
|
"messages": {
|
|
815
820
|
"intro": "Intyg för handledarutbildning steg 1, 2, 1 & 2 och steg 3.",
|
|
@@ -822,18 +827,54 @@
|
|
|
822
827
|
"title": "Intyg",
|
|
823
828
|
"subtitle": "Handledarutbildning steg ::step",
|
|
824
829
|
"textStep1a": "För genomförd handledarutbildning inom vård och omsorg - steg 1.",
|
|
825
|
-
"textStep1b": "
|
|
830
|
+
"textStep1b": "Utbildningen ger behörighet att handleda elever på reguljär utbildning (apl), praktikanter samt nyanställda",
|
|
826
831
|
"textStep2a": "För genomförd handledarutbildning inom vård och omsorg - steg 2.",
|
|
827
|
-
"textStep2b": "
|
|
832
|
+
"textStep2b": "Utbildningen ger behörighet att arbeta som valideringshandledare och handledare för Yrkeshögskolestuderande (YH). Steg 1 och 2 tillsammans motsvarar kursen Vårdpedagogik och handledning samt VO-College struktur för handledarutbildning.",
|
|
828
833
|
"textStep3a": "För genomförd handledarutbildning inom vård och omsorg - steg 3.",
|
|
829
|
-
"textStep3b": "
|
|
834
|
+
"textStep3b": "Utbildningen ger behörighet att arbeta som handledare för handledare.",
|
|
830
835
|
"textStep1Step2a": "För genomförd handledarutbildning inom vård och omsorg - steg 1 och 2.",
|
|
831
|
-
"textStep1Step2b": "
|
|
836
|
+
"textStep1Step2b": "Utbildningen ger behörighet att handleda elever på reguljär utbildning (apl), praktikanter och nyanställda samt att arbeta som valideringshandledare och handledare för Yrkeshögskolestuderande (YH). Steg 1 och 2 tillsammans motsvarar kursen Vårdpedagogik och handledning samt VO-College struktur för handledarutbildning.",
|
|
832
837
|
"responsible": "Utbildningsansvarig",
|
|
833
838
|
"region": "Regionalt Vård- och omsorgscollege ::region",
|
|
834
839
|
"and": "och",
|
|
835
|
-
"scope": "Kursens omfattning: ::scope"
|
|
836
|
-
|
|
840
|
+
"scope": "Kursens omfattning: ::scope",
|
|
841
|
+
"handledarutbildning": "Handledarutbildning",
|
|
842
|
+
"step1Title": "Steg 1 - Grundläggande handledarutbildning",
|
|
843
|
+
"step1Description": "För genomförd handledarutbildning som ger behörighet att handleda elever på prao och apl, deltagare i arbetsmarknadsåtgärder, introducera nyanställda, brukare/patienter samt närstående.",
|
|
844
|
+
"step2Title": "Steg 2 - Fördjupningsmoduler",
|
|
845
|
+
"step2PabyggnadsmodulTitle": "Steg 2 - Påbyggnadsmodul",
|
|
846
|
+
"step2PabyggnadsmodulDescription": "För genomförd handledarutbildning som ger behörighet att handleda elever från yrkeshögskoleutbildningar under Lärande i arbete (LIA).",
|
|
847
|
+
"step2LarlingsmodulTitle": "Steg 2 - Lärlingsmodul",
|
|
848
|
+
"step2LarlingsmodulDescription": "För genomförd webbaserad handledarutbildning inom Skolverket modul 5 som ger behörighet att handleda lärlingar.",
|
|
849
|
+
"step2SprakochinkluderingsmodulTitle": "Steg 2 - Språk- och inkluderingsmodul",
|
|
850
|
+
"step2SprakochinkluderingsmodulDescription": "För genomförd handledarutbildning i syfte att skapa förståelse kring hur olika kulturella bakgrunder påverkar kommunikationen och om språkinlärning.",
|
|
851
|
+
"step2ValideringsmodulTitle": "Steg 2 - Valideringsmodul",
|
|
852
|
+
"step2ValideringsmodulDescription": "För genomförd valideringshandledarutbildning som ger behörighet att lämna omdömen i de praktiska delarna vid validering.",
|
|
853
|
+
"step3Title": "Steg 3 - ",
|
|
854
|
+
"step3Description": "Utbildningen ger behörighet att arbeta som handledare för handledare."
|
|
855
|
+
},
|
|
856
|
+
"modules": [
|
|
857
|
+
{
|
|
858
|
+
"name": "step2-mod01",
|
|
859
|
+
"label": "Påbyggnadsmodul",
|
|
860
|
+
"steps": [2]
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"name": "step2-mod02",
|
|
864
|
+
"label": "Lärlingsmodul",
|
|
865
|
+
"steps": [2]
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"name": "step2-mod03",
|
|
869
|
+
"label": "Språk och inkluderingsmodul",
|
|
870
|
+
"steps": [2]
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"name": "step2-mod04",
|
|
874
|
+
"label": "Valideringsmodul",
|
|
875
|
+
"steps": [2]
|
|
876
|
+
}
|
|
877
|
+
]
|
|
837
878
|
},
|
|
838
879
|
"tutorAwardCertificate": {
|
|
839
880
|
"label": "Certifikat för Årets handledare",
|
package/src/modules/VoAuth.ts
CHANGED
|
@@ -182,7 +182,7 @@ class VoAuth extends VoBase {
|
|
|
182
182
|
async refreshToken() {
|
|
183
183
|
try {
|
|
184
184
|
const token: any = this.getToken();
|
|
185
|
-
if (token) {
|
|
185
|
+
if (token?.refresh_token && token?.refresh_token !== "") {
|
|
186
186
|
let params = {
|
|
187
187
|
grant_type: "refresh_token",
|
|
188
188
|
refresh_token: token.refresh_token,
|
|
@@ -286,10 +286,10 @@ class VoAuth extends VoBase {
|
|
|
286
286
|
// const expiresIn = JsCookies.get(expiresInKey);
|
|
287
287
|
|
|
288
288
|
// if (refreshToken && accessToken && tokenType && expiresIn) {
|
|
289
|
-
if (refreshToken
|
|
289
|
+
if (refreshToken) {
|
|
290
290
|
return {
|
|
291
291
|
refresh_token: refreshToken,
|
|
292
|
-
access_token: accessToken,
|
|
292
|
+
access_token: accessToken || "",
|
|
293
293
|
// token_type: tokenType,
|
|
294
294
|
// expires_in: expiresIn,
|
|
295
295
|
};
|