Skip to content

Commit

Permalink
Merge pull request mozilla-b2g#28040 from evelynhung/issue-1123565
Browse files Browse the repository at this point in the history
Bug 1123565 - Initial work of dashboard app. r=rexboy
  • Loading branch information
evelynhung committed Feb 9, 2015
2 parents eddf2fd + 4ccf03c commit ac318c1
Show file tree
Hide file tree
Showing 11 changed files with 88 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/config/tv/apps-engineering.list
Expand Up @@ -4,6 +4,7 @@ tv_apps/smart-home
tv_apps/browser
tv_apps/app-deck
tv_apps/device-deck
tv_apps/dashboard
tv_apps/dlna-player
tv_apps/fling-player
tv_apps/notification-receiver
Expand Down
13 changes: 13 additions & 0 deletions tv_apps/dashboard/build/build.js
@@ -0,0 +1,13 @@
'use strict';

/* global require, exports */
var utils = require('utils');


exports.execute = function(options) {
utils.copyToStage(options);
// copy tv shared files
var helperPath = utils.joinPath('..', '..', 'tv_apps', 'tv_build',
'tv_shared_helper.js');
require(helperPath).TVSharedHelper.execute(options);
};
25 changes: 25 additions & 0 deletions tv_apps/dashboard/index.html
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<meta charset="utf-8">
<title>Dashboard</title>

<link rel="stylesheet" type="text/css" href="style/dashboard.css">

<!-- Shared L10n libraries -->
<script src="shared/js/l10n.js"></script>
<script src="shared/js/l10n_date.js"></script>

<!-- L10n properties -->
<meta name="defaultLanguage" content="en-US">
<meta name="availableLanguages" content="en-US">
<link rel="localization" href="locales/dashboard.{locale}.properties"/>
<link rel="localization" href="shared/locales/date/date.{locale}.properties"/>

</head>

<body>
</body>

</html>
10 changes: 10 additions & 0 deletions tv_apps/dashboard/jsdoc.json
@@ -0,0 +1,10 @@
{
"settings": {
"src": [
"tv_apps/dashboard/js/**/*.js"
],
"options": {
"destination": "docs/dashboard"
}
}
}
Empty file.
23 changes: 23 additions & 0 deletions tv_apps/dashboard/manifest.webapp
@@ -0,0 +1,23 @@
{
"name": "Dashboard",
"description": "Smart Screen Dashboard ",
"launch_path": "/index.html",
"type": "certified",
"role": "deck",
"developer": {
"name": "The Gaia Team",
"url": "https://github.com/mozilla-b2g/gaia"
},
"locales": {
"en-US": {
"name": "Dashboard",
"description": "Smart Screen Dashboard"
}
},
"default_locale": "en-US",
"icons": {
"336": "/style/icons/dashboard_336.png",
"672": "/style/icons/dashboard_672.png"
},
"orientation": "landscape"
}
15 changes: 15 additions & 0 deletions tv_apps/dashboard/style/dashboard.css
@@ -0,0 +1,15 @@
html {
font-size: 10px;
/* We have Fira Sans as default font in real device. But it isn't default in
* * browser. That's the main reason this line is here.*/
font-family: "Fira Sans";
}

html, body {
width: 100%;
height: 100%;
overflow: hidden;
margin: 0;
padding: 0;
background-image: url(dummy/dashboard_background.jpg);
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tv_apps/dashboard/style/icons/dashboard_336.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tv_apps/dashboard/style/icons/dashboard_672.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions tv_apps/tv_shared/resources/default-cards.json
Expand Up @@ -24,6 +24,7 @@
"name": "Dashboard",
"type": "Deck",
"deckClass": "dashboard",
"manifestURL": "app://dashboard.gaiamobile.org/manifest.webapp",
"group": "dashboard"
}
]
Expand Down

0 comments on commit ac318c1

Please sign in to comment.