Skip to content

Commit

Permalink
Refactor files
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Mulder committed Dec 16, 2015
1 parent 6667796 commit 9b819ee
Show file tree
Hide file tree
Showing 22 changed files with 143 additions and 143 deletions.
2 changes: 1 addition & 1 deletion demo/data/fakeDB.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if(localStorage.getItem('users') !== null){
}
}
}
httpRequest.open('GET', 'data/userData.js');
httpRequest.open('GET', '../data/userData.js');
httpRequest.send();
}

Expand Down
48 changes: 24 additions & 24 deletions demo/demo-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,34 +85,34 @@
</div>
</paper-toolbar>
<paper-menu id="menu" selected="{{currentUrl}}" attr-for-selected="data-url" on-iron-activate="navigate">
<paper-item data-url="docs.html?getting-started" data-keywords='["editable", "edit", "columns", "tutorial", "docs"]'>
<paper-item data-url="docs/docs.html?getting-started" data-keywords='["editable", "edit", "columns", "tutorial", "docs"]'>
<iron-icon icon="book"></iron-icon>Getting started</span>
</paper-item>
<paper-item data-url="simple.html" class="indent" data-keywords='["tutorial", "simple", "example", "demo"]'>
<paper-item data-url="demo/paper-datatable/simple.html" class="indent" data-keywords='["tutorial", "simple", "example", "demo"]'>
<iron-icon icon="favorite"></iron-icon><span>Simple <code>&lt;datatable&gt;</code></span>
</paper-item>
<paper-item data-url="editable.html" class="indent" data-keywords='["editable", "tutorial", "simple", "example", "demo", "dialog"]'>
<paper-item data-url="demo/paper-datatable/editable.html" class="indent" data-keywords='["editable", "tutorial", "simple", "example", "demo", "dialog"]'>
<iron-icon icon="favorite"></iron-icon><span>Editable <code>&lt;datatable&gt;</code></span>
</paper-item>
<paper-item data-url="docs.html?getting-started-with-data-table-cards" data-keywords='["pagination", "pages", "card", "cards", "docs"]'>
<paper-item data-url="docs/docs.html?getting-started-with-data-table-cards" data-keywords='["pagination", "pages", "card", "cards", "docs"]'>
<iron-icon icon="book"></iron-icon>Data tables in cards</span>
</paper-item>
<paper-item data-url="users-card.html" class="indent" data-keywords='["pagination", "pages", "card", "cards", "demo"]'>
<paper-item data-url="demo/paper-datatable-card/users-card.html" class="indent" data-keywords='["pagination", "pages", "card", "cards", "demo"]'>
<iron-icon icon="explore"></iron-icon><span>Simple <code>&lt;datatable-card&gt;</code></span>
</paper-item>
<paper-item data-url="complex-paper-datatable-card.html" class="indent" data-keywords='["pagination", "pages", "card", "cards", "demo", "data-source", "datasource", "data source", "search"]'>
<paper-item data-url="demo/paper-datatable-card/complex-paper-datatable-card.html" class="indent" data-keywords='["pagination", "pages", "card", "cards", "demo", "data-source", "datasource", "data source", "search"]'>
<iron-icon icon="favorite"></iron-icon><span><code>&lt;datatable-card&gt;</code> full impl.</span>
</paper-item>
<paper-item data-url="docs.html?styling" data-keywords='["docs", "theming", "styling", "css", "variables", "mixins"]'>
<paper-item data-url="docs/docs.html?styling" data-keywords='["docs", "theming", "styling", "css", "variables", "mixins"]'>
<iron-icon icon="book"></iron-icon>Styling</span>
</paper-item>
<paper-item data-url="theming.html" class="indent" data-keywords='["demo", "theming", "styling", "css", "variables", "mixins"]'>
<paper-item data-url="demo/miscellaneous/theming.html" class="indent" data-keywords='["demo", "theming", "styling", "css", "variables", "mixins"]'>
<iron-icon icon="explore"></iron-icon><span>Theming options</span>
</paper-item>
<paper-item data-url="docs.html?events" data-keywords='["docs", "events", "event"]'>
<paper-item data-url="docs/docs.html?events" data-keywords='["docs", "events", "event"]'>
<iron-icon icon="book"></iron-icon>Events</span>
</paper-item>
<paper-item data-url="events.html" class="indent" data-keywords='["demo", "events", "event"]'>
<paper-item data-url="demo/miscellaneous/events.html" class="indent" data-keywords='["demo", "events", "event"]'>
<iron-icon icon="explore"></iron-icon><span>Event explorer</span>
</paper-item>

Expand All @@ -123,43 +123,43 @@
<iron-icon icon="menu"></iron-icon><span>Miscellaneous demo's</span>
</paper-item>
<paper-menu class="menu-content" selected="{{currentUrl}}" attr-for-selected="data-url" on-iron-activate="navigate">
<paper-item data-url="bindings.html" data-keywords='["data binding", "binding", "selected", "selectedItem", "editable", "demo", "item", "value"]'>
<paper-item data-url="demo/paper-datatable/bindings.html" data-keywords='["data binding", "binding", "selected", "selectedItem", "editable", "demo", "item", "value"]'>
<iron-icon icon="explore"></iron-icon><span>The magic of data bindings</span>
</paper-item>
<paper-item data-url="sorting.html" data-keywords='["sorting", "sortable", "demo"]'>
<paper-item data-url="demo/paper-datatable/sorting.html" data-keywords='["sorting", "sortable", "demo"]'>
<iron-icon icon="explore"></iron-icon><span>Sorting & Type system</span>
</paper-item>
<paper-item data-url="resize-behavior.html" data-keywords='["resize", "demo"]'>
<paper-item data-url="demo/paper-datatable/resize-behavior.html" data-keywords='["resize", "demo"]'>
<iron-icon icon="explore"></iron-icon><span>Resize behaviors</span>
</paper-item>
<paper-item data-url="light.html" data-keywords='["table", "css", "light", "lightweight"]'>
<paper-item data-url="demo/miscellaneous/light.html" data-keywords='["table", "css", "light", "lightweight"]'>
<iron-icon icon="explore"></iron-icon><span>CSS only MD <span><code>&lt;table&gt;</code></span>
</paper-item>
<paper-item data-url="dynamic-columns.html" data-keywords='["adding", "removing", "columns", "demo"]'>
<paper-item data-url="demo/paper-datatable/dynamic-columns.html" data-keywords='["adding", "removing", "columns", "demo"]'>
<iron-icon icon="build"></iron-icon><span>Dynamic columns</span>
</paper-item>
<paper-item data-url="filter.html" data-keywords='["filter", "demo", "search"]'>
<paper-item data-url="demo/paper-datatable/filter.html" data-keywords='["filter", "demo", "search"]'>
<iron-icon icon="build"></iron-icon><span>Simple filter</span>
</paper-item>
<paper-item data-url="paper-datatable.html" data-keywords='["data binding", "binding", "editable", "demo", "item", "value"]'>
<paper-item data-url="demo/paper-datatable/paper-datatable.html" data-keywords='["data binding", "binding", "editable", "demo", "item", "value"]'>
<iron-icon icon="build"></iron-icon><span>Complex <code>&lt;datatable&gt;</code> element</span>
</paper-item>
<paper-item data-url="paper-datatable-card.html" data-keywords='["editable", "demo", "card", "pagination", "datasource", "data-source", "data source"]'>
<paper-item data-url="demo/paper-datatable-card/paper-datatable-card.html" data-keywords='["editable", "demo", "card", "pagination", "datasource", "data-source", "data source"]'>
<iron-icon icon="build"></iron-icon><span><code>&lt;datatable-card&gt;</code> element</span>
</paper-item>
<paper-item data-url="icons.html" data-keywords='["icons"]'>
<paper-item data-url="demo/miscellaneous/icons.html" data-keywords='["icons"]'>
<iron-icon icon="build"></iron-icon><span>Icons</span>
</paper-item>
</paper-menu>
</paper-submenu>
<hr style="border-bottom-color:rgba(240,240,240);border-top:0px;" data-keywords='[""]'>
<paper-item data-url="api.html?datatable" data-keywords='["api", "reference", "datatable", "columns", "editable", "column", "filter"]'>
<paper-item data-url="docs/api.html?datatable" data-keywords='["api", "reference", "datatable", "columns", "editable", "column", "filter"]'>
<iron-icon icon="book"></iron-icon><span><code>&lt;datatable&gt;</code> API</span>
</paper-item>
<paper-item data-url="api.html?datatable-column" data-keywords='["api", "reference", "column", "columns", "editable", "styling", "style", "dialog", "edit", "icon"]'>
<paper-item data-url="docs/api.html?datatable-column" data-keywords='["api", "reference", "column", "columns", "editable", "styling", "style", "dialog", "edit", "icon"]'>
<iron-icon icon="book"></iron-icon><span><code>&lt;datatable-column&gt;</code> API</span>
</paper-item>
<paper-item data-url="api.html?datatable-card" data-keywords='["api", "reference", "card", "pagination", "search", "data source", "data-source", "data", "source", "page", "selection"]'>
<paper-item data-url="docs/api.html?datatable-card" data-keywords='["api", "reference", "card", "pagination", "search", "data source", "data-source", "data", "source", "page", "selection"]'>
<iron-icon icon="book"></iron-icon><span><code>&lt;datatable-card&gt;</code> API</span>
</paper-item>
</paper-menu>
Expand Down Expand Up @@ -194,7 +194,7 @@
currentUrl: {
type: String,
value: function(){
return location.pathname.split("/").pop() + (location.search.length ? '?' + location.search.replace('?','') : '');
return location.href.replace(this.resolveUrl('../'),'');// + (location.search.length ? '?' + location.search.replace('?','') : '');
}
},
searchTerm: {
Expand All @@ -212,7 +212,7 @@
},
navigate: function(event, item){
if(item.selected){
location.href = item.selected;
location.href = this.resolveUrl('../'+item.selected);
}
},
search: function(){
Expand Down
12 changes: 6 additions & 6 deletions demo/events.html → demo/miscellaneous/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

<title>Event explorer</title>

<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script>
window.Polymer = window.Polymer || {};
window.Polymer.dom = 'shadow';
</script>
<link rel="import" href="../../polymer/polymer.html">
<link rel="import" href="../../paper-card/paper-card.html">
<link rel="import" href="../paper-datatable-card.html">
<link rel="import" href="../paper-datatable.html">
<link rel="import" href="demo-menu.html">
<link rel="import" href="../../../polymer/polymer.html">
<link rel="import" href="../../../paper-card/paper-card.html">
<link rel="import" href="../../paper-datatable-card.html">
<link rel="import" href="../../paper-datatable.html">
<link rel="import" href="../demo-menu.html">

</head>
<body>
Expand Down
10 changes: 5 additions & 5 deletions demo/icons.html → demo/miscellaneous/icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

<title>Custom datatable `iron-iconset`</title>

<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script>
window.Polymer = window.Polymer || {};
window.Polymer.dom = 'shadow';
</script>
<link rel="import" href="../../polymer/polymer.html">
<link rel="import" href="../../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../datatable-icons.html">
<link rel="import" href="../../../polymer/polymer.html">
<link rel="import" href="../../../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../../datatable-icons.html">

<link rel="import" href="demo-menu.html">
<link rel="import" href="../demo-menu.html">

</head>
<body>
Expand Down
10 changes: 5 additions & 5 deletions demo/light.html → demo/miscellaneous/light.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

<title>Lightweight CSS-only MD tables</title>

<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script>
window.Polymer = window.Polymer || {};
window.Polymer.dom = 'shadow';
</script>
<link rel="import" href="../../polymer/polymer.html">
<link rel="import" href="../../paper-card/paper-card.html">
<link rel="import" href="../paper-datatable-styles.html">
<link rel="import" href="../../../polymer/polymer.html">
<link rel="import" href="../../../paper-card/paper-card.html">
<link rel="import" href="../../paper-datatable-styles.html">

<link rel="import" href="./demo-menu.html">
<link rel="import" href="../demo-menu.html">

<style is="custom-style">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<html>
<head>
<title></title>
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script>
window.Polymer = window.Polymer || {};
window.Polymer.dom = 'shadow';
</script>
<link rel="import" href="../../polymer/polymer.html">
<link rel="import" href="../../paper-input/paper-input.html">
<link rel="import" href="../../paper-input/paper-textarea.html">
<link rel="import" href="../../iron-input/iron-input.html">
<link rel="import" href="../paper-datatable-edit-dialog.html">
<link rel="import" href="../../../polymer/polymer.html">
<link rel="import" href="../../../paper-input/paper-input.html">
<link rel="import" href="../../../paper-input/paper-textarea.html">
<link rel="import" href="../../../iron-input/iron-input.html">
<link rel="import" href="../../paper-datatable-edit-dialog.html">
</head>
<body>
<template is="dom-bind" id="app">
Expand Down
12 changes: 6 additions & 6 deletions demo/theming.html → demo/miscellaneous/theming.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

<title>Theming options</title>

<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script>
window.Polymer = window.Polymer || {};
window.Polymer.dom = 'shadow';
</script>
<link rel="import" href="../../polymer/polymer.html">
<link rel="import" href="../../paper-card/paper-card.html">
<link rel="import" href="../paper-datatable-card.html">
<link rel="import" href="../paper-datatable.html">
<link rel="import" href="demo-menu.html">
<link rel="import" href="../../../polymer/polymer.html">
<link rel="import" href="../../../paper-card/paper-card.html">
<link rel="import" href="../../paper-datatable-card.html">
<link rel="import" href="../../paper-datatable.html">
<link rel="import" href="../demo-menu.html">

<style is="custom-style">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
<html>
<head>
<title>Full `paper-datatable-card` implementation</title>
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script>
window.Polymer = window.Polymer || {};
window.Polymer.dom = 'shadow';
</script>
<link rel="import" href="../../polymer/polymer.html">
<link rel="import" href="../paper-datatable-card.html">
<link rel="import" href="../paper-datatable.html">
<link rel="import" href="demo-menu.html">
<link rel="import" href="../../google-map/google-map.html">
<link rel="import" href="../../paper-input/paper-textarea.html">
<link rel="import" href="../../paper-dialog/paper-dialog.html">
<link rel="import" href="../../paper-button/paper-button.html">
<link rel="import" href="../../paper-dialog-scrollable/paper-dialog-scrollable.html">
<script src="data/userData.js"></script>
<script src="data/fakeDB.js"></script>
<link rel="import" href="../../../polymer/polymer.html">
<link rel="import" href="../../paper-datatable-card.html">
<link rel="import" href="../../paper-datatable.html">
<link rel="import" href="../demo-menu.html">
<link rel="import" href="../../../google-map/google-map.html">
<link rel="import" href="../../../paper-input/paper-textarea.html">
<link rel="import" href="../../../paper-dialog/paper-dialog.html">
<link rel="import" href="../../../paper-button/paper-button.html">
<link rel="import" href="../../../paper-dialog-scrollable/paper-dialog-scrollable.html">
<script src="../data/userData.js"></script>
<script src="../data/fakeDB.js"></script>
</head>
<body>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
<html>
<head>
<title>`paper-datatable-card` playground</title>
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../../polymer/polymer.html">
<link rel="import" href="../paper-datatable-card.html">
<link rel="import" href="../paper-datatable.html">
<link rel="import" href="demo-menu.html">
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../../../polymer/polymer.html">
<link rel="import" href="../../paper-datatable-card.html">
<link rel="import" href="../../paper-datatable.html">
<link rel="import" href="../demo-menu.html">

</head>
<body>


<template is="dom-bind" id="app">
<demo-menu>
<style is="custom-style">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<html>
<head>
<title>Simple `paper-datatable-card`</title>
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../../polymer/polymer.html">
<link rel="import" href="../paper-datatable-card.html">
<link rel="import" href="../paper-datatable.html">
<link rel="import" href="demo-menu.html">
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../../../polymer/polymer.html">
<link rel="import" href="../../paper-datatable-card.html">
<link rel="import" href="../../paper-datatable.html">
<link rel="import" href="../demo-menu.html">

</head>
<body>
Expand Down
12 changes: 6 additions & 6 deletions demo/bindings.html → demo/paper-datatable/bindings.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

<title>The magic of data bindings</title>

<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script>
window.Polymer = window.Polymer || {};
window.Polymer.dom = 'shadow';
</script>
<link rel="import" href="../../polymer/polymer.html">
<link rel="import" href="../../paper-card/paper-card.html">
<link rel="import" href="../paper-datatable-card.html">
<link rel="import" href="../paper-datatable.html">
<link rel="import" href="./demo-menu.html">
<link rel="import" href="../../../polymer/polymer.html">
<link rel="import" href="../../../paper-card/paper-card.html">
<link rel="import" href="../../paper-datatable-card.html">
<link rel="import" href="../../paper-datatable.html">
<link rel="import" href="../demo-menu.html">

<style is="custom-style">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@

<title>Adding, removing and toggling columns</title>

<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script>
window.Polymer = window.Polymer || {};
window.Polymer.dom = 'shadow';
</script>
<link rel="import" href="../../polymer/polymer.html">
<link rel="import" href="../../paper-card/paper-card.html">
<link rel="import" href="../../paper-button/paper-button.html">
<link rel="import" href="../paper-datatable-card.html">
<link rel="import" href="../paper-datatable.html">
<link rel="import" href="./demo-menu.html">
<link rel="import" href="../../../polymer/polymer.html">
<link rel="import" href="../../../paper-card/paper-card.html">
<link rel="import" href="../../../paper-button/paper-button.html">
<link rel="import" href="../../paper-datatable-card.html">
<link rel="import" href="../../paper-datatable.html">
<link rel="import" href="../demo-menu.html">

<style is="custom-style">

Expand Down Expand Up @@ -50,6 +50,7 @@
align-items:center;
background: #3F51B5;
color:white;
margin-bottom: 10px;
}
</style>

Expand All @@ -68,7 +69,7 @@

<paper-card heading="Actions" id="actions">
<div style="padding:0px 20px 20px 20px;">
<paper-button raised on-tap="doInsert" style="">
<paper-button raised on-tap="doInsert">
<iron-icon icon="add"></iron-icon>
&nbsp;Insert column
</paper-button>
Expand Down
Loading

0 comments on commit 9b819ee

Please sign in to comment.