Skip to content

Commit

Permalink
adding initialization pending state
Browse files Browse the repository at this point in the history
  • Loading branch information
pghalliday committed May 2, 2017
1 parent 7aae474 commit e2b0986
Show file tree
Hide file tree
Showing 24 changed files with 1,318 additions and 37 deletions.
1 change: 1 addition & 0 deletions app/src/ducklings/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default factory(
const completeClear = action('COMPLETE_CLEAR');
return {
initialState: {
pending: true,
count: 0,
settings: undefined,
},
Expand Down
4 changes: 4 additions & 0 deletions app/test/src/ducklings/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ describe('ducklings', () => {
});

describe('initial state', () => {
it('should be pending', () => {
app.isPending(initialState).should.be.true;
});

it('should not have settings entries', () => {
app.hasSettings(initialState).should.be.false;
});
Expand Down
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"paper-button": "PolymerElements/paper-button#2.0-preview",
"paper-styles": "PolymerElements/paper-styles#2.0-preview",
"paper-card": "PolymerElements/paper-card#2.0-preview",
"polymer-redux": "polymer-2"
"polymer-redux": "polymer-2",
"paper-spinner": "PolymerElements/paper-spinner#2.0-preview"
},
"devDependencies": {
"web-component-tester": "Polymer/web-component-tester#^v6.0.0-prerelease.9"
Expand Down
59 changes: 59 additions & 0 deletions bower_components/paper-spinner/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"name": "paper-spinner",
"description": "A material design spinner",
"authors": [
"The Polymer Authors"
],
"keywords": [
"web-components",
"polymer",
"spinner",
"loading"
],
"private": true,
"repository": {
"type": "git",
"url": "git://github.com/PolymerElements/paper-spinner"
},
"license": "http://polymer.github.io/LICENSE.txt",
"homepage": "https://github.com/PolymerElements/paper-spinner",
"ignore": [],
"dependencies": {
"paper-styles": "PolymerElements/paper-styles#2.0-preview",
"polymer": "Polymer/polymer#^2.0.0-rc.1"
},
"devDependencies": {
"iron-component-page": "PolymerElements/iron-component-page#2.0-preview",
"iron-demo-helpers": "PolymerElements/iron-demo-helpers#2.0-preview",
"web-component-tester": "Polymer/web-component-tester#^6.0.0-prerelease.6",
"webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0-rc.1"
},
"main": [
"paper-spinner.html",
"paper-spinner-lite.html"
],
"variants": {
"1.x": {
"dependencies": {
"polymer": "Polymer/polymer#^1.7.1",
"paper-styles": "PolymerElements/paper-styles#^1.0.0"
},
"devDependencies": {
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
"iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
"web-component-tester": "Polymer/web-component-tester#^4.0.0"
}
}
},
"_release": "ecb0d932de",
"_resolution": {
"type": "branch",
"branch": "2.0-preview",
"commit": "ecb0d932de650184ec5724dca13364aa537b6846"
},
"_source": "https://github.com/PolymerElements/paper-spinner.git",
"_target": "2.0-preview",
"_originalSource": "PolymerElements/paper-spinner",
"_direct": true
}
33 changes: 33 additions & 0 deletions bower_components/paper-spinner/.github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!-- Instructions: https://github.com/PolymerElements/paper-spinner/CONTRIBUTING.md#filing-issues -->
### Description
<!-- Example: The `paper-foo` element causes the page to turn pink when clicked. -->

### Expected outcome

<!-- Example: The page stays the same color. -->

### Actual outcome

<!-- Example: The page turns pink. -->

### Live Demo
<!-- Example: https://jsbin.com/cagaye/edit?html,output -->

### Steps to reproduce

<!-- Example
1. Put a `paper-foo` element in the page.
2. Open the page in a web browser.
3. Click the `paper-foo` element.
-->

### Browsers Affected
<!-- Check all that apply -->
- [ ] Chrome
- [ ] Firefox
- [ ] Safari 9
- [ ] Safari 8
- [ ] Safari 7
- [ ] Edge
- [ ] IE 11
- [ ] IE 10
2 changes: 2 additions & 0 deletions bower_components/paper-spinner/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bower_components*
bower-*.json
28 changes: 28 additions & 0 deletions bower_components/paper-spinner/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: node_js
sudo: required
before_script:
- npm install -g bower polymer-cli@next
- polymer install --variants
- sudo mv /usr/bin/google-chrome /usr/bin/google-chrome-old
- sudo mv /usr/bin/google-chrome-beta /usr/bin/google-chrome
env:
global:
- secure: >-
dIA8M55rHJN07lbp0VCU9RkN4CWlbkVdU6cP4wFZabuJJusISThMZVrZeGtbdErvQ8oiSexrE8iCZ7A/OcLnVNCrVBZX5YwJlfbex4I4uG6L8zw1E3oOX1MmdcTx2sI8MffDyG1pnXzwP5lzPItKiscEpepGY9+V0JP1j5z9qVg=
- secure: >-
KvttUgmPIlCz4WU2WIpse5s/1SVXHoS+snGDkNqYLOVXscRjJoncXYbdvLltf7SPrU7gK4HuEuEVRthhDGtuvgrXUlIOS/gaK8dWI3kuVYPppOU1DnlXgAtj/3quGZG1dNw07IGzOEW4Taq/5KdU8LRqb9clvK+jyoBQZKIXbtg=
node_js: stable
addons:
firefox: latest
apt:
sources:
- google-chrome
packages:
- google-chrome-beta
sauce_connect: true
script:
- xvfb-run polymer test
- >-
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then polymer test -s 'default';
fi
dist: trusty
77 changes: 77 additions & 0 deletions bower_components/paper-spinner/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<!--
This file is autogenerated based on
https://github.com/PolymerElements/ContributionGuide/blob/master/CONTRIBUTING.md
If you edit that file, it will get updated everywhere else.
If you edit this file, your changes will get overridden :)
You can however override the jsbin link with one that's customized to this
specific element:
jsbin=https://jsbin.com/cagaye/edit?html,output
-->

# Polymer Elements
## Guide for Contributors

Polymer Elements are built in the open, and the Polymer authors eagerly encourage any and all forms of community contribution. When contributing, please follow these guidelines:

### Filing Issues

**If you are filing an issue to request a feature**, please provide a clear description of the feature. It can be helpful to describe answers to the following questions:

1. **Who will use the feature?** _“As someone filling out a form…”_
2. **When will they use the feature?** _“When I enter an invalid value…”_
3. **What is the user’s goal?** _“I want to be visually notified that the value needs to be corrected…”_

**If you are filing an issue to report a bug**, please provide:

1. **A clear description of the bug and related expectations.** Consider using the following example template for reporting a bug:

```markdown
The `paper-foo` element causes the page to turn pink when clicked.

## Expected outcome

The page stays the same color.

## Actual outcome

The page turns pink.

## Steps to reproduce

1. Put a `paper-foo` element in the page.
2. Open the page in a web browser.
3. Click the `paper-foo` element.
```

2. **A reduced test case that demonstrates the problem.** If possible, please include the test case as a JSBin. Start with this template to easily import and use relevant Polymer Elements: [https://jsbin.com/cagaye/edit?html,output](https://jsbin.com/cagaye/edit?html,output).

3. **A list of browsers where the problem occurs.** This can be skipped if the problem is the same across all browsers.

### Submitting Pull Requests

**Before creating a pull request**, please ensure that an issue exists for the corresponding change in the pull request that you intend to make. **If an issue does not exist, please create one per the guidelines above**. The goal is to discuss the design and necessity of the proposed change with Polymer authors and community before diving into a pull request.

When submitting pull requests, please provide:

1. **A reference to the corresponding issue** or issues that will be closed by the pull request. Please refer to these issues in the pull request description using the following syntax:

```markdown
(For a single issue)
Fixes #20

(For multiple issues)
Fixes #32, fixes #40
```

2. **A succinct description of the design** used to fix any related issues. For example:

```markdown
This fixes #20 by removing styles that leaked which would cause the page to turn pink whenever `paper-foo` is clicked.
```

3. **At least one test for each bug fixed or feature added** as part of the pull request. Pull requests that fix bugs or add features without accompanying tests will not be considered.

If a proposed change contains multiple commits, please [squash commits](https://www.google.com/url?q=http://blog.steveklabnik.com/posts/2012-11-08-how-to-squash-commits-in-a-github-pull-request) to as few as is necessary to succinctly express the change. A Polymer author can help you squash commits, so don’t be afraid to ask us if you need help with that!
49 changes: 49 additions & 0 deletions bower_components/paper-spinner/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[![Build status](https://travis-ci.org/PolymerElements/paper-spinner.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-spinner)

## &lt;paper-spinner&gt;

Material design: [Progress & activity](https://www.google.com/design/spec/components/progress-activity.html)

Element providing a multiple color material design circular spinner.

<!---
```
<custom-element-demo>
<template>
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="paper-spinner.html">
<link rel="import" href="paper-spinner-lite.html">
<style is="custom-style">
paper-spinner, paper-spinner-lite {
margin: 8px 8px 8px 0;
}
paper-spinner-lite.orange {
--paper-spinner-color: var(--google-yellow-500);
}
paper-spinner-lite.green {
--paper-spinner-color: var(--google-green-500);
}
paper-spinner-lite.thin {
--paper-spinner-stroke-width: 1px;
}
paper-spinner-lite.thick {
--paper-spinner-stroke-width: 6px;
}
#container {
display: flex;
}
</style>
<div id="container">
<next-code-block></next-code-block>
</div>
</template>
</custom-element-demo>
```
-->
```html
<paper-spinner active>...</paper-spinner>
<paper-spinner-lite active class="orange"></paper-spinner-lite>
<paper-spinner-lite active class="green"></paper-spinner-lite>
<paper-spinner-lite active class="thin"></paper-spinner-lite>
<paper-spinner-lite active class="thick"></paper-spinner-lite>
```
50 changes: 50 additions & 0 deletions bower_components/paper-spinner/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "paper-spinner",
"version": "2.0.0",
"description": "A material design spinner",
"authors": [
"The Polymer Authors"
],
"keywords": [
"web-components",
"polymer",
"spinner",
"loading"
],
"private": true,
"repository": {
"type": "git",
"url": "git://github.com/PolymerElements/paper-spinner"
},
"license": "http://polymer.github.io/LICENSE.txt",
"homepage": "https://github.com/PolymerElements/paper-spinner",
"ignore": [],
"dependencies": {
"paper-styles": "PolymerElements/paper-styles#2.0-preview",
"polymer": "Polymer/polymer#^2.0.0-rc.1"
},
"devDependencies": {
"iron-component-page": "PolymerElements/iron-component-page#2.0-preview",
"iron-demo-helpers": "PolymerElements/iron-demo-helpers#2.0-preview",
"web-component-tester": "Polymer/web-component-tester#^6.0.0-prerelease.6",
"webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0-rc.1"
},
"main": [
"paper-spinner.html",
"paper-spinner-lite.html"
],
"variants": {
"1.x": {
"dependencies": {
"polymer": "Polymer/polymer#^1.7.1",
"paper-styles": "PolymerElements/paper-styles#^1.0.0"
},
"devDependencies": {
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
"iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
"web-component-tester": "Polymer/web-component-tester#^4.0.0"
}
}
}
}
Loading

0 comments on commit e2b0986

Please sign in to comment.