GithubHelp home page GithubHelp logo

URL scheme "file" is not supported. about cimdraw HOT 3 OPEN

goors avatar goors commented on June 20, 2024
URL scheme "file" is not supported.

from cimdraw.

Comments (3)

danielePala avatar danielePala commented on June 20, 2024

Yes, as you say this is related to how browsers handle the "file" scheme and I don't see a workaround, I suggest you use a local web server instead.
About the second question, right now in package.json there is only one build script which minifies the code, probably it would be good to define another script (like "build-dev" or similar) which doesn't perform minification.

from cimdraw.

goors avatar goors commented on June 20, 2024

Thanks for the update.

What about using this without minification? What is the order of files that I have to import to index.html from js dir?
So project can run either like that or on some port like http://localhost:3000 or similar?

from cimdraw.

danielePala avatar danielePala commented on June 20, 2024

Supposing you will compile the riot tags under js/tmp, a possible import sequence should be like this:

    <script src="js/D3/d3.min.js"></script>
    <script src="js/bootstrap/bootstrap.bundle.min.js"></script>
    <script src="js/d3-context-menu/d3-context-menu.js"></script>
    <script src="js/riot/riot.min.js"></script>
    <script src="js/riot/route.standalone.js"></script>
    <script src="js/riot/observable.js"></script>
    <script src="js/fflate/fflate.min.js"></script>
    <script src="js/tmp/cimTopologyProcessor.js"></script>
    <script src="js/tmp/cimDiagramControls.js"></script>
    <script src="js/tmp/cimDiagram.js"></script>
    <script src="js/tmp/cimTree.js"></script>
    <script src="js/tmp/cimDraw.js"></script>
    <script src="js/schema.js"></script>
    <script src="js/model.js"></script>
    <script src="js/topology.js"></script>
    <script src="js/matpower.js"></script>
    <script src="js/diagramUtils.js"></script>

from cimdraw.

Related Issues (12)

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.