Code Monkey home page Code Monkey logo

mermaid-php's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mermaid-php's Issues

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - jbzoo/toolbox-dev[dev-master, 2.6.2, ..., 2.8.0] require jbzoo/composer-graph ^1.0.4 -> satisfiable by jbzoo/composer-graph[1.0.4, 1.x-dev (alias of dev-master)].
    - jbzoo/composer-graph 1.x-dev is an alias of jbzoo/composer-graph dev-master and thus requires it to be installed too.
    - jbzoo/composer-graph[dev-master, 1.0.4] require jbzoo/mermaid-php ^2.1.3 -> satisfiable by jbzoo/mermaid-php[2.1.3] from composer repo (https://repo.packagist.org) but jbzoo/mermaid-php[1.0.0+no-version-set] from root package repo has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
    - jbzoo/toolbox-dev 2.x-dev is an alias of jbzoo/toolbox-dev dev-master and thus requires it to be installed too.
    - Root composer.json requires jbzoo/toolbox-dev ^2.6.2 -> satisfiable by jbzoo/toolbox-dev[2.6.2, 2.7.0, 2.8.0, 2.x-dev (alias of dev-master)].

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - jbzoo/toolbox-dev[dev-master, 2.6.2, ..., 2.9.0] require jbzoo/composer-graph ^1.0.4 -> satisfiable by jbzoo/composer-graph[1.0.4, 1.x-dev (alias of dev-master)].
    - jbzoo/composer-graph 1.x-dev is an alias of jbzoo/composer-graph dev-master and thus requires it to be installed too.
    - jbzoo/composer-graph[dev-master, 1.0.4] require jbzoo/mermaid-php ^2.1.3 -> satisfiable by jbzoo/mermaid-php[2.1.3] from composer repo (https://repo.packagist.org) but jbzoo/mermaid-php[1.0.0+no-version-set] from root package repo has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
    - jbzoo/toolbox-dev 2.x-dev is an alias of jbzoo/toolbox-dev dev-master and thus requires it to be installed too.
    - Root composer.json requires jbzoo/toolbox-dev ^2.6.2 -> satisfiable by jbzoo/toolbox-dev[2.6.2, ..., 2.x-dev (alias of dev-master)].

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

GDPR-Compliance & local file cache

Hi, Thanks for creating this project :)

I've noticed that there are two remote scripts called, if a graph gets rendered. This is somewhat problematic regarding GDPR-Compliance.
In order to fix this I've created a local cache, which downloads the file in order to serve them locally.

I've added this method to Render::class:

public static function cache($filepath, $source): void {
    if (File::exists($filepath) === false) {
        if (File::exists(dirname($filepath)) === false) {
            File::makeDirectory(dirname($filepath), 677, true);
        }
        File::put($filepath, file_get_contents($source));
    }
}

.. and adjusted Render::html a bit, to use the cache instead:

$jqueryPath = public_path("js/jquery-3.4.1.slim.min.js");
$assetPath = public_path("js/mermaid@{$version}/dist/mermaid.js");
        
self::cache($jqueryPath, "https://code.jquery.com/jquery-3.4.1.slim.min.js");
self::cache($assetPath, "https://unpkg.com/mermaid@{$version}/dist/mermaid.js");

$html = [
    '   <script src="' . asset("js/jquery-3.4.1.slim.min.js") . '"></script>',
    '   <script src="' . asset("js/mermaid@{$version}/dist/mermaid.js") . '"></script>',
    ...
];

Kind regards & happy coding,

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - jbzoo/toolbox-dev[dev-master, 2.6.2, ..., 2.9.1] require jbzoo/composer-graph ^1.0.4 -> satisfiable by jbzoo/composer-graph[1.0.4, 1.1.0, 1.1.1, 1.x-dev (alias of dev-master)].
    - jbzoo/composer-graph 1.x-dev is an alias of jbzoo/composer-graph dev-master and thus requires it to be installed too.
    - jbzoo/composer-graph[dev-master, 1.0.4, ..., 1.1.1] require jbzoo/mermaid-php ^2.1.3 -> satisfiable by jbzoo/mermaid-php[2.1.3] from composer repo (https://repo.packagist.org) but jbzoo/mermaid-php[1.0.0+no-version-set] from root package repo has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
    - jbzoo/toolbox-dev 2.x-dev is an alias of jbzoo/toolbox-dev dev-master and thus requires it to be installed too.
    - Root composer.json requires jbzoo/toolbox-dev ^2.6.2 -> satisfiable by jbzoo/toolbox-dev[2.6.2, ..., 2.x-dev (alias of dev-master)].

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

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.