Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
valverde-marcelo committed Jul 23, 2020
1 parent f897cbe commit 931244f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 8 deletions.
5 changes: 4 additions & 1 deletion src/utils/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
*/

import debug from 'debug';
import storage from './storage';

localStorage.setItem('debug', 'kodi2webos:*');
storage.setDebugModeOn();

//localStorage.setItem('debug', 'kodi2webos:*');

export default function debugFactory(tag) {
return debug(`kodi2webos:${tag}`);
Expand Down
11 changes: 9 additions & 2 deletions src/utils/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,16 @@ function setSync(key, value, prefix = LOCAL_STORAGE_PREFIX_DATA) {
}

function setSyncRaw(key, value, prefix = LOCAL_STORAGE_PREFIX_DATA) {
key = prefix+key;
if (prefix) {
key = prefix+key;
}
localStorage[key] = value;
}

function setDebugModeOn(){
localStorage.setItem('debug', 'kodi2webos:*');
}

function getSync(key, prefix = LOCAL_STORAGE_PREFIX_DATA) {
key = prefix+key;
if(!(key in localStorage)) {
Expand All @@ -78,5 +84,6 @@ export default {
setSync,
getSync,
clearSync,
setSyncRaw
setSyncRaw,
setDebugModeOn
}
2 changes: 1 addition & 1 deletion src/views/DetailsPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function DetailsPanel({ onClick, item, fontSize}) {
<div style={{width: '60vw'}}><Director value={item.director} /></div>
<div style={{width: '60vw'}}><Genre value={item.genre} /></div>
<div><Ratings value={item.ratings} /></div>
<Button className={cssDetails.button} onClick={onClick} tabIndex='1'>
<Button className={cssDetails.button} onClick={onClick} tabIndex={1}>
<PlayResumeButton value={item.resume}/>
</Button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/views/MainPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function MovieGenreLists({ ...rest }){

content = items.map((item) => {
let index = MOVIES_LIST_BY_GENRE_PREFIX + item.genreid;
return (<List listID={index} title={item.label} {...rest} />)
return (<List key={item.genreid} listID={index} title={item.label} {...rest} />)
}
);
}
Expand Down
6 changes: 3 additions & 3 deletions webos-meta/appinfo.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"id": "kodi2webos",
"version": "1.0.0",
"vendor": "VALVERDE",
"vendor": "valverde",
"type": "web",
"main": "./src/index.js",
"main": "index.html",
"title": "Enact App Template",
"icon": "icon.png",
"miniicon": "icon-mini.png",
"largeIcon": "icon-large.png",
"uiRevision": 2
}
}
Binary file modified webos-meta/icon-large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified webos-meta/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 931244f

Please sign in to comment.