text
stringlengths
1
2.83M
id
stringlengths
16
152
metadata
dict
__index_level_0__
int64
0
949
--- title: AttachObjectToObject description: Objeyi objeye bağlar. tags: [] --- ## Açıklama Bu fonksiyon, objeleri diğer objelere bağlar. | Parametre | Açıklama | | ------------- | -------------------------------------------------------------...
openmultiplayer/web/docs/translations/tr/scripting/functions/AttachObjectToObject.md/0
{ "file_path": "openmultiplayer/web/docs/translations/tr/scripting/functions/AttachObjectToObject.md", "repo_id": "openmultiplayer", "token_count": 1640 }
450
--- title: CreateExplosion description: Patlama oluşturma. tags: [] --- ## Açıklama Girilen koordinatlarda patlama oluşturma. | Parametre | Açıklama | | ------------ | --------------------------------------- | | Float:X | Patlamanın oluşturulacağı X koordinatı. | | Float:Y ...
openmultiplayer/web/docs/translations/tr/scripting/functions/CreateExplosion.md/0
{ "file_path": "openmultiplayer/web/docs/translations/tr/scripting/functions/CreateExplosion.md", "repo_id": "openmultiplayer", "token_count": 590 }
451
--- title: "Kontrol Yapıları" description: Pawn dilinde kontrol yapılarının genel bir bakışı --- ## Koşullu İfadeler ### if Bir "if" ifadesi, bir şeyin doğru olup olmadığını kontrol eder ve doğruysa belirli bir işlem yapar. ```c new a = 5; if (a == 5) { print("a 5'tir"); } ``` "if" ifadesinden sonraki para...
openmultiplayer/web/docs/translations/tr/scripting/language/ControlStructures.md/0
{ "file_path": "openmultiplayer/web/docs/translations/tr/scripting/language/ControlStructures.md", "repo_id": "openmultiplayer", "token_count": 9805 }
452
--- title: "Sunucuyu Kontrol Etme" description: Sunucuyu kontrol etmek için kullanışlı komutlar. --- ## Oyun Modu Değiştirme ### Özel/İndirilmiş Oyun Modu Çalıştırma - Sunucu kurduğunuz dizini açın (örneğin: /Rockstar Games/GTA San Andreas/server). - İndirilen/derlenmiş .amx dosyasını alın ve sunucuyu kurduğunuz diz...
openmultiplayer/web/docs/translations/tr/server/ControllingServer.md/0
{ "file_path": "openmultiplayer/web/docs/translations/tr/server/ControllingServer.md", "repo_id": "openmultiplayer", "token_count": 5847 }
453
--- title: OnDialogResponse description: 当玩家通过单击按钮、按Enter/Esc键或双击列表项(如果使用列表样式对话框)来响应使用ShowPlayerDialog显示的对话框时,将调用此回调。 tags: [] --- ## 说明 当玩家通过单击按钮、按 Enter/Esc 键或双击列表项(如果使用列表样式对话框)来响应使用 ShowPlayerDialog 显示的对话框时,将调用此回调。 | 参数名 | 说明 | | -----------...
openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnDialogResponse.md/0
{ "file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnDialogResponse.md", "repo_id": "openmultiplayer", "token_count": 3544 }
454
--- title: OnPlayerClickPlayer description: 当一个玩家在记分板上双击另一个玩家时调用。 tags: ["player"] --- ## 描述 当一个玩家在记分板上双击另一个玩家时调用。 | 参数名 | 描述 | | --------------- | ------------------------------- | | playerid | 在记分板上点击玩家的玩家的 ID。 | | clickedplayerid | 被点击的玩家的 ID。 | | source ...
openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnPlayerClickPlayer.md/0
{ "file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnPlayerClickPlayer.md", "repo_id": "openmultiplayer", "token_count": 732 }
455
--- title: OnPlayerGiveDamageActor description: 当一个玩家对一个演员造成伤害时,这个回调会被调用。 tags: ["player"] --- <VersionWarnCN name='回调' version='SA-MP 0.3.7' /> ## 描述 当一个玩家对一个演员造成伤害时,这个回调会被调用。 | 参数名 | 描述 | | --------------- | ------------------------------------------ | | playerid ...
openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnPlayerGiveDamageActor.md/0
{ "file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnPlayerGiveDamageActor.md", "repo_id": "openmultiplayer", "token_count": 1292 }
456
--- title: OnPlayerTakeDamage description: 当玩家受到伤害时,会调用该回调。 tags: ["player"] --- ## 描述 当玩家受到伤害时,会调用该回调。 | 参数名 | 描述 | | -------- | ------------------------------------------------------------------------------------------...
openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnPlayerTakeDamage.md/0
{ "file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnPlayerTakeDamage.md", "repo_id": "openmultiplayer", "token_count": 1816 }
457
--- title: OnVehicleStreamIn description: 当车辆流入玩家的客户端时调用。 tags: ["vehicle"] --- ## 描述 当车辆流入玩家的客户端时调用。 | 参数名 | 描述 | | ----------- | ------------------------------ | | vehicleid | 为玩家流入的车辆 ID。 | | forplayerid | 这辆车是为哪个玩家 ID 流入的。 | ## 返回值 它在过滤脚本中总是先被调用。 ## 案例 ```c public On...
openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnVehicleStreamIn.md/0
{ "file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnVehicleStreamIn.md", "repo_id": "openmultiplayer", "token_count": 400 }
458
--- title: ApplyAnimation description: 将动画应用于玩家。 tags: [] --- ## 描述 将动画应用于玩家。 | 参数名 | 说明 | | ---------- | ------------------...
openmultiplayer/web/docs/translations/zh-cn/scripting/functions/ApplyAnimation.md/0
{ "file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/functions/ApplyAnimation.md", "repo_id": "openmultiplayer", "token_count": 2883 }
459
--- title: GetPlayerCameraMode description: 返回所请求玩家的当前GTA视角模式。 tags: ["player", "camera"] --- ## 描述 返回所请求玩家的当前 GTA [视角模式](../resources/cameramodes)。视角模式在判断玩家是否在瞄准、作为乘客在车内射击等方面非常有用。 | 参数名 | 说明 | | -------- | ----------------------- | | playerid | 要检索视角模式的玩家 ID | ## 返回值 整数形式的视角模式(如果玩家没有连接则为-1) ...
openmultiplayer/web/docs/translations/zh-cn/scripting/functions/GetPlayerCameraMode.md/0
{ "file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/functions/GetPlayerCameraMode.md", "repo_id": "openmultiplayer", "token_count": 752 }
460
--- title: atan description: 以度为单位求正切值的倒数。 tags: ["math"] --- <LowercaseNoteCN /> ## 描述 以度为单位求正切值的倒数。在三角函数中,反正切是正切的逆运算。请注意,由于符号模糊,该函数无法仅通过正切值确定角度落在哪个象限。请参见[atan2](atan2)以了解采用分数参数的替代方案。 | 参数名 | 说明 | | ----------- | -------------------- | | Float:value | 用于计算反正切的值。 | ## 返回值 以度为单位的角度,在区间[-90.0,+...
openmultiplayer/web/docs/translations/zh-cn/scripting/functions/atan.md/0
{ "file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/functions/atan.md", "repo_id": "openmultiplayer", "token_count": 719 }
461
--- title: 提交貢獻 description: 如何給SA-MP Wiki和open.mp的說明文件提交貢獻。 --- 這份說明文件是開放給任何人參與修改的!你只需要有一個 [GitHub](https://github.com) 帳號和一些空閒時間。你甚至不需要學習使用 Git,你可以全部在網頁界面上進行! 如果你想要幫助維護某個特定語言,請對 [`CODEOWNERS`](https://github.com/openmultiplayer/web/blob/master/CODEOWNERS) 說明文件發起一個 PR,並加入一行你的語言目錄和你的使用者名稱。 ## 編輯內容 在每個頁面上,都有一個按鈕可以讓你...
openmultiplayer/web/docs/translations/zh-tw/meta/Contributing.md/0
{ "file_path": "openmultiplayer/web/docs/translations/zh-tw/meta/Contributing.md", "repo_id": "openmultiplayer", "token_count": 5777 }
462
# Frontend This directory contains the [Next.js](https://nextjs.org/) frontend codebase. It's written in TypeScript with some fairly relaxed but standard tsconfig rules (no strict mode). To learn more about Next.js, take a look at the following resources: - [Next.js Documentation](https://nextjs.org/docs) - learn ab...
openmultiplayer/web/frontend/README.md/0
{ "file_path": "openmultiplayer/web/frontend/README.md", "repo_id": "openmultiplayer", "token_count": 301 }
463
# FAQ <hr /> ## Šta je open.mp? open.mp (Open Multiplayer, OMP) je zamjena za multiplayer mod za San Andreas, nastao kao odgovor na nesretan porast problema sa ažuriranjima i upravljanjem SA:MP-a. Početno izdanje bit će drop-in zamjena samo za poslužitelj (server). Postojeći SA:MP klijenti moći će se povezati s ovim...
openmultiplayer/web/frontend/content/bs/faq.mdx/0
{ "file_path": "openmultiplayer/web/frontend/content/bs/faq.mdx", "repo_id": "openmultiplayer", "token_count": 2645 }
464
# Često postavljana pitanja <hr /> ## Što je open.mp? open.mp (Open Multiplayer, OMP) je zamjenski multiplayer mod za GTA: San Andreas, pokrenut kao odgovor na sve brojnije probleme u vezi novih ažuriranja i u vođenju SA:MP-a. Prvo izdanje će biti instant zamjena samo za server. Postojeći SA:MP klijenti moći će se s...
openmultiplayer/web/frontend/content/hr/faq.mdx/0
{ "file_path": "openmultiplayer/web/frontend/content/hr/faq.mdx", "repo_id": "openmultiplayer", "token_count": 2762 }
465
# Open Multiplayer Naujai kuriama Multiplayer modifikacija <em>Grand Theft Auto: San Andreas</em> žaidimui, kuri bus pilnai suderinama su jau egzistuojančiu <em>San Andreas Multiplayer</em> modu. <br /> Tai reiškia **kad SA:MP programa ir visi sukurti SA:MP skriptai veiks su open.mp**, kartu bus sutaisyta daug klaid...
openmultiplayer/web/frontend/content/lt/index.mdx/0
{ "file_path": "openmultiplayer/web/frontend/content/lt/index.mdx", "repo_id": "openmultiplayer", "token_count": 279 }
466
--- title: Модул територија (претходно зоне банди) date: "2019-10-19T04:20:00" author: J0sh --- Ћао! Управо сам завршио имплементацију нашег модула територија у сервер и мислио сам да поставим преглед овог модула и да покажем да нисмо одустали! ```pawn // Креира територију. playerid може бити унет да би била играчева...
openmultiplayer/web/frontend/content/sr/blog/turfs-formerly-gangzones-module.mdx/0
{ "file_path": "openmultiplayer/web/frontend/content/sr/blog/turfs-formerly-gangzones-module.mdx", "repo_id": "openmultiplayer", "token_count": 1356 }
467
--- title: 计时器模块 date: "2019-05-22T03:15:00" author: Y_Less --- 这是我们所做的一个改进模块,open.mp 中的计时器: ```pawn native SetTimer(const func[], msInterval, bool:repeat) = SetTimerEx; native SetTimerEx(const func[], msInterval, bool:repeat, const params[], GLOBAL_TAG_TYPES:...); native KillTimer(timer) = Timer_Kill; // 创建计时器 nati...
openmultiplayer/web/frontend/content/zh-cn/blog/timers.mdx/0
{ "file_path": "openmultiplayer/web/frontend/content/zh-cn/blog/timers.mdx", "repo_id": "openmultiplayer", "token_count": 1040 }
468
import { Heading, Spinner } from "@chakra-ui/react"; import React, { FC } from "react"; const LoadingBanner: FC = () => { return ( <section> <Spinner thickness="4px" speed="0.65s" emptyColor="gray.200" color="purple.500" size="xl" /> <Heading fontStyle="i...
openmultiplayer/web/frontend/src/components/LoadingBanner.tsx/0
{ "file_path": "openmultiplayer/web/frontend/src/components/LoadingBanner.tsx", "repo_id": "openmultiplayer", "token_count": 336 }
469
import { useToast } from "@chakra-ui/react"; import { useCallback } from "react"; import { API_ADDRESS } from "src/config"; import { useMutationAPI } from "src/fetcher/hooks"; import { All } from "src/types/_generated_Server"; // TODO: Remove this when server listing is refactored. const mutateKey = `${API_ADDRESS}/se...
openmultiplayer/web/frontend/src/components/listing/hooks.ts/0
{ "file_path": "openmultiplayer/web/frontend/src/components/listing/hooks.ts", "repo_id": "openmultiplayer", "token_count": 383 }
470
import Admonition from "../Admonition"; export default function NoteLowercase({ name = "function" }) { return ( <Admonition type="warning"> <p>This {name} starts with a lowercase letter.</p> </Admonition> ); }
openmultiplayer/web/frontend/src/components/templates/lowercase-note.tsx/0
{ "file_path": "openmultiplayer/web/frontend/src/components/templates/lowercase-note.tsx", "repo_id": "openmultiplayer", "token_count": 80 }
471
import Admonition from "../../../Admonition"; export default function WarningVersion({ version, name = "function", }: { version: string; name: string; }) { return ( <Admonition type="warning"> <p> Bu {name} öğesi {version} sürümünde eklendi ve daha önceki sürümlerde çalışmayacaktır! <...
openmultiplayer/web/frontend/src/components/templates/translations/tr/version-warning.tsx/0
{ "file_path": "openmultiplayer/web/frontend/src/components/templates/translations/tr/version-warning.tsx", "repo_id": "openmultiplayer", "token_count": 153 }
472
// This page is a catch-all ([...slug]) for all pages (including sub-routes) // it will take the slug and use it to locate content in the "content" directory // in the frontend directory. The user's locale from Next.js is used to pick a // directory. // // For example, if the user visits /blog/somepost and their Locale...
openmultiplayer/web/frontend/src/pages/[...slug].tsx/0
{ "file_path": "openmultiplayer/web/frontend/src/pages/[...slug].tsx", "repo_id": "openmultiplayer", "token_count": 1276 }
473
import React from "react"; import { useState } from "react"; import { Button, HStack, Input, Select, useDisclosure } from "@chakra-ui/react"; import { Modal, ModalOverlay, ModalContent, ModalHeader, ModalFooter, ModalBody, useToast, } from "@chakra-ui/react"; import useSWR from "swr"; import { api, apiSWR...
openmultiplayer/web/frontend/src/pages/members/index.tsx/0
{ "file_path": "openmultiplayer/web/frontend/src/pages/members/index.tsx", "repo_id": "openmultiplayer", "token_count": 2868 }
474
import * as z from "zod" export const APIErrorSchema = z.object({ message: z.string().optional(), suggested: z.string().optional(), error: z.string().optional(), }) export type APIError = z.infer<typeof APIErrorSchema>
openmultiplayer/web/frontend/src/types/_generated_Error.ts/0
{ "file_path": "openmultiplayer/web/frontend/src/types/_generated_Error.ts", "repo_id": "openmultiplayer", "token_count": 73 }
475
package web import ( "net/http" "go.uber.org/zap" ) // WithLogger is simple Zap logger HTTP middleware func WithLogger(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { zap.L().Info( "request", zap.String("method", r.Method), zap.String("path", r.U...
openmultiplayer/web/internal/web/logger.go/0
{ "file_path": "openmultiplayer/web/internal/web/logger.go", "repo_id": "openmultiplayer", "token_count": 186 }
476
-- AlterTable ALTER TABLE "Server" ADD COLUMN "partner" BOOL NOT NULL DEFAULT false;
openmultiplayer/web/prisma/migrations/20230928210340_add_partner_column/migration.sql/0
{ "file_path": "openmultiplayer/web/prisma/migrations/20230928210340_add_partner_column/migration.sql", "repo_id": "openmultiplayer", "token_count": 31 }
477
import './preview.css' // Storybook does not (currently) support async loading of "stories". Therefore // the strategy in frontend/js/i18n.js does not work (because we cannot wait on // the promise to resolve). // Therefore we have to use the synchronous method for configuring // react-i18next. Because this, we can on...
overleaf/web/.storybook/preview.js/0
{ "file_path": "overleaf/web/.storybook/preview.js", "repo_id": "overleaf", "token_count": 1065 }
478
const AuthenticationManager = require('./AuthenticationManager') const SessionManager = require('./SessionManager') const OError = require('@overleaf/o-error') const LoginRateLimiter = require('../Security/LoginRateLimiter') const UserUpdater = require('../User/UserUpdater') const Metrics = require('@overleaf/metrics')...
overleaf/web/app/src/Features/Authentication/AuthenticationController.js/0
{ "file_path": "overleaf/web/app/src/Features/Authentication/AuthenticationController.js", "repo_id": "overleaf", "token_count": 6521 }
479
/* eslint-disable camelcase, node/handle-callback-err, max-len, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * Full docs: https://github.com/decaffein...
overleaf/web/app/src/Features/Collaborators/CollaboratorsEmailHandler.js/0
{ "file_path": "overleaf/web/app/src/Features/Collaborators/CollaboratorsEmailHandler.js", "repo_id": "overleaf", "token_count": 602 }
480
/* eslint-disable node/handle-callback-err, max-len, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS207: Consider shorter variations of null checks * F...
overleaf/web/app/src/Features/Cooldown/CooldownManager.js/0
{ "file_path": "overleaf/web/app/src/Features/Cooldown/CooldownManager.js", "repo_id": "overleaf", "token_count": 552 }
481
const sanitizeHtml = require('sanitize-html') const sanitizeOptions = { html: { allowedTags: ['span', 'b', 'br', 'i'], allowedAttributes: { span: ['style', 'class'], }, }, plainText: { allowedTags: [], allowedAttributes: {}, }, } function cleanHTML(text, isPlainText) { if (!isPlainT...
overleaf/web/app/src/Features/Email/EmailMessageHelper.js/0
{ "file_path": "overleaf/web/app/src/Features/Email/EmailMessageHelper.js", "repo_id": "overleaf", "token_count": 241 }
482
// eslint-disable-next-line no-useless-escape const EMAIL_REGEXP = /^([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ function getDomain(email) { email = parseEmail(email) return email ? email.split('@').pop() : null } f...
overleaf/web/app/src/Features/Helpers/EmailHelper.js/0
{ "file_path": "overleaf/web/app/src/Features/Helpers/EmailHelper.js", "repo_id": "overleaf", "token_count": 304 }
483
function emailHasLicence(emailData) { if (!emailData.confirmedAt) { return false } if (!emailData.affiliation) { return false } const affiliation = emailData.affiliation const institution = affiliation.institution if (!institution) { return false } if (!institution.confirmed) { return ...
overleaf/web/app/src/Features/Institutions/InstitutionsHelper.js/0
{ "file_path": "overleaf/web/app/src/Features/Institutions/InstitutionsHelper.js", "repo_id": "overleaf", "token_count": 181 }
484
const PasswordResetHandler = require('./PasswordResetHandler') const AuthenticationController = require('../Authentication/AuthenticationController') const SessionManager = require('../Authentication/SessionManager') const UserGetter = require('../User/UserGetter') const UserUpdater = require('../User/UserUpdater') con...
overleaf/web/app/src/Features/PasswordReset/PasswordResetController.js/0
{ "file_path": "overleaf/web/app/src/Features/PasswordReset/PasswordResetController.js", "repo_id": "overleaf", "token_count": 1400 }
485
const _ = require('lodash') const OError = require('@overleaf/o-error') const async = require('async') const logger = require('logger-sharelatex') const Settings = require('@overleaf/settings') const Path = require('path') const fs = require('fs') const { Doc } = require('../../models/Doc') const DocstoreManager = requ...
overleaf/web/app/src/Features/Project/ProjectEntityUpdateHandler.js/0
{ "file_path": "overleaf/web/app/src/Features/Project/ProjectEntityUpdateHandler.js", "repo_id": "overleaf", "token_count": 26746 }
486
/* eslint-disable node/handle-callback-err, max-len, no-unused-vars, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS103: Rewrite code to no longer u...
overleaf/web/app/src/Features/References/ReferencesHandler.js/0
{ "file_path": "overleaf/web/app/src/Features/References/ReferencesHandler.js", "repo_id": "overleaf", "token_count": 3012 }
487
const Errors = require('../Errors/Errors') class RecurlyTransactionError extends Errors.BackwardCompatibleError { constructor(options) { super({ message: 'Unknown transaction error', ...options, }) } } module.exports = { RecurlyTransactionError, }
overleaf/web/app/src/Features/Subscription/Errors.js/0
{ "file_path": "overleaf/web/app/src/Features/Subscription/Errors.js", "repo_id": "overleaf", "token_count": 93 }
488
const { db, ObjectId } = require('../../infrastructure/mongodb') const OError = require('@overleaf/o-error') const async = require('async') const { promisify, callbackify } = require('../../util/promises') const { Subscription } = require('../../models/Subscription') const SubscriptionLocator = require('./SubscriptionL...
overleaf/web/app/src/Features/Subscription/SubscriptionUpdater.js/0
{ "file_path": "overleaf/web/app/src/Features/Subscription/SubscriptionUpdater.js", "repo_id": "overleaf", "token_count": 4499 }
489
const { callbackify } = require('util') const logger = require('logger-sharelatex') const DocumentUpdaterHandler = require('../DocumentUpdater/DocumentUpdaterHandler') const ProjectGetter = require('../Project/ProjectGetter') const ProjectEntityHandler = require('../Project/ProjectEntityHandler') const { Project } = re...
overleaf/web/app/src/Features/ThirdPartyDataStore/TpdsProjectFlusher.js/0
{ "file_path": "overleaf/web/app/src/Features/ThirdPartyDataStore/TpdsProjectFlusher.js", "repo_id": "overleaf", "token_count": 1095 }
490
const APP_ROOT = '../../../../app/src' const UserAuditLogHandler = require(`${APP_ROOT}/Features/User/UserAuditLogHandler`) const EmailHandler = require(`${APP_ROOT}/Features/Email/EmailHandler`) const EmailOptionsHelper = require(`${APP_ROOT}/Features/Email/EmailOptionsHelper`) const Errors = require('../Errors/Errors...
overleaf/web/app/src/Features/User/ThirdPartyIdentityManager.js/0
{ "file_path": "overleaf/web/app/src/Features/User/ThirdPartyIdentityManager.js", "repo_id": "overleaf", "token_count": 2652 }
491
const RedisWrapper = require('../../infrastructure/RedisWrapper') const rclient = RedisWrapper.client('websessions') const UserSessionsRedis = { client() { return rclient }, sessionSetKey(user) { return `UserSessions:{${user._id}}` }, } module.exports = UserSessionsRedis
overleaf/web/app/src/Features/User/UserSessionsRedis.js/0
{ "file_path": "overleaf/web/app/src/Features/User/UserSessionsRedis.js", "repo_id": "overleaf", "token_count": 101 }
492
const _ = require('lodash') const Settings = require('@overleaf/settings') const publicRegistrationModuleAvailable = Settings.moduleImportSequence.includes( 'public-registration' ) const supportModuleAvailable = Settings.moduleImportSequence.includes('support') const historyV1ModuleAvailable = Settings.moduleImpor...
overleaf/web/app/src/infrastructure/Features.js/0
{ "file_path": "overleaf/web/app/src/infrastructure/Features.js", "repo_id": "overleaf", "token_count": 1300 }
493
const Settings = require('@overleaf/settings') const redis = require('@overleaf/redis-wrapper') if ( typeof global.beforeEach === 'function' && process.argv.join(' ').match(/unit/) ) { throw new Error( 'It looks like unit tests are running, but you are connecting to Redis. Missing a stub?' ) } // A per-fe...
overleaf/web/app/src/infrastructure/RedisWrapper.js/0
{ "file_path": "overleaf/web/app/src/infrastructure/RedisWrapper.js", "repo_id": "overleaf", "token_count": 236 }
494
const mongoose = require('../infrastructure/Mongoose') const { Schema } = mongoose const FileSchema = new Schema({ name: { type: String, default: '', }, created: { type: Date, default() { return new Date() }, }, rev: { type: Number, default: 0 }, linkedFileData: { type: Schema.Ty...
overleaf/web/app/src/models/File.js/0
{ "file_path": "overleaf/web/app/src/models/File.js", "repo_id": "overleaf", "token_count": 178 }
495
const mongoose = require('../infrastructure/Mongoose') const { Schema } = mongoose const TeamInviteSchema = new Schema({ email: { type: String, required: true }, token: { type: String }, inviterName: { type: String }, sentAt: { type: Date }, }) exports.TeamInvite = mongoose.model('TeamInvite', TeamInviteSche...
overleaf/web/app/src/models/TeamInvite.js/0
{ "file_path": "overleaf/web/app/src/models/TeamInvite.js", "repo_id": "overleaf", "token_count": 125 }
496
mixin reconfirmAffiliationNotification(location) .reconfirm-notification(ng-controller="UserAffiliationsReconfirmController") div(ng-if="!reconfirm[userEmail.email].reconfirmationSent" style="width:100%;") i.fa.fa-warning button.btn-reconfirm.btn.btn-sm.btn-info( data-location=location ng-if="!ui.sent...
overleaf/web/app/views/_mixins/reconfirm_affiliation.pug/0
{ "file_path": "overleaf/web/app/views/_mixins/reconfirm_affiliation.pug", "repo_id": "overleaf", "token_count": 687 }
497
extends ../layout block vars - var suppressNavbar = true - var suppressFooter = true - var suppressSkipToContent = true - metadata.robotsNoindexNofollow = true block _headLinks link(rel='stylesheet', href=buildStylesheetPath("ide.css")) block content .editor(ng-controller="IdeController").full-size //- requi...
overleaf/web/app/views/project/editor.pug/0
{ "file_path": "overleaf/web/app/views/project/editor.pug", "repo_id": "overleaf", "token_count": 3087 }
498
.diff-panel.full-size( ng-if="history.isV2 && history.viewMode === HistoryViewModes.COMPARE && history.updates.length !== 0" ) .diff( ng-show="!!history.selection.diff && !isHistoryLoading() && !history.selection.diff.error", ng-class="{ 'diff-binary': history.selection.diff.binary }" ) .diff-editor-v2.hide-ac...
overleaf/web/app/views/project/editor/history/previewPanelV2.pug/0
{ "file_path": "overleaf/web/app/views/project/editor/history/previewPanelV2.pug", "repo_id": "overleaf", "token_count": 938 }
499
include ../../_mixins/reconfirm_affiliation .user-notifications(ng-controller="NotificationsController") ul.list-unstyled( ng-if="notifications.length > 0 && projects.length > 0", ng-cloak ) li.notification-entry( ng-repeat="notification in notifications" ) div(ng-switch="notification.templateKey" ng-h...
overleaf/web/app/views/project/list/notifications.pug/0
{ "file_path": "overleaf/web/app/views/project/list/notifications.pug", "repo_id": "overleaf", "token_count": 5006 }
500
each managedGroupSubscription in managedGroupSubscriptions p | You are a manager of | +teamName(managedGroupSubscription) p a.btn.btn-primary(href="/manage/groups/" + managedGroupSubscription._id + "/members") i.fa.fa-fw.fa-users | &nbsp; | Manage members | &nbsp; p a(href="/manage/groups/" + ma...
overleaf/web/app/views/subscriptions/dashboard/_managed_groups.pug/0
{ "file_path": "overleaf/web/app/views/subscriptions/dashboard/_managed_groups.pug", "repo_id": "overleaf", "token_count": 239 }
501
extends ../layout block content | !{content}
overleaf/web/app/views/university/university_holder.pug/0
{ "file_path": "overleaf/web/app/views/university/university_holder.pug", "repo_id": "overleaf", "token_count": 16 }
502
script(type="text/ng-template", id="BonusLinkToUsModal") .modal-header button.close( type="button" data-dismiss="modal" ng-click="cancel()" aria-label="Close" ) span(aria-hidden="true") &times; h3 Dropbox link .modal-body.modal-body-share div(ng-show="dbState.gotLinkStatus") div(ng-hide="db...
overleaf/web/app/views/view_templates/bonus_templates.pug/0
{ "file_path": "overleaf/web/app/views/view_templates/bonus_templates.pug", "repo_id": "overleaf", "token_count": 591 }
503
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; src: local('Lato Light'), local('Lato-Light'), url('lato-v16-latin-ext-300.woff2') format('woff2'), url('lato-v16-latin-ext-300.woff') format('woff'); } @font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; ...
overleaf/web/frontend/fonts/lato.css/0
{ "file_path": "overleaf/web/frontend/fonts/lato.css", "repo_id": "overleaf", "token_count": 322 }
504
/* eslint-disable no-return-assign, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS207: Consider shorter variations of null checks * Full docs: https://git...
overleaf/web/frontend/js/directives/focus.js/0
{ "file_path": "overleaf/web/frontend/js/directives/focus.js", "repo_id": "overleaf", "token_count": 841 }
505
import { createContext, useCallback, useContext, useEffect, useReducer, useMemo, } from 'react' import PropTypes from 'prop-types' import { v4 as uuid } from 'uuid' import { useUserContext } from '../../../shared/context/user-context' import { useProjectContext } from '../../../shared/context/project-conte...
overleaf/web/frontend/js/features/chat/context/chat-context.js/0
{ "file_path": "overleaf/web/frontend/js/features/chat/context/chat-context.js", "repo_id": "overleaf", "token_count": 3172 }
506
import PropTypes from 'prop-types' import { useTranslation } from 'react-i18next' import Icon from '../../../shared/components/icon' function ShareProjectButton({ onClick }) { const { t } = useTranslation() return ( // eslint-disable-next-line jsx-a11y/anchor-is-valid,jsx-a11y/click-events-have-key-events,jsx...
overleaf/web/frontend/js/features/editor-navigation-toolbar/components/share-project-button.js/0
{ "file_path": "overleaf/web/frontend/js/features/editor-navigation-toolbar/components/share-project-button.js", "repo_id": "overleaf", "token_count": 237 }
507
import { useState, useEffect } from 'react' import { Trans } from 'react-i18next' import { useFileTreeMainContext } from '../../contexts/file-tree-main' // handle "not-logged-in" errors by redirecting to the login page export default function RedirectToLogin() { const { projectId } = useFileTreeMainContext() cons...
overleaf/web/frontend/js/features/file-tree/components/file-tree-create/redirect-to-login.js/0
{ "file_path": "overleaf/web/frontend/js/features/file-tree/components/file-tree-create/redirect-to-login.js", "repo_id": "overleaf", "token_count": 373 }
508
import { createContext, useCallback, useMemo, useReducer, useContext, useEffect, } from 'react' import PropTypes from 'prop-types' import { mapSeries } from '../../../infrastructure/promise' import { syncRename, syncDelete, syncMove, syncCreateEntity, } from '../util/sync-mutation' import { findIn...
overleaf/web/frontend/js/features/file-tree/contexts/file-tree-actionable.js/0
{ "file_path": "overleaf/web/frontend/js/features/file-tree/contexts/file-tree-actionable.js", "repo_id": "overleaf", "token_count": 4938 }
509
export default function iconTypeFromName(name) { let ext = name.split('.').pop() ext = ext ? ext.toLowerCase() : ext if (['png', 'pdf', 'jpg', 'jpeg', 'gif'].includes(ext)) { return 'image' } else if (['csv', 'xls', 'xlsx'].includes(ext)) { return 'table' } else if (['py', 'r'].includes(ext)) { r...
overleaf/web/frontend/js/features/file-tree/util/icon-type-from-name.js/0
{ "file_path": "overleaf/web/frontend/js/features/file-tree/util/icon-type-from-name.js", "repo_id": "overleaf", "token_count": 175 }
510
import App from '../../../base' import OutlinePane from '../components/outline-pane' import { react2angular } from 'react2angular' import { rootContext } from '../../../shared/context/root-context' App.controller('OutlineController', function ($scope, ide, eventTracking) { $scope.isTexFile = false $scope.outline =...
overleaf/web/frontend/js/features/outline/controllers/outline-controller.js/0
{ "file_path": "overleaf/web/frontend/js/features/outline/controllers/outline-controller.js", "repo_id": "overleaf", "token_count": 457 }
511
import { useState, useEffect } from 'react' import PropTypes from 'prop-types' import { Trans, useTranslation } from 'react-i18next' import { useShareProjectContext } from './share-project-modal' import Icon from '../../../shared/components/icon' import TransferOwnershipModal from './transfer-ownership-modal' import { ...
overleaf/web/frontend/js/features/share-project-modal/components/edit-member.js/0
{ "file_path": "overleaf/web/frontend/js/features/share-project-modal/components/edit-member.js", "repo_id": "overleaf", "token_count": 2011 }
512
let _recaptchaId let _recaptchaResolve export function executeV2Captcha(disabled = false) { return new Promise((resolve, reject) => { if (disabled || !window.grecaptcha) { return resolve() } try { if (!_recaptchaId) { _recaptchaId = window.grecaptcha.render('recaptcha', { ca...
overleaf/web/frontend/js/features/share-project-modal/utils/captcha.js/0
{ "file_path": "overleaf/web/frontend/js/features/share-project-modal/utils/captcha.js", "repo_id": "overleaf", "token_count": 308 }
513
import App from '../../../base' import { react2angular } from 'react2angular' import WordCountModal from '../components/word-count-modal' App.component('wordCountModal', react2angular(WordCountModal)) export default App.controller( 'WordCountModalController', function ($scope, ide) { $scope.show = false ...
overleaf/web/frontend/js/features/word-count-modal/controllers/word-count-modal-controller.js/0
{ "file_path": "overleaf/web/frontend/js/features/word-count-modal/controllers/word-count-modal-controller.js", "repo_id": "overleaf", "token_count": 271 }
514
// TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS206: Consider reworking classes to avoid initClass * DS207: Consider shorter variations of null checks * Full docs...
overleaf/web/frontend/js/ide/connection/ConnectionManager.js/0
{ "file_path": "overleaf/web/frontend/js/ide/connection/ConnectionManager.js", "repo_id": "overleaf", "token_count": 9967 }
515
import _ from 'lodash' /* eslint-disable max-len, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit returns * Full docs: htt...
overleaf/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/EnvironmentManager.js/0
{ "file_path": "overleaf/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/EnvironmentManager.js", "repo_id": "overleaf", "token_count": 2172 }
516
/* eslint-disable camelcase, node/handle-callback-err, max-len, no-dupe-class-members, no-return-assign, no-unused-vars, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS101: Remove unnecessary use of Array.f...
overleaf/web/frontend/js/ide/file-tree/FileTreeManager.js/0
{ "file_path": "overleaf/web/frontend/js/ide/file-tree/FileTreeManager.js", "repo_id": "overleaf", "token_count": 8264 }
517
/* eslint-disable max-len, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS207: Consider shorter variations of null checks * Full docs: https://github.com/d...
overleaf/web/frontend/js/ide/history/components/historyLabel.js/0
{ "file_path": "overleaf/web/frontend/js/ide/history/components/historyLabel.js", "repo_id": "overleaf", "token_count": 367 }
518
import LogParser from 'libs/latex-log-parser' import ruleset from './HumanReadableLogsRules' export default { parse(rawLog, options) { let parsedLogEntries if (typeof rawLog === 'string') { parsedLogEntries = LogParser.parse(rawLog, options) } else { parsedLogEntries = rawLog } const...
overleaf/web/frontend/js/ide/human-readable-logs/HumanReadableLogs.js/0
{ "file_path": "overleaf/web/frontend/js/ide/human-readable-logs/HumanReadableLogs.js", "repo_id": "overleaf", "token_count": 1108 }
519
/* eslint-disable max-len, no-unused-vars, no-useless-constructor, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS207: Consider shorter variations o...
overleaf/web/frontend/js/ide/pdfng/directives/pdfSpinner.js/0
{ "file_path": "overleaf/web/frontend/js/ide/pdfng/directives/pdfSpinner.js", "repo_id": "overleaf", "token_count": 496 }
520
/* eslint-disable max-len, no-return-assign, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * Full docs: https://github.com/decaffeinate/decaffeinate/blob/m...
overleaf/web/frontend/js/ide/review-panel/directives/commentEntry.js/0
{ "file_path": "overleaf/web/frontend/js/ide/review-panel/directives/commentEntry.js", "repo_id": "overleaf", "token_count": 999 }
521
// Conditionally enable Sentry based on whether the DSN token is set const reporterPromise = window.ExposedSettings.sentryDsn ? sentryReporter() : nullReporter() function sentryReporter() { return ( import(/* webpackMode: "eager" */ '@sentry/browser') .then(Sentry => { let eventCount = 0 ...
overleaf/web/frontend/js/infrastructure/error-reporter.js/0
{ "file_path": "overleaf/web/frontend/js/infrastructure/error-reporter.js", "repo_id": "overleaf", "token_count": 1004 }
522
import _ from 'lodash' import App from '../../../base' const countriesList = [ { code: 'af', name: 'Afghanistan' }, { code: 'ax', name: 'Åland Islands' }, { code: 'al', name: 'Albania' }, { code: 'dz', name: 'Algeria' }, { code: 'as', name: 'American Samoa' }, { code: 'ad', name: 'Andorra' }, { code: 'ao'...
overleaf/web/frontend/js/main/affiliations/factories/UserAffiliationsDataService.js/0
{ "file_path": "overleaf/web/frontend/js/main/affiliations/factories/UserAffiliationsDataService.js", "repo_id": "overleaf", "token_count": 6661 }
523
import App from '../../base' const ExposedSettings = window.ExposedSettings App.controller('NotificationsController', function ($scope, $http) { for (const notification of $scope.notifications || []) { notification.hide = false } $scope.samlInitPath = ExposedSettings.samlInitPath $scope.dismiss = notific...
overleaf/web/frontend/js/main/project-list/notifications-controller.js/0
{ "file_path": "overleaf/web/frontend/js/main/project-list/notifications-controller.js", "repo_id": "overleaf", "token_count": 1506 }
524
angular.module('sessionStorage', []).value('sessionStorage', sessionStorage) /* sessionStorage can throw browser exceptions, for example if it is full We don't use sessionStorage for anything critical, on in that case just fail gracefully. */ function sessionStorage(...args) { try { return $.sessionStorage...
overleaf/web/frontend/js/modules/sessionStorage.js/0
{ "file_path": "overleaf/web/frontend/js/modules/sessionStorage.js", "repo_id": "overleaf", "token_count": 126 }
525
import { createContext, useContext } from 'react' import PropTypes from 'prop-types' import useScopeValue from './util/scope-value-hook' export const CompileContext = createContext() CompileContext.Provider.propTypes = { value: PropTypes.shape({ pdfUrl: PropTypes.string, pdfDownloadUrl: PropTypes.string, ...
overleaf/web/frontend/js/shared/context/compile-context.js/0
{ "file_path": "overleaf/web/frontend/js/shared/context/compile-context.js", "repo_id": "overleaf", "token_count": 359 }
526
import { useRef, useEffect } from 'react' export function useRefWithAutoFocus() { const autoFocusedRef = useRef() useEffect(() => { if (autoFocusedRef.current) { window.requestAnimationFrame(() => { if (autoFocusedRef.current) { autoFocusedRef.current.focus() } }) } ...
overleaf/web/frontend/js/shared/hooks/use-ref-with-auto-focus.js/0
{ "file_path": "overleaf/web/frontend/js/shared/hooks/use-ref-with-auto-focus.js", "repo_id": "overleaf", "token_count": 150 }
527
import { LinkedFileInfo } from '../../modules/tpr-webmodule/frontend/js/components/linked-file-info' export const MendeleyLinkedFile = args => { return <LinkedFileInfo {...args} /> } MendeleyLinkedFile.args = { file: { linkedFileData: { provider: 'mendeley', }, }, } export default { title: 'Lin...
overleaf/web/frontend/stories/linked-file.stories.js/0
{ "file_path": "overleaf/web/frontend/stories/linked-file.stories.js", "repo_id": "overleaf", "token_count": 195 }
528
import WordCountModalContent from '../js/features/word-count-modal/components/word-count-modal-content' export const Basic = args => { const data = { headers: 4, mathDisplay: 40, mathInline: 400, textWords: 4000, } return <WordCountModalContent {...args} data={data} /> } export const Loading = ...
overleaf/web/frontend/stories/word-count-modal-content.stories.js/0
{ "file_path": "overleaf/web/frontend/stories/word-count-modal-content.stories.js", "repo_id": "overleaf", "token_count": 355 }
529
@import './editor/file-tree.less'; @import './editor/history.less'; @import './editor/toolbar.less'; @import './editor/left-menu.less'; @import './editor/pdf.less'; @import './editor/share.less'; @import './editor/chat.less'; @import './editor/file-view.less'; @import './editor/search.less'; @import './editor/publish-t...
overleaf/web/frontend/stylesheets/app/editor.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/app/editor.less", "repo_id": "overleaf", "token_count": 5695 }
530
.ace_search { background-color: @gray-lightest; border: 1px solid @editor-border-color; border-top: 0 none; width: 350px; overflow: hidden; position: absolute; top: 0px; z-index: 99; white-space: normal; padding: @line-height-computed / 4; font-family: @font-family-sans-serif; a, button { ...
overleaf/web/frontend/stylesheets/app/editor/search.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/app/editor/search.less", "repo_id": "overleaf", "token_count": 526 }
531
dl.codebox { dt { line-height: 1; } }
overleaf/web/frontend/stylesheets/app/open-in-overleaf.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/app/open-in-overleaf.less", "repo_id": "overleaf", "token_count": 26 }
532
// // Alerts // -------------------------------------------------- // Base styles // ------------------------- .alert { padding: @alert-padding; margin-bottom: @line-height-computed; border-left: 3px solid transparent; border-radius: @alert-border-radius; // Headings for larger alerts h4 { margin-top...
overleaf/web/frontend/stylesheets/components/alerts.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/components/alerts.less", "repo_id": "overleaf", "token_count": 780 }
533
footer.site-footer { background-color: @footer-bg-color; border-top: 1px solid @gray-lighter; font-size: 0.9rem; position: absolute; bottom: 0; width: 100%; height: @footer-height; line-height: @footer-height - 1; // Hack — in Chrome, using the full @footer-height would generate vertical scrolling ul...
overleaf/web/frontend/stylesheets/components/footer.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/components/footer.less", "repo_id": "overleaf", "token_count": 364 }
534
// // Navs // -------------------------------------------------- // Base class // -------------------------------------------------- .nav { margin-bottom: 0; padding-left: 0; // Override default ul/ol list-style: none; &:extend(.clearfix all); > li { position: relative; display: block; > a { ...
overleaf/web/frontend/stylesheets/components/navs.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/components/navs.less", "repo_id": "overleaf", "token_count": 2264 }
535
.ui-select-bootstrap > .ui-select-choices, .ui-select-bootstrap > .ui-select-no-choice { width: auto; max-width: 400px; } .dropdown-menu .ui-select-choices-row { padding: 4px 0; > .ui-select-choices-row-inner { overflow: hidden; text-overflow: ellipsis; } } .ui-select-placeholder, .ui-select-match-...
overleaf/web/frontend/stylesheets/components/ui-select.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/components/ui-select.less", "repo_id": "overleaf", "token_count": 618 }
536
@import 'style.less'; @import 'core/ol-light-variables.less'; @is-overleaf-light: true; @show-rich-text: true;
overleaf/web/frontend/stylesheets/light-style.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/light-style.less", "repo_id": "overleaf", "token_count": 45 }
537
{ "tex_live_version": "TeX Live Version", "git": "Git", "pdf_compile_in_progress_error": "Kompiliervorgang läuft bereits in einem anderen Fenster", "pdf_compile_try_again": "Bitte warte auf deinen anderen Kompiliervorgang, bevor du es erneut versuchst.", "invalid_email": "Eine E-Mail-Adresse ist ungültig", ...
overleaf/web/locales/de.json/0
{ "file_path": "overleaf/web/locales/de.json", "repo_id": "overleaf", "token_count": 21598 }
538
/* eslint-disable no-unused-vars */ const Helpers = require('./lib/helpers') exports.tags = ['server-ce', 'server-pro', 'saas'] exports.migrate = async client => { const { db } = client await Helpers.addIndexesToCollection(db.migrations, [ { key: { name: 1 }, unique: true, }, ]) } exports....
overleaf/web/migrations/20190720165251_create_migrations.js/0
{ "file_path": "overleaf/web/migrations/20190720165251_create_migrations.js", "repo_id": "overleaf", "token_count": 211 }
539
/* eslint-disable no-unused-vars */ const Helpers = require('./lib/helpers') exports.tags = ['saas'] const indexes = [ { unique: true, key: { accessToken: 1, }, name: 'accessToken_1', }, { unique: true, key: { refreshToken: 1, }, name: 'refreshToken_1', }, ] expor...
overleaf/web/migrations/20190912145015_create_oauthAccessTokens_indexes.js/0
{ "file_path": "overleaf/web/migrations/20190912145015_create_oauthAccessTokens_indexes.js", "repo_id": "overleaf", "token_count": 270 }
540
/* eslint-disable no-unused-vars */ const Helpers = require('./lib/helpers') exports.tags = ['server-ce', 'server-pro', 'saas'] const indexes = [ { unique: true, key: { token: 1, use: 1, }, name: 'token_1_use_1', }, ] exports.migrate = async client => { const { db } = client awa...
overleaf/web/migrations/20190912145031_create_tokens_indexes.js/0
{ "file_path": "overleaf/web/migrations/20190912145031_create_tokens_indexes.js", "repo_id": "overleaf", "token_count": 240 }
541
const Helpers = require('./lib/helpers') exports.tags = ['server-ce', 'server-pro', 'saas'] const indexes = { tokens: [ { // expire all tokens 90 days after they are created expireAfterSeconds: 90 * 24 * 60 * 60, key: { createdAt: 1, }, name: 'createdAt_1', }, ], } e...
overleaf/web/migrations/20210407085118_token-expiry-with-ttl-index.js/0
{ "file_path": "overleaf/web/migrations/20210407085118_token-expiry-with-ttl-index.js", "repo_id": "overleaf", "token_count": 289 }
542
/* eslint-disable no-unused-vars, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. let Launchpad const LaunchpadRouter = require('./app/src/LaunchpadRouter') module.exports = Launchpad = { router: LaunchpadRouter }
overleaf/web/modules/launchpad/index.js/0
{ "file_path": "overleaf/web/modules/launchpad/index.js", "repo_id": "overleaf", "token_count": 92 }
543
const logger = require('logger-sharelatex') const UserActivateController = require('./UserActivateController') const AuthenticationController = require('../../../../app/src/Features/Authentication/AuthenticationController') module.exports = { apply(webRouter) { logger.log({}, 'Init UserActivate router') web...
overleaf/web/modules/user-activate/app/src/UserActivateRouter.js/0
{ "file_path": "overleaf/web/modules/user-activate/app/src/UserActivateRouter.js", "repo_id": "overleaf", "token_count": 135 }
544
const Adapter = require('../migrations/lib/adapter') const fs = require('fs').promises const path = require('path') async function main(args) { if ( !args || args.length === 0 || args.includes('help') || args.includes('--help') || args.includes('-h') ) { console.log('') console.log('usa...
overleaf/web/scripts/mark_migration.js/0
{ "file_path": "overleaf/web/scripts/mark_migration.js", "repo_id": "overleaf", "token_count": 623 }
545
const { promises: fs } = require('fs') const oneSky = require('@brainly/onesky-utils') const sanitizeHtml = require('sanitize-html') const { withAuth } = require('./config') async function run() { try { // The recommended OneSky set-up appears to require an API request to // generate files on their side, whi...
overleaf/web/scripts/translations/download.js/0
{ "file_path": "overleaf/web/scripts/translations/download.js", "repo_id": "overleaf", "token_count": 988 }
546
const { merge } = require('@overleaf/settings/merge') let features const httpAuthUser = 'sharelatex' const httpAuthPass = 'password' const httpAuthUsers = {} httpAuthUsers[httpAuthUser] = httpAuthPass module.exports = { catchErrors: false, clsiCookie: undefined, cacheStaticAssets: true, httpAuthUsers, se...
overleaf/web/test/acceptance/config/settings.test.defaults.js/0
{ "file_path": "overleaf/web/test/acceptance/config/settings.test.defaults.js", "repo_id": "overleaf", "token_count": 1746 }
547
const { exec } = require('child_process') const { promisify } = require('util') const { expect } = require('chai') const logger = require('logger-sharelatex') const { filterOutput } = require('./helpers/settings') const { db, ObjectId } = require('../../../app/src/infrastructure/mongodb') const ONE_DAY_IN_S = 60 * 60 ...
overleaf/web/test/acceptance/src/DeleteOrphanedDocsOnlineCheckTests.js/0
{ "file_path": "overleaf/web/test/acceptance/src/DeleteOrphanedDocsOnlineCheckTests.js", "repo_id": "overleaf", "token_count": 4902 }
548
/* eslint-disable node/handle-callback-err, max-len, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit returns * DS207: ...
overleaf/web/test/acceptance/src/ProjectStructureMongoLockTest.js/0
{ "file_path": "overleaf/web/test/acceptance/src/ProjectStructureMongoLockTest.js", "repo_id": "overleaf", "token_count": 2537 }
549