Permalink
Browse files

Merge pull request #148 from fcamblor/webjars

Webjars support
  • Loading branch information...
fcamblor committed Jan 23, 2015
2 parents a516b4e + 1fce9e3 commit 986ba8cebba3b4d1bc63502311650f019d576c8b
Showing 679 changed files with 186,731 additions and 80 deletions.
View
@@ -64,6 +64,7 @@ Here is a brief summary of each module:
- `restx-specs-server`: Enables using RESTX specs as HTTP mocks (running a server serving spec files responses given spec files requests).
- `restx-factory-testing`: A module dedicated to test `restx-factory` features involving annotation processing.
- `restx-validation`: Bean validation support (based on `hibernate-validator` implementation) for POJOs BODY parameters
+- `restx-webjars`: Webjars support through urls like `/@/webjars/*`
#### MongoDB support through Jongo API:
View
@@ -159,6 +159,7 @@
<module>restx-build-shell</module>
<module>restx-specs-shell</module>
<module>restx-validation</module>
+ <module>restx-webjars</module>
</modules>
View
@@ -43,5 +43,10 @@
<artifactId>restx-core-annotation-processor</artifactId>
<version>${restx.version}</version>
</dependency>
+ <dependency>
+ <groupId>io.restx</groupId>
+ <artifactId>restx-webjars</artifactId>
+ <version>${restx.version}</version>
+ </dependency>
</dependencies>
</project>
@@ -50,11 +50,11 @@ <h1>Welcome to RESTX admin console</h1>
</div>
</div>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
- <script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.min.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular-resource.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
+ <script src="../webjars/jquery/1.9.1/jquery.min.js"></script>
+ <script src="../webjars/bootstrap/2.3.0/js/bootstrap.min.js"></script>
+ <script src="../webjars/angularjs/1.0.8/angular.min.js"></script>
+ <script src="../webjars/angularjs/1.0.8/angular-resource.min.js"></script>
+ <script src="../webjars/underscorejs/1.4.4/underscore.min.js"></script>
<script type="text/javascript">angular.module('admin', ['ngResource'])</script>
<script src="js/securityHandling.js"></script>
@@ -49,11 +49,11 @@
</div>
</div>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
- <script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.min.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular-resource.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
+ <script src="../webjars/jquery/1.9.1/jquery.min.js"></script>
+ <script src="../webjars/bootstrap/2.3.0/js/bootstrap.min.js"></script>
+ <script src="../webjars/angularjs/1.0.8/angular.min.js"></script>
+ <script src="../webjars/angularjs/1.0.8/angular-resource.min.js"></script>
+ <script src="../webjars/underscorejs/1.4.4/underscore.min.js"></script>
<script type="text/javascript">angular.module('admin', ['ngResource'])</script>
<script src="js/Spark-md5.min.js"></script>
@@ -65,11 +65,11 @@
</div>
</div>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
- <script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.min.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular-resource.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
+ <script src="../../webjars/jquery/1.9.1/jquery.min.js"></script>
+ <script src="../../webjars/bootstrap/2.3.0/js/bootstrap.min.js"></script>
+ <script src="../../webjars/angularjs/1.0.8/angular.min.js"></script>
+ <script src="../../webjars/angularjs/1.0.8/angular-resource.min.js"></script>
+ <script src="../../webjars/underscorejs/1.4.4/underscore.min.js"></script>
<script src="js/app.js"></script>
<script src="../js/securityHandling.js"></script>
@@ -66,11 +66,11 @@
</div>
</div>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
- <script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.min.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular-resource.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
+ <script src="../../webjars/jquery/1.9.1/jquery.min.js"></script>
+ <script src="../../webjars/bootstrap/2.3.0/js/bootstrap.min.js"></script>
+ <script src="../../webjars/angularjs/1.0.8/angular.min.js"></script>
+ <script src="../../webjars/angularjs/1.0.8/angular-resource.min.js"></script>
+ <script src="../../webjars/underscorejs/1.4.4/underscore.min.js"></script>
<script src="js/app.js"></script>
<script src="../js/securityHandling.js"></script>
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RESTX :: Sources</title>
<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">
- <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/codemirror.min.css">
+ <link rel="stylesheet" type="text/css" href="lib/codemirror-3.20/codemirror.min.css">
<link rel="stylesheet" type="text/css" href="../css/alertify.core.css" />
<link rel="stylesheet" type="text/css" href="../css/alertify.default.css" />
<link rel="stylesheet" type="text/css" href="../css/admin.css"/>
@@ -54,17 +54,17 @@ <h1>{{fileName}}</h1>
<textarea ng-show="!isDirectory" ui-codemirror="editorOptions" ng-model="source"></textarea>
</div>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
- <script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular.min.js"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular-resource.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/codemirror.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/mode/clike/clike.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/mode/css/css.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/mode/javascript/javascript.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/mode/xml/xml.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/mode/yaml/yaml.min.js"></script>
+ <script src="../../webjars/jquery/1.9.1/jquery.min.js"></script>
+ <script src="../../webjars/bootstrap/2.3.0/js/bootstrap.min.js"></script>
+ <script src="../../webjars/angularjs/1.2.9/angular.min.js"></script>
+ <script src="../../webjars/angularjs/1.2.9/angular-resource.min.js"></script>
+ <script src="../../webjars/underscorejs/1.4.4/underscore.min.js"></script>
+ <script src="lib/codemirror-3.20/codemirror.min.js"></script>
+ <script src="lib/codemirror-3.20/mode/clike/clike.min.js"></script>
+ <script src="lib/codemirror-3.20/mode/css/css.min.js"></script>
+ <script src="lib/codemirror-3.20/mode/javascript/javascript.min.js"></script>
+ <script src="lib/codemirror-3.20/mode/xml/xml.min.js"></script>
+ <script src="lib/codemirror-3.20/mode/yaml/yaml.min.js"></script>
<script src="js/ui-codemirror.js"></script>
<script src="../js/alertify.min.js"></script>

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 986ba8c

Please sign in to comment.