Git Product home page Git Product logo

bin-archive's Introduction

bin

A simple pastebin

bin-archive's People

Contributors

julien00859 avatar tntube avatar antoinejt avatar

Stargazers

Noé avatar  avatar Enzo LOUIS avatar Tim ats avatar Guiguim avatar Antoine avatar

Watchers

James Cloos avatar  avatar  avatar

bin-archive's Issues

html tags keyword arguments without quotes

In bin.html, some tags don't have quotes in their keyword arguments. Like type, id, method, charset arguments ; example :

<meta charset=utf-8>
<form method=POST>
<textarea name=code id=code
<input type=submit id=submit>

even though html is not sensitive, charset by example stay sensitive, code have to be converted to :

<meta charset="utf-8">
<form method="POST">
<textarea name="code" id="code">
<input type="submit" id="submit">

Enable compression to reduce bandwidth and storage usage

It would be nice to store the bins compressed in memory and to stream them as-is. Having them compressed in memory would reduce the memory usage. Streaming them as-is (with the suited http header) would reduce bandwidth usage. I know reverse-proxies are capable to compress the data on-the-fly but this is not CPU efficient, best is to have the data compressed already.

We can't scroll in paste viewer if we write a long text

If we write a long text on the / route, where the main <textarea> is, there is no problem, the scrollbar is here :
scrollbar_bug

but when we eventually click on submit, we are redirected to the paste we wrote, but the text is cut at the bottom of the page without scrollbar, we can't scroll the paste :
scrollbar_bug2

Encoding problem

The encoding problem seems to be related to the way it is stored, as long as it doesn't come from the HTML meta charset tag.

image

When I wrote:

Ceci est un texte de test permettant de détecter un problème d'encodage certain

It then outputs:

Ceci est un texte de test permettant de détecter un problème d'encodage certain

And the HTML is:

<pre><code id="hlcode" class="lang-plaintext hljs">Ceci est un texte de test permettant de détecter un problème d'encodage certain</code></pre>

which confirms that the problem is not from the HTML meta charset tag

P.S.: Sorry for the stupid dummy text, I was not inspired

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.