Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Langenthal 3.5.0 #184

Merged
merged 45 commits into from
Aug 30, 2024
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
e944806
ember-cli
schefbi Jun 6, 2024
5734e61
v3.19.0...v3.27.0
schefbi Jul 4, 2024
d1b15d7
Deprecations add this hbs component
schefbi Jul 4, 2024
c048473
fix component error options, jQuery typeahead.js
schefbi Jul 9, 2024
58662f7
fix typeahead
schefbi Jul 11, 2024
99dea20
replaceWith to transitionTo
schefbi Jul 11, 2024
b3d93a1
update devDependencies
schefbi Jul 11, 2024
d933cae
testing settings
schefbi Jul 11, 2024
141acc5
Revert "replaceWith to transitionTo"
schefbi Jul 11, 2024
7178cf5
useCompanyAddress template fix 4.0
schefbi Aug 15, 2024
e33c1aa
template rendering 4.0 this
schefbi Aug 15, 2024
6817382
fix keyup ember 4.0
schefbi Aug 15, 2024
53f91e8
didTransition To routeDidChange
schefbi Aug 15, 2024
cf6160d
add ember active class to css
schefbi Aug 15, 2024
dcd437b
replaceWith to router.transitionTo 4.0
schefbi Aug 15, 2024
e1db9d6
rendering link-to update to LinkTo 4.0
schefbi Aug 15, 2024
029018b
add this to hbs
schefbi Aug 15, 2024
67fc716
import jQuery
schefbi Aug 15, 2024
8e54d0f
use router.transitionTo
schefbi Aug 15, 2024
7abf636
enable terser
schefbi Aug 15, 2024
354e14d
ember-angle-brackets-codemod
schefbi Aug 15, 2024
817275f
audit fix
schefbi Aug 15, 2024
c8ff021
v3.27.0...v3.28.6
schefbi Aug 16, 2024
cbf75d0
audit fix v3.28.6
schefbi Aug 16, 2024
4a730c0
node version 14.x
schefbi Aug 16, 2024
5b3c697
node version 14.x
schefbi Aug 16, 2024
2820269
Merge pull request #183 from bkd-mba-fbi/ember-update
schefbi Aug 16, 2024
925fbd9
Dropdown initial empty value #170 #171 #175
schefbi Aug 16, 2024
699aef3
vss dependency required use backend #172
schefbi Aug 16, 2024
ce264e6
token in sessionStorage send Authorization header #177
schefbi Aug 16, 2024
7003284
yes no as radiobutton #174
schefbi Aug 22, 2024
de43640
Login warning text to subscribe #176
schefbi Aug 23, 2024
195418e
AdresseData.IsBillingAddress change to IsBilling #181
schefbi Aug 23, 2024
6391c0c
add offers and hasCourseInstance to course jsonld #173
schefbi Aug 23, 2024
cf6e1d5
event dispaly grid optimized #169 #178
schefbi Aug 23, 2024
c12bf01
grid icon to header margin bottom #169
schefbi Aug 23, 2024
4a1d576
sync local files with keys #163
schefbi Aug 23, 2024
15d02b2
add weekday #163
schefbi Aug 23, 2024
ea9e7b1
v3.5.0
schefbi Aug 23, 2024
8b78a74
Merge branch 'master' into develop
schefbi Aug 23, 2024
dc33922
fix settings.subscriptionWithLoginURL null
schefbi Aug 23, 2024
ac3ad12
Merge branch 'develop' of https://github.com/bkd-mba-fbi/kursausschre…
schefbi Aug 23, 2024
c70a230
card-list margin left #169
schefbi Aug 28, 2024
1735abf
area More then one display #185
schefbi Aug 28, 2024
4c9caec
scroll to kursCategoryHeader #186
schefbi Aug 30, 2024
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
Prev Previous commit
Next Next commit
token in sessionStorage send Authorization header #177
schefbi committed Aug 16, 2024
commit ce264e665f5a523450d75375d6de119b9e309050
2 changes: 1 addition & 1 deletion app/framework/api.js
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ function ajax(method, relativeUrl, readableError = true, data = null, file = fal
dataFilter: data => data === '' ? 'null' : data,

headers: {
'CLX-Authorization': `token_type=${appConfig.tokenType}, access_token=${accessToken}`
'Authorization': `Bearer ${accessToken}`
}
});

14 changes: 12 additions & 2 deletions app/framework/storage.js
Original file line number Diff line number Diff line change
@@ -6,15 +6,25 @@
* @param {object} value the value to store
*/
function setItem(key, value) {
localStorage.setItem(key, JSON.stringify(value));
if (key === 'CLX.LoginToken') {
sessionStorage.setItem(key,JSON.stringify(value));
} else {
localStorage.setItem(key, JSON.stringify(value));
}
}

/**
* reads and deserializes an object from the localStorage
* @param {string} key key used to store the object
*/
function getItem(key) {
let item = localStorage.getItem(key);
let item = undefined;
console.log(item);
if (key === 'CLX.LoginToken') {
item = sessionStorage.getItem(key);
} else {
item = localStorage.getItem(key);
}

if (item && !item.includes('"')) {
item = `"${item}"`;
2 changes: 0 additions & 2 deletions public/appConfig.js.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
window.kursausschreibung = window.kursausschreibung || {};
window.kursausschreibung.appConfig = {
// the token type
"tokenType": "urn:ietf:params:oauth:token-type:jwt-bearer",
// API base URL without trailing slash
"apiUrl": "https://eventotest.api",
// base Url of the web application without trailing slash (also the redirect url for public clients)