text
stringlengths
1
2.83M
id
stringlengths
16
152
metadata
dict
__index_level_0__
int64
0
949
/* 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 * DS205: Consider reworking code to avoid use of IIFEs * DS207: Consider shorter vari...
overleaf/web/app/src/infrastructure/ProxyManager.js/0
{ "file_path": "overleaf/web/app/src/infrastructure/ProxyManager.js", "repo_id": "overleaf", "token_count": 1052 }
493
const mongoose = require('../infrastructure/Mongoose') const { ProjectSchema } = require('./Project') const { Schema } = mongoose const { ObjectId } = Schema const DeleterDataSchema = new Schema({ deleterId: { type: ObjectId, ref: 'User' }, deleterIpAddress: { type: String }, deletedAt: { type: Date }, delete...
overleaf/web/app/src/models/DeletedProject.js/0
{ "file_path": "overleaf/web/app/src/models/DeletedProject.js", "repo_id": "overleaf", "token_count": 397 }
494
const mongoose = require('../infrastructure/Mongoose') const { Schema } = mongoose const SamlLogSchema = new Schema( { createdAt: { type: Date, default: () => new Date() }, data: { type: Object }, jsonData: { type: String }, providerId: { type: String, default: '' }, sessionId: { type: String, de...
overleaf/web/app/src/models/SamlLog.js/0
{ "file_path": "overleaf/web/app/src/models/SamlLog.js", "repo_id": "overleaf", "token_count": 180 }
495
extends ../layout/layout-no-js block vars - metadata = { title: 'Unsupported browser', viewport: true } block body body.full-height main.content.content-alt.full-height#main-content .container.full-height .error-container.full-height .error-details h1.error-status Unsupported Browser p.err...
overleaf/web/app/views/general/unsupported-browser.pug/0
{ "file_path": "overleaf/web/app/views/general/unsupported-browser.pug", "repo_id": "overleaf", "token_count": 290 }
496
div#history(ng-show="ui.view == 'history' && history.updates.length > 0") include ./history/entriesListV1 include ./history/entriesListV2 include ./history/diffPanelV1 include ./history/previewPanelV2 .full-size(ng-if="ui.view == 'history' && history.updates.length === 0 && !isHistoryLoading()") .no-history-avai...
overleaf/web/app/views/project/editor/history.pug/0
{ "file_path": "overleaf/web/app/views/project/editor/history.pug", "repo_id": "overleaf", "token_count": 1254 }
497
extends ../../layout block content main.content.content-alt#main-content .container .row .col-md-8.col-md-offset-2 .card.project-invite-accept .page-header.text-centered h1(ng-non-bindable) #{translate("user_wants_you_to_see_project", {username:owner.first_name, projectname:""})} br...
overleaf/web/app/views/project/invite/show.pug/0
{ "file_path": "overleaf/web/app/views/project/invite/show.pug", "repo_id": "overleaf", "token_count": 514 }
498
extends ../layout block content main.content.content-alt#main-content .container .row .col-md-8.col-md-offset-2 .card(ng-cloak) .page-header h2 #{translate("subscription_canceled")} .alert.alert-info p #{translate("to_modify_your_subscription_go_to")} a(href="/user/sub...
overleaf/web/app/views/subscriptions/canceled_subscription.pug/0
{ "file_path": "overleaf/web/app/views/subscriptions/canceled_subscription.pug", "repo_id": "overleaf", "token_count": 219 }
499
extends ../layout block content main.content.content-alt#main-content .container .row .col-md-8.col-md-offset-2 .card(ng-cloak) .page-header h2 #{translate("thanks_for_subscribing")} .alert.alert-success if (personalSubscription.recurly.trial_ends_at) p !{translate("ne...
overleaf/web/app/views/subscriptions/successful_subscription.pug/0
{ "file_path": "overleaf/web/app/views/subscriptions/successful_subscription.pug", "repo_id": "overleaf", "token_count": 604 }
500
extends ../layout block append meta meta(name="ol-reconfirmationRemoveEmail", content=reconfirmationRemoveEmail) meta(name="ol-reconfirmedViaSAML", content=reconfirmedViaSAML) meta(name="ol-passwordStrengthOptions", data-type="json", content=settings.passwordStrengthOptions || {}) meta(name="ol-oauthProviders", da...
overleaf/web/app/views/user/settings.pug/0
{ "file_path": "overleaf/web/app/views/user/settings.pug", "repo_id": "overleaf", "token_count": 5189 }
501
import _ from 'lodash' /* global PassField */ /* eslint-disable max-len */ import App from '../base' import 'libs/passfield' App.directive('complexPassword', () => ({ require: ['^asyncForm', 'ngModel'], link(scope, element, attrs, ctrl) { PassField.Config.blackList = [] const defaultPasswordOpts = { ...
overleaf/web/frontend/js/directives/complexPassword.js/0
{ "file_path": "overleaf/web/frontend/js/directives/complexPassword.js", "repo_id": "overleaf", "token_count": 1130 }
502
import { useRef, useEffect, useLayoutEffect } from 'react' import PropTypes from 'prop-types' import _ from 'lodash' const SCROLL_END_OFFSET = 30 function InfiniteScroll({ atEnd, children, className = '', fetchData, itemCount, isLoading, }) { const root = useRef(null) // we keep the value in a Ref in...
overleaf/web/frontend/js/features/chat/components/infinite-scroll.js/0
{ "file_path": "overleaf/web/frontend/js/features/chat/components/infinite-scroll.js", "repo_id": "overleaf", "token_count": 781 }
503
import PropTypes from 'prop-types' import classNames from 'classnames' import { useTranslation } from 'react-i18next' import Icon from '../../../shared/components/icon' function HistoryToggleButton({ historyIsOpen, onClick }) { const { t } = useTranslation() const classes = classNames('btn', 'btn-full-height', { ...
overleaf/web/frontend/js/features/editor-navigation-toolbar/components/history-toggle-button.js/0
{ "file_path": "overleaf/web/frontend/js/features/editor-navigation-toolbar/components/history-toggle-button.js", "repo_id": "overleaf", "token_count": 260 }
504
import classnames from 'classnames' import { Button } from 'react-bootstrap' import PropTypes from 'prop-types' import Icon from '../../../../shared/components/icon' import { useFileTreeActionable } from '../../contexts/file-tree-actionable' export default function FileTreeModalCreateFileMode({ mode, icon, label }) { ...
overleaf/web/frontend/js/features/file-tree/components/file-tree-create/file-tree-modal-create-file-mode.js/0
{ "file_path": "overleaf/web/frontend/js/features/file-tree/components/file-tree-create/file-tree-modal-create-file-mode.js", "repo_id": "overleaf", "token_count": 346 }
505
import { useTranslation } from 'react-i18next' import Icon from '../../../shared/components/icon' import TooltipButton from '../../../shared/components/tooltip-button' import { useFileTreeMainContext } from '../contexts/file-tree-main' import { useFileTreeActionable } from '../contexts/file-tree-actionable' function...
overleaf/web/frontend/js/features/file-tree/components/file-tree-toolbar.js/0
{ "file_path": "overleaf/web/frontend/js/features/file-tree/components/file-tree-toolbar.js", "repo_id": "overleaf", "token_count": 1042 }
506
import { useEffect, useState } from 'react' import { postJSON } from '../../../infrastructure/fetch-json' import { fileCollator } from '../util/file-collator' import useAbortController from '../../../shared/hooks/use-abort-controller' const alphabetical = (a, b) => fileCollator.compare(a.path, b.path) export function...
overleaf/web/frontend/js/features/file-tree/hooks/use-project-output-files.js/0
{ "file_path": "overleaf/web/frontend/js/features/file-tree/hooks/use-project-output-files.js", "repo_id": "overleaf", "token_count": 579 }
507
import App from '../../../base' import { react2angular } from 'react2angular' import HotkeysModal from '../components/hotkeys-modal' App.component('hotkeysModal', react2angular(HotkeysModal, undefined)) export default App.controller('HotkeysModalController', function ($scope) { $scope.show = false $scope.isMac =...
overleaf/web/frontend/js/features/hotkeys-modal/controllers/hotkeys-modal-controller.js/0
{ "file_path": "overleaf/web/frontend/js/features/hotkeys-modal/controllers/hotkeys-modal-controller.js", "repo_id": "overleaf", "token_count": 242 }
508
import PropTypes from 'prop-types' import { Dropdown, MenuItem, OverlayTrigger, Tooltip } from 'react-bootstrap' import { useTranslation } from 'react-i18next' import classNames from 'classnames' import Icon from '../../../shared/components/icon' import ControlledDropdown from '../../../shared/components/controlled-dro...
overleaf/web/frontend/js/features/preview/components/preview-recompile-button.js/0
{ "file_path": "overleaf/web/frontend/js/features/preview/components/preview-recompile-button.js", "repo_id": "overleaf", "token_count": 2414 }
509
import { useState } from 'react' import { Modal, Button } from 'react-bootstrap' import { Trans } from 'react-i18next' import PropTypes from 'prop-types' import Icon from '../../../shared/components/icon' import { transferProjectOwnership } from '../utils/api' import AccessibleModal from '../../../shared/components/acc...
overleaf/web/frontend/js/features/share-project-modal/components/transfer-ownership-modal.js/0
{ "file_path": "overleaf/web/frontend/js/features/share-project-modal/components/transfer-ownership-modal.js", "repo_id": "overleaf", "token_count": 1130 }
510
[ { "category": "Greek", "command": "\\alpha", "codepoint": "U+1D6FC", "description": "Lowercase Greek letter alpha", "aliases": ["a", "α"], "notes": "" }, { "category": "Greek", "command": "\\beta", "codepoint": "U+1D6FD", "description": "Lowercase Greek letter beta", ...
overleaf/web/frontend/js/features/symbol-palette/data/symbols.json/0
{ "file_path": "overleaf/web/frontend/js/features/symbol-palette/data/symbols.json", "repo_id": "overleaf", "token_count": 8416 }
511
/* 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/ide/editor/components/spellMenu.js/0
{ "file_path": "overleaf/web/frontend/js/ide/editor/components/spellMenu.js", "repo_id": "overleaf", "token_count": 452 }
512
import _ from 'lodash' /* 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 c...
overleaf/web/frontend/js/ide/history/HistoryV2Manager.js/0
{ "file_path": "overleaf/web/frontend/js/ide/history/HistoryV2Manager.js", "repo_id": "overleaf", "token_count": 14090 }
513
/* eslint-disable max-len, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS207: Consider shorter variations of null checks * Full docs: https://github.com/d...
overleaf/web/frontend/js/ide/history/directives/infiniteScroll.js/0
{ "file_path": "overleaf/web/frontend/js/ide/history/directives/infiniteScroll.js", "repo_id": "overleaf", "token_count": 577 }
514
/* 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: * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit return...
overleaf/web/frontend/js/ide/pdfng/directives/pdfHighlights.js/0
{ "file_path": "overleaf/web/frontend/js/ide/pdfng/directives/pdfHighlights.js", "repo_id": "overleaf", "token_count": 643 }
515
import _ from 'lodash' /* eslint-disable camelcase, 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 ...
overleaf/web/frontend/js/ide/settings/controllers/SettingsController.js/0
{ "file_path": "overleaf/web/frontend/js/ide/settings/controllers/SettingsController.js", "repo_id": "overleaf", "token_count": 2937 }
516
import * as eventTracking from '../infrastructure/event-tracking' function startFreeTrial(source, version, $scope) { const plan = 'collaborator_free_trial_7_days' const w = window.open() const go = function () { let url if (typeof ga === 'function') { ga('send', 'event', 'subscription-funnel', 'up...
overleaf/web/frontend/js/main/account-upgrade.js/0
{ "file_path": "overleaf/web/frontend/js/main/account-upgrade.js", "repo_id": "overleaf", "token_count": 462 }
517
/* eslint-disable camelcase, max-len */ import App from '../base' import getMeta from '../utils/meta' App.factory('MultiCurrencyPricing', function () { const currencyCode = getMeta('ol-recomendedCurrency') return { currencyCode, plans: { USD: { symbol: '$', student: { ...
overleaf/web/frontend/js/main/plans.js/0
{ "file_path": "overleaf/web/frontend/js/main/plans.js", "repo_id": "overleaf", "token_count": 5565 }
518
import App from '../base' App.controller( 'TranslationsPopupController', function ($scope, ipCookie, localStorage) { function getStoredDismissal() { const localStore = localStorage('hide-i18n-notification') if (localStore === null) { // Not stored in localStorage, check cookie cons...
overleaf/web/frontend/js/main/translations.js/0
{ "file_path": "overleaf/web/frontend/js/main/translations.js", "repo_id": "overleaf", "token_count": 334 }
519
import PropTypes from 'prop-types' import classNames from 'classnames' function Icon({ type, spin, modifier, classes = {}, accessibilityLabel, children, }) { const iconClassName = classNames( 'fa', `fa-${type}`, { 'fa-spin': spin, [`fa-${modifier}`]: modifier, }, classes.i...
overleaf/web/frontend/js/shared/components/icon.js/0
{ "file_path": "overleaf/web/frontend/js/shared/components/icon.js", "repo_id": "overleaf", "token_count": 362 }
520
import { useEffect, useState } from 'react' export default function useDebounce(value, delay = 0) { const [debouncedValue, setDebouncedValue] = useState(value) useEffect(() => { const timer = window.setTimeout(() => { setDebouncedValue(value) }, delay) return () => { window.clearTimeout(t...
overleaf/web/frontend/js/shared/hooks/use-debounce.js/0
{ "file_path": "overleaf/web/frontend/js/shared/hooks/use-debounce.js", "repo_id": "overleaf", "token_count": 133 }
521
/*! jQuery UI - v1.11.4 - 2016-02-10 * http://jqueryui.com * Includes: core.js, widget.js, mouse.js, draggable.js, droppable.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ /*! * jQuery UI Core 1.11.4 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released ...
overleaf/web/frontend/js/vendor/libs/jquery-layout.js/0
{ "file_path": "overleaf/web/frontend/js/vendor/libs/jquery-layout.js", "repo_id": "overleaf", "token_count": 111095 }
522
const FILE_PER_FOLDER = 2 const DOC_PER_FOLDER = 3 const FOLDER_PER_FOLDER = 2 const MAX_DEPTH = 7 function fakeId() { return Math.random().toString(16).replace(/0\./, 'random-test-id-') } function makeFileRefs(path) { const fileRefs = [] for (let index = 0; index < FILE_PER_FOLDER; index++) { fileRefs.pus...
overleaf/web/frontend/stories/fixtures/file-tree-limit.js/0
{ "file_path": "overleaf/web/frontend/stories/fixtures/file-tree-limit.js", "repo_id": "overleaf", "token_count": 486 }
523
import { useEffect } from 'react' import ShareProjectModal from '../js/features/share-project-modal/components/share-project-modal' import useFetchMock from './hooks/use-fetch-mock' import { withContextRoot } from './utils/with-context-root' export const LinkSharingOff = args => { useFetchMock(setupFetchMock) con...
overleaf/web/frontend/stories/share-project-modal.stories.js/0
{ "file_path": "overleaf/web/frontend/stories/share-project-modal.stories.js", "repo_id": "overleaf", "token_count": 2185 }
524
.author_details { font-size: 0.8em; color: @gray; } .post { 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; } } .blog { iframe { width: 100%; } > .page-header { h1 { mar...
overleaf/web/frontend/stylesheets/app/blog.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/app/blog.less", "repo_id": "overleaf", "token_count": 452 }
525
@stripe-width: 20px; @keyframes pdf-toolbar-stripes { from { background-position: 0 0; } to { background-position: @stripe-width 0; } } .pdf .toolbar.toolbar-pdf { .toolbar-small-mixin; .toolbar-alt-mixin; padding-right: 5px; &.changes-to-autocompile { // prettier-ignore #gradient > .st...
overleaf/web/frontend/stylesheets/app/editor/pdf.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/app/editor/pdf.less", "repo_id": "overleaf", "token_count": 4388 }
526
.v1-import-title { text-align: center; margin-top: @line-height-computed / 2; } .v1-import-row { display: flex; align-items: center; } .v1-import-col { padding-left: 15px; padding-right: 15px; } .v1-import-col ul { margin-bottom: 0; } .v1-import-col--left { flex-shrink: 1.1; } .v1-import-img { wi...
overleaf/web/frontend/stylesheets/app/list/v1-import-modal.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/app/list/v1-import-modal.less", "repo_id": "overleaf", "token_count": 314 }
527
.form-helper { display: inline-block; width: 1.3em; height: 1.3em; line-height: 1.3; vertical-align: initial; background-color: @gray; color: #fff; font-weight: bolder; border-radius: 50%; &:hover, &:focus { color: #fff; text-decoration: none; } } .price-breakdown { text-align: cente...
overleaf/web/frontend/stylesheets/app/subscription.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/app/subscription.less", "repo_id": "overleaf", "token_count": 691 }
528
// // A stylesheet for use with Bootstrap 3.x // @author: Dan Grossman http://www.dangrossman.info/ // @copyright: Copyright (c) 2012-2015 Dan Grossman. All rights reserved. // @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php // @website: https://www.improvely.com/ // //...
overleaf/web/frontend/stylesheets/components/daterange-picker.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/components/daterange-picker.less", "repo_id": "overleaf", "token_count": 6585 }
529
.list-like-table { border: 1px solid @hr-border; border-radius: @border-radius-base; list-style: none; margin: 0; padding: 0 @padding-sm; li { border-top: 1px solid @hr-border; div { display: table-cell; float: none; vertical-align: middle; } .row { display: table; ...
overleaf/web/frontend/stylesheets/components/lists.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/components/lists.less", "repo_id": "overleaf", "token_count": 196 }
530
.ol-tabs { // Overrides for nav.less .nav-tabs { border: 0 !important; margin-bottom: 0; margin-top: -@line-height-computed; //- adjusted for portal-name padding: @padding-lg 0 @padding-md; text-align: center; } .nav-tabs > li { display: inline-block; float: none; a { bord...
overleaf/web/frontend/stylesheets/components/tabs.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/components/tabs.less", "repo_id": "overleaf", "token_count": 405 }
531
// // Scaffolding // -------------------------------------------------- // Reset the box-sizing // // Heads up! This reset may cause conflicts with some third-party widgets. // For recommendations on resolving such conflicts, see // http://getbootstrap.com/getting-started/#third-box-sizing * { .box-sizing(border-box...
overleaf/web/frontend/stylesheets/core/scaffolding.less/0
{ "file_path": "overleaf/web/frontend/stylesheets/core/scaffolding.less", "repo_id": "overleaf", "token_count": 1079 }
532
#!/bin/bash SHARELATEX_CONFIG=/app/config/settings.webpack.js npm run webpack:production & WEBPACK=$! wait $WEBPACK && echo "Webpack complete" || exit 1
overleaf/web/install_deps.sh/0
{ "file_path": "overleaf/web/install_deps.sh", "repo_id": "overleaf", "token_count": 56 }
533
{ "linked_accounts": "contas ligadas", "unable_to_extract_the_supplied_zip_file": "Abrir este conteúdo no Overleaf falhou porque o arquivo zip não pôde ser extraído. Por favor, certifique-se de que é um arquivo zip válido. Se isso continuar acontecendo para links em um site específico, informe isso a eles.", "the...
overleaf/web/locales/pt.json/0
{ "file_path": "overleaf/web/locales/pt.json", "repo_id": "overleaf", "token_count": 28378 }
534
/* eslint-disable no-unused-vars */ const Helpers = require('./lib/helpers') exports.tags = ['saas'] const indexes = [ { key: { project_id: 1, }, name: 'project_id_1', }, { key: { owner_id: 1, }, name: 'owner_id_1', }, ] exports.migrate = async client => { const { db } ...
overleaf/web/migrations/20190912145010_create_githubSyncProjectStates_indexes.js/0
{ "file_path": "overleaf/web/migrations/20190912145010_create_githubSyncProjectStates_indexes.js", "repo_id": "overleaf", "token_count": 257 }
535
/* 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', }, ] exports.migrate = async client => { const { db } = client await Helpers.addIndexesToCollect...
overleaf/web/migrations/20190912145026_create_rooms_indexes.js/0
{ "file_path": "overleaf/web/migrations/20190912145026_create_rooms_indexes.js", "repo_id": "overleaf", "token_count": 216 }
536
const Helpers = require('./lib/helpers') exports.tags = ['saas'] exports.migrate = async client => { const { db } = client await Helpers.dropCollection(db, 'projectImportBatchRecords') } exports.rollback = async client => { // can't really do anything here }
overleaf/web/migrations/20200522145741_dropProjectImportBatchRecords.js/0
{ "file_path": "overleaf/web/migrations/20200522145741_dropProjectImportBatchRecords.js", "repo_id": "overleaf", "token_count": 89 }
537
/* eslint-disable node/handle-callback-err, max-len, no-unused-vars, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS207: Consider shorter variations...
overleaf/web/modules/launchpad/app/src/LaunchpadController.js/0
{ "file_path": "overleaf/web/modules/launchpad/app/src/LaunchpadController.js", "repo_id": "overleaf", "token_count": 3753 }
538
const { waitForDb } = require('../../../app/src/infrastructure/mongodb') const UserGetter = require('../../../app/src/Features/User/UserGetter') const UserDeleter = require('../../../app/src/Features/User/UserDeleter') async function main() { await waitForDb() const email = (process.argv.slice(2).pop() || '').rep...
overleaf/web/modules/server-ce-scripts/scripts/delete-user.js/0
{ "file_path": "overleaf/web/modules/server-ce-scripts/scripts/delete-user.js", "repo_id": "overleaf", "token_count": 455 }
539
google-site-verification: google4f15e48c48709a75.html
overleaf/web/public/google4f15e48c48709a75.html/0
{ "file_path": "overleaf/web/public/google4f15e48c48709a75.html", "repo_id": "overleaf", "token_count": 20 }
540
const fs = require('fs') const { ObjectId, waitForDb } = require('../app/src/infrastructure/mongodb') const async = require('async') const UserUpdater = require('../app/src/Features/User/UserUpdater') const UserSessionsManager = require('../app/src/Features/User/UserSessionsManager') const ASYNC_LIMIT = 10 const proc...
overleaf/web/scripts/clear_sessions_set_must_reconfirm.js/0
{ "file_path": "overleaf/web/scripts/clear_sessions_set_must_reconfirm.js", "repo_id": "overleaf", "token_count": 908 }
541
const { db, ObjectId, waitForDb } = require('../app/src/infrastructure/mongodb') const minimist = require('minimist') const argv = minimist(process.argv.slice(2)) const commit = argv.commit !== undefined const projectIds = argv._.map(x => { return ObjectId(x) }) if (!commit) { console.log('Doing dry run without --...
overleaf/web/scripts/invalidate_tokens.js/0
{ "file_path": "overleaf/web/scripts/invalidate_tokens.js", "repo_id": "overleaf", "token_count": 646 }
542
const Settings = require('@overleaf/settings') const { ObjectId } = require('mongodb') const { Project } = require('../app/src/models/Project') async function main() { const { image, projectIds } = parseArgs() await updateImage(image, projectIds) } function parseArgs() { if (process.argv.length < 4) { print...
overleaf/web/scripts/set_tex_live_image.js/0
{ "file_path": "overleaf/web/scripts/set_tex_live_image.js", "repo_id": "overleaf", "token_count": 650 }
543
{ "devDependencies": { "@fidm/x509": "^1.2.1" } }
overleaf/web/scripts/ukamf/package.json/0
{ "file_path": "overleaf/web/scripts/ukamf/package.json", "repo_id": "overleaf", "token_count": 36 }
544
Test
overleaf/web/test/acceptance/files/test.tex/0
{ "file_path": "overleaf/web/test/acceptance/files/test.tex", "repo_id": "overleaf", "token_count": 1 }
545
const { exec } = require('child_process') const { promisify } = require('util') const { expect } = require('chai') const logger = require('logger-sharelatex') const { filterOutput } = require('./helpers/settings') const { db, ObjectId } = require('../../../app/src/infrastructure/mongodb') const DUMMY_NAME = 'unknown.t...
overleaf/web/test/acceptance/src/BackFillDummyDocMetaTests.js/0
{ "file_path": "overleaf/web/test/acceptance/src/BackFillDummyDocMetaTests.js", "repo_id": "overleaf", "token_count": 6058 }
546
const { expect } = require('chai') const User = require('./helpers/User').promises const { Project } = require('../../../app/src/models/Project') const { ObjectId } = require('mongodb') const cheerio = require('cheerio') describe('Project CRUD', function () { beforeEach(async function () { this.user = new User()...
overleaf/web/test/acceptance/src/ProjectCRUDTests.js/0
{ "file_path": "overleaf/web/test/acceptance/src/ProjectCRUDTests.js", "repo_id": "overleaf", "token_count": 2147 }
547
const { expect } = require('chai') const async = require('async') const User = require('./helpers/User') const request = require('./helpers/request') const settings = require('@overleaf/settings') const { db } = require('../../../app/src/infrastructure/mongodb') const expectErrorResponse = require('./helpers/expectErro...
overleaf/web/test/acceptance/src/TokenAccessTests.js/0
{ "file_path": "overleaf/web/test/acceptance/src/TokenAccessTests.js", "repo_id": "overleaf", "token_count": 21269 }
548
const { expect } = require('chai') module.exports = { requireLogin: { json(response, body) { expect(response.statusCode).to.equal(401) expect(body).to.equal('Unauthorized') expect(response.headers['www-authenticate']).to.equal('OverleafLogin') }, }, restricted: { html(response, bod...
overleaf/web/test/acceptance/src/helpers/expectErrorResponse.js/0
{ "file_path": "overleaf/web/test/acceptance/src/helpers/expectErrorResponse.js", "repo_id": "overleaf", "token_count": 233 }
549
const AbstractMockApi = require('./AbstractMockApi') const sinon = require('sinon') class MockV1Api extends AbstractMockApi { reset() { this.affiliations = [] this.allInstitutionDomains = new Set() this.blocklistedDomains = [] this.brand_variations = {} this.brands = {} this.doc_exported = {}...
overleaf/web/test/acceptance/src/mocks/MockV1Api.js/0
{ "file_path": "overleaf/web/test/acceptance/src/mocks/MockV1Api.js", "repo_id": "overleaf", "token_count": 4748 }
550
import { expect } from 'chai' import { screen, render, waitFor, cleanup } from '@testing-library/react' import sinon from 'sinon' import { contextProps } from './context-props' import FileTreeCreateNameInput from '../../../../../../frontend/js/features/file-tree/components/file-tree-create/file-tree-create-name-input...
overleaf/web/test/frontend/features/file-tree/components/file-tree-create/file-tree-create-name-input.test.js/0
{ "file_path": "overleaf/web/test/frontend/features/file-tree/components/file-tree-create/file-tree-create-name-input.test.js", "repo_id": "overleaf", "token_count": 1049 }
551
import { screen, fireEvent, waitForElementToBeRemoved, } from '@testing-library/react' import { expect } from 'chai' import fetchMock from 'fetch-mock' import sinon from 'sinon' import { renderWithEditorContext } from '../../../helpers/render-with-context' import FileViewHeader from '../../../../../frontend/js/f...
overleaf/web/test/frontend/features/file-view/components/file-view-header.test.js/0
{ "file_path": "overleaf/web/test/frontend/features/file-view/components/file-view-header.test.js", "repo_id": "overleaf", "token_count": 1913 }
552
import sinon from 'sinon' import { screen, render, fireEvent } from '@testing-library/react' import PreviewRecompileButton from '../../../../../frontend/js/features/preview/components/preview-recompile-button' const { expect } = require('chai') describe('<PreviewRecompileButton />', function () { let onRecompile, on...
overleaf/web/test/frontend/features/preview/components/preview-recompile-button.test.js/0
{ "file_path": "overleaf/web/test/frontend/features/preview/components/preview-recompile-button.test.js", "repo_id": "overleaf", "token_count": 1964 }
553
/* 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/frontend/utils/EventEmitterTests.js/0
{ "file_path": "overleaf/web/test/frontend/utils/EventEmitterTests.js", "repo_id": "overleaf", "token_count": 927 }
554
const Path = require('path') const chai = require('chai') const sinon = require('sinon') /* * Chai configuration */ // add chai.should() chai.should() // Load sinon-chai assertions so expect(stubFn).to.have.been.calledWith('abc') // has a nicer failure messages chai.use(require('sinon-chai')) // Load promise supp...
overleaf/web/test/unit/bootstrap.js/0
{ "file_path": "overleaf/web/test/unit/bootstrap.js", "repo_id": "overleaf", "token_count": 897 }
555
/* 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/Collaborators/CollaboratorsInviteControllerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Collaborators/CollaboratorsInviteControllerTests.js", "repo_id": "overleaf", "token_count": 20096 }
556
/* 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/Documents/DocumentHelperTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Documents/DocumentHelperTests.js", "repo_id": "overleaf", "token_count": 2168 }
557
const SandboxedModule = require('sandboxed-module') const { expect } = require('chai') const modulePath = '../../../../app/src/Features/Helpers/AuthorizationHelper' describe('AuthorizationHelper', function () { beforeEach(function () { this.AuthorizationHelper = SandboxedModule.require(modulePath, { requir...
overleaf/web/test/unit/src/HelperFiles/AuthorizationHelperTests.js/0
{ "file_path": "overleaf/web/test/unit/src/HelperFiles/AuthorizationHelperTests.js", "repo_id": "overleaf", "token_count": 753 }
558
/* eslint-disable node/handle-callback-err, 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/de...
overleaf/web/test/unit/src/Metadata/MetaHandlerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Metadata/MetaHandlerTests.js", "repo_id": "overleaf", "token_count": 4660 }
559
/* 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: * DS101: Remove unnecessary use of Array.from * DS102: Remove unnecessary code created because of implicit returns * Full docs: http...
overleaf/web/test/unit/src/Project/ProjectEditorHandlerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Project/ProjectEditorHandlerTests.js", "repo_id": "overleaf", "token_count": 6507 }
560
const SandboxedModule = require('sandboxed-module') const sinon = require('sinon') const modulePath = require('path').join( __dirname, '../../../../app/src/Features/Referal/ReferalFeatures.js' ) describe('ReferalFeatures', function () { beforeEach(function () { this.ReferalFeatures = SandboxedModule.require(...
overleaf/web/test/unit/src/Referal/ReferalFeaturesTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Referal/ReferalFeaturesTests.js", "repo_id": "overleaf", "token_count": 996 }
561
const sinon = require('sinon') const sinonChai = require('sinon-chai') const chai = require('chai') const chaiAsPromised = require('chai-as-promised') chai.use(sinonChai) chai.use(chaiAsPromised) const { expect } = chai const recurly = require('recurly') const modulePath = '../../../../app/src/Features/Subscription/Rec...
overleaf/web/test/unit/src/Subscription/RecurlyClientTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Subscription/RecurlyClientTests.js", "repo_id": "overleaf", "token_count": 4035 }
562
/* 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/Templates/TemplatesControllerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/Templates/TemplatesControllerTests.js", "repo_id": "overleaf", "token_count": 1403 }
563
const sinon = require('sinon') const { expect } = require('chai') const modulePath = '../../../../app/src/Features/User/UserController.js' const SandboxedModule = require('sandboxed-module') const OError = require('@overleaf/o-error') const Errors = require('../../../../app/src/Features/Errors/Errors') describe('UserC...
overleaf/web/test/unit/src/User/UserControllerTests.js/0
{ "file_path": "overleaf/web/test/unit/src/User/UserControllerTests.js", "repo_id": "overleaf", "token_count": 14968 }
564
/* eslint-disable node/handle-callback-err, 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/de...
overleaf/web/test/unit/src/UserMembership/UserMembershipViewModelTests.js/0
{ "file_path": "overleaf/web/test/unit/src/UserMembership/UserMembershipViewModelTests.js", "repo_id": "overleaf", "token_count": 1654 }
565
const { expect } = require('chai') const modulePath = '../../../../app/src/infrastructure/Features.js' const SandboxedModule = require('sandboxed-module') describe('Features', function () { beforeEach(function () { this.Features = SandboxedModule.require(modulePath, { requires: { '@overleaf/setting...
overleaf/web/test/unit/src/infrastructure/FeaturesTests.js/0
{ "file_path": "overleaf/web/test/unit/src/infrastructure/FeaturesTests.js", "repo_id": "overleaf", "token_count": 3071 }
566
{ "ignores": [ "core-js", "requirejs", "@babel/register" ] }
owncloud/web/.depcheckrc/0
{ "file_path": "owncloud/web/.depcheckrc", "repo_id": "owncloud", "token_count": 41 }
567
NAME := web DIST := ${CURDIR}/dist HUGO := ${CURDIR}/hugo RELEASE := ${CURDIR}/release NODE_MODULES := ${CURDIR}/node_modules node_modules: package.json pnpm-lock.yaml [ -n "${NO_INSTALL}" ] || pnpm install touch ${NODE_MODULES} .PHONY: clean clean: rm -rf ${DIST} ${HUGO} ${RELEASE} ${NODE_MODULES} .PHONY: releas...
owncloud/web/Makefile/0
{ "file_path": "owncloud/web/Makefile", "repo_id": "owncloud", "token_count": 547 }
568
Bugfix: Fix empty settings values We've updated owncloud-sdk to version 1.0.0-638 which makes sure that an empty array gets returned whenever there are no settings values for the authenticated user. Previously having no settings values broke our detection of whether settings values finished loading. https://github.co...
owncloud/web/changelog/0.11.0_2020-06-26/fix-empty-settings/0
{ "file_path": "owncloud/web/changelog/0.11.0_2020-06-26/fix-empty-settings", "repo_id": "owncloud", "token_count": 101 }
569
Bugfix: Remove anchor on last breadcrumb segment The last segment of the breadcrumb was clickable, while it's expected that nothing happens (as it is the current path). We fixed that, the last breadcrumb element is not clickable anymore. https://github.com/owncloud/web/issues/3722 https://github.com/owncloud/web/iss...
owncloud/web/changelog/0.11.2_2020-07-03/fix-breadcrumb/0
{ "file_path": "owncloud/web/changelog/0.11.2_2020-07-03/fix-breadcrumb", "repo_id": "owncloud", "token_count": 124 }
570
Enhancement: Enable playing videos in media viewer We've added a capability to the media viewer extension to play videos. https://github.com/owncloud/web/pull/3803 https://github.com/owncloud/web/pull/3833 https://github.com/owncloud/web/pull/3844 https://github.com/owncloud/web/pull/3848
owncloud/web/changelog/0.14.0_2020-08-17/media-viewer-video-playback/0
{ "file_path": "owncloud/web/changelog/0.14.0_2020-08-17/media-viewer-video-playback", "repo_id": "owncloud", "token_count": 92 }
571
Enhancement: Remember public link password on page refresh When refreshing the page in the file list of a public link share, the user doesn't need to enter the password again. This only applies for the current page and the password is forgotten by the browser again upon closing or switching to another site. https://g...
owncloud/web/changelog/0.17.0_2020-09-25/public-link-remember-password-on-refresh/0
{ "file_path": "owncloud/web/changelog/0.17.0_2020-09-25/public-link-remember-password-on-refresh", "repo_id": "owncloud", "token_count": 97 }
572
Change: Set icon for unknown file types to "file" We've changed the icon for unknown file types to "file". https://owncloud.design/#/Design%20Tokens/Icon https://github.com/owncloud/web/pull/4237
owncloud/web/changelog/0.22.0_2020-10-26/default-icon/0
{ "file_path": "owncloud/web/changelog/0.22.0_2020-10-26/default-icon", "repo_id": "owncloud", "token_count": 59 }
573
Change: Configurable default extension We introduced a config option in the config.json file which allows to configure the default extension for ownCloud Web. Any of the configured extension ids can be chosen as default extension. If none is provided, we fall back to the files extension. https://github.com/owncloud/w...
owncloud/web/changelog/0.27.0_2020-11-24/default-extension/0
{ "file_path": "owncloud/web/changelog/0.27.0_2020-11-24/default-extension", "repo_id": "owncloud", "token_count": 77 }
574
Change: Join users and groups into a single list in collaborators sidebar Users and groups were shown as two separate lists (users, then groups) in the collaborators sidebar. This separation is now removed, i.e. there is only one list with all collaborators, sorted by display name (lower case, ascending). On equal nam...
owncloud/web/changelog/0.3.0_2020-01-31/2900/0
{ "file_path": "owncloud/web/changelog/0.3.0_2020-01-31/2900", "repo_id": "owncloud", "token_count": 92 }
575
Enhancement: Improved collaborators column in shared file lists Fixed issue with the collaborators column where only one was being displayed in the "shared with you" file list. This is done by properly aggregating all share entries under each file entry for the list, which now also includes group shares and link share...
owncloud/web/changelog/0.5.0_2020-03-02/2924/0
{ "file_path": "owncloud/web/changelog/0.5.0_2020-03-02/2924", "repo_id": "owncloud", "token_count": 124 }
576
Bugfix: Sorted collaborators column, deduplicate public entry The collaborators column that appears in the "shared with others" section are now sorted: first by share type (user, group, link, remote) and then by display name using natural sort. Additionally, if there is more than one public link for the resource, the ...
owncloud/web/changelog/0.6.0_2020-03-16/3137/0
{ "file_path": "owncloud/web/changelog/0.6.0_2020-03-16/3137", "repo_id": "owncloud", "token_count": 120 }
577
Enhancement: add state to app urls Currently opened file can be added to app routes so reloading the page can be made to work For now it's only implemented in mediaviewer https://github.com/owncloud/web/pull/3294
owncloud/web/changelog/0.8.0_2020-04-14/3294/0
{ "file_path": "owncloud/web/changelog/0.8.0_2020-04-14/3294", "repo_id": "owncloud", "token_count": 60 }
578
Bugfix: Fix role selection for public links The dropdown for the role selection in public links was not working anymore - the model didn't react to selections. Fixed it by bringing back a field that was accidentally removed. https://github.com/owncloud/web/pull/4504
owncloud/web/changelog/1.0.0_2020-12-16/fix-link-role-selection/0
{ "file_path": "owncloud/web/changelog/1.0.0_2020-12-16/fix-link-role-selection", "repo_id": "owncloud", "token_count": 64 }
579
Bugfix: Allow search in additional share info We fixed that searching for a potential sharee didn't look at the additional share info. https://github.com/owncloud/ocis/issues/1656 https://github.com/owncloud/web/pull/4753
owncloud/web/changelog/2.0.1_2021-02-18/search-in-additional-info/0
{ "file_path": "owncloud/web/changelog/2.0.1_2021-02-18/search-in-additional-info", "repo_id": "owncloud", "token_count": 64 }
580
Enhancement: Add web-pkg package We added web-pkg as a new package. It is supposed to be the central location for reuse of generic functionality. https://github.com/owncloud/web/pull/4907
owncloud/web/changelog/3.0.0_2021-04-21/enhancement-introduce-web-pkg/0
{ "file_path": "owncloud/web/changelog/3.0.0_2021-04-21/enhancement-introduce-web-pkg", "repo_id": "owncloud", "token_count": 54 }
581
Enhancement: Lazy file avatar loading We've changed the way how large file lists get rendered. In some cases where we had a long list of files, the loading of avatars could lead to long waiting times till the first paint happens. Now we first render the list of files, load the associated avatars in the background and...
owncloud/web/changelog/3.1.0_2021-05-12/enhancement-lazy-file-avatar-loading/0
{ "file_path": "owncloud/web/changelog/3.1.0_2021-05-12/enhancement-lazy-file-avatar-loading", "repo_id": "owncloud", "token_count": 113 }
582
Bugfix: Make skip to main content link visible We've fixed the z-index of the skip to main content link so that it is not hidden under different content anymore and is again visible on focus, with a visible focus border. https://github.com/owncloud/web/pull/5118 https://github.com/owncloud/web/pull/5167
owncloud/web/changelog/3.3.0_2021-06-23/bugfix-make-skip-to-visible/0
{ "file_path": "owncloud/web/changelog/3.3.0_2021-06-23/bugfix-make-skip-to-visible", "repo_id": "owncloud", "token_count": 87 }
583
Enhancement: Asynchronous loading of images Thumbnail and avatar images now get loaded in the background and don't block the main rendering of the user interface. https://github.com/owncloud/web/issues/4973 https://github.com/owncloud/web/pull/5194
owncloud/web/changelog/3.3.0_2021-06-23/enhancement-async-image-loading/0
{ "file_path": "owncloud/web/changelog/3.3.0_2021-06-23/enhancement-async-image-loading", "repo_id": "owncloud", "token_count": 69 }
584
Enhancement: Send focus to "Add people" btn after closing Add/Edit panels We've started sending the focus to "Add people" button after the `Add` panel in the people accordion has been closed. Also, when editing a share the focus jumps back to the "Edit" button in the respective share after cancelling or confirming th...
owncloud/web/changelog/3.3.0_2021-06-23/enhancement-people-focus/0
{ "file_path": "owncloud/web/changelog/3.3.0_2021-06-23/enhancement-people-focus", "repo_id": "owncloud", "token_count": 114 }
585
Enhancement: Details in Sharing Sidebar We're now displaying more information about the highlighted file in the sharing sidebar, including a preview (if applicable) as well as sharing and version information in one place. https://github.com/owncloud/web/issues/5161 https://github.com/owncloud/web/pull/5284 https:/...
owncloud/web/changelog/3.4.0_2021-07-09/enhancement-details-in-sharing-sidebar/0
{ "file_path": "owncloud/web/changelog/3.4.0_2021-07-09/enhancement-details-in-sharing-sidebar", "repo_id": "owncloud", "token_count": 102 }
586
Enhancement: Refactor recipient autocomplete in people panel We've refactored the recipient autocomplete in people panel so that selected recipients are displayed directly in the autocomplete instead of the list below it. https://github.com/owncloud/web/pull/5554
owncloud/web/changelog/4.0.0_2021-08-04/enhancement-invite/0
{ "file_path": "owncloud/web/changelog/4.0.0_2021-08-04/enhancement-invite", "repo_id": "owncloud", "token_count": 64 }
587
Bugfix: Pagination on Locationpicker Pagination on copying/moving files as well as page reloads when copying/moving files were broken. When changing the Vue router encoding, we fixed both issues. https://github.com/owncloud/web/pull/5715
owncloud/web/changelog/4.2.0_2021-09-14/bugfix-pagination-move-pagereload/0
{ "file_path": "owncloud/web/changelog/4.2.0_2021-09-14/bugfix-pagination-move-pagereload", "repo_id": "owncloud", "token_count": 65 }
588
Enhancement: Multiple shared with me tables We have separated the single table on the shared with me page into up to three different tables: - pending shares - accepted shares - declined shares By default we show pending and accepted shares. There is navigation in place to switch over from the accepted to the declined...
owncloud/web/changelog/4.3.0_2021-10-07/enhancement-shared-with-me-split/0
{ "file_path": "owncloud/web/changelog/4.3.0_2021-10-07/enhancement-shared-with-me-split", "repo_id": "owncloud", "token_count": 129 }
589
Enhancement: Use default info from app provider The app provider returns information about the default application per mime type. This information is now respected when triggering the default action for a file. https://github.com/owncloud/web/issues/5962 https://github.com/owncloud/web/pull/5970
owncloud/web/changelog/4.5.0_2021-11-16/enhancement-app-provider-defaults/0
{ "file_path": "owncloud/web/changelog/4.5.0_2021-11-16/enhancement-app-provider-defaults", "repo_id": "owncloud", "token_count": 74 }
590
Bugfix: File renaming We fixed the displayed file name not being properly updated in files list and sidebar after renaming. https://github.com/owncloud/web/issues/4893 https://github.com/owncloud/web/pull/6114
owncloud/web/changelog/4.7.0_2021-12-16/bugfix-file-rename/0
{ "file_path": "owncloud/web/changelog/4.7.0_2021-12-16/bugfix-file-rename", "repo_id": "owncloud", "token_count": 61 }
591
Bugfix: Editor default handling Editor apps that don't provide the information about whether or not they are a default editor were not recognized as default editors when left-clicking a file in the file list. We've changed the default behaviour so that editors are capable of being the default editor unless explicitly ...
owncloud/web/changelog/4.8.0_2021-12-22/bugfix-app-defaults/0
{ "file_path": "owncloud/web/changelog/4.8.0_2021-12-22/bugfix-app-defaults", "repo_id": "owncloud", "token_count": 81 }
592