generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Calendar view feature branch into RC #160
Merged
Merged
Changes from 22 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
ee8918d
Merge remote-tracking branch 'origin' into rc
932d35f
Merge branch 'rc' of https://github.com/hlxsites/adobe-gmo into rc
537c3d0
ASSETS-88928 : Update Deliverables Page Fields for Phase 2 to branch …
TyroneAEM 7deaa91
Merge remote-tracking branch 'origin' into assets-72024
30e0c12
Program details calendar view (#144)
mdickson-adbe 7db4b5a
Added code to display the thumbnail for the programName and campaignName
TyroneAEM d5f44ce
Added thumbnail for programName and campaignName without using await
TyroneAEM 975f1e1
Refactored code to use function async function addThumbnailToItem(ite…
TyroneAEM bb15611
slightly refactor group-building logic
mdickson-adbe de7a618
cleanup
mdickson-adbe 93c1267
Removed debug console.log code
TyroneAEM 3705b81
Merge branch 'main' into assets-72024
d57d580
Calendar view update (#150)
mdickson-adbe 604c439
ASSETS-72026 : Use taskStatus CF for mapping to get the task status l…
TyroneAEM 81e9f20
ASSETS-72027 : [Issue] Fix Number Alignment on Calendar Page View (#152)
TyroneAEM c7ce8d4
MH3.FY24.0808 Release (#155)
mathieu-lessard 3877038
Assets 98992 (#153)
mdickson-adbe 84bbd45
CSS : Renamed classes icon-categories to icon-productGroup, categorie…
TyroneAEM 60bae09
display msg when no deliverables in calendar (#157)
mdickson-adbe 0793c3e
[Issue] Year View Navigator on Calendar Displays Extreme Years (#158)
TyroneAEM 9f5ce3b
use current year in initial block, update msg (#161)
mdickson-adbe 1110b25
Merge branch 'main' into assets-72024
2ed9efd
Releasing changes in Prod (#162)
staware30 e33f2fe
feat: Open QA Files links in a new tab in program calendar view (#163)
TyroneAEM 68d86f8
Hide overflow in calendar task thumbnails (#164)
mdickson-adbe 9b75c44
Merge branch 'main' into assets-72024
4cc7e6c
Assets 72092 (#166)
mdickson-adbe 1b8f106
Marketing Dashboard and Program Detail Optimization by adding the Con…
TyroneAEM 484ef50
fix bug by updating variable name. delete comment (#167)
mdickson-adbe 26fc1e1
change remaining valid date checks (#168)
mdickson-adbe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { | ||
readBlockConfig | ||
} from '../../scripts/lib-franklin.js'; | ||
/** | ||
* | ||
* @param {HTMLElement} block | ||
*/ | ||
|
||
export default async function decorate(block) { | ||
// Takes a config name as a string to be used as a regex and redirects to the value's location. | ||
// Groups can be named using (?<name>...) and referenced in the redirect using {name} | ||
// Example: | ||
// regex1 | /share/(?<shareid>[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}) | ||
// redirect1 | https://experience.adobe.com/?repoId=delivery-p108396-e1046543.adobeaemcloud.com#/@wfadoberm/assets/contenthub/shares/{shareid} | ||
const config = readBlockConfig(block); | ||
const path = window.location.pathname + window.location.hash; | ||
|
||
for(let reg in config){ | ||
if(reg.startsWith('regex')){ | ||
const regex = new RegExp(config[reg]); | ||
let redirect = config[reg.replace('regex', 'redirect')]; | ||
const match = path.match(regex); | ||
if(match){ | ||
for(let key in match.groups){ | ||
redirect = redirect.replace(`{${key}}`, match.groups[key]); | ||
} | ||
console.info('redirecting to', redirect); | ||
window.location.href = redirect; | ||
return; | ||
} | ||
} | ||
} | ||
block.innerHTML = ''; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mdickson-adbe can we get current year programatically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, that's no problem at all.