Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.

Commit

Permalink
Addressing #27
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhudson committed Jun 13, 2017
1 parent 7f8baa6 commit a433f54
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 24 deletions.
23 changes: 18 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"main": "src/index.js",
"name": "Golden",
"description": "An Android Netrunner tournament scorekeeping software.",
"version": "1.1.2",
"version": "1.1.3",
"license": "LGPL-3.0",
"author": "MrHudson",
"devDependencies": {
Expand Down Expand Up @@ -37,6 +37,7 @@
]
},
"config": {
"icon": "build/icon",
"forge": {
"make_targets": {
"win32": [
Expand All @@ -54,11 +55,23 @@
"electronWinstallerConfig": {
"name": ""
},
"electronInstallerDebian": {},
"electronInstallerRedhat": {},
"electronInstallerDebian": {
"icon": "build/icons/256x256.png",
"options": {
"genericName": "Netrunner Tournament Manager",
"description": "Program for managing Android: Netrunner tournaments."
}
},
"electronInstallerRedhat": {
"options": {
"genericName": "Netrunner Tournament Manager",
"description": "Program for managing Android: Netrunner tournaments.",
"icon": "build/icons/256x256.png"
}
},
"github_repository": {
"owner": "",
"name": ""
"owner": "MrHuds0n",
"name": "Golden"
},
"windowsStoreConfig": {
"packageName": ""
Expand Down
33 changes: 14 additions & 19 deletions src/web/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,7 @@ import { Player, Round, Match, Cut } from './js/tournament'
import { serialise, deserialise } from './js/lib/cjson'
import { redrawPlayers, redrawRounds, redrawMatches, redrawWebServices, redrawHistory, toast } from './js/lib/ui'

let structure = {
"meta": {
"name": "",
"location": "",
"host": "",
"rank": ""
},
"players": [ ],
"rounds": [ ],
"gameHistory": [ ]
}
let structure = {}

// Monolith globals.
const API = "http://85.255.12.57/"
Expand Down Expand Up @@ -150,14 +140,19 @@ $("#toggle-web-services").addEventListener("click", () => {
$("#new-tournament-confirm").addEventListener("click", () => {
structure = {}

structure.meta = {
"name": $("#new-tournament-name").value.trim(),
"host": $("#new-tournament-host").value.trim(),
"location": $("#new-tournament-location").value.trim(),
"id": uuid.v4(),
"shortid": shortid.generate(),
"rank": $("#new-tournament-rank").value,
"monolith": $("#new-tournament-web-services").checked
structure= {
meta: {
"name": $("#new-tournament-name").value.trim(),
"host": $("#new-tournament-host").value.trim(),
"location": $("#new-tournament-location").value.trim(),
"id": uuid.v4(),
"shortid": shortid.generate(),
"rank": $("#new-tournament-rank").value,
"monolith": $("#new-tournament-web-services").checked
},
players: [],
rounds: [],
gameHistory: []
}

$("#new-tournament").classList.add("inactive")
Expand Down

0 comments on commit a433f54

Please sign in to comment.