text
stringlengths
1
2.83M
id
stringlengths
16
152
metadata
dict
__index_level_0__
int64
0
949
import { FC } from "react"; type Props = { lines?: number; }; const ClampedParagraph: FC<Props> = ({ children, lines = 1 }) => { return ( <> <p>{children}</p> <style jsx>{` p { margin: 0.1em; text-overflow: ellipsis; overflow: hidden; display: -web...
openmultiplayer/web/frontend/src/components/generic/ClampedParagraph.tsx/0
{ "file_path": "openmultiplayer/web/frontend/src/components/generic/ClampedParagraph.tsx", "repo_id": "openmultiplayer", "token_count": 277 }
483
import Admonition from "../../../Admonition"; export default function WarningVersion({ version, name = "function", }: { version: string; name: string; }) { return ( <Admonition type="warning"> <p> Esta {name} fue implementada en {version} y no funcionará en versiones anteriores. ...
openmultiplayer/web/frontend/src/components/templates/translations/es/version-warning.tsx/0
{ "file_path": "openmultiplayer/web/frontend/src/components/templates/translations/es/version-warning.tsx", "repo_id": "openmultiplayer", "token_count": 141 }
484
import { useToast, UseToastOptions } from "@chakra-ui/toast"; import nProgress from "nprogress"; import { useErrorHandler } from "src/utils/useErrorHandler"; import { useSWRConfig } from "swr"; import { api } from "./fetcher"; export type UseMutationOptions = { mutate?: string; progress?: boolean; toast?: UseToa...
openmultiplayer/web/frontend/src/fetcher/hooks.ts/0
{ "file_path": "openmultiplayer/web/frontend/src/fetcher/hooks.ts", "repo_id": "openmultiplayer", "token_count": 828 }
485
.card { min-height: 320px; } .announcement { background: linear-gradient( 98.18deg, #f7f7f7 -5.01%, rgba(247, 247, 247, 0) 100.73% ); box-shadow: 0px 0px 40px 8px rgba(134, 119, 206, 0.05); border: 1px solid rgba(134, 119, 206, 0.445); border-radius: 8px; padding: 0.8em 2em; }
openmultiplayer/web/frontend/src/styles/Card.module.css/0
{ "file_path": "openmultiplayer/web/frontend/src/styles/Card.module.css", "repo_id": "openmultiplayer", "token_count": 145 }
486
import { getLuminance } from "polished"; export const generateColour = (str: string, highlight = false): string => { const hue: number = Math.abs( str.split("").reduce((p, c) => c.charCodeAt(0) + ((p << 9) - p), 0) % 360 ); return `hsl(${hue}, 85%, ${highlight ? "90%" : "75%"})`; }; export const alternative...
openmultiplayer/web/frontend/src/utils/colour-hash.ts/0
{ "file_path": "openmultiplayer/web/frontend/src/utils/colour-hash.ts", "repo_id": "openmultiplayer", "token_count": 204 }
487
-- CreateTable CREATE TABLE "User" ( "id" TEXT NOT NULL, "email" TEXT NOT NULL, "name" TEXT NOT NULL, PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "Server" ( "id" TEXT NOT NULL, "ip" TEXT NOT NULL, "hn" TEXT NOT NULL, "pc" INTEGER NOT NULL, "pm" INTEGER NOT NULL, "gm" TEXT...
openmultiplayer/web/prisma/migrations/20201221190441_/migration.sql/0
{ "file_path": "openmultiplayer/web/prisma/migrations/20201221190441_/migration.sql", "repo_id": "openmultiplayer", "token_count": 476 }
488
BUILD_DIR_NAME ?= web MODULE_NAME := $(notdir $(shell pwd)) MODULE_DIR := modules/$(MODULE_NAME) PROJECT_NAME = web export SHARELATEX_CONFIG = /app/$(MODULE_DIR)/test/acceptance/config/settings.test.js export BASE_CONFIG ?= /app/test/acceptance/config/settings.test.saas.js CFG_SAAS=/app/test/acceptance/config/setting...
overleaf/web/Makefile.module/0
{ "file_path": "overleaf/web/Makefile.module", "repo_id": "overleaf", "token_count": 948 }
489
module.exports = { READ_ONLY: 'readOnly', // LEGACY READ_AND_WRITE: 'readAndWrite', // LEGACY PRIVATE: 'private', TOKEN_BASED: 'tokenBased', }
overleaf/web/app/src/Features/Authorization/PublicAccessLevels.js/0
{ "file_path": "overleaf/web/app/src/Features/Authorization/PublicAccessLevels.js", "repo_id": "overleaf", "token_count": 61 }
490
/* 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 * DS207: Consider shorter variations of n...
overleaf/web/app/src/Features/Compile/ClsiCookieManager.js/0
{ "file_path": "overleaf/web/app/src/Features/Compile/ClsiCookieManager.js", "repo_id": "overleaf", "token_count": 2085 }
491
/* 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 ret...
overleaf/web/app/src/Features/Downloads/ProjectZipStreamManager.js/0
{ "file_path": "overleaf/web/app/src/Features/Downloads/ProjectZipStreamManager.js", "repo_id": "overleaf", "token_count": 2635 }
492
const logger = require('logger-sharelatex') const Settings = require('@overleaf/settings') function renderJSONError(res, message, info = {}) { if (info.message) { logger.warn( info, `http error info shouldn't contain a 'message' field, will be overridden` ) } if (message != null) { res.js...
overleaf/web/app/src/Features/Errors/HttpErrorHandler.js/0
{ "file_path": "overleaf/web/app/src/Features/Errors/HttpErrorHandler.js", "repo_id": "overleaf", "token_count": 1799 }
493
let HistoryController const OError = require('@overleaf/o-error') const async = require('async') const logger = require('logger-sharelatex') const request = require('request') const settings = require('@overleaf/settings') const SessionManager = require('../Authentication/SessionManager') const UserGetter = require('.....
overleaf/web/app/src/Features/History/HistoryController.js/0
{ "file_path": "overleaf/web/app/src/Features/History/HistoryController.js", "repo_id": "overleaf", "token_count": 5545 }
494
/* eslint-disable camelcase, 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 * DS207: Consider sho...
overleaf/web/app/src/Features/LinkedFiles/ProjectOutputFileAgent.js/0
{ "file_path": "overleaf/web/app/src/Features/LinkedFiles/ProjectOutputFileAgent.js", "repo_id": "overleaf", "token_count": 4158 }
495
/* 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 ret...
overleaf/web/app/src/Features/Project/ProjectCollabratecDetailsHandler.js/0
{ "file_path": "overleaf/web/app/src/Features/Project/ProjectCollabratecDetailsHandler.js", "repo_id": "overleaf", "token_count": 1822 }
496
/* eslint-disable camelcase, node/handle-callback-err, 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 variatio...
overleaf/web/app/src/Features/Project/ProjectUpdateHandler.js/0
{ "file_path": "overleaf/web/app/src/Features/Project/ProjectUpdateHandler.js", "repo_id": "overleaf", "token_count": 665 }
497
const request = require('request') const Settings = require('@overleaf/settings') const OError = require('@overleaf/o-error') const TIMEOUT = 10 * 1000 module.exports = { getUserDictionary(userId, callback) { const url = `${Settings.apis.spelling.url}/user/${userId}` request.get({ url: url, timeout: TIMEOUT...
overleaf/web/app/src/Features/Spelling/SpellingHandler.js/0
{ "file_path": "overleaf/web/app/src/Features/Spelling/SpellingHandler.js", "repo_id": "overleaf", "token_count": 1032 }
498
/* eslint-disable camelcase, node/handle-callback-err, max-len, no-unused-vars, node/no-deprecated-api, */ // 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 ...
overleaf/web/app/src/Features/Subscription/RecurlyWrapper.js/0
{ "file_path": "overleaf/web/app/src/Features/Subscription/RecurlyWrapper.js", "repo_id": "overleaf", "token_count": 14263 }
499
const Settings = require('@overleaf/settings') const SessionManager = require('../Authentication/SessionManager') const SystemMessageManager = require('./SystemMessageManager') const ProjectController = { getMessages(req, res, next) { if (!SessionManager.isUserLoggedIn(req.session)) { // gracefully handle ...
overleaf/web/app/src/Features/SystemMessages/SystemMessageController.js/0
{ "file_path": "overleaf/web/app/src/Features/SystemMessages/SystemMessageController.js", "repo_id": "overleaf", "token_count": 390 }
500
/* 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/TokenGenerator/TokenGenerator.js/0
{ "file_path": "overleaf/web/app/src/Features/TokenGenerator/TokenGenerator.js", "repo_id": "overleaf", "token_count": 1411 }
501
const { callbackify } = require('util') const { db } = require('../../infrastructure/mongodb') const metrics = require('@overleaf/metrics') const logger = require('logger-sharelatex') const moment = require('moment') const settings = require('@overleaf/settings') const { promisifyAll } = require('../../util/promises') ...
overleaf/web/app/src/Features/User/UserGetter.js/0
{ "file_path": "overleaf/web/app/src/Features/User/UserGetter.js", "repo_id": "overleaf", "token_count": 2785 }
502
// TODO: This file was created by bulk-decaffeinate. // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ const UserMemb...
overleaf/web/app/src/Features/UserMembership/UserMembershipRouter.js/0
{ "file_path": "overleaf/web/app/src/Features/UserMembership/UserMembershipRouter.js", "repo_id": "overleaf", "token_count": 1553 }
503
const Metrics = require('@overleaf/metrics') exports.analyticsQueue = new Metrics.prom.Counter({ name: 'analytics_queue', help: 'Number of events sent to the analytics queue', labelNames: ['status', 'event_type'], })
overleaf/web/app/src/infrastructure/Metrics.js/0
{ "file_path": "overleaf/web/app/src/infrastructure/Metrics.js", "repo_id": "overleaf", "token_count": 71 }
504
const { Joi: CelebrateJoi, celebrate, errors } = require('celebrate') const { ObjectId } = require('mongodb') const objectIdValidator = { name: 'objectId', language: { invalid: 'needs to be a valid ObjectId', }, pre(value, state, options) { if (!ObjectId.isValid(value)) { return this.createError(...
overleaf/web/app/src/infrastructure/Validation.js/0
{ "file_path": "overleaf/web/app/src/infrastructure/Validation.js", "repo_id": "overleaf", "token_count": 250 }
505
const mongoose = require('../infrastructure/Mongoose') const { Schema } = mongoose const ProjectHistoryFailureSchema = new Schema( { project_id: Schema.Types.ObjectId, ts: Date, queueSize: Number, error: String, stack: String, attempts: Number, history: Schema.Types.Mixed, resyncStar...
overleaf/web/app/src/models/ProjectHistoryFailure.js/0
{ "file_path": "overleaf/web/app/src/models/ProjectHistoryFailure.js", "repo_id": "overleaf", "token_count": 193 }
506
@book{adams1995hitchhiker, title={The Hitchhiker's Guide to the Galaxy}, author={Adams, D.}, isbn={9781417642595}, url={http://books.google.com/books?id=W-xMPgAACAAJ}, year={1995}, publisher={San Val} }
overleaf/web/app/templates/project_files/references.bib/0
{ "file_path": "overleaf/web/app/templates/project_files/references.bib", "repo_id": "overleaf", "token_count": 88 }
507
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 Something went wrong, sorry. ...
overleaf/web/app/views/general/500.pug/0
{ "file_path": "overleaf/web/app/views/general/500.pug", "repo_id": "overleaf", "token_count": 280 }
508
aside.editor-sidebar.full-size( ng-show="ui.view != 'history'" vertical-resizable-panes="outline-resizer" vertical-resizable-panes-toggled-externally-on="outline-toggled" vertical-resizable-panes-min-size="32" vertical-resizable-panes-max-size="75%" vertical-resizable-panes-resize-on="left-pane-resize-all" ) .f...
overleaf/web/app/views/project/editor/file-tree-react.pug/0
{ "file_path": "overleaf/web/app/views/project/editor/file-tree-react.pug", "repo_id": "overleaf", "token_count": 476 }
509
#editor( ace-editor="editor", ng-if="!editor.showRichText", ng-show="!!editor.sharejs_doc && !editor.opening && multiSelectedCount === 0 && !editor.error_state", theme="settings.editorTheme", keybindings="settings.mode", font-size="settings.fontSize", auto-complete="settings.autoComplete", auto-pair-delimiters=...
overleaf/web/app/views/project/editor/source-editor.pug/0
{ "file_path": "overleaf/web/app/views/project/editor/source-editor.pug", "repo_id": "overleaf", "token_count": 490 }
510
//- Buy Buttons mixin btn_buy_collaborator(location) a.btn.btn-primary( ng-href="/user/subscription/new?planCode={{ getCollaboratorPlanCode() }}&currency={{currencyCode}}&itm_campaign=plans&itm_content=" + location, ng-click="signUpNowClicked('collaborator','" + location + "')" ) span(ng-show="ui.view != 'annua...
overleaf/web/app/views/subscriptions/_plans_page_mixins.pug/0
{ "file_path": "overleaf/web/app/views/subscriptions/_plans_page_mixins.pug", "repo_id": "overleaf", "token_count": 3327 }
511
mixin teamName(subscription) if (subscription.teamName && subscription.teamName != '') strong(ng-non-bindable)= subscription.teamName else if (subscription.admin_id._id == user._id) | a group account else | the group account owned by | strong= subscription.admin_id.email
overleaf/web/app/views/subscriptions/dashboard/_team_name_mixin.pug/0
{ "file_path": "overleaf/web/app/views/subscriptions/dashboard/_team_name_mixin.pug", "repo_id": "overleaf", "token_count": 95 }
512
extends ../layout block content main.content.content-alt#main-content .container .row .registration_message if sharedProjectData.user_first_name !== undefined h1(ng-non-bindable) #{translate("user_wants_you_to_see_project", {username:sharedProjectData.user_first_name, projectname:""})} em(n...
overleaf/web/app/views/user/register.pug/0
{ "file_path": "overleaf/web/app/views/user/register.pug", "repo_id": "overleaf", "token_count": 492 }
513
#! /usr/bin/env node const acorn = require('acorn') const acornWalk = require('acorn-walk') const fs = require('fs') const _ = require('lodash') const glob = require('glob') print = console.log const Methods = new Set([ 'get', 'head', 'post', 'put', 'delete', 'connect', 'options', 'trace', 'patch' ]...
overleaf/web/bin/routes/0
{ "file_path": "overleaf/web/bin/routes", "repo_id": "overleaf", "token_count": 1278 }
514
/* 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/frontend/js/directives/stopPropagation.js/0
{ "file_path": "overleaf/web/frontend/js/directives/stopPropagation.js", "repo_id": "overleaf", "token_count": 240 }
515
import Icon from '../../../shared/components/icon' import { useTranslation } from 'react-i18next' function BackToProjectsButton() { const { t } = useTranslation() return ( <a className="toolbar-header-back-projects" href="/project"> <Icon type="fw" modifier="level-up" accessibilit...
overleaf/web/frontend/js/features/editor-navigation-toolbar/components/back-to-projects-button.js/0
{ "file_path": "overleaf/web/frontend/js/features/editor-navigation-toolbar/components/back-to-projects-button.js", "repo_id": "overleaf", "token_count": 159 }
516
import PropTypes from 'prop-types' import { useTranslation, Trans } from 'react-i18next' import { FetchError } from '../../../../infrastructure/fetch-json' import RedirectToLogin from './redirect-to-login' import { BlockedFilenameError, DuplicateFilenameError, InvalidFilenameError, } from '../../errors' import Da...
overleaf/web/frontend/js/features/file-tree/components/file-tree-create/error-message.js/0
{ "file_path": "overleaf/web/frontend/js/features/file-tree/components/file-tree-create/error-message.js", "repo_id": "overleaf", "token_count": 1330 }
517
import { useTranslation } from 'react-i18next' import { MenuItem } from 'react-bootstrap' import { useFileTreeActionable } from '../../contexts/file-tree-actionable' function FileTreeItemMenuItems() { const { t } = useTranslation() const { canRename, canDelete, canCreate, startRenaming, start...
overleaf/web/frontend/js/features/file-tree/components/file-tree-item/file-tree-item-menu-items.js/0
{ "file_path": "overleaf/web/frontend/js/features/file-tree/components/file-tree-item/file-tree-item-menu-items.js", "repo_id": "overleaf", "token_count": 445 }
518
import App from '../../../base' import { react2angular } from 'react2angular' import { cloneDeep } from 'lodash' import FileTreeRoot from '../components/file-tree-root' import { rootContext } from '../../../shared/context/root-context' App.controller('ReactFileTreeController', function ( $scope, $timeout, ide ...
overleaf/web/frontend/js/features/file-tree/controllers/file-tree-controller.js/0
{ "file_path": "overleaf/web/frontend/js/features/file-tree/controllers/file-tree-controller.js", "repo_id": "overleaf", "token_count": 1312 }
519
import { useState, useEffect } from 'react' import PropTypes from 'prop-types' import { useProjectContext } from '../../../shared/context/project-context' const MAX_FILE_SIZE = 2 * 1024 * 1024 export default function FileViewText({ file, onLoad, onError }) { const { _id: projectId } = useProjectContext({ _id: P...
overleaf/web/frontend/js/features/file-view/components/file-view-text.js/0
{ "file_path": "overleaf/web/frontend/js/features/file-view/components/file-view-text.js", "repo_id": "overleaf", "token_count": 933 }
520
import { useState, useRef } from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import { useTranslation } from 'react-i18next' import { OverlayTrigger, Tooltip } from 'react-bootstrap' import useExpandCollapse from '../../../shared/hooks/use-expand-collapse' import useResizeObserver from...
overleaf/web/frontend/js/features/preview/components/preview-logs-pane-entry.js/0
{ "file_path": "overleaf/web/frontend/js/features/preview/components/preview-logs-pane-entry.js", "repo_id": "overleaf", "token_count": 3456 }
521
import { useMemo } from 'react' import { Row } from 'react-bootstrap' import AddCollaborators from './add-collaborators' import AddCollaboratorsUpgrade from './add-collaborators-upgrade' import { useProjectContext } from '../../../shared/context/project-context' export default function SendInvites() { const project ...
overleaf/web/frontend/js/features/share-project-modal/components/send-invites.js/0
{ "file_path": "overleaf/web/frontend/js/features/share-project-modal/components/send-invites.js", "repo_id": "overleaf", "token_count": 294 }
522
import { useCallback, useEffect, useState } from 'react' import { useTranslation } from 'react-i18next' import PropTypes from 'prop-types' import { FormControl } from 'react-bootstrap' import useDebounce from '../../../shared/hooks/use-debounce' export default function SymbolPaletteSearch({ setInput, inputRef }) { c...
overleaf/web/frontend/js/features/symbol-palette/components/symbol-palette-search.js/0
{ "file_path": "overleaf/web/frontend/js/features/symbol-palette/components/symbol-palette-search.js", "repo_id": "overleaf", "token_count": 417 }
523
/* 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/binary-files/BinaryFilesManager.js/0
{ "file_path": "overleaf/web/frontend/js/ide/binary-files/BinaryFilesManager.js", "repo_id": "overleaf", "token_count": 420 }
524
/* 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: * DS001: Remove Babel/TypeScript constructor workaround * DS101: Remove unnecessary use of Array.from * DS102...
overleaf/web/frontend/js/ide/editor/Document.js/0
{ "file_path": "overleaf/web/frontend/js/ide/editor/Document.js", "repo_id": "overleaf", "token_count": 10769 }
525
/* eslint-disable camelcase, 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: * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of ...
overleaf/web/frontend/js/ide/editor/directives/aceEditor/highlights/HighlightsManager.js/0
{ "file_path": "overleaf/web/frontend/js/ide/editor/directives/aceEditor/highlights/HighlightsManager.js", "repo_id": "overleaf", "token_count": 4866 }
526
import '../../features/file-view/controllers/file-view-controller'
overleaf/web/frontend/js/ide/file-view/index.js/0
{ "file_path": "overleaf/web/frontend/js/ide/file-view/index.js", "repo_id": "overleaf", "token_count": 20 }
527
/* 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/history/controllers/HistoryV2ListController.js/0
{ "file_path": "overleaf/web/frontend/js/ide/history/controllers/HistoryV2ListController.js", "repo_id": "overleaf", "token_count": 582 }
528
import App from '../../../base' import HumanReadableLogs from '../../human-readable-logs/HumanReadableLogs' import BibLogParser from 'libs/bib-log-parser' import PreviewPane from '../../../features/preview/components/preview-pane' import { react2angular } from 'react2angular' import { rootContext } from '../../../share...
overleaf/web/frontend/js/ide/pdf/controllers/PdfController.js/0
{ "file_path": "overleaf/web/frontend/js/ide/pdf/controllers/PdfController.js", "repo_id": "overleaf", "token_count": 16428 }
529
/* eslint-disable camelcase, 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: * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of ...
overleaf/web/frontend/js/ide/review-panel/RangesTracker.js/0
{ "file_path": "overleaf/web/frontend/js/ide/review-panel/RangesTracker.js", "repo_id": "overleaf", "token_count": 12507 }
530
// 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/decaffeinate/decaffeinate/blob/mast...
overleaf/web/frontend/js/ide/review-panel/filters/numKeys.js/0
{ "file_path": "overleaf/web/frontend/js/ide/review-panel/filters/numKeys.js", "repo_id": "overleaf", "token_count": 193 }
531
import 'jquery' import 'angular' import 'angular-sanitize' import 'lodash' import 'libs/angular-autocomplete/angular-autocomplete' import 'libs/ui-bootstrap' import 'libs/ng-context-menu-0.1.4' import 'libs/jquery.storage' import 'libs/angular-cookie' import 'libs/passfield' import 'libs/select/select' // CSS import '...
overleaf/web/frontend/js/libraries.js/0
{ "file_path": "overleaf/web/frontend/js/libraries.js", "repo_id": "overleaf", "token_count": 164 }
532
// 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/keys.js/0
{ "file_path": "overleaf/web/frontend/js/main/keys.js", "repo_id": "overleaf", "token_count": 185 }
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 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/m...
overleaf/web/frontend/js/main/subscription/team-invite-controller.js/0
{ "file_path": "overleaf/web/frontend/js/main/subscription/team-invite-controller.js", "repo_id": "overleaf", "token_count": 669 }
534
import { useCallback } from 'react' import PropTypes from 'prop-types' import { Modal } from 'react-bootstrap' // a bootstrap Modal with its `aria-hidden` attribute removed. Visisble modals // should not have their `aria-hidden` attribute set but that's a bug in our // version of react-bootstrap. function AccessibleMo...
overleaf/web/frontend/js/shared/components/accessible-modal.js/0
{ "file_path": "overleaf/web/frontend/js/shared/components/accessible-modal.js", "repo_id": "overleaf", "token_count": 386 }
535
import { createContext, useContext } from 'react' import PropTypes from 'prop-types' import useScopeValue from './util/scope-value-hook' export const UserContext = createContext() UserContext.Provider.propTypes = { value: PropTypes.shape({ user: PropTypes.shape({ id: PropTypes.string, allowedFreeTri...
overleaf/web/frontend/js/shared/context/user-context.js/0
{ "file_path": "overleaf/web/frontend/js/shared/context/user-context.js", "repo_id": "overleaf", "token_count": 273 }
536
/* --- Made by justgoscha and licensed under MIT license --- */ var app = angular.module('autocomplete', []); app.directive('autocomplete', function() { var index = -1; return { restrict: 'E', scope: { searchParam: '=ngModel', suggestions: '=data', onType: '=onType', onSelect: '=o...
overleaf/web/frontend/js/vendor/libs/angular-autocomplete/angular-autocomplete.js/0
{ "file_path": "overleaf/web/frontend/js/vendor/libs/angular-autocomplete/angular-autocomplete.js", "repo_id": "overleaf", "token_count": 3231 }
537
From 9826c6eb1ecd501ac3eb1e9d9a98a3e6edde3fd0 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann <jakob.ackermann@overleaf.com> Date: Mon, 5 Jul 2021 16:23:18 +0100 Subject: [PATCH] [misc] fix handling of fetch errors (backport) Testing: - delete the pdf file while the initial request is inflight - delete the pdf file aft...
overleaf/web/frontend/js/vendor/libs/pdfjs-dist/patches/0001-misc-fix-handling-of-fetch-errors-backport.patch/0
{ "file_path": "overleaf/web/frontend/js/vendor/libs/pdfjs-dist/patches/0001-misc-fix-handling-of-fetch-errors-backport.patch", "repo_id": "overleaf", "token_count": 885 }
538
import MockedSocket from 'socket.io-mock' import { ContextRoot } from '../js/shared/context/root-context' import { rootFolderBase } from './fixtures/file-tree-base' import { rootFolderLimit } from './fixtures/file-tree-limit' import FileTreeRoot from '../js/features/file-tree/components/file-tree-root' import FileTree...
overleaf/web/frontend/stories/file-tree.stories.js/0
{ "file_path": "overleaf/web/frontend/stories/file-tree.stories.js", "repo_id": "overleaf", "token_count": 1915 }
539
import OutlinePane from '../js/features/outline/components/outline-pane' import { ContextRoot } from '../js/shared/context/root-context' import { setupContext } from './fixtures/context' setupContext() export const Basic = args => <OutlinePane {...args} /> Basic.args = { outline: [{ line: 1, title: 'Hello', level: ...
overleaf/web/frontend/stories/outline.stories.js/0
{ "file_path": "overleaf/web/frontend/stories/outline.stories.js", "repo_id": "overleaf", "token_count": 617 }
540
.circle(@size, @background_color) { display: inline-block; background-color: @background_color; border-radius: 50%; width: @size; height: @size; text-align: center; padding-top: @size / 6.4; img { height: @size - @size / 3.2; } } .hub-header { h2 { display: inline-block; } a { color...
overleaf/web/frontend/stylesheets/app/admin-hub.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/app/admin-hub.less", "repo_id": "overleaf", "token_count": 704 }
541
#left-menu { position: absolute; width: @left-menu-width; padding: (@line-height-computed / 2); top: 0; bottom: 0; background-color: #f4f4f4; z-index: 100; overflow-y: auto; overflow-x: hidden; -webkit-transition: left ease-in-out @left-menu-animation-duration; transition: left ease-in-out @left-m...
overleaf/web/frontend/stylesheets/app/editor/left-menu.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/app/editor/left-menu.less", "repo_id": "overleaf", "token_count": 1208 }
542
@register-v-spacing: 20px; .deprecated-sl-masthead { display: inline-block; margin-top: @header-height; width: 100%; text-align: center; h1 { font-size: 3.3rem; line-height: 5rem; margin-bottom: 0; margin-top: @line-height-computed; } .img { max-width: 420px; background-image: url...
overleaf/web/frontend/stylesheets/app/homepage.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/app/homepage.less", "repo_id": "overleaf", "token_count": 2910 }
543
.registration_message { text-align: center; padding-bottom: 20px; }
overleaf/web/frontend/stylesheets/app/register.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/app/register.less", "repo_id": "overleaf", "token_count": 26 }
544
// // Carousel // -------------------------------------------------- // Wrapper for the slide container and indicators .carousel { position: relative; } .carousel-inner { position: relative; overflow: hidden; width: 100%; > .item { display: none; position: relative; .transition(0.6s ease-in-out...
overleaf/web/frontend/stylesheets/components/carousel.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/components/carousel.less", "repo_id": "overleaf", "token_count": 1917 }
545
.input-suggestions { position: relative; height: @input-height-base; } .input-suggestions-main { position: absolute; top: 0; background-color: transparent; } .input-suggestions-shadow { background-color: @input-bg; padding-top: @input-suggestion-v-offset; } .input-suggestions-shadow-existing { color: t...
overleaf/web/frontend/stylesheets/components/input-suggestions.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/components/input-suggestions.less", "repo_id": "overleaf", "token_count": 144 }
546
// // Panels // -------------------------------------------------- // Base class .panel { margin-bottom: @line-height-computed; background-color: @panel-bg; border: 1px solid transparent; border-radius: @panel-border-radius; .box-shadow(0 1px 1px rgba(0, 0, 0, 0.05)); } // Panel contents .panel-body { pad...
overleaf/web/frontend/stylesheets/components/panels.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/components/panels.less", "repo_id": "overleaf", "token_count": 2390 }
547
@ieee-blue: #00629b; @ieee-dark-blue: #002855; @ieee-cyan: #00b5e2; @ieee-dark-cyan: #009ca6; @ieee-red: #ba0c2f; @ieee-orange: #ffa300; @ieee-yellow: #ffd100; @ieee-light-green: #78be20; @ieee-dark-green: #00843d; @ieee-purple: #981d97; @ol-blue-gray-0: #f4f5f8; @ol-blue-gray-1: #d8e0e6; @ol-blue-gray-2: #8195a1; @ol...
overleaf/web/frontend/stylesheets/core/ol-ieee-variables.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/core/ol-ieee-variables.less", "repo_id": "overleaf", "token_count": 670 }
548
.plv-page-view { position: relative; } .plv-text-layer { position: absolute; left: 0; top: 0; right: 0; bottom: 0; color: #000; font-family: sans-serif; overflow: hidden; pointer-events: none; } .plv-text-layer > span { color: transparent; position: absolute; line-height: 1; white-space: pre...
overleaf/web/frontend/stylesheets/vendor/pdfListView/TextLayer.css/0
{ "file_path": "overleaf/web/frontend/stylesheets/vendor/pdfListView/TextLayer.css", "repo_id": "overleaf", "token_count": 276 }
549
{ "find_out_more": "더 알아보기", "compare_plan_features": "플랜 비교", "in_good_company": "좋은 회사에 다니시네요", "unlimited": "무제한", "priority_support": "우선권 지원", "dropbox_integration_lowercase": "Dropbox 통합", "github_integration_lowercase": "GitHub 통합", "discounted_group_accounts": "디스카운트 그룹 계정", "referring_your_fr...
overleaf/web/locales/ko.json/0
{ "file_path": "overleaf/web/locales/ko.json", "repo_id": "overleaf", "token_count": 41236 }
550
/* eslint-disable no-unused-vars */ const Helpers = require('./lib/helpers') exports.tags = ['server-ce', 'server-pro', 'saas'] const indexes = [ { unique: true, key: { doc_id: 1, }, name: 'doc_id_1', }, ] exports.migrate = async client => { const { db } = client await Helpers.addInde...
overleaf/web/migrations/20190912145006_create_docOps_indexes.js/0
{ "file_path": "overleaf/web/migrations/20190912145006_create_docOps_indexes.js", "repo_id": "overleaf", "token_count": 228 }
551
/* eslint-disable no-unused-vars */ const Helpers = require('./lib/helpers') exports.tags = ['saas'] const indexes = [ { key: { v1_project_id: 1, }, name: 'v1_project_id_1', }, ] exports.migrate = async client => { const { db } = client await Helpers.addIndexesToCollection(db.projectImpor...
overleaf/web/migrations/20190912145022_create_projectImportFailures_indexes.js/0
{ "file_path": "overleaf/web/migrations/20190912145022_create_projectImportFailures_indexes.js", "repo_id": "overleaf", "token_count": 220 }
552
/* eslint-disable no-unused-vars */ exports.tags = ['server-ce', 'server-pro', 'saas'] async function removeDuplicates(collection, field) { const duplicates = await collection.aggregate( [ { $group: { _id: { projectId: `$deleterData.${field}` }, dups: { $addToSet: '$_id' }, ...
overleaf/web/migrations/20200210084301_remove-duplicate-deleted-things.js/0
{ "file_path": "overleaf/web/migrations/20200210084301_remove-duplicate-deleted-things.js", "repo_id": "overleaf", "token_count": 481 }
553
# Migrations Migrations for the app environment live in this folder, and use the [East](https://github.com/okv/east) migration framework. We have an npm script which wraps east: `npm run migrations -- ...` For example: ``` sh npm run migrations -- list -t 'saas' ``` ### Environments and Tags Overleaf is deployed ...
overleaf/web/migrations/README.md/0
{ "file_path": "overleaf/web/migrations/README.md", "repo_id": "overleaf", "token_count": 642 }
554
module.exports = {}
overleaf/web/modules/server-ce-scripts/index.js/0
{ "file_path": "overleaf/web/modules/server-ce-scripts/index.js", "repo_id": "overleaf", "token_count": 7 }
555
const { promisify } = require('util') const { ObjectId, ReadPreference } = require('mongodb') const { db, waitForDb } = require('../app/src/infrastructure/mongodb') const sleep = promisify(setTimeout) const _ = require('lodash') const NOW_IN_S = Date.now() / 1000 const ONE_WEEK_IN_S = 60 * 60 * 24 * 7 const TEN_SECOND...
overleaf/web/scripts/back_fill_dummy_doc_meta.js/0
{ "file_path": "overleaf/web/scripts/back_fill_dummy_doc_meta.js", "repo_id": "overleaf", "token_count": 1823 }
556
const { ReadPreference, ObjectId } = require('mongodb') const { db, waitForDb } = require('../../app/src/infrastructure/mongodb') const BATCH_SIZE = parseInt(process.env.BATCH_SIZE, 10) || 1000 let BATCH_LAST_ID if (process.env.BATCH_LAST_ID) { BATCH_LAST_ID = ObjectId(process.env.BATCH_LAST_ID) } async function ge...
overleaf/web/scripts/helpers/batchedUpdate.js/0
{ "file_path": "overleaf/web/scripts/helpers/batchedUpdate.js", "repo_id": "overleaf", "token_count": 801 }
557
const { db, waitForDb } = require('../app/src/infrastructure/mongodb') const minimist = require('minimist') const _ = require('lodash') const async = require('async') const FeaturesUpdater = require('../app/src/Features/Subscription/FeaturesUpdater') const UserFeaturesUpdater = require('../app/src/Features/Subscription...
overleaf/web/scripts/refresh_features.js/0
{ "file_path": "overleaf/web/scripts/refresh_features.js", "repo_id": "overleaf", "token_count": 1690 }
558
\documentclass[12pt]{article} \usepackage[german,english]{babel} \usepackage[utf8x]{inputenc} \begin{document} \title{Untitled} \selectlanguage{german} Der schnelle braune Fuchs sprang träge über den Hund. \end{document}
overleaf/web/test/acceptance/files/charsets/test-german-utf8x.tex/0
{ "file_path": "overleaf/web/test/acceptance/files/charsets/test-german-utf8x.tex", "repo_id": "overleaf", "token_count": 93 }
559
const { expect } = require('chai') const { ObjectId } = require('mongodb') const User = require('./helpers/User').promises describe('Authentication', function () { let user beforeEach('init vars', function () { user = new User() }) describe('CSRF regeneration on login', function () { it('should preven...
overleaf/web/test/acceptance/src/AuthenticationTests.js/0
{ "file_path": "overleaf/web/test/acceptance/src/AuthenticationTests.js", "repo_id": "overleaf", "token_count": 1001 }
560
const { expect } = require('chai') const { User } = require('../../../app/src/models/User') const { Subscription } = require('../../../app/src/models/Subscription') describe('mongoose', function () { describe('User', function () { const email = 'wombat@potato.net' it('allows the creation of a user', async ...
overleaf/web/test/acceptance/src/ModelTests.js/0
{ "file_path": "overleaf/web/test/acceptance/src/ModelTests.js", "repo_id": "overleaf", "token_count": 500 }
561
const { expect } = require('chai') const async = require('async') const User = require('./helpers/User') const redis = require('./helpers/redis') describe('Sessions', function () { beforeEach(function (done) { this.timeout(20000) this.user1 = new User() this.site_admin = new User({ email: 'admin@example....
overleaf/web/test/acceptance/src/SessionTests.js/0
{ "file_path": "overleaf/web/test/acceptance/src/SessionTests.js", "repo_id": "overleaf", "token_count": 7617 }
562
const RateLimiter = require('../../../../app/src/infrastructure/RateLimiter') async function clearOverleafLoginRateLimit() { await RateLimiter.promises.clearRateLimit('overleaf-login', '127.0.0.1') } module.exports = { initialize() { before(clearOverleafLoginRateLimit) }, }
overleaf/web/test/acceptance/src/helpers/RedisHelper.js/0
{ "file_path": "overleaf/web/test/acceptance/src/helpers/RedisHelper.js", "repo_id": "overleaf", "token_count": 97 }
563
const AbstractMockApi = require('./AbstractMockApi') // Currently there is nothing implemented here as we have no acceptance tests // for the notifications API. This does however stop errors appearing in the // output when the acceptance tests try to connect. class MockNotificationsApi extends AbstractMockApi { app...
overleaf/web/test/acceptance/src/mocks/MockNotificationsApi.js/0
{ "file_path": "overleaf/web/test/acceptance/src/mocks/MockNotificationsApi.js", "repo_id": "overleaf", "token_count": 197 }
564
import { expect } from 'chai' import sinon from 'sinon' import { fireEvent, render, screen } from '@testing-library/react' import OnlineUsersWidget from '../../../../../frontend/js/features/editor-navigation-toolbar/components/online-users-widget' describe('<OnlineUsersWidget />', function () { const defaultProps =...
overleaf/web/test/frontend/features/editor-navigation-toolbar/components/online-users-widget.test.js/0
{ "file_path": "overleaf/web/test/frontend/features/editor-navigation-toolbar/components/online-users-widget.test.js", "repo_id": "overleaf", "token_count": 1179 }
565
import { expect } from 'chai' import sinon from 'sinon' import { screen, fireEvent, waitFor } from '@testing-library/react' import fetchMock from 'fetch-mock' import MockedSocket from 'socket.io-mock' import { renderWithEditorContext, cleanUpContext, } from '../../../helpers/render-with-context' import FileTreeRoo...
overleaf/web/test/frontend/features/file-tree/flows/delete-entity.test.js/0
{ "file_path": "overleaf/web/test/frontend/features/file-tree/flows/delete-entity.test.js", "repo_id": "overleaf", "token_count": 3953 }
566
import { expect } from 'chai' import sinon from 'sinon' import { screen, render, fireEvent } from '@testing-library/react' import PreviewLogsPaneEntry from '../../../../../frontend/js/features/preview/components/preview-logs-pane-entry.js' describe('<PreviewLogsPaneEntry />', function () { const level = 'error' ...
overleaf/web/test/frontend/features/preview/components/preview-logs-pane-entry.test.js/0
{ "file_path": "overleaf/web/test/frontend/features/preview/components/preview-logs-pane-entry.test.js", "repo_id": "overleaf", "token_count": 2173 }
567
import { expect } from 'chai' import { render } from '@testing-library/react' import Processing from '../../../../frontend/js/shared/components/processing' describe('<Processing />', function () { it('renders processing UI when isProcessing is true', function () { const { container } = render(<Processing isProce...
overleaf/web/test/frontend/shared/components/processing.test.js/0
{ "file_path": "overleaf/web/test/frontend/shared/components/processing.test.js", "repo_id": "overleaf", "token_count": 212 }
568
const OError = require('@overleaf/o-error') const { assertHasStatusCode } = require('./requestHelper') const CSRF_REGEX = /<meta name="ol-csrfToken" content="(.+?)">/ function _parseCsrf(body) { const match = CSRF_REGEX.exec(body) if (!match) { throw new Error('Cannot find csrfToken in HTML') } return matc...
overleaf/web/test/smoke/src/support/Csrf.js/0
{ "file_path": "overleaf/web/test/smoke/src/support/Csrf.js", "repo_id": "overleaf", "token_count": 274 }
569
/* 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/Chat/ChatControllerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Chat/ChatControllerTests.js", "repo_id": "overleaf", "token_count": 3318 }
570
/* 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/Cooldown/CooldownMiddlewareTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Cooldown/CooldownMiddlewareTests.js", "repo_id": "overleaf", "token_count": 1978 }
571
/* eslint-disable camelcase, max-len, no-return-assign, no-unused-vars, no-useless-escape, */ // 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...
overleaf/web/test/unit/src/Exports/ExportsControllerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Exports/ExportsControllerTests.js", "repo_id": "overleaf", "token_count": 2613 }
572
/* eslint-disable 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: https://github.com/decaffeinate...
overleaf/web/test/unit/src/Institutions/InstitutionsFeaturesTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Institutions/InstitutionsFeaturesTests.js", "repo_id": "overleaf", "token_count": 2218 }
573
const SandboxedModule = require('sandboxed-module') const path = require('path') const sinon = require('sinon') const { expect } = require('chai') const { ObjectId } = require('mongodb') const Errors = require('../../../../app/src/Features/Errors/Errors') const MODULE_PATH = path.join( __dirname, '../../../../app/...
overleaf/web/test/unit/src/Project/ProjectControllerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Project/ProjectControllerTests.js", "repo_id": "overleaf", "token_count": 27886 }
574
/* 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/Publishers/PublishersGetterTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Publishers/PublishersGetterTests.js", "repo_id": "overleaf", "token_count": 774 }
575
const SandboxedModule = require('sandboxed-module') const { expect } = require('chai') const sinon = require('sinon') const modulePath = require('path').join( __dirname, '../../../../app/src/Features/Spelling/SpellingHandler.js' ) const TIMEOUT = 1000 * 10 const SPELLING_HOST = 'http://spelling.service.test' cons...
overleaf/web/test/unit/src/Spelling/SpellingHandlerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Spelling/SpellingHandlerTests.js", "repo_id": "overleaf", "token_count": 1518 }
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/Subscription/V1SusbcriptionManagerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Subscription/V1SusbcriptionManagerTests.js", "repo_id": "overleaf", "token_count": 5188 }
577
const sinon = require('sinon') const { expect } = require('chai') const timekeeper = require('timekeeper') const SandboxedModule = require('sandboxed-module') const { ObjectId } = require('mongodb') const MODULE_PATH = '../../../../app/src/Features/Uploads/ProjectUploadManager.js' describe('ProjectUploadManager', f...
overleaf/web/test/unit/src/Uploads/ProjectUploadManagerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Uploads/ProjectUploadManagerTests.js", "repo_id": "overleaf", "token_count": 4671 }
578
/* 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/User/UserSessionsManagerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/User/UserSessionsManagerTests.js", "repo_id": "overleaf", "token_count": 10857 }
579
const mockModel = require('../MockModel') module.exports = mockModel('Project', { './Folder': require('./Folder'), })
overleaf/web/test/unit/src/helpers/models/Project.js/0
{ "file_path": "overleaf/web/test/unit/src/helpers/models/Project.js", "repo_id": "overleaf", "token_count": 39 }
580
const webpack = require('webpack') const merge = require('webpack-merge') const MiniCssExtractPlugin = require('mini-css-extract-plugin') const base = require('./webpack.config') module.exports = merge(base, { mode: 'development', // Enable accurate source maps for dev devtool: 'source-map', plugins: [ ...
overleaf/web/webpack.config.dev.js/0
{ "file_path": "overleaf/web/webpack.config.dev.js", "repo_id": "overleaf", "token_count": 514 }
581
{ // See https://go.microsoft.com/fwlink/?LinkId=827846 // for the documentation about the extensions.json format "recommendations": [ "esbenp.prettier-vscode", "EditorConfig.EditorConfig", "Orta.vscode-jest", "Vue.volar", "Vue.vscode-typescript-vue-plugin", "alexkrechik.cucumberautocomple...
owncloud/web/.vscode/extensions.json/0
{ "file_path": "owncloud/web/.vscode/extensions.json", "repo_id": "owncloud", "token_count": 142 }
582