From 0ff8e22973ff7ec6b3a844d389a62a3533667742 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sun, 17 Feb 2019 15:55:53 -0600 Subject: [PATCH] merged forgotton ui stuff --- onionr/static-data/www/mail/index.html | 14 ------ onionr/static-data/www/mail/mail.css | 5 -- onionr/static-data/www/mail/mail.js | 49 -------------------- onionr/static-data/www/shared/main/stats.js | 6 --- onionr/static-data/www/shared/main/style.css | 13 ------ onionr/static-data/www/shared/misc.js | 11 ----- 6 files changed, 98 deletions(-) diff --git a/onionr/static-data/www/mail/index.html b/onionr/static-data/www/mail/index.html index 67a67ba6..03b0b8ec 100644 --- a/onionr/static-data/www/mail/index.html +++ b/onionr/static-data/www/mail/index.html @@ -5,10 +5,7 @@ Onionr Mail -<<<<<<< HEAD -======= ->>>>>>> contacts @@ -16,16 +13,6 @@
-<<<<<<< HEAD - - Onionr Mail -
- -
-
- - -=======
Onionr Mail ✉️ @@ -71,6 +58,5 @@ ->>>>>>> contacts \ No newline at end of file diff --git a/onionr/static-data/www/mail/mail.css b/onionr/static-data/www/mail/mail.css index 116395ca..a8d27120 100644 --- a/onionr/static-data/www/mail/mail.css +++ b/onionr/static-data/www/mail/mail.css @@ -2,10 +2,6 @@ padding-top: 1em; } .threads div span{ -<<<<<<< HEAD - padding-left: 0.5em; - padding-right: 0.5em; -======= padding-left: 0.2em; padding-right: 0.2em; } @@ -98,5 +94,4 @@ input{ color: black; font-size: 1.5em; width: 10%; ->>>>>>> contacts } \ No newline at end of file diff --git a/onionr/static-data/www/mail/mail.js b/onionr/static-data/www/mail/mail.js index 43d89335..4513ce9b 100644 --- a/onionr/static-data/www/mail/mail.js +++ b/onionr/static-data/www/mail/mail.js @@ -1,45 +1,3 @@ -<<<<<<< HEAD -pms = '' -threadPart = document.getElementById('threads') -function getInbox(){ - for(var i = 0; i < pms.length; i++) { - fetch('/getblockdata/' + pms[i], { - headers: { - "token": webpass - }}) - .then((resp) => resp.json()) // Transform the data into json - .then(function(resp) { - - var entry = document.createElement('div') - - var bHashDisplay = document.createElement('a') - var senderInput = document.createElement('input') - var subjectLine = document.createElement('span') - var dateStr = document.createElement('span') - var humanDate = new Date(0) - humanDate.setUTCSeconds(resp['meta']['time']) - senderInput.value = resp['meta']['signer'] - bHashDisplay.innerText = pms[i - 1].substring(0, 10) - bHashDisplay.setAttribute('hash', pms[i - 1]); - senderInput.readOnly = true - dateStr.innerText = humanDate.toString() - if (resp['metadata']['subject'] === undefined || resp['metadata']['subject'] === null) { - subjectLine.innerText = '()' - } - else{ - subjectLine.innerText = '(' + resp['metadata']['subject'] + ')' - } - //entry.innerHTML = 'sender ' + resp['meta']['signer'] + ' - ' + resp['meta']['time'] - threadPart.appendChild(entry) - entry.appendChild(bHashDisplay) - entry.appendChild(senderInput) - entry.appendChild(subjectLine) - entry.appendChild(dateStr) - - }.bind([pms, i])) - } - -======= /* Onionr - P2P Anonymous Storage Network @@ -215,7 +173,6 @@ function showSentboxWindow(to, content){ document.getElementById('toID').value = to document.getElementById('sentboxDisplayText').innerText = content overlay('sentboxDisplay') ->>>>>>> contacts } fetch('/getblocksbytype/pm', { @@ -225,11 +182,6 @@ fetch('/getblocksbytype/pm', { .then((resp) => resp.text()) // Transform the data into json .then(function(data) { pms = data.split(',') -<<<<<<< HEAD - getInbox(pms) - }) - -======= setActiveTab('inbox') }) @@ -264,4 +216,3 @@ for (var i = 0; i < document.getElementsByClassName('closeOverlay').length; i++) } } ->>>>>>> contacts diff --git a/onionr/static-data/www/shared/main/stats.js b/onionr/static-data/www/shared/main/stats.js index 6d56ed72..3a445acb 100644 --- a/onionr/static-data/www/shared/main/stats.js +++ b/onionr/static-data/www/shared/main/stats.js @@ -21,10 +21,7 @@ uptimeDisplay = document.getElementById('uptime') connectedDisplay = document.getElementById('connectedNodes') storedBlockDisplay = document.getElementById('storedBlocks') queuedBlockDisplay = document.getElementById('blockQueue') -<<<<<<< HEAD -======= lastIncoming = document.getElementById('lastIncoming') ->>>>>>> contacts function getStats(){ stats = JSON.parse(httpGet('getstats', webpass)) @@ -32,8 +29,6 @@ function getStats(){ connectedDisplay.innerText = stats['connectedNodes'] storedBlockDisplay.innerText = stats['blockCount'] queuedBlockDisplay.innerText = stats['blockQueueCount'] -<<<<<<< HEAD -======= var lastConnect = httpGet('/lastconnect') if (lastConnect > 0){ var humanDate = new Date(0) @@ -44,6 +39,5 @@ function getStats(){ lastConnect = 'Unknown' } lastIncoming.innerText = lastConnect ->>>>>>> contacts } getStats() \ No newline at end of file diff --git a/onionr/static-data/www/shared/main/style.css b/onionr/static-data/www/shared/main/style.css index 78340541..adbb7017 100644 --- a/onionr/static-data/www/shared/main/style.css +++ b/onionr/static-data/www/shared/main/style.css @@ -37,11 +37,7 @@ body{ align-items:center; } .logo{ -<<<<<<< HEAD - max-width: 25%; -======= max-width: 20%; ->>>>>>> contacts vertical-align: middle; } .logoText{ @@ -136,14 +132,6 @@ body{ left: 0px; top: 0px; width:100%; -<<<<<<< HEAD - opacity: 0.9; - height:100%; - text-align:center; - z-index: 1000; - background-color: black; - } -======= height:100%; text-align:left; z-index: 1000; @@ -163,4 +151,3 @@ body{ content: '❌'; padding: 5px; } ->>>>>>> contacts diff --git a/onionr/static-data/www/shared/misc.js b/onionr/static-data/www/shared/misc.js index 464a0802..d4322887 100644 --- a/onionr/static-data/www/shared/misc.js +++ b/onionr/static-data/www/shared/misc.js @@ -1,7 +1,3 @@ -<<<<<<< HEAD -webpass = document.location.hash.replace('#', '') -nowebpass = false -======= /* Onionr - P2P Anonymous Storage Network @@ -24,7 +20,6 @@ nowebpass = false webpass = document.location.hash.replace('#', '') nowebpass = false ->>>>>>> contacts if (typeof webpass == "undefined"){ webpass = localStorage['webpass'] } @@ -37,13 +32,10 @@ if (typeof webpass == "undefined" || webpass == ""){ nowebpass = true } -<<<<<<< HEAD -======= function arrayContains(needle, arrhaystack) { return (arrhaystack.indexOf(needle) > -1); } ->>>>>>> contacts function httpGet(theUrl) { var xmlHttp = new XMLHttpRequest() xmlHttp.open( "GET", theUrl, false ) // false for synchronous request @@ -59,10 +51,7 @@ function httpGet(theUrl) { function overlay(overlayID) { el = document.getElementById(overlayID) el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible" -<<<<<<< HEAD -======= scroll(0,0) ->>>>>>> contacts } var passLinks = document.getElementsByClassName("idLink")