Giter Club home page Giter Club logo

Comments (2)

lenary avatar lenary commented on May 11, 2024

solved this and about to commit

from ginatra.

lenary avatar lenary commented on May 11, 2024

Added in a File Viewer, moved from Coderay to highlight.js and added new routes for looking at trees more in depth. Closed by aaba63e

  • No longer uses Coderay to highlight, so no longer installed or required. Uses Highlight.js instead http://softwaremaniacs.org/soft/highlight/en/ . With this, Ginatra::Helpers#diff_highlight has been removed
  • The Grit::Tree#find alias to Grit::Tree#/ has been removed as it isn't used at all.
  • New Route: /:repo/tree/:tree/* for browsing subdirectories under a certain path. Will redirect to the blob viewer page if * is the path to a blob instead of a tree, so that users can put in full paths for speed. :tree can be either a commit id (abbreviated or not) or a ref of any kind.
  • New Route: /:repo/blob/:blob for viewing blobs by id or ref.
  • New Route: /:repo/blob/:tree/* for viewing blobs using their full path. This works like the route for trees above except that it takes a path to a blob. If * is a path to a tree, it will redirect to a tree url instead.
  • Funtionality: In the tree view, all the file names are links to their tree pages or blob pages.
  • Most of the layouts have had a makeover, most notably tree.erb and_tree_part.erb`.

I think this makes Ginatra very close to 1.0.0, but not releasing it yet.

from ginatra.

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.