Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 59c5ee0

Browse files
feat: add "dev" to social component
1 parent 82c7195 commit 59c5ee0

File tree

9 files changed

+49
-3
lines changed

9 files changed

+49
-3
lines changed

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
<a name="1.0.0-beta.50"></a>
2+
# [1.0.0-beta.50](https://github.com/deckgo/deckdeckgo/compare/v1.0.0-beta.49...v1.0.0-beta.50) (2019-07-13)
3+
4+
### Applications
5+
6+
* docs: v1.0.0-alpha.20 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/docs/CHANGELOG.md))
7+
8+
### Web Components
9+
10+
111
<a name="1.0.0-beta.49"></a>
2-
# [1.0.0-beta.49](https://github.com/deckgo/deckdeckgo/compare/v1.0.0-beta.49...v1.0.0-beta.49) (2019-07-11)
12+
# [1.0.0-beta.49](https://github.com/deckgo/deckdeckgo/compare/v1.0.0-beta.48-1...v1.0.0-beta.49) (2019-07-11)
313

414
### Applications
515

@@ -25,6 +35,8 @@
2535

2636
### Web Components
2737

38+
* core: v1.0.0-beta.41 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/core/CHANGELOG.md))
39+
2840
* lazy-img: v1.0.0-alpha.8 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/lazy-img/CHANGELOG.md))
2941

3042
<a name="1.0.0-beta.47"></a>

docs/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
<a name="1.0.0-alpha.20"></a>
2+
# 1.0.0-alpha.20 (2019-07-13)
3+
4+
### Features
5+
6+
* add new component social option `dev`
7+
18
<a name="1.0.0-alpha.19"></a>
29
# 1.0.0-alpha.19 (2019-07-11)
310

docs/docs/components/app-components-social/app-components-social.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ This component offers the following options which could be set using attributes:
4444
| twitter | string | | Your Twitter username. It will be concatenated automatically with `https://twitter.com/` |
4545
| linkedin | string | | Your Linkedin username. It will be concatenated automatically with `https://www.linkedin.com/in/` |
4646
| medium | string | | Your Medium username. It will be concatenated automatically with `https://medium.com/@` |
47+
| dev | string | | Your Dev username. It will be concatenated automatically with `https://dev.to/` |
4748
| github | string | | Your Github username. It will be concatenated automatically with `https://github.com/` |
4849
| fullUrl | string | | In case you would like to provide the URI of your choice |
4950

docs/src/app/pages/docs/components/app-components-social/app-components-social.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ export class AppComponentsSocial {
8787
<td>Your Medium username. It will be concatenated automatically with <code>https://medium.com/@</code></td>
8888
</tr>
8989
<tr>
90+
<td>dev</td>
91+
<td>string</td>
92+
<td></td>
93+
<td>Your Dev username. It will be concatenated automatically with <code>https://dev.to/</code></td>
94+
</tr>
95+
<tr>
9096
<td>github</td>
9197
<td>string</td>
9298
<td></td>

webcomponents/core/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
<a name="1.0.0-beta.41"></a>
2+
# 1.0.0-beta.41 (2019-06-13)
3+
4+
### Features
5+
6+
* add `dev.to` to the social component
7+
18
<a name="1.0.0-beta.40"></a>
29
# 1.0.0-beta.40 (2019-06-24)
310

webcomponents/core/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webcomponents/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@deckdeckgo/core",
3-
"version": "1.0.0-beta.40",
3+
"version": "1.0.0-beta.41",
44
"description": "Add a presentation to your web application using HTML and Web Components",
55
"module": "dist/index.mjs",
66
"main": "dist/index.js",

webcomponents/core/src/components.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ export namespace Components {
145145
'width': number;
146146
}
147147
interface DeckgoSocial {
148+
'dev': string;
148149
'fullUrl': string;
149150
'github': string;
150151
'lazyLoadContent': () => Promise<void>;
@@ -378,6 +379,7 @@ declare namespace LocalJSX {
378379
'width'?: number;
379380
}
380381
interface DeckgoSocial extends JSXBase.HTMLAttributes<HTMLDeckgoSocialElement> {
382+
'dev'?: string;
381383
'fullUrl'?: string;
382384
'github'?: string;
383385
'linkedin'?: string;

webcomponents/core/src/components/extra/deckdeckgo-social/deckdeckgo-social.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ export class DeckdeckgoSocial implements DeckdeckgoExtra {
1414
@Prop() twitter: string;
1515
@Prop() linkedin: string;
1616
@Prop() medium: string;
17+
@Prop() dev: string;
1718
@Prop() github: string;
1819
@Prop() fullUrl: string;
1920

2021
componentDidLoad() {
2122
this.concatTwitterUrl();
2223
this.concatLinkedinUrl();
2324
this.concatMediumUrl();
25+
this.concatDevUrl();
2426
this.concatGithubUrl();
2527
this.concatFullUrl();
2628
}
@@ -59,6 +61,15 @@ export class DeckdeckgoSocial implements DeckdeckgoExtra {
5961
this.url = 'https://medium.com/@' + this.medium;
6062
}
6163

64+
@Watch('dev')
65+
concatDevUrl() {
66+
if (!this.dev) {
67+
return;
68+
}
69+
70+
this.url = 'https://dev.to/' + this.dev ;
71+
}
72+
6273
@Watch('github')
6374
concatGithubUrl() {
6475
if (!this.github) {

0 commit comments

Comments
 (0)