repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/components/Footer.js
packages/react-error-overlay/src/components/Footer.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { useContext } from 'react'; import { ThemeContext } from '../iframeScript'; import type { Theme } from '../st...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/components/Header.js
packages/react-error-overlay/src/components/Header.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { useContext } from 'react'; import { ThemeContext } from '../iframeScript'; import type { Theme } from '../st...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/components/ErrorOverlay.js
packages/react-error-overlay/src/components/ErrorOverlay.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { useContext, useEffect } from 'react'; import { ThemeContext } from '../iframeScript'; import type { Node as...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/components/Collapsible.js
packages/react-error-overlay/src/components/Collapsible.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { useState, useContext } from 'react'; import { ThemeContext } from '../iframeScript'; import type { Element ...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/components/NavigationBar.js
packages/react-error-overlay/src/components/NavigationBar.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { useContext } from 'react'; import { ThemeContext } from '../iframeScript'; import type { Theme } from '../st...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/components/CloseButton.js
packages/react-error-overlay/src/components/CloseButton.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { useContext } from 'react'; import { ThemeContext } from '../iframeScript'; import type { Theme } from '../st...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/utils/isBultinErrorName.js
packages/react-error-overlay/src/utils/isBultinErrorName.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ function isBultinErrorName(errorName: ?string) { switch (errorName) { case 'EvalError': case 'InternalError': ...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/utils/generateAnsiHTML.js
packages/react-error-overlay/src/utils/generateAnsiHTML.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import Anser from 'anser'; import { encode } from 'html-entities'; import type { Theme } from '../styles'; // Map ANSI col...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/utils/unmapper.js
packages/react-error-overlay/src/utils/unmapper.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import StackFrame from './stack-frame'; import { getSourceMap } from './getSourceMap'; import { getLinesAround } from './get...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/utils/warnings.js
packages/react-error-overlay/src/utils/warnings.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import type { ReactFrame } from '../effects/proxyConsole'; function stripInlineStacktrace(message: string): string { retu...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/utils/isInternalFile.js
packages/react-error-overlay/src/utils/isInternalFile.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ function isInternalFile(sourceFileName: ?string, fileName: ?string) { return ( sourceFileName == null || sourceFil...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/utils/mapper.js
packages/react-error-overlay/src/utils/mapper.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import StackFrame from './stack-frame'; import { getSourceMap } from './getSourceMap'; import { getLinesAround } from './get...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/utils/getPrettyURL.js
packages/react-error-overlay/src/utils/getPrettyURL.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ function getPrettyURL( sourceFileName: ?string, sourceLineNumber: ?number, sourceColumnNumber: ?number, fileName: ?s...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/utils/getSourceMap.js
packages/react-error-overlay/src/utils/getSourceMap.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import { SourceMapConsumer } from 'source-map'; /** * A wrapped instance of a <code>{@link https://github.com/mozilla/sour...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/utils/getLinesAround.js
packages/react-error-overlay/src/utils/getLinesAround.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import { ScriptLine } from './stack-frame'; /** * * @param {number} line The line number to provide context around. * @p...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/utils/parser.js
packages/react-error-overlay/src/utils/parser.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import StackFrame from './stack-frame'; const regexExtractLocation = /\(?(.+?)(?::(\d+))?(?::(\d+))?\)?$/; // $FlowFixMe f...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/utils/parseCompileError.js
packages/react-error-overlay/src/utils/parseCompileError.js
// @flow import Anser from 'anser'; export type ErrorLocation = {| fileName: string, lineNumber: number, colNumber?: number, |}; const filePathRegex = /^\.(\/[^/\n ]+)+\.[^/\n ]+$/; const lineNumberRegexes = [ // Babel syntax errors // Based on syntax error formating of babylon parser // https://github.c...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/utils/stack-frame.js
packages/react-error-overlay/src/utils/stack-frame.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ /** A container holding a script line. */ class ScriptLine { /** The line number of this line of source. */ lineNumber:...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/utils/getStackFrames.js
packages/react-error-overlay/src/utils/getStackFrames.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import type { StackFrame } from './stack-frame'; import { parse } from './parser'; import { map } from './mapper'; import { ...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/utils/dom/css.js
packages/react-error-overlay/src/utils/dom/css.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import { lightTheme, darkTheme } from '../../styles'; let injectedCount = 0; const injectedCache = {}; function getHead(do...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/utils/dom/absolutifyCaret.js
packages/react-error-overlay/src/utils/dom/absolutifyCaret.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ function removeNextBr(parent, component: ?Element) { while (component != null && component.tagName.toLowerCase() !== 'br')...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/__tests__/unmapper.js
packages/react-error-overlay/src/__tests__/unmapper.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { unmap } from '../utils/unmapper'; import { parse } from '../utils/parser'; import fs from 'fs'; import { resolve } from 'path';...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/__tests__/mapper.js
packages/react-error-overlay/src/__tests__/mapper.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { map } from '../utils/mapper'; import { parse } from '../utils/parser'; import fs from 'fs'; import { resolve } from 'path'; te...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/__tests__/extract-source-map.js
packages/react-error-overlay/src/__tests__/extract-source-map.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { extractSourceMapUrl } from '../utils/getSourceMap'; test('extracts last source map directive', async () => { const res = awa...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/__tests__/get-source-map.js
packages/react-error-overlay/src/__tests__/get-source-map.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @jest-environment jsdom */ import { getSourceMap } from '../utils/getSourceMap'; import fs from 'fs'; import { resolve } from 'path';...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/__tests__/setupJest.js
packages/react-error-overlay/src/__tests__/setupJest.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ global.fetch = require('jest-fetch-mock');
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/__tests__/script-lines.js
packages/react-error-overlay/src/__tests__/script-lines.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { ScriptLine } from '../utils/stack-frame'; test('script line shape', () => { expect(new ScriptLine(5, 'foobar', true)).toMatc...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/__tests__/stack-frame.js
packages/react-error-overlay/src/__tests__/stack-frame.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { StackFrame } from '../utils/stack-frame'; test('proper empty shape', () => { const empty = new StackFrame(); expect(empty)...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/__tests__/lines-around.js
packages/react-error-overlay/src/__tests__/lines-around.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { getLinesAround } from '../utils/getLinesAround'; const arr = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight'];...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/__tests__/parser/react.js
packages/react-error-overlay/src/__tests__/parser/react.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { parse } from '../../utils/parser'; test('15.y.z', () => { expect( parse( `Warning: Each child in array should have...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/__tests__/parser/generic.js
packages/react-error-overlay/src/__tests__/parser/generic.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { parse } from '../../utils/parser'; test('throws on null', () => { let error; try { parse(null); } catch (e) { er...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/__tests__/parser/safari.js
packages/react-error-overlay/src/__tests__/parser/safari.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { parse } from '../../utils/parser'; test('stack with eval', () => { expect( parse( `e@file:///Users/joe/Documents/D...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/__tests__/parser/chrome.js
packages/react-error-overlay/src/__tests__/parser/chrome.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { parse } from '../../utils/parser'; test('stack with eval', () => { expect( parse( `TypeError: window[f] is not a f...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/__tests__/parser/firefox.js
packages/react-error-overlay/src/__tests__/parser/firefox.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { parse } from '../../utils/parser'; test('eval 1', () => { expect( parse( `test1@file:///C:/example.html line 7 > e...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/effects/stackTraceLimit.js
packages/react-error-overlay/src/effects/stackTraceLimit.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ let stackTraceRegistered: boolean = false; // Default: https://docs.microsoft.com/en-us/scripting/javascript/reference/stack...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/effects/unhandledRejection.js
packages/react-error-overlay/src/effects/unhandledRejection.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ let boundRejectionHandler = null; type ErrorCallback = (error: Error) => void; function rejectionHandler( callback: Erro...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/effects/proxyConsole.js
packages/react-error-overlay/src/effects/proxyConsole.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ type ReactFrame = { fileName: string | null, lineNumber: number | null, name: string | null, }; const reactFrameStack...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/effects/unhandledError.js
packages/react-error-overlay/src/effects/unhandledError.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ let boundErrorHandler = null; type ErrorCallback = (error: Error) => void; function errorHandler(callback: ErrorCallback, ...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/containers/RuntimeErrorContainer.js
packages/react-error-overlay/src/containers/RuntimeErrorContainer.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { PureComponent } from 'react'; import ErrorOverlay from '../components/ErrorOverlay'; import CloseButton from...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/containers/StackFrame.js
packages/react-error-overlay/src/containers/StackFrame.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { useState, useContext } from 'react'; import { ThemeContext } from '../iframeScript'; import CodeBlock from '...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/containers/RuntimeError.js
packages/react-error-overlay/src/containers/RuntimeError.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React from 'react'; import Header from '../components/Header'; import StackTrace from './StackTrace'; import type { ...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/containers/StackTrace.js
packages/react-error-overlay/src/containers/StackTrace.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { Component } from 'react'; import StackFrame from './StackFrame'; import Collapsible from '../components/Coll...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/containers/CompileErrorContainer.js
packages/react-error-overlay/src/containers/CompileErrorContainer.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { useContext } from 'react'; import { ThemeContext } from '../iframeScript'; import ErrorOverlay from '../comp...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
facebook/create-react-app
https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-error-overlay/src/containers/StackFrameCodeBlock.js
packages/react-error-overlay/src/containers/StackFrameCodeBlock.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { useContext } from 'react'; import { ThemeContext } from '../iframeScript'; import CodeBlock from '../compone...
javascript
MIT
6254386531d263688ccfa542d0e628fbc0de0b28
2026-01-04T14:56:49.538607Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/ecosystem.config.js
ecosystem.config.js
module.exports = { apps: [{ name: "uptime-kuma", script: "./server/server.js", }] };
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/.eslintrc.js
.eslintrc.js
module.exports = { ignorePatterns: [ "test/*.js", "server/modules/*", "src/util.js" ], root: true, env: { browser: true, commonjs: true, es2020: true, node: true, }, extends: [ "eslint:recommended", "plugin:vue/vue3-recommen...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_init_db.js
db/knex_init_db.js
const { R } = require("redbean-node"); const { log } = require("../src/util"); /** * ⚠️⚠️⚠️⚠️⚠️⚠️ DO NOT ADD ANYTHING HERE! * IF YOU NEED TO ADD FIELDS, ADD IT TO ./db/knex_migrations * See ./db/knex_migrations/README.md for more information * @returns {Promise<void>} */ async function createTables() { log.in...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2024-10-1315-rabbitmq-monitor.js
db/knex_migrations/2024-10-1315-rabbitmq-monitor.js
exports.up = function (knex) { return knex.schema.alterTable("monitor", function (table) { table.text("rabbitmq_nodes"); table.string("rabbitmq_username"); table.string("rabbitmq_password"); }); }; exports.down = function (knex) { return knex.schema.alterTable("monitor", function (...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-06-24-0000-add-audience-to-oauth.js
db/knex_migrations/2025-06-24-0000-add-audience-to-oauth.js
exports.up = function (knex) { return knex.schema .alterTable("monitor", function (table) { table.string("oauth_audience").nullable().defaultTo(null); }); }; exports.down = function (knex) { return knex.schema.alterTable("monitor", function (table) { table.string("oauth_audi...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-02-15-2312-add-wstest.js
db/knex_migrations/2025-02-15-2312-add-wstest.js
// Add websocket ignore headers and websocket subprotocol exports.up = function (knex) { return knex.schema .alterTable("monitor", function (table) { table.boolean("ws_ignore_sec_websocket_accept_header").notNullable().defaultTo(false); table.string("ws_subprotocol", 255).notNullable...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2023-12-20-0000-alter-status-page.js
db/knex_migrations/2023-12-20-0000-alter-status-page.js
exports.up = function (knex) { return knex.schema .alterTable("status_page", function (table) { table.integer("auto_refresh_interval").defaultTo(300).unsigned(); }); }; exports.down = function (knex) { return knex.schema.alterTable("status_page", function (table) { table.dro...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-06-13-0000-maintenance-add-last-start.js
db/knex_migrations/2025-06-13-0000-maintenance-add-last-start.js
// Add column last_start_date to maintenance table exports.up = async function (knex) { await knex.schema .alterTable("maintenance", function (table) { table.datetime("last_start_date"); }); // Perform migration for recurring-interval strategy const recurringMaintenances = await...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-12-09-0000-add-system-service-monitor.js
db/knex_migrations/2025-12-09-0000-add-system-service-monitor.js
/** * @param {import("knex").Knex} knex The Knex.js instance for database interaction. * @returns {Promise<void>} */ exports.up = async (knex) => { await knex.schema.alterTable("monitor", (table) => { table.string("system_service_name"); }); }; /** * @param {import("knex").Knex} knex The Knex.js in...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2023-10-16-0000-create-remote-browsers.js
db/knex_migrations/2023-10-16-0000-create-remote-browsers.js
exports.up = function (knex) { return knex.schema .createTable("remote_browser", function (table) { table.increments("id"); table.string("name", 255).notNullable(); table.string("url", 255).notNullable(); table.integer("user_id").unsigned(); }).alterTa...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-09-02-0000-add-domain-expiry.js
db/knex_migrations/2025-09-02-0000-add-domain-expiry.js
exports.up = function (knex) { return knex.schema .alterTable("monitor", function (table) { table.boolean("domain_expiry_notification").defaultTo(1); }) .createTable("domain_expiry", (table) => { table.increments("id"); table.datetime("last_check"); ...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2024-11-27-1927-fix-info-json-data-type.js
db/knex_migrations/2024-11-27-1927-fix-info-json-data-type.js
// Update info_json column to LONGTEXT mainly for MariaDB exports.up = function (knex) { return knex.schema .alterTable("monitor_tls_info", function (table) { table.text("info_json", "longtext").alter(); }); }; exports.down = function (knex) { return knex.schema.alterTable("monitor_...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-02-17-2142-generalize-analytics.js
db/knex_migrations/2025-02-17-2142-generalize-analytics.js
// Udpate status_page table to generalize analytics fields exports.up = function (knex) { return knex.schema .alterTable("status_page", function (table) { table.renameColumn("google_analytics_tag_id", "analytics_id"); table.string("analytics_script_url"); table.enu("analy...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-12-29-0000-remove-line-notify.js
db/knex_migrations/2025-12-29-0000-remove-line-notify.js
exports.up = async function (knex) { const notifications = await knex("notification").select("id", "config"); const lineNotifyIDs = []; for (const { id, config } of notifications) { try { const parsedConfig = JSON.parse(config || "{}"); const type = typeof parsedConfig.type ...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-03-04-0000-ping-advanced-options.js
db/knex_migrations/2025-03-04-0000-ping-advanced-options.js
/* SQL: ALTER TABLE monitor ADD ping_count INTEGER default 1 not null; ALTER TABLE monitor ADD ping_numeric BOOLEAN default true not null; ALTER TABLE monitor ADD ping_per_request_timeout INTEGER default 2 not null; */ exports.up = function (knex) { // Add new columns to table monitor return knex.schema ...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-06-03-0000-add-ip-family.js
db/knex_migrations/2025-06-03-0000-add-ip-family.js
exports.up = function (knex) { return knex.schema .alterTable("monitor", function (table) { table.boolean("ip_family").defaultTo(null); }); }; exports.down = function (knex) { return knex.schema .alterTable("monitor", function (table) { table.dropColumn("ip_famil...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2026-01-02-0713-gamedig-v4-to-v5.js
db/knex_migrations/2026-01-02-0713-gamedig-v4-to-v5.js
// Migration to update monitor.game from GameDig v4 to v5 game IDs // Reference: https://github.com/gamedig/node-gamedig/blob/master/MIGRATE_IDS.md // Lookup table mapping v4 game IDs to v5 game IDs const gameDig4to5IdMap = { "americasarmypg": "aapg", "7d2d": "sdtd", "as": "actionsource", "ageofchivalr...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2024-10-31-0000-fix-snmp-monitor.js
db/knex_migrations/2024-10-31-0000-fix-snmp-monitor.js
exports.up = function (knex) { return knex("monitor").whereNull("json_path_operator").update("json_path_operator", "=="); }; exports.down = function (knex) { // changing the json_path_operator back to null for all "==" is not possible anymore // we have lost the context which fields have been set explicitel...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-07-17-0000-mqtt-websocket-path.js
db/knex_migrations/2025-07-17-0000-mqtt-websocket-path.js
exports.up = function (knex) { // Add new column monitor.mqtt_websocket_path return knex.schema .alterTable("monitor", function (table) { table.string("mqtt_websocket_path", 255).nullable(); }); }; exports.down = function (knex) { // Drop column monitor.mqtt_websocket_path r...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-01-01-0000-add-smtp.js
db/knex_migrations/2025-01-01-0000-add-smtp.js
exports.up = function (knex) { return knex.schema .alterTable("monitor", function (table) { table.string("smtp_security").defaultTo(null); }); }; exports.down = function (knex) { return knex.schema.alterTable("monitor", function (table) { table.dropColumn("smtp_security"); ...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2023-09-29-0000-heartbeat-retires.js
db/knex_migrations/2023-09-29-0000-heartbeat-retires.js
exports.up = function (knex) { // Add new column heartbeat.retries return knex.schema .alterTable("heartbeat", function (table) { table.integer("retries").notNullable().defaultTo(0); }); }; exports.down = function (knex) { return knex.schema .alterTable("heartbeat", fun...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2024-01-22-0000-stats-extras.js
db/knex_migrations/2024-01-22-0000-stats-extras.js
exports.up = function (knex) { return knex.schema .alterTable("stat_daily", function (table) { table.text("extras").defaultTo(null).comment("Extra statistics during this time period"); }) .alterTable("stat_minutely", function (table) { table.text("extras").defaultTo(n...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2026-01-02-0551-dns-last-result-to-text.js
db/knex_migrations/2026-01-02-0551-dns-last-result-to-text.js
// Change dns_last_result column from VARCHAR(255) to TEXT to handle longer DNS TXT records exports.up = function (knex) { return knex.schema .alterTable("monitor", function (table) { table.text("dns_last_result").alter(); }); }; exports.down = function (knex) { return knex.schema ...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-10-15-0000-stat-table-fix.js
db/knex_migrations/2025-10-15-0000-stat-table-fix.js
// Fix for #4315. Logically, setting it to 0 ping may not be correct, but it is better than throwing errors exports.up = function (knex) { return knex.schema .alterTable("stat_daily", function (table) { table.integer("ping").defaultTo(0).alter(); }) .alterTable("stat_hourly", fu...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-10-14-0000-add-ip-family-fix.js
db/knex_migrations/2025-10-14-0000-add-ip-family-fix.js
exports.up = function (knex) { return knex.schema .alterTable("monitor", function (table) { // Fix ip_family, change to varchar instead of boolean // possible values are "ipv4" and "ipv6" table.string("ip_family", 4).defaultTo(null).alter(); }); }; exports.down =...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2023-12-22-0000-hourly-uptime.js
db/knex_migrations/2023-12-22-0000-hourly-uptime.js
exports.up = function (knex) { return knex.schema .createTable("stat_hourly", function (table) { table.increments("id"); table.comment("This table contains the hourly aggregate statistics for each monitor"); table.integer("monitor_id").unsigned().notNullable() ...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-05-09-0000-add-custom-url.js
db/knex_migrations/2025-05-09-0000-add-custom-url.js
// Add column custom_url to monitor_group table exports.up = function (knex) { return knex.schema .alterTable("monitor_group", function (table) { table.text("custom_url", "text"); }); }; exports.down = function (knex) { return knex.schema.alterTable("monitor_group", function (table)...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2024-04-26-0000-snmp-monitor.js
db/knex_migrations/2024-04-26-0000-snmp-monitor.js
exports.up = function (knex) { return knex.schema .alterTable("monitor", function (table) { table.string("snmp_oid").defaultTo(null); table.enum("snmp_version", [ "1", "2c", "3" ]).defaultTo("2c"); table.string("json_path_operator").defaultTo(null); }); }; export...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2024-08-24-000-add-cache-bust.js
db/knex_migrations/2024-08-24-000-add-cache-bust.js
exports.up = function (knex) { return knex.schema .alterTable("monitor", function (table) { table.boolean("cache_bust").notNullable().defaultTo(false); }); }; exports.down = function (knex) { return knex.schema .alterTable("monitor", function (table) { table.drop...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2023-10-11-1915-push-token-to-32.js
db/knex_migrations/2023-10-11-1915-push-token-to-32.js
exports.up = function (knex) { // update monitor.push_token to 32 length return knex.schema .alterTable("monitor", function (table) { table.string("push_token", 32).alter(); }); }; exports.down = function (knex) { return knex.schema .alterTable("monitor", function (table...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2023-12-21-0000-stat-ping-min-max.js
db/knex_migrations/2023-12-21-0000-stat-ping-min-max.js
exports.up = function (knex) { return knex.schema .alterTable("stat_daily", function (table) { table.float("ping_min").notNullable().defaultTo(0).comment("Minimum ping during this period in milliseconds"); table.float("ping_max").notNullable().defaultTo(0).comment("Maximum ping durin...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2023-08-16-0000-create-uptime.js
db/knex_migrations/2023-08-16-0000-create-uptime.js
exports.up = function (knex) { return knex.schema .createTable("stat_minutely", function (table) { table.increments("id"); table.comment("This table contains the minutely aggregate statistics for each monitor"); table.integer("monitor_id").unsigned().notNullable() ...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-10-24-0000-show-only-last-heartbeat.js
db/knex_migrations/2025-10-24-0000-show-only-last-heartbeat.js
exports.up = function (knex) { // Add new column status_page.show_only_last_heartbeat return knex.schema .alterTable("status_page", function (table) { table.boolean("show_only_last_heartbeat").notNullable().defaultTo(false); }); }; exports.down = function (knex) { // Drop column...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-06-11-0000-add-manual-monitor.js
db/knex_migrations/2025-06-11-0000-add-manual-monitor.js
exports.up = function (knex) { return knex.schema .alterTable("monitor", function (table) { table.string("manual_status").defaultTo(null); }); }; exports.down = function (knex) { return knex.schema.alterTable("monitor", function (table) { table.dropColumn("manual_status"); ...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2023-08-18-0301-heartbeat.js
db/knex_migrations/2023-08-18-0301-heartbeat.js
exports.up = function (knex) { // Add new column heartbeat.end_time return knex.schema .alterTable("heartbeat", function (table) { table.datetime("end_time").nullable().defaultTo(null); }); }; exports.down = function (knex) { // Rename heartbeat.start_time to heartbeat.time ...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-06-15-0001-manual-monitor-fix.js
db/knex_migrations/2025-06-15-0001-manual-monitor-fix.js
// Fix: Change manual_status column type to smallint exports.up = function (knex) { return knex.schema .alterTable("monitor", function (table) { table.smallint("manual_status").alter(); }); }; exports.down = function (knex) { return knex.schema.alterTable("monitor", function (table)...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2023-10-08-0000-mqtt-query.js
db/knex_migrations/2023-10-08-0000-mqtt-query.js
exports.up = function (knex) { // Add new column monitor.mqtt_check_type return knex.schema .alterTable("monitor", function (table) { table.string("mqtt_check_type", 255).notNullable().defaultTo("keyword"); }); }; exports.down = function (knex) { // Drop column monitor.mqtt_che...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-03-25-0127-fix-5721.js
db/knex_migrations/2025-03-25-0127-fix-5721.js
// Fix #5721: Change proxy port column type to integer to support larger port numbers exports.up = function (knex) { return knex.schema .alterTable("proxy", function (table) { table.integer("port").alter(); }); }; exports.down = function (knex) { return knex.schema.alterTable("proxy...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2024-08-24-0000-conditions.js
db/knex_migrations/2024-08-24-0000-conditions.js
exports.up = function (knex) { return knex.schema .alterTable("monitor", function (table) { table.text("conditions").notNullable().defaultTo("[]"); }); }; exports.down = function (knex) { return knex.schema.alterTable("monitor", function (table) { table.dropColumn("condition...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/db/knex_migrations/2025-12-22-0121-optimize-important-indexes.js
db/knex_migrations/2025-12-22-0121-optimize-important-indexes.js
exports.up = async function (knex) { const isSQLite = knex.client.dialect === "sqlite3"; if (isSQLite) { // For SQLite: Use partial indexes with WHERE important = 1 // Drop existing indexes using IF EXISTS await knex.raw("DROP INDEX IF EXISTS monitor_important_time_index"); awai...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/src/router.js
src/router.js
import { createRouter, createWebHistory } from "vue-router"; import EmptyLayout from "./layouts/EmptyLayout.vue"; import Layout from "./layouts/Layout.vue"; import Dashboard from "./pages/Dashboard.vue"; import DashboardHome from "./pages/DashboardHome.vue"; import Details from "./pages/Details.vue"; import EditMonito...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/src/main.js
src/main.js
import "bootstrap"; import { createApp, h } from "vue"; import contenteditable from "vue-contenteditable"; import Toast from "vue-toastification"; import "vue-toastification/dist/index.css"; import App from "./App.vue"; import "./assets/app.scss"; import "./assets/vue-datepicker.scss"; import { i18n } from "./i18n"; im...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/src/icon.js
src/icon.js
import { library } from "@fortawesome/fontawesome-svg-core"; import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; // Add Free Font Awesome Icons // https://fontawesome.com/v5.15/icons?d=gallery&p=2&s=solid&m=free // In order to add an icon, you have to: // 1) add the icon name in the import statement below;...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/src/i18n.js
src/i18n.js
import { createI18n } from "vue-i18n/dist/vue-i18n.esm-browser.prod.js"; import en from "./lang/en.json"; const languageList = { "ar-SY": "العربية", "cs-CZ": "Čeština", "zh-HK": "繁體中文 (香港)", "bg-BG": "Български", "be": "Беларуская", "de-DE": "Deutsch (Deutschland)", "de-CH": "Deutsch (Schwe...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/src/util-frontend.js
src/util-frontend.js
import dayjs from "dayjs"; import { getTimeZones } from "@vvo/tzdb"; import { localeDirection, currentLocale } from "./i18n"; import { POSITION } from "vue-toastification"; /** * Returns the offset from UTC in hours for the current locale. * @param {string} timeZone Timezone to get offset for * @returns {number} Th...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/src/util.js
src/util.js
"use strict"; /*! // Common Util for frontend and backend // // DOT NOT MODIFY util.js! // Need to run "npm run tsc" to compile if there are any changes. // // Backend uses the compiled file util.js // Frontend uses util.ts */ var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.CONSOLE_STYLE_...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/src/components/notifications/index.js
src/components/notifications/index.js
import Alerta from "./Alerta.vue"; import AlertNow from "./AlertNow.vue"; import AliyunSMS from "./AliyunSms.vue"; import Apprise from "./Apprise.vue"; import Bale from "./Bale.vue"; import Bark from "./Bark.vue"; import Bitrix24 from "./Bitrix24.vue"; import Notifery from "./Notifery.vue"; import ClickSendSMS from "./...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/src/modules/dayjs/constant.js
src/modules/dayjs/constant.js
export let SECONDS_A_MINUTE = 60; export let SECONDS_A_HOUR = SECONDS_A_MINUTE * 60; export let SECONDS_A_DAY = SECONDS_A_HOUR * 24; export let SECONDS_A_WEEK = SECONDS_A_DAY * 7; export let MILLISECONDS_A_SECOND = 1e3; export let MILLISECONDS_A_MINUTE = SECONDS_A_MINUTE * MILLISECONDS_A_SECOND; export let MILLISECONDS...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/src/modules/dayjs/plugin/timezone/index.js
src/modules/dayjs/plugin/timezone/index.js
/** * Copy from node_modules/dayjs/plugin/timezone.js * Try to fix https://github.com/louislam/uptime-kuma/issues/2318 * Source: https://github.com/iamkun/dayjs/tree/dev/src/plugin/utc * License: MIT */ import { MIN, MS } from "../../constant"; let typeToPos = { year: 0, month: 1, day: 2, hour: 3, ...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/src/mixins/public.js
src/mixins/public.js
import axios from "axios"; import { getDevContainerServerHostname, isDevContainer } from "../util-frontend"; const env = process.env.NODE_ENV || "production"; // change the axios base url for development if (env === "development" && isDevContainer()) { axios.defaults.baseURL = location.protocol + "//" + getDevCon...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/src/mixins/datetime.js
src/mixins/datetime.js
import dayjs from "dayjs"; /** * DateTime Mixin * Handled timezone and format */ export default { data() { return { userTimezone: localStorage.timezone || "auto", }; }, methods: { /** * Convert value to UTC * @param {string | number | Date | dayjs.D...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/src/mixins/theme.js
src/mixins/theme.js
export default { data() { return { system: (window.matchMedia("(prefers-color-scheme: dark)").matches) ? "dark" : "light", userTheme: localStorage.theme, userHeartbeatBar: localStorage.heartbeatBarTheme, styleElapsedTime: localStorage.styleElapsedTime, ...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/src/mixins/lang.js
src/mixins/lang.js
import { currentLocale } from "../i18n"; import { setPageLocale, timeDurationFormatter } from "../util-frontend"; const langModules = import.meta.glob("../lang/*.json"); export default { data() { return { language: currentLocale(), }; }, async created() { if (this.langu...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/src/mixins/mobile.js
src/mixins/mobile.js
export default { data() { return { windowWidth: window.innerWidth, }; }, created() { window.addEventListener("resize", this.onResize); this.updateBody(); }, methods: { /** * Handle screen resize * @returns {void} */ ...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/src/mixins/socket.js
src/mixins/socket.js
import { io } from "socket.io-client"; import { useToast } from "vue-toastification"; import jwtDecode from "jwt-decode"; import Favico from "favico.js"; import dayjs from "dayjs"; import mitt from "mitt"; import { DOWN, MAINTENANCE, PENDING, UP } from "../util.ts"; import { getDevContainerServerHostname, isDevContain...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false
louislam/uptime-kuma
https://github.com/louislam/uptime-kuma/blob/a0a009f31c929444b3cca292f96a93db368b65e8/test/mock-testdb.js
test/mock-testdb.js
const { sync: rimrafSync } = require("rimraf"); const Database = require("../server/database"); class TestDB { dataDir; constructor(dir = "./data/test") { this.dataDir = dir; } async create() { Database.initDataDir({ "data-dir": this.dataDir }); Database.dbConfig = { ...
javascript
MIT
a0a009f31c929444b3cca292f96a93db368b65e8
2026-01-04T14:56:49.617448Z
false