Coder Social home page Coder Social logo

saintsystems / nova-resource-group-menu Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 15.0 789 KB

Give large Laravel Nova resource groups their own menu pages with sub-groups.

License: MIT License

Vue 25.21% JavaScript 3.90% PHP 49.94% SCSS 0.16% Blade 20.78%
laravel laravel-nova laravel-nova-components

nova-resource-group-menu's People

Contributors

anderly avatar antoniovazevedo avatar dependabot[bot] avatar dmason30 avatar lorenzosapora avatar thaisanly 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

Watchers

 avatar  avatar  avatar  avatar

nova-resource-group-menu's Issues

Cannot read property 'group' of undefined

Hi there,
I did all the steps

the group shows up on the side menu but the page is empty
and in the chrome console i get the error :
TypeError: Cannot read property 'group' of undefined

Can not use route:cache

The routes for nova-vendor/resource-group-menu uses closures wich is why i cannot use route:cache

Sidebar menu disappeared on Laravel Nova 3.4.0

Hi @anderly! I've tested some of the newest versions of Laravel Nova 3 and until version 3.3.2 the sidebar menu from nova-resource-group-menu is appearing correctly. On 3.4.0 it disappears, but if you access the URL directly, the resource menu is presented fine. Just the sidebar, is really with problems.

Thanks for your great package!

Cannot find class?

Hello,

I've followed the instructions exactly and now none of the pages will load. It looks like an error is being thrown:

Class 'Str' not found (View: /Applications/MAMP/htdocs/crystal-council/vendor/saintsystems/nova-resource-group-menu/resources/views/navigation.blade.php)

Go straigtht to resource

I'm trying to group custom nav items for resources to be outside of the "resources" nav grouping that is default with nova.

I would like to create links in the nav this way and add group and sub group and see the custom link show up correctly. But when you click on it i want to direct the user straight to the resource instead of the resources-group-menu page. How is it possible to customize that behavior?

Dashboard page requests executed for every menu page

When I visit any resource-group-menu page, all of the controls/metrics/etc for our main dashboard are requested. See attached. 95 requests for visiting the example URL "resource-group-menu/searching-attributes." It seems this package is somehow tied into Nova's dashboard system, which makes rendering each resource-group-menu page very slow.
dashboard-requests

SubGroup order

Hi, thx for great job
It's possbile to order subGroup resource in other order?

Cut nova requirement, causing composer issues

Composer spits out this when trying to composer require [this-package]

Problem 1
    - Installation request for saintsystems/nova-resource-group-menu ^0.0.10 -> satisfiable by saintsystems/nova-resource-group-menu[0.0.10].
    - saintsystems/nova-resource-group-menu 0.0.10 requires laravel/nova >=1.0 -> no matching package found.

This is caused when following the manual install of nova (drop a folder in, and add manually to composer.json). However, if you use composer directly, this doesn't pop.

Considering that the main documented method is the manual method, I'd assume it's the most common installation method at the moment.

Going to push a PR for cutting the nova requirement from composer.json.

SVG Icons

Hi,

I'm trying to find how to configure the SVG content to work as a resource group icon. I've tried many types available, for example, on freeicons.io without sucess. Any tip to help me?

Changes on Laravel Nova 3.19

Hi @anderly

I was just updating my Laravel Nova project to 3.19.1 when I faced the problem above:

Captura de tela 2021-01-09 152835

After some analisys I observed that until 3.18 we'd the following scenario:

  • ResourceGroupMenu extends Tool;
  • Tool extends Card;
  • Card extends Element;
  • Element uses the trait Metable;

But on 3.19.1 (that I'm using now)

  • ResourceGroupMenu extends Tool;
  • Class Tool just use AuthorizedToSee, Makeble, ProxiesCanSeeToGate;

So many remaining methods that are used by ResourceGroupMenu are missing, like withMeta, width, and so on...

I suspect that this new change in Nova is very harmful, what do you think?

Best regards

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.