-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix new page wizard element add Component class
Issue: #66 Problem: Page wizard element was created by using CEv0 API Solution: - Rewrite Page Wizard components to CEv1 - Remove unnecessery files - Add Component Element class (which will replace Dress Element) Signed-off-by: Kornelia Kobiela <k.kobiela@samsung.com>
- Loading branch information
Kornelia Kobiela
committed
Feb 20, 2020
1 parent
a8a8cdd
commit 99792f5
Showing
13 changed files
with
331 additions
and
464 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
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 |
---|---|---|
@@ -1,25 +1,26 @@ | ||
'use babel'; | ||
|
||
import {DressElement} from '../utils/dress-element'; | ||
import Component from '../utils/component-element'; | ||
|
||
/** | ||
* Class map API of Atom StatusBar | ||
*/ | ||
class BracketsStatusBar extends DressElement { | ||
/** | ||
* Add item to statub bar at left part | ||
* @param item | ||
* @returns {Tile} | ||
*/ | ||
addItem(item) { | ||
var tile = { | ||
item: item | ||
}; | ||
this.$el.append(item); | ||
return tile; | ||
} | ||
class BracketsStatusBar extends Component { | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Add item to statub bar at left part | ||
* @param item | ||
* @returns {Tile} | ||
*/ | ||
addItem(item) { | ||
this.appendChild(item); | ||
return {item}; | ||
} | ||
} | ||
|
||
const BracketsStatusBarElement = document.registerElement('brackets-status-bar', BracketsStatusBar); | ||
customElements.define('brackets-status-bar', BracketsStatusBar); | ||
|
||
export {BracketsStatusBar, BracketsStatusBarElement}; | ||
export {BracketsStatusBar}; |
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
3 changes: 0 additions & 3 deletions
3
design-editor/src/panel/wizards/components/category-element.html
This file was deleted.
Oops, something went wrong.
169 changes: 0 additions & 169 deletions
169
design-editor/src/panel/wizards/components/category-element.js
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
Oops, something went wrong.