Git Product home page Git Product logo

hocuspocus-laravel's People

Contributors

hanspagel avatar kriskbx avatar timoisik avatar

Stargazers

 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

hocuspocus-laravel's Issues

Using Laravel's built-in session authentication instead of collaborators and tokens

I wondered if there was a reason not to use the built-in session for authentication of requests rather than custom tokens. The session id could be sent with the request the same way the access token currently is, however it would provide a number of advantages over the current access token system:

  • Built in expiry - access tokens currently don't expire which is a security risk
  • Automatic integration with Laravel's auth system without needing extra tables, classes
  • Considerably less code to maintain in the plugin

PHP 8 Support.

@hanspagel what is with PHP 8 support on this package? As new as it is, it should work, or are there any known issues? 😕

Set proper defaults for empty documents

New documents need a good default:

[ 'type' => 'doc', 'content' => [], ]

But that would only work for tiptap?

Or maybe better shouldn’t fail like that:

Attaching to mailmaker_hocuspocus_1
hocuspocus_1  | [2021-05-05T15:14:52.962Z] Server configured …
hocuspocus_1  | [2021-05-05T15:14:52.965Z] Listening on port "80" …
hocuspocus_1  | [2021-05-05T15:15:22.160Z] Upgrading connection …
hocuspocus_1  | [2021-05-05T15:15:22.174Z] New connection to "App%5CModels%5CNewsletter%3A1" …
hocuspocus_1  | [2021-05-05T15:15:23.592Z] Created document "App%5CModels%5CNewsletter%3A1" …
hocuspocus_1  | /var/www/node_modules/prosemirror-model/dist/index.js:1368
hocuspocus_1  |   if (!json) { throw new RangeError("Invalid input for Node.fromJSON") }

Ideas

  • Add a command to generate a secret key
  • Add the HocuspocusProvider to the README
  • Throw an error when the configured attributes aren’t present

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.