This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
-
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.
- Loading branch information
Showing
8 changed files
with
175 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
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,54 @@ | ||
<div class="settings-card-container"> | ||
<div class="mdc-card__horizontal-block"> | ||
<div class="mdc-card__actions mdc-typography--body2 hint"> | ||
Sprache und Farbe | ||
</div> | ||
</div> | ||
<div class="mdc-card"> | ||
<div class="settings-block"> | ||
<div class="settings-label mdc-list-item"> | ||
<i class="material-icons mdc-list-item__start-detail" aria-hidden="true">language</i> | ||
<div class="mdc-list-item__text">Sprache</div> | ||
</div> | ||
<div class="settings-content mdc-list-item"> | ||
<div class="mdc-select language" role="listbox" tabIndex="0"> | ||
<span class="mdc-select__selected-text">Deutsch</span> | ||
<div class="mdc-simple-menu mdc-select__menu"> | ||
<ul class="mdc-list mdc-simple-menu__items"> | ||
<li class="mdc-list-item" role="option" id="german" tabIndex="0"> | ||
Deutsch | ||
</li> | ||
<li class="mdc-list-item" role="option" id="english" tabIndex="0"> | ||
Englisch | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="settings-block"> | ||
<div class="settings-label mdc-list-item"> | ||
<i class="material-icons mdc-list-item__start-detail" aria-hidden="true">palette</i> | ||
Farbschema | ||
</div> | ||
<div class="settings-content mdc-list-item"> | ||
<div class="mdc-select color" role="listbox" tabIndex="0"> | ||
<span class="mdc-select__selected-text">Standard</span> | ||
<div class="mdc-simple-menu mdc-select__menu"> | ||
<ul class="mdc-list mdc-simple-menu__items"> | ||
<li class="mdc-list-item" role="option" id="german" tabIndex="0"> | ||
Standard | ||
</li> | ||
<li class="mdc-list-item" role="option" id="english" tabIndex="0"> | ||
Codefrog | ||
</li> | ||
<li class="mdc-list-item" role="option" id="english" tabIndex="0"> | ||
Dunkel | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</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
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,33 @@ | ||
import React from 'react'; | ||
import Component from '../Shared/LiveJSX'; | ||
import {MDCSelect} from '@material/select'; | ||
|
||
/** | ||
* Option screen primary component. | ||
*/ | ||
class Settings extends Component { | ||
|
||
/** | ||
* Define template of this component. | ||
* @returns {string} | ||
*/ | ||
static get template() { | ||
return '/Template/Settings.html.tpl'; | ||
} | ||
|
||
onTemplateMounted(domNode) { | ||
const select = new MDCSelect(domNode.querySelector('.mdc-select.language')); | ||
select.listen('MDCSelect:change', () => { | ||
console.log(`Selected "${select.selectedOptions[0].textContent}" at index ${select.selectedIndex} ` + | ||
`with value "${select.value}"`); | ||
}); | ||
const select2 = new MDCSelect(domNode.querySelector('.mdc-select.color')); | ||
select2.listen('MDCSelect:change', () => { | ||
console.log(`Selected "${select2.selectedOptions[0].textContent}" at index ${select2.selectedIndex} ` + | ||
`with value "${select2.value}"`); | ||
}); | ||
} | ||
} | ||
|
||
|
||
export default Settings; |
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 @@ | ||
import Settings from './Settings'; | ||
|
||
export default Object.assign( | ||
Settings, | ||
{} | ||
); |