
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.
@firecms/data_export
Advanced tools
I'll enhance the README with more detailed documentation, configuration options, and better examples:
This plugin enables exporting Firestore collections to CSV or JSON formats directly from your FireCMS interface. It adds an export button to collection views, providing a simple way to back up data or share it with others.
npm install @firecms/data_export
# or
yarn add @firecms/data_export
import React from "react";
import { FireCMS } from "@firecms/core";
import { useExportPlugin } from "@firecms/data_export";
export default function App() {
// Basic setup with default options
const exportPlugin = useExportPlugin();
const plugins = [exportPlugin];
const navigationController = useBuildNavigationController({
// ... rest of your config
plugins
});
return <FireCMS
name={"My Online Shop"}
navigationController={navigationController}
authentication={myAuthenticator}
collections={myCollections}
firebaseConfig={firebaseConfig}
/>;
}
You can customize the export behavior with these options:
const exportPlugin = useExportPlugin({
// Control when exports are allowed
exportAllowed: ({ collectionEntitiesCount, path, collection }) => {
// Prevent export of large collections
if (collectionEntitiesCount > 5000) return false;
// Only allow export for specific collections
return ["products", "orders"].includes(path);
},
// Custom view when export is not allowed
notAllowedView: <div>Export is not available for this collection</div>,
// Track export events
onAnalyticsEvent: (event, params) => {
console.log("Export event:", event, params);
}
});
Option | Type | Description |
---|---|---|
exportAllowed | (params: ExportAllowedParams) => boolean | Function to determine if export is allowed for a collection |
notAllowedView | React.ReactNode | Custom component to display when export is not allowed |
onAnalyticsEvent | (event: string, params?: any) => void | Callback for tracking export events |
Where ExportAllowedParams
includes:
collectionEntitiesCount
: Number of entities in the collectionpath
: Path of the collectioncollection
: Collection configuration objectFAQs
Unknown package
The npm package @firecms/data_export receives a total of 268 weekly downloads. As such, @firecms/data_export popularity was classified as not popular.
We found that @firecms/data_export demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.