ewinslow / elgg-evan Goto Github PK
View Code? Open in Web Editor NEWA framework for some experimental features I'd like to see maybe make it into Elgg core
A framework for some experimental features I'd like to see maybe make it into Elgg core
They seem to be doing the same thing? I can't even remember now. One was probably a rewrite of the other.
Otherwise people end up submitting twice.
Lots of routes are available and added, but many more still need to be added and many need to be fixed.
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.
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.
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.
The menu system is configured in PHP and not javascript right now. That makes it hard to respect the PHP choices from the menu
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.