This repository was archived by the owner on Feb 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +49
-3
lines changed
docs/components/app-components-social
src/app/pages/docs/components/app-components-social Expand file tree Collapse file tree 9 files changed +49
-3
lines changed Original file line number Diff line number Diff line change 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
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 >
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments