Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit f7ce0d2

Browse files
author
Arthur Evans
committed
Move post-service to central location instead of keeping multiple copies.
Use RobotoDraft.
1 parent 53ca835 commit f7ce0d2

14 files changed

Lines changed: 68 additions & 166 deletions

File tree

components/font-roboto/.bower.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "font-roboto",
3+
"homepage": "https://github.com/Polymer/font-roboto",
4+
"version": "0.3.3",
5+
"_release": "0.3.3",
6+
"_resolution": {
7+
"type": "version",
8+
"tag": "0.3.3",
9+
"commit": "3515cb3b0d19e5df52ae8c4ad9606ab9a67b8fa6"
10+
},
11+
"_source": "git://github.com/Polymer/font-roboto.git",
12+
"_target": "~0.3.3",
13+
"_originalSource": "Polymer/font-roboto",
14+
"_direct": true
15+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
Code distributed by Google as part of the polymer project is also
77
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
88
-->
9-
<link href='//fonts.googleapis.com/css?family=Roboto2:bold,regular,italic,thin,light,bolditalic,black,medium&lang=en' rel='stylesheet' type='text/css'>
9+
<link href='//fonts.googleapis.com/css?family=RobotoDraft:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en' rel='stylesheet' type='text/css'>

components/font-roboto2/.bower.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

finished/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>unquote</title>
66
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
77
<script src="../components/platform/platform.js"></script>
8-
<link rel="import" href="../components/font-roboto2/roboto2.html">
8+
<link rel="import" href="../components/font-roboto/roboto.html">
99
<link rel="import"
1010
href="../components/core-header-panel/core-header-panel.html">
1111
<link rel="import"
@@ -18,7 +18,7 @@
1818
height: 100%;
1919
margin: 0;
2020
background-color: #E5E5E5;
21-
font-family: 'Roboto2', sans-serif;
21+
font-family: 'RobotoDraft', sans-serif;
2222
}
2323
core-header-panel {
2424
height: 100%;

finished/post-list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<link rel="import" href="../components/polymer/polymer.html">
2-
<link rel="import" href="post-service.html">
2+
<link rel="import" href="../post-service/post-service.html">
33
<link rel="import" href="post-card.html">
44

55
<polymer-element name="post-list" attributes="show">

finished/post-service.html

Lines changed: 0 additions & 63 deletions
This file was deleted.
Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,50 @@
11
<link rel="import" href="../components/polymer/polymer.html">
22
<link rel="import" href="../components/core-ajax/core-ajax.html">
33
<!--
4-
post-list provides an API for unquote --
5-
the read-only social networking service.
4+
`<post-service>` provides an API for a fake service --
5+
_unquote_, the read-only social networking service!
6+
7+
Provides a very simple API: `posts` returns the list of posts.
8+
`setFavorite` pretends to persist a user's favorite choice.
69
710
@element post-service
8-
11+
@demo
12+
@homepage http://www.polymer-project.org/docs/start/tutorial.html
13+
-->
914

15+
<!--
1016
An array of post objects, with the following format:
1117
12-
| `uid` | Number | Unique ID for this post. |
13-
| `username` | String | Poster's username. |
14-
| `avatar` | String | URL for the user's avatar. |
15-
| `text` | String | Post text |
16-
| `favorite` | Boolean | True if the current user favorited this post. |
18+
<table border="0">
19+
<tr>
20+
<td><code>uid</code></td>
21+
<td>Number</td>
22+
<td>Unique ID for this post.</td>
23+
</tr>
24+
<tr>
25+
<td><code>username</code></td>
26+
<td>String</td>
27+
<td>Poster's username.</td>
28+
</tr>
29+
<tr>
30+
<td><code>avatar</code></td>
31+
<td>String</td>
32+
<td>URL for the user's avatar.</td>
33+
</tr>
34+
<tr>
35+
<td><code>text</code></td>
36+
<td>String</td>
37+
<td>Post text.</td>
38+
</tr>
39+
<tr>
40+
<td><code>favorite</code></td>
41+
<td>Boolean</td>
42+
<td>True if the current user favorited this post.</td>
43+
</tr>
44+
</table>
1745
1846
@attribute posts
19-
@type array
47+
@type Array
2048
@default []
2149
-->
2250
<polymer-element name="post-service" attributes="posts">
@@ -45,8 +73,8 @@
4573
/**
4674
* Update the service with the current favorite value.
4775
* (Two-way data binding updates the favorite value
48-
* stored locally.) If this was a real service, the
49-
* change would need to be persisted to the service here.
76+
* stored locally.) If this was a real service, this
77+
* method would do something useful.
5078
*
5179
* @method setFavorite
5280
* @param uid {Number} Unique ID for post.
@@ -58,5 +86,4 @@
5886
}
5987
});
6088
</script>
61-
6289
</polymer-element>

step-1/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
<title>unquote</title>
66
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
77
<script src="../components/platform/platform.js"></script>
8-
<link rel="import" href="../components/font-roboto2/roboto2.html">
8+
<link rel="import" href="../components/font-roboto/roboto.html">
99
<link rel="import"
1010
href="../components/core-header-panel/core-header-panel.html">
1111
<link rel="import"
1212
href="../components/core-toolbar/core-toolbar.html">
1313
<link rel="import"
1414
href="../components/paper-tabs/paper-tabs.html">
15-
<link rel="import" href="post-list.html">
15+
<link rel="import" href="post-card.html">
1616
<style>
1717
html,body {
1818
height: 100%;
1919
margin: 0;
2020
background-color: #E5E5E5;
21-
font-family: 'Roboto2', sans-serif;
21+
font-family: 'RobotoDraft', sans-serif;
2222
}
2323
core-header-panel {
2424
height: 100%;

step-2/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>unquote</title>
66
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
77
<script src="../components/platform/platform.js"></script>
8-
<link rel="import" href="../components/font-roboto2/roboto2.html">
8+
<link rel="import" href="../components/font-roboto/roboto.html">
99
<link rel="import"
1010
href="../components/core-header-panel/core-header-panel.html">
1111
<link rel="import"

step-3/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>unquote</title>
66
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
77
<script src="../components/platform/platform.js"></script>
8-
<link rel="import" href="../components/font-roboto2/roboto2.html">
8+
<link rel="import" href="../components/font-roboto/roboto.html">
99
<link rel="import"
1010
href="../components/core-header-panel/core-header-panel.html">
1111
<link rel="import"
@@ -18,7 +18,7 @@
1818
height: 100%;
1919
margin: 0;
2020
background-color: #E5E5E5;
21-
font-family: 'Roboto2', sans-serif;
21+
font-family: 'RobotoDraft', sans-serif;
2222
}
2323
core-header-panel {
2424
height: 100%;

0 commit comments

Comments
 (0)