
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
$ npm i --save marcura
angular.module('your.app.name', [
//...
'ui.marcura'
//...
]);
Set router state names for manager and creator/editor component.
Components relay on provided router state names:
// Setup
import {IInstructionConfigProvider} from 'marcura';
...
app.config((InstructionConfigProvider: IInstructionConfigProvider): void => {
'ngInject';
InstructionConfigProvider.config.router.manager = 'app.instruction.manager';
InstructionConfigProvider.config.router.creator = 'app.instruction.creator';
});
// Usage
import {IInstructionConfig} from 'marcura';
...
class InstructionController implements angular.IComponentController {
constructor(private InstructionConfig: IInstructionConfig,
private $state: angular.ui.IStateService) {
'ngInject';
}
...
public create(): void {
this.$state.go(this.InstructionConfig.router.creator);
}
}
Set default items and state for filters available on instruction list.
// Setup
import {Assignee, IInstructionFilterAssigneeProvider} from 'marcura';
...
app.config((instructionFilterAssigneeProvider: IInstructionFilterAssigneeProvider): void => {
'ngInject';
console.log(instructionFilterAssigneeProvider.assignees);
// >> [{ name: 'Chartering', id: 2 },{ name: 'Operator', id: 3 },{ name: 'Master', id: 0 }]
//Set default select for 'Chartering'
// Remember to think in immutable way!
const assignees: Assignees[] = [].concat(instructionFilterAssigneeProvider.assignees);
const assignee: Assignee = assignees[0];
assignee.checked = true;
/*
* Or shorter
* assignees[0].checked = true;
*/
instructionFilterAssigneeProvider.setAssignees(assignees);
});
// Usage
import {Assignee} from 'marcura'
class InstructionFilterController implment angular.IComponentController {
constructor(private instructionFilterAssignee: Assignee[]) {
'ngInject';
}
}
PLO or PLC is required to be able to swiftly develop library. Of course any app that imports marcura will work, but portlog apps already have environment that enables some building to be done quicker.
The project is written in AngularJS with Typescript and component approach.
Syles are written in sass with Bootstrap and PostCSS for autoprefixing.
library = marcura-common-ui (this repository)
app = any app that uses marcura library as depedency
npm install && npm link in the main folder of the library.PLO or PLC run npm link marcura to link the app to the local version of library.PLO or PLC) in developement mode so you can view marcura library elements inside of this app.marcura-common-ui in any way you need.npm link from the root of the library to rebuilt and relink it.PLO and PLC you can use npm run dev:fresh to rebuild the vendor of both apps uing the new marcura library. The script runs also dev developement for those apps).marcura library in the base app.master.master. (preferably through PR first)npm login.npm version patch.npm publish.package.json - push it to master.marcura library in any apps that uses it to the new one just created and push to repository.FAQs
PortLog Common UI
We found that marcura demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.