Giter Site home page Giter Site logo

Comments (4)

davidjgraph avatar davidjgraph commented on May 22, 2024

I'm not personally keen on offline mode in draw.io. Would fully tested Electron apps of draw.io work better for you?

from drawio.

torkve avatar torkve commented on May 22, 2024

Hm, I'm not sure. My use-case of offline mode is providing it as a safe intranet service, hence no third-party CDN, integrations with GDrive/Dropbox/OneDrive or any other requests including sending logs to draw.io itself.
Electron app currently lacks this feature and being unfamiliar with Node.JS and Electron, I don't see a way to ditribute and update app with Electron to every end user without NPM installation quest.

from drawio.

davidjgraph avatar davidjgraph commented on May 22, 2024

Saving from Safari without using an echo server is a bit of a mess. You'll find discussions like this one on SO, but the upshot is there's no way to make it work on Safari 8,9 and 10, our supported Safari versions.

The most popular JS library for creating a shim is FileSaver.js. You can see in the README that Safari is a problem. You can neither name the file and "sometimes" the blob is opened so you need users to ⌘+S to save.

Saving to file system in the browser is a fairly poor experience.That said, I see the advantage of distributing as a web app, the only way to solve this for Safari will be to have an echo on the server.

We can work out the exact parameters to switch everthing off without stopping comms to the local server, as well. I'd suggest starting with ?db=0&gapi=0&od=0&analytics=0&picker=0&mode=device&browser=0. The logging changes are fairly recent, so it might be that we don't turn that off, we can add something for that.

Then you'd just need a simple echo for /save.

from drawio.

davidjgraph avatar davidjgraph commented on May 22, 2024

You're welcome to continue the discussion, but I'll close the issue since it's not possible to do a local save of any reasonable kind in Safari.

from drawio.

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.