1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

stub out channel mapping

This commit is contained in:
Luke Pulverenti 2016-06-09 12:13:25 -04:00
parent 1da301d7e5
commit 59b4199fc0
13 changed files with 253 additions and 53 deletions

View file

@ -15,12 +15,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.4.34",
"_release": "1.4.34",
"version": "1.4.35",
"_release": "1.4.35",
"_resolution": {
"type": "version",
"tag": "1.4.34",
"commit": "412b8b2523dd3d55952f1caeb0c2cb97b51d3781"
"tag": "1.4.35",
"commit": "bcbcfaeee154165b27ee748bf3816ea713d3caec"
},
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.0",

View file

@ -5,23 +5,6 @@
var self = this;
var items = {};
self.refresh = function () {
reloadPage(options.element);
};
self.destroy = function () {
events.off(serverNotifications, 'TimerCreated', onTimerCreated);
events.off(serverNotifications, 'SeriesTimerCreated', onSeriesTimerCreated);
events.off(serverNotifications, 'TimerCancelled', onTimerCancelled);
events.off(serverNotifications, 'SeriesTimerCancelled', onSeriesTimerCancelled);
clearCurrentTimeUpdateInterval();
itemShortcuts.off(options.element);
items = {};
};
self.options = options;
// 30 mins
@ -40,6 +23,24 @@
var channelsPromise;
self.refresh = function () {
currentDate = null;
reloadPage(options.element);
};
self.destroy = function () {
events.off(serverNotifications, 'TimerCreated', onTimerCreated);
events.off(serverNotifications, 'SeriesTimerCreated', onSeriesTimerCreated);
events.off(serverNotifications, 'TimerCancelled', onTimerCancelled);
events.off(serverNotifications, 'SeriesTimerCancelled', onSeriesTimerCancelled);
clearCurrentTimeUpdateInterval();
itemShortcuts.off(options.element);
items = {};
};
function normalizeDateToTimeslot(date) {
var minutesOffset = date.getMinutes() - cellCurationMinutes;
@ -128,7 +129,7 @@
var limit = 5;
context.querySelector('.guideRequiresUnlock').classList.remove('hide');
context.querySelector('.unlockText').innerHTML = globalize.translate('LiveTvGuideRequiresUnlock', limit);
context.querySelector('.unlockText').innerHTML = globalize.translate('sharedcomponents#LiveTvGuideRequiresUnlock', limit);
return limit;
});
@ -797,7 +798,7 @@
require(['text!./tvguide.template.html'], function (template) {
var context = options.element;
context.innerHTML = globalize.translateDocument(template, 'core');
context.innerHTML = globalize.translateDocument(template, 'sharedcomponents');
var programGrid = context.querySelector('.programGrid');
var timeslotHeaders = context.querySelector('.timeslotHeaders');

View file

@ -27,7 +27,7 @@ button.listItem {
.listItemBody {
flex-grow: 1;
padding: .35em 1.25em;
padding: .85em 1.25em;
overflow: hidden;
text-overflow: ellipsis;
}
@ -78,6 +78,10 @@ button.listItem {
right: 0;
}
.listItem .secondary {
color: #737373;
}
.listItem:focus .secondary {
color: inherit !important;
}

View file

@ -1,7 +1,7 @@
{
"name": "prism-element",
"description": "Prism.js import and syntax highlighting",
"version": "1.0.4",
"version": "1.1.0",
"authors": [
"The Polymer Project Authors (https://polymer.github.io/AUTHORS.txt)"
],
@ -25,7 +25,7 @@
],
"dependencies": {
"prism": "*",
"polymer": "Polymer/polymer#^1.0.0"
"polymer": "Polymer/polymer#^1.5.0"
},
"devDependencies": {
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
@ -33,11 +33,11 @@
"paper-styles": "PolymerElements/paper-styles#^1.0.0",
"web-component-tester": "^4.0.0"
},
"_release": "1.0.4",
"_release": "1.1.0",
"_resolution": {
"type": "version",
"tag": "1.0.4",
"commit": "f5786216574e6ab9ef52434e588d37e9f3785b9e"
"tag": "v1.1.0",
"commit": "4c9366c79db87cb5eee3263452875b951b9741ed"
},
"_source": "git://github.com/PolymerElements/prism-element.git",
"_target": "^1.0.0",

View file

@ -1,7 +1,7 @@
{
"name": "prism-element",
"description": "Prism.js import and syntax highlighting",
"version": "1.0.4",
"version": "1.1.0",
"authors": [
"The Polymer Project Authors (https://polymer.github.io/AUTHORS.txt)"
],
@ -25,7 +25,7 @@
],
"dependencies": {
"prism": "*",
"polymer": "Polymer/polymer#^1.0.0"
"polymer": "Polymer/polymer#^1.5.0"
},
"devDependencies": {
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",

View file

@ -24,6 +24,9 @@ containing the source to highlight. The event detail can optionally contain a
`lang` property, containing a string like `"html"`, `"js"`, etc.
This flow is supported by [`<marked-element>`](https://github.com/PolymerElements/marked-element).
@element prism-highlighter
@demo demo/index.html
-->
<script>
(function() {
@ -55,10 +58,12 @@ This flow is supported by [`<marked-element>`](https://github.com/PolymerElement
*/
_highlight: function(event) {
if (!event.detail || !event.detail.code) {
console.warn('Malformed', HIGHLIGHT_EVENT, 'event:', event.detail);
Polymer.Base._warn('Malformed', HIGHLIGHT_EVENT, 'event:', event.detail);
return;
}
event.stopPropagation();
var detail = event.detail;
detail.code = Prism.highlight(detail.code, this._detectLang(detail.code, detail.lang));
},

View file

@ -0,0 +1,151 @@
<!--
@license
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<dom-module id="prism-theme-default">
<template>
<style>
/**
* prism.js default theme for JavaScript, CSS and HTML
* Based on dabblet (http://dabblet.com)
* @author Lea Verou
*/
code[class*="language-"],
pre[class*="language-"] {
color: black;
background: none;
text-shadow: 0 1px white;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
text-shadow: none;
background: #b3d4fc;
}
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
code[class*="language-"]::selection, code[class*="language-"] ::selection {
text-shadow: none;
background: #b3d4fc;
}
@media print {
code[class*="language-"],
pre[class*="language-"] {
text-shadow: none;
}
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #f5f2f0;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: slategray;
}
.token.punctuation {
color: #999;
}
.namespace {
opacity: .7;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
color: #905;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: #690;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
color: #a67f59;
background: hsla(0, 0%, 100%, .5);
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #07a;
}
.token.function {
color: #DD4A68;
}
.token.regex,
.token.important,
.token.variable {
color: #e90;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
</style>
</template>
</dom-module>