Thank you for your interest in contributing to our project! To ensure that our project remains sustainable and that contributions can be integrated smoothly, we require all contributors to agree to the following Contributor License Agreement ("Agreement"). This Agreement helps us maintain the quality and integrity of the project while respecting your rights as a contributor.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import fs from 'fs'; | |
import path from 'path'; | |
/** | |
* The starting directory path where the script will begin processing. | |
* Adjust this path based on your project's structure. | |
*/ | |
const directoryPath = path.join(path.resolve(), 'src'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'fs'; | |
import path from 'path'; | |
/** | |
* Recursively generates a tree structure of the directory. | |
* | |
* @param {string} dir - The directory to scan. | |
* @param {string} [prefix=''] - The prefix used for formatting the tree structure. | |
* @param {string} [output=''] - The accumulated output string containing the directory structure. | |
* @returns {string} - The complete directory structure as a string. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import errorResponse from '../utilities/errorResponse.js'; | |
import httpStatus from '../constant/httpStatus.constants.js'; | |
import sendResponse from '../utilities/sendResponse.js'; | |
import loggerService from '../service/logger.service.js'; | |
import toSentenceCase from '../utilities/toSentenceCase.js'; | |
const getResourceById = async (model, populateMethod, resourceId, resourceType) => { | |
try { | |
const resource = await populateMethod(model.findById(resourceId)); | |
if (!resource) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncErrorHandlerService from '../utilities/asyncErrorHandler.js'; | |
import getRequesterId from '../utilities/getRequesterId.js'; | |
import loggerService from '../service/logger.service.js'; | |
import getHostData from '../utilities/getHostData.js'; | |
import getRequestedDeviceDetails from '../utilities/getRequestedDeviceDetails.js'; | |
// TODO: Implement the `entity` log | |
// TODO: utilize the hostData for every entity | |
const createNewUserEntity = (service, createFunction) => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import NodeCache from 'node-cache'; | |
import loggerService from '../service/logger.service.js'; | |
const cache = new NodeCache(); | |
const create = (duration = 3600) => { | |
return (req, res, next) => { | |
let key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
123456 | |
password | |
12345678 | |
qwerty | |
123456789 | |
12345 | |
1234 | |
111111 | |
1234567 | |
dragon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0-mail.com | |
027168.com | |
0815.ru | |
0815.ry | |
0815.su | |
0845.ru | |
0box.eu | |
0clickemail.com | |
0n0ff.net | |
0nelce.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################################### | |
# Prettier Ignore Configuration File | |
#################################################### | |
# This file specifies patterns of files and directories that Prettier should ignore. | |
# Using this file helps avoid formatting conflicts and unnecessary processing of files not meant for modification. | |
#################################################### | |
# IDE and Project Files | |
# Purpose: Prevent Prettier from formatting project and IDE configuration files. | |
# Use: Ensures that configurations and settings files are not altered unintentionally. |
NewerOlder