Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More ideas #23

Closed
valerak opened this issue Jan 27, 2013 · 12 comments
Closed

More ideas #23

valerak opened this issue Jan 27, 2013 · 12 comments

Comments

@valerak
Copy link

valerak commented Jan 27, 2013

Perfect source, thanks, sametmax and Natim also ;)

More ideas:

  1. Add comments, like in ZeroBin was
  2. Add language support, e.g. ENG, FR, DE
    detect with help of user_agent for example
@sametmax
Copy link
Contributor

Hi man,

I didn't get the first point.

For the second point. Why not. The tool is not really complicated thought, so the added value may not be hight capared to the work required to setup a decent i18n architecture (remember it runs on bottle).

@Natim
Copy link
Contributor

Natim commented Jan 31, 2013

If we can remove the python backend and use a single HTML template file or even JST, it could be really easy to create fr.html en.html and de.html with the specific JST translated.

We could also use a javascript dictionnary to handle the translation.

@sametmax
Copy link
Contributor

Bottle already comes with a template language and using only python is
what make 0bin so easy to deploy (nothing to install on mac or linux,
just unzip and run the embeded server). Ease of use is really important.

We can add translation on bottle (we do have to do it be hand I
beleive). My question is more about "is it worth it" ? Cause it's not a
complicated software, I can't imagine how 3 buttons in english would
prevent somebody interested in 0bin from using it.

I may be wrong, and if more people tell me we should translate it, then
it should be done.

We could also switch from jQuery to http://angularjs.com/. It will make
tu application more fluid, will turn the Python code into a pure JSON
backend and provides i18n facilities. And if we make a server pluggable
server backend, then your idea of using an external service to store
the data will be as easy as switching the backend.

I will require a lot of work though. I'm not ready to do this right now.

Le jeu. 31 janv. 2013 11:51:14 CET, Natim a écrit :

If we can remove the python backend and use a single HTML template
file or even JST, it could be really easy to create fr.html en.html
and de.html with the specific JST translated.

We could also use a javascript dictionnary to handle the translation.


Reply to this email directly or view it on GitHub
#23 (comment).

@ArthurHoaro
Copy link

I think that his first point was to add comments (discussion), just like in ZeroBin (PHP).

Is this a planned feature ?

@Natim
Copy link
Contributor

Natim commented Jun 7, 2013

I think we could implement this with DisqUs. Do you mind doing a PR @ArthurHoaro ?
http://disqus.com/

@ArthurHoaro
Copy link

Nope, I was just asking. I barely know Python actually. :)
But I won't use Disqus, nor Facebook/G+ comments. I like to own my data.

@Natim
Copy link
Contributor

Natim commented Jun 7, 2013

Ok so we should implement everything inside even the url shortener.

@sametmax
Copy link
Contributor

sametmax commented Jun 7, 2013

Actually we can't implement the URL shortener because it would mean that we detail the key on the server, which is precisely what we want to avoid. Remember: 0bin first goal is to protect the host, not the user.

As for comments, this was a planned feature but we decided not to implement it: we though we woudn't use such a feature. However, if somebody comes with a PR for this, I'm ok with it.

We could make the comments this way :

  • javascript only
  • paginated using javascript
  • pluggable (so one may use disqu he he wants to spare his server, we should be able to encrypt / decrypt these on the fly)

What do you think ?

@Natim
Copy link
Contributor

Natim commented Jun 7, 2013

So basically you would like a comment to be a paste linked to the first one and encrypted with the same key?

@sametmax
Copy link
Contributor

sametmax commented Jun 7, 2013

No it should be stored in the same file (if we use the local backend and not discuss) and have some different properties that a paste : no coloration, a generated avar with hashviz on the IP and auto linking of the URL. But yes, it should be encrypted with the same key, otherwise there is no point.

@Natim
Copy link
Contributor

Natim commented Jun 7, 2013

Ok understood.
Could you rename the ticket please?

@sametmax
Copy link
Contributor

sametmax commented Jun 7, 2013

I'll open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants