-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
17,808 additions
and
1,090 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# IntelliJ IDEA configuration | ||
.idea/ | ||
# bower_components directory | ||
bower_components/ | ||
node_modules/ | ||
share-menu.js | ||
share-menu.d.ts | ||
social-icons.js | ||
social-icons.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.idea/ | ||
demo/ | ||
node_modules/ | ||
src/ | ||
.* | ||
index.html | ||
ts*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
language: node_js | ||
node_js: 8.12.0 | ||
cache: | ||
directories: | ||
- node_modules | ||
script: | ||
- npm run lint | ||
- npm run build | ||
deploy: | ||
- provider: npm | ||
skip_cleanup: true | ||
tag: latest | ||
email: [email protected] | ||
api_key: | ||
secure: TYFc64TQp1kW8JvzBoMIomAl5oJnXH2zgovQaRPhV4rIdJTJ3SkytVwtGadelMyKAODFPVMj083cS8IhKatwvpwPBxG15H4GAzMi+iDawzGh1auTkMBL/1cMj6PPYXqkLmu4obcwPAmDCUFIxhIzAnD83MUluGrIxhnFEAD86xRCVnQevyEfWIf36VY0GhtCAX8fN8Bxo1kCXFh4l9Nz7zAz4yCsx5JyDlodvqEzF3X/2tZfaKRoL6b2JXwkGqv6/IT8ZFp4VQ0KXMmbBVncgh7kakbxI4RLdBJnKx1CFWv3x0mcpkMm+Lub8eMl0yY3HCThWrYlzPG/P4G8BxIxv8NKiITfFcBSDMYT0c6t5kmhlF/2xQkT61EsXTCQsYzxICKy9ctROLnxnz7s4JcW9lXL3beIIplyj/WYdmXB5Nfoi8urYjc+8k2WN1HVuMeJwdInyqTRlvsSUcR2mn0mCoBgg07JnXVtwKYrRTYSQwP+R3vyxlzre9qmksLckMm9Z92HnbXp1zhcSjvFSYUsuykGJxbCwNB8HswyHpfpH3bpYHvOMKQW3ab/ON1d7EqSbbVxmuoQT0U2DuhEbsoAGOc7XJf+YAVZ/1/cX1SVQE82yVa9yjHE4BsfRJ/1Khdd6UXQ3UPoqgJpSJpkrK7yWkExtoIIRegRQhcR0XJuiEc= | ||
on: | ||
branch: master | ||
condition: $TRAVIS_BRANCH =~ ^[0-9]+\.[0-9]+\.[0-9]+$ | ||
repo: Dabolus/share-menu | ||
tags: true | ||
- provider: npm | ||
skip_cleanup: true | ||
tag: next | ||
email: [email protected] | ||
api_key: | ||
secure: TYFc64TQp1kW8JvzBoMIomAl5oJnXH2zgovQaRPhV4rIdJTJ3SkytVwtGadelMyKAODFPVMj083cS8IhKatwvpwPBxG15H4GAzMi+iDawzGh1auTkMBL/1cMj6PPYXqkLmu4obcwPAmDCUFIxhIzAnD83MUluGrIxhnFEAD86xRCVnQevyEfWIf36VY0GhtCAX8fN8Bxo1kCXFh4l9Nz7zAz4yCsx5JyDlodvqEzF3X/2tZfaKRoL6b2JXwkGqv6/IT8ZFp4VQ0KXMmbBVncgh7kakbxI4RLdBJnKx1CFWv3x0mcpkMm+Lub8eMl0yY3HCThWrYlzPG/P4G8BxIxv8NKiITfFcBSDMYT0c6t5kmhlF/2xQkT61EsXTCQsYzxICKy9ctROLnxnz7s4JcW9lXL3beIIplyj/WYdmXB5Nfoi8urYjc+8k2WN1HVuMeJwdInyqTRlvsSUcR2mn0mCoBgg07JnXVtwKYrRTYSQwP+R3vyxlzre9qmksLckMm9Z92HnbXp1zhcSjvFSYUsuykGJxbCwNB8HswyHpfpH3bpYHvOMKQW3ab/ON1d7EqSbbVxmuoQT0U2DuhEbsoAGOc7XJf+YAVZ/1/cX1SVQE82yVa9yjHE4BsfRJ/1Khdd6UXQ3UPoqgJpSJpkrK7yWkExtoIIRegRQhcR0XJuiEc= | ||
on: | ||
branch: develop | ||
condition: $TRAVIS_BRANCH =~ ^[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+$ | ||
repo: Dabolus/share-menu | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,87 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"> | ||
|
||
<title>share-menu demo</title> | ||
<title>share-menu demo</title> | ||
<meta name="description" content="share-menu demo description"> | ||
|
||
<script src="../../webcomponentsjs/webcomponents-lite.js"></script> | ||
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script> | ||
|
||
<link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html"> | ||
<link rel="import" href="../../iron-demo-helpers/demo-snippet.html"> | ||
<link rel="import" href="../../iron-flex-layout/iron-flex-layout.html"> | ||
<link rel="import" href="../../paper-input/paper-input.html"> | ||
<link rel="import" href="../../paper-input/paper-textarea.html"> | ||
<link rel="import" href="../../paper-button/paper-button.html"> | ||
<link rel="import" href="../../paper-toggle-button/paper-toggle-button.html"> | ||
<link rel="import" href="../../paper-styles/color.html"> | ||
<link rel="import" href="../../paper-styles/typography.html"> | ||
<link rel="import" href="../share-menu.html"> | ||
<script type="module"> | ||
import '@polymer/iron-demo-helpers/demo-pages-shared-styles'; | ||
import '@polymer/iron-demo-helpers/demo-snippet'; | ||
import '@polymer/iron-flex-layout/iron-flex-layout'; | ||
import '@polymer/paper-input/paper-input'; | ||
import '@polymer/paper-input/paper-textarea'; | ||
import '@polymer/paper-button/paper-button'; | ||
import '@polymer/paper-toggle-button/paper-toggle-button'; | ||
import '@polymer/paper-styles/color'; | ||
import '@polymer/paper-styles/typography'; | ||
</script> | ||
|
||
<custom-style> | ||
<style is="custom-style" include="demo-pages-shared-styles"> | ||
.toggleWrapper { | ||
@apply --layout-horizontal; | ||
margin-top: 12px; | ||
} | ||
.toggleWrapper > .label { | ||
@apply --paper-font-subhead; | ||
} | ||
.toggleWrapper > .spacer { | ||
@apply --layout-flex; | ||
} | ||
.toggleWrapper > paper-toggle-button { | ||
cursor: pointer; | ||
} | ||
#buttonWrapper { | ||
@apply --layout-horizontal; | ||
@apply --layout-end-justified; | ||
margin-top: 12px; | ||
} | ||
#buttonWrapper > paper-button { | ||
@apply --paper-font-button; | ||
background-color: var(--paper-indigo-500); | ||
color: var(--dark-theme-text-color); | ||
} | ||
</style> | ||
</custom-style> | ||
</head> | ||
<body> | ||
<div class="vertical-section-container centered"> | ||
<h3>Basic share-menu demo</h3> | ||
<demo-snippet> | ||
<template> | ||
<dom-bind> | ||
<script type="module" src="../share-menu.js"></script> | ||
|
||
<custom-style> | ||
<style is="custom-style" include="demo-pages-shared-styles"> | ||
.toggleWrapper { | ||
@apply --layout-horizontal; | ||
margin-top: 12px; | ||
} | ||
|
||
.toggleWrapper > .label { | ||
@apply --paper-font-subhead; | ||
} | ||
|
||
.toggleWrapper > .spacer { | ||
@apply --layout-flex; | ||
} | ||
|
||
.toggleWrapper > paper-toggle-button { | ||
cursor: pointer; | ||
} | ||
|
||
#buttonWrapper { | ||
@apply --layout-horizontal; | ||
@apply --layout-end-justified; | ||
margin-top: 12px; | ||
} | ||
|
||
#buttonWrapper > paper-button { | ||
@apply --paper-font-button; | ||
background-color: var(--paper-indigo-500); | ||
color: var(--dark-theme-text-color); | ||
} | ||
</style> | ||
</custom-style> | ||
</head> | ||
<body> | ||
<div class="vertical-section-container centered"> | ||
<h3>Basic share-menu demo</h3> | ||
<demo-snippet> | ||
<template> | ||
<paper-input label="Title" value="{{title}}"></paper-input> | ||
<paper-textarea label="Text" value="{{text}}" rows="3" max-rows="3"></paper-textarea> | ||
<paper-input label="URL" value="{{url}}"></paper-input> | ||
<paper-input label="Via" value="{{via}}"></paper-input> | ||
<div class="toggleWrapper"> | ||
<div class="label">Hide labels</div> | ||
<div class="spacer"></div> | ||
<paper-toggle-button checked="{{hideLabels}}"></paper-toggle-button> | ||
</div> | ||
<div class="toggleWrapper"> | ||
<div class="label">Hide backdrop</div> | ||
<div class="spacer"></div> | ||
<paper-toggle-button checked="{{hideBackdrop}}"></paper-toggle-button> | ||
</div> | ||
<div id="buttonWrapper"> | ||
<paper-button raised onclick="shareMenu.share()">Share!</paper-button> | ||
</div> | ||
<dom-bind> | ||
<template> | ||
<paper-input label="Title" value="{{title}}"></paper-input> | ||
<paper-textarea label="Text" value="{{text}}" rows="3" max-rows="3"></paper-textarea> | ||
<paper-input label="URL" value="{{url}}"></paper-input> | ||
<paper-input label="Via" value="{{via}}"></paper-input> | ||
<div class="toggleWrapper"> | ||
<div class="label">Hide backdrop</div> | ||
<div class="spacer"></div> | ||
<paper-toggle-button checked="{{hideBackdrop}}"></paper-toggle-button> | ||
</div> | ||
<div id="buttonWrapper"> | ||
<paper-button raised onclick="shareMenu.share()">Share!</paper-button> | ||
</div> | ||
|
||
<share-menu id="shareMenu" title="[[title]]" text="[[text]]" url="[[url]]" via="[[via]]" hide-labels="[[hideLabels]]" without-backdrop="[[hideBackdrop]]" is-image="auto"></share-menu> | ||
<share-menu id="shareMenu" title$="[[title]]" text$="[[text]]" url$="[[url]]" via$="[[via]]" | ||
no-backdrop$="[[hideBackdrop]]" is-image$="auto"></share-menu> | ||
</template> | ||
</dom-bind> | ||
</template> | ||
</dom-bind> | ||
</template> | ||
</demo-snippet> | ||
</div> | ||
</body> | ||
</demo-snippet> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.