text
stringlengths
1
2.83M
id
stringlengths
16
152
metadata
dict
__index_level_0__
int64
0
949
--- title: Vehicle Sync date: "2019-11-09T11:33:00" author: Southclaws --- Короткий допис, що демонструє еволюцію транспортної синхронізації. <video autoPlay loop width="100%" controls> <source src="https://assets.open.mp/assets/images/videos/vehicle_sync_01.mp4" type="video/mp4" /> На жаль, ваш браузер не підтри...
openmultiplayer/web/frontend/content/uk/blog/vehicle-sync.mdx/0
{ "file_path": "openmultiplayer/web/frontend/content/uk/blog/vehicle-sync.mdx", "repo_id": "openmultiplayer", "token_count": 460 }
480
# Open Multiplayer 这是一个 _侠盗猎车手 : 圣安地列斯_ 的联机模组,并且与当前的联机模组 _San Andreas Multiplayer_ 有着完全的兼容性。 <br /> 这代表 **现有的 SA:MP 客户端以及所有的服务器脚本完全可以使用在 open.mp 上** ,且服务器的 bug 将会得到修正,不需要再从脚本或是另外使用插件修正。 若您对该项目有兴趣,想知道何时发布,或是想要帮助开发,请查看 <a href="https://forum.open.mp/showthread.php?tid=99">这篇论坛文章</a> 以获得更多资讯。 # [问答集](/faq)
openmultiplayer/web/frontend/content/zh-cn/index.mdx/0
{ "file_path": "openmultiplayer/web/frontend/content/zh-cn/index.mdx", "repo_id": "openmultiplayer", "token_count": 381 }
481
{ "name": "", "short_name": "", "icons": [ { "src": "/static/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" }, { "src": "/static/android-chrome-512x512.png", "sizes": "512x512", "type": "ima...
openmultiplayer/web/frontend/public/images/assets/site.webmanifest/0
{ "file_path": "openmultiplayer/web/frontend/public/images/assets/site.webmanifest", "repo_id": "openmultiplayer", "token_count": 252 }
482
import { FC } from "react"; import NextLink, { LinkProps } from "next/link"; import { Link } from "@chakra-ui/layout"; type Props = LinkProps; const Anchor: FC<Props> = (props) => { return ( <> <NextLink {...props} passHref> <Link sx={{ color: "hsl(252.2, 30.8%, 59.2%)", ...
openmultiplayer/web/frontend/src/components/generic/Anchor.tsx/0
{ "file_path": "openmultiplayer/web/frontend/src/components/generic/Anchor.tsx", "repo_id": "openmultiplayer", "token_count": 304 }
483
import { useCallback } from "react"; import { useMutationAPI } from "src/fetcher/hooks"; import { User } from "src/types/_generated_User"; type UpdateUserFn = (user: User) => void; export const useUpdateUser = (): UpdateUserFn => { const api = useMutationAPI<User>(); return useCallback( async (user: User) => ...
openmultiplayer/web/frontend/src/components/member/hooks.ts/0
{ "file_path": "openmultiplayer/web/frontend/src/components/member/hooks.ts", "repo_id": "openmultiplayer", "token_count": 422 }
484
import Admonition from "../../../Admonition"; export default function NoteLowercase({ name = "function" }) { return ( <Admonition type="warning"> <p>Esta {name} inicia con letra minúscula.</p> </Admonition> ); }
openmultiplayer/web/frontend/src/components/templates/translations/es/lowercase-note.tsx/0
{ "file_path": "openmultiplayer/web/frontend/src/components/templates/translations/es/lowercase-note.tsx", "repo_id": "openmultiplayer", "token_count": 86 }
485
export const API_ADDRESS = process.env.NEXT_PUBLIC_API_ADDRESS ?? "https://api.open.mp"; export const WEB_ADDRESS = process.env.NEXT_PUBLIC_WEB_ADDRESS ?? "https://open.mp"; console.log(API_ADDRESS, WEB_ADDRESS);
openmultiplayer/web/frontend/src/config.ts/0
{ "file_path": "openmultiplayer/web/frontend/src/config.ts", "repo_id": "openmultiplayer", "token_count": 92 }
486
import React from "react"; import { API_ADDRESS } from "src/config"; const Page = () => { return ( <div className="measure center pa4 "> <form className="flex" action={`${API_ADDRESS}/users/dev`} method="get"> <input type="text" name="id" id="id" placeholder="id" /> <input type="text" name=...
openmultiplayer/web/frontend/src/pages/auth/dev.tsx/0
{ "file_path": "openmultiplayer/web/frontend/src/pages/auth/dev.tsx", "repo_id": "openmultiplayer", "token_count": 182 }
487
import { NextPage } from "next"; const Page: NextPage = () => { return ( <main className="measure-wide center"> <section id="text"> <header> <h1>Text</h1> </header> <article id="text__headings"> <header> <h2>Headings</h2> </header> ...
openmultiplayer/web/frontend/src/pages/typography.tsx/0
{ "file_path": "openmultiplayer/web/frontend/src/pages/typography.tsx", "repo_id": "openmultiplayer", "token_count": 15721 }
488
export type Content = { title: string; description?: string; date?: string; author?: string; slug?: string; }; export type RawContent = { source: string; fallback: boolean; };
openmultiplayer/web/frontend/src/types/content.ts/0
{ "file_path": "openmultiplayer/web/frontend/src/types/content.ts", "repo_id": "openmultiplayer", "token_count": 61 }
489
package cache import ( "time" cache "github.com/victorspringer/http-cache" "github.com/victorspringer/http-cache/adapter/memory" "go.uber.org/fx" ) func Build() fx.Option { return fx.Provide( func() (*cache.Client, error) { memory, err := memory.NewAdapter( memory.AdapterWithAlgorithm(memory.LRU), ...
openmultiplayer/web/internal/cache/cache.go/0
{ "file_path": "openmultiplayer/web/internal/cache/cache.go", "repo_id": "openmultiplayer", "token_count": 276 }
490
package web import ( "encoding/json" "fmt" "net/http" "github.com/pkg/errors" ) func Write(w http.ResponseWriter, data interface{}) { bytes, err := json.Marshal(data) if err != nil { StatusInternalServerError(w, errors.Wrap(err, "failed to encode payload")) return } w.Header().Add("Content-Length", fmt....
openmultiplayer/web/internal/web/write_json.go/0
{ "file_path": "openmultiplayer/web/internal/web/write_json.go", "repo_id": "openmultiplayer", "token_count": 138 }
491
datasource db { provider = "cockroachdb" url = env("DATABASE_URL") } generator client { provider = "go run github.com/steebchen/prisma-client-go" output = "../internal/db" package = "db" binaryTargets = ["native"] previewFeatures = ["fullTextSearch"] } enum AuthMethod { ...
openmultiplayer/web/prisma/schema.prisma/0
{ "file_path": "openmultiplayer/web/prisma/schema.prisma", "repo_id": "openmultiplayer", "token_count": 766 }
492
let AuthorizationMiddleware const AuthorizationManager = require('./AuthorizationManager') const async = require('async') const logger = require('logger-sharelatex') const { ObjectId } = require('mongodb') const Errors = require('../Errors/Errors') const HttpErrorHandler = require('../Errors/HttpErrorHandler') const Au...
overleaf/web/app/src/Features/Authorization/AuthorizationMiddleware.js/0
{ "file_path": "overleaf/web/app/src/Features/Authorization/AuthorizationMiddleware.js", "repo_id": "overleaf", "token_count": 3749 }
493
const CollaboratorsController = require('./CollaboratorsController') const AuthenticationController = require('../Authentication/AuthenticationController') const AuthorizationMiddleware = require('../Authorization/AuthorizationMiddleware') const PrivilegeLevels = require('../Authorization/PrivilegeLevels') const Collab...
overleaf/web/app/src/Features/Collaborators/CollaboratorsRouter.js/0
{ "file_path": "overleaf/web/app/src/Features/Collaborators/CollaboratorsRouter.js", "repo_id": "overleaf", "token_count": 1654 }
494
/* eslint-disable max-len, no-cond-assign, */ // 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: Consider s...
overleaf/web/app/src/Features/Documents/DocumentHelper.js/0
{ "file_path": "overleaf/web/app/src/Features/Documents/DocumentHelper.js", "repo_id": "overleaf", "token_count": 985 }
495
let ErrorController const Errors = require('./Errors') const logger = require('logger-sharelatex') const SessionManager = require('../Authentication/SessionManager') const SamlLogHandler = require('../SamlLog/SamlLogHandler') const HttpErrorHandler = require('./HttpErrorHandler') module.exports = ErrorController = { ...
overleaf/web/app/src/Features/Errors/ErrorController.js/0
{ "file_path": "overleaf/web/app/src/Features/Errors/ErrorController.js", "repo_id": "overleaf", "token_count": 1385 }
496
/* eslint-disable max-len, no-unused-vars, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. let StringHelper const JSON_ESCAPE_REGEXP = /[\u2028\u2029&><]/g const JSON_ESCAPE = { '&': '\\u0026', '>': '\\u003e', '<': '\\u003c', '\u2028': '\\u2028', '\...
overleaf/web/app/src/Features/Helpers/StringHelper.js/0
{ "file_path": "overleaf/web/app/src/Features/Helpers/StringHelper.js", "repo_id": "overleaf", "token_count": 386 }
497
/* 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 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions...
overleaf/web/app/src/Features/LinkedFiles/LinkedFilesRouter.js/0
{ "file_path": "overleaf/web/app/src/Features/LinkedFiles/LinkedFilesRouter.js", "repo_id": "overleaf", "token_count": 526 }
498
/* eslint-disable camelcase, 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 * DS207: Consider shorter variations of null checks...
overleaf/web/app/src/Features/Project/ProjectApiController.js/0
{ "file_path": "overleaf/web/app/src/Features/Project/ProjectApiController.js", "repo_id": "overleaf", "token_count": 302 }
499
const { Project } = require('../../models/Project') const settings = require('@overleaf/settings') const { promisifyAll } = require('../../util/promises') const safeCompilers = ['xelatex', 'pdflatex', 'latex', 'lualatex'] const ProjectOptionsHandler = { setCompiler(projectId, compiler, callback) { if (!compiler...
overleaf/web/app/src/Features/Project/ProjectOptionsHandler.js/0
{ "file_path": "overleaf/web/app/src/Features/Project/ProjectOptionsHandler.js", "repo_id": "overleaf", "token_count": 784 }
500
/* 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: * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit retu...
overleaf/web/app/src/Features/ServerAdmin/AdminController.js/0
{ "file_path": "overleaf/web/app/src/Features/ServerAdmin/AdminController.js", "repo_id": "overleaf", "token_count": 1924 }
501
const recurly = require('recurly') const Settings = require('@overleaf/settings') const logger = require('logger-sharelatex') const { callbackify } = require('util') const UserGetter = require('../User/UserGetter') const recurlySettings = Settings.apis.recurly const recurlyApiKey = recurlySettings ? recurlySettings.ap...
overleaf/web/app/src/Features/Subscription/RecurlyClient.js/0
{ "file_path": "overleaf/web/app/src/Features/Subscription/RecurlyClient.js", "repo_id": "overleaf", "token_count": 1183 }
502
/* 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 * DS103: Rewrite code to no longer use __guard__ * DS20...
overleaf/web/app/src/Features/Subscription/V1SubscriptionManager.js/0
{ "file_path": "overleaf/web/app/src/Features/Subscription/V1SubscriptionManager.js", "repo_id": "overleaf", "token_count": 2780 }
503
const AuthenticationController = require('../Authentication/AuthenticationController') const SessionManager = require('../Authentication/SessionManager') const TokenAccessHandler = require('./TokenAccessHandler') const Errors = require('../Errors/Errors') const logger = require('logger-sharelatex') const settings = req...
overleaf/web/app/src/Features/TokenAccess/TokenAccessController.js/0
{ "file_path": "overleaf/web/app/src/Features/TokenAccess/TokenAccessController.js", "repo_id": "overleaf", "token_count": 3301 }
504
const EmailHelper = require('../Helpers/EmailHelper') const EmailHandler = require('../Email/EmailHandler') const OneTimeTokenHandler = require('../Security/OneTimeTokenHandler') const settings = require('@overleaf/settings') const Errors = require('../Errors/Errors') const UserUpdater = require('./UserUpdater') const ...
overleaf/web/app/src/Features/User/UserEmailsConfirmationHandler.js/0
{ "file_path": "overleaf/web/app/src/Features/User/UserEmailsConfirmationHandler.js", "repo_id": "overleaf", "token_count": 1347 }
505
/* 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: * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implici...
overleaf/web/app/src/Features/UserMembership/UserMembershipHandler.js/0
{ "file_path": "overleaf/web/app/src/Features/UserMembership/UserMembershipHandler.js", "repo_id": "overleaf", "token_count": 1486 }
506
const { callbackify, promisify } = require('util') const metrics = require('@overleaf/metrics') const RedisWrapper = require('./RedisWrapper') const rclient = RedisWrapper.client('lock') const logger = require('logger-sharelatex') const os = require('os') const crypto = require('crypto') const async = require('async') ...
overleaf/web/app/src/infrastructure/LockManager.js/0
{ "file_path": "overleaf/web/app/src/infrastructure/LockManager.js", "repo_id": "overleaf", "token_count": 2687 }
507
const i18n = require('i18next') const fsBackend = require('i18next-fs-backend') const middleware = require('i18next-http-middleware') const path = require('path') const Settings = require('@overleaf/settings') const { URL } = require('url') const fallbackLanguageCode = Settings.i18n.defaultLng || 'en' const availableL...
overleaf/web/app/src/infrastructure/Translations.js/0
{ "file_path": "overleaf/web/app/src/infrastructure/Translations.js", "repo_id": "overleaf", "token_count": 1047 }
508
const mongoose = require('../infrastructure/Mongoose') const { Schema } = mongoose const { ObjectId } = Schema const OauthAuthorizationCodeSchema = new Schema( { authorizationCode: String, expiresAt: Date, oauthApplication_id: { type: ObjectId, ref: 'OauthApplication' }, redirectUri: String, sco...
overleaf/web/app/src/models/OauthAuthorizationCode.js/0
{ "file_path": "overleaf/web/app/src/models/OauthAuthorizationCode.js", "repo_id": "overleaf", "token_count": 216 }
509
\documentclass{article} \usepackage[utf8]{inputenc} \title{<%= project_name %>} \author{<%= user.first_name %> <%= user.last_name %>} \date{<%= month %> <%= year %>} \usepackage{natbib} \usepackage{graphicx} \begin{document} \maketitle \section{Introduction} There is a theory which states that if ever anyone disco...
overleaf/web/app/templates/project_files/main.tex/0
{ "file_path": "overleaf/web/app/templates/project_files/main.tex", "repo_id": "overleaf", "token_count": 276 }
510
extends ../layout/layout-no-js block vars - metadata = { title: 'Something went wrong', viewport: true } block body body.full-height main.content.content-alt.full-height#main-content .container.full-height .error-container.full-height .error-details p.error-status I'm sorry, Dave. I'm afraid I c...
overleaf/web/app/views/general/400.pug/0
{ "file_path": "overleaf/web/app/views/general/400.pug", "repo_id": "overleaf", "token_count": 337 }
511
div.full-size( ng-show="ui.view == 'editor'" layout="pdf" layout-disabled="ui.pdfLayout != 'sideBySide'" mask-iframes-on-resize="true" resize-on="layout:main:resize" resize-proportionally="true" initial-size-east="'50%'" minimum-restore-size-east="300" allow-overflow-on="'center'" custom-toggler-pane=hasFeatu...
overleaf/web/app/views/project/editor/editor.pug/0
{ "file_path": "overleaf/web/app/views/project/editor/editor.pug", "repo_id": "overleaf", "token_count": 970 }
512
div.full-size.pdf(ng-controller="PdfController") if showNewLogsUI preview-pane( compiler-state=`{ autoCompileHasChanges: changesToAutoCompile, autoCompileHasLintingError: autoCompileLintingError, isAutoCompileOn: autocompile_enabled, isClearingCache: pdf.clearingCache, isCompiling: pdf.compili...
overleaf/web/app/views/project/editor/pdf.pug/0
{ "file_path": "overleaf/web/app/views/project/editor/pdf.pug", "repo_id": "overleaf", "token_count": 6927 }
513
script(type="text/ng-template", id="groupPlanModalPurchaseTemplate") .modal-header h3 Save 30% or more with a group license .modal-body.plans .container-fluid .row .col-md-6.text-center .circle.circle-lg | {{ displayPrice }} span.small / year br span.circle-subtext For {{ selec...
overleaf/web/app/views/subscriptions/_modal_group_purchase.pug/0
{ "file_path": "overleaf/web/app/views/subscriptions/_modal_group_purchase.pug", "repo_id": "overleaf", "token_count": 943 }
514
div(ng-controller="RecurlySubscriptionController") div(ng-show="!showCancellation") if (personalSubscription.recurly.account.has_past_due_invoice && personalSubscription.recurly.account.has_past_due_invoice._ == 'true') .alert.alert-danger #{translate("account_has_past_due_invoice_change_plan_warning")} | &n...
overleaf/web/app/views/subscriptions/dashboard/_personal_subscription_recurly.pug/0
{ "file_path": "overleaf/web/app/views/subscriptions/dashboard/_personal_subscription_recurly.pug", "repo_id": "overleaf", "token_count": 2679 }
515
extends ../layout block vars - metadata = { viewport: true } block content - var showCaptcha = settings.recaptcha && settings.recaptcha.siteKey && !(settings.recaptcha.disabled && settings.recaptcha.disabled.passwordReset) if showCaptcha script(type="text/javascript", nonce=scriptNonce, src="https://www.recaptc...
overleaf/web/app/views/user/passwordReset.pug/0
{ "file_path": "overleaf/web/app/views/user/passwordReset.pug", "repo_id": "overleaf", "token_count": 884 }
516
#!/bin/sh set -e TEMPLATES_EXTENDING_META_BLOCK=$(\ grep \ --files-with-matches \ --recursive app/views modules/*/app/views \ --regex 'block append meta' \ --regex 'block prepend meta' \ --regex 'append meta' \ --regex 'prepend meta' \ ) for file in ${TEMPLATES_EXTENDING_META_BLOCK}; do ...
overleaf/web/bin/lint_pug_templates/0
{ "file_path": "overleaf/web/bin/lint_pug_templates", "repo_id": "overleaf", "token_count": 291 }
517
@font-face { font-family: 'Source Code Pro'; font-style: normal; font-weight: 400; src: local('Source Code Pro Regular'), local('SourceCodePro-Regular'), url('source-code-pro-v13-latin-regular.woff2') format('woff2'), url('source-code-pro-v13-latin-regular.woff') format('woff'); }
overleaf/web/frontend/fonts/source-code-pro.css/0
{ "file_path": "overleaf/web/frontend/fonts/source-code-pro.css", "repo_id": "overleaf", "token_count": 112 }
518
/* 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/directives/scroll.js/0
{ "file_path": "overleaf/web/frontend/js/directives/scroll.js", "repo_id": "overleaf", "token_count": 570 }
519
import App from '../../../base' import { react2angular } from 'react2angular' import CloneProjectModal from '../components/clone-project-modal' App.component('cloneProjectModal', react2angular(CloneProjectModal)) export default App.controller( 'LeftMenuCloneProjectModalController', function ($scope, ide) { $...
overleaf/web/frontend/js/features/clone-project-modal/controllers/left-menu-clone-project-modal-controller.js/0
{ "file_path": "overleaf/web/frontend/js/features/clone-project-modal/controllers/left-menu-clone-project-modal-controller.js", "repo_id": "overleaf", "token_count": 357 }
520
import PropTypes from 'prop-types' import { FileTreeMainProvider } from '../contexts/file-tree-main' import { FileTreeActionableProvider } from '../contexts/file-tree-actionable' import { FileTreeMutableProvider } from '../contexts/file-tree-mutable' import { FileTreeSelectableProvider } from '../contexts/file-tree-se...
overleaf/web/frontend/js/features/file-tree/components/file-tree-context.js/0
{ "file_path": "overleaf/web/frontend/js/features/file-tree/components/file-tree-context.js", "repo_id": "overleaf", "token_count": 799 }
521
import { useEffect } from 'react' import PropTypes from 'prop-types' import { useTranslation } from 'react-i18next' import classNames from 'classnames' import Icon from '../../../shared/components/icon' import { useFileTreeSelectable, useSelectableEntity, } from '../contexts/file-tree-selectable' import { useDropp...
overleaf/web/frontend/js/features/file-tree/components/file-tree-folder.js/0
{ "file_path": "overleaf/web/frontend/js/features/file-tree/components/file-tree-folder.js", "repo_id": "overleaf", "token_count": 1035 }
522
import { createContext, useCallback, useReducer, useContext, useEffect, } from 'react' import PropTypes from 'prop-types' import { renameInTree, deleteInTree, moveInTree, createEntityInTree, } from '../util/mutate-in-tree' const FileTreeMutableContext = createContext() const ACTION_TYPES = { RENA...
overleaf/web/frontend/js/features/file-tree/contexts/file-tree-mutable.js/0
{ "file_path": "overleaf/web/frontend/js/features/file-tree/contexts/file-tree-mutable.js", "repo_id": "overleaf", "token_count": 1861 }
523
import { useState, useCallback } from 'react' import PropTypes from 'prop-types' import { Trans, useTranslation } from 'react-i18next' import Icon from '../../../shared/components/icon' import { formatTime, relativeDate } from '../../utils/format-date' import { postJSON } from '../../../infrastructure/fetch-json' impo...
overleaf/web/frontend/js/features/file-view/components/file-view-header.js/0
{ "file_path": "overleaf/web/frontend/js/features/file-view/components/file-view-header.js", "repo_id": "overleaf", "token_count": 3526 }
524
import PropTypes from 'prop-types' import { useTranslation, Trans } from 'react-i18next' import PreviewLogsPaneEntry from './preview-logs-pane-entry' import Icon from '../../../shared/components/icon' import { useEditorContext } from '../../../shared/context/editor-context' import StartFreeTrialButton from '../../../sh...
overleaf/web/frontend/js/features/preview/components/preview-error.js/0
{ "file_path": "overleaf/web/frontend/js/features/preview/components/preview-error.js", "repo_id": "overleaf", "token_count": 2621 }
525
import { useEffect, useMemo, useState, useRef, useCallback } from 'react' import PropTypes from 'prop-types' import { Trans, useTranslation } from 'react-i18next' import { matchSorter } from 'match-sorter' import { useCombobox } from 'downshift' import classnames from 'classnames' import Icon from '../../../shared/com...
overleaf/web/frontend/js/features/share-project-modal/components/select-collaborators.js/0
{ "file_path": "overleaf/web/frontend/js/features/share-project-modal/components/select-collaborators.js", "repo_id": "overleaf", "token_count": 4517 }
526
import { useEffect, useRef } from 'react' import { OverlayTrigger, Tooltip } from 'react-bootstrap' import PropTypes from 'prop-types' export default function SymbolPaletteItem({ focused, handleSelect, handleKeyDown, symbol, }) { const buttonRef = useRef(null) // call focus() on this item when appropriate...
overleaf/web/frontend/js/features/symbol-palette/components/symbol-palette-item.js/0
{ "file_path": "overleaf/web/frontend/js/features/symbol-palette/components/symbol-palette-item.js", "repo_id": "overleaf", "token_count": 775 }
527
import i18n from '../i18n' // Control the editor loading screen. We want to show the loading screen until // both the websocket connection has been established (so that the editor is in // the correct state) and the translations have been loaded (so we don't see a // flash of untranslated text). class LoadingManager {...
overleaf/web/frontend/js/ide/LoadingManager.js/0
{ "file_path": "overleaf/web/frontend/js/ide/LoadingManager.js", "repo_id": "overleaf", "token_count": 371 }
528
/* 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/directives/validFile.js/0
{ "file_path": "overleaf/web/frontend/js/ide/directives/validFile.js", "repo_id": "overleaf", "token_count": 208 }
529
/* eslint-disable 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 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/mas...
overleaf/web/frontend/js/ide/editor/directives/aceEditor/cursor-position/CursorPositionAdapter.js/0
{ "file_path": "overleaf/web/frontend/js/ide/editor/directives/aceEditor/cursor-position/CursorPositionAdapter.js", "repo_id": "overleaf", "token_count": 479 }
530
let fileActionI18n if (window.fileActionI18n !== undefined) { fileActionI18n = window.fileActionI18n } fileActionI18n = { edited: 'edited', renamed: 'renamed', created: 'created', deleted: 'deleted', } export default fileActionI18n
overleaf/web/frontend/js/ide/file-tree/util/fileOperationI18nNames.js/0
{ "file_path": "overleaf/web/frontend/js/ide/file-tree/util/fileOperationI18nNames.js", "repo_id": "overleaf", "token_count": 90 }
531
/* 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 * DS207: Consider shorter variations of null checks * Full docs...
overleaf/web/frontend/js/ide/online-users/controllers/OnlineUsersController.js/0
{ "file_path": "overleaf/web/frontend/js/ide/online-users/controllers/OnlineUsersController.js", "repo_id": "overleaf", "token_count": 297 }
532
/* 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 * DS103: Rewrite code to no longer use __guard__ * Full docs: https://github.com/deca...
overleaf/web/frontend/js/ide/preamble/services/preamble.js/0
{ "file_path": "overleaf/web/frontend/js/ide/preamble/services/preamble.js", "repo_id": "overleaf", "token_count": 488 }
533
/* 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 * DS207: Consider shorter variations of null checks * Full docs...
overleaf/web/frontend/js/ide/review-panel/directives/reviewPanelToggle.js/0
{ "file_path": "overleaf/web/frontend/js/ide/review-panel/directives/reviewPanelToggle.js", "repo_id": "overleaf", "token_count": 590 }
534
/** * sessionStorage can throw browser exceptions, for example if it is full. * We don't use sessionStorage for anything critical, so in that case just fail gracefully. */ /** * Catch, log and otherwise ignore errors. * * @param {function} fn sessionStorage function to call * @param {string?} key Key passed to ...
overleaf/web/frontend/js/infrastructure/session-storage.js/0
{ "file_path": "overleaf/web/frontend/js/infrastructure/session-storage.js", "repo_id": "overleaf", "token_count": 353 }
535
import App from '../base' App.controller( 'ImportingController', function ($interval, $scope, $timeout, $window) { $interval(function () { $scope.state.load_progress += 5 if ($scope.state.load_progress > 100) { $scope.state.load_progress = 20 } }, 500) $timeout(function () { ...
overleaf/web/frontend/js/main/importing.js/0
{ "file_path": "overleaf/web/frontend/js/main/importing.js", "repo_id": "overleaf", "token_count": 178 }
536
// 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/master/docs/suggestions.md */ import App from '../base' ...
overleaf/web/frontend/js/main/scribtex-popup.js/0
{ "file_path": "overleaf/web/frontend/js/main/scribtex-popup.js", "repo_id": "overleaf", "token_count": 141 }
537
import App from '../base' export default App.factory('validateCaptchaV3', function () { const grecaptcha = window.grecaptcha const ExposedSettings = window.ExposedSettings return function validateCaptchaV3(actionName, callback = () => {}) { if (!grecaptcha) { return } if (!ExposedSettings || !E...
overleaf/web/frontend/js/services/validateCaptchaV3.js/0
{ "file_path": "overleaf/web/frontend/js/services/validateCaptchaV3.js", "repo_id": "overleaf", "token_count": 209 }
538
import { createContext, useContext } from 'react' import PropTypes from 'prop-types' import useScopeValue from './util/scope-value-hook' const ProjectContext = createContext() ProjectContext.Provider.propTypes = { value: PropTypes.shape({ _id: PropTypes.string.isRequired, name: PropTypes.string.isRequired, ...
overleaf/web/frontend/js/shared/context/project-context.js/0
{ "file_path": "overleaf/web/frontend/js/shared/context/project-context.js", "repo_id": "overleaf", "token_count": 644 }
539
import getMeta from './meta' // Configure dynamically loaded assets (via webpack) to be downloaded from CDN // See: https://webpack.js.org/guides/public-path/#on-the-fly __webpack_public_path__ = getMeta('ol-baseAssetPath')
overleaf/web/frontend/js/utils/webpack-public-path.js/0
{ "file_path": "overleaf/web/frontend/js/utils/webpack-public-path.js", "repo_id": "overleaf", "token_count": 72 }
540
import { Dropdown, MenuItem } from 'react-bootstrap' import ControlledDropdown from '../js/shared/components/controlled-dropdown' export const Customized = args => { return ( <ControlledDropdown pullRight={args.pullRight} defaultOpen={args.defaultOpen} id="dropdown-story" > <Dropdown....
overleaf/web/frontend/stories/dropdown.stories.js/0
{ "file_path": "overleaf/web/frontend/stories/dropdown.stories.js", "repo_id": "overleaf", "token_count": 473 }
541
import ErrorMessage from '../../../js/features/file-tree/components/file-tree-create/error-message' import { createFileModalDecorator } from './create-file-modal-decorator' import { FetchError } from '../../../js/infrastructure/fetch-json' import { BlockedFilenameError, DuplicateFilenameError, InvalidFilenameErro...
overleaf/web/frontend/stories/modals/create-file/error-message.stories.js/0
{ "file_path": "overleaf/web/frontend/stories/modals/create-file/error-message.stories.js", "repo_id": "overleaf", "token_count": 1220 }
542
/* v2 About Page */ .team { list-style: none; padding: 0; .team-member { display: block; float: left; margin-bottom: @margin-lg; width: 100%; h3 { margin: 0; } .team-pic { float: left; margin-right: @margin-sm; } .team-info { overflow: hidden; } ...
overleaf/web/frontend/stylesheets/app/about.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/app/about.less", "repo_id": "overleaf", "token_count": 263 }
543
@changesListWidth: 250px; @changesListPadding: @line-height-computed / 2; @selector-padding-vertical: 10px; @selector-padding-horizontal: @line-height-computed / 2; @day-header-height: 24px; @range-bar-color: @link-color; @range-bar-selected-offset: 14px; @history-toolbar-height: 32px; #history { .upgrade-prompt ...
overleaf/web/frontend/stylesheets/app/editor/history.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/app/editor/history.less", "repo_id": "overleaf", "token_count": 4207 }
544
.long-form-features { h2 { margin-top: 0; margin-bottom: @line-height-computed; } img { border-radius: 3px; -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); max-width: 100%; height: auto; } h3 { margin: 0; } i { color: lighten(...
overleaf/web/frontend/stylesheets/app/features.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/app/features.less", "repo_id": "overleaf", "token_count": 172 }
545
#publisher-hub { .recent-activity { .hub-big-number { text-align: right; padding-right: 15px; } } #templates-container { width: 100%; tr { border: 1px solid @ol-blue-gray-0; } td { padding: 15px; } td:last-child { text-align: right; } .title-c...
overleaf/web/frontend/stylesheets/app/publisher-hub.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/app/publisher-hub.less", "repo_id": "overleaf", "token_count": 442 }
546
// // Buttons // -------------------------------------------------- // Base styles // -------------------------------------------------- .btn { display: inline-block; margin-bottom: 0; // For input.btn font-weight: @btn-font-weight; text-align: center; vertical-align: middle; cursor: pointer; background...
overleaf/web/frontend/stylesheets/components/buttons.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/components/buttons.less", "repo_id": "overleaf", "token_count": 1684 }
547
.infinite-scroll { overflow-y: auto; }
overleaf/web/frontend/stylesheets/components/infinite-scroll.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/components/infinite-scroll.less", "repo_id": "overleaf", "token_count": 17 }
548
// // Pager pagination // -------------------------------------------------- .pager { padding-left: 0; margin: @line-height-computed 0; list-style: none; text-align: center; &:extend(.clearfix all); li { display: inline; > a, > span { display: inline-block; padding: 5px 14px; ...
overleaf/web/frontend/stylesheets/components/pager.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/components/pager.less", "repo_id": "overleaf", "token_count": 398 }
549
// // Mixins // -------------------------------------------------- // Utilities // ------------------------- // Clearfix // Source: http://nicolasgallagher.com/micro-clearfix-hack/ // // For modern browsers // 1. The space content is one way to avoid an Opera bug when the // contenteditable attribute is included a...
overleaf/web/frontend/stylesheets/core/mixins.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/core/mixins.less", "repo_id": "overleaf", "token_count": 11379 }
550
.plv-annotations-layer { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; pointer-events: none; } .plv-annotations-layer > a { display: block; position: absolute; pointer-events: auto; }
overleaf/web/frontend/stylesheets/vendor/pdfListView/AnnotationsLayer.css/0
{ "file_path": "overleaf/web/frontend/stylesheets/vendor/pdfListView/AnnotationsLayer.css", "repo_id": "overleaf", "token_count": 90 }
551
{ "trash": "Cestino", "git": "Git", "yes_please": "Sì, grazie!", "ill_take_it": "Mi va bene!", "cancel_your_subscription": "Elimina il tuo account", "no_thanks_cancel_now": "No, grazie - Voglio ancora annullare", "cancel_my_account": "Elimina il mio account", "sure_you_want_to_cancel": "Sei sicuro di vo...
overleaf/web/locales/it.json/0
{ "file_path": "overleaf/web/locales/it.json", "repo_id": "overleaf", "token_count": 14143 }
552
/* eslint-disable no-unused-vars */ const Helpers = require('./lib/helpers') exports.tags = ['server-ce', 'server-pro', 'saas'] const indexes = [ { key: { project_id: 1, }, name: 'project_id_1', }, ] exports.migrate = async client => { const { db } = client await Helpers.addIndexesToColle...
overleaf/web/migrations/20190912145004_create_docHistoryIndex_indexes.js/0
{ "file_path": "overleaf/web/migrations/20190912145004_create_docHistoryIndex_indexes.js", "repo_id": "overleaf", "token_count": 222 }
553
/* eslint-disable no-unused-vars */ const Helpers = require('./lib/helpers') exports.tags = ['saas'] const indexes = [ { key: { project_id: 1, }, name: 'project_id_1', }, ] exports.migrate = async client => { const { db } = client await Helpers.addIndexesToCollection(db.projectHistoryMeta...
overleaf/web/migrations/20190912145020_create_projectHistoryMetaData_indexes.js/0
{ "file_path": "overleaf/web/migrations/20190912145020_create_projectHistoryMetaData_indexes.js", "repo_id": "overleaf", "token_count": 214 }
554
const Helpers = require('./lib/helpers') exports.tags = ['saas'] const indexes = [ { key: { brandVariationId: 1, }, name: 'brandVariationId_1', }, ] exports.migrate = async ({ db }) => { await Helpers.addIndexesToCollection(db.projects, indexes) } exports.rollback = async ({ db }) => { try...
overleaf/web/migrations/20200110183327_brandVarationIdIndex.js/0
{ "file_path": "overleaf/web/migrations/20200110183327_brandVarationIdIndex.js", "repo_id": "overleaf", "token_count": 182 }
555
const runScript = require('../scripts/back_fill_doc_name_for_deleted_docs.js') exports.tags = ['server-ce', 'server-pro', 'saas'] exports.migrate = async client => { const options = { performCleanup: true, letUserDoubleCheckInputsFor: 10, } await runScript(options) } exports.rollback = async client => ...
overleaf/web/migrations/20210727150530_ce_sp_backfill_deleted_docs.js/0
{ "file_path": "overleaf/web/migrations/20210727150530_ce_sp_backfill_deleted_docs.js", "repo_id": "overleaf", "token_count": 115 }
556
const fs = require('fs') const path = require('path') const MODULES_PATH = path.join(__dirname, './') const entryPoints = [] if (fs.existsSync(MODULES_PATH)) { fs.readdirSync(MODULES_PATH).reduce((acc, module) => { const entryPath = path.join( MODULES_PATH, module, '/frontend/js/ide/index.js' ...
overleaf/web/modules/modules-ide.js/0
{ "file_path": "overleaf/web/modules/modules-ide.js", "repo_id": "overleaf", "token_count": 233 }
557
const { batchedUpdate } = require('./helpers/batchedUpdate') const { promiseMapWithLimit, promisify } = require('../app/src/util/promises') const { db } = require('../app/src/infrastructure/mongodb') const sleep = promisify(setTimeout) const _ = require('lodash') async function main(options) { if (!options) { op...
overleaf/web/scripts/back_fill_deleted_files.js/0
{ "file_path": "overleaf/web/scripts/back_fill_deleted_files.js", "repo_id": "overleaf", "token_count": 1266 }
558
const { waitForDb } = require('../app/src/infrastructure/mongodb') const { User } = require('../app/src/models/User') const UserController = require('../app/src/Features/User/UserController') require('logger-sharelatex').logger.level('error') const pLimit = require('p-limit') const CONCURRENCY = 10 const failure = [] c...
overleaf/web/scripts/ensure_affiliations.js/0
{ "file_path": "overleaf/web/scripts/ensure_affiliations.js", "repo_id": "overleaf", "token_count": 479 }
559
const { Subscription } = require('../../app/src/models/Subscription') const RecurlyWrapper = require('../../app/src/Features/Subscription/RecurlyWrapper') const SubscriptionUpdater = require('../../app/src/Features/Subscription/SubscriptionUpdater') const async = require('async') const minimist = require('minimist') /...
overleaf/web/scripts/recurly/resync_subscriptions.js/0
{ "file_path": "overleaf/web/scripts/recurly/resync_subscriptions.js", "repo_id": "overleaf", "token_count": 1965 }
560
const fs = require('fs') const LANGUAGES = [ 'cs', 'da', 'de', 'en', 'es', 'fi', 'fr', 'it', 'ja', 'ko', 'nl', 'no', 'pl', 'pt', 'ru', 'sv', 'tr', 'zh-CN', ] const LOCALES = {} LANGUAGES.forEach(loadLocales) function loadLocales(language) { LOCALES[language] = require(`../../local...
overleaf/web/scripts/translations/transformLocales.js/0
{ "file_path": "overleaf/web/scripts/translations/transformLocales.js", "repo_id": "overleaf", "token_count": 401 }
561
const { expect } = require('chai') const async = require('async') const User = require('./helpers/User') describe('AdminEmails', function () { beforeEach(function (done) { this.timeout(5000) done() }) describe('an admin with an invalid email address', function () { before(function (done) { thi...
overleaf/web/test/acceptance/src/AdminEmailTests.js/0
{ "file_path": "overleaf/web/test/acceptance/src/AdminEmailTests.js", "repo_id": "overleaf", "token_count": 654 }
562
require('./helpers/InitApp') const Features = require('../../../app/src/infrastructure/Features') const MockAnalyticsApi = require('./mocks/MockAnalyticsApi') const MockChatApi = require('./mocks/MockChatApi') const MockClsiApi = require('./mocks/MockClsiApi') const MockDocstoreApi = require('./mocks/MockDocstoreApi')...
overleaf/web/test/acceptance/src/Init.js/0
{ "file_path": "overleaf/web/test/acceptance/src/Init.js", "repo_id": "overleaf", "token_count": 532 }
563
/* eslint-disable camelcase, 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 * DS207: Consider shorter variations of null checks...
overleaf/web/test/acceptance/src/RestoringFilesTest.js/0
{ "file_path": "overleaf/web/test/acceptance/src/RestoringFilesTest.js", "repo_id": "overleaf", "token_count": 1603 }
564
const { ObjectId } = require('mongodb') const PublisherModel = require('../../../../app/src/models/Publisher').Publisher let count = parseInt(Math.random() * 999999) class Publisher { constructor(options = {}) { this.slug = options.slug || `publisher-slug-${count}` this.managerIds = [] count += 1 } ...
overleaf/web/test/acceptance/src/helpers/Publisher.js/0
{ "file_path": "overleaf/web/test/acceptance/src/helpers/Publisher.js", "repo_id": "overleaf", "token_count": 299 }
565
const { db, ObjectId } = require('../../../../app/src/infrastructure/mongodb') const AbstractMockApi = require('./AbstractMockApi') class MockDocstoreApi extends AbstractMockApi { reset() { this.docs = {} } createLegacyDeletedDoc(projectId, docId) { if (!this.docs[projectId]) { this.docs[projectId...
overleaf/web/test/acceptance/src/mocks/MockDocstoreApi.js/0
{ "file_path": "overleaf/web/test/acceptance/src/mocks/MockDocstoreApi.js", "repo_id": "overleaf", "token_count": 1408 }
566
import { fireEvent, render, screen, waitFor } from '@testing-library/react' import { expect } from 'chai' import CloneProjectModal from '../../../../../frontend/js/features/clone-project-modal/components/clone-project-modal' import sinon from 'sinon' import fetchMock from 'fetch-mock' describe('<CloneProjectModal />',...
overleaf/web/test/frontend/features/clone-project-modal/components/clone-project-modal.test.js/0
{ "file_path": "overleaf/web/test/frontend/features/clone-project-modal/components/clone-project-modal.test.js", "repo_id": "overleaf", "token_count": 1476 }
567
import { expect } from 'chai' import sinon from 'sinon' import { screen, fireEvent } from '@testing-library/react' import { renderWithEditorContext, cleanUpContext, } from '../../../helpers/render-with-context' import FileTreeRoot from '../../../../../frontend/js/features/file-tree/components/file-tree-root' desc...
overleaf/web/test/frontend/features/file-tree/flows/context-menu.test.js/0
{ "file_path": "overleaf/web/test/frontend/features/file-tree/flows/context-menu.test.js", "repo_id": "overleaf", "token_count": 959 }
568
import { expect } from 'chai' import { screen, render } from '@testing-library/react' import PreviewDownloadButton from '../../../../../frontend/js/features/preview/components/preview-download-button' describe('<PreviewDownloadButton />', function () { const projectId = 'projectId123' const pdfDownloadUrl = `/dow...
overleaf/web/test/frontend/features/preview/components/preview-download-button.test.js/0
{ "file_path": "overleaf/web/test/frontend/features/preview/components/preview-download-button.test.js", "repo_id": "overleaf", "token_count": 1057 }
569
import { expect } from 'chai' import { screen, render } from '@testing-library/react' import Icon from '../../../../frontend/js/shared/components/icon' describe('<Icon />', function () { it('renders basic fa classes', function () { const { container } = render(<Icon type="angle-down" />) const element = con...
overleaf/web/test/frontend/shared/components/icon.test.js/0
{ "file_path": "overleaf/web/test/frontend/shared/components/icon.test.js", "repo_id": "overleaf", "token_count": 651 }
570
const ANGULAR_PROJECT_CONTROLLER_REGEX = /controller="ProjectPageController"/ const TITLE_REGEX = /<title>Your Projects - .*, Online LaTeX Editor<\/title>/ async function run({ request, assertHasStatusCode }) { const response = await request('/project') assertHasStatusCode(response, 200) if (!TITLE_REGEX.test(...
overleaf/web/test/smoke/src/steps/100_loadProjectDashboard.js/0
{ "file_path": "overleaf/web/test/smoke/src/steps/100_loadProjectDashboard.js", "repo_id": "overleaf", "token_count": 180 }
571
/* eslint-disable node/handle-callback-err, max-len, no-return-assign, 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 * Full docs: h...
overleaf/web/test/unit/src/BrandVariations/BrandVariationsHandlerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/BrandVariations/BrandVariationsHandlerTests.js", "repo_id": "overleaf", "token_count": 1875 }
572
/* 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/test/unit/src/Contact/ContactManagerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Contact/ContactManagerTests.js", "repo_id": "overleaf", "token_count": 2162 }
573
const path = require('path') const modulePath = path.join( __dirname, '../../../../app/src/Features/Email/SpamSafe' ) const SpamSafe = require(modulePath) const { expect } = require('chai') describe('SpamSafe', function () { it('should reject spammy names', function () { expect(SpamSafe.isSafeUserName('Charl...
overleaf/web/test/unit/src/Email/SpamSafeTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Email/SpamSafeTests.js", "repo_id": "overleaf", "token_count": 1144 }
574
const { expect } = require('chai') const SandboxedModule = require('sandboxed-module') const path = require('path') const sinon = require('sinon') const modulePath = path.join( __dirname, '../../../../app/src/Features/Institutions/InstitutionsAPI' ) const Errors = require('../../../../app/src/Features/Errors/Errors...
overleaf/web/test/unit/src/Institutions/InstitutionsAPITests.js/0
{ "file_path": "overleaf/web/test/unit/src/Institutions/InstitutionsAPITests.js", "repo_id": "overleaf", "token_count": 5924 }
575
const sinon = require('sinon') const { expect } = require('chai') const { ObjectId } = require('mongodb') const SandboxedModule = require('sandboxed-module') const { Project } = require('../helpers/models/Project') const MODULE_PATH = '../../../../app/src/Features/Project/ProjectAuditLogHandler' describe('ProjectAu...
overleaf/web/test/unit/src/Project/ProjectAuditLogHandlerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Project/ProjectAuditLogHandlerTests.js", "repo_id": "overleaf", "token_count": 1073 }
576
/* eslint-disable camelcase, node/handle-callback-err, max-len, no-return-assign, 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 ...
overleaf/web/test/unit/src/Project/ProjectUpdateHandlerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Project/ProjectUpdateHandlerTests.js", "repo_id": "overleaf", "token_count": 1556 }
577
const chai = require('chai') const { expect } = chai function clearSettingsCache() { delete require.cache[ require.resolve('../../../../config/settings.defaults.js') ] const settingsDeps = Object.keys(require.cache).filter(x => x.includes('/@overleaf/settings/') ) settingsDeps.forEach(dep => delete r...
overleaf/web/test/unit/src/Settings/SettingsTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Settings/SettingsTests.js", "repo_id": "overleaf", "token_count": 258 }
578
const SandboxedModule = require('sandboxed-module') const sinon = require('sinon') const { expect } = require('chai') const modulePath = '../../../../app/src/Features/Subscription/TeamInvitesHandler' const { ObjectId } = require('mongodb') const Errors = require('../../../../app/src/Features/Errors/Errors') describ...
overleaf/web/test/unit/src/Subscription/TeamInvitesHandlerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Subscription/TeamInvitesHandlerTests.js", "repo_id": "overleaf", "token_count": 5718 }
579