
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@cargos/cs-modal
Advanced tools
This library was generated with [Angular CLI].
cs-modal
:npm install --save @cargos/cs-modal
import { CsModalModule } from '@cargos/cs-modal';
@NgModule({
declarations: [AppComponent],
imports: [CsModalModule],
bootstrap: [AppComponent]
})
export class AppModule {}
import { csModal, Modal } from '@cargos/cs-modal';
export class AppComponent {
public settingsModal: Observable<Modal>;
constructor() {
this.settingsModal = csModal.getSettings();
}
}
<cs-modal [settings]="settingsModal"></cs-modal>
@import "~material-icons/iconfont/material-icons.css";
@import "~@cargos/cs-modal/styles/modal.css";
//theme
@import "~@cargos/cs-modal/styles/sprintpass.theme.css";
Note: Only
sprintpass.theme
is available at the moment.
Key | Type | Default | Description |
---|---|---|---|
title | string | '' | ... |
titleClass | string | '' | ... |
titleAlign | 'left' ⎮ 'center' ⎮ 'right' | 'center' | ... |
content | ModalContent | '' | ... |
contentAlign | 'left' ⎮ 'center' ⎮ 'right' | 'center' | ... |
type | 'default' ⎮ 'warning' ⎮ 'error' ⎮ 'success' ⎮ 'info' | 'default' | ... |
spinner | 'dots' ⎮ 'circle' | 'dots' | ... |
buttons | ButtonOptions[] | [] | ... |
buttonsAlign | 'left' ⎮ 'center' ⎮ 'right' ⎮ 'space-evenly' | 'center' | ... |
iconName | string | '' | ... |
iconFontClass | string | 'material-icons' | ... |
iconAlign | 'left' ⎮ 'center' ⎮ 'right' | 'center' | ... |
bgTheme | 'black' ⎮ 'white' | 'black' | ... |
theme | 'sprintpass' | 'sprintpass' | ... |
animation | 'scale' ⎮ 'fade' | 'fade' | ... |
closeAnimation | 'scale' ⎮ 'fade' | 'fade' | ... |
closeIcon | boolean ⎮ (modal?: Modal) => Observable<any> | null | ... |
closeIconName | string | 'close' | ... |
columnClass | 'xsmall' ⎮ 'small' ⎮ 'medium' ⎮ 'large' ⎮ 'cover' | 'small' | ... |
fontSize | 'small' ⎮ 'medium' ⎮ 'large' | 'small' | ... |
autoClose | number | 0 | ... |
autoCloseAction | (modal?: Modal) => Observable<any> ⎮ string | '' | ... |
backgroundDismiss | boolean ⎮ (modal?: Modal) => Observable<any> | null | ... |
backgroundDismissAnimation | 'none' ⎮ 'shake' | 'shake' | ... |
escapeKey | boolean ⎮ (modal?: Modal) => Observable<any> | null | ... |
maximize | boolean | false | ... |
onContentReady | (modal?: Modal) => Observable<void> | null | ... |
zIndex | number | 1000 | ... |
Name | Settings | Description |
---|---|---|
confirm | `` | `` |
success | `` | `` |
warning | `` | `` |
error | `` | `` |
close | N/A | `` |
import { csModal } from '@cargos/cs-modal';
export class MyComponent {
constructor() { }
/* Optional if you want to close the modal when the component is destroyed */
ngOnDestroy() {
csModal.close();
}
showModal() {
csModal.confirm({
//...custom settings
});
}
}
Coming soon.
FAQs
Modal for Angular applications
The npm package @cargos/cs-modal receives a total of 32 weekly downloads. As such, @cargos/cs-modal popularity was classified as not popular.
We found that @cargos/cs-modal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.