generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: update fstab * Update README.md * ASSETS-3207 integrate Unified shell (#3) * ASSETS-32004 use discovery service to find instances with content hub product profiles (#4) * ASSETS-31822 Create separate security module for Unified Shell * Setup delivery endpoint discovery * docs: update readme * docs: update readme * chore: allow showing 404 page * chore: update sidekick host * chore: remove old comment * fix: update serviceCode===dma_aem_contenthub * fix: don't open browser on "aem up" * ASSETS-32078: Handle changes of imsOrg from Unified Shell * Show spinner while imsOrg changes * fix: use delivery urls from discovery * fix: use delivery urls from discovery * refactor: use page.iframeReload(false); * adapt 404 error page for Unified Shell * feat: reflect url changes from unified shell in app * ASSETS-32075 Hide header bar (logo, user switcher) when using Unified Shell (#5) * ASSETS-32055: POC integration with Upload MFE (#8) * ASSETS-32055: provide bearer token * chore: remove dialog after closing * ASSETS-31831 - Portal style changes for content hub (#6) * chore: fix typo in jsdocs: BrandingConfig.portalTheme * Load Reporting MFE using pure JS * Add css * Add css * Point the reporting MFE to prod * Add discovery call * ASSETS-32176 Keep url in unified shell updated. React to url changes. (#7) Keep url in unified shell updated. React to url changes. handle url changes in asset detail view fix link for link share refactor history listener redirect to /no-access if no delivery env can be found * Accessibility: add role and aria-labels where missing (#10) * quick fix to show reporting in CH * Remove bar graph * fix: cleanup eslint errors * ASSETS-31803 - Refactor Modal code for Unified Shell (#12) * add platform connector * add platform connector with rollup * poc of PlatformConnector * docs: describe rollup * docs: no sudo * cleanup * add PlatformConnector lib * fix: keep existing discovery * cleanup: remove old libs * Update README.md * ASSETS-31899 use PlatfromConnector API for repositoryID * cleanup: only delete dependencies selectively * cleanup: remove unused dependencies * cleanup: undo comment out * cleanup: undo comment out * chore: cleanup imports * PlatformConnector: initial draft (#15) * add platform connector, use rollup to convert library * cleanup after merge * update readme * ASSETS-31899 use franklin lib loadScript based on feedback * ASSETS-31899 add delivery and storageUsage * ASSETS-31831 - Portal changes for content hub (#14) * docs: add sharepoint * fix merge conflicts * ASSETS-31831 - Update style for content hub (#17) * Feat: implement user settings * Feat: implement user settings and redirect users * ASSETS-31899 clear up * Fix modal dialog styling (#18) * ASSETS-31899 remove storageUsage * ASSETS-32522 - Fix upload dialog styling (#19) * add missing import * Feat: Playwright End-2-End test (#11) This is a very simple setup. Expect it to fail for no reason. But it's good to run after making some changes to be sure nothing major broke. * fix: export everything from platform connector * chore: refactor exc-app import/exports * fix: remove text-transform: capitalize; * fix: improve error message when run without unified shell * Fixing to use the IMS org from the site config for GMO * don't call getRepositoryList * Upload dialog (#23) * Fixing to use the distribution url to determine the author repoId * Changing clientid * Adding the version supporting setting metadata * Updating to latest version of the upload MFE * Fixing incorrect mappings * Updating to latest PR build * Updating to new schema * Styling tweaks to the upload dialog * Commented out ProductFamily from 'Add Asset' (#30) * Alphabetize Product List on 'Add Assets' Modal (#32) * DXI-23343: New Multi-required fields. Enable upload on form filled (#34) Co-authored-by: Mathieu Lessard <[email protected]> * DXI-23346: Hydration uses values from Algolia for selections (#35) * DXI-23346: Hydration uses values from Algolia for selections * Adjusted spacing * Adjusted spacing --------- Co-authored-by: Mathieu Lessard <[email protected]> * Updated Asset Upload Experience (#37) * Updated Asset Upload Experience * Added comment regarding why the button change is delayed --------- Co-authored-by: Mathieu Lessard <[email protected]> * Enabled Perpetuity Option * Fixed license date to use ISO instead of epoch * Refactored code * 'Add Assets' button can now be hidden by IMS group (#44) - Added checkAddAssetsAccess() that will compare 'imsAuthorGroup' in 'admin-config.xlsx' in sharepoint to the IMS groups of the current user. - Code that loads the 'Add Assets' button will now not execute unless checkAddAssetsAccess() returns true. * Removed Keywords from Asset Upload * Renamed LisenceDate Property * Renamed LisenceDate Property --------- Co-authored-by: Aravindo Wingeier <[email protected]> Co-authored-by: Aravindo Wingeier <[email protected]> Co-authored-by: Andrew Khoury <[email protected]> Co-authored-by: Narendra Katamaneni <[email protected]> Co-authored-by: Cris Rockwell <[email protected]> Co-authored-by: lsun <[email protected]> Co-authored-by: ling <[email protected]> Co-authored-by: Dan Klco <[email protected]> Co-authored-by: Samruddhi <[email protected]> Co-authored-by: Mathieu Lessard <[email protected]> Co-authored-by: Christopher Heintzman <[email protected]>
- Loading branch information
1 parent
94b1229
commit 41d54c6
Showing
93 changed files
with
33,977 additions
and
9,488 deletions.
There are no files selected for viewing
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,4 @@ | ||
AEM_TLS_CERT=env/server.crt | ||
AEM_TLS_KEY=env/server.key | ||
AEM_OPEN=/ | ||
AEM_PORT=443 |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
scripts/libs/** | ||
test/e2e/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
README.md merge=ours |
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,39 @@ | ||
# Does not work, because Adobe flags the source IP as untrusted, and requires confirming a code sent by email. | ||
|
||
name: Playwright Tests | ||
on: | ||
push: | ||
branches: [ main, master ] | ||
pull_request: | ||
branches: [ main, master ] | ||
jobs: | ||
test: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: npm ci | ||
working-directory: test/e2e/ | ||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps | ||
working-directory: test/e2e/ | ||
- name: Run Playwright tests | ||
run: | | ||
mkdir -p .auth; | ||
echo "{}" > .auth/user.json; | ||
npx playwright test | ||
working-directory: test/e2e/ | ||
env: | ||
TEST_USERNAME: ${{ secrets.TEST_USERNAME }} | ||
TEST_PASSWORD: ${{ secrets.TEST_PASSWORD }} | ||
SHELL_SOURCE: stage | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: test/e2e/playwright-report/ | ||
retention-days: 30 |
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 |
---|---|---|
|
@@ -14,4 +14,5 @@ helix-importer-ui | |
/env/ | ||
.env | ||
server.crt | ||
server.key | ||
server.key | ||
/test/e2e/test-results |
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,2 @@ | ||
registry=https://artifactory.corp.adobe.com:443/artifactory/api/npm/npm-adobe-release/ | ||
//artifactory.corp.adobe.com:443/artifactory/api/npm/npm-adobe-release/:always-auth=false |
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
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
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
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,35 @@ | ||
.adp-assets-actions-wrapper { | ||
grid-area: assets-actions; | ||
} | ||
|
||
.adp-assets-actions { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
flex-direction: row-reverse; | ||
} | ||
|
||
.adp-assets-actions button { | ||
background-color: var(--button-focus-outline-color); | ||
border-radius: 16px; | ||
font: var(--bold-font-size-s); | ||
color: var(--button-text-color); | ||
height: 37px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 0 16px; | ||
} | ||
|
||
.adp-assets-actions button svg { | ||
height: 17px; | ||
width: 17px; | ||
fill: #fff; | ||
} | ||
|
||
.adp-assets-actions button .icon { | ||
height: 17px; | ||
width: 17px; | ||
margin-right: 8px; | ||
fill: #fff; | ||
} |
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,25 @@ | ||
import { openUploadDialog } from '../../contenthub/hydration/hydration.js'; | ||
import { decorateIcons } from '../../scripts/lib-franklin.js'; | ||
import { checkAddAssetsAccess } from '../../scripts/security.js'; | ||
import { isContentHub } from '../../scripts/site-config.js'; | ||
|
||
export default async function decorate(block) { | ||
block.innerHTML = ''; | ||
const assetActionsDiv = document.createElement('div'); | ||
assetActionsDiv.className = 'actions-container'; | ||
//add Asset actions button | ||
if (await isContentHub() && await checkAddAssetsAccess()) { | ||
const addAssetsButton = document.createElement('button'); | ||
addAssetsButton.classList.add('action', 'add-assets'); | ||
const addAssetsSpan = document.createElement('span'); | ||
addAssetsSpan.classList.add('icon', 'icon-addAssets'); | ||
addAssetsButton.appendChild(addAssetsSpan); | ||
assetActionsDiv.appendChild(addAssetsButton); | ||
addAssetsButton.appendChild(document.createTextNode('Add Assets')); | ||
addAssetsButton.addEventListener('click', () => { | ||
openUploadDialog(); | ||
}); | ||
} | ||
block.appendChild(assetActionsDiv); | ||
decorateIcons(block); | ||
} |
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
Oops, something went wrong.