added dark mode
This commit is contained in:
parent
14334e7197
commit
215c8d2c3a
14 changed files with 51 additions and 13 deletions
|
@ -12,7 +12,7 @@
|
|||
"insert_deniable_blocks": true,
|
||||
"max_block_age": 2678400,
|
||||
"public_key": "",
|
||||
"random_bind_ip": false,
|
||||
"random_bind_ip": true,
|
||||
"use_bootstrap_list": true,
|
||||
"store_plaintext_blocks": true,
|
||||
"show_notifications": true
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<link rel='stylesheet' href='/shared/main/PNotifyBrightTheme.css'>
|
||||
<link rel="stylesheet" href="/shared/fontawesome-free-5.10.2/css/all.min.css">
|
||||
<link rel='stylesheet' href='/shared/main/bulma.min.css'>
|
||||
<link rel='stylesheet' href='/shared/main/bulmaswatch.min.css'>
|
||||
<link rel="stylesheet" href='/shared/main/styles-new.css'>
|
||||
<link rel="stylesheet" href="theme.css">
|
||||
<script defer src="/shared/base32.js"></script>
|
||||
|
@ -23,6 +24,7 @@
|
|||
<script defer src='/shared/misc.js'></script>
|
||||
<script defer src="detect-plaintext-storage.js"></script>
|
||||
<script defer src='sethumanreadable.js'></script>
|
||||
<script defer src="default-circle-picker.js"></script>
|
||||
<script defer src='board.js'></script>
|
||||
<script defer src='autorefresh.js'></script>
|
||||
</head>
|
||||
|
@ -111,7 +113,7 @@
|
|||
<div class="field">
|
||||
<div class="field has-addons">
|
||||
<p class="control">
|
||||
<a class="button is-static">Board Name</a>
|
||||
<a class="button is-static">Circle Name</a>
|
||||
</p>
|
||||
<p class="control is-expanded">
|
||||
<input id='feedIDInput' class="input" placeholder="Board name" value="global">
|
||||
|
@ -120,6 +122,20 @@
|
|||
<a class="button is-success" id='refreshFeed'>Refresh Feed</a>
|
||||
</p>
|
||||
</div>
|
||||
<label for="recommendedBoards">Main Circles:</label>
|
||||
<select id="recommendedBoards">
|
||||
<option value="global">Global</option>
|
||||
<option value="onionr">Onionr</option>
|
||||
<option value="games">Games</option>
|
||||
<option value="politics">Politics</option>
|
||||
<option value="tech">Tech</option>
|
||||
<option value="random">Random</option>
|
||||
<option value="privacy">Privacy</option>
|
||||
</select>
|
||||
<p class="control">
|
||||
<br>
|
||||
Note: All posts in Circles are publicly accessible.
|
||||
</p>
|
||||
<input type="checkbox" class="checkbox" id="refreshCheckbox" checked>
|
||||
<label for="refreshCheckbox">Auto refresh feed</label>
|
||||
<br>
|
||||
|
@ -128,7 +144,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<span id='loadingBoard'>Loading board... <i class="fas fa-yin-yang fa-spin"></i></span>
|
||||
<span id='loadingBoard'>Loading Circle... <i class="fas fa-yin-yang fa-spin"></i></span>
|
||||
<div id='feed'>
|
||||
<span id='none'>None yet, try refreshing 😃</span>
|
||||
<!--Message Items are appended here based on template-->
|
||||
|
|
|
@ -4,3 +4,8 @@
|
|||
word-break:break-word;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
body{
|
||||
background-color: #212224;
|
||||
color: white;
|
||||
}
|
|
@ -11,6 +11,7 @@
|
|||
<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/bulma.min.css">
|
||||
<link rel='stylesheet' href='/shared/main/bulmaswatch.min.css'>
|
||||
<link rel="stylesheet" href="/shared/main/styles-new.css">
|
||||
<link rel="stylesheet" href="/mail/mail.css">
|
||||
<script defer src='/shared/node_modules/pnotify/dist/iife/PNotify.js'></script>
|
||||
|
|
|
@ -23,9 +23,9 @@ to = document.getElementById('draftID')
|
|||
subject = document.getElementById('draftSubject')
|
||||
friendPicker = document.getElementById('friendSelect')
|
||||
|
||||
function sendMail(to, message, subject){
|
||||
function sendMail(toData, message, subject){
|
||||
//postData = {"postData": '{"to": "' + to + '", "message": "' + message + '"}'} // galaxy brain
|
||||
postData = {'message': message, 'to': to, 'type': 'pm', 'encrypt': true, 'meta': JSON.stringify({'subject': subject})}
|
||||
postData = {'message': message, 'to': toData, 'type': 'pm', 'encrypt': true, 'meta': JSON.stringify({'subject': subject})}
|
||||
postData = JSON.stringify(postData)
|
||||
sendForm.style.display = 'none'
|
||||
fetch('/insertblock', {
|
||||
|
@ -41,6 +41,7 @@ function sendMail(to, message, subject){
|
|||
PNotify.success({
|
||||
text: 'Queued for sending!'
|
||||
})
|
||||
to.value = subject.value = messageContent.value = ""
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<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/bulma.min.css">
|
||||
<link rel='stylesheet' href='/shared/main/bulmaswatch.min.css'>
|
||||
<link rel="stylesheet" href="/shared/main/styles-new.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>
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
<p>Onionr is a private decentralized communication network</p>
|
||||
<p><i class="fab fa-gitlab"></i> <a href="https://gitlab.com/beardog/onionr">Source code</a></p>
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
<b>Core developers:</b>
|
||||
|
@ -12,6 +11,12 @@
|
|||
<li><a href="https://www.aaronesau.com/">Aaron Esau</a></li>
|
||||
</ul>
|
||||
|
||||
<b>Contributors:</b>
|
||||
<ul>
|
||||
<li><a href="https://invisamage.com/">Travis Kipp</a> (web UI and CSS)</li>
|
||||
<li><a href="https://k7dxs.net/">Duncan Simpson</a> Packaging help</li>
|
||||
</ul>
|
||||
|
||||
<br>
|
||||
|
||||
<b>Onionr is built with:</b>
|
||||
|
|
|
@ -58,4 +58,12 @@ html {
|
|||
.aboutLogo{
|
||||
max-width: 25%;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
html{
|
||||
background-color: #212224;
|
||||
color: white;
|
||||
}
|
||||
.textarea{
|
||||
background-color: #212224;
|
||||
color: white;
|
||||
}
|
|
@ -16,7 +16,7 @@ async function userIcon(pubkey, imgSize=64){
|
|||
pubkey = await sha256(base32.decode.asBytes(pubkey))
|
||||
let options = {
|
||||
//foreground: [0,0,0,1], // rgba black
|
||||
background: [255, 255, 255, 255], // rgba white
|
||||
background: [0, 0, 0, 0], // rgba white
|
||||
//margin: 0.1,
|
||||
size: imgSize,
|
||||
format: 'svg' // use SVG instead of PNG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue