Giter VIP home page Giter VIP logo

silvergraph's People

Contributors

anselmdk avatar danieldia avatar froog avatar joshkosmala avatar ntd avatar

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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

silvergraph's Issues

Suggest static compiled dot for easy installation on shared hosting

Hi, your module made me aware of Graphviz as a way to visualize structural data, thanks for this!

I am now using dot to visualise workflows in a (yet unpublished) workflows-module, so for this dot needs to be installed on the live server.

As it can be quite hard to get Graphviz/dot installed on a server if you don't have admin permissions, I've published a pre-compiled version which you can just upload and use via FTP. It may be nice to add this to your README and/or suggest it when installing via composer?

https://github.com/restruct/dot-static/

Modules with same name pattern are included

I'm using this as part of reviewing the structure for the shop module, so I'm wanting this url to create a diagram of only the shop module: /Silvergraph/png?location=shop.
It does however include all modules that contain shop in their name, notably shop_shipping.

This is what I'd expect:
shop

This is what I get:
shop_submodules

SilverStripe 3.2 support

This module doesn't work out-of-the-box with SilverStripe 3.2.
Firstly you need to add the controller, due to URL routing by controller name having been removed.

This could be done like this:

Director:
  rules:
    'Silvergraph//$Action' : 'Silvergraph'

Secondly the graph looks to be messed up, see this example for /Silvergraph/png?location=mysite,cms&inherited=1&exclude=SiteTree:

png

Configurable hidden class attributes

I think it would be beneficial if certain class attributes could be hidden from a table.
See Member here, if we could hide all the hash items etc. that would make the model easier to read.

I think that should be configurable in the query string just like you can do with tables now (&exclude=SiteTree,Page). The format could be something like &excludeAttributes=Member[TempIDHash,TempIDExpired].

screenshot 2015-05-21 14 10 08

Dot command not found when using constant

Hey

When trying to run SilverGraph/png, it throws "Couldn't execute dot command, ensure graphviz is installed and 'dot' postpended to your graphviz path. See README.md. Shell error: sh: dot: command not found"

It does work however, if I manually enter the path to the dot exec, in the execute() method, instead of it being retrieved from a constant.

I have no idea why though, just thought I'd make you aware of it

Dot syntax error

I'm getting a syntax error back from dot (graphviz version 2.34.0 (20131025.1914)):

[User Notice] Couldn't execute dot command, ensure graphviz is installed and dot is on path. Shell error: Warning: :1: syntax error in line 1 near '>'

This is from running in the browser /Silvergraph/png

This is Mac OS X with graphviz installed via homebrew. I've checked that dot is in the PHP PATH environment variable.

<b> tag throwing error when running /Silvergraph/png?location=mysite,cms&inherited=1&exclude=SiteTree

When running the above command when logged in, I was receiving the following error:
Couldn't execute dot command, ensure graphviz is installed and dot is on path.

After some digging I narrowed the issue down to the <b> and </b> tags in line 20 of the Silvergraph.ss template. After removing them everything worked fine.

Do you think this worth a pull request, or does this seem like it is an issue with my installations on my server?

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.