This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: updated the ui of list items on deployments tab
- Loading branch information
Sabrina Ko
committed
Jan 6, 2022
1 parent
8841437
commit cc02c91
Showing
9 changed files
with
170 additions
and
59 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
11 changes: 0 additions & 11 deletions
11
ui/app/components/operation-status-indicator/deployment.hbs
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { helper } from '@ember/component/helper'; | ||
|
||
export function cleanUpUrl([str]: string[]) { | ||
let cleanStr = str.replace('https://', '').replace('http://', '').replace('www.', ''); | ||
return cleanStr; | ||
} | ||
|
||
export default helper(cleanUpUrl); |
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,24 @@ | ||
import { module, test } from 'qunit'; | ||
import { setupRenderingTest } from 'ember-qunit'; | ||
import { render } from '@ember/test-helpers'; | ||
import hbs from 'htmlbars-inline-precompile'; | ||
|
||
module('Integration | Helper | clean-up-url', function(hooks) { | ||
setupRenderingTest(hooks); | ||
|
||
test('it removes https:// from input', async function (assert) { | ||
this.set('inputValue', 'https://wildly-intent-honeybee.waypoint.run'); | ||
|
||
await render(hbs`{{clean-up-url this.inputValue}}`); | ||
|
||
assert.equal(this.element.textContent?.trim(), 'wildly-intent-honeybee.waypoint.run'); | ||
}); | ||
|
||
test('it removes http:// from input', async function (assert) { | ||
this.set('inputValue', 'http://wildly-intent-honeybee.waypoint.run'); | ||
|
||
await render(hbs`{{clean-up-url this.inputValue}}`); | ||
|
||
assert.equal(this.element.textContent?.trim(), 'wildly-intent-honeybee.waypoint.run'); | ||
}); | ||
}); |
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