Giter Site home page Giter Site logo

More ideas about 0bin HOT 12 CLOSED

tygs avatar tygs commented on July 21, 2024
More ideas

from 0bin.

Comments (12)

sametmax avatar sametmax commented on July 21, 2024

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).

from 0bin.

Natim avatar Natim commented on July 21, 2024

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.

from 0bin.

sametmax avatar sametmax commented on July 21, 2024

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).

from 0bin.

ArthurHoaro avatar ArthurHoaro commented on July 21, 2024

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

Is this a planned feature ?

from 0bin.

Natim avatar Natim commented on July 21, 2024

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

from 0bin.

ArthurHoaro avatar ArthurHoaro commented on July 21, 2024

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.

from 0bin.

Natim avatar Natim commented on July 21, 2024

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

from 0bin.

sametmax avatar sametmax commented on July 21, 2024

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 ?

from 0bin.

Natim avatar Natim commented on July 21, 2024

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

from 0bin.

sametmax avatar sametmax commented on July 21, 2024

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.

from 0bin.

Natim avatar Natim commented on July 21, 2024

Ok understood.
Could you rename the ticket please?

from 0bin.

sametmax avatar sametmax commented on July 21, 2024

I'll open a new one.

from 0bin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.