peterbe / autocompeter Goto Github PK
View Code? Open in Web Editor NEWA really fast AJAX autocomplete service and widget
Home Page: https://autocompeter.com
License: Mozilla Public License 2.0
A really fast AJAX autocomplete service and widget
Home Page: https://autocompeter.com
License: Mozilla Public License 2.0
It looks that click event is not being fired when virtual keyboard is open. This issue appears also on project hompage.
Steps:
Use your GitHub account to authenticate so you can manage your Auth-Key.
Authorize peterbe
. Peterbe.com
is successfully added to my Authorized OAuth Apps list when checked later.Unable to sign in because of an error from Auth0. (Access denied.)
.I see in Chrome devtools I got redirected to this URL after the autorization:
https://peterbecom.auth0.com/login/callback?code={code here}&state={code here}
and then it redirects to:
https://autocompeter.com/auth/callback?error=unauthorized&error_description=Access%20denied.
I have installed everything as per read-me. But I get this error:
web_1 | Invalid HTTP_HOST header: '34.195.94.88:8000'. You may need to add '34.195.94.88' to ALLOWED_HOSTS.
I'm not sure if this is the correct place to file this issue, but I can't seem to create an API Key by using the website. The page refreshes, but the domain is not added to the list.
Hi,
First of all: nice effort in autocompeter.
I couldn't help but noticing that one can override the url variable. Even though this might not have been the intention (when you built it), it allows one to host their own autocompeter server.
I can imagine this being useful, when the backend is in Go as well. One could simply go get
your library, and set up their own autocompeter endpoint. One could call
http.HandleFunc("/search/api", autocompeter.SearchHandler)
in combination with
<script>
var q = document.getElementById("q");
Autocompeter(q, {
url: '/search/api',
ping: false // not needed as it can be hosted at the same domain
});
</script>
Reasons for wanting this include:
autocompeter.com
...a back-end for the searching.
Now I have successfully implemented a simple back-end for such purpose: using the same technique as you described. I'm using Go map[string][]int
for that, which might be less efficient than Redit (I'm not a Redis-user), but as it's not making calls across processes, it should be faster for small databases. As such, it is only in-memory. But it allows you to easily (programmatically) update the database without using the Api to autocompeter.com/v1
.
If you can, I can wrap this up nicely and make a PR for this, and put some effort in making it publicly available. If you don't like the idea (or would like some adjustments), feel free to discuss.
The API doesn't like any of the github accounts I've attempted to login with. Always a 500 server error as soon as Github verifies my login. what a shame
Hello @peterbe ,
I am the member of cdnjs project.
We want to host this library.
But there is a question about license want to ask.
I found that the license you mention in package.json is BSD
.
And I want to ask which version of BSD
do you use.
Please take a look at this.
Thanks for your help!
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.