- App.tsx: full navigation (Auth stack + Main tabs with 5 screens) - Auth: LoginScreen, RegisterScreen, ForgotPasswordScreen - HomeScreen: dashboard with IoT metrics, weather widget, alerts, quick actions, sensors - MapScreen: interactive map with layer toggles (6 layers) - MarketplaceScreen: categories (6), products (5), search - ChatScreen: AI chat with quick prompts (4), bot responses - ProfileScreen: user info, stats, menu (9 items), logout - AlertsScreen: alert list with severity, acknowledge - SensorsScreen: sensor list with type filters (6 types), search - ZonesScreen: zone cards with stats - SettingsScreen: language picker (FR/EN/ES/DE), privacy, about - Stores: iotStore (sensors, zones, alerts), notificationStore, uiStore + i18n - Hooks: useSensors, useAlerts, useNotifications, useLocation - Components: Card, Button, LoadingSpinner, ErrorBoundary, Header - Services: iotService, notificationService (with axios API client) - Utils: formatters (temp, AQI, noise, dates), validators (email, password, IBAN) - Theme: colors.ts with full design system (Blue Ocean palette) - Ditto: fixed MongoDB connection, new JWT secrets, official gateway image
54 lines
1.7 KiB
Markdown
54 lines
1.7 KiB
Markdown
# is-buffer [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
|
|
|
|
[travis-image]: https://img.shields.io/travis/feross/is-buffer/master.svg
|
|
[travis-url]: https://travis-ci.org/feross/is-buffer
|
|
[npm-image]: https://img.shields.io/npm/v/is-buffer.svg
|
|
[npm-url]: https://npmjs.org/package/is-buffer
|
|
[downloads-image]: https://img.shields.io/npm/dm/is-buffer.svg
|
|
[downloads-url]: https://npmjs.org/package/is-buffer
|
|
[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
|
|
[standard-url]: https://standardjs.com
|
|
|
|
#### Determine if an object is a [`Buffer`](http://nodejs.org/api/buffer.html) (including the [browserify Buffer](https://github.com/feross/buffer))
|
|
|
|
[![saucelabs][saucelabs-image]][saucelabs-url]
|
|
|
|
[saucelabs-image]: https://saucelabs.com/browser-matrix/is-buffer.svg
|
|
[saucelabs-url]: https://saucelabs.com/u/is-buffer
|
|
|
|
## Why not use `Buffer.isBuffer`?
|
|
|
|
This module lets you check if an object is a `Buffer` without using `Buffer.isBuffer` (which includes the whole [buffer](https://github.com/feross/buffer) module in [browserify](http://browserify.org/)).
|
|
|
|
It's future-proof and works in node too!
|
|
|
|
## install
|
|
|
|
```bash
|
|
npm install is-buffer
|
|
```
|
|
|
|
## usage
|
|
|
|
```js
|
|
var isBuffer = require('is-buffer')
|
|
|
|
isBuffer(new Buffer(4)) // true
|
|
|
|
isBuffer(undefined) // false
|
|
isBuffer(null) // false
|
|
isBuffer('') // false
|
|
isBuffer(true) // false
|
|
isBuffer(false) // false
|
|
isBuffer(0) // false
|
|
isBuffer(1) // false
|
|
isBuffer(1.0) // false
|
|
isBuffer('string') // false
|
|
isBuffer({}) // false
|
|
isBuffer(function foo () {}) // false
|
|
```
|
|
|
|
## license
|
|
|
|
MIT. Copyright (C) [Feross Aboukhadijeh](http://feross.org).
|