mirror of
https://github.com/Revertron/Alfis
synced 2024-11-12 19:10:48 +00:00
Added a github link to help page.
This commit is contained in:
parent
db86bfcd07
commit
445733fd29
@ -36,6 +36,7 @@ derive_more = "0.99" # for DNS from hermes
|
||||
# Optional dependencies regulated by features
|
||||
web-view = { version = "0.7", features = [], optional = true }
|
||||
tinyfiledialogs = { version = "3.3.10", optional = true }
|
||||
open = { version = "1.6.0", optional = true }
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
winapi = { version = "0.3.7", features = ["impl-default", "wincon", "shellscalingapi"]}
|
||||
@ -60,6 +61,6 @@ ProductName="ALFIS"
|
||||
FileDescription="Alternative Free Identity System"
|
||||
|
||||
[features]
|
||||
webgui = ["web-view", "tinyfiledialogs"]
|
||||
webgui = ["web-view", "tinyfiledialogs", "open"]
|
||||
edge = ["web-view/edge"]
|
||||
default = ["webgui"]
|
@ -2,6 +2,7 @@ extern crate web_view;
|
||||
extern crate tinyfiledialogs as tfd;
|
||||
extern crate serde;
|
||||
extern crate serde_json;
|
||||
extern crate open;
|
||||
|
||||
use std::sync::{Arc, Mutex};
|
||||
use std::thread;
|
||||
@ -57,6 +58,11 @@ pub fn run_interface(context: Arc<Mutex<Context>>, miner: Arc<Mutex<Miner>>) {
|
||||
CheckZone { name } => { action_check_zone(&context, web_view, name); }
|
||||
MineZone { name, data } => { action_create_zone(Arc::clone(&context), Arc::clone(&miner), web_view, name, data); }
|
||||
StopMining => { context.lock().unwrap().bus.post(Event::ActionStopMining); }
|
||||
Open { link } => {
|
||||
if open::that(&link).is_err() {
|
||||
show_warning(web_view, "Something wrong, I can't open the link 😢");
|
||||
}
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
})
|
||||
@ -468,6 +474,7 @@ pub enum Cmd {
|
||||
MineDomain { name: String, records: String },
|
||||
TransferDomain { name: String, owner: String },
|
||||
StopMining,
|
||||
Open { link: String },
|
||||
}
|
||||
|
||||
struct Status {
|
||||
|
@ -147,9 +147,17 @@
|
||||
|
||||
<!-- Help -->
|
||||
<div class="tab row page is-hidden" id="tab_help">
|
||||
<div class="level">
|
||||
<div class="level-left">
|
||||
<div class="content"><h2>Welcome to ALFIS!</h2><p>ALFIS stands for Alternative Free Identity System.</p></div>
|
||||
</div>
|
||||
<div class="level-right is-align-self-flex-start">
|
||||
<a title="Get source code and contribute!" onclick="open_link('https://github.com/Revertron/Alfis');">
|
||||
<svg class="octicon octicon-mark-github v-align-middle" height="32" viewBox="0 0 16 16" version="1.1" width="32" aria-hidden="true"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<h2>Welcome to ALFIS!</h2>
|
||||
<p>ALFIS stands for Alternative Free Identity System.</p>
|
||||
<p>It gives you an opportunity to create your own domains and use them in decentralized networks, store security certificates for browsers to trust without any centralized CA.</p>
|
||||
<h3>How this system works?</h3>
|
||||
<h4>If you just want to be able to resolve our domains</h4>
|
||||
|
@ -123,8 +123,12 @@ function openTab(element, tabName) {
|
||||
}
|
||||
|
||||
function toggle(element, event) {
|
||||
event.stopPropagation();
|
||||
element.classList.toggle('is-active');
|
||||
event.stopPropagation();
|
||||
element.classList.toggle('is-active');
|
||||
}
|
||||
|
||||
function open_link(link) {
|
||||
external.invoke(JSON.stringify({cmd: 'open', link: link}));
|
||||
}
|
||||
|
||||
function loadKey() {
|
||||
|
Loading…
Reference in New Issue
Block a user