Skip to content

Commit 6e54e43

Browse files
committed
Initial Setup.
1 parent 3e7df0e commit 6e54e43

10 files changed

+27
-28
lines changed

README.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
# <vcf-element>
2-
3-
**Note that this is a starter boilerplate for creating Polymer 3 based components.**
1+
# <vcf-avatar-item>
42

53
## Installation
64

7-
Install `vcf-element`:
5+
Install `vcf-avatar-item`:
86

97
```sh
10-
npm i @vaadin/vcf-element --save
8+
npm i @vaadin/vcf-avatar-item --save
119
```
1210

1311
Once installed, import it in your application:
1412

1513
```js
16-
import '@vaadin/vcf-element/vcf-element.js';
14+
import '@vaadin/vcf-avatar-item/vcf-avatar-item.js';
1715
```
1816

1917
## Running demo
2018

21-
1. Fork the `vcf-element` repository and clone it locally.
19+
1. Fork the `vcf-avatar-item` repository and clone it locally.
2220

2321
1. Make sure you have [npm](https://www.npmjs.com/) installed.
2422

25-
1. When in the `vcf-element` directory, run `npm install` to install dependencies.
23+
1. When in the `vcf-avatar-item` directory, run `npm install` to install dependencies.
2624

2725
1. Run `npm start` to open the demo.
2826

demo/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<head>
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
6-
<title>vcf-element demo</title>
6+
<title>vcf-avatar-item demo</title>
77
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
88
<script type="module">
99
import '@polymer/iron-demo-helpers/demo-pages-shared-styles';
1010
import '@polymer/iron-demo-helpers/demo-snippet';
11-
import '../theme/lumo/vcf-element.js';
11+
import '../theme/lumo/vcf-avatar-item.js';
1212
</script>
1313
<custom-style>
1414
<style is="custom-style" include="demo-pages-shared-styles"></style>
@@ -18,7 +18,7 @@
1818
<div class="vertical-section-container">
1919
<demo-snippet>
2020
<template>
21-
<vcf-element></vcf-element>
21+
<vcf-avatar-item></vcf-avatar-item>
2222
</template>
2323
</demo-snippet>
2424
</div>

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="refresh" content="0;url=demo/" />
6-
<title>vcf-element</title>
6+
<title>vcf-avatar-item</title>
77
</head>
88
<body>
99
<!--

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
{
2-
"name": "vcf-element",
2+
"name": "vcf-avatar-item",
33
"version": "0.1.0",
4-
"description": "Hierarchical element visualizing web component",
5-
"main": "theme/lumo/vcf-element.js",
4+
"description": "Vaadin Component Factory Avatar Item",
5+
"main": "theme/lumo/vcf-avatar-item.js",
66
"author": "Vaadin Ltd",
77
"license": "https://raw.githubusercontent.com/vaadin/vaadin-incubator-element/master/LICENSE",
88
"repository": {
99
"type": "git",
10-
"url": "vaadin-component-factory/vcf-element"
10+
"url": "vaadin-component-factory/vcf-avatar-item"
1111
},
1212
"keywords": [
1313
"Vaadin",
1414
"vaadin-incubator-element",
1515
"vaadin-component-factory",
16+
"vcf-avatar-item",
1617
"web-components",
1718
"web-component",
1819
"polymer"

src/vcf-element.js src/vcf-avatar-item.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { html, PolymerElement } from '@polymer/polymer/polymer-element';
22
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin';
33
import { ElementMixin } from '@vaadin/vaadin-element-mixin';
44

5-
class VcfElement extends ElementMixin(ThemableMixin(PolymerElement)) {
5+
class VcfAvatarItem extends ElementMixin(ThemableMixin(PolymerElement)) {
66
static get template() {
77
return html`
88
<style>
@@ -14,7 +14,7 @@ class VcfElement extends ElementMixin(ThemableMixin(PolymerElement)) {
1414
}
1515

1616
static get is() {
17-
return 'vcf-element';
17+
return 'vcf-avatar-item';
1818
}
1919

2020
static get version() {
@@ -32,4 +32,4 @@ class VcfElement extends ElementMixin(ThemableMixin(PolymerElement)) {
3232
}
3333
}
3434

35-
customElements.define(VcfElement.is, VcfElement);
35+
customElements.define(VcfAvatarItem.is, VcfAvatarItem);

test/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<script>
1212
// Load and run all tests (.html, .js):
1313
WCT.loadSuites([
14-
'vcf-element_test.html'
14+
'vcf-avatar-item_test.html'
1515
]);
1616
</script>
1717
</body>

test/vcf-element_test.html test/vcf-avatar-item_test.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
66

7-
<title>vcf-element test</title>
7+
<title>vcf-avatar-item test</title>
88

99
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
1010
<script src="../node_modules/@polymer/test-fixture/test-fixture.js"></script>
1111
<script src="../node_modules/mocha/mocha.js"></script>
1212
<script src="../node_modules/chai/chai.js"></script>
1313
<script src="../node_modules/wct-mocha/wct-mocha.js"></script>
1414

15-
<script type="module" src="../theme/lumo/vcf-element.js"></script>
15+
<script type="module" src="../theme/lumo/vcf-avatar-item.js"></script>
1616
</head>
1717
<body>
1818

1919
<test-fixture id="BasicTestFixture">
2020
<template>
21-
<vcf-element></vcf-element>
21+
<vcf-avatar-item></vcf-avatar-item>
2222
</template>
2323
</test-fixture>
2424

2525
<script type="module">
26-
suite('vcf-element', () => {
26+
suite('vcf-avatar-item', () => {
2727

2828
});
2929
</script>

theme/lumo/vcf-element-styles.js theme/lumo/vcf-avatar-item-styles.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import '@vaadin/vaadin-lumo-styles/style';
66
import '@vaadin/vaadin-lumo-styles/typography';
77

88
styleModule({
9-
themeFor: 'vcf-element',
10-
themeName: 'vcf-element-lumo',
9+
themeFor: 'vcf-avatar-item',
10+
themeName: 'vcf-avatar-item-lumo',
1111
include: 'lumo-color lumo-typography',
1212
styles: `
1313
:host {

theme/lumo/vcf-avatar-item.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import './vcf-avatar-item-styles';
2+
import '../../src/vcf-avatar-item';

theme/lumo/vcf-element.js

-2
This file was deleted.

0 commit comments

Comments
 (0)