frank06 / riak-admin Goto Github PK
View Code? Open in Web Editor NEWA Futon-like web interface for Riak
A Futon-like web interface for Riak
I also seemed to need this Have to ask for keys if you're going to iterate them.:
diff --git a/index.html b/index.html
index 1d33009..540c8fb 100644
--- a/index.html
+++ b/index.html
@@ -17,11 +17,13 @@
$(function() {
$('#bucket').html(bucket);
- db.get(bucket)(function(response) {
- $.each(response.keys, function(i, key) {
- $('#keys')
- .append("<li id=\"" + uniqueId(bucket, key) + "\"><a href='javascript:;' onclick='show(\"" + key + "\")'>" + key + "</a></li>");
- });
+ db.get(bucket, '', {'keys':true})(function(response) {
+ if (response.keys) {
+ $.each(response.keys, function(i, key) {
+ $('#keys')
+ .append("<li id=\"" + uniqueId(bucket, key) + "\"><a href='javascript:;' onclick='show(\"" + key + "\")'>" + key + "</a></li>");
+ });
+ }
});
});
fatal: remote error:
Repository not found.
Clone of 'git://github.com/frank06/riak-js.git' into submodule path 'lib/riak-js' failed
When I try to run this I get the java script error that 'require is not defined' Where is this supposed to come from?
I had to change this: (riak.js line 40)
options.method = key ? 'PUT' : 'POST';
to this:
options.method = 'POST';
Using Chrome for my browser, if the type of a request is set to PUT it doesn't make it into the xhr request headers. Forcing the method to be POST in the save method makes the edit function work.
The lib/riak-js/riak-jquery.js and lib/riak-js/riak.js files are missing from the repository!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.