git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: GSoC idea: adding JavaScript library / framework in gitweb

From
chaitanyaa nalla <nallachaitu@gmail.com>
Date
Mar 25, 2012, 18:08 UTC
Message-ID
<CACeyogdCsFZEqmm057ZMcCYRuxiZ2-yfcV9+e1AdOOhTjne8vA@mail.gmail.com>
In-Reply-To
<201203251955.21454.jnareb@gmail.com>
Dear Jakub,
thanks again.
 creating side-by-side diff from unified  diff in JavaScript, so that
swicthing between unified and side-by-side
 diff view  could be done entirely client-side, without hitting the server
could you please elaborate on this , i didn't understand this completley.
On Sun, Mar 25, 2012 at 11:25 PM, Jakub Narebski <jnareb@gmail.com> wrote:
Show 50 quoted lines
> On Sun, 25 Mar 2012, chaitanyaa nalla wrote:
>
>> Dear Jakub,
>>
>> if we handle the sorting of the tables on the client side itself,
>> will that be a  load on the browser?
>
> Well, if it turns out to be too heavy a load, we can use the same trick
> of "timed array processing":
>
>  http://www.nczonline.net/blog/2009/08/11/timed-array-processing-in-javascript/
>
> See for example this page to see sorttable in action:
>
>  http://en.wikipedia.org/wiki/Comparison_of_open_source_software_hosting_facilities
>
>> Other ideas which I have in mind are
>>
>> 1. Highligting matched portions of project name while searching the
>>    project name, even more intuitively
>
> You probably couldn't have known that match highlighting in project
> search is done on server side by gitweb.cgi since commit 6759f95
> (Merge branch 'jn/gitweb-hilite-regions', 2012-03-04):
>
>  gitweb: Highlight matched part of shortened project description
>  gitweb: Highlight matched part of project description when searching projects
>  gitweb: Highlight matched part of project name when searching projects
>
> It is not used by either git.kernel.org or repo.or.cz because it is
> too fresh (it is to be in yet to be released v1.7.10).
>
>> 2. project pagination.
>
> Is there any sense in pagination on client side?  Unless you turn it into
> lazy loading / loading on demand Ajax-y pagination...
>
>
> Yet another idea is to implement creating side-by-side diff from unified
> diff in JavaScript, so that swicthing between unified and side-by-side
> diff view could be done entirely client-side, without hitting the server.
>
>
> Note however that I think that it wouldn't be possible in time given to
> implement all those ideas.  You need to select those of them that you
> will put in project application.
>
> --
> Jakub Narebski
> Poland
Previous: Jakub NarebskiNext: Jakub Narebski
Message 9 of 20 in “gsoc idea adding javascript library / framework in gitweb”
  1. chaitanyaa nallaMar 24, 2012
  2. Jakub NarebskiMar 24, 2012
  3. chaitanyaa nallaMar 24, 2012
  4. chaitanyaa nallaMar 24, 2012
  5. Jakub NarebskiMar 24, 2012
  6. chaitanyaa nallaMar 24, 2012
  7. chaitanyaa nallaMar 25, 2012
  8. Jakub NarebskiMar 25, 2012
  9. chaitanyaa nallaMar 25, 2012
  10. Jakub NarebskiMar 26, 2012
  11. chaitanyaa nallaMar 27, 2012
  12. Jakub NarebskiMar 27, 2012
  13. chaitanyaa nallaMar 27, 2012
  14. Jakub NarebskiMar 28, 2012
  15. chaitanyaa nallaMar 28, 2012
  16. Jakub NarebskiMar 29, 2012
  17. chaitanyaa nallaMar 29, 2012
  18. Jakub NarebskiMar 30, 2012
  19. chaitanya nallaApr 1, 2012
  20. Jakub NarebskiMar 30, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.