-
Notifications
You must be signed in to change notification settings - Fork 0
/
component-page.html
58 lines (54 loc) · 1.74 KB
/
component-page.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<link rel="import" href="../component-list/component-list.html">
<link rel="import" href="../component-adder/component-adder.html">
<link rel="import" href="../polymerfire/firebase-document.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../bower-installer/bower-installer.html">
<dom-module id="component-page">
<template>
<style>
:host {
@apply(--layout-fullbleed);
display: none;
background: white;
}
:host([active]){
display: block;
@apply(--layout-horizontal);
@apply(--layout-vertical);
}
component-list {
margin-top: 50px;
--component-list--height: auto;
}
component-adder {
position: fixed;
bottom: 50px;
right: 50px;
}
bower-installer {
position: fixed;
bottom: 50px;
right: 120px;
}
</style>
<firebase-document
id="doc"
path="/components"
data="{{components}}">
</firebase-document>
<component-list components="[[components]]" showcomponentinfo="true"></component-list>
<component-adder next-index="[[components.length]]"></component-adder>
<bower-installer components="[[components]]"></bower-installer>
</template>
<script>
Polymer({
is: 'component-page',
properties: {
components: {
type: Array,
notify: true
}
}
});
</script>
</dom-module>