docs: fixed typos

This commit is contained in:
freddii 2021-02-03 00:30:07 +01:00
parent 65dec5bd2c
commit ea202e41f6
24 changed files with 37 additions and 37 deletions

View file

@ -1,7 +1,7 @@
'use strict';
/**
* The DB Module provides a database initalized with the settings
* The DB Module provides a database initialized with the settings
* provided by the settings module
*/
@ -36,7 +36,7 @@ const db =
exports.db = null;
/**
* Initalizes the database with the settings provided by the settings module
* Initializes the database with the settings provided by the settings module
* @param {Function} callback
*/
exports.init = async () => await new Promise((resolve, reject) => {

View file

@ -139,7 +139,7 @@ exports.getPad = async (id, text) => {
// try to load pad
pad = new Pad(id);
// initalize the pad
// initialize the pad
await pad.init(text);
globalPads.set(id, pad);
padList.addPad(id);

View file

@ -46,7 +46,7 @@ const rateLimiter = new RateLimiterMemory({
});
/**
* A associative array that saves informations about a session
* A associative array that saves information about a session
* key = sessionId
* values = padId, readonlyPadId, readonly, author, rev
* padId = the real padId of the pad
@ -88,7 +88,7 @@ exports.setSocketIO = (socket_io) => {
exports.handleConnect = (socket) => {
stats.meter('connects').mark();
// Initalize sessioninfos for this new session
// Initialize sessioninfos for this new session
sessioninfos[socket.id] = {};
};

View file

@ -141,7 +141,7 @@ const resources = {
// We need an operation that returns a SessionInfo so it can be picked up by the codegen :(
info: {
operationId: 'getSessionInfo',
summary: 'returns informations about a session',
summary: 'returns information about a session',
responseSchema: {info: {$ref: '#/components/schemas/SessionInfo'}},
},
},

View file

@ -88,7 +88,7 @@ exports.expressCreateServer = (hookName, args, cb) => {
// http://stackoverflow.com/questions/23981741/minify-socket-io-socket-io-js-with-1-0
// if(settings.minify) io.enable('browser client minification');
// Initalize the Socket.IO Router
// Initialize the Socket.IO Router
socketIORouter.setSocketIO(io);
socketIORouter.addComponent('pad', padMessageHandler);

View file

@ -311,7 +311,7 @@ const statFile = (filename, callback, dirStatLimit) => {
const lastModifiedDateOfEverything = (callback) => {
const folders2check = [`${ROOT_DIR}js/`, `${ROOT_DIR}css/`];
let latestModification = 0;
// go trough this two folders
// go through this two folders
async.forEach(folders2check, (path, callback) => {
// read the files in the folder
fs.readdir(path, (err, files) => {
@ -320,7 +320,7 @@ const lastModifiedDateOfEverything = (callback) => {
// we wanna check the directory itself for changes too
files.push('.');
// go trough all files in this folder
// go through all files in this folder
async.forEach(files, (filename, callback) => {
// get the stat data of this file
fs.stat(`${path}/${filename}`, (err, stats) => {

View file

@ -294,7 +294,7 @@ const handshake = () => {
// set some client vars
window.clientVars = obj.data;
// initalize the pad
// initialize the pad
pad._afterHandshake();
if (clientVars.readonly) {