Giter Site home page Giter Site logo

data-story's Introduction

data-story's People

Contributors

ajthinking avatar dpmerchant avatar ld-codes avatar ngilbertsson avatar stone-lyl avatar talent-oleksii 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  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  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  avatar  avatar  avatar  avatar  avatar

data-story's Issues

Seems like it does not work with PostgreSQL

Using Composer 2, Laravel 8, and PostgreSQL

Ran composer require ajthinking/data-story --dev and I was greeted with the error below.
I am assuming that the issue could be that PostgreSQL is not supported.
Database exists, default tables are migrated and populated with seeders, no tables with the same name exists, and eloquent gets data from the DB.

composer require ajthinking/data-story --dev
Using version ^0.0.10 for ajthinking/data-story
./composer.json has been updated
Running composer update ajthinking/data-story
Loading composer repositories with package information
Updating dependencies
Lock file operations: 2 installs, 0 updates, 0 removals
  - Locking ajthinking/data-story (v0.0.10)
  - Locking calebporzio/sushi (v2.1.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
  - Downloading calebporzio/sushi (v2.1.1)
  - Downloading ajthinking/data-story (v0.0.10)
  - Installing calebporzio/sushi (v2.1.1): Extracting archive
  - Installing ajthinking/data-story (v0.0.10): Extracting archive
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   Illuminate\Database\QueryException 

  could not find driver (SQL: create table "stories" ("id" integer not null primary key autoincrement, "name" varchar, "path" varchar, "content" varchar, "deleted_at" varchar))

  at vendor/laravel/framework/src/Illuminate/Database/Connection.php:678
    674▕         // If an exception occurs when attempting to run a query, we'll format the error
    675▕         // message to include the bindings with SQL, which will make this exception a
    676▕         // lot more helpful to the developer instead of just the database's errors.
    677▕         catch (Exception $e) {
  ➜ 678▕             throw new QueryException(
    679▕                 $query, $this->prepareBindings($bindings), $e
    680▕             );
    681▕         }
    682▕ 

  1   [internal]:0
      DataStory\Models\Story::bootSushi()

  2   [internal]:0
      Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

LOVE the concept BTW

Mobx out of bounds

A warning appears when adding new nodes:
[mobx] Out of bounds read: 0

Find why and fix it

Class constructor NodeModel cannot be invoked without 'new'

What

While attempting to convert NodeModel.js to .ts this error occurs:
Class constructor NodeModel cannot be invoked without 'new'

Reproduce:

Rename NodeModel.js to .ts and fix warnings by declaring

export default class NodeModel extends DefaultNodeModel {
    options: any
    parent: any
    features: Feature[]
...

and adding a few :any in the closure/callbacks.

Browse to the app and add a new node. See the error appear in console.
Class constructor NodeModel cannot be invoked without 'new'

Fix css issues on node ports/links

I have tried to model the ports and links after the FME software
image

Currently it looks like this:
image

Fix the following:

  • the lines should be attached at the center point (now it is slighlty above center)
  • the hover effect should only be applied when actually hovering the triangle or in its bounding box
  • the drag and drop line should automatically attach only when on the actual triangle
  • it should work with multiple ports as well

image

Jest fails with 'self is not defined' when importing react-diagrams

tests/DiagramModel.test.ts

import { DiagramModel, NodeModelGenerics } from '@projectstorm/react-diagrams'

test('importing react diagrams', () => {
	// Uncomment this to make test fail!
    // DiagramModel
});

Throws

 ReferenceError: self is not defined

    > 1 | import { DiagramModel } from '@projectstorm/react-diagrams'
        | ^
      2 |
      3 | test('importing react diagrams', () => {
      4 |     let x = DiagramModel

      at Object.<anonymous> (node_modules/@projectstorm/react-diagrams/dist/index.umd.js:1:331)
      at Object.<anonymous> (tests/DiagramModel.test.ts:1:1)

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.