Add Munzee oauth support (close #14)
This commit is contained in:
parent
504924c4e2
commit
78233a9f03
@ -11,10 +11,19 @@ var settings = [
|
|||||||
title: "Use alternate map",
|
title: "Use alternate map",
|
||||||
text: "Replace the 3D map with a lightweight power-saving 2D version.",
|
text: "Replace the 3D map with a lightweight power-saving 2D version.",
|
||||||
icon: "game-icon game-icon-treasure-map",
|
icon: "game-icon game-icon-treasure-map",
|
||||||
color: "green",
|
color: "yellow",
|
||||||
type: "toggle",
|
type: "toggle",
|
||||||
restart: true
|
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",
|
setting: "opensource",
|
||||||
title: "Credits",
|
title: "Credits",
|
||||||
|
@ -14,6 +14,8 @@ var SETTINGS = {
|
|||||||
map_style_json: "https://maps.netsyms.net/styles/terranquest-3d/style.json",
|
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",
|
map_pbf_url: "https://maps.netsyms.net/data/v3/{z}/{x}/{y}.pbf",
|
||||||
stripe_pubkey: "",
|
stripe_pubkey: "",
|
||||||
|
munzee_url: "",
|
||||||
|
munzee_clientkey: "",
|
||||||
teams: {
|
teams: {
|
||||||
1: {id: 1, name: "Water", icon: "fas fa-tint", color: "blue", textcolor: "black", hue: 230},
|
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},
|
2: {id: 2, name: "Fire", icon: "fas fa-fire", color: "red", textcolor: "black", hue: 0},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user