-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and now angular2-gwt the library has its own repo!
if you want to look for older commit please have a look at the hexa.tools repo which was hosting angular2-gwt in the past...
- Loading branch information
Arnaud Tournier
authored and
Arnaud Tournier
committed
Nov 24, 2016
1 parent
0ca2232
commit b09a46d
Showing
243 changed files
with
14,457 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/target/ |
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,2 @@ | ||
_site | ||
.sass-cache |
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 @@ | ||
# Change Log | ||
|
||
## [0.1.1] - 2015-12-03 | ||
- **Added** themeing styles | ||
|
||
## [0.1.0] - 2015-12-01 | ||
- **Added** base styles and jekyll files |
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,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015 Alex Carpenter | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
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,23 @@ | ||
# material-jekyll-theme | ||
[Demo](http://alexcarpenter.me/material-jekyll-theme) | ||
|
||
![Material Jekyll Theme](https://d13yacurqjgara.cloudfront.net/users/37718/screenshots/2430279/slice_1.jpg) | ||
|
||
## Getting started | ||
1. `git clone https://github.com/alexcarpenter/material-jekyll-theme.git` | ||
2. `cd material-jekyll-theme` | ||
3. Configure the `_config.yml` file as needed | ||
4. `jekyll serve` | ||
|
||
## Options | ||
Customize your options within the `_config.yml` file. | ||
|
||
+ Theme | ||
- Green | ||
- Blue | ||
- Orange | ||
- Purple | ||
- Grey | ||
+ Fixed Navigation | ||
- True | ||
- False |
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,24 @@ | ||
# Site settings | ||
title: Angular2Boot | ||
email: ltearno@gmail.com | ||
description: > | ||
Associate Angular 2 with Spring Boot | ||
to get a fully typed and responsive experience. | ||
Get your productivity back ! | ||
crafted by [LTE Consulting](http://lteconsulting.fr) | ||
baseurl: "/angular2boot" | ||
url: "http://lteconsulting.fr" | ||
fixedNav: 'true' # true or false | ||
# theme: purple # green, blue, orange, purple, grey | ||
twitterUsername: ltearno | ||
githubUsername: ltearno/hexa.tools | ||
dribbbleUsername: | ||
codepenUsername: | ||
|
||
# Build settings | ||
permalink: /:year/:month/:title | ||
markdown: kramdown | ||
include: [_pages] | ||
exclude: [_site, CHANGELOG.md, LICENSE, README.md] | ||
sass: | ||
style: compressed |
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,60 @@ | ||
# Welcome to Jekyll! | ||
# | ||
|
||
# Site settings | ||
title: Angular2Boot | ||
description: | | ||
Associate Angular 2 with Spring Boot | ||
to get a fully typed and responsive experience. | ||
Get your productivity back ! | ||
crafted by [LTE Consulting](http://lteconsulting.fr) | ||
owner: LTE Consulting | ||
first_published: 2016 # if migrating another site, the year of your first publish | ||
email: ltearno@gmail.com | ||
baseurl: "angular2boot" # the subpath of your site, e.g. /blog | ||
url: "http://lteconsulting.fr" # the base hostname & protocol for your site | ||
social: | ||
twitter: https://twitter.com/ltearno | ||
github: https://github.com/ltearno | ||
linkedin-square: https://linkedin.com/in/lte-consulting | ||
#facebook-official: https://facebook.com/<username> | ||
google-plus-square: https://plus.google.com/u/0/ltearno | ||
#email: /contact/ | ||
#flickr: | ||
#instagram: | ||
#youtube-square: | ||
#spotify: | ||
#stack-overflow: | ||
#vimeo: | ||
#reddit: | ||
#stubleupon: | ||
#delicious: | ||
#pied-piper: | ||
#digg: | ||
#soundcloud: | ||
#deviantart: | ||
#angellist: | ||
#tumblr-square: | ||
#stackexchange: | ||
#weibo: | ||
#trello: | ||
#foursquare: | ||
#linux: | ||
#bitbucket-square: | ||
#vk: | ||
#slack: | ||
#vine: | ||
#weixin: | ||
#yelp: | ||
#skyatlas: | ||
#leanpub: | ||
#connectdevelop: | ||
#ils: | ||
#forumbee: | ||
#tripadvisor: | ||
#amazon: | ||
|
||
# Build settings | ||
markdown: kramdown | ||
#sass: | ||
# style: compressed |
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,24 @@ | ||
<footer class="c-footer"> | ||
<div class="u-container c-footer__container"> | ||
<p>© {{ site.title }} {{ site.time | date: '%Y' }}</p> | ||
<p> | ||
{% if site.twitterUsername %}<a href="https://twitter.com/{{ site.twitterUsername }}">Twitter</a>{% endif %} | ||
{% if site.githubUsername %}<a href="https://github.com/{{ site.githubUsername }}">Github</a>{% endif %} | ||
{% if site.dribbbleUsername %}<a href="https://dribbble.com/{{ site.dribbbleUsername }}">Dribbble</a>{% endif %} | ||
{% if site.codepenUsername %}<a href="http://codepen.io/{{ site.codepenUsername }}">CodePen</a>{% endif %} | ||
</p> | ||
</div> | ||
</footer> | ||
|
||
<script> | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||
|
||
ga('create', 'UA-59224464-1', 'auto'); | ||
ga('send', 'pageview'); | ||
|
||
</script> | ||
|
||
<script id="dsq-count-scr" src="//lteconsulting.disqus.com/count.js" async></script> |
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,14 @@ | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title> | ||
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> | ||
|
||
<link href='https://fonts.googleapis.com/css?family=Roboto:400,400italic,700|Roboto+Mono:400,500' rel='stylesheet' type='text/css'> | ||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | ||
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}"> | ||
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"> | ||
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}"> | ||
</head> |
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,10 @@ | ||
<nav class="c-navigation {% if site.fixedNav == 'true' %}is-fixed{% endif %}"> | ||
<div class="c-navigation__container u-container"> | ||
<a class="c-navigation__item {% if page.url == '/' %}is-active{% endif %}" href="{{ "/" | prepend: site.baseurl }}">Home</a> | ||
<!--<a class="c-navigation__item {% if page.url == '/articles/' %}is-active{% endif %}" href="{{ "/articles/" | prepend: site.baseurl }}">Articles</a>--> | ||
<a class="c-navigation__item {% if page.url == '/tutorial/' %}is-active{% endif %}" href="{{ "/tutorial/" | prepend: site.baseurl }}">Get started</a> | ||
<a class="c-navigation__item {% if page.url == '/cookbook/' %}is-active{% endif %}" href="{{ "/cookbook/" | prepend: site.baseurl }}">Cookbook</a> | ||
<a class="c-navigation__item {% if page.url == '/licensing/' %}is-active{% endif %}" href="{{ "/licensing/" | prepend: site.baseurl }}">Licensing</a> | ||
<a class="c-navigation__item {% if page.url == '/about/' %}is-active{% endif %}" href="{{ "/about/" | prepend: site.baseurl }}">About</a> | ||
</div> | ||
</nav> |
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,23 @@ | ||
<div class="c-social"> | ||
<ul class="c-social__list"> | ||
<li> | ||
<h3 class="c-social__title">Google+</h3> | ||
<p class="c-social__description">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ullam, consequatur!</p> | ||
</li> | ||
|
||
<li> | ||
<h3 class="c-social__title">Google+</h3> | ||
<p class="c-social__description">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Et, quo.</p> | ||
</li> | ||
|
||
<li> | ||
<h3 class="c-social__title">Google+</h3> | ||
<p class="c-social__description">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Officia, voluptatem.</p> | ||
</li> | ||
|
||
<li> | ||
<h3 class="c-social__title">Google+</h3> | ||
<p class="c-social__description">Lorem ipsum dolor sit amet, consectetur adipisicing elit. At, rerum.</p> | ||
</li> | ||
</ul> | ||
</div> |
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,11 @@ | ||
<!DOCTYPE html> | ||
<html class="t-{{ site.theme }}"> | ||
{% include head.html %} | ||
<body> | ||
{% include navigation.html %} | ||
|
||
{{ content }} | ||
|
||
{% include footer.html %} | ||
</body> | ||
</html> |
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,34 @@ | ||
--- | ||
layout: default | ||
--- | ||
<article class="c-article"> | ||
<header class="c-header c-article__header"> | ||
<div class="u-container"> | ||
<h1 class="c-header__title">{{ page.title }}</h1> | ||
</div> | ||
</header> | ||
|
||
<div class="c-article__main"> | ||
{{ content }} | ||
</div> | ||
|
||
<div class="c-article__main"> | ||
<div id="disqus_thread"></div> | ||
</div> | ||
</article> | ||
|
||
<script> | ||
var disqus_config = function () { | ||
this.page.url = "http://lteconsulting.fr"; | ||
this.page.identifier = "{{ page.title }}"; | ||
}; | ||
(function() { | ||
var d = document, s = d.createElement('script'); | ||
|
||
s.src = '//lteconsulting.disqus.com/embed.js'; | ||
|
||
s.setAttribute('data-timestamp', +new Date()); | ||
(d.head || d.body).appendChild(s); | ||
})(); | ||
</script> | ||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript> |
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,4 @@ | ||
--- | ||
layout: page | ||
--- | ||
{{ content }} |
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,8 @@ | ||
--- | ||
layout: page | ||
title: About | ||
permalink: /about/ | ||
--- | ||
Angular2Boot is crafted with love by [LTE Consulting](http://lteconsulting.fr). | ||
|
||
If you have any remark or question, please feel free to write to [contact@lteconsulting.fr](mailto:contact@lteconsulting.fr). |
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,27 @@ | ||
--- | ||
layout: page | ||
title: Articles | ||
permalink: /articles/ | ||
--- | ||
{% for post in site.posts %} | ||
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} | ||
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %} | ||
|
||
{% if forloop.first %} | ||
<h2 class="c-archives__year" id="{{ this_year }}-ref">{{this_year}}</h2> | ||
<ul class="c-archives__list"> | ||
{% endif %} | ||
<li class="c-archives__item"> | ||
<h3><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h3> | ||
<p>{{ post.date | date: "%b %-d, %Y" }}</p> | ||
</li> | ||
{% if forloop.last %} | ||
</ul> | ||
{% else %} | ||
{% if this_year != next_year %} | ||
</ul> | ||
<h2 class="c-archives__year" id="{{ next_year }}-ref">{{next_year}}</h2> | ||
<ul class="c-archives__list"> | ||
{% endif %} | ||
{% endif %} | ||
{% endfor %} |
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,16 @@ | ||
--- | ||
layout: page | ||
title: Cookbook | ||
permalink: /cookbook/ | ||
--- | ||
|
||
# Cookbook | ||
|
||
This cookbook follows the Angular 2 [official one](https://angular.io/docs/ts/latest/cookbook/). | ||
|
||
## Topics covered | ||
|
||
- [Component interaction](../component-interaction/) | ||
- [Dependency injection](../dependency-injection/) | ||
- [Leaving and returning Angular zones](../zones/) | ||
- [GWT widgets integration](../gwt-widgets-integration/) |
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,48 @@ | ||
--- | ||
layout: page | ||
title: Dependency injection | ||
permalink: /dependency-injection/ | ||
--- | ||
|
||
# Dependency injection | ||
|
||
This page follows the structure of the official Angular 2 [article](https://angular.io/docs/ts/latest/cookbook/dependency-injection.html). | ||
|
||
## Application-wide dependencies | ||
|
||
Follow the original Angular 2 documentation. | ||
|
||
*More to come soon*. | ||
|
||
## @Injectable and nested service dependencies | ||
|
||
This page follows the Angular 2 [documentation](https://angular.io/docs/ts/latest/cookbook/dependency-injection.html). | ||
|
||
When a service in your application requires other services to be injected, it needs to be annotated with `@Injectable`. By doing so, one will be able to receive dependency injection through the constructor. The services are of course annotated with `@JsType` so that their type is seen by Angular. | ||
|
||
Here, the `UserContextService` gets the `UserService` and `LoggerService` injected : | ||
|
||
{% highlight java %} | ||
@Injectable | ||
@JsType | ||
public class UserContextService | ||
{ | ||
@JsConstructor | ||
public UserContextService( UserService userService, LoggerService loggerService ) | ||
{ | ||
// the userService and loggerService instances are injected by Angular | ||
} | ||
|
||
// ... | ||
} | ||
{% endhighlight %} | ||
|
||
Although not required, the Angular documentation recommends to systematically annotate services with `@Injectable` even if they don't get other services injected. | ||
|
||
## Limit service scope to a component subtree | ||
|
||
Follow the [official documentation](https://angular.io/docs/ts/latest/cookbook/dependency-injection.html#!#service-scope) because Angular2Boot follows exactly the same mechanism. | ||
|
||
## Qualify dependency lookup with `@Optional` and `@Host` | ||
|
||
## Inject the component's element |
Oops, something went wrong.