work on mail settings
parent
559f6bed49
commit
26ddee54ce
|
@ -29,7 +29,6 @@
|
||||||
|
|
||||||
**The [GitHub repository](https://github.com/beardog108/onionr/) is a mirror, do not submit PRs or issues there.**
|
**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.
|
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.
|
||||||
|
|
||||||
|
|
|
@ -215,7 +215,8 @@ def start(override: bool = False):
|
||||||
logger.fatal('Cannot start. Daemon is already running,'
|
logger.fatal('Cannot start. Daemon is already running,'
|
||||||
+ ' or it did not exit cleanly.\n'
|
+ ' or it did not exit cleanly.\n'
|
||||||
+ ' (if you are sure that there is not a daemon running,'
|
+ ' (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:
|
else:
|
||||||
if not onionrvalues.DEVELOPMENT_MODE:
|
if not onionrvalues.DEVELOPMENT_MODE:
|
||||||
lock_file = open(filepaths.lock_file, 'w')
|
lock_file = open(filepaths.lock_file, 'w')
|
||||||
|
|
|
@ -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()
|
|
@ -2,25 +2,26 @@
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset='utf-8'>
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>
|
<title>
|
||||||
Onionr Mail
|
Onionr Mail
|
||||||
</title>
|
</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/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="/gettheme">
|
||||||
<link rel="stylesheet" href="/shared/node_modules/bulma-switch/dist/css/bulma-switch.min.css">
|
<link rel="stylesheet" href="/shared/node_modules/bulma-switch/dist/css/bulma-switch.min.css">
|
||||||
<link rel="stylesheet" href="/mail/mail.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/PNotify.js"></script>
|
||||||
<script defer src='/shared/node_modules/pnotify/dist/iife/PNotifyButtons.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/main/apicheck.js"></script>
|
||||||
<script defer src='/shared/misc.js'></script>
|
<script defer src="/shared/misc.js"></script>
|
||||||
<script defer src='/mail/sethumanreadable.js'></script>
|
<script defer src="/mail/sethumanreadable.js"></script>
|
||||||
<script defer src='/mail/mail.js'></script>
|
<script defer src="/mail/closesettings.js"></script>
|
||||||
<script defer src='/mail/sendmail.js'></script>
|
<script defer src="/mail/mail.js"></script>
|
||||||
<script defer src='/shared/navbar.js'></script>
|
<script defer src="/mail/sendmail.js"></script>
|
||||||
|
<script defer src="/shared/navbar.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -130,19 +131,24 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal" id="settingsModal">
|
<div id="settingsModal" class="modal">
|
||||||
<div class="modal-background"></div>
|
<div class="modal-background"></div>
|
||||||
<div class="modal-card">
|
<div class="modal-card">
|
||||||
<header class="modal-card-head">
|
<header class="modal-card-head">
|
||||||
<button class="closeSettingsModal delete" aria-label="close"></button>
|
<button class="closeSettingsModal delete" aria-label="close"></button>
|
||||||
</header>
|
</header>
|
||||||
<section class="modal-card-body">
|
<section class="modal-card-body">
|
||||||
<h1 class="title is-3 is-centered">Settings</h1>
|
<div class="columns">
|
||||||
|
<div class="column">
|
||||||
<div class="field">
|
Default Forward Secrecy
|
||||||
<input id="forwardSecrecySetting" type="checkbox"
|
</div>
|
||||||
class="switch is-rounded is-warning" checked>
|
<div class="column is-2">
|
||||||
<label for="forwardSecrecySetting">Default Forward Secrecy</label>
|
<div class="field">
|
||||||
|
<input id="forwardSecrecySetting" type="checkbox"
|
||||||
|
class="switch is-rounded is-warning" checked>
|
||||||
|
<label for="forwardSecrecySetting"></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -43,3 +43,9 @@
|
||||||
#tabBtns ul .icon {
|
#tabBtns ul .icon {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#settingsModal .modal-card-body{
|
||||||
|
font-size: 150%;
|
||||||
|
min-height: 300px;
|
||||||
|
}
|
|
@ -22,7 +22,7 @@
|
||||||
"_resolved": "https://registry.npmjs.org/bulma-switch/-/bulma-switch-2.0.0.tgz",
|
"_resolved": "https://registry.npmjs.org/bulma-switch/-/bulma-switch-2.0.0.tgz",
|
||||||
"_shasum": "7a187cd1bb8073e9a542478d936b89315f1ffcd8",
|
"_shasum": "7a187cd1bb8073e9a542478d936b89315f1ffcd8",
|
||||||
"_spec": "bulma-switch",
|
"_spec": "bulma-switch",
|
||||||
"_where": "/home/anonymous/programming/onionr/static-data/www/shared/css",
|
"_where": "/home/anonymous/programming/onionr/static-data/www/shared",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Wikiki",
|
"name": "Wikiki",
|
||||||
"email": "wikiki@protonmail.com",
|
"email": "wikiki@protonmail.com",
|
||||||
|
|
|
@ -6,6 +6,11 @@
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/bulma-switch/-/bulma-switch-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/bulma-switch/-/bulma-switch-2.0.0.tgz",
|
||||||
"integrity": "sha512-myD38zeUfjmdduq+pXabhJEe3x2hQP48l/OI+Y0fO3HdDynZUY/VJygucvEAJKRjr4HxD5DnEm4yx+oDOBXpAA=="
|
"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=="
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue