
- Complete NestJS TypeScript implementation with WebSocket support - Direct messaging (DM) and group chat functionality - End-to-end encryption with AES encryption and key pairs - Media file support (images, videos, audio, documents) up to 100MB - Push notifications with Firebase Cloud Messaging integration - Mention alerts and real-time typing indicators - User authentication with JWT and Passport - SQLite database with TypeORM entities and relationships - Comprehensive API documentation with Swagger/OpenAPI - File upload handling with secure access control - Online/offline status tracking and presence management - Message editing, deletion, and reply functionality - Notification management with automatic cleanup - Health check endpoint for monitoring - CORS configuration for cross-origin requests - Environment-based configuration management - Structured for Flutter SDK integration Features implemented: ✅ Real-time messaging with Socket.IO ✅ User registration and authentication ✅ Direct messages and group chats ✅ Media file uploads and management ✅ End-to-end encryption ✅ Push notifications ✅ Mention alerts ✅ Typing indicators ✅ Message read receipts ✅ Online status tracking ✅ File access control ✅ Comprehensive API documentation Ready for Flutter SDK development and production deployment.
109 lines
2.8 KiB
Cheetah
109 lines
2.8 KiB
Cheetah
<?js
|
|
var data = obj;
|
|
var props = data.subprops || data.properties;
|
|
|
|
/* sort subprops under their parent props (like opts.classname) */
|
|
var parentProp = null;
|
|
props.forEach(function(prop, i) {
|
|
if (!prop) { return; }
|
|
if ( parentProp && prop.name && prop.name.indexOf(parentProp.name + '.') === 0 ) {
|
|
prop.name = prop.name.substr(parentProp.name.length+1);
|
|
parentProp.subprops = parentProp.subprops || [];
|
|
parentProp.subprops.push(prop);
|
|
props[i] = null;
|
|
}
|
|
else {
|
|
parentProp = prop;
|
|
}
|
|
});
|
|
|
|
/* determine if we need extra columns, "attributes" and "default" */
|
|
props.hasAttributes = false;
|
|
props.hasDefault = false;
|
|
props.hasName = false;
|
|
|
|
props.forEach(function(prop) {
|
|
if (!prop) { return; }
|
|
|
|
if (prop.optional || prop.nullable) {
|
|
props.hasAttributes = true;
|
|
}
|
|
|
|
if (prop.name) {
|
|
props.hasName = true;
|
|
}
|
|
|
|
if (typeof prop.defaultvalue !== 'undefined' && !data.isEnum) {
|
|
props.hasDefault = true;
|
|
}
|
|
});
|
|
?>
|
|
|
|
<table class="props">
|
|
<thead>
|
|
<tr>
|
|
<?js if (props.hasName) {?>
|
|
<th>Name</th>
|
|
<?js } ?>
|
|
|
|
<th>Type</th>
|
|
|
|
<?js if (props.hasAttributes) {?>
|
|
<th>Attributes</th>
|
|
<?js } ?>
|
|
|
|
<?js if (props.hasDefault) {?>
|
|
<th>Default</th>
|
|
<?js } ?>
|
|
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?js
|
|
var self = this;
|
|
props.forEach(function(prop) {
|
|
if (!prop) { return; }
|
|
?>
|
|
|
|
<tr>
|
|
<?js if (props.hasName) {?>
|
|
<td class="name"><code><?js= prop.name ?></code></td>
|
|
<?js } ?>
|
|
|
|
<td class="type">
|
|
<?js if (prop.type && prop.type.names) {?>
|
|
<?js= self.partial('type.tmpl', prop.type.names) ?>
|
|
<?js } ?>
|
|
</td>
|
|
|
|
<?js if (props.hasAttributes) {?>
|
|
<td class="attributes">
|
|
<?js if (prop.optional) { ?>
|
|
<optional><br>
|
|
<?js } ?>
|
|
|
|
<?js if (prop.nullable) { ?>
|
|
<nullable><br>
|
|
<?js } ?>
|
|
</td>
|
|
<?js } ?>
|
|
|
|
<?js if (props.hasDefault) {?>
|
|
<td class="default">
|
|
<?js if (typeof prop.defaultvalue !== 'undefined') { ?>
|
|
<?js= self.htmlsafe(prop.defaultvalue) ?>
|
|
<?js } ?>
|
|
</td>
|
|
<?js } ?>
|
|
|
|
<td class="description last"><?js= prop.description ?><?js if (prop.subprops) { ?>
|
|
<h6>Properties</h6><?js= self.partial('properties.tmpl', prop) ?>
|
|
<?js } ?></td>
|
|
</tr>
|
|
|
|
<?js }); ?>
|
|
</tbody>
|
|
</table>
|