Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
CTF
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grzegorz
CTF
Commits
7587ac1a
Commit
7587ac1a
authored
Feb 22, 2016
by
Grzegorz Pietrusza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add angular and bootstrap webjars
parent
bfccaefc
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
93 additions
and
4 deletions
+93
-4
Maven__com_bazaarvoice_dropwizard_dropwizard_webjars_bundle_0_2_1.xml
...azaarvoice_dropwizard_dropwizard_webjars_bundle_0_2_1.xml
+13
-0
Maven__org_webjars_angularjs_1_4_7.xml
.idea/libraries/Maven__org_webjars_angularjs_1_4_7.xml
+13
-0
Maven__org_webjars_bootstrap_3_3_5.xml
.idea/libraries/Maven__org_webjars_bootstrap_3_3_5.xml
+13
-0
Maven__org_webjars_jquery_2_1_4.xml
.idea/libraries/Maven__org_webjars_jquery_2_1_4.xml
+13
-0
pom.xml
service/pom.xml
+30
-0
service.iml
service/service.iml
+4
-1
CTFApplication.java
service/src/main/java/CTFApplication.java
+5
-3
index.html
service/src/main/resources/assets/index.html
+2
-0
No files found.
.idea/libraries/Maven__com_bazaarvoice_dropwizard_dropwizard_webjars_bundle_0_2_1.xml
0 → 100644
View file @
7587ac1a
<component
name=
"libraryTable"
>
<library
name=
"Maven: com.bazaarvoice.dropwizard:dropwizard-webjars-bundle:0.2.1"
>
<CLASSES>
<root
url=
"jar://$MAVEN_REPOSITORY$/com/bazaarvoice/dropwizard/dropwizard-webjars-bundle/0.2.1/dropwizard-webjars-bundle-0.2.1.jar!/"
/>
</CLASSES>
<JAVADOC>
<root
url=
"jar://$MAVEN_REPOSITORY$/com/bazaarvoice/dropwizard/dropwizard-webjars-bundle/0.2.1/dropwizard-webjars-bundle-0.2.1-javadoc.jar!/"
/>
</JAVADOC>
<SOURCES>
<root
url=
"jar://$MAVEN_REPOSITORY$/com/bazaarvoice/dropwizard/dropwizard-webjars-bundle/0.2.1/dropwizard-webjars-bundle-0.2.1-sources.jar!/"
/>
</SOURCES>
</library>
</component>
\ No newline at end of file
.idea/libraries/Maven__org_webjars_angularjs_1_4_7.xml
0 → 100644
View file @
7587ac1a
<component
name=
"libraryTable"
>
<library
name=
"Maven: org.webjars:angularjs:1.4.7"
>
<CLASSES>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/webjars/angularjs/1.4.7/angularjs-1.4.7.jar!/"
/>
</CLASSES>
<JAVADOC>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/webjars/angularjs/1.4.7/angularjs-1.4.7-javadoc.jar!/"
/>
</JAVADOC>
<SOURCES>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/webjars/angularjs/1.4.7/angularjs-1.4.7-sources.jar!/"
/>
</SOURCES>
</library>
</component>
\ No newline at end of file
.idea/libraries/Maven__org_webjars_bootstrap_3_3_5.xml
0 → 100644
View file @
7587ac1a
<component
name=
"libraryTable"
>
<library
name=
"Maven: org.webjars:bootstrap:3.3.5"
>
<CLASSES>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/webjars/bootstrap/3.3.5/bootstrap-3.3.5.jar!/"
/>
</CLASSES>
<JAVADOC>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/webjars/bootstrap/3.3.5/bootstrap-3.3.5-javadoc.jar!/"
/>
</JAVADOC>
<SOURCES>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/webjars/bootstrap/3.3.5/bootstrap-3.3.5-sources.jar!/"
/>
</SOURCES>
</library>
</component>
\ No newline at end of file
.idea/libraries/Maven__org_webjars_jquery_2_1_4.xml
0 → 100644
View file @
7587ac1a
<component
name=
"libraryTable"
>
<library
name=
"Maven: org.webjars:jquery:2.1.4"
>
<CLASSES>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/webjars/jquery/2.1.4/jquery-2.1.4.jar!/"
/>
</CLASSES>
<JAVADOC>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/webjars/jquery/2.1.4/jquery-2.1.4-javadoc.jar!/"
/>
</JAVADOC>
<SOURCES>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/webjars/jquery/2.1.4/jquery-2.1.4-sources.jar!/"
/>
</SOURCES>
</library>
</component>
\ No newline at end of file
service/pom.xml
View file @
7587ac1a
...
...
@@ -60,5 +60,35 @@
<artifactId>
dropwizard-assets
</artifactId>
<version>
0.9.0
</version>
</dependency>
<dependency>
<groupId>
org.webjars
</groupId>
<artifactId>
jquery
</artifactId>
<version>
2.1.4
</version>
</dependency>
<dependency>
<groupId>
org.webjars
</groupId>
<artifactId>
bootstrap
</artifactId>
<version>
3.3.5
</version>
</dependency>
<dependency>
<groupId>
org.webjars
</groupId>
<artifactId>
angularjs
</artifactId>
<version>
1.4.7
</version>
</dependency>
<dependency>
<groupId>
com.bazaarvoice.dropwizard
</groupId>
<artifactId>
dropwizard-webjars-bundle
</artifactId>
<version>
0.2.1
</version>
<exclusions>
<exclusion>
<artifactId>
io.dropwizard
</artifactId>
<groupId>
dropwizard-core
</groupId>
</exclusion>
<exclusion>
<artifactId>
guava
</artifactId>
<groupId>
com.google.guava
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
\ No newline at end of file
service/service.iml
View file @
7587ac1a
...
...
@@ -14,7 +14,6 @@
<orderEntry
type=
"library"
name=
"org.mongodb:mongo-java-driver:3.1.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"org.mongolink:mongolink:1.2.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"dropwizard-auth-0.9.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.dropwizard:dropwizard-assets:0.9.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.dropwizard:dropwizard-core:0.9.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.dropwizard:dropwizard-util:0.9.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.fasterxml.jackson.core:jackson-annotations:2.6.0"
level=
"project"
/>
...
...
@@ -99,5 +98,9 @@
<orderEntry
type=
"library"
name=
"Maven: commons-logging:commons-logging:1.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: commons-codec:commons-codec:1.9"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.dropwizard:dropwizard-assets:0.9.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.webjars:jquery:2.1.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.webjars:bootstrap:3.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.webjars:angularjs:1.4.7"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.bazaarvoice.dropwizard:dropwizard-webjars-bundle:0.2.1"
level=
"project"
/>
</component>
</module>
\ No newline at end of file
service/src/main/java/CTFApplication.java
View file @
7587ac1a
import
api.ProxyResource
;
import
api.TasksResource
;
import
api.TeamsResource
;
import
com.bazaarvoice.dropwizard.webjars.WebJarBundle
;
import
com.google.common.base.Optional
;
import
com.google.inject.AbstractModule
;
import
com.google.inject.Guice
;
...
...
@@ -25,6 +26,7 @@ import repositories.TeamsRepository;
import
repositories.UsersRepository
;
import
java.util.UUID
;
import
java.util.stream.Stream
;
/**
* Created by gpietrus on 16.02.16.
...
...
@@ -38,9 +40,9 @@ public class CTFApplication extends Application<ApplicationConfiguration> {
public
void
initialize
(
final
Bootstrap
<
ApplicationConfiguration
>
bootstrap
)
{
bootstrap
.
addBundle
(
new
AssetsBundle
(
"/assets"
,
"/page"
,
"index.html"
));
//
Stream.of("org.webjars.npm", "org.webjars.bower")
//
.map(WebJarBundle::new)
//
.forEach(bootstrap::addBundle);
Stream
.
of
(
"org.webjars.npm"
,
"org.webjars.bower"
)
.
map
(
WebJarBundle:
:
new
)
.
forEach
(
bootstrap:
:
addBundle
);
}
@Override
...
...
service/src/main/resources/assets/index.html
View file @
7587ac1a
...
...
@@ -3,6 +3,8 @@
<head>
<meta
charset=
"UTF-8"
>
<title>
CTF
</title>
<link
rel=
"stylesheet"
href=
"/webjars/bootstrap/css/bootstrap.min.css"
>
<script
type=
"text/javascript"
src=
"/webjars/angularjs/angular.min.js"
></script>
</head>
<body>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment