mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update detail page
This commit is contained in:
parent
f5323ff3c2
commit
dc87e4ccc2
17 changed files with 102 additions and 36 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-tabs",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"description": "Material design tabs",
|
||||
"private": true,
|
||||
|
@ -32,17 +32,18 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
|
||||
"iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0",
|
||||
"paper-toolbar": "polymerelements/paper-toolbar#^1.0.0",
|
||||
"test-fixture": "polymerelements/test-fixture#^1.0.0",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
|
||||
"web-component-tester": "*"
|
||||
},
|
||||
"homepage": "https://github.com/PolymerElements/paper-tabs",
|
||||
"_release": "1.0.1",
|
||||
"_release": "1.0.2",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.1",
|
||||
"commit": "6403be53eeef5f9e7a7a7ccd9251f551d26c7548"
|
||||
"tag": "v1.0.2",
|
||||
"commit": "61abed79e3c4e7c87dd826f7f81ef9c7ecb5df78"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/paper-tabs.git",
|
||||
"_target": "~1.0.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-tabs",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"description": "Material design tabs",
|
||||
"private": true,
|
||||
|
@ -32,6 +32,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
|
||||
"iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0",
|
||||
"paper-toolbar": "polymerelements/paper-toolbar#^1.0.0",
|
||||
"test-fixture": "polymerelements/test-fixture#^1.0.0",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
|
||||
|
|
|
@ -12,6 +12,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
<link rel="import" href="../iron-flex-layout/classes/iron-flex-layout.html">
|
||||
<link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
|
||||
<link rel="import" href="../iron-behaviors/iron-control-state.html">
|
||||
<link rel="import" href="../iron-behaviors/iron-button-state.html">
|
||||
<link rel="import" href="../paper-ripple/paper-ripple.html">
|
||||
|
||||
<!--
|
||||
|
@ -120,7 +121,8 @@ Custom property | Description | Default
|
|||
is: 'paper-tab',
|
||||
|
||||
behaviors: [
|
||||
Polymer.IronControlState
|
||||
Polymer.IronControlState,
|
||||
Polymer.IronButtonState
|
||||
],
|
||||
|
||||
properties: {
|
||||
|
@ -142,7 +144,11 @@ Custom property | Description | Default
|
|||
},
|
||||
|
||||
listeners: {
|
||||
down: '_onDown'
|
||||
down: '_updateNoink'
|
||||
},
|
||||
|
||||
attached: function() {
|
||||
this._updateNoink();
|
||||
},
|
||||
|
||||
get _parentNoink () {
|
||||
|
@ -150,7 +156,7 @@ Custom property | Description | Default
|
|||
return !!parent && !!parent.noink;
|
||||
},
|
||||
|
||||
_onDown: function(e) {
|
||||
_updateNoink: function() {
|
||||
this.noink = !!this.noink || !!this._parentNoink;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -21,6 +21,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
<script src="../../test-fixture/test-fixture-mocha.js"></script>
|
||||
|
||||
<link rel="import" href="../paper-tabs.html">
|
||||
<link rel="import" href="../../iron-test-helpers/iron-test-helpers.html">
|
||||
<link rel="import" href="../../test-fixture/test-fixture.html">
|
||||
|
||||
</head>
|
||||
|
@ -149,10 +150,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
suite('select tab via click', function() {
|
||||
|
||||
var tabs, index = 1;
|
||||
var tab;
|
||||
|
||||
setup(function () {
|
||||
tabs = fixture('basic');
|
||||
var tab = tabs.querySelectorAll('paper-tab')[index];
|
||||
tab = tabs.querySelectorAll('paper-tab')[index];
|
||||
tab.dispatchEvent(new CustomEvent('click', {bubbles: true}));
|
||||
});
|
||||
|
||||
|
@ -172,6 +174,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
}, 1000);
|
||||
});
|
||||
|
||||
test('pressing enter on tab causes a click', function(done) {
|
||||
var clickCount = 0;
|
||||
tab.addEventListener('click', function onTabClick() {
|
||||
clickCount++;
|
||||
tab.removeEventListener('click', onTabClick);
|
||||
|
||||
expect(clickCount).to.be.equal(1);
|
||||
done();
|
||||
});
|
||||
|
||||
MockInteractions.pressEnter(tab);
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue