Giter Site home page Giter Site logo

Comments (9)

gera2ld avatar gera2ld commented on September 26, 2024

It looks like a network issue. The offline mode works by downloading all assets in advance.
Can you access the assets directly?

https://cdn.jsdelivr.net/npm/[email protected]/dist/browser/index.min.js

from markmap.

MarcoBuess avatar MarcoBuess commented on September 26, 2024

Looks like so. But does that even make sense? Its literally like an offline mode that doesn't work offline. It also doesn't look like it works offline even with an active connection. It doesn't seem like it caches the assets locally to have it really work offline?

from markmap.

gera2ld avatar gera2ld commented on September 26, 2024

The offline mode works by downloading the assets in advance during installation. The installation still requires a network. Now the issue is that installation failed due to a network problem.

BTW does any CDN that serves npm package files work for you? I can tell that both jsdelivr and unpkg do not.

from markmap.

MarcoBuess avatar MarcoBuess commented on September 26, 2024

So I'm behind a corp. firewall. It is usually fine with npm but I can't tell for anything beyond that. So what you're saying is, if e.g. I have a non restricted connection the -offline switch would download the assets and it should work from then on, or I have to do a whole reinstallation of markmap with a non restricted connection?

from markmap.

MarcoBuess avatar MarcoBuess commented on September 26, 2024

@gera2ld So I tried both. It looks like it tries to download the assets again everytime your run it, no matter if it ran sucessfully before. Outside the corp. network, I can run with -offline just fine. I also reinstalled v0.16.1 outside the corp. network. As soon as I reconnect to the corp. network it stops working.

from markmap.

gera2ld avatar gera2ld commented on September 26, 2024

Seems something is wrong with paths after installation. Let me fix it.

Fixed in 0.16.2

from markmap.

MarcoBuess avatar MarcoBuess commented on September 26, 2024

@gera2ld Can confirm it's working now. Thanks. 👍

from markmap.

MarcoBuess avatar MarcoBuess commented on September 26, 2024

@gera2ld Is it intended that this now also works with just -watch? If there is handling that automatically falls back to the locally cached assets I guess you could drop --offline alltogether?

from markmap.

gera2ld avatar gera2ld commented on September 26, 2024

--offline means the generated HTML file can be loaded offline, i.e. all static assets are inlined.
If all the assets are downloaded successfully on installation, you don't need a network to use it, no matter if --watch is set.
An exception is that Katex requires font files that must be downloaded from the CDN.

from markmap.

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.