diff --git a/README.md b/README.md index 69a658c..d545a7f 100644 --- a/README.md +++ b/README.md @@ -8,26 +8,30 @@ Gwent-Online is an open-source project of the card-game Gwent. ##- Requirements - [node.js](https://nodejs.org/) installed - [GraphicsMagick](http://www.graphicsmagick.org) installed (for generating sprites) +- Any Webserver like xampp, wamp, lamp etc ##- Build +Make sure to clone the project in your webserver root folder, otherwise you won't be able to access your client later. +The root folder is often called 'www' or 'htdocs', but depends on your installed webserver. ```git -cd ~/myProjectDirectory -git clone https://github.com/exane/gwent.git -cd gwent +cd ~/myWebserverRoot +git clone https://github.com/exane/not-gwent-online +cd not-gwent-online npm install -npm run gulp +npm run build ``` + ##- Config - go to /public and open Config.js - change hostname to your address. (e.g., "192.168.123.1")
Make sure you don't have a trailing slash after your IP or address. (e.g., "192.168.123.1/") -- If you have to change port then make sure you change the port on your server as well.
You find the server port in /server/server.js on line #18 "app.listen(#port)"; +- If you have to change the port then make sure you change the port on your server as well.
You find the server port in /server/server.js on line #18 "app.listen(#port)"; ##- Start Server ``` -cd ~/myProjectDirectory/gwent +cd ~/myProjectDirectory/not-gwent-online node server/server.js ``` ##- Start Client -- Open your browser and go to "192.168.123.1/gwent/public" or wherever you saved your project. +- Open your browser and go to "192.168.123.1/not-gwent-online/public" or wherever you saved your project. diff --git a/gulpfile.js b/gulpfile.js index ca16103..653a5f5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -10,60 +10,63 @@ var imagemin = require('gulp-imagemin'); var gm = require("gulp-gm"); var sprity = require("sprity"); var gulpif = require("gulp-if"); -livereload({start: true}); +var argv = require("minimist")(process.argv.slice(2)); +var rename = require("gulp-rename"); +//livereload({start: true}); //fast install //npm i --save-dev browserify vinyl-source-stream babelify gulp-livereload gulp gulp-sass -gulp.task('browserify', function(){ +gulp.task('browserify', function() { browserify('./client/js/main.js', {standalone: "app", debug: true}) - .transform(handlebars).on("error", function(err){ + .transform(handlebars).on("error", function(err) { console.log(err); }) .transform(babelify) - .bundle().on("error", function(err){ + .bundle().on("error", function(err) { console.log(err); }) - .pipe(source('app.js').on("error", function(err){ + .pipe(source('app.js').on("error", function(err) { console.log(err); })) - .pipe(gulp.dest('./public/build/').on("error", function(err){ + .pipe(gulp.dest('./public/build/').on("error", function(err) { console.log(err); })); }); -gulp.task('sass', function(){ +gulp.task('sass', function() { gulp.src('./client/scss/main.scss') .pipe(sass({ outputStyle: 'compressed' - }).on("error", function(err){ + }).on("error", function(err) { console.log(err); })) - .pipe(gulp.dest('./public/build/').on("error", function(err){ + .pipe(gulp.dest('./public/build/').on("error", function(err) { console.log(err); })) - .pipe(livereload().on("error", function(err){ + .pipe(livereload().on("error", function(err) { console.log(err); })); }); -gulp.task("unit tests", function(){ +gulp.task("unit tests", function() { browserify('./test/src/mainSpec.js', {standalone: "app", debug: true}) .transform(babelify) - .bundle().on("error", function(err){ + .bundle().on("error", function(err) { console.log(err); }) - .pipe(source('spec.js').on("error", function(err){ + .pipe(source('spec.js').on("error", function(err) { console.log(err); })) - .pipe(gulp.dest('./test/spec/').on("error", function(err){ + .pipe(gulp.dest('./test/spec/').on("error", function(err) { console.log(err); })); }) -gulp.task("watch", function(){ +gulp.task("watch", function() { + if(argv.production) return; gulp.watch("./client/js/*", ["browserify"]); gulp.watch("./client/templates/*", ["browserify"]); gulp.watch("./client/scss/*", ["sass"]); @@ -72,7 +75,7 @@ gulp.task("watch", function(){ }) -gulp.task("index", function(){ +gulp.task("index", function() { gulp.src("./client/index.html") .pipe(gulp.dest("./public/")); @@ -80,54 +83,53 @@ gulp.task("index", function(){ .pipe(gulp.dest("./public/build")); }) -gulp.task('resize sm', function(done){ - if(fs.existsSync(__dirname + "/assets/cards/sm/monster/arachas1.png")){ +gulp.task('resize sm', function(done) { + if(fs.existsSync(__dirname + "/assets/cards/sm/monster/arachas1.png")) { console.log("skip generating sm images"); return done(); } return gulp.src('./assets/original_cards/**/*.png') - .pipe(gm(function(gmfile){ + .pipe(gm(function(gmfile) { return gmfile.resize(null, 120); })) .pipe(imagemin()) .pipe(gulp.dest('./assets/cards/sm/')); }); -gulp.task('resize md', function(done){ - if(fs.existsSync(__dirname + "/assets/cards/md/monster/arachas1.png")){ +gulp.task('resize md', function(done) { + if(fs.existsSync(__dirname + "/assets/cards/md/monster/arachas1.png")) { console.log("skip generating md images"); return done(); } return gulp.src('./assets/original_cards/**/*.png') - .pipe(gm(function(gmfile){ + .pipe(gm(function(gmfile) { return gmfile.resize(null, 284); })) .pipe(imagemin()) .pipe(gulp.dest('./assets/cards/md/')); }); -gulp.task('resize lg', ["resize sm", "resize md"], function(done){ - if(fs.existsSync(__dirname + "/assets/cards/lg/monster/arachas1.png")){ +gulp.task('resize lg', ["resize sm", "resize md"], function(done) { + if(fs.existsSync(__dirname + "/assets/cards/lg/monster/arachas1.png")) { console.log("skip generating lg images"); return done(); } return gulp.src('./assets/original_cards/**/*.png') - .pipe(gm(function(gmfile){ + .pipe(gm(function(gmfile) { return gmfile.resize(null, 450); })) .pipe(imagemin()) .pipe(gulp.dest('./assets/cards/lg/')); }); -gulp.task("sprite", ["resize lg"], function(){ - if(fs.existsSync(__dirname + "/public/build/cards-lg-monster.png")){ - console.log("skip sprite generating"); +gulp.task("generate sprites", ["resize lg"], function() { + if(fs.existsSync(__dirname + "/public/build/cards-lg-monster.png")) { + console.log("skip sprite generation"); return; } - console.log("start sprite generating ..."); - sprity.src({ + return sprity.src({ src: "./assets/cards/**/*.png", style: "cards.css", //"style-type": "scss", @@ -141,9 +143,12 @@ gulp.task("sprite", ["resize lg"], function(){ margin: 0 //template: "./client/scss/_cards.hbs" }) - //.pipe(gulpif("*.png", gulp.dest("./public/build/"), gulp.dest("./client/scss/"))); .pipe(imagemin()) + .pipe(gulpif("*.png", rename({ + extname: ".PNG" + }))) .pipe(gulp.dest("./public/build/")); }) -gulp.task("default", ["watch", "browserify", "sass", "unit tests", "index", "resize lg", "resize sm", "resize md", "sprite"]); + +gulp.task("default", ["watch", "browserify", "sass", "unit tests", "index", "resize lg", "resize sm", "resize md", "generate sprites"]); diff --git a/package.json b/package.json index 12d12b9..28b24c1 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "dependencies": { "connect": "3.0.1", "express": "4.12.3", + "gulp-rename": "^1.2.2", "jquery-deferred": "^0.3.0", "minimist": "1.1.0", "serve-static": "1.8.0", @@ -33,20 +34,22 @@ "vinyl-source-stream": "^1.1.0" }, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "gulp": "gulp" + "gulp": "gulp", + "build": "gulp --production" }, - "repository" : { - "type" : "git" - , "url" : "https://github.com/exane/gwent" + "repository": { + "type": "git", + "url": "https://github.com/exane/not-gwent-online" }, "author": { "name": "Tim Meier", "email": "raco0n@gmx.de" }, - "contributors": [{ + "contributors": [ + { "name": "Viktor Geringer", "email": "devfakeplus@googlemail.com" - }], + } + ], "license": "MIT" } diff --git a/server/Battle.js b/server/Battle.js index fe8a027..2744819 100644 --- a/server/Battle.js +++ b/server/Battle.js @@ -3,7 +3,7 @@ var Card = require("./Card"); var Deck = require("./Deck"); var shortid = require("shortid"); var Promise = require("jquery-deferred"); -var CardManager = require("./CardManager") +var CardManager = require("./CardManager"); var Battle = (function(){ diff --git a/server/Battleside.js b/server/Battleside.js index ec4283d..ec501c2 100644 --- a/server/Battleside.js +++ b/server/Battleside.js @@ -8,9 +8,9 @@ var Promise = require("jquery-deferred"); var Battleside; -Battleside = (function(){ - var Battleside = function(user, n, battle){ - if(!(this instanceof Battleside)){ +Battleside = (function() { + var Battleside = function(user, n, battle) { + if(!(this instanceof Battleside)) { return (new Battleside(user, n, battle)); } /** @@ -42,9 +42,7 @@ Battleside = (function(){ this.off = this.battle.off.bind(this.battle); - - - this.receive("activate:leader", function(){ + this.receive("activate:leader", function() { if(self._isWaiting) return; if(self.isPassing()) return; @@ -60,13 +58,13 @@ Battleside = (function(){ leaderCard.setDisabled(true); self.battle.sendNotification(self.getName() + " activated " + leaderCard.getName() + "! (leadercard)"); self.update(); - if(ability.waitResponse){ + if(ability.waitResponse) { return; } //self.runEvent("NextTurn", null, [self.foe]); self.endTurn(); }) - this.receive("play:cardFromHand", function(data){ + this.receive("play:cardFromHand", function(data) { if(self._isWaiting) return; if(self.isPassing()) return; var cardID = data.id; @@ -74,7 +72,7 @@ Battleside = (function(){ self.playCard(card); }) - this.receive("decoy:replaceWith", function(data){ + this.receive("decoy:replaceWith", function(data) { if(self._isWaiting) return; var card = self.findCardOnFieldByID(data.cardID); /*if(card === -1) throw new Error("decoy:replace | unknown card");*/ @@ -86,10 +84,10 @@ Battleside = (function(){ } self.runEvent("Decoy:replaceWith", self, [card]); }) - this.receive("cancel:decoy", function(){ + this.receive("cancel:decoy", function() { self.off("Decoy:replaceWith"); }) - this.receive("set:passing", function(){ + this.receive("set:passing", function() { self.setPassing(true); self.update(); @@ -97,8 +95,8 @@ Battleside = (function(){ //self.runEvent("NextTurn", null, [self.foe]); self.endTurn(); }) - this.receive("medic:chooseCardFromDiscard", function(data){ - if(!data){ + this.receive("medic:chooseCardFromDiscard", function(data) { + if(!data) { //self.runEvent("NextTurn", null, [self.foe]); self.endTurn(); @@ -117,8 +115,8 @@ Battleside = (function(){ self.playCard(card); }) - this.receive("emreis_leader4:chooseCardFromDiscard", function(data){ - if(!data){ + this.receive("emreis_leader4:chooseCardFromDiscard", function(data) { + if(!data) { self.endTurn(); self.sendNotificationTo(self.foe, self.getName() + " takes no card from your discard pile (or there wasn't any card to choose)"); //self.runEvent("NextTurn", null, [self.foe]); @@ -142,7 +140,7 @@ Battleside = (function(){ self.endTurn(); // self.runEvent("NextTurn", null, [self.foe]); }) - this.receive("agile:field", function(data){ + this.receive("agile:field", function(data) { var fieldType = data.field; if(!(fieldType in [0, 1])) throw new Error("set field agile: false fieldtype " + fieldType); self.runEvent("agile:setField", null, [fieldType]); @@ -150,10 +148,10 @@ Battleside = (function(){ self.endTurn(); //self.runEvent("NextTurn", null, [self.foe]); }) - this.receive("cancel:agile", function(){ + this.receive("cancel:agile", function() { self.off("agile:setField"); }) - this.receive("horn:field", function(data){ + this.receive("horn:field", function(data) { var fieldType = data.field; if(!(fieldType in [0, 1, 2])) throw new Error("set field horn: false fieldtype " + fieldType); self.runEvent("horn:setField", null, [fieldType]); @@ -161,7 +159,7 @@ Battleside = (function(){ self.endTurn(); //self.runEvent("NextTurn", null, [self.foe]); }) - this.receive("cancel:horn", function(){ + this.receive("cancel:horn", function() { self.off("horn:setField"); }) @@ -194,23 +192,23 @@ Battleside = (function(){ r.battle = null; r.deck = null; - r.createCard = function(key){ + r.createCard = function(key) { return this.cm.create(key, this.n); } - r.isPassing = function(){ + r.isPassing = function() { return this._passing; } - r.isWaiting = function(){ + r.isWaiting = function() { return this._isWaiting; } - r.setUpWeatherFieldWith = function(p2){ + r.setUpWeatherFieldWith = function(p2) { this.field[Card.TYPE.WEATHER] = p2.field[Card.TYPE.WEATHER] = Field(this); } - r.findCardOnFieldByID = function(id){ + r.findCardOnFieldByID = function(id) { for(var key in this.field) { var field = this.field[key]; var card = field.getCard(id); @@ -224,7 +222,7 @@ Battleside = (function(){ return -1; } - r.getRandomCardOnField = function(){ + r.getRandomCardOnField = function() { var allCards = this.getFieldCards(); var rnd = (Math.random() * allCards.length) | 0; @@ -232,7 +230,7 @@ Battleside = (function(){ return allCards[rnd]; } - r.getCardFromDiscard = function(id){ + r.getCardFromDiscard = function(id) { for(var i = 0; i < this._discard.length; i++) { var c = this._discard[i]; if(c.getID() === id) return c; @@ -240,7 +238,7 @@ Battleside = (function(){ return -1; } - r.getFieldCards = function(){ + r.getFieldCards = function() { var close, range, siege; close = this.field[Card.TYPE.CLOSE_COMBAT].get(); @@ -250,22 +248,22 @@ Battleside = (function(){ return close.concat(range.concat(siege)); } - r.setPassing = function(b){ + r.setPassing = function(b) { this._passing = b; this.send("set:passing", {passing: this._passing}, true); } - r.wait = function(){ + r.wait = function() { this._isWaiting = true; this.send("set:waiting", {waiting: this._isWaiting}, true); } - r.turn = function(){ + r.turn = function() { this._isWaiting = false; this.send("set:waiting", {waiting: this._isWaiting}, true); } - r.setLeadercard = function(){ + r.setLeadercard = function() { var leaderCard = this.deck.find("type", Card.TYPE.LEADER); this.deck.removeFromDeck(leaderCard[0]); /* @@ -273,22 +271,22 @@ Battleside = (function(){ this.field[Card.TYPE.LEADER].add(leaderCard[0]); } - r.getLeader = function(){ + r.getLeader = function() { return this.field[Card.TYPE.LEADER].get()[0]; } - r.getID = function(){ + r.getID = function() { return this.n; } - r.draw = function(times){ + r.draw = function(times) { while(times--) { var card = this.deck.draw(); this.hand.add(card); } } - r.calcScore = function(){ + r.calcScore = function() { var score = 0; for(var key in this.field) { score += +this.field[key].getScore(); @@ -296,7 +294,7 @@ Battleside = (function(){ return this._score = score; } - r.getInfo = function(){ + r.getInfo = function() { return { name: this.getName(), lives: this._rubies, @@ -308,43 +306,43 @@ Battleside = (function(){ } } - r.getRubies = function(){ + r.getRubies = function() { return this._rubies; } - r.getScore = function(){ + r.getScore = function() { return +this.calcScore(); } - r.removeRuby = function(){ + r.removeRuby = function() { this._rubies--; } - r.getName = function(){ + r.getName = function() { return this._name; } - r.send = function(event, msg, isPrivate){ + r.send = function(event, msg, isPrivate) { msg = msg || {}; isPrivate = typeof isPrivate === "undefined" ? false : isPrivate; msg._roomSide = this.n; - if(isPrivate){ + if(isPrivate) { return this.socket.emit(event, msg); } this.battle.send(event, msg); } - r.receive = function(event, cb){ + r.receive = function(event, cb) { this.socket.on(event, cb); } - r.update = function(self){ + r.update = function(self) { self = self || false; this.runEvent("Update", null, [self]); } - r.onTurnStart = function(){ + r.onTurnStart = function() { this.foe.wait(); this.turn(); @@ -353,7 +351,7 @@ Battleside = (function(){ }; - r.playCard = function(card){ + r.playCard = function(card) { if(card === null || card === -1) return; if(this.isWaiting()) return; if(this.isPassing()) return; @@ -369,27 +367,27 @@ Battleside = (function(){ this.endTurn(); } - r.endTurn = function(){ + r.endTurn = function() { this.update(); this.runEvent("NextTurn", null, [this.foe]); } - r.placeCard = function(card, obj){ + r.placeCard = function(card, obj) { obj = _.extend({}, obj); - if(typeof card === "string"){ + if(typeof card === "string") { //card = Card(card); card = this.createCard(card); } this.checkAbilities(card, obj); - if(obj._cancelPlacement && !obj.forceField){ + if(obj._cancelPlacement && !obj.forceField) { //this.battle.sendNotification(this.getName() + " played " + card.getName() + "!"); return 0; } - if(obj._nextTurn && !obj.forceField){ + if(obj._nextTurn && !obj.forceField) { this.update(); //this.runEvent("NextTurn", null, [this.foe]); this.endTurn(); @@ -398,14 +396,14 @@ Battleside = (function(){ var field = obj.forceField || null; - if(typeof obj.isHorn !== "undefined"){ - if(!field){ + if(typeof obj.isHorn !== "undefined") { + if(!field) { field = obj.targetSide.field[obj.isHorn]; } field.add(card, true); } else { - if(!field){ + if(!field) { field = obj.targetSide.field[card.getType()]; } @@ -418,7 +416,7 @@ Battleside = (function(){ this.checkAbilityOnAfterPlace(card, obj); - if(obj._waitResponse){ + if(obj._waitResponse) { this.hand.remove(card); this.update(); return 0; @@ -429,17 +427,17 @@ Battleside = (function(){ return 1; } - r.setHorn = function(card, field){ + r.setHorn = function(card, field) { var self = this; field = typeof field === "undefined" ? null : field; - if(typeof card === "string"){ + if(typeof card === "string") { //card = Card(card); //card = this.cm.create(card); card = this.createCard(card); } - if(typeof field === "number"){ + if(typeof field === "number") { card.changeType(field); this.placeCard(card, { isHorn: field, @@ -450,7 +448,7 @@ Battleside = (function(){ } this.send("played:horn", {cardID: card.getID()}, true) - this.on("horn:setField", function(type){ + this.on("horn:setField", function(type) { self.off("horn:setField"); card.changeType(type); self.placeCard(card, { @@ -463,17 +461,17 @@ Battleside = (function(){ }) } - r.commanderHornAbility = function(card){ + r.commanderHornAbility = function(card) { var field = this.field[card.getType()]; var id = "commanders_horn"; - if(typeof field === "undefined"){ + if(typeof field === "undefined") { //console.log("field unknown | %s", card.getName()); return; } - if(!field.isOnField(card)){ - field.get().forEach(function(_card){ + if(!field.isOnField(card)) { + field.get().forEach(function(_card) { if(_card.getID() === id) return; if(_card.getID() === card.getID()) return; if(_card.getType() !== card.getType()) return; @@ -484,7 +482,7 @@ Battleside = (function(){ return; } - field.get().forEach(function(_card){ + field.get().forEach(function(_card) { if(_card.getID() === id) return; if(_card.getID() === card.getID()) return; if(_card.getType() != card.getType()) return; @@ -494,9 +492,10 @@ Battleside = (function(){ }) } - r.setTightBond = function(card){ - var field = this.field[card.getType()];/* - var pos = field.getPosition(card);*/ + r.setTightBond = function(card) { + var field = this.field[card.getType()]; + /* + var pos = field.getPosition(card);*/ var cards = field.get(); card.resetTightBond(); @@ -504,7 +503,7 @@ Battleside = (function(){ cards.forEach(function(c) { if(c.getID() === card.getID()) return; if(c.getName() !== card.getName()) return; - card.setBoost(card.getID() + "|tight_bond|"+c.getID(), "tight_bond"); + card.setBoost(card.getID() + "|tight_bond|" + c.getID(), "tight_bond"); }); /*if(pos < 0) return; @@ -523,13 +522,13 @@ Battleside = (function(){ }*/ } - r.checkAbilities = function(card, obj, __flag){ + r.checkAbilities = function(card, obj, __flag) { var self = this; obj.targetSide = this; if(obj.disabled) return; var ability = Array.isArray(__flag) ? __flag : card.getAbility(); - if(Array.isArray(ability) && ability.length){ + if(Array.isArray(ability) && ability.length) { var ret = ability.slice(); ret.splice(0, 1); this.checkAbilities(card, obj, ret); @@ -540,56 +539,56 @@ Battleside = (function(){ //this.update(); }*/ - if(ability && !Array.isArray(ability)){ + if(ability && !Array.isArray(ability)) { - if(ability.onBeforePlace){ + if(ability.onBeforePlace) { ability.onBeforePlace.apply(this, [card]); } - if(ability.isCommandersHornCard && typeof obj.isHorn === "undefined"){ + if(ability.isCommandersHornCard && typeof obj.isHorn === "undefined") { this.setHorn(card); } - if(ability.commandersHorn){ + if(ability.commandersHorn) { ability.onEachCardPlace = this.commanderHornAbility; ability.onWeatherChange = this.commanderHornAbility; } - if(ability.cancelPlacement && !obj.forcePlace){ + if(ability.cancelPlacement && !obj.forcePlace) { obj._cancelPlacement = true; } - if(ability.nextTurn){ + if(ability.nextTurn) { obj._nextTurn = ability.nextTurn; } - if(ability.tightBond){ + if(ability.tightBond) { //this.setTightBond(card); ability.onAfterPlace = this.setTightBond; ability.onEachCardPlace = this.setTightBond; //ability.onWeatherChange = this.setTightBond; } - if(ability.scorch){ + if(ability.scorch) { this.scorch(card); } - if(ability.scorchMelee){ + if(ability.scorchMelee) { this.scorchMelee(card); } - if(ability.removeImmediately){ + if(ability.removeImmediately) { this.hand.remove(card); this.addToDiscard(card); } - if(ability.waitResponse && !obj.forcePlace){ + if(ability.waitResponse && !obj.forcePlace) { obj._waitResponse = true; } - if(ability.changeSide){ + if(ability.changeSide) { obj.targetSide = this.foe; } - if(typeof ability.weather !== "undefined"){ + if(typeof ability.weather !== "undefined") { ability.onEachTurn = this.setWeather.bind(this, ability.weather); ability.onEachCardPlace = this.setWeather.bind(this, ability.weather); } - if(ability.replaceWith && !obj.forcePlace){ + if(ability.replaceWith && !obj.forcePlace) { obj._cancelPlacement = true; - this.on("Decoy:replaceWith", function(replaceCard){ + this.on("Decoy:replaceWith", function(replaceCard) { if(replaceCard.getType() == Card.TYPE.LEADER || - replaceCard.getType() == Card.TYPE.WEATHER || - replaceCard.getType() == Card.TYPE.SPECIAL){ + replaceCard.getType() == Card.TYPE.WEATHER || + replaceCard.getType() == Card.TYPE.SPECIAL) { return; } if(replaceCard.getName() === card.getName()) return; @@ -610,15 +609,15 @@ Battleside = (function(){ self.battle.sendNotification(self.getName() + " played Decoy!"); }) } - if(ability.onEachTurn){ + if(ability.onEachTurn) { var uid = this.on("EachTurn", ability.onEachTurn, this, [card]) card._uidEvents["EachTurn"] = uid; } - if(ability.onEachCardPlace){ + if(ability.onEachCardPlace) { var uid = this.on("EachCardPlace", ability.onEachCardPlace, this, [card]); card._uidEvents["EachCardPlace"] = uid; } - if(ability.onWeatherChange){ + if(ability.onWeatherChange) { var uid = this.on("WeatherChange", ability.onWeatherChange, this, [card]); card._uidEvents["WeatherChange"] = uid; } @@ -628,29 +627,29 @@ Battleside = (function(){ } } - r.checkAbilityOnAfterPlace = function(card, obj, __flag){ + r.checkAbilityOnAfterPlace = function(card, obj, __flag) { //var ability = card.getAbility(); var ability = Array.isArray(__flag) ? __flag : card.getAbility(); - if(Array.isArray(ability) && ability.length){ + if(Array.isArray(ability) && ability.length) { var ret = ability.slice(); ret.splice(0, 1); this.checkAbilityOnAfterPlace(card, obj, ret); ability = ability[0]; } - if(ability && !Array.isArray(ability)){ - if(ability.name && ability.name === obj.suppress){ + if(ability && !Array.isArray(ability)) { + if(ability.name && ability.name === obj.suppress) { //this.update(); return; } - if(ability.onAfterPlace){ + if(ability.onAfterPlace) { ability.onAfterPlace.call(this, card) } } } - r.setWeather = function(weather, opt){ + r.setWeather = function(weather, opt) { var targetRow = weather; var field; if(typeof targetRow === "undefined") { @@ -662,8 +661,8 @@ Battleside = (function(){ var onRoundEnd = opt.onTurnEnd || false; - if(targetRow === Card.TYPE.WEATHER){ - if(!onRoundEnd){ + if(targetRow === Card.TYPE.WEATHER) { + if(!onRoundEnd) { this.battle.sendNotification(this.getName() + " played Clear Weather!"); } field = this.field[targetRow]; @@ -675,7 +674,7 @@ Battleside = (function(){ _field2 = this.foe.field[i].get(); _field = _field1.concat(_field2); - _field.forEach(function(_card){ + _field.forEach(function(_card) { if(_card.hasAbility("hero")) return; _card.setForcedPower(-1); }); @@ -685,7 +684,7 @@ Battleside = (function(){ } var forcedPower = 1; - if(typeof targetRow === "undefined"){ + if(typeof targetRow === "undefined") { console.trace(this); } var field1 = this.field[targetRow].get(); @@ -693,20 +692,20 @@ Battleside = (function(){ field = field1.concat(field2); - field.forEach(function(_card){ + field.forEach(function(_card) { if(_card.hasAbility("hero")) return; _card.setForcedPower(forcedPower); }); this.runEvent("WeatherChange"); } - r.scorchMelee = function(card){ + r.scorchMelee = function(card) { var side = this.foe; var field = side.field[Card.TYPE.CLOSE_COMBAT]; this.battle.sendNotification(this.getName() + " played " + card.getName()); - if(field.getScore() < 10){ + if(field.getScore() < 10) { this.battle.sendNotification("Scorch: Score is under 10! Nothing happens."); return; } @@ -726,7 +725,7 @@ Battleside = (function(){ side.addToDiscard(removeCards); } - r.scorch = function(card){/* + r.scorch = function(card) {/* var side = this.foe; var field = side.field[Card.TYPE.CLOSE_COMBAT]; var cards = field.getHighestCards(true); @@ -740,19 +739,19 @@ Battleside = (function(){ this.battle.sendNotification(this.getName() + " played " + card.getName()); - cards.forEach(function(card){ + cards.forEach(function(card) { if(noHeroes && card.hasAbility("hero")) return; highest = card.getPower() > highest ? card.getPower() : highest; }) - cards.forEach(function(card){ + cards.forEach(function(card) { if(noHeroes && card.hasAbility("hero")) return; if(card.getPower() === highest) res.push(card); }); - res.forEach(function(card){ + res.forEach(function(card) { var side = self; - if(self.foe.field[card.getType()].isOnField(card)){ + if(self.foe.field[card.getType()].isOnField(card)) { side = self.foe; } var removed = side.field[card.getType()].removeCard(card); @@ -768,11 +767,11 @@ Battleside = (function(){ this.battle.sendNotification(txt); } - r.clearMainFields = function(){ + r.clearMainFields = function() { var rndCard = null; - if(this.deck.getFaction() === Deck.FACTION.MONSTERS){ + if(this.deck.getFaction() === Deck.FACTION.MONSTERS) { rndCard = this.getRandomCardOnField(); - if(rndCard){ + if(rndCard) { rndCard.__lock = true; this.sendNotification(this.getName() + ": Monsters faction ability triggered! " + rndCard.getName()); } @@ -789,13 +788,13 @@ Battleside = (function(){ this.addToDiscard(cards); } - r.addToDiscard = function(cards){ + r.addToDiscard = function(cards) { var self = this; - if(!Array.isArray(cards)){ + if(!Array.isArray(cards)) { cards = [cards]; } - cards.forEach(function(_card){ - if(_card.__lock){ + cards.forEach(function(_card) { + if(_card.__lock) { delete _card.__lock; return; } @@ -803,10 +802,10 @@ Battleside = (function(){ }); } - r.removeFromDiscard = function(card){ + r.removeFromDiscard = function(card) { for(var i = 0; i < this._discard.length; i++) { var c = this._discard[i]; - if(c.getID() === card.getID()){ + if(c.getID() === card.getID()) { this._discard.splice(i, 1); return @@ -814,14 +813,14 @@ Battleside = (function(){ } } - r.getDiscard = function(json){ - if(json){ + r.getDiscard = function(json) { + if(json) { return JSON.stringify(this._discard); } return this._discard; } - r.resetNewRound = function(){ + r.resetNewRound = function() { this.clearMainFields(); this.setWeather(5, { onTurnEnd: true @@ -829,7 +828,7 @@ Battleside = (function(){ this.setPassing(false); } - r.filter = function(arrCards, opt){ + r.filter = function(arrCards, opt) { var arr = arrCards.slice(); for(var key in opt) { @@ -837,33 +836,33 @@ Battleside = (function(){ var prop = key, val = opt[key]; - arrCards.forEach(function(card){ + arrCards.forEach(function(card) { var property = card.getProperty(prop); - if(_.isArray(property)){ + if(_.isArray(property)) { var _f = false; for(var i = 0; i < property.length; i++) { - if(property[i] === val){ + if(property[i] === val) { _f = true; break; } } - if(!_f){ + if(!_f) { res.push(card); } } - else if(_.isArray(val)){ + else if(_.isArray(val)) { var _f = false; for(var i = 0; i < val.length; i++) { - if(property === val[i]){ + if(property === val[i]) { _f = true; break; } } - if(!_f){ + if(!_f) { res.push(card); } } - else if(card.getProperty(prop) !== val){ + else if(card.getProperty(prop) !== val) { res.push(card); } }) @@ -873,7 +872,7 @@ Battleside = (function(){ return arr; } - r.reDraw = function(n){ + r.reDraw = function(n) { //var hand = this.hand.getCards(); var self = this; var left = n; @@ -881,7 +880,7 @@ Battleside = (function(){ this.send("redraw:cards", null, true); - this.receive("redraw:reDrawCard", function(data){ + this.receive("redraw:reDrawCard", function(data) { var id = data.cardID; if(!left) return; left--; @@ -891,7 +890,7 @@ Battleside = (function(){ self.deck.shuffle(); self.draw(1); - if(!left){ + if(!left) { self.send("redraw:close", null, true); self.wait(); @@ -903,7 +902,7 @@ Battleside = (function(){ self.battle.updateSelf(self); }) - this.receive("redraw:close_client", function(){ + this.receive("redraw:close_client", function() { self.wait(); deferred.resolve("done"); @@ -914,10 +913,10 @@ Battleside = (function(){ } - r.sendNotificationTo = function(side, msg){ + r.sendNotificationTo = function(side, msg) { this.battle.sendNotificationTo(side, msg); } - r.sendNotification = function(msg){ + r.sendNotification = function(msg) { this.battle.sendNotification(msg); } diff --git a/server/Field.js b/server/Field.js index c0d3043..4716fb5 100644 --- a/server/Field.js +++ b/server/Field.js @@ -1,8 +1,8 @@ var _ = require("underscore"); -var Field = (function(){ - var Field = function(side, hasHornField){ - if(!(this instanceof Field)){ +var Field = (function() { + var Field = function(side, hasHornField) { + if(!(this instanceof Field)) { return (new Field(side, hasHornField)); } /** @@ -26,12 +26,12 @@ var Field = (function(){ r._hornCard = null; r.side = null; - r.add = function(card, isHorn){ + r.add = function(card, isHorn) { /*if(card.hasAbility("commanders_horn")) { this.setHorn(card); return; }*/ - if(isHorn && this._hasHornField){ + if(isHorn && this._hasHornField) { this.setHorn(card); return; } @@ -39,16 +39,16 @@ var Field = (function(){ this.updateScore(); } - r.get = function(){ + r.get = function() { return this._cards; } - r.getScore = function(){ + r.getScore = function() { this.updateScore(); return this._score; } - r.updateScore = function(){ + r.updateScore = function() { this._score = 0; for(var i = 0; i < this._cards.length; i++) { var card = this._cards[i]; @@ -56,33 +56,33 @@ var Field = (function(){ } } - r.getPosition = function(card){ + r.getPosition = function(card) { for(var i = 0; i < this._cards.length; i++) { if(this._cards[i].getID() === card.getID()) return i; } return -1; } - r.isOnField = function(card){ - if(this._hasHornField && this.getHorn() && card.getID() === this.getHorn().getID()){ + r.isOnField = function(card) { + if(this._hasHornField && this.getHorn() && card.getID() === this.getHorn().getID()) { return true; } return this.getPosition(card) >= 0; } - r.replaceWith = function(oldCard, newCard){ + r.replaceWith = function(oldCard, newCard) { var index = this.getPosition(oldCard); this._cards[index] = newCard; oldCard.reset(); for(var event in oldCard._uidEvents) { - if(this.side && this.side.off){ + if(this.side && this.side.off) { this.side.off(event, oldCard.getUidEvents(event)); } } return oldCard; } - r.getCard = function(id){ + r.getCard = function(id) { for(var i = 0; i < this._cards.length; i++) { var card = this._cards[i]; if(card.getID() == id) return card; @@ -90,7 +90,7 @@ var Field = (function(){ return -1; } - r.removeAll = function(){ + r.removeAll = function() { var tmp = this._cards.slice(); var self = this; /*for(var i = 0; i < tmp.length; i++) { @@ -104,13 +104,13 @@ var Field = (function(){ } this._cards[i] = null; }*/ - tmp.forEach(function(card, i){ + tmp.forEach(function(card, i) { card.reset(); - if(card.__lock){ + if(card.__lock) { return; } for(var event in card._uidEvents) { - if(this.side && this.side.off){ + if(this.side && this.side.off) { this.side.off(event, card.getUidEvents(event)); } } @@ -119,7 +119,7 @@ var Field = (function(){ this._cards = _.without(this._cards, null); - if(this.getHorn()){ + if(this.getHorn()) { var card = this.getHorn(); card.reset(); this.setHorn(null); @@ -131,17 +131,17 @@ var Field = (function(){ return tmp; } - r.removeCard = function(cards){ + r.removeCard = function(cards) { var res = []; var _cards = this.get(); - if(!Array.isArray(cards)){ + if(!Array.isArray(cards)) { cards = [cards]; } var self = this; - cards.forEach(function(card){ + cards.forEach(function(card) { card.reset(); for(var event in card._uidEvents) { - if(this.side && this.side.off){ + if(this.side && this.side.off) { this.side.off(event, card.getUidEvents(event)); } } @@ -151,7 +151,7 @@ var Field = (function(){ return res; } - r.getInfo = function(){ + r.getInfo = function() { var self = this; return { cards: self._cards, @@ -160,27 +160,27 @@ var Field = (function(){ } } - r.getHorn = function(){ + r.getHorn = function() { if(!this._hasHornField) return null; return this._hornCard; } - r.setHorn = function(card){ + r.setHorn = function(card) { if(!this._hasHornField) return null; this._hornCard = card; } - r.getHighestCards = function(noHeroes){ + r.getHighestCards = function(noHeroes) { noHeroes = noHeroes || false; var res = []; var highest = 0; - this.get().forEach(function(card){ + this.get().forEach(function(card) { if(noHeroes && card.hasAbility("hero")) return; highest = card.getPower() > highest ? card.getPower() : highest; }) - this.get().forEach(function(card){ + this.get().forEach(function(card) { if(noHeroes && card.hasAbility("hero")) return; if(card.getPower() === highest) res.push(card); }); diff --git a/site/client/app.blade.php b/site/client/app.blade.php deleted file mode 100644 index 13e306d..0000000 --- a/site/client/app.blade.php +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - Gwent Online - - - - - - - - - - - - - - \ No newline at end of file diff --git a/site/client/app/app.js b/site/client/app/app.js deleted file mode 100644 index 82a6431..0000000 --- a/site/client/app/app.js +++ /dev/null @@ -1,23 +0,0 @@ -var Vue = require('vue'); -var VueRouter = require('vue-router'); - -Vue.use(VueRouter) -Vue.use(require('vue-resource')); -Vue.http.headers.common['X-CSRF-TOKEN'] = $('.token').attr('content'); - -var app = Vue.extend({ - components: { - inner: require('./modules/inner/components/inner'), - landing: require('./modules/landing/components/landing') - } -}); - -var routes = require('./routes'); -var router = new VueRouter(routes.options); - -router.map(routes.maps); -router.start(app, 'body'); - -new Vue({ - el: 'body' -}); \ No newline at end of file diff --git a/site/client/app/modules/deck-builder/components/deck-builder.js b/site/client/app/modules/deck-builder/components/deck-builder.js deleted file mode 100644 index 95b3d85..0000000 --- a/site/client/app/modules/deck-builder/components/deck-builder.js +++ /dev/null @@ -1,105 +0,0 @@ -var cards = require("../../../../../../assets/data/cards"); -var deck = require("../../../../../../assets/data/deck"); - -module.exports = { - - template: require('../views/deck-builder.html'), - - data: function() { - return { - cards: [], - deck: [], - - allLeaders: [], - myLeaders: [], - - factionFilter: 'northern_realm', - - modalLeader: false - } - }, - - components: { - showleaders: require('./show-leaders') - }, - - ready: function() { - this.initCards(); - this.initDeck(); - }, - - filters: { - - // Iterate for correct card type and merge multiple cards. - getType: function(c, type) { - var a = []; - var itemCount = {}; - - var tmp = $.map(c, (item) => { - if($.inArray(item.card.type, type) > -1) { - if($.inArray(item.card.name, a) > -1) { - itemCount[item.card.name] = (itemCount[item.card.name] || 1) + 1; - } else { - a.push(item.card.name); - - return item; - } - } - }); - - // todo: extract to method - var tmp2 = $.map(tmp, (item) => { - if(itemCount[item.card.name]) { - item.count = itemCount[item.card.name]; - } - - return item; - }); - - return tmp2; - } - }, - - methods: { - changeDeck: function(deck) { - // todo: load animation - $('.all-cards, .all-deck').addClass('remove'); - this.factionFilter = deck; - this.initDeck(); - $('.all-cards, .all-deck').scrollTop(0); - - setTimeout(function() { - $('.all-cards, .all-deck').removeClass('remove'); - }, 500); - }, - - // Filter for leaders and store them separately. - initCards: function() { - this.cards = $.map(cards, (n) => { - if(n.type != 3) return n; - - this.allLeaders.push(n); - }); - }, - - initDeck: function() { - this.deck = []; - var _deck = deck[this.factionFilter]; - - for(var item in _deck) { - this.deck.push({ - card: cards[_deck[item]], - count: 1 - }); - } - }, - - showLeaders: function(currentLeader) { - this.myLeaders = $.map(this.allLeaders, (item) => { - if(item.faction == this.factionFilter) return item; - }); - - this.modalLeader = true; - } - } -}; \ No newline at end of file diff --git a/site/client/app/modules/deck-builder/components/show-leaders.js b/site/client/app/modules/deck-builder/components/show-leaders.js deleted file mode 100644 index 3f35a7b..0000000 --- a/site/client/app/modules/deck-builder/components/show-leaders.js +++ /dev/null @@ -1,25 +0,0 @@ -module.exports = { - - template: require('./../views/show-leaders.html'), - - inherit: true, - - methods: { - closeLeaders(e) { - if(e == 'close' || e.target.className == 'modal active' ) { - this.modalLeader = false; - } - }, - - chooseLeader(card) { - // todo: make own leader variable - for(var item in this.deck) { - if(this.deck[item].card.type == 3) { - this.deck.$set(item, {card}); - } - } - - this.closeLeaders('close'); - } - } -}; \ No newline at end of file diff --git a/site/client/app/modules/deck-builder/views/deck-builder.html b/site/client/app/modules/deck-builder/views/deck-builder.html deleted file mode 100644 index 998ec55..0000000 --- a/site/client/app/modules/deck-builder/views/deck-builder.html +++ /dev/null @@ -1,218 +0,0 @@ - - -
-
- Northern Realm - Scoia'tael - Monster -
- -
- My Deck -
-
- -
-
-
- -
-
-
-
-
-
- -
- -
-
- -
-
- -
- - -
- LEADER - -
-
{{ item.count > 1 ? item.count + 'x' : '' }}
-
-
-
-
-
- -
- -
- CLOSE COMBAT - -
-
{{ item.count > 1 ? item.count + 'x' : '' }}
-
-
-
-
-
-
- -
- RANGE - -
-
{{ item.count > 1 ? item.count + 'x' : '' }}
-
-
-
-
-
-
- -
- SPECIAL - -
-
{{ item.count > 1 ? item.count + 'x' : '' }}
-
-
-
-
-
-
- -
- -
-
- - \ No newline at end of file diff --git a/site/client/app/modules/deck-builder/views/show-leaders.html b/site/client/app/modules/deck-builder/views/show-leaders.html deleted file mode 100644 index 44e1622..0000000 --- a/site/client/app/modules/deck-builder/views/show-leaders.html +++ /dev/null @@ -1,12 +0,0 @@ - \ No newline at end of file diff --git a/site/client/app/modules/inner/components/chat.js b/site/client/app/modules/inner/components/chat.js deleted file mode 100644 index 8edfa54..0000000 --- a/site/client/app/modules/inner/components/chat.js +++ /dev/null @@ -1,19 +0,0 @@ -module.exports = { - - template: require('../views/chat.html'), - - data: function() { - return { - message: '' - } - }, - - methods: { - submitChat: function(e) { - e.preventDefault(); - - console.log(this.message); - } - } - -}; \ No newline at end of file diff --git a/site/client/app/modules/inner/components/inner.js b/site/client/app/modules/inner/components/inner.js deleted file mode 100644 index bdcd917..0000000 --- a/site/client/app/modules/inner/components/inner.js +++ /dev/null @@ -1,22 +0,0 @@ -module.exports = { - - template: require('../views/inner.html'), - - inherit: true, - - data: function() { - return { - modal: false - } - }, - - components: { - searchmatch: require('./search-match'), - navigation: require('./navigation'), - chat: require('./chat'), - - lobby: require('./../../lobby/components/lobby'), - deckBuilder: require('./../../deck-builder/components/deck-builder'), - } - -}; \ No newline at end of file diff --git a/site/client/app/modules/inner/components/navigation.js b/site/client/app/modules/inner/components/navigation.js deleted file mode 100644 index d39de77..0000000 --- a/site/client/app/modules/inner/components/navigation.js +++ /dev/null @@ -1,25 +0,0 @@ -module.exports = { - - template: require('../views/navigation.html'), - - inherit: true, - - data: function() { - return { - // todo: work with slug filter - navigation: [ - { name: 'Lobby', route: '/lobby' }, - { name: 'Deck Builder', route: '/deck-builder' }, - { name: 'Highscore', route: '/highscore' } - ] - } - }, - - methods: { - searchMatch: function() { - this.modal = true; - // trigger match functions - } - } - -}; \ No newline at end of file diff --git a/site/client/app/modules/inner/components/search-match.js b/site/client/app/modules/inner/components/search-match.js deleted file mode 100644 index 216f50d..0000000 --- a/site/client/app/modules/inner/components/search-match.js +++ /dev/null @@ -1,14 +0,0 @@ -module.exports = { - - template: require('./../views/search-match.html'), - - inherit: true, - - methods: { - cancelMatch: function() { - this.modal = false; - // trigger match functions - } - } - -}; \ No newline at end of file diff --git a/site/client/app/modules/inner/views/chat.html b/site/client/app/modules/inner/views/chat.html deleted file mode 100644 index fd43c44..0000000 --- a/site/client/app/modules/inner/views/chat.html +++ /dev/null @@ -1,17 +0,0 @@ -
- - -
-
- blaa blaa -
- - -
- -
\ No newline at end of file diff --git a/site/client/app/modules/inner/views/inner.html b/site/client/app/modules/inner/views/inner.html deleted file mode 100644 index 397f9bc..0000000 --- a/site/client/app/modules/inner/views/inner.html +++ /dev/null @@ -1,26 +0,0 @@ - - -Gwent - -
- - - - - -
- - - -
- -
- - \ No newline at end of file diff --git a/site/client/app/modules/inner/views/navigation.html b/site/client/app/modules/inner/views/navigation.html deleted file mode 100644 index a56d928..0000000 --- a/site/client/app/modules/inner/views/navigation.html +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/site/client/app/modules/inner/views/search-match.html b/site/client/app/modules/inner/views/search-match.html deleted file mode 100644 index c6e8d0d..0000000 --- a/site/client/app/modules/inner/views/search-match.html +++ /dev/null @@ -1,12 +0,0 @@ - \ No newline at end of file diff --git a/site/client/app/modules/landing/components/landing.js b/site/client/app/modules/landing/components/landing.js deleted file mode 100644 index 0c457d6..0000000 --- a/site/client/app/modules/landing/components/landing.js +++ /dev/null @@ -1,49 +0,0 @@ -module.exports = { - - template: require('./../views/landing.html'), - - inherit: true, - - data: function() { - return { - modal: false - } - }, - - components: { - login: require('./../../session/components/login'), - register: require('./../../session/components/register') - }, - - ready: function() { - setTimeout(function() { - $('.container-form-landing').addClass('active') - }, 300); - }, - - methods: { - asGuest: function() { - // set localstorage for guest - $('.icon-guest-load').show(); - - setTimeout(function() { - window.location.href = './lobby'; - }, 500); - }, - - openLogin: function() { - this.modal = true; - - setTimeout(function() { - $('.login-username').focus(); - }, 300); - }, - - closeLogin: function(e) { - if(e.target.className == 'modal active') { - this.modal = false; - } - } - } - -}; \ No newline at end of file diff --git a/site/client/app/modules/landing/views/landing.html b/site/client/app/modules/landing/views/landing.html deleted file mode 100644 index 9ac4fd9..0000000 --- a/site/client/app/modules/landing/views/landing.html +++ /dev/null @@ -1,25 +0,0 @@ - - -
-
- Gwent - -

- Play The Witcher Gwent Card-Game online!
- Play with randomly generated teams, or build your own! -

- -
- - - - or - - Play as guest - - - Nope Nope - -
-
-
\ No newline at end of file diff --git a/site/client/app/modules/lobby/components/lobby.js b/site/client/app/modules/lobby/components/lobby.js deleted file mode 100644 index 49ea8d7..0000000 --- a/site/client/app/modules/lobby/components/lobby.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - - template: require('../views/lobby.html') - -}; \ No newline at end of file diff --git a/site/client/app/modules/lobby/views/lobby.html b/site/client/app/modules/lobby/views/lobby.html deleted file mode 100644 index 8b13789..0000000 --- a/site/client/app/modules/lobby/views/lobby.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/site/client/app/modules/session/components/login.js b/site/client/app/modules/session/components/login.js deleted file mode 100644 index 776012c..0000000 --- a/site/client/app/modules/session/components/login.js +++ /dev/null @@ -1,10 +0,0 @@ -module.exports = { - - template: require('./../views/login.html'), - - inherit: true, - - methods: { - - } -}; \ No newline at end of file diff --git a/site/client/app/modules/session/components/register.js b/site/client/app/modules/session/components/register.js deleted file mode 100644 index 23429cd..0000000 --- a/site/client/app/modules/session/components/register.js +++ /dev/null @@ -1,41 +0,0 @@ -module.exports = { - - template: require('./../views/register.html'), - - inherit: true, - - data: function() { - return { - username: '', - password: '', - email: '' - } - }, - - methods: { - register: function(e) { - e.preventDefault(); - - if( ! this.username || ! this.password || ! this.email) { - $('.form-error').hide().fadeIn('fast'); - - return false; - } - - $('.form-error').hide(); - $('.icon-action-load').show(); - - this.$http.post('./api/register', this.$data, function(data) { - - location.reload(); - - }).error(function (data) { - - $('.icon-action-load').hide(); - - }) - - return false; - } - } -}; \ No newline at end of file diff --git a/site/client/app/modules/session/views/login.html b/site/client/app/modules/session/views/login.html deleted file mode 100644 index 1579990..0000000 --- a/site/client/app/modules/session/views/login.html +++ /dev/null @@ -1,19 +0,0 @@ - \ No newline at end of file diff --git a/site/client/app/modules/session/views/register.html b/site/client/app/modules/session/views/register.html deleted file mode 100644 index 1258027..0000000 --- a/site/client/app/modules/session/views/register.html +++ /dev/null @@ -1,10 +0,0 @@ -
- - - - -
- - -
-
\ No newline at end of file diff --git a/site/client/app/routes.js b/site/client/app/routes.js deleted file mode 100644 index 4661adc..0000000 --- a/site/client/app/routes.js +++ /dev/null @@ -1,19 +0,0 @@ -require('../../../public/Config.js'); - -module.exports = { - - maps: { - '/lobby': { - component: 'lobby' - }, - - '/deck-builder': { - component: 'deckBuilder' - } - }, - - options: { - history: true, - root: window.Config.Site.base - } -} \ No newline at end of file diff --git a/site/client/assets/sass/_base.scss b/site/client/assets/sass/_base.scss deleted file mode 100644 index 196a475..0000000 --- a/site/client/assets/sass/_base.scss +++ /dev/null @@ -1,40 +0,0 @@ -* { - padding: 0; - box-sizing: border-box; -} - -html, -body { - height: 100%; -} - -body { - width: 100%; - min-width: 1200px; - overflow: hidden; - font-family: 'Titillium Web', sans-serif; -} - -::-moz-selection { - background: rgba($main, .99); - color: #fff; - text-shadow: none; -} - -::selection { - background: rgba($main, .99); - color: #fff; - text-shadow: none; -} - -input, textarea { - font-family: 'Titillium Web', sans-serif; - outline: 0; -} - -a { text-decoration: none; } -ul { list-style: none; } - -.no-select { - user-select: none; -} \ No newline at end of file diff --git a/site/client/assets/sass/_chat.scss b/site/client/assets/sass/_chat.scss deleted file mode 100644 index 12a94c3..0000000 --- a/site/client/assets/sass/_chat.scss +++ /dev/null @@ -1,47 +0,0 @@ -.container-chat { - float: right; - width: 29%; - - a { - font-size: 14px; - padding: 18px; - } -} - -.chat { - float: left; - width: 100%; - padding: 20px; - height: calc(100vh - 200px); - min-height: 400px; - clear: both; - position: relative; - - color: #fff; - - @include contentGradient(); -} - -.chats { - float: left; - overflow-y: auto; - height: calc(100% - 80px); - width: 100%; -} - -.chatbox { - height: 80px; - float: left; - width: 100%; - border: 0; - resize: none; - position: absolute; - bottom: 0; - left: 0; - padding: 20px; - font-size: 15px; - font-weight: 300; - color: #8798ac; - - @include contentGradient(); -} \ No newline at end of file diff --git a/site/client/assets/sass/_fonts.scss b/site/client/assets/sass/_fonts.scss deleted file mode 100644 index d2420c7..0000000 --- a/site/client/assets/sass/_fonts.scss +++ /dev/null @@ -1,18 +0,0 @@ -@font-face { - font-family: 'Titillium Web'; - font-style: normal; - font-weight: 300; - src: local('Titillium WebLight'), local('TitilliumWeb-Light'), url(http://fonts.gstatic.com/s/titilliumweb/v4/anMUvcNT0H1YN4FII8wpr6YfJ4wTnNoNUCmOpdh16Tg.woff2) format('woff2'), url(http://fonts.gstatic.com/s/titilliumweb/v4/anMUvcNT0H1YN4FII8wpr1uKlGE8-OjkUKWan_M3D6s.woff) format('woff'); -} -@font-face { - font-family: 'Titillium Web'; - font-style: normal; - font-weight: 400; - src: local('Titillium Web'), local('TitilliumWeb-Regular'), url(http://fonts.gstatic.com/s/titilliumweb/v4/7XUFZ5tgS-tD6QamInJTceHuglUR2dhBxWD-q_ehMME.woff2) format('woff2'), url(http://fonts.gstatic.com/s/titilliumweb/v4/7XUFZ5tgS-tD6QamInJTcZ_o9VAbKgK36i-4snuAuCM.woff) format('woff'); -} -@font-face { - font-family: 'Titillium Web'; - font-style: normal; - font-weight: 600; - src: local('Titillium WebSemiBold'), local('TitilliumWeb-SemiBold'), url(http://fonts.gstatic.com/s/titilliumweb/v4/anMUvcNT0H1YN4FII8wpr6d1JQt-lS5nD-1TJX2NNl0.woff2) format('woff2'), url(http://fonts.gstatic.com/s/titilliumweb/v4/anMUvcNT0H1YN4FII8wprx3QmhlKDgQgT1VN2Ed1WFo.woff) format('woff'); -} \ No newline at end of file diff --git a/site/client/assets/sass/_form.scss b/site/client/assets/sass/_form.scss deleted file mode 100644 index 7766137..0000000 --- a/site/client/assets/sass/_form.scss +++ /dev/null @@ -1,113 +0,0 @@ -.icon-action-load { - background: url(../img/action-load.gif) no-repeat; - width: 16px; - height: 16px; - float: right; - margin: 5px -7px 0 7px; - display: none; -} - -.form-session { - float: left; -} - -.field-session { - float: left; - padding: 10px 20px; - border: 0; - color: #8798ac; - font-size: 16px; - margin: 0 10px 0 0; - height: 48px; - width: 220px; - - @include secondGradient(); - - .container-form-landing & { - width: 170px; - } -} - -.wrap-btn-action { - float: left; - padding: 10px 20px; - cursor: pointer; - height: 48px; - - @include mainGradient(); - @include transition(box-shadow); - - &:hover { - box-shadow: 0 0 10px 0 rgba($main, .8); - } -} - -.btn-action { - color: #fff; - font-size: 16px; - font-weight: 400; - border: 0; - background: transparent; - cursor: pointer; - - float: left; - text-transform: uppercase; -} - -.btn-second, -.btn-none { - color: #fff; - font-size: 16px; - font-weight: 400; - border: 0; - padding: 10px 20px; - float: left; - position: relative; - cursor: pointer; - height: 48px; - text-transform: uppercase; - text-decoration: none; - - @include secondGradient(); - @include transition(); -} - -.btn-second { - - &:hover { - box-shadow: 0 0 10px 0 rgba(#fff, .1); - } -} - -.btn-none { - background: transparent; - color: #8798ac; - - &:hover { - color: #fff; - } -} - -::-webkit-input-placeholder { - color: darken(#8798ac, 10%); -} -:-moz-placeholder { - color: darken(#8798ac, 10%); - opacity: 1; -} -::-moz-placeholder { - color: darken(#8798ac, 10%); - opacity: 1; -} -:-ms-input-placeholder { - color: darken(#8798ac, 10%); -} - -.form-error { - float: left; - clear: both; - color: #c64b4b; - font-size: 15px; - margin: 20px 0; - display: none; -} \ No newline at end of file diff --git a/site/client/assets/sass/_inner.scss b/site/client/assets/sass/_inner.scss deleted file mode 100644 index 94d108a..0000000 --- a/site/client/assets/sass/_inner.scss +++ /dev/null @@ -1,29 +0,0 @@ -body.inner { - background: url(../img/inner-bg.jpg) #162232 center top no-repeat; - background-size: cover; - padding: 40px; -} - -.logo-medium { - float: left; -} - -main { - float: left; - clear: both; - width: 70%; -} - -.container-content { - float: left; - width: 100%; - padding: 20px; - height: calc(100vh - 150px); - min-height: 400px; - clear: both; - position: relative; - - color: #fff; - - @include contentGradient(); -} \ No newline at end of file diff --git a/site/client/assets/sass/_landing.scss b/site/client/assets/sass/_landing.scss deleted file mode 100644 index 668e418..0000000 --- a/site/client/assets/sass/_landing.scss +++ /dev/null @@ -1,62 +0,0 @@ -body.landing { - background: url(../img/landing-bg.jpg) #162232 center top no-repeat; - background-size: cover; -} - -.icon-guest-load { - background: url(../img/guest-load.gif) no-repeat; - width: 16px; - height: 16px; - float: right; - margin: 5px -7px 0 7px; - display: none; -} - -.wrap-landing { - max-width: 1000px; - margin: 0 auto; -} - -.logo-big { - margin: 0 auto; - display: block; -} - -.container-landing { - float: left; - width: 100%; - margin: 12% 0 0 0; - - @include mq(medium) { - margin: 9% 0 0 0; - } -} - -.teaser-landing { - text-align: center; - font-size: 21px; - font-weight: 300; - text-shadow: 0 0 10px rgba(#fff, .6); - color: #8798ac; - line-height: 29pt; - cursor: default; -} - -.choose { - float: left; - color: #8798ac; - margin: 10px 30px; - cursor: default; -} - -.container-form-landing { - margin: 40px 0; - opacity: 0; - - &.active { - transition: all .4s ease-in-out 0s; - - margin: 60px 0; - opacity: 1; - } -} \ No newline at end of file diff --git a/site/client/assets/sass/_mixins.scss b/site/client/assets/sass/_mixins.scss deleted file mode 100644 index 72adc31..0000000 --- a/site/client/assets/sass/_mixins.scss +++ /dev/null @@ -1,50 +0,0 @@ -$main: #d96f1f; - -@mixin mainGradient() { - background: #da7020; - background: -moz-linear-gradient(left, #da7020 0%, #ca5907 100%); - background: -webkit-gradient(linear, left top, right top, color-stop(0%,#da7020), color-stop(100%,#ca5907)); - background: -webkit-linear-gradient(left, #da7020 0%,#ca5907 100%); - background: -o-linear-gradient(left, #da7020 0%,#ca5907 100%); - background: -ms-linear-gradient(left, #da7020 0%,#ca5907 100%); - background: linear-gradient(to right, #da7020 0%,#ca5907 100%); - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#da7020', endColorstr='#ca5907',GradientType=1 ); -} - -@mixin secondGradient() { - background: #243141; - background: -moz-linear-gradient(left, #243141 0%, #334152 100%); - background: -webkit-gradient(linear, left top, right top, color-stop(0%,#243141), color-stop(100%,#334152)); - background: -webkit-linear-gradient(left, #243141 0%,#334152 100%); - background: -o-linear-gradient(left, #243141 0%,#334152 100%); - background: -ms-linear-gradient(left, #243141 0%,#334152 100%); - background: linear-gradient(to right, #243141 0%,#334152 100%); - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#243141', endColorstr='#334152',GradientType=1 ); -} - -@mixin contentGradient() { - background: #080d14; - background: -moz-linear-gradient(top, rgba(8,13,20,1) 4%, rgba(8,13,20,0.56) 46%, rgba(239,239,239,0) 100%); - background: -webkit-gradient(linear, left top, left bottom, color-stop(4%,rgba(8,13,20,1)), color-stop(46%,rgba(8,13,20,0.56)), color-stop(100%,rgba(239,239,239,0))); - background: -webkit-linear-gradient(top, rgba(8,13,20,1) 4%,rgba(8,13,20,0.56) 46%,rgba(239,239,239,0) 100%); - background: -o-linear-gradient(top, rgba(8,13,20,1) 4%,rgba(8,13,20,0.56) 46%,rgba(239,239,239,0) 100%); - background: -ms-linear-gradient(top, rgba(8,13,20,1) 4%,rgba(8,13,20,0.56) 46%,rgba(239,239,239,0) 100%); - background: linear-gradient(to bottom, rgba(8,13,20,1) 4%,rgba(8,13,20,0.56) 46%,rgba(239,239,239,0) 100%); - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#080d14', endColorstr='#00efefef',GradientType=0 ); -} - -@mixin transition($type: all) { - transition: $type .3s ease-in-out 0s; -} - -@mixin mq($point) { - @if $point == big { - @media (max-width: 1600px) { @content; } - } - @else if $point == medium { - @media (max-width: 1450px) { @content; } - } - @else if $point == small { - @media (max-width: 600px) { @content; } - } -} \ No newline at end of file diff --git a/site/client/assets/sass/_modal.scss b/site/client/assets/sass/_modal.scss deleted file mode 100644 index 7c2dfd7..0000000 --- a/site/client/assets/sass/_modal.scss +++ /dev/null @@ -1,93 +0,0 @@ -.wrap-modal-login { - max-width: 600px; - margin: 0 auto; -} - -.wrap-modal-search { - max-width: 250px; - margin: 0 auto; - text-align: center; -} - -.wrap-modal-leaders { - margin: 14vh auto; - max-width: 750px; - - @include transition(); - - .active & { - margin: 15vh auto; - } -} - -.modal { - position: fixed; - width: 100%; - height: 100%; - left: 0; - top: 0; - right: 0; - bottom: 0; - background: rgba(14, 27, 43, .5); - z-index: 9999; - opacity: 0; - visibility: hidden; - - @include transition(); - - &.active { - visibility: visible; - opacity: 1; - } -} - -.modal-banner { - z-index: 20; - background: rgba(6, 13, 22, .95); - width: 100%; - color: #fff; - padding: 50px 0; - margin: 24vh 0 0 0; - float: left; - - @include transition(); - - .active & { - margin: 25vh 0 0 0; - } -} - -.icon-content-load { - background: url(../img/content-load.gif) no-repeat; - width: 32px; - height: 32px; - opacity: .9; - display: block; - margin: 0 auto; -} - -.modal-para { - font-size: 17px; - text-transform: uppercase; - font-weight: 300; - text-shadow: 0 0 10px rgba(255, 255, 255, 0.6); - color: #8798ac; - margin: 20px 0 50px 0; -} - -.btn-sub { - color: darken(#8798ac, 30%); - cursor: pointer; - text-transform: uppercase; - - @include transition(); - - &:hover { - color: #8798ac; - } - - .wrap-modal-login & { - margin: 30px 0 0 0; - float: left; - } -} \ No newline at end of file diff --git a/site/client/assets/sass/_nav.scss b/site/client/assets/sass/_nav.scss deleted file mode 100644 index 38f33da..0000000 --- a/site/client/assets/sass/_nav.scss +++ /dev/null @@ -1,50 +0,0 @@ -nav { - float: left; - margin: 30px 0 0 0; - clear: both; - width: 100%; - - ul { - float: left; - margin: 0; - width: 100%; - } - - li { - float: left; - } - - a { - color: #8798ac; - text-shadow: 0 0 10px rgba(255, 255, 255, 0.6); - font-size: 19px; - text-transform: uppercase; - font-weight: 300; - padding: 12px 30px; - float: left; - cursor: pointer; - height: 55px; - - @include transition(); - - &:hover { - color: #c5cfda; - } - - &.active { - color: $main; - text-shadow: none; - background: #080d14; - } - } -} - -.sub-nav { - float: right; - - a { - padding: 12px; - color: $main; - text-shadow: none; - } -} \ No newline at end of file diff --git a/site/client/assets/sass/_normalize.scss b/site/client/assets/sass/_normalize.scss deleted file mode 100644 index 458eea1..0000000 --- a/site/client/assets/sass/_normalize.scss +++ /dev/null @@ -1,427 +0,0 @@ -/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ - -/** - * 1. Set default font family to sans-serif. - * 2. Prevent iOS text size adjust after orientation change, without disabling - * user zoom. - */ - -html { - font-family: sans-serif; /* 1 */ - -ms-text-size-adjust: 100%; /* 2 */ - -webkit-text-size-adjust: 100%; /* 2 */ -} - -/** - * Remove default margin. - */ - -body { - margin: 0; -} - -/* HTML5 display definitions - ========================================================================== */ - -/** - * Correct `block` display not defined for any HTML5 element in IE 8/9. - * Correct `block` display not defined for `details` or `summary` in IE 10/11 - * and Firefox. - * Correct `block` display not defined for `main` in IE 11. - */ - -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -main, -menu, -nav, -section, -summary { - display: block; -} - -/** - * 1. Correct `inline-block` display not defined in IE 8/9. - * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. - */ - -audio, -canvas, -progress, -video { - display: inline-block; /* 1 */ - vertical-align: baseline; /* 2 */ -} - -/** - * Prevent modern browsers from displaying `audio` without controls. - * Remove excess height in iOS 5 devices. - */ - -audio:not([controls]) { - display: none; - height: 0; -} - -/** - * Address `[hidden]` styling not present in IE 8/9/10. - * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. - */ - -[hidden], -template { - display: none; -} - -/* Links - ========================================================================== */ - -/** - * Remove the gray background color from active links in IE 10. - */ - -a { - background-color: transparent; -} - -/** - * Improve readability when focused and also mouse hovered in all browsers. - */ - -a:active, -a:hover { - outline: 0; -} - -/* Text-level semantics - ========================================================================== */ - -/** - * Address styling not present in IE 8/9/10/11, Safari, and Chrome. - */ - -abbr[title] { - border-bottom: 1px dotted; -} - -/** - * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. - */ - -b, -strong { - font-weight: bold; -} - -/** - * Address styling not present in Safari and Chrome. - */ - -dfn { - font-style: italic; -} - -/** - * Address variable `h1` font-size and margin within `section` and `article` - * contexts in Firefox 4+, Safari, and Chrome. - */ - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -/** - * Address styling not present in IE 8/9. - */ - -mark { - background: #ff0; - color: #000; -} - -/** - * Address inconsistent and variable font size in all browsers. - */ - -small { - font-size: 80%; -} - -/** - * Prevent `sub` and `sup` affecting `line-height` in all browsers. - */ - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - top: -0.5em; -} - -sub { - bottom: -0.25em; -} - -/* Embedded content - ========================================================================== */ - -/** - * Remove border when inside `a` element in IE 8/9/10. - */ - -img { - border: 0; -} - -/** - * Correct overflow not hidden in IE 9/10/11. - */ - -svg:not(:root) { - overflow: hidden; -} - -/* Grouping content - ========================================================================== */ - -/** - * Address margin not present in IE 8/9 and Safari. - */ - -figure { - margin: 1em 40px; -} - -/** - * Address differences between Firefox and other browsers. - */ - -hr { - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 0; -} - -/** - * Contain overflow in all browsers. - */ - -pre { - overflow: auto; -} - -/** - * Address odd `em`-unit font size rendering in all browsers. - */ - -code, -kbd, -pre, -samp { - font-family: monospace, monospace; - font-size: 1em; -} - -/* Forms - ========================================================================== */ - -/** - * Known limitation: by default, Chrome and Safari on OS X allow very limited - * styling of `select`, unless a `border` property is set. - */ - -/** - * 1. Correct color not being inherited. - * Known issue: affects color of disabled elements. - * 2. Correct font properties not being inherited. - * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. - */ - -button, -input, -optgroup, -select, -textarea { - color: inherit; /* 1 */ - font: inherit; /* 2 */ - margin: 0; /* 3 */ -} - -/** - * Address `overflow` set to `hidden` in IE 8/9/10/11. - */ - -button { - overflow: visible; -} - -/** - * Address inconsistent `text-transform` inheritance for `button` and `select`. - * All other form control elements do not inherit `text-transform` values. - * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. - * Correct `select` style inheritance in Firefox. - */ - -button, -select { - text-transform: none; -} - -/** - * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` - * and `video` controls. - * 2. Correct inability to style clickable `input` types in iOS. - * 3. Improve usability and consistency of cursor style between image-type - * `input` and others. - */ - -button, -html input[type="button"], /* 1 */ -input[type="reset"], -input[type="submit"] { - -webkit-appearance: button; /* 2 */ - cursor: pointer; /* 3 */ -} - -/** - * Re-set default cursor for disabled elements. - */ - -button[disabled], -html input[disabled] { - cursor: default; -} - -/** - * Remove inner padding and border in Firefox 4+. - */ - -button::-moz-focus-inner, -input::-moz-focus-inner { - border: 0; - padding: 0; -} - -/** - * Address Firefox 4+ setting `line-height` on `input` using `!important` in - * the UA stylesheet. - */ - -input { - line-height: normal; -} - -/** - * It's recommended that you don't attempt to style these elements. - * Firefox's implementation doesn't respect box-sizing, padding, or width. - * - * 1. Address box sizing set to `content-box` in IE 8/9/10. - * 2. Remove excess padding in IE 8/9/10. - */ - -input[type="checkbox"], -input[type="radio"] { - box-sizing: border-box; /* 1 */ - padding: 0; /* 2 */ -} - -/** - * Fix the cursor style for Chrome's increment/decrement buttons. For certain - * `font-size` values of the `input`, it causes the cursor style of the - * decrement button to change from `default` to `text`. - */ - -input[type="number"]::-webkit-inner-spin-button, -input[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -/** - * 1. Address `appearance` set to `searchfield` in Safari and Chrome. - * 2. Address `box-sizing` set to `border-box` in Safari and Chrome - * (include `-moz` to future-proof). - */ - -input[type="search"] { - -webkit-appearance: textfield; /* 1 */ - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; /* 2 */ - box-sizing: content-box; -} - -/** - * Remove inner padding and search cancel button in Safari and Chrome on OS X. - * Safari (but not Chrome) clips the cancel button when the search input has - * padding (and `textfield` appearance). - */ - -input[type="search"]::-webkit-search-cancel-button, -input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * Define consistent border, margin, and padding. - */ - -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; -} - -/** - * 1. Correct `color` not being inherited in IE 8/9/10/11. - * 2. Remove padding so people aren't caught out if they zero out fieldsets. - */ - -legend { - border: 0; /* 1 */ - padding: 0; /* 2 */ -} - -/** - * Remove default vertical scrollbar in IE 8/9/10/11. - */ - -textarea { - overflow: auto; -} - -/** - * Don't inherit the `font-weight` (applied by a rule above). - * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. - */ - -optgroup { - font-weight: bold; -} - -/* Tables - ========================================================================== */ - -/** - * Remove most spacing between table cells. - */ - -table { - border-collapse: collapse; - border-spacing: 0; -} - -td, -th { - padding: 0; -} diff --git a/site/client/assets/sass/_shame_cards.scss b/site/client/assets/sass/_shame_cards.scss deleted file mode 100644 index 849f330..0000000 --- a/site/client/assets/sass/_shame_cards.scss +++ /dev/null @@ -1,293 +0,0 @@ -.card-img { - background-size: 120px 227px; - width: 120px; - height: 227px; -} - -.card-img-small { - background-size: 70px 132px; - width: 70px; - height: 132px; -} - -.card-wrap-big .card-img { - background-size: 150px 284px !important; - width: 150px !important; - height: 284px !important; - top: 4px; - left: 4px; -} - -.card, -.card-small-small { - float: left; - border-radius: 12px; - position: relative; - z-index: 10; - top: 3px; - left: 3px; -} - -.card-small-small { - top: 2px; - left: 2px; - border-radius: 8px; -} - -.bla { - border-radius: 14px; - width: 100%; - height: 100%; - position: absolute; - opacity: 0; -} - -.card-wrap-small .bla { - border-radius: 8px; -} - -.card-wrap:hover .bla, -.card-wrap-small:hover .bla { - box-shadow: 0 0 2px 0 orange; - opacity: 1; -} - -.shadow { - border-radius: 35%; - box-shadow: 0 0 15px 14px #ffa500; - content: ""; - height: calc(100% - 50px); - left: 15px; - position: absolute; - width: calc(100% - 22px); - z-index: 1; - top: 30px; - transition: all 0.3s ease-in-out 0s; - opacity: 0; -} - -.card-wrap:hover .shadow, -.card-wrap-small:hover .shadow { - -webkit-animation: Shadow 4s ease-in-out infinite; - -moz-animation: Shadow 4s ease-in-out infinite; - animation: Shadow 4s ease-in-out infinite; -} - -.ani { - background: linear-gradient(2deg, #000, #000, #000, #000);; - transition: all .05s ease-in-out 0s; -} - -.card-wrap:hover .ani, -.card-wrap-small:hover .ani { - background: linear-gradient(2deg, #ffa500, #ffd68b, #ffa500, #ffa500); - background-size: 800% 800%; - - -webkit-animation: AnimationName 3s ease infinite; - -moz-animation: AnimationName 3s ease infinite; - animation: AnimationName 3s ease infinite; -} - -@-webkit-keyframes Shadow { - 0% { - opacity: 0; - } - 25% { - opacity: .5; - } - 50%{ - opacity: 1; - } - 75% { - opacity: .5; - } - 100%{ opacity: 0; - } -} - -@-webkit-keyframes Shadow { - 0% { - opacity: 0; - } - 25% { - opacity: .5; - } - 50%{ - opacity: 1; - } - 75% { - opacity: .5; - } - 100%{ opacity: 0; - } -} - -@keyframes Shadow { - 0% { - opacity: 0; - } - 25% { - opacity: .5; - } - 50%{ - opacity: 1; - } - 75% { - opacity: .5; - } - 100%{ opacity: 0; - } -} - -.overlay-card { - background: linear-gradient(2deg, rgba(255,255,255,.03), rgba(255,255,255,.2), rgba(255,255,255,.05)); - background-size: 800% 800%; - position: absolute; - z-index: 20; - top: 6px; - left: 6px; - width: calc(100% - 4px); - height: calc(100% - 4px); - border-radius: 12px; - opacity: 0; - cursor: pointer; -} - -.card-wrap:hover .overlay-card, -.card-wrap-small:hover .overlay-card { - opacity: 1; - -webkit-animation: AnimationName 10s ease infinite; - -moz-animation: AnimationName 10s ease infinite; - animation: AnimationName 10s ease infinite; -} - -@-webkit-keyframes AnimationName { - 0%{background-position:51% 0%} - 50%{background-position:50% 100%} - 100%{background-position:51% 0%} -} -@-moz-keyframes AnimationName { - 0%{background-position:51% 0%} - 50%{background-position:50% 100%} - 100%{background-position:51% 0%} -} -@keyframes AnimationName { - 0%{background-position:51% 0%} - 50%{background-position:50% 100%} - 100%{background-position:51% 0%} -} - -.card-wrap { - float: left; - width: 126px; - height: 233px; - position: relative; - padding: 4px; - - //transition: transform .1s ease-in-out 0s; - -} - -.card-wrap-big { - width: 158px; - height: 292px; - transition: all 0.2s ease-in-out 0s; - margin: 0 0 0 20px; -} - - .card-wrap-big:hover { - //transform: scale(1.1,1.1) !important; - } - -.card-wrap-small { - float: left; - width: 74px; - height: 136px; - position: relative; - padding: 4px; -} - -.card-wrap:hover, -.card-wrap-small:hover { - z-index: 100; - //transform: scale(1.01,1.01) !important; -} - -/** - * DECK BUILDER - */ - -.all-cards { - float: left; - width: calc(100% + 50px); - height: 100%; - overflow-y: auto; - //padding: 40px; -} - -.all-cards-wrap { - overflow: hidden; - width: 53%; - float: left; - height: calc(100% + 40px); - padding: 0 20px; - margin: -100px 0 0 0; -} - -.test { - height: 100%; -} - -.heading { - float: left; - width: 100%; - position: relative; - z-index: 1000; - padding: 25px 0; - - background: -moz-linear-gradient(top, rgba(8,13,20,1) 0%, rgba(8,13,20,1) 36%, rgba(8,13,20,0.85) 100%); - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(8,13,20,1)), color-stop(36%,rgba(8,13,20,1)), color-stop(100%,rgba(8,13,20,0.85))); - background: -webkit-linear-gradient(top, rgba(8,13,20,1) 0%,rgba(8,13,20,1) 36%,rgba(8,13,20,0.85) 100%); - background: -o-linear-gradient(top, rgba(8,13,20,1) 0%,rgba(8,13,20,1) 36%,rgba(8,13,20,0.85) 100%); - background: -ms-linear-gradient(top, rgba(8,13,20,1) 0%,rgba(8,13,20,1) 36%,rgba(8,13,20,0.85) 100%); - background: linear-gradient(to bottom, rgba(8,13,20,1) 0%,rgba(8,13,20,1) 36%,rgba(8,13,20,0.85) 100%); - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#080d14', endColorstr='#d9080d14',GradientType=0 ); - - .heading-decks { - float: left; - width: 53%; - } - - .heading-my-deck { - float: left; - width: 47%; - padding: 0 0 0 10px; - } - - span { - float: left; - font-size: 17px; - color: #435365; - font-weight: 600; - margin: 0 0 0 20px; - } - - a { - font-size: 17px; - color: #435365; - margin: 0 0 0 30px; - font-weight: 600; - cursor: pointer; - - &.active { - color: #c3cdd8; - } - - } -} - -.clear-space { - float: left; - width: 100%; - height: 100px; -} \ No newline at end of file diff --git a/site/client/assets/sass/_sprite.scss b/site/client/assets/sass/_sprite.scss deleted file mode 100644 index e69de29..0000000 diff --git a/site/client/assets/sass/app.scss b/site/client/assets/sass/app.scss deleted file mode 100644 index b5b47e2..0000000 --- a/site/client/assets/sass/app.scss +++ /dev/null @@ -1,16 +0,0 @@ -@import - -'normalize', -'mixins', -'fonts', -'base', -'sprite', - -'modal', -'form', -'landing', -'inner', -'nav', -'chat', - -'shame_cards'; \ No newline at end of file diff --git a/site/client/gulpfile.js b/site/client/gulpfile.js deleted file mode 100755 index b63b44e..0000000 --- a/site/client/gulpfile.js +++ /dev/null @@ -1,15 +0,0 @@ -var elixir = require('laravel-elixir'); - -elixir.config.sourcemaps = false; - -elixir.config.cssOutput = './../public/assets/css'; -elixir.config.jsOutput = './../public/assets/js'; -elixir.config.assetsDir = 'assets/'; -elixir.config.publicDir = '../public/'; - -elixir(function(mix) { - mix.sass('app.scss'); - mix.browserify('../../app/app.js'); - - mix.task('browserify', '../../app/**/*.js'); -}); diff --git a/site/client/package.json b/site/client/package.json deleted file mode 100755 index 573c99b..0000000 --- a/site/client/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "private": true, - "devDependencies": { - "gulp": "^3.8.8", - "laravel-elixir": "^2.0.0" - }, - "dependencies": { - "director": "^1.2.8", - "vue": "^0.12.1", - "vue-resource": "^0.1.3" - } -} diff --git a/site/public/.htaccess b/site/public/.htaccess deleted file mode 100755 index 77827ae..0000000 --- a/site/public/.htaccess +++ /dev/null @@ -1,15 +0,0 @@ - - - Options -MultiViews - - - RewriteEngine On - - # Redirect Trailing Slashes... - RewriteRule ^(.*)/$ /$1 [L,R=301] - - # Handle Front Controller... - RewriteCond %{REQUEST_FILENAME} !-d - RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule ^ index.php [L] - diff --git a/site/public/assets/img/action-load.gif b/site/public/assets/img/action-load.gif deleted file mode 100644 index ab8baab..0000000 Binary files a/site/public/assets/img/action-load.gif and /dev/null differ diff --git a/site/public/assets/img/content-load.gif b/site/public/assets/img/content-load.gif deleted file mode 100644 index 97a1117..0000000 Binary files a/site/public/assets/img/content-load.gif and /dev/null differ diff --git a/site/public/assets/img/guest-load.gif b/site/public/assets/img/guest-load.gif deleted file mode 100644 index c9cf234..0000000 Binary files a/site/public/assets/img/guest-load.gif and /dev/null differ diff --git a/site/public/assets/img/inner-bg.jpg b/site/public/assets/img/inner-bg.jpg deleted file mode 100644 index 46ead9f..0000000 Binary files a/site/public/assets/img/inner-bg.jpg and /dev/null differ diff --git a/site/public/assets/img/landing-bg.jpg b/site/public/assets/img/landing-bg.jpg deleted file mode 100644 index fff4478..0000000 Binary files a/site/public/assets/img/landing-bg.jpg and /dev/null differ diff --git a/site/public/assets/img/logo-big.png b/site/public/assets/img/logo-big.png deleted file mode 100644 index 748559c..0000000 Binary files a/site/public/assets/img/logo-big.png and /dev/null differ diff --git a/site/public/assets/img/logo-medium.png b/site/public/assets/img/logo-medium.png deleted file mode 100644 index 9cad8fe..0000000 Binary files a/site/public/assets/img/logo-medium.png and /dev/null differ diff --git a/site/public/favicon.ico b/site/public/favicon.ico deleted file mode 100755 index e69de29..0000000 diff --git a/site/public/index.php b/site/public/index.php deleted file mode 100755 index d3199e4..0000000 --- a/site/public/index.php +++ /dev/null @@ -1,58 +0,0 @@ - - */ - -/* -|-------------------------------------------------------------------------- -| Register The Auto Loader -|-------------------------------------------------------------------------- -| -| Composer provides a convenient, automatically generated class loader for -| our application. We just need to utilize it! We'll simply require it -| into the script here so that we don't have to worry about manual -| loading any of our classes later on. It feels nice to relax. -| -*/ - -require __DIR__.'/../server/bootstrap/autoload.php'; - -/* -|-------------------------------------------------------------------------- -| Turn On The Lights -|-------------------------------------------------------------------------- -| -| We need to illuminate PHP development, so let us turn on the lights. -| This bootstraps the framework and gets it ready for use, then it -| will load up this application so that we can run it and send -| the responses back to the browser and delight our users. -| -*/ - -$app = require_once __DIR__.'/../server/bootstrap/app.php'; - -/* -|-------------------------------------------------------------------------- -| Run The Application -|-------------------------------------------------------------------------- -| -| Once we have the application, we can handle the incoming request -| through the kernel, and send the associated response back to -| the client's browser allowing them to enjoy the creative -| and wonderful application we have prepared for them. -| -*/ - -$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); - -$response = $kernel->handle( - $request = Illuminate\Http\Request::capture() -); - -$response->send(); - -$kernel->terminate($request, $response); diff --git a/site/server/.env.example b/site/server/.env.example deleted file mode 100755 index 214b462..0000000 --- a/site/server/.env.example +++ /dev/null @@ -1,19 +0,0 @@ -APP_ENV=local -APP_DEBUG=true -APP_KEY=SomeRandomString - -DB_HOST=localhost -DB_DATABASE=homestead -DB_USERNAME=homestead -DB_PASSWORD=secret - -CACHE_DRIVER=file -SESSION_DRIVER=file -QUEUE_DRIVER=sync - -MAIL_DRIVER=smtp -MAIL_HOST=mailtrap.io -MAIL_PORT=2525 -MAIL_USERNAME=null -MAIL_PASSWORD=null -MAIL_ENCRYPTION=null \ No newline at end of file diff --git a/site/server/app/Console/Commands/Inspire.php b/site/server/app/Console/Commands/Inspire.php deleted file mode 100755 index d69d5ee..0000000 --- a/site/server/app/Console/Commands/Inspire.php +++ /dev/null @@ -1,33 +0,0 @@ -comment(PHP_EOL.Inspiring::quote().PHP_EOL); - } -} diff --git a/site/server/app/Console/Kernel.php b/site/server/app/Console/Kernel.php deleted file mode 100755 index 2e4634d..0000000 --- a/site/server/app/Console/Kernel.php +++ /dev/null @@ -1,47 +0,0 @@ -command('inspire') - ->hourly(); - } - - /** - * @param $message - * - * @return $this - */ - public function withMessage($message) - { - $this->message = $message; - - return $this; - } - - public function returnAccess($id) - { - - } -} diff --git a/site/server/app/Events/Event.php b/site/server/app/Events/Event.php deleted file mode 100755 index 3df0620..0000000 --- a/site/server/app/Events/Event.php +++ /dev/null @@ -1,8 +0,0 @@ - \Gwent\Http\Middleware\Authenticate::class, - 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, - 'guest' => \Gwent\Http\Middleware\RedirectIfAuthenticated::class, - ]; -} diff --git a/site/server/app/Http/Middleware/Authenticate.php b/site/server/app/Http/Middleware/Authenticate.php deleted file mode 100755 index 43ac35d..0000000 --- a/site/server/app/Http/Middleware/Authenticate.php +++ /dev/null @@ -1,47 +0,0 @@ -auth = $auth; - } - - /** - * Handle an incoming request. - * - * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed - */ - public function handle($request, Closure $next) - { - if ($this->auth->guest()) { - if ($request->ajax()) { - return response('Unauthorized.', 401); - } else { - return redirect()->guest('auth/login'); - } - } - - return $next($request); - } -} diff --git a/site/server/app/Http/Middleware/EncryptCookies.php b/site/server/app/Http/Middleware/EncryptCookies.php deleted file mode 100755 index 4896485..0000000 --- a/site/server/app/Http/Middleware/EncryptCookies.php +++ /dev/null @@ -1,17 +0,0 @@ -auth = $auth; - } - - /** - * Handle an incoming request. - * - * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed - */ - public function handle($request, Closure $next) - { - if ($this->auth->check()) { - return redirect('/home'); - } - - return $next($request); - } -} diff --git a/site/server/app/Http/Middleware/VerifyCsrfToken.php b/site/server/app/Http/Middleware/VerifyCsrfToken.php deleted file mode 100755 index 37ee2ce..0000000 --- a/site/server/app/Http/Middleware/VerifyCsrfToken.php +++ /dev/null @@ -1,17 +0,0 @@ -userID = $userID; - $this->accessPoint = $accessPoint; - } -} diff --git a/site/server/app/Http/routes.php b/site/server/app/Http/routes.php deleted file mode 100755 index 25f74f8..0000000 --- a/site/server/app/Http/routes.php +++ /dev/null @@ -1,44 +0,0 @@ - 'api'], function() { - - post('/register', function() { - $user = new User(); - $user->username = Request::input('username'); - $user->email = Request::input('email'); - $user->password = bcrypt(Request::input('password')); - $user->save(); - - Auth::login($user); - }); - - }); - - get('/lobby', function() { - return innerView(); - }); - - get('/deck-builder', function() { - return innerView(); - }); - - get('/highscore', function() { - return innerView(); - }); - - get('/', function() { - if(Auth::check()) { - return redirect('/lobby'); - } - - return view('app')->withSection('landing'); - }); - - function innerView() - { - return view('app')->withSection('inner'); - } \ No newline at end of file diff --git a/site/server/app/Jobs/Job.php b/site/server/app/Jobs/Job.php deleted file mode 100755 index 789e66a..0000000 --- a/site/server/app/Jobs/Job.php +++ /dev/null @@ -1,21 +0,0 @@ - [ - 'Gwent\Listeners\EventListener', - ], - ]; - - /** - * Register any other events for your application. - * - * @param \Illuminate\Contracts\Events\Dispatcher $events - * @return void - */ - public function boot(DispatcherContract $events) - { - parent::boot($events); - - // - } -} diff --git a/site/server/app/Providers/RouteServiceProvider.php b/site/server/app/Providers/RouteServiceProvider.php deleted file mode 100755 index ba09547..0000000 --- a/site/server/app/Providers/RouteServiceProvider.php +++ /dev/null @@ -1,44 +0,0 @@ -group(['namespace' => $this->namespace], function ($router) { - require app_path('Http/routes.php'); - }); - } -} diff --git a/site/server/app/User.php b/site/server/app/User.php deleted file mode 100755 index b30ac25..0000000 --- a/site/server/app/User.php +++ /dev/null @@ -1,35 +0,0 @@ -make(Illuminate\Contracts\Console\Kernel::class); - -$status = $kernel->handle( - $input = new Symfony\Component\Console\Input\ArgvInput, - new Symfony\Component\Console\Output\ConsoleOutput -); - -/* -|-------------------------------------------------------------------------- -| Shutdown The Application -|-------------------------------------------------------------------------- -| -| Once Artisan has finished running. We will fire off the shutdown events -| so that any final work may be done by the application before we shut -| down the process. This is the last thing to happen to the request. -| -*/ - -$kernel->terminate($input, $status); - -exit($status); diff --git a/site/server/bootstrap/app.php b/site/server/bootstrap/app.php deleted file mode 100755 index 5514e8e..0000000 --- a/site/server/bootstrap/app.php +++ /dev/null @@ -1,55 +0,0 @@ -singleton( - Illuminate\Contracts\Http\Kernel::class, - Gwent\Http\Kernel::class -); - -$app->singleton( - Illuminate\Contracts\Console\Kernel::class, - Gwent\Console\Kernel::class -); - -$app->singleton( - Illuminate\Contracts\Debug\ExceptionHandler::class, - Gwent\Exceptions\Handler::class -); - -/* -|-------------------------------------------------------------------------- -| Return The Application -|-------------------------------------------------------------------------- -| -| This script returns the application instance. The instance is given to -| the calling script so we can separate the building of the instances -| from the actual running of the application and sending responses. -| -*/ - -return $app; diff --git a/site/server/bootstrap/autoload.php b/site/server/bootstrap/autoload.php deleted file mode 100755 index 3830137..0000000 --- a/site/server/bootstrap/autoload.php +++ /dev/null @@ -1,34 +0,0 @@ -=5.5.9", - "laravel/framework": "5.1.*" - }, - "require-dev": { - "fzaninotto/faker": "~1.4", - "mockery/mockery": "0.9.*", - "phpunit/phpunit": "~4.0", - "phpspec/phpspec": "~2.1" - }, - "autoload": { - "classmap": [ - "database" - ], - "psr-4": { - "Gwent\\": "app/" - } - }, - "autoload-dev": { - "classmap": [ - "tests/TestCase.php" - ] - }, - "scripts": { - "post-install-cmd": [ - "php artisan clear-compiled", - "php artisan optimize" - ], - "pre-update-cmd": [ - "php artisan clear-compiled" - ], - "post-update-cmd": [ - "php artisan optimize" - ], - "post-root-package-install": [ - "php -r \"copy('.env.example', '.env');\"" - ], - "post-create-project-cmd": [ - "php artisan key:generate" - ] - }, - "config": { - "preferred-install": "dist" - } -} diff --git a/site/server/config/app.php b/site/server/config/app.php deleted file mode 100755 index ebcf345..0000000 --- a/site/server/config/app.php +++ /dev/null @@ -1,197 +0,0 @@ - env('APP_DEBUG', false), - - /* - |-------------------------------------------------------------------------- - | Application URL - |-------------------------------------------------------------------------- - | - | This URL is used by the console to properly generate URLs when using - | the Artisan command line tool. You should set this to the root of - | your application so that it is used when running Artisan tasks. - | - */ - - 'url' => 'http://localhost', - - /* - |-------------------------------------------------------------------------- - | Application Timezone - |-------------------------------------------------------------------------- - | - | Here you may specify the default timezone for your application, which - | will be used by the PHP date and date-time functions. We have gone - | ahead and set this to a sensible default for you out of the box. - | - */ - - 'timezone' => 'UTC', - - /* - |-------------------------------------------------------------------------- - | Application Locale Configuration - |-------------------------------------------------------------------------- - | - | The application locale determines the default locale that will be used - | by the translation service provider. You are free to set this value - | to any of the locales which will be supported by the application. - | - */ - - 'locale' => 'en', - - /* - |-------------------------------------------------------------------------- - | Application Fallback Locale - |-------------------------------------------------------------------------- - | - | The fallback locale determines the locale to use when the current one - | is not available. You may change the value to correspond to any of - | the language folders that are provided through your application. - | - */ - - 'fallback_locale' => 'en', - - /* - |-------------------------------------------------------------------------- - | Encryption Key - |-------------------------------------------------------------------------- - | - | This key is used by the Illuminate encrypter service and should be set - | to a random, 32 character string, otherwise these encrypted strings - | will not be safe. Please do this before deploying an application! - | - */ - - 'key' => env('APP_KEY', 'SomeRandomString'), - - 'cipher' => 'AES-256-CBC', - - /* - |-------------------------------------------------------------------------- - | Logging Configuration - |-------------------------------------------------------------------------- - | - | Here you may configure the log settings for your application. Out of - | the box, Laravel uses the Monolog PHP logging library. This gives - | you a variety of powerful log handlers / formatters to utilize. - | - | Available Settings: "single", "daily", "syslog", "errorlog" - | - */ - - 'log' => 'single', - - /* - |-------------------------------------------------------------------------- - | Autoloaded Service Providers - |-------------------------------------------------------------------------- - | - | The service providers listed here will be automatically loaded on the - | request to your application. Feel free to add your own services to - | this array to grant expanded functionality to your applications. - | - */ - - 'providers' => [ - - /* - * Laravel Framework Service Providers... - */ - Illuminate\Foundation\Providers\ArtisanServiceProvider::class, - Illuminate\Auth\AuthServiceProvider::class, - Illuminate\Broadcasting\BroadcastServiceProvider::class, - Illuminate\Bus\BusServiceProvider::class, - Illuminate\Cache\CacheServiceProvider::class, - Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, - Illuminate\Routing\ControllerServiceProvider::class, - Illuminate\Cookie\CookieServiceProvider::class, - Illuminate\Database\DatabaseServiceProvider::class, - Illuminate\Encryption\EncryptionServiceProvider::class, - Illuminate\Filesystem\FilesystemServiceProvider::class, - Illuminate\Foundation\Providers\FoundationServiceProvider::class, - Illuminate\Hashing\HashServiceProvider::class, - Illuminate\Mail\MailServiceProvider::class, - Illuminate\Pagination\PaginationServiceProvider::class, - Illuminate\Pipeline\PipelineServiceProvider::class, - Illuminate\Queue\QueueServiceProvider::class, - Illuminate\Redis\RedisServiceProvider::class, - Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, - Illuminate\Session\SessionServiceProvider::class, - Illuminate\Translation\TranslationServiceProvider::class, - Illuminate\Validation\ValidationServiceProvider::class, - Illuminate\View\ViewServiceProvider::class, - - /* - * Application Service Providers... - */ - Gwent\Providers\AppServiceProvider::class, - Gwent\Providers\EventServiceProvider::class, - Gwent\Providers\RouteServiceProvider::class, - - ], - - /* - |-------------------------------------------------------------------------- - | Class Aliases - |-------------------------------------------------------------------------- - | - | This array of class aliases will be registered when this application - | is started. However, feel free to register as many as you wish as - | the aliases are "lazy" loaded so they don't hinder performance. - | - */ - - 'aliases' => [ - - 'App' => Illuminate\Support\Facades\App::class, - 'Artisan' => Illuminate\Support\Facades\Artisan::class, - 'Auth' => Illuminate\Support\Facades\Auth::class, - 'Blade' => Illuminate\Support\Facades\Blade::class, - 'Bus' => Illuminate\Support\Facades\Bus::class, - 'Cache' => Illuminate\Support\Facades\Cache::class, - 'Config' => Illuminate\Support\Facades\Config::class, - 'Cookie' => Illuminate\Support\Facades\Cookie::class, - 'Crypt' => Illuminate\Support\Facades\Crypt::class, - 'DB' => Illuminate\Support\Facades\DB::class, - 'Eloquent' => Illuminate\Database\Eloquent\Model::class, - 'Event' => Illuminate\Support\Facades\Event::class, - 'File' => Illuminate\Support\Facades\File::class, - 'Hash' => Illuminate\Support\Facades\Hash::class, - 'Input' => Illuminate\Support\Facades\Input::class, - 'Inspiring' => Illuminate\Foundation\Inspiring::class, - 'Lang' => Illuminate\Support\Facades\Lang::class, - 'Log' => Illuminate\Support\Facades\Log::class, - 'Mail' => Illuminate\Support\Facades\Mail::class, - 'Password' => Illuminate\Support\Facades\Password::class, - 'Queue' => Illuminate\Support\Facades\Queue::class, - 'Redirect' => Illuminate\Support\Facades\Redirect::class, - 'Redis' => Illuminate\Support\Facades\Redis::class, - 'Request' => Illuminate\Support\Facades\Request::class, - 'Response' => Illuminate\Support\Facades\Response::class, - 'Route' => Illuminate\Support\Facades\Route::class, - 'Schema' => Illuminate\Support\Facades\Schema::class, - 'Session' => Illuminate\Support\Facades\Session::class, - 'Storage' => Illuminate\Support\Facades\Storage::class, - 'URL' => Illuminate\Support\Facades\URL::class, - 'Validator' => Illuminate\Support\Facades\Validator::class, - 'View' => Illuminate\Support\Facades\View::class, - - ], - -]; diff --git a/site/server/config/auth.php b/site/server/config/auth.php deleted file mode 100755 index ab7c56b..0000000 --- a/site/server/config/auth.php +++ /dev/null @@ -1,67 +0,0 @@ - 'eloquent', - - /* - |-------------------------------------------------------------------------- - | Authentication Model - |-------------------------------------------------------------------------- - | - | When using the "Eloquent" authentication driver, we need to know which - | Eloquent model should be used to retrieve your users. Of course, it - | is often just the "User" model but you may use whatever you like. - | - */ - - 'model' => Gwent\User::class, - - /* - |-------------------------------------------------------------------------- - | Authentication Table - |-------------------------------------------------------------------------- - | - | When using the "Database" authentication driver, we need to know which - | table should be used to retrieve your users. We have chosen a basic - | default value but you may easily change it to any table you like. - | - */ - - 'table' => 'users', - - /* - |-------------------------------------------------------------------------- - | Password Reset Settings - |-------------------------------------------------------------------------- - | - | Here you may set the options for resetting passwords including the view - | that is your password reset e-mail. You can also set the name of the - | table that maintains all of the reset tokens for your application. - | - | The expire time is the number of minutes that the reset token should be - | considered valid. This security feature keeps tokens short-lived so - | they have less time to be guessed. You may change this as needed. - | - */ - - 'password' => [ - 'email' => 'emails.password', - 'table' => 'password_resets', - 'expire' => 60, - ], - -]; diff --git a/site/server/config/broadcasting.php b/site/server/config/broadcasting.php deleted file mode 100755 index 36f9b3c..0000000 --- a/site/server/config/broadcasting.php +++ /dev/null @@ -1,49 +0,0 @@ - env('BROADCAST_DRIVER', 'pusher'), - - /* - |-------------------------------------------------------------------------- - | Broadcast Connections - |-------------------------------------------------------------------------- - | - | Here you may define all of the broadcast connections that will be used - | to broadcast events to other systems or over websockets. Samples of - | each available type of connection are provided inside this array. - | - */ - - 'connections' => [ - - 'pusher' => [ - 'driver' => 'pusher', - 'key' => env('PUSHER_KEY'), - 'secret' => env('PUSHER_SECRET'), - 'app_id' => env('PUSHER_APP_ID'), - ], - - 'redis' => [ - 'driver' => 'redis', - 'connection' => 'default', - ], - - 'log' => [ - 'driver' => 'log', - ], - - ], - -]; diff --git a/site/server/config/cache.php b/site/server/config/cache.php deleted file mode 100755 index 379135b..0000000 --- a/site/server/config/cache.php +++ /dev/null @@ -1,79 +0,0 @@ - env('CACHE_DRIVER', 'file'), - - /* - |-------------------------------------------------------------------------- - | Cache Stores - |-------------------------------------------------------------------------- - | - | Here you may define all of the cache "stores" for your application as - | well as their drivers. You may even define multiple stores for the - | same cache driver to group types of items stored in your caches. - | - */ - - 'stores' => [ - - 'apc' => [ - 'driver' => 'apc', - ], - - 'array' => [ - 'driver' => 'array', - ], - - 'database' => [ - 'driver' => 'database', - 'table' => 'cache', - 'connection' => null, - ], - - 'file' => [ - 'driver' => 'file', - 'path' => storage_path('framework/cache'), - ], - - 'memcached' => [ - 'driver' => 'memcached', - 'servers' => [ - [ - 'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100, - ], - ], - ], - - 'redis' => [ - 'driver' => 'redis', - 'connection' => 'default', - ], - - ], - - /* - |-------------------------------------------------------------------------- - | Cache Key Prefix - |-------------------------------------------------------------------------- - | - | When utilizing a RAM based store such as APC or Memcached, there might - | be other applications utilizing the same cache. So, we'll specify a - | value to get prefixed to all our keys so we can avoid collisions. - | - */ - - 'prefix' => 'laravel', - -]; diff --git a/site/server/config/compile.php b/site/server/config/compile.php deleted file mode 100755 index 04807ea..0000000 --- a/site/server/config/compile.php +++ /dev/null @@ -1,35 +0,0 @@ - [ - // - ], - - /* - |-------------------------------------------------------------------------- - | Compiled File Providers - |-------------------------------------------------------------------------- - | - | Here you may list service providers which define a "compiles" function - | that returns additional files that should be compiled, providing an - | easy way to get common files from any packages you are utilizing. - | - */ - - 'providers' => [ - // - ], - -]; diff --git a/site/server/config/database.php b/site/server/config/database.php deleted file mode 100755 index d9d4ddd..0000000 --- a/site/server/config/database.php +++ /dev/null @@ -1,127 +0,0 @@ - PDO::FETCH_CLASS, - - /* - |-------------------------------------------------------------------------- - | Default Database Connection Name - |-------------------------------------------------------------------------- - | - | Here you may specify which of the database connections below you wish - | to use as your default connection for all database work. Of course - | you may use many connections at once using the Database library. - | - */ - - 'default' => env('DB_CONNECTION', 'mysql'), - - /* - |-------------------------------------------------------------------------- - | Database Connections - |-------------------------------------------------------------------------- - | - | Here are each of the database connections setup for your application. - | Of course, examples of configuring each database platform that is - | supported by Laravel is shown below to make development simple. - | - | - | All database work in Laravel is done through the PHP PDO facilities - | so make sure you have the driver for your particular database of - | choice installed on your machine before you begin development. - | - */ - - 'connections' => [ - - 'sqlite' => [ - 'driver' => 'sqlite', - 'database' => storage_path('database.sqlite'), - 'prefix' => '', - ], - - 'mysql' => [ - 'driver' => 'mysql', - 'host' => env('DB_HOST', 'localhost'), - 'database' => env('DB_DATABASE', 'forge'), - 'username' => env('DB_USERNAME', 'forge'), - 'password' => env('DB_PASSWORD', ''), - 'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock', - 'charset' => 'utf8', - 'collation' => 'utf8_unicode_ci', - 'prefix' => '', - 'strict' => false, - ], - - 'pgsql' => [ - 'driver' => 'pgsql', - 'host' => env('DB_HOST', 'localhost'), - 'database' => env('DB_DATABASE', 'forge'), - 'username' => env('DB_USERNAME', 'forge'), - 'password' => env('DB_PASSWORD', ''), - 'charset' => 'utf8', - 'prefix' => '', - 'schema' => 'public', - ], - - 'sqlsrv' => [ - 'driver' => 'sqlsrv', - 'host' => env('DB_HOST', 'localhost'), - 'database' => env('DB_DATABASE', 'forge'), - 'username' => env('DB_USERNAME', 'forge'), - 'password' => env('DB_PASSWORD', ''), - 'charset' => 'utf8', - 'prefix' => '', - ], - - ], - - /* - |-------------------------------------------------------------------------- - | Migration Repository Table - |-------------------------------------------------------------------------- - | - | This table keeps track of all the migrations that have already run for - | your application. Using this information, we can determine which of - | the migrations on disk haven't actually been run in the database. - | - */ - - 'migrations' => 'migrations', - - /* - |-------------------------------------------------------------------------- - | Redis Databases - |-------------------------------------------------------------------------- - | - | Redis is an open source, fast, and advanced key-value store that also - | provides a richer set of commands than a typical key-value systems - | such as APC or Memcached. Laravel makes it easy to dig right in. - | - */ - - 'redis' => [ - - 'cluster' => false, - - 'default' => [ - 'host' => '127.0.0.1', - 'port' => 6379, - 'database' => 0, - ], - - ], - -]; diff --git a/site/server/config/filesystems.php b/site/server/config/filesystems.php deleted file mode 100755 index 3fffcf0..0000000 --- a/site/server/config/filesystems.php +++ /dev/null @@ -1,85 +0,0 @@ - 'local', - - /* - |-------------------------------------------------------------------------- - | Default Cloud Filesystem Disk - |-------------------------------------------------------------------------- - | - | Many applications store files both locally and in the cloud. For this - | reason, you may specify a default "cloud" driver here. This driver - | will be bound as the Cloud disk implementation in the container. - | - */ - - 'cloud' => 's3', - - /* - |-------------------------------------------------------------------------- - | Filesystem Disks - |-------------------------------------------------------------------------- - | - | Here you may configure as many filesystem "disks" as you wish, and you - | may even configure multiple disks of the same driver. Defaults have - | been setup for each driver as an example of the required options. - | - */ - - 'disks' => [ - - 'local' => [ - 'driver' => 'local', - 'root' => storage_path('app'), - ], - - 'ftp' => [ - 'driver' => 'ftp', - 'host' => 'ftp.example.com', - 'username' => 'your-username', - 'password' => 'your-password', - - // Optional FTP Settings... - // 'port' => 21, - // 'root' => '', - // 'passive' => true, - // 'ssl' => true, - // 'timeout' => 30, - ], - - 's3' => [ - 'driver' => 's3', - 'key' => 'your-key', - 'secret' => 'your-secret', - 'region' => 'your-region', - 'bucket' => 'your-bucket', - ], - - 'rackspace' => [ - 'driver' => 'rackspace', - 'username' => 'your-username', - 'key' => 'your-key', - 'container' => 'your-container', - 'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/', - 'region' => 'IAD', - 'url_type' => 'publicURL', - ], - - ], - -]; diff --git a/site/server/config/mail.php b/site/server/config/mail.php deleted file mode 100755 index a22807e..0000000 --- a/site/server/config/mail.php +++ /dev/null @@ -1,124 +0,0 @@ - env('MAIL_DRIVER', 'smtp'), - - /* - |-------------------------------------------------------------------------- - | SMTP Host Address - |-------------------------------------------------------------------------- - | - | Here you may provide the host address of the SMTP server used by your - | applications. A default option is provided that is compatible with - | the Mailgun mail service which will provide reliable deliveries. - | - */ - - 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), - - /* - |-------------------------------------------------------------------------- - | SMTP Host Port - |-------------------------------------------------------------------------- - | - | This is the SMTP port used by your application to deliver e-mails to - | users of the application. Like the host we have set this value to - | stay compatible with the Mailgun e-mail application by default. - | - */ - - 'port' => env('MAIL_PORT', 587), - - /* - |-------------------------------------------------------------------------- - | Global "From" Address - |-------------------------------------------------------------------------- - | - | You may wish for all e-mails sent by your application to be sent from - | the same address. Here, you may specify a name and address that is - | used globally for all e-mails that are sent by your application. - | - */ - - 'from' => ['address' => null, 'name' => null], - - /* - |-------------------------------------------------------------------------- - | E-Mail Encryption Protocol - |-------------------------------------------------------------------------- - | - | Here you may specify the encryption protocol that should be used when - | the application send e-mail messages. A sensible default using the - | transport layer security protocol should provide great security. - | - */ - - 'encryption' => env('MAIL_ENCRYPTION', 'tls'), - - /* - |-------------------------------------------------------------------------- - | SMTP Server Username - |-------------------------------------------------------------------------- - | - | If your SMTP server requires a username for authentication, you should - | set it here. This will get used to authenticate with your server on - | connection. You may also set the "password" value below this one. - | - */ - - 'username' => env('MAIL_USERNAME'), - - /* - |-------------------------------------------------------------------------- - | SMTP Server Password - |-------------------------------------------------------------------------- - | - | Here you may set the password required by your SMTP server to send out - | messages from your application. This will be given to the server on - | connection so that the application will be able to send messages. - | - */ - - 'password' => env('MAIL_PASSWORD'), - - /* - |-------------------------------------------------------------------------- - | Sendmail System Path - |-------------------------------------------------------------------------- - | - | When using the "sendmail" driver to send e-mails, we will need to know - | the path to where Sendmail lives on this server. A default path has - | been provided here, which will work well on most of your systems. - | - */ - - 'sendmail' => '/usr/sbin/sendmail -bs', - - /* - |-------------------------------------------------------------------------- - | Mail "Pretend" - |-------------------------------------------------------------------------- - | - | When this option is enabled, e-mail will not actually be sent over the - | web and will instead be written to your application's logs files so - | you may inspect the message. This is great for local development. - | - */ - - 'pretend' => false, - -]; diff --git a/site/server/config/queue.php b/site/server/config/queue.php deleted file mode 100755 index cf9b09d..0000000 --- a/site/server/config/queue.php +++ /dev/null @@ -1,93 +0,0 @@ - env('QUEUE_DRIVER', 'sync'), - - /* - |-------------------------------------------------------------------------- - | Queue Connections - |-------------------------------------------------------------------------- - | - | Here you may configure the connection information for each server that - | is used by your application. A default configuration has been added - | for each back-end shipped with Laravel. You are free to add more. - | - */ - - 'connections' => [ - - 'sync' => [ - 'driver' => 'sync', - ], - - 'database' => [ - 'driver' => 'database', - 'table' => 'jobs', - 'queue' => 'default', - 'expire' => 60, - ], - - 'beanstalkd' => [ - 'driver' => 'beanstalkd', - 'host' => 'localhost', - 'queue' => 'default', - 'ttr' => 60, - ], - - 'sqs' => [ - 'driver' => 'sqs', - 'key' => 'your-public-key', - 'secret' => 'your-secret-key', - 'queue' => 'your-queue-url', - 'region' => 'us-east-1', - ], - - 'iron' => [ - 'driver' => 'iron', - 'host' => 'mq-aws-us-east-1.iron.io', - 'token' => 'your-token', - 'project' => 'your-project-id', - 'queue' => 'your-queue-name', - 'encrypt' => true, - ], - - 'redis' => [ - 'driver' => 'redis', - 'connection' => 'default', - 'queue' => 'default', - 'expire' => 60, - ], - - ], - - /* - |-------------------------------------------------------------------------- - | Failed Queue Jobs - |-------------------------------------------------------------------------- - | - | These options configure the behavior of failed queue job logging so you - | can control which database and table are used to store the jobs that - | have failed. You may change them to any database / table you wish. - | - */ - - 'failed' => [ - 'database' => 'mysql', 'table' => 'failed_jobs', - ], - -]; diff --git a/site/server/config/services.php b/site/server/config/services.php deleted file mode 100755 index f9a6d88..0000000 --- a/site/server/config/services.php +++ /dev/null @@ -1,38 +0,0 @@ - [ - 'domain' => '', - 'secret' => '', - ], - - 'mandrill' => [ - 'secret' => '', - ], - - 'ses' => [ - 'key' => '', - 'secret' => '', - 'region' => 'us-east-1', - ], - - 'stripe' => [ - 'model' => Gwent\User::class, - 'key' => '', - 'secret' => '', - ], - -]; diff --git a/site/server/config/session.php b/site/server/config/session.php deleted file mode 100755 index f1b0042..0000000 --- a/site/server/config/session.php +++ /dev/null @@ -1,153 +0,0 @@ - env('SESSION_DRIVER', 'file'), - - /* - |-------------------------------------------------------------------------- - | Session Lifetime - |-------------------------------------------------------------------------- - | - | Here you may specify the number of minutes that you wish the session - | to be allowed to remain idle before it expires. If you want them - | to immediately expire on the browser closing, set that option. - | - */ - - 'lifetime' => 120, - - 'expire_on_close' => false, - - /* - |-------------------------------------------------------------------------- - | Session Encryption - |-------------------------------------------------------------------------- - | - | This option allows you to easily specify that all of your session data - | should be encrypted before it is stored. All encryption will be run - | automatically by Laravel and you can use the Session like normal. - | - */ - - 'encrypt' => false, - - /* - |-------------------------------------------------------------------------- - | Session File Location - |-------------------------------------------------------------------------- - | - | When using the native session driver, we need a location where session - | files may be stored. A default has been set for you but a different - | location may be specified. This is only needed for file sessions. - | - */ - - 'files' => storage_path('framework/sessions'), - - /* - |-------------------------------------------------------------------------- - | Session Database Connection - |-------------------------------------------------------------------------- - | - | When using the "database" or "redis" session drivers, you may specify a - | connection that should be used to manage these sessions. This should - | correspond to a connection in your database configuration options. - | - */ - - 'connection' => null, - - /* - |-------------------------------------------------------------------------- - | Session Database Table - |-------------------------------------------------------------------------- - | - | When using the "database" session driver, you may specify the table we - | should use to manage the sessions. Of course, a sensible default is - | provided for you; however, you are free to change this as needed. - | - */ - - 'table' => 'sessions', - - /* - |-------------------------------------------------------------------------- - | Session Sweeping Lottery - |-------------------------------------------------------------------------- - | - | Some session drivers must manually sweep their storage location to get - | rid of old sessions from storage. Here are the chances that it will - | happen on a given request. By default, the odds are 2 out of 100. - | - */ - - 'lottery' => [2, 100], - - /* - |-------------------------------------------------------------------------- - | Session Cookie Name - |-------------------------------------------------------------------------- - | - | Here you may change the name of the cookie used to identify a session - | instance by ID. The name specified here will get used every time a - | new session cookie is created by the framework for every driver. - | - */ - - 'cookie' => 'laravel_session', - - /* - |-------------------------------------------------------------------------- - | Session Cookie Path - |-------------------------------------------------------------------------- - | - | The session cookie path determines the path for which the cookie will - | be regarded as available. Typically, this will be the root path of - | your application but you are free to change this when necessary. - | - */ - - 'path' => '/', - - /* - |-------------------------------------------------------------------------- - | Session Cookie Domain - |-------------------------------------------------------------------------- - | - | Here you may change the domain of the cookie used to identify a session - | in your application. This will determine which domains the cookie is - | available to in your application. A sensible default has been set. - | - */ - - 'domain' => null, - - /* - |-------------------------------------------------------------------------- - | HTTPS Only Cookies - |-------------------------------------------------------------------------- - | - | By setting this option to true, session cookies will only be sent back - | to the server if the browser has a HTTPS connection. This will keep - | the cookie from being sent to you if it can not be done securely. - | - */ - - 'secure' => false, - -]; diff --git a/site/server/config/view.php b/site/server/config/view.php deleted file mode 100755 index b47f3ee..0000000 --- a/site/server/config/view.php +++ /dev/null @@ -1,33 +0,0 @@ - [ - realpath(base_path('../client')), - ], - - /* - |-------------------------------------------------------------------------- - | Compiled View Path - |-------------------------------------------------------------------------- - | - | This option determines where all the compiled Blade templates will be - | stored for your application. Typically, this is within the storage - | directory. However, as usual, you are free to change this value. - | - */ - - 'compiled' => realpath(storage_path('framework/views')), - -]; diff --git a/site/server/database/.gitignore b/site/server/database/.gitignore deleted file mode 100755 index 9b1dffd..0000000 --- a/site/server/database/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.sqlite diff --git a/site/server/database/factories/ModelFactory.php b/site/server/database/factories/ModelFactory.php deleted file mode 100755 index e1efbcc..0000000 --- a/site/server/database/factories/ModelFactory.php +++ /dev/null @@ -1,21 +0,0 @@ -define(Gwent\User::class, function ($faker) { - return [ - 'name' => $faker->name, - 'email' => $faker->email, - 'password' => str_random(10), - 'remember_token' => str_random(10), - ]; -}); diff --git a/site/server/database/migrations/.gitkeep b/site/server/database/migrations/.gitkeep deleted file mode 100755 index e69de29..0000000 diff --git a/site/server/database/migrations/2014_10_12_000000_create_users_table.php b/site/server/database/migrations/2014_10_12_000000_create_users_table.php deleted file mode 100755 index a1c7b16..0000000 --- a/site/server/database/migrations/2014_10_12_000000_create_users_table.php +++ /dev/null @@ -1,34 +0,0 @@ -increments('id'); - $table->string('username')->unique(); - $table->string('email')->unique(); - $table->string('password', 60); - $table->rememberToken(); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('users'); - } -} diff --git a/site/server/database/migrations/2014_10_12_100000_create_password_resets_table.php b/site/server/database/migrations/2014_10_12_100000_create_password_resets_table.php deleted file mode 100755 index 00057f9..0000000 --- a/site/server/database/migrations/2014_10_12_100000_create_password_resets_table.php +++ /dev/null @@ -1,31 +0,0 @@ -string('email')->index(); - $table->string('token')->index(); - $table->timestamp('created_at'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('password_resets'); - } -} diff --git a/site/server/database/seeds/.gitkeep b/site/server/database/seeds/.gitkeep deleted file mode 100755 index e69de29..0000000 diff --git a/site/server/database/seeds/DatabaseSeeder.php b/site/server/database/seeds/DatabaseSeeder.php deleted file mode 100755 index fb9e600..0000000 --- a/site/server/database/seeds/DatabaseSeeder.php +++ /dev/null @@ -1,21 +0,0 @@ -call('UserTableSeeder'); - - Model::reguard(); - } -} diff --git a/site/server/phpspec.yml b/site/server/phpspec.yml deleted file mode 100755 index 8044be3..0000000 --- a/site/server/phpspec.yml +++ /dev/null @@ -1,5 +0,0 @@ -suites: - main: - namespace: Gwent - psr4_prefix: Gwent - src_path: app \ No newline at end of file diff --git a/site/server/phpunit.xml b/site/server/phpunit.xml deleted file mode 100755 index 276262d..0000000 --- a/site/server/phpunit.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - ./tests/ - - - - - app/ - - - - - - - - - diff --git a/site/server/server.php b/site/server/server.php deleted file mode 100755 index f65c7c4..0000000 --- a/site/server/server.php +++ /dev/null @@ -1,21 +0,0 @@ - - */ - -$uri = urldecode( - parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) -); - -// This file allows us to emulate Apache's "mod_rewrite" functionality from the -// built-in PHP web server. This provides a convenient way to test a Laravel -// application without having installed a "real" web server software here. -if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { - return false; -} - -require_once __DIR__.'/public/index.php'; diff --git a/site/server/storage/app/.gitignore b/site/server/storage/app/.gitignore deleted file mode 100755 index c96a04f..0000000 --- a/site/server/storage/app/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore \ No newline at end of file diff --git a/site/server/storage/framework/.gitignore b/site/server/storage/framework/.gitignore deleted file mode 100755 index 953edb7..0000000 --- a/site/server/storage/framework/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -config.php -routes.php -compiled.php -services.json -events.scanned.php -routes.scanned.php -down diff --git a/site/server/storage/framework/cache/.gitignore b/site/server/storage/framework/cache/.gitignore deleted file mode 100755 index c96a04f..0000000 --- a/site/server/storage/framework/cache/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore \ No newline at end of file diff --git a/site/server/storage/framework/sessions/.gitignore b/site/server/storage/framework/sessions/.gitignore deleted file mode 100755 index d6b7ef3..0000000 --- a/site/server/storage/framework/sessions/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/site/server/storage/framework/views/.gitignore b/site/server/storage/framework/views/.gitignore deleted file mode 100755 index d6b7ef3..0000000 --- a/site/server/storage/framework/views/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/site/server/storage/logs/.gitignore b/site/server/storage/logs/.gitignore deleted file mode 100755 index d6b7ef3..0000000 --- a/site/server/storage/logs/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/site/server/tests/ExampleTest.php b/site/server/tests/ExampleTest.php deleted file mode 100755 index 7e81d37..0000000 --- a/site/server/tests/ExampleTest.php +++ /dev/null @@ -1,19 +0,0 @@ -visit('/') - ->see('Laravel 5'); - } -} diff --git a/site/server/tests/TestCase.php b/site/server/tests/TestCase.php deleted file mode 100755 index 8578b17..0000000 --- a/site/server/tests/TestCase.php +++ /dev/null @@ -1,25 +0,0 @@ -make(Illuminate\Contracts\Console\Kernel::class)->bootstrap(); - - return $app; - } -}