Coder Social home page Coder Social logo

jackyzha0 / ctrl-v Goto Github PK

View Code? Open in Web Editor NEW
114.0 114.0 6.0 934 KB

๐Ÿ“‹ a modern, open-source pastebin with latex and markdown rendering support

Home Page: https://ctrl-v.app/

Go 23.98% Dockerfile 1.01% Makefile 1.30% JavaScript 73.70%
go nextjs open-source pastebin react vercel

ctrl-v's Issues

Ability to 'fork' a paste

Would be nice to be able to copy content of an existing paste and make a new one with its contents

AC:

  • Add a 'fork' button to view paste page
  • Add new backend endpoint to create paste with content

Text Area control are finicky

Indenting and unindenting text kinda sucks right now

AC:

  • Properly support tabbing and shift-tabbing
  • Set tab spacing to 2 spaces

Markdown Code Rendered Differently in Preview

When previewing markdown on the main page, both code blocks and inline code are displayed without the background:

image

The render of the actual paste:

image

Also syntax highlighting would be nice if it isn't too hard.

fix mobile view

website looks like garbage on mobile, pls fix
probably just use media queries? @ianmah lmk if you have experience w responsive react

AC

  • mobile no longer looks like ass

UI is unclear

AC:

  • Make password field description
  • Rename 'new paste' to 'create paste'
  • Add spinner to indicate loading

๐ŸŒ™ Dark mode

'nuff said

const theme = {
  colors: {
    background: '#111111',
    codeHighlight: '#ffffff08',
    border: '#565656',
    text: '#faf9f5',
    error: '#ee1111',
  },
}

AC:

  • Add toggle to switch themes
  • Persist option to local storage

Related to all CSS issues

  • Responsive Watermark at Bottom Left
  • Password TextBox

Please add more to the list, if you find any!

Setup CI/CD Workflows

AC:

  • Changes to backend are deployed to GCR
  • Changes to frontend are deployed to Firebase Hosting

Add line number selection

Would be nice to be able to create permalinks for pastes too, similar to what GitHub offers: https://docs.github.com/en/github/managing-your-work-on-github/creating-a-permanent-link-to-a-code-snippet

Example URL would be https://ctrl-v.app/2uKMJEu#L1-L14

Good place to start would be the lineProps prop on the syntax highlighter: https://www.npmjs.com/package/react-syntax-highlighter

AC:

  • After a paste has been created, users should be able to click on the line number gutter to highlight/select lines
  • Selecting lines should bring up the option to copy a permalink to those lines
  • Viewing a paste with permalink anchors should highlight those lines

fix and refactor makefile

  1. fix docker-all to properly depend on docker-build
  2. move all backend related makefile stuff into backend and reference it using -C flag
  3. move all frontend related makefile stuff into frontend and reference it using -C flag

Style Tags Not Working

<p style="color: blue">Siddhant</p>

This Should Render to:

image

But, it is rendering like this:
image

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.