work on mail settings

master
Kevin Froman 2020-02-10 08:01:49 -06:00
parent 559f6bed49
commit 26ddee54ce
7 changed files with 67 additions and 20 deletions

View File

@ -29,7 +29,6 @@
**The [GitHub repository](https://github.com/beardog108/onionr/) is a mirror, do not submit PRs or issues there.**
# About
Onionr ("Onion Relay") is a decentralized/distributed peer-to-peer communication network, designed to be anonymous and resistant to (meta)data analysis, spam, and corruption.

View File

@ -215,7 +215,8 @@ def start(override: bool = False):
logger.fatal('Cannot start. Daemon is already running,'
+ ' or it did not exit cleanly.\n'
+ ' (if you are sure that there is not a daemon running,'
+ ' delete onionr.lock & try again).', terminal=True)
+ f' delete {filepaths.lock_file} & try again).',
terminal=True)
else:
if not onionrvalues.DEVELOPMENT_MODE:
lock_file = open(filepaths.lock_file, 'w')

View File

@ -0,0 +1,30 @@
/*
Onionr - Private P2P Communication
Settings modal closing
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
var setCloseSettingsModal = function(){
var closeButtonElements = document.getElementsByClassName('closeSettingsModal')
for (i = 0; i < closeButtonElements; i++){
closeButtonElements[i].onclick = function(){
document.getElementById('settingsModal').classList.remove('is-active')
}
}
}
setCloseSettingsModal()

View File

@ -2,25 +2,26 @@
<html>
<head>
<meta charset='utf-8'>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
Onionr Mail
</title>
<link rel='shortcut icon' type='image/ico' href='/shared/images/favicon.ico'>
<link rel="shortcut icon" type="image/ico" href="/shared/images/favicon.ico">
<link rel="stylesheet" href="/shared/fontawesome-free-5.10.2/css/all.min.css">
<link rel='stylesheet' href="/shared/main/PNotifyBrightTheme.css">
<link rel="stylesheet" href="/shared/main/PNotifyBrightTheme.css">
<link rel="stylesheet" href="/gettheme">
<link rel="stylesheet" href="/shared/node_modules/bulma-switch/dist/css/bulma-switch.min.css">
<link rel="stylesheet" href="/mail/mail.css">
<script defer src='/shared/node_modules/pnotify/dist/iife/PNotify.js'></script>
<script defer src='/shared/node_modules/pnotify/dist/iife/PNotifyButtons.js'></script>
<script defer src="/shared/node_modules/pnotify/dist/iife/PNotify.js"></script>
<script defer src="/shared/node_modules/pnotify/dist/iife/PNotifyButtons.js"></script>
<script defer src="/shared/main/apicheck.js"></script>
<script defer src='/shared/misc.js'></script>
<script defer src='/mail/sethumanreadable.js'></script>
<script defer src='/mail/mail.js'></script>
<script defer src='/mail/sendmail.js'></script>
<script defer src='/shared/navbar.js'></script>
<script defer src="/shared/misc.js"></script>
<script defer src="/mail/sethumanreadable.js"></script>
<script defer src="/mail/closesettings.js"></script>
<script defer src="/mail/mail.js"></script>
<script defer src="/mail/sendmail.js"></script>
<script defer src="/shared/navbar.js"></script>
</head>
<body>
@ -130,19 +131,24 @@
</div>
</div>
<div class="modal" id="settingsModal">
<div id="settingsModal" class="modal">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<button class="closeSettingsModal delete" aria-label="close"></button>
</header>
<section class="modal-card-body">
<h1 class="title is-3 is-centered">Settings</h1>
<div class="field">
<input id="forwardSecrecySetting" type="checkbox"
class="switch is-rounded is-warning" checked>
<label for="forwardSecrecySetting">Default Forward Secrecy</label>
<div class="columns">
<div class="column">
Default Forward Secrecy
</div>
<div class="column is-2">
<div class="field">
<input id="forwardSecrecySetting" type="checkbox"
class="switch is-rounded is-warning" checked>
<label for="forwardSecrecySetting"></label>
</div>
</div>
</div>
</section>
</div>

View File

@ -43,3 +43,9 @@
#tabBtns ul .icon {
pointer-events: none;
}
#settingsModal .modal-card-body{
font-size: 150%;
min-height: 300px;
}

View File

@ -22,7 +22,7 @@
"_resolved": "https://registry.npmjs.org/bulma-switch/-/bulma-switch-2.0.0.tgz",
"_shasum": "7a187cd1bb8073e9a542478d936b89315f1ffcd8",
"_spec": "bulma-switch",
"_where": "/home/anonymous/programming/onionr/static-data/www/shared/css",
"_where": "/home/anonymous/programming/onionr/static-data/www/shared",
"author": {
"name": "Wikiki",
"email": "wikiki@protonmail.com",

View File

@ -6,6 +6,11 @@
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/bulma-switch/-/bulma-switch-2.0.0.tgz",
"integrity": "sha512-myD38zeUfjmdduq+pXabhJEe3x2hQP48l/OI+Y0fO3HdDynZUY/VJygucvEAJKRjr4HxD5DnEm4yx+oDOBXpAA=="
},
"pnotify": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/pnotify/-/pnotify-4.0.0.tgz",
"integrity": "sha512-Fs3xlxmnlgXjUdM3xFfImfkLh5RmTgfRyPS5yT43w0OIrVULbGu1g3mpiH9H2nlAZ5dFEJRqh43sQXl/mVW6yA=="
}
}
}