Boundary: Delete RoseFooter files (HDS-2805) (#2003)

* HDS-2805 Delete RoseFooter files
This commit is contained in:
Kristin Bradley authored and GitHub committed 2023-11-27 07:58:54 -08:00
1 parent 019b3e7390
commit a891f7a1a5
17 files changed
-312

No files matched your search

@@ -1,17 +0,0 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
}}
<LinkTo
...attributes
class='rose-footer-brand'
title={{@text}}
@route={{if @route @route 'index'}}
>
{{#if @logo}}
{{inline-svg @logo}}
{{/if}}
</LinkTo>
@@ -1,11 +0,0 @@
<span class='rose-footer-copyright'>
<span class='rose-footer-copyright-symbol'>
&copy;
</span>
<span class='rose-footer-copyright-year'>
{{this.currentYear}}
</span>
<span class='rose-footer-copyright-text'>
{{@text}}
</span>
</span>
@@ -1,6 +0,0 @@
import Component from '@glimmer/component';
export default class RoseFooterCopyrightComponent extends Component {
// =attributes
currentYear = new Date().getFullYear();
}
@@ -1,14 +0,0 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
}}
<footer ...attributes class='rose-footer'>
{{yield
(hash
nav=(component 'rose/footer/nav')
brand=(component 'rose/footer/brand')
text=(component 'rose/anonymous' class='rose-footer-text')
)
}}
</footer>
@@ -1,8 +0,0 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
}}
<nav class='rose-footer-nav' aria-label='footer-nav'>
{{yield (hash link=(component 'rose/footer/nav/link'))}}
</nav>
@@ -1,26 +0,0 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
}}
{{#if @href}}
<a
target='_blank'
href={{@href}}
class='rose-footer-nav-link'
rel='noopener noreferrer'
>
{{yield}}
</a>
{{/if}}
{{#if @route}}
<LinkTo
...attributes
@route={{@route}}
@model={{@model}}
class='rose-footer-nav-link'
>
{{yield}}
</LinkTo>
{{/if}}
@@ -1,16 +0,0 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
}}
<span class='rose-footer-product'>
<span class='rose-footer-product-text'>
{{@text}}
</span>
{{#if @version}}
<span class='rose-footer-product-version'>
v{{@version}}
</span>
{{/if}}
</span>
@@ -9,7 +9,6 @@
@import 'form';
@import 'frame';
@import 'header';
@import 'footer';
@import 'layout';
@import 'icon';
@import 'list';
@@ -1,20 +0,0 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
@use '../../variables/sizing';
.rose-footer-brand {
display: flex;
align-items: center;
color: var(--ui-gray-starker-1);
margin-left: sizing.rems(m);
svg {
$logo-size: sizing.rems(m);
display: inline-block;
width: $logo-size;
}
}
@@ -1,22 +0,0 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
@use '../../variables/sizing';
@use '../../variables/media';
@use '../../utilities/type';
@import 'brand';
@import 'nav';
@import 'text';
@import 'link';
.rose-footer {
@include type.type(xs);
display: flex;
justify-content: right;
color: var(--ui-gray-starker-1);
height: sizing.rems(xxl) + sizing.rems(xxs);
}
@@ -1,14 +0,0 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
@use '../../variables/sizing';
.rose-footer-nav-link {
display: inline-flex;
align-items: center;
text-decoration: underline;
color: var(--ui-gray-starker-1);
margin: 0 sizing.rems(xs);
}
@@ -1,14 +0,0 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
@use '../../variables/sizing';
.rose-footer-nav {
grid-area: nav;
display: flex;
flex-wrap: wrap;
align-items: center;
margin-right: sizing.rems(s);
}
@@ -1,13 +0,0 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
@use '../../variables/sizing';
.rose-footer-text {
display: inline-flex;
align-items: center;
margin-left: sizing.rems(xxs);
margin-right: sizing.rems(m);
}
@@ -1,46 +0,0 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | rose/footer', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (assert) {
assert.expect(4);
await render(hbs`<Rose::Footer />`);
assert.ok(find('.rose-footer'));
assert.notOk(find('.rose-footer-nav'));
assert.notOk(find('.rose-footer-text'));
assert.notOk(find('.rose-footer-brand'));
});
test('it renders with brand', async function (assert) {
assert.expect(1);
await render(hbs`<Rose::Footer as |footer| >
<footer.brand />
</Rose::Footer>`);
assert.ok(find('.rose-footer-brand'));
});
test('it renders with nav', async function (assert) {
assert.expect(1);
await render(hbs`<Rose::Footer as |footer| >
<footer.nav />
</Rose::Footer>`);
assert.ok(find('.rose-footer-nav'));
});
test('it renders with text', async function (assert) {
assert.expect(1);
await render(hbs`<Rose::Footer as |footer| >
<footer.text />
</Rose::Footer>`);
assert.ok(find('.rose-footer-text'));
});
});
@@ -1,28 +0,0 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, find, findAll } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | rose/footer/nav', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (assert) {
assert.expect(1);
await render(hbs`<Rose::Footer::nav />`);
assert.ok(find('.rose-footer-nav'));
});
test('it renders nav external link elements', async function (assert) {
assert.expect(1);
await render(hbs`<Rose::Footer::nav as |nav| >
<nav.link @href="index"/>
<nav.link @route="about"/>
</Rose::Footer::nav>`);
assert.strictEqual(findAll('a').length, 2);
});
});
@@ -1,27 +0,0 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | rose/footer/nav/link', function (hooks) {
setupRenderingTest(hooks);
test('it renders with @href', async function (assert) {
assert.expect(2);
await render(hbs`<Rose::Footer::Nav::Link @href="localhost" />`);
assert.ok(find('a'));
assert.ok(find('.rose-footer-nav-link'));
});
test('it renders with @route', async function (assert) {
assert.expect(2);
await render(hbs`<Rose::Footer::Nav::Link @route="index" />`);
assert.ok(find('a'));
assert.ok(find('.rose-footer-nav-link'));
});
});
@@ -1,29 +0,0 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | rose/footer/text', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (assert) {
assert.expect(1);
await render(hbs`<Rose::Footer as |footer|>
<footer.text />
</Rose::Footer>`);
assert.ok(find('.rose-footer-text'));
});
test('it renders content', async function (assert) {
assert.expect(1);
await render(hbs`<Rose::Footer as |footer|>
<footer.text>content</footer.text>
</Rose::Footer>`);
assert.strictEqual(find('.rose-footer-text').textContent.trim(), 'content');
});
});