Add Munzee oauth support (close #14)

master
Skylar Ittner 5 years ago
parent 504924c4e2
commit 78233a9f03

@ -11,10 +11,19 @@ var settings = [
title: "Use alternate map",
text: "Replace the 3D map with a lightweight power-saving 2D version.",
icon: "game-icon game-icon-treasure-map",
color: "green",
color: "yellow",
type: "toggle",
restart: true
},
{
setting: "munzee",
title: "Link Munzee account",
text: "Scan Munzee codes from inside TerranQuest.",
icon: "fas fa-qrcode",
color: "green",
onclick: "openBrowser('" + SETTINGS["munzee_url"] + "?username=" + localStorage.getItem("username") + "&password=" + localStorage.getItem("password") + "')",
type: "link"
},
{
setting: "opensource",
title: "Credits",

@ -14,6 +14,8 @@ var SETTINGS = {
map_style_json: "https://maps.netsyms.net/styles/terranquest-3d/style.json",
map_pbf_url: "https://maps.netsyms.net/data/v3/{z}/{x}/{y}.pbf",
stripe_pubkey: "",
munzee_url: "",
munzee_clientkey: "",
teams: {
1: {id: 1, name: "Water", icon: "fas fa-tint", color: "blue", textcolor: "black", hue: 230},
2: {id: 2, name: "Fire", icon: "fas fa-fire", color: "red", textcolor: "black", hue: 0},

Loading…
Cancel
Save