Moving the files around.
This commit is contained in:
37
gemp-lotr/gemp-lotr-web-server/pom.xml
Normal file
37
gemp-lotr/gemp-lotr-web-server/pom.xml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<parent>
|
||||||
|
<artifactId>gemp-lotr</artifactId>
|
||||||
|
<groupId>com.gempukku.lotro</groupId>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>com.gempukku.lotro</groupId>
|
||||||
|
<artifactId>gemp-lotr-web-server</artifactId>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
<packaging>war</packaging>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>${project.groupId}</groupId>
|
||||||
|
<artifactId>gemp-lotr-server</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>commons-lang</groupId>
|
||||||
|
<artifactId>commons-lang</artifactId>
|
||||||
|
<version>2.6</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.servlet</groupId>
|
||||||
|
<artifactId>servlet-api</artifactId>
|
||||||
|
<version>2.4</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.sun.jersey</groupId>
|
||||||
|
<artifactId>jersey-server</artifactId>
|
||||||
|
<version>1.8</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
||||||
@@ -13,6 +13,6 @@
|
|||||||
|
|
||||||
<servlet-mapping>
|
<servlet-mapping>
|
||||||
<servlet-name>jersey</servlet-name>
|
<servlet-name>jersey</servlet-name>
|
||||||
<url-pattern>/server/*</url-pattern>
|
<url-pattern>/*</url-pattern>
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
</web-app>
|
</web-app>
|
||||||
@@ -11,27 +11,4 @@
|
|||||||
<artifactId>gemp-lotr-web</artifactId>
|
<artifactId>gemp-lotr-web</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>${project.groupId}</groupId>
|
|
||||||
<artifactId>gemp-lotr-server</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>commons-lang</groupId>
|
|
||||||
<artifactId>commons-lang</artifactId>
|
|
||||||
<version>2.6</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>javax.servlet</groupId>
|
|
||||||
<artifactId>servlet-api</artifactId>
|
|
||||||
<version>2.4</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.sun.jersey</groupId>
|
|
||||||
<artifactId>jersey-server</artifactId>
|
|
||||||
<version>1.8</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</project>
|
</project>
|
||||||
@@ -362,7 +362,7 @@ body {
|
|||||||
function () {
|
function () {
|
||||||
var replay = getUrlParam("replayId");
|
var replay = getUrlParam("replayId");
|
||||||
|
|
||||||
ui = new GempLotrGameUI("/gemp-lotr/server", replay != null);
|
ui = new GempLotrGameUI("/gemp-lotr-server", replay != null);
|
||||||
|
|
||||||
$(window).resize(function() {
|
$(window).resize(function() {
|
||||||
ui.windowResized();
|
ui.windowResized();
|
||||||
|
|||||||
@@ -190,11 +190,11 @@
|
|||||||
$("#latestNews").append("<b>All sets are available to play.</b> "
|
$("#latestNews").append("<b>All sets are available to play.</b> "
|
||||||
+ "If you find any problems with specific card or rules in general, please report it <a href='http://lotrtcgdb.com/forums/index.php/topic,7592.0.html'>at the TLHH forums</a>.");
|
+ "If you find any problems with specific card or rules in general, please report it <a href='http://lotrtcgdb.com/forums/index.php/topic,7592.0.html'>at the TLHH forums</a>.");
|
||||||
|
|
||||||
chat = new ChatBoxUI("Game Hall", $("#chat"), "/gemp-lotr/server", true, null, true);
|
chat = new ChatBoxUI("Game Hall", $("#chat"), "/gemp-lotr-server", true, null, true);
|
||||||
chat.setBounds(2, 2, 780 - 4, 200 - 4);
|
chat.setBounds(2, 2, 780 - 4, 200 - 4);
|
||||||
chat.showTimestamps = true;
|
chat.showTimestamps = true;
|
||||||
|
|
||||||
hall = new GempLotrHallUI($("#hall"), "/gemp-lotr/server", chat);
|
hall = new GempLotrHallUI($("#hall"), "/gemp-lotr-server", chat);
|
||||||
|
|
||||||
$("#tabs").tabs();
|
$("#tabs").tabs();
|
||||||
|
|
||||||
@@ -284,7 +284,7 @@
|
|||||||
document.write('<li><a href="includes/leagueRules.html?_=' + (new Date().getTime()) + '">League Rules (updated)</a></li>');
|
document.write('<li><a href="includes/leagueRules.html?_=' + (new Date().getTime()) + '">League Rules (updated)</a></li>');
|
||||||
</script>
|
</script>
|
||||||
<li><a href="includes/instruction.html">Manual</a></li>
|
<li><a href="includes/instruction.html">Manual</a></li>
|
||||||
<li><a href="/gemp-lotr/server/hall/formats/html">Format Rules</a></li>
|
<li><a href="/gemp-lotr-server/hall/formats/html">Format Rules</a></li>
|
||||||
<li><a href="includes/contribute.html">Contribute</a></li>
|
<li><a href="includes/contribute.html">Contribute</a></li>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
document.write('<li><a href="includes/changeLog.html?_=' + (new Date().getTime()) + '">Change Log</a></li>');
|
document.write('<li><a href="includes/changeLog.html?_=' + (new Date().getTime()) + '">Change Log</a></li>');
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(
|
$(document).ready(
|
||||||
function () {
|
function () {
|
||||||
var ui = new GameHistoryUI("/gemp-lotr/server");
|
var ui = new GameHistoryUI("/gemp-lotr-server");
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(
|
$(document).ready(
|
||||||
function () {
|
function () {
|
||||||
var ui = new LeagueResultsUI("/gemp-lotr/server");
|
var ui = new LeagueResultsUI("/gemp-lotr-server");
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
var comm = new GempLotrCommunication("/gemp-lotr/server", function() {
|
var comm = new GempLotrCommunication("/gemp-lotr-server", function() {
|
||||||
alert("Unable to contact the server");
|
alert("Unable to contact the server");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ var GempLotrDeckBuildingUI = Class.extend({
|
|||||||
init: function() {
|
init: function() {
|
||||||
var that = this;
|
var that = this;
|
||||||
|
|
||||||
this.comm = new GempLotrCommunication("/gemp-lotr/server", that.processError);
|
this.comm = new GempLotrCommunication("/gemp-lotr-server", that.processError);
|
||||||
|
|
||||||
this.cardFilter = new CardFilter($("#collectionDiv"),
|
this.cardFilter = new CardFilter($("#collectionDiv"),
|
||||||
function(filter, start, count, callback) {
|
function(filter, start, count, callback) {
|
||||||
@@ -145,10 +145,10 @@ var GempLotrDeckBuildingUI = Class.extend({
|
|||||||
if (confirm("Do you wish to save this deck?"))
|
if (confirm("Do you wish to save this deck?"))
|
||||||
that.saveDeck(false);
|
that.saveDeck(false);
|
||||||
}, {
|
}, {
|
||||||
"404": function() {
|
"404": function() {
|
||||||
alert("Couldn't find the deck to rename on the server.");
|
alert("Couldn't find the deck to rename on the server.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -244,11 +244,11 @@ var GempLotrDeckBuildingUI = Class.extend({
|
|||||||
|
|
||||||
this.infoDialog = $("<div></div>")
|
this.infoDialog = $("<div></div>")
|
||||||
.dialog({
|
.dialog({
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
closeOnEscape: true,
|
closeOnEscape: true,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
title: "Card information"
|
title: "Card information"
|
||||||
});
|
});
|
||||||
|
|
||||||
var swipeOptions = {
|
var swipeOptions = {
|
||||||
threshold: 20,
|
threshold: 20,
|
||||||
@@ -296,14 +296,14 @@ var GempLotrDeckBuildingUI = Class.extend({
|
|||||||
if (that.deckListDialog == null) {
|
if (that.deckListDialog == null) {
|
||||||
that.deckListDialog = $("<div></div>")
|
that.deckListDialog = $("<div></div>")
|
||||||
.dialog({
|
.dialog({
|
||||||
title: "Your stored decks",
|
title: "Your stored decks",
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
closeOnEscape: true,
|
closeOnEscape: true,
|
||||||
resizable: true,
|
resizable: true,
|
||||||
width: 400,
|
width: 400,
|
||||||
height: 400,
|
height: 400,
|
||||||
modal: true
|
modal: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
that.deckListDialog.html("");
|
that.deckListDialog.html("");
|
||||||
|
|
||||||
@@ -338,7 +338,7 @@ var GempLotrDeckBuildingUI = Class.extend({
|
|||||||
deckListBut.click(
|
deckListBut.click(
|
||||||
(function(deckName) {
|
(function(deckName) {
|
||||||
return function() {
|
return function() {
|
||||||
window.open('/gemp-lotr/server/deck/html?deckName=' + encodeURIComponent(deckName), "_blank");
|
window.open('/gemp-lotr-server/deck/html?deckName=' + encodeURIComponent(deckName), "_blank");
|
||||||
};
|
};
|
||||||
})(deckName));
|
})(deckName));
|
||||||
|
|
||||||
@@ -418,14 +418,14 @@ var GempLotrDeckBuildingUI = Class.extend({
|
|||||||
if (this.selectionDialog == null) {
|
if (this.selectionDialog == null) {
|
||||||
this.selectionDialog = $("<div></div>")
|
this.selectionDialog = $("<div></div>")
|
||||||
.dialog({
|
.dialog({
|
||||||
title: "Choose one",
|
title: "Choose one",
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
closeOnEscape: true,
|
closeOnEscape: true,
|
||||||
resizable: true,
|
resizable: true,
|
||||||
width: 400,
|
width: 400,
|
||||||
height: 200,
|
height: 200,
|
||||||
modal: true
|
modal: true
|
||||||
});
|
});
|
||||||
|
|
||||||
this.selectionGroup = new NormalCardGroup(this.selectionDialog, function(card) {
|
this.selectionGroup = new NormalCardGroup(this.selectionDialog, function(card) {
|
||||||
return true;
|
return true;
|
||||||
@@ -662,10 +662,10 @@ var GempLotrDeckBuildingUI = Class.extend({
|
|||||||
that.checkDeckStatsDirty();
|
that.checkDeckStatsDirty();
|
||||||
}, that.checkDirtyInterval);
|
}, that.checkDirtyInterval);
|
||||||
}, {
|
}, {
|
||||||
"400": function() {
|
"400": function() {
|
||||||
alert("Invalid deck for getting stats.");
|
alert("Invalid deck for getting stats.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$("#deckStats").html("Deck has no Ring, Ring-bearer or all 9 sites");
|
$("#deckStats").html("Deck has no Ring, Ring-bearer or all 9 sites");
|
||||||
setTimeout(
|
setTimeout(
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ var GempLotrMerchantUI = Class.extend({
|
|||||||
init: function(cardListElem, cardFilterElem) {
|
init: function(cardListElem, cardFilterElem) {
|
||||||
var that = this;
|
var that = this;
|
||||||
|
|
||||||
this.comm = new GempLotrCommunication("/gemp-lotr/server", that.processError);
|
this.comm = new GempLotrCommunication("/gemp-lotr-server", that.processError);
|
||||||
|
|
||||||
this.cardFilter = new CardFilter(cardFilterElem,
|
this.cardFilter = new CardFilter(cardFilterElem,
|
||||||
function(filter, start, count, callback) {
|
function(filter, start, count, callback) {
|
||||||
@@ -70,20 +70,20 @@ var GempLotrMerchantUI = Class.extend({
|
|||||||
|
|
||||||
this.infoDialog = $("<div></div>")
|
this.infoDialog = $("<div></div>")
|
||||||
.dialog({
|
.dialog({
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
closeOnEscape: true,
|
closeOnEscape: true,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
title: "Card information"
|
title: "Card information"
|
||||||
});
|
});
|
||||||
|
|
||||||
this.questionDialog = $("<div></div>")
|
this.questionDialog = $("<div></div>")
|
||||||
.dialog({
|
.dialog({
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
closeOnEscape: true,
|
closeOnEscape: true,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
modal: true,
|
modal: true,
|
||||||
title: "Merchant operation"
|
title: "Merchant operation"
|
||||||
});
|
});
|
||||||
|
|
||||||
var swipeOptions = {
|
var swipeOptions = {
|
||||||
threshold: 20,
|
threshold: 20,
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
<modules>
|
<modules>
|
||||||
<module>gemp-lotr-server</module>
|
<module>gemp-lotr-server</module>
|
||||||
<module>gemp-lotr-web</module>
|
<module>gemp-lotr-web</module>
|
||||||
|
<module>gemp-lotr-web-server</module>
|
||||||
<module>gemp-lotr-logic</module>
|
<module>gemp-lotr-logic</module>
|
||||||
<module>gemp-lotr-common</module>
|
<module>gemp-lotr-common</module>
|
||||||
<module>gemp-lotr-cards</module>
|
<module>gemp-lotr-cards</module>
|
||||||
|
|||||||
Reference in New Issue
Block a user