
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
vue-ace-palette
Advanced tools
So I heard you liked the Sublime Text command palette. Me too. So much so, that I thought it was missing from a lot of the web applications I build.
So I heard you liked the Sublime Text command palette. Me too. So much so, that I thought it was missing from a lot of the web applications I build.
angular-palette is an angular component that replicates the Sublime Text command palette for routes and global (or context sensitive) actions in your angular app.
angular-palette automatically takes all of the routes in your angularjs application and turns them into commands that can be executed from the command palette with the keyboard, suhweet! Sorry, I lied to you; It doesn't do it 'automatically'. You also need to include a name property on all of your routes in your $routeProvider configuration. This name property will be displayed in the palette.
http://derekries.github.io/angular-palette Just press 'ctrl+shift+l' to bring up the command palette.
bower install angular-palette2angular-palette.js, palette-darksoda.css, mousetrap.js,
mousetrap-global-bind.js files in your page. (There's also a build with mousetrap
included. In this dist folder look for angular-palette-deps.min.js)angular.module('myApp', ['palette'])<palette></palette> at the top of your main page (probably index.html)There's a few things that come with angular-palette
You're welcome to use any of the other directives included but the important things are the palette directive and the paletteService.
If you want to export some commands to the palette you can do that with the paletteService
Warning: angular-palette is super new so this feature is a little iffy at the moment. You can only export commands from one view/controller at a time so if you've got any nested views and you try exporting from multiple that wont work.
Example:
angular.module('myApp')
.controller('MainCtrl', ['paletteService', function(paletteService) {
$scope.makeMessage = function () {
alert('called from the palette!');
}
paletteService.addCommands([
{
name: "Notify: Alert Message",
winShortcuts:['CTRL+R'],
macShortcuts:['CMD+R'],
cmd: function () {
$scope.makeMessage();
},
data: 'something'
}
]);
}]);
*name (string) is what you want to be displayed in the palette
cmd (function|string) takes a function you wish to call when the command is selected from the palette
data (optional) only used for the built in functions
cmd can also take a couple built in functions
Power users love to keep their hands on the keyboard at all times. Most web apps fall behind their desktop counterparts in this regard. (Note: angular-palette does not offer global keyboard shortcuts for commands. Maybe in the future)
The palette works well for global actions across the application, routes and links are the perfect candidate under this stance. You may also want to expose various commands depending on the context of the app (current view). Or maybe you want to list out a collection of items in the palette. Those are both supported at the moment, but the API is pretty fragile and only supports exporting from one controller at a time (they replace each other) which is soon to be fixed.
Coming soon
FAQs
So I heard you liked the Sublime Text command palette. Me too. So much so, that I thought it was missing from a lot of the web applications I build.
We found that vue-ace-palette demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.