Giter Site home page Giter Site logo

hackerpaste's People

Contributors

bokub avatar dawe35 avatar delivator avatar harej avatar kwypchlo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hackerpaste's Issues

Add CTRL+S keyboard shortcut

Would be nice if you could press CTRL+S to save the paste as a new snapshot and maybe CTRL+Shift+S to save to my pastes.

Optimize dependency management and resolve build warnings

When npm run build is run, four warnings are produced:

WARNING in ./node_modules/codemirror/addon/mode/loadmode.js 53:6-19
Critical dependency: the request of a dependency is an expression
 @ ./src/editor.js 25:0-40
 @ ./src/index.js 3:0-5:28 11:0-14 12:0-16 13:0-8 16:0-21 17:0-13

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  bundle.js (1.44 MiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  main (1.52 MiB)
      main.css
      bundle.js


WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

This points to unoptimized code that could affect performance for the end-user.

Criteria to resolve issue

The issue will be considered resolved when there are no more warnings during the build process.

Sanity checks to prevent loading non-text data

Hacker Paste accepts any arbitrary skylink. The skylinks are meant to be text files, but there is nothing stopping the user from loading any other type of file. If the app detects the user trying to open a non-text file it should prevent it.

Using different file types for different syntax formats

As of writing, Hacker Paste treats all input as "text/plain" and the choice of syntax highlighter mode is lost between creation of the link and loading it in a new tab/browser/device. If the choice of syntax highlighter is recorded at link generation time, different file formats (other than .txt) could be used, and choice of syntax highlighter could be inferred from this.

Load dependencies within app

Right now, external dependencies like Code Mirror are loaded in from an external source. All of the code used by the app should be within the app.

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.