From 02b4e8251a90ef43e7337e4cad8e4e2b53755d87 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Tue, 25 Oct 2016 08:48:52 +0800 Subject: [PATCH] hidden key images form added, but not used for now --- main.cpp | 14 ++++++++ src/templates/checkrawkeyimgs.html | 58 ++++++++++++++++++------------ 2 files changed, 49 insertions(+), 23 deletions(-) diff --git a/main.cpp b/main.cpp index 99c43ff..1fa1921 100644 --- a/main.cpp +++ b/main.cpp @@ -254,6 +254,20 @@ int main(int ac, const char* av[]) { return xmrblocks.show_checkrawkeyimgs(raw_data); }); + CROW_ROUTE(app, "/genrawkeyimgs").methods("POST"_method) + ([&](const crow::request& req) { + + map post_body = xmreg::parse_crow_post_data(req.body); + + for (auto& kv: post_body) + { + cout << kv.first << ": " << kv.second << endl; + } + + + return xmrblocks.show_checkrawkeyimgs(string{}); + }); + CROW_ROUTE(app, "/search").methods("GET"_method) ([&](const crow::request& req) { diff --git a/src/templates/checkrawkeyimgs.html b/src/templates/checkrawkeyimgs.html index 87d69e7..ce7a92b 100644 --- a/src/templates/checkrawkeyimgs.html +++ b/src/templates/checkrawkeyimgs.html @@ -24,31 +24,43 @@

Key images for address: {{address}}

- - - {{#key_imgs}} + + +
Key no.Key imageTimestampIs spent?
- - - - + + + + - {{/key_imgs}} -
{{key_no}} - {{#tx_hash_found}} - {{key_image}} - {{/tx_hash_found}} - {{^tx_hash_found}} - {{key_image}} - {{/tx_hash_found}} - {{timestamp}} - {{#is_spent}} - {{is_spent}} - {{/is_spent}} - {{^is_spent}} - {{is_spent}} - {{/is_spent}} - Key no.Key imageTimestampIs spent?
+ {{#key_imgs}} + + + {{key_no}} + + {{#tx_hash_found}} + {{key_image}} + {{/tx_hash_found}} + {{^tx_hash_found}} + {{key_image}} + {{/tx_hash_found}} + + {{timestamp}} + + {{#is_spent}} + {{is_spent}} + {{/is_spent}} + {{^is_spent}} + {{is_spent}} + {{/is_spent}} + + + {{/key_imgs}} + +
+ + +