-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #566 from appuio/527-app-cat
Embed Application Catalog
- Loading branch information
Showing
7 changed files
with
105 additions
and
1 deletion.
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,15 @@ | ||
describe('Test AppCat embed', () => { | ||
beforeEach(() => { | ||
cy.setupAuth(); | ||
}); | ||
beforeEach(() => { | ||
// needed for initial getUser request | ||
cy.setPermission({ verb: 'list', resource: 'zones', group: 'rbac.appuio.io' }); | ||
cy.disableCookieBanner(); | ||
}); | ||
|
||
it('shows the application catalog', () => { | ||
cy.visit('/app-cat'); | ||
cy.get('iframe').children().should('not.be.empty'); | ||
}); | ||
}); |
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,6 @@ | ||
<div class="h-full flex flex-column bg-white pt-5"> | ||
<div class="header mx-auto"> | ||
<h1 i18n class="mt-0">VSHN AppCat Service Offering</h1> | ||
</div> | ||
<iframe src="https://services.appcat.ch/" class="flex-grow-1 border-none"></iframe> | ||
</div> |
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,49 @@ | ||
:host { | ||
height: calc(100% + 2rem); | ||
width: calc(100% + 4rem); | ||
margin: -2rem; | ||
} | ||
|
||
.header { | ||
padding-left: 0.75rem; | ||
padding-right: 0.75rem; | ||
} | ||
|
||
/* Using the break points from services.appcat.ch (+280px for the sidebar on desktop) | ||
** to set the width so the header with margin:auto is aligned with the iframe content | ||
*/ | ||
@media (min-width: 576px) { | ||
.header { | ||
width: 540px; | ||
} | ||
} | ||
|
||
@media (min-width: 768px) { | ||
.header { | ||
width: 720px; | ||
} | ||
} | ||
|
||
@media (min-width: 1048px) { | ||
.header { | ||
width: 720px; | ||
} | ||
} | ||
|
||
@media (min-width: 1272px) { | ||
.header { | ||
width: 960px; | ||
} | ||
} | ||
|
||
@media (min-width: 1480px) { | ||
.header { | ||
width: 1140px; | ||
} | ||
} | ||
|
||
@media (min-width: 1680px) { | ||
.header { | ||
width: 1312px; | ||
} | ||
} |
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,12 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
|
||
@Component({ | ||
selector: 'app-app-cat', | ||
standalone: true, | ||
imports: [CommonModule], | ||
templateUrl: './app-cat.component.html', | ||
styleUrls: ['./app-cat.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class AppCatComponent {} |
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 @@ | ||
import { Routes } from '@angular/router'; | ||
import { AppCatComponent } from './app-cat.component'; | ||
|
||
export const routes: Routes = [{ path: '', component: AppCatComponent }]; |
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