Code Monkey home page Code Monkey logo

Comments (2)

dom111 avatar dom111 commented on June 7, 2024

Minor changes for this are in place, the title and the URL are updated when the preview is open. Appreciate that might not be enough but hopefully it's a decent enough start. This can be viewed, along with #60 using the a build from https://github.com/dom111/webdav-js/tree/feature/file-information-on-preview

from webdav-js.

chrysn avatar chrysn commented on June 7, 2024

This skips content that doesn't have a preview supporting type and updates the push-state. This means that if you refresh the page once the history has changed, that you'd need to manually navigate back to a directory, I've not really looked into this, but I imagine that's potentially tricky to work around without server-side rewrite rules that involve setting a header or something to differentiate requests that hit for the raw data and requests that need to be routed through the script - hopefully that's not too much of a blocker.

There's probably different schools of thought, but I don't think that the image itself should be pushed into the path -- after all, the user's "browser cursor" is not on the image itself, it is on the directory view at the position where it's viewing that image. So what I'd do about the paths is not to push the path in (as that doesn't survive a refresh), but just push a fragment identifier, say, http://server/path/#view:${FILENAME} that, when present, opens the image in preview right away.

from webdav-js.

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.