Code Monkey home page Code Monkey logo

elgg-evan's People

Contributors

ewinslow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

elgg-evan's Issues

Add more routes

Lots of routes are available and added, but many more still need to be added and many need to be fixed.

  • Messages inbox
  • User settings
  • Search
  • Members listing

Make menus more plugin-friendly

The menu system is configured in PHP and not javascript right now. That makes it hard to respect the PHP choices from the menu

Merge `Route` and `Router`

They seem to be doing the same thing? I can't even remember now. One was probably a rewrite of the other.

MenuItem builder for better static checks

Right now we pass a lot of options/config around as arrays. This lends itself to subtle typos and doesn't have the benefit of IDE autocomplete, early errors, etc.

Instead of:

elgg_register_menu_item('menu', MenuItem::factory(array(
  'name' => 'foo',
  'href' => '/bar',
  'text' => 'etc',
)));

We could have a builder:

elgg_register_menu_item('menu', MenuItem::create('foo')
  ->href('/bar')
  ->text('etc')
);

This would also give us a nice way to define our API more explicitly/cleanly/thoroughly, because the builder would be a class/interface with all the options listed. It's also basically as terse as the array syntax so there shouldn't be any extra "bloat" from making it a class, besides perhaps that initial MenuItem::create stuff.

Find a way to auto-generate angular deps

It's frustrating to have to do it manually, and doing it manually isn't very plugin friendly either. If a plugin just wants to update the template, they have to override ngDeps to add new dependencies, but if another plugin decides to override the Controller, it also now has to override ngDeps to include modules for the Controller's required services. This breaks the template override.

Make more plugin-friendly

Right now we require all supported plugins to be enabled in order to use this framework. Instead, we should be able to toggle the relevant routes with the associated plugin.

I.e. if the photos plugin is disabled, we should still work, but with the photo URL support removed.

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.