text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
:root {
color: blue;
}
| modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/assets/styles.css/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/assets/styles.css",
"repo_id": "modernweb-dev",
"token_count": 12
} | 193 |
<html>
<body>
<p>inject a service worker into /index.html</p>
</body>
</html>
| modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/inject-service-worker/index.html/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/inject-service-worker/index.html",
"repo_id": "modernweb-dev",
"token_count": 38
} | 194 |
:root {
color: blue;
}
| modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/rollup-plugin-html/styles.css/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/rollup-plugin-html/styles.css",
"repo_id": "modernweb-dev",
"token_count": 12
} | 195 |
const badImage1 = new URL('/absolute-path.svg', import.meta.url).href;
const badImage2 = new URL('../../missing-relative-path.svg', import.meta.url).href;
console.log(badImage1, badImage2);
| modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/fixtures/bad-url-entrypoint.js/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/fixtures/bad-url-entrypoint.js",
"repo_id": "modernweb-dev",
"token_count": 66
} | 196 |
import { imageOne, nameOne } from '../../../one.js';
import { imageTwo, nameTwo } from '../../two.js';
import { imageThree, nameThree } from '../three.js';
import { imageFour, nameFour } from './four.js';
console.log({
[nameOne]: imageOne,
[nameTwo]: imageTwo,
[nameThree]: imageThree,
[nameFour]: imageFour,
})... | modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/fixtures/one/two/three/four/multi-level-entrypoint-deep.js/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/fixtures/one/two/three/four/multi-level-entrypoint-deep.js",
"repo_id": "modernweb-dev",
"token_count": 111
} | 197 |
# @web/rollup-plugin-polyfills-loader
## 2.1.1
### Patch Changes
- 1c0088de: Update Rollup to version 4.
## 2.1.0
### Minor Changes
- c185cbaa: Set minimum node version to 18
### Patch Changes
- Updated dependencies [c185cbaa]
- @web/polyfills-loader@2.2.0
## 2.0.1
### Patch Changes
- f6ba53f0: Export type... | modernweb-dev/web/packages/rollup-plugin-polyfills-loader/CHANGELOG.md/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-polyfills-loader/CHANGELOG.md",
"repo_id": "modernweb-dev",
"token_count": 815
} | 198 |
<html><head>
<link rel="preload" href="./entrypoint-a.js" as="script" crossorigin="anonymous" />
</head><body><script src="loader.js"></script></body></html> | modernweb-dev/web/packages/rollup-plugin-polyfills-loader/test/snapshots/external-script.html/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-polyfills-loader/test/snapshots/external-script.html",
"repo_id": "modernweb-dev",
"token_count": 54
} | 199 |
# rollup-plugin-workbox
[](https://www.npmjs.com/package/rollup-plugin-workbox)
Rollup plugin that builds a service worker with workbox as part of your rollup build
## Usage
This package provides two rollup plugins: one that generates a comp... | modernweb-dev/web/packages/rollup-plugin-workbox/README.md/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-workbox/README.md",
"repo_id": "modernweb-dev",
"token_count": 1410
} | 200 |
import type { Plugin } from 'esbuild';
export function esbuildPluginCommonjsNamedExports(module: string, namedExports: string[]): Plugin {
return {
name: 'commonjs-named-exports',
setup(build) {
build.onResolve({ filter: new RegExp(`^${module}$`) }, args => {
return {
path: args.path,... | modernweb-dev/web/packages/storybook-builder/src/esbuild-plugin-commonjs-named-exports.ts/0 | {
"file_path": "modernweb-dev/web/packages/storybook-builder/src/esbuild-plugin-commonjs-named-exports.ts",
"repo_id": "modernweb-dev",
"token_count": 556
} | 201 |
# @web/storybook-framework-web-components
## 0.1.1
### Patch Changes
- ac6a79d1: Include package.json in package exports
## 0.1.0
### Minor Changes
- 659ed7e2: initial release of @web/storybook-framework-web-components
### Patch Changes
- Updated dependencies [659ed7e2]
- @web/storybook-builder@0.1.0
| modernweb-dev/web/packages/storybook-framework-web-components/CHANGELOG.md/0 | {
"file_path": "modernweb-dev/web/packages/storybook-framework-web-components/CHANGELOG.md",
"repo_id": "modernweb-dev",
"token_count": 115
} | 202 |
import { html } from 'lit';
export default {
title: 'Test/Stories',
};
export const TestStory = () => html`<div>Test Story works</div>`;
| modernweb-dev/web/packages/storybook-framework-web-components/tests/fixtures/all-in-one/stories/test.stories.js/0 | {
"file_path": "modernweb-dev/web/packages/storybook-framework-web-components/tests/fixtures/all-in-one/stories/test.stories.js",
"repo_id": "modernweb-dev",
"token_count": 48
} | 203 |
import { BrowserLauncher, TestRunnerCoreConfig } from '@web/test-runner-core';
import { WebdriverLauncher } from '@web/test-runner-webdriver';
import browserstack from 'browserstack-local';
import ip from 'ip';
import {
registerBrowserstackLocal,
unregisterBrowserstackLocal,
localId,
} from './browserstackManager... | modernweb-dev/web/packages/test-runner-browserstack/src/browserstackLauncher.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-browserstack/src/browserstackLauncher.ts",
"repo_id": "modernweb-dev",
"token_count": 887
} | 204 |
// this file exists to make the import for /plugins work on node v10
module.exports = require('./dist/index');
| modernweb-dev/web/packages/test-runner-commands/plugins.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-commands/plugins.js",
"repo_id": "modernweb-dev",
"token_count": 31
} | 205 |
import path from 'path';
import { runTests } from '@web/test-runner-core/test-helpers';
import { chromeLauncher } from '@web/test-runner-chrome';
import { playwrightLauncher } from '@web/test-runner-playwright';
import { emulateMediaPlugin } from '../../src/emulateMediaPlugin.js';
describe('emulateMediaPlugin', funct... | modernweb-dev/web/packages/test-runner-commands/test/emulate-media/emulateMediaPlugin.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-commands/test/emulate-media/emulateMediaPlugin.test.ts",
"repo_id": "modernweb-dev",
"token_count": 579
} | 206 |
import { setUserAgent } from '../../browser/commands.mjs';
import { expect } from '../chai.js';
it('can set the user agent', async () => {
const userAgent = 'x';
expect(navigator.userAgent).to.not.equal(userAgent);
await setUserAgent(userAgent);
expect(navigator.userAgent).to.equal(userAgent);
});
| modernweb-dev/web/packages/test-runner-commands/test/set-user-agent/browser-test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-commands/test/set-user-agent/browser-test.js",
"repo_id": "modernweb-dev",
"token_count": 103
} | 207 |
// this file is autogenerated with the generate-mjs-dts-entrypoints script
import cjsEntrypoint from './dist/index.js';
const {
constants,
TestRunner,
TestRunnerCli,
BufferedLogger,
TestSessionManager,
SESSION_STATUS,
EventEmitter,
isTestFilePath,
fetchSourceMap,
} = cjsEntrypoint;
export {
consta... | modernweb-dev/web/packages/test-runner-core/index.mjs/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/index.mjs",
"repo_id": "modernweb-dev",
"token_count": 167
} | 208 |
import { TestSession } from '../test-session/TestSession';
import { TestSessionManager } from '../test-session/TestSessionManager';
import { TestRunnerCoreConfig } from '../config/TestRunnerCoreConfig';
import { TestCoverage } from '../coverage/getTestCoverage';
import { Logger } from '../logger/Logger';
import { Brows... | modernweb-dev/web/packages/test-runner-core/src/reporter/Reporter.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/reporter/Reporter.ts",
"repo_id": "modernweb-dev",
"token_count": 480
} | 209 |
import { Context, getRequestFilePath, ServerStartParams, WebSocket } from '@web/dev-server-core';
import { MapBrowserUrl } from '@web/browser-logs';
import parse from 'co-body';
import { TestRunnerCoreConfig } from '../../../config/TestRunnerCoreConfig.js';
import { TestSessionManager } from '../../../test-session/Tes... | modernweb-dev/web/packages/test-runner-core/src/server/plugins/api/testRunnerApiPlugin.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/server/plugins/api/testRunnerApiPlugin.ts",
"repo_id": "modernweb-dev",
"token_count": 3699
} | 210 |
import { mapFileCommentRegex, fromSource, SourceMapConverter, fromJSON } from 'convert-source-map';
import path from 'path';
import { RequestOptions } from 'http';
import { request } from './request.js';
function is2xxResponse(status?: number) {
return typeof status === 'number' && status >= 200 && status < 300;
}
... | modernweb-dev/web/packages/test-runner-core/src/utils/fetchSourceMap.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/utils/fetchSourceMap.ts",
"repo_id": "modernweb-dev",
"token_count": 905
} | 211 |
# @web/test-runner-coverage-v8
## 0.8.0
### Minor Changes
- c185cbaa: Set minimum node version to 18
### Patch Changes
- Updated dependencies [c185cbaa]
- @web/test-runner-core@0.13.0
## 0.7.3
### Patch Changes
- Updated dependencies [43be7391]
- @web/test-runner-core@0.12.0
## 0.7.2
### Patch Changes
- ... | modernweb-dev/web/packages/test-runner-coverage-v8/CHANGELOG.md/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-coverage-v8/CHANGELOG.md",
"repo_id": "modernweb-dev",
"token_count": 1720
} | 212 |
import '../../../../../node_modules/chai/chai.js';
const inc = x => x + 1;
const compose2 = (f, g) => x => f(g(x));
describe('given a functor f', function() {
describe('and a function a -> b', function() {
describe('map f map g f a' , function() {
it('is equivalent to map (f.g) f a', function () {
... | modernweb-dev/web/packages/test-runner-junit-reporter/test/fixtures/multiple/nested-test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-junit-reporter/test/fixtures/multiple/nested-test.js",
"repo_id": "modernweb-dev",
"token_count": 203
} | 213 |
import {
sessionStarted,
sessionFinished as testRunnerOnSessionFinished,
sessionFailed,
getConfig,
} from '../../test-runner-core/browser/session.js';
import '../../../node_modules/mocha/mocha.js';
import { collectTestResults } from './collectTestResults.js';
import { setupMocha } from './mochaSetup.js';
const... | modernweb-dev/web/packages/test-runner-mocha/src/standalone.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-mocha/src/standalone.ts",
"repo_id": "modernweb-dev",
"token_count": 420
} | 214 |
export function stripColor(str: string): string {
// eslint-disable-next-line no-control-regex
return str.replace(/\x1B[[(?);]{0,2}(;?\d)*./g, '');
}
| modernweb-dev/web/packages/test-runner-module-mocking/src/stripColor.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-module-mocking/src/stripColor.ts",
"repo_id": "modernweb-dev",
"token_count": 65
} | 215 |
# Migration
## From version 0.15.x to 0.16.0
The re-exports of Puppeteer devices is removed and can be imported from Puppeteer directly.
```ts
import { KnownDevices } from 'puppeteer';
```
| modernweb-dev/web/packages/test-runner-puppeteer/MIGRATION.md/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-puppeteer/MIGRATION.md",
"repo_id": "modernweb-dev",
"token_count": 65
} | 216 |
# @web/test-runner-saucelabs
## 0.11.1
### Patch Changes
- e657791f: Vulnerability fix in `ip` package.
For more info, see:
- https://github.com/advisories/GHSA-78xj-cgh5-2h22
- https://github.com/indutny/node-ip/issues/136#issuecomment-1952083593
## 0.11.0
### Minor Changes
- c185cbaa: Set minimum node ve... | modernweb-dev/web/packages/test-runner-saucelabs/CHANGELOG.md/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-saucelabs/CHANGELOG.md",
"repo_id": "modernweb-dev",
"token_count": 2236
} | 217 |
import { BrowserLauncher, TestRunnerCoreConfig } from '@web/test-runner-core';
import { Builder, WebDriver } from 'selenium-webdriver';
import { getBrowserLabel, getBrowserName } from './utils.js';
import { IFrameManager } from './IFrameManager.js';
export interface SeleniumLauncherArgs {
driverBuilder: Builder;
}
... | modernweb-dev/web/packages/test-runner-selenium/src/seleniumLauncher.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-selenium/src/seleniumLauncher.ts",
"repo_id": "modernweb-dev",
"token_count": 1291
} | 218 |
import selenium from 'selenium-standalone';
import { Builder } from 'selenium-webdriver';
import { Options as ChromeOptions } from 'selenium-webdriver/chrome';
import { Options as FirefoxOptions } from 'selenium-webdriver/firefox';
import { runIntegrationTests } from '../../../integration/test-runner';
import { seleniu... | modernweb-dev/web/packages/test-runner-selenium/test/seleniumLauncher.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-selenium/test/seleniumLauncher.test.ts",
"repo_id": "modernweb-dev",
"token_count": 868
} | 219 |
{
"name": "@web/test-runner-webdriver",
"version": "0.8.0",
"publishConfig": {
"access": "public"
},
"description": "Webdriver browser launcher for Web Test Runner",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/modernweb-dev/web.git",
"directory": "packages/t... | modernweb-dev/web/packages/test-runner-webdriver/package.json/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-webdriver/package.json",
"repo_id": "modernweb-dev",
"token_count": 606
} | 220 |
import { expect } from '@esm-bundle/chai';
it('can run a test with focus a', async () => {
const input = document.createElement('input');
document.body.appendChild(input);
let firedEvent = false;
input.addEventListener('focus', () => {
firedEvent = true;
});
input.focus();
await new Promise(r => se... | modernweb-dev/web/packages/test-runner/demo/focus/test/focus-a.test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/focus/test/focus-a.test.js",
"repo_id": "modernweb-dev",
"token_count": 124
} | 221 |
import { playwrightLauncher } from '@web/test-runner-playwright';
export default /** @type {import('@web/test-runner').TestRunnerConfig} */ ({
nodeResolve: true,
rootDir: '../../',
groups: [
{
name: 'group-a',
files: 'demo/test/pass-1.test.js',
},
{
name: 'group-b',
files: 'd... | modernweb-dev/web/packages/test-runner/demo/groups-shared-browser.config.mjs/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/groups-shared-browser.config.mjs",
"repo_id": "modernweb-dev",
"token_count": 160
} | 222 |
/* @web/test-runner snapshot v1 */
export const snapshots = {};
snapshots["snapshot-a"] =
`some snapshot A5`;
/* end snapshot snapshot-a */
snapshots["snapshot-b"] =
`some snapshot B5`;
/* end snapshot snapshot-b */
snapshots["snapshot-c"] =
`some snapshot C5`;
/* end snapshot snapshot-c */
| modernweb-dev/web/packages/test-runner/demo/test/__snapshots__/pass-snapshot-5.test.snap.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/__snapshots__/pass-snapshot-5.test.snap.js",
"repo_id": "modernweb-dev",
"token_count": 103
} | 223 |
import { expect } from './chai.js';
it('only fails on safari', () => {
if (/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
expect(true).to.be.false;
}
});
| modernweb-dev/web/packages/test-runner/demo/test/fail-safari.test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/fail-safari.test.js",
"repo_id": "modernweb-dev",
"token_count": 71
} | 224 |
import { setViewport, emulateMedia } from '@web/test-runner-commands';
import { expect } from './chai.js';
it('can resize to a small viewport', async () => {
await setViewport({ height: 200, width: 100 });
expect(window.innerHeight).to.equal(200);
expect(window.innerWidth).to.equal(100);
});
it('can resize to a... | modernweb-dev/web/packages/test-runner/demo/test/pass-commands.test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/pass-commands.test.js",
"repo_id": "modernweb-dev",
"token_count": 402
} | 225 |
import './shared-a.js';
import './shared-b.js';
| modernweb-dev/web/packages/test-runner/demo/tsc/dist/test/pass-2.test.d.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/tsc/dist/test/pass-2.test.d.ts",
"repo_id": "modernweb-dev",
"token_count": 20
} | 226 |
import { TestFramework, TestRunnerCoreConfig, TestRunnerGroupConfig } from '@web/test-runner-core';
import { RollupNodeResolveOptions } from '@web/dev-server';
export interface TestRunnerConfig extends Omit<TestRunnerCoreConfig, 'testFramework'> {
groups?: string | string[] | TestRunnerGroupConfig[];
nodeResolve?:... | modernweb-dev/web/packages/test-runner/src/config/TestRunnerConfig.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/src/config/TestRunnerConfig.ts",
"repo_id": "modernweb-dev",
"token_count": 133
} | 227 |
import { TestSession, TestResultError, Logger } from '@web/test-runner-core';
import { gray, red } from 'nanocolors';
import { getFailedOnBrowsers } from './utils/getFailedOnBrowsers.js';
function isSameError(a: TestResultError, b: TestResultError) {
return a.message === b.message && a.stack === b.stack;
}
interfa... | modernweb-dev/web/packages/test-runner/src/reporter/reportTestFileErrors.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/src/reporter/reportTestFileErrors.ts",
"repo_id": "modernweb-dev",
"token_count": 749
} | 228 |
import fs from 'fs';
import path from 'path';
import { createRequire } from 'module';
import { packages } from '../workspace-packages.mjs';
const require = createRequire(import.meta.url);
for (const pkg of packages) {
if (pkg.type === 'ts' && pkg.environment === 'node') {
const pkgPath = path.join(process.cwd()... | modernweb-dev/web/scripts/generate-mjs-dts-entrypoints.mjs/0 | {
"file_path": "modernweb-dev/web/scripts/generate-mjs-dts-entrypoints.mjs",
"repo_id": "modernweb-dev",
"token_count": 1044
} | 229 |
node_modules
build
testcafe
| odota/web/.eslintignore/0 | {
"file_path": "odota/web/.eslintignore",
"repo_id": "odota",
"token_count": 10
} | 230 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>OpenDota - Dota 2 Statistics</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mob... | odota/web/index.html/0 | {
"file_path": "odota/web/index.html",
"repo_id": "odota",
"token_count": 734
} | 231 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill="gray" d="M67.64-154h666v666h-666z"/>
</clipPath>
</defs>
<g transform="matrix(.961 0 0 .7207 -65 110.99)" clip-path="url(#a)">
<g fill-rule="evenodd" stroke-width="1pt">
... | odota/web/public/assets/images/flags/bj.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/bj.svg",
"repo_id": "odota",
"token_count": 249
} | 232 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M-12.355 32h640v480h-640z"/>
</clipPath>
</defs>
<g clip-path="url(#a)" fill-rule="evenodd" transform="translate(12.355 -32)">
<path fill="#00f" d="M-52 32... | odota/web/public/assets/images/flags/cf.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/cf.svg",
"repo_id": "odota",
"token_count": 390
} | 233 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<path fill="#ffce00" d="M0 320h640v160.002H0z"/>
<path d="M0 0h640v160H0z"/>
<path fill="#d00" d="M0 160h640v160H0z"/>
</svg>
| odota/web/public/assets/images/flags/de.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/de.svg",
"repo_id": "odota",
"token_count": 106
} | 234 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="480" width="640" viewBox="0 0 640 480">
<defs>
<path stroke-miterlimit="10" d="M-28.58 47.5l1.733 1 46.713-80.91c2.732-.73 4.232-3.33 5.732-5.927 1-1.732 5-8.66 6.734-17.663-6.93 6.003-10.93 12.93-11.93 14.663-1.5 2.598-3 5... | odota/web/public/assets/images/flags/ke.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/ke.svg",
"repo_id": "odota",
"token_count": 673
} | 235 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M0 0h682.67v512H0z"/>
</clipPath>
</defs>
<g clip-path="url(#a)" fill-rule="evenodd" transform="scale(.9375)">
<path fill="#fff" d="M0 .084h767.87v511.92H0... | odota/web/public/assets/images/flags/lr.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/lr.svg",
"repo_id": "odota",
"token_count": 438
} | 236 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<g fill-rule="evenodd">
<path fill="#fff" d="M640 480H0V0h640z"/>
<path fill="#dc143c" d="M640 480H0V240h640z"/>
</g>
</svg>
| odota/web/public/assets/images/flags/pl.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/pl.svg",
"repo_id": "odota",
"token_count": 106
} | 237 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M0 0h682.67v512H0z"/>
</clipPath>
</defs>
<g fill-rule="evenodd" clip-path="url(#a)" transform="scale(.9375)" stroke-width="1pt">
<path fill="red" d="M0 0h... | odota/web/public/assets/images/flags/sc.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/sc.svg",
"repo_id": "odota",
"token_count": 286
} | 238 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<path fill="#fff" d="M0 0h640v480H0z"/>
<path d="M463.663 480L.05 1.003 0 479.747l463.663.253zM176.337 0L639.95 478.997 640 .253 176.337 0z" fill-rule="evenodd" fill="#e00000"/>
<path d="M27.74.23h118.597l468.176 479.315h-122.... | odota/web/public/assets/images/flags/tt.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/tt.svg",
"repo_id": "odota",
"token_count": 172
} | 239 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M-85.334 0h682.67v512h-682.67z"/>
</clipPath>
</defs>
<g fill-rule="evenodd" clip-path="url(#a)" transform="translate(80.001) scale(.9375)">
<path fill="#e... | odota/web/public/assets/images/flags/vn.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/vn.svg",
"repo_id": "odota",
"token_count": 271
} | 240 |
const reduceArray = backwards => (array, val) => {
if (array.length !== 0 || val.games !== 0) {
if (backwards) {
array.unshift(val);
} else {
array.push(val);
}
}
return array;
};
export default function transformHistograms(data) {
return data.reduceRight(reduceArray(true), []);
}
| odota/web/src/actions/transformHistograms.js/0 | {
"file_path": "odota/web/src/actions/transformHistograms.js",
"repo_id": "odota",
"token_count": 121
} | 241 |
// eslint-disable-next-line no-redeclare
/* global localStorage */
import React from 'react';
import PropTypes from 'prop-types';
import RaisedButton from 'material-ui/RaisedButton';
import { connect } from 'react-redux';
import styled from 'styled-components';
import ReactMarkdown from 'react-markdown';
import { getGi... | odota/web/src/components/Announce/index.jsx/0 | {
"file_path": "odota/web/src/components/Announce/index.jsx",
"repo_id": "odota",
"token_count": 1648
} | 242 |
import React from 'react';
import PropTypes from 'prop-types';
import Heading from '../Heading';
import Error from '../Error';
import ContainerSkeleton from '../Skeletons/ContainerSkeleton';
const {
bool, node, string, shape, number,
} = PropTypes;
const Container = ({
title, subtitle, style, className, children,... | odota/web/src/components/Container/index.jsx/0 | {
"file_path": "odota/web/src/components/Container/index.jsx",
"repo_id": "odota",
"token_count": 311
} | 243 |
export default {
mega_creep_wins: {
sql: `
SELECT match_id, leagues.name from matches
JOIN leagues
USING(leagueid)
WHERE (radiant_win = TRUE AND barracks_status_radiant = 0)
OR (radiant_win = FALSE AND barracks_status_dire = 0)
ORDER BY match_id DESC
`,
},
heroes_most_picked_banned: {
name: 'Heroes, most ... | odota/web/src/components/Explorer/queries.js/0 | {
"file_path": "odota/web/src/components/Explorer/queries.js",
"repo_id": "odota",
"token_count": 7077
} | 244 |
import {
IconButton,
List,
ListItem,
ListItemText,
Menu,
MenuItem,
SwipeableDrawer,
} from '@material-ui/core';
import { BugReport, Menu as MenuIcon, Settings } from '@material-ui/icons';
import LogOutButton from 'material-ui/svg-icons/action/power-settings-new';
import ActionSearch from 'material-ui/svg-... | odota/web/src/components/Header/Header.jsx/0 | {
"file_path": "odota/web/src/components/Header/Header.jsx",
"repo_id": "odota",
"token_count": 4508
} | 245 |
import React from 'react';
import propTypes from 'prop-types';
import styled from 'styled-components';
import BenchmarkGraph from './BenchmarkGraph';
import constants from '../constants';
const Wrapper = styled.div`
display: flex;
flex-wrap: wrap;
margin: 48px -8px;
@media screen and (max-width: ${constants.... | odota/web/src/components/Hero/BenchmarkGraphs.jsx/0 | {
"file_path": "odota/web/src/components/Hero/BenchmarkGraphs.jsx",
"repo_id": "odota",
"token_count": 675
} | 246 |
import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import { connect } from 'react-redux';
import styled from 'styled-components';
import { ButtonsDiv } from './Styled';
import config from '../../config';
import { HomePageProps } from './Home';
const StyledDiv = styled.div`
display: flex;
... | odota/web/src/components/Home/Sponsors.tsx/0 | {
"file_path": "odota/web/src/components/Home/Sponsors.tsx",
"repo_id": "odota",
"token_count": 1120
} | 247 |
import React from 'react';
import styled from 'styled-components';
import constants from '../constants';
const icon = props => (
<svg {...props} viewBox="0 0 300 300">
<path
d="M150,106.4c0,0,6.6,0,8,0.5c1.4,0.5,2.3,4.2,5.2,5.2c2.3,0.9,35.6,1.4,35.2,3.7c0,2.3-2.3,2.8-2.8,3.8
c-0.5,1.4,1.4,3.3-3.3,3.8... | odota/web/src/components/Icons/Dire.jsx/0 | {
"file_path": "odota/web/src/components/Icons/Dire.jsx",
"repo_id": "odota",
"token_count": 9511
} | 248 |
import React from 'react';
export default props => (
<svg {...props} viewBox="0 0 300 300">
<path
d="M299.9,47.8c0-1.9-0.1-3.5-0.1-4.9h-54.1C246.7,19.7,246,0,246,0s-64,0-95.5,0c-0.2,0-0.4,0-0.7,0
c-0.2,0-0.4,0-0.7,0c-31.5,0-95.7,0-95.7,0s-0.7,19.7,0.3,42.9H0.2H0v13.8c0,0.1,0,0.2,0,0.2v7.4h0.1c0.5,17.... | odota/web/src/components/Icons/Trophy.jsx/0 | {
"file_path": "odota/web/src/components/Icons/Trophy.jsx",
"repo_id": "odota",
"token_count": 731
} | 249 |
import Draft from './Draft';
export default Draft;
| odota/web/src/components/Match/Draft/index.js/0 | {
"file_path": "odota/web/src/components/Match/Draft/index.js",
"repo_id": "odota",
"token_count": 14
} | 250 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import styled from 'styled-components';
import { isRadiant, getTeamName } from '../../utility';
import Heading from '../Heading';
import Table from '../Table';
import PicksBans from './Overview/PicksBans'; // Displayed... | odota/web/src/components/Match/TeamTable.jsx/0 | {
"file_path": "odota/web/src/components/Match/TeamTable.jsx",
"repo_id": "odota",
"token_count": 2547
} | 251 |
import PercentContainer from './PercentContainer';
export default PercentContainer;
| odota/web/src/components/PercentContainer/index.js/0 | {
"file_path": "odota/web/src/components/PercentContainer/index.js",
"repo_id": "odota",
"token_count": 17
} | 252 |
import React from 'react';
import { displayHeroId } from '../../../../utility';
import { TableLink } from '../../../Table';
export const playerHeroesOverviewColumns = (playerId, strings) => [{
displayName: strings.th_hero_id,
tooltip: strings.tooltip_hero_id,
field: 'hero_id',
displayFn: displayHeroId,
sortF... | odota/web/src/components/Player/Pages/Heroes/playerHeroesColumns.jsx/0 | {
"file_path": "odota/web/src/components/Player/Pages/Heroes/playerHeroesColumns.jsx",
"repo_id": "odota",
"token_count": 690
} | 253 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { getPlayerRecords } from '../../../../actions';
import Table from '../../../Table';
import Container from '../../../Container';
import dataColumns from '../matchDa... | odota/web/src/components/Player/Pages/Records/Records.jsx/0 | {
"file_path": "odota/web/src/components/Player/Pages/Records/Records.jsx",
"repo_id": "odota",
"token_count": 1035
} | 254 |
import ProgressBar from './ProgressBar';
export default ProgressBar;
| odota/web/src/components/ProgressBar/index.js/0 | {
"file_path": "odota/web/src/components/ProgressBar/index.js",
"repo_id": "odota",
"token_count": 17
} | 255 |
import React from 'react';
import { BulletList } from 'react-content-loader';
const ContainerSkeleton = props => (
<BulletList
primaryColor="#666"
secondaryColor="#ecebeb"
{...props}
/>
);
export default ContainerSkeleton;
| odota/web/src/components/Skeletons/ContainerSkeleton.jsx/0 | {
"file_path": "odota/web/src/components/Skeletons/ContainerSkeleton.jsx",
"repo_id": "odota",
"token_count": 80
} | 256 |
export { default } from './TabBar';
| odota/web/src/components/TabBar/index.js/0 | {
"file_path": "odota/web/src/components/TabBar/index.js",
"repo_id": "odota",
"token_count": 11
} | 257 |
import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import { getTeam, getTeamHeroes, getTeamMatches, getTeamPlayers } from '../../actions';
import Spinner from '../Spinner';
import TabBar from '../TabBar';
import teamPages from './team... | odota/web/src/components/Team/index.jsx/0 | {
"file_path": "odota/web/src/components/Team/index.jsx",
"repo_id": "odota",
"token_count": 1256
} | 258 |
import styled from 'styled-components';
import React from 'react';
import TextField from 'material-ui/TextField';
import PropTypes from 'prop-types';
import ActionSearch from 'material-ui/svg-icons/action/search';
const StyledHorizontalMenuFilter = styled.div`
display: flex;
align-items: center;
.reset-button {... | odota/web/src/components/Visualizations/HorizontalMenu.jsx/0 | {
"file_path": "odota/web/src/components/Visualizations/HorizontalMenu.jsx",
"repo_id": "odota",
"token_count": 1190
} | 259 |
{
"yes": "ja",
"no": "nee",
"abbr_thousand": "k",
"abbr_million": "m",
"abbr_billion": "mld",
"abbr_trillion": "t",
"abbr_quadrillion": "q",
"abbr_not_available": "N.v.t.",
"abbr_pick": "P",
"abbr_win": "W",
"abbr_number": "Nr.",
"analysis_eff": "Lane-efficiëntie",
"analysis_farm_drought": "La... | odota/web/src/lang/nl-NL.json/0 | {
"file_path": "odota/web/src/lang/nl-NL.json",
"repo_id": "odota",
"token_count": 19724
} | 260 |
import { formActions } from '../actions/formActions';
const initialFormState = {
show: false,
};
export default (state = initialFormState, action) => {
switch (action.type) {
case formActions.TOGGLE_SHOW_FORM:
return {
...state,
show: !state.show,
};
default:
return state... | odota/web/src/reducers/form.js/0 | {
"file_path": "odota/web/src/reducers/form.js",
"repo_id": "odota",
"token_count": 136
} | 261 |
{
"match_id": 2472899185,
"barracks_status_dire": 0,
"barracks_status_radiant": 63,
"chat": [
{
"time": 10,
"type": "chat",
"unit": "{{ChoÇhi}}",
"key": "lol",
"slot": 6,
"player_slot": 129
},
{
"time": 12,
"type": "chat",
"unit": "Sugoii",
"key": "te la creiste we :'v",
"slot... | odota/web/testcafe/cachedAjax/matches_2472899185_.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/matches_2472899185_.json",
"repo_id": "odota",
"token_count": 135590
} | 262 |
[
{
"match_id": 4111092417,
"player_slot": 128,
"radiant_win": false,
"duration": 2551,
"game_mode": 3,
"lobby_type": 0,
"hero_id": 1,
"start_time": 1536594324,
"version": null,
"kills": 23,
"deaths": 2,
"assists": 8,
"skill": 3,
"xp_per_min": 829,
"gold_per_min": 982,
"hero_damage": 44... | odota/web/testcafe/cachedAjax/players_101695162_recentMatches_.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/players_101695162_recentMatches_.json",
"repo_id": "odota",
"token_count": 5300
} | 263 |
[
{
"match_id": "4096120529",
"start_time": "1535880226",
"hero_id": "114",
"score": "122"
},
{
"match_id": "4109475072",
"start_time": "1536511504",
"hero_id": "93",
"score": "106"
},
{
"match_id": "4106558300",
"start_time": "1536398952",
"hero_id": "76",
"score": "86"
},
{
"match_id"... | odota/web/testcafe/cachedAjax/records_kills_.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/records_kills_.json",
"repo_id": "odota",
"token_count": 5476
} | 264 |
{
"typescript.tsdk": "frontend/node_modules/typescript/lib"
}
| openmultiplayer/web/.vscode/settings.json/0 | {
"file_path": "openmultiplayer/web/.vscode/settings.json",
"repo_id": "openmultiplayer",
"token_count": 28
} | 265 |
package resources
import (
"go.uber.org/fx"
"github.com/openmultiplayer/web/app/resources/pawndex"
"github.com/openmultiplayer/web/app/resources/server"
"github.com/openmultiplayer/web/app/resources/user"
)
func Build() fx.Option {
return fx.Provide(
server.New,
user.New,
pawndex.New,
)
}
| openmultiplayer/web/app/resources/resources.go/0 | {
"file_path": "openmultiplayer/web/app/resources/resources.go",
"repo_id": "openmultiplayer",
"token_count": 128
} | 266 |
package pawndexworker
import (
"context"
"time"
"go.uber.org/fx"
"go.uber.org/zap"
"github.com/openmultiplayer/web/app/resources/pawndex"
"github.com/openmultiplayer/web/internal/config"
)
type worker struct {
Searcher pawndex.Searcher
Scraper pawndex.Scraper
Storer pawndex.Repository
... | openmultiplayer/web/app/services/pawndexworker/pawndexworker.go/0 | {
"file_path": "openmultiplayer/web/app/services/pawndexworker/pawndexworker.go",
"repo_id": "openmultiplayer",
"token_count": 1249
} | 267 |
package legacy
import (
"net/http"
"strconv"
"time"
"github.com/pkg/errors"
"github.com/openmultiplayer/web/internal/web"
)
func (s *service) listLegacy(w http.ResponseWriter, r *http.Request) {
queries := r.URL.Query()
since, err := strconv.Atoi(queries.Get("activeSince"))
if err != nil {
since = 3
}
... | openmultiplayer/web/app/transports/api/legacy/h_listLegacy.go/0 | {
"file_path": "openmultiplayer/web/app/transports/api/legacy/h_listLegacy.go",
"repo_id": "openmultiplayer",
"token_count": 363
} | 268 |
package users
import (
"errors"
"net/http"
"github.com/openmultiplayer/web/internal/web"
)
func (s *service) patchAdmin(w http.ResponseWriter, r *http.Request) {
type queryParams struct {
UserId string `json:"userId"`
Status bool `json:"status"`
}
var p queryParams
if !web.ParseBody(w, r, &p) {
return... | openmultiplayer/web/app/transports/api/users/h_admin.go/0 | {
"file_path": "openmultiplayer/web/app/transports/api/users/h_admin.go",
"repo_id": "openmultiplayer",
"token_count": 262
} | 269 |
---
title: Client
description: This category contains information about SA-MP client features and support.
---
This category contains information about SA-MP client features and support.
| openmultiplayer/web/docs/client/_.md/0 | {
"file_path": "openmultiplayer/web/docs/client/_.md",
"repo_id": "openmultiplayer",
"token_count": 39
} | 270 |
---
title: OnNPCDisconnect
description: This callback is called when the NPC gets disconnected from the server.
tags: ["npc"]
---
## Description
This callback is called when the NPC gets disconnected from the server.
| Name | Description |
| ------------ | --------... | openmultiplayer/web/docs/scripting/callbacks/OnNPCDisconnect.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnNPCDisconnect.md",
"repo_id": "openmultiplayer",
"token_count": 290
} | 271 |
---
title: OnPlayerConnect
description: This callback is called when a player connects to the server.
tags: ["player"]
---
## Description
This callback is called when a player connects to the server.
| Name | Description |
| -------- | ------------------------------------ |
| playerid | ... | openmultiplayer/web/docs/scripting/callbacks/OnPlayerConnect.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerConnect.md",
"repo_id": "openmultiplayer",
"token_count": 412
} | 272 |
---
title: OnPlayerKeyStateChange
description: This callback is called when the state of any supported key is changed (pressed/released).
tags: ["player"]
---
## Description
This callback is called when the state of any [supported](../resources/keys) key is changed (pressed/released).<br/>Directional keys do not trig... | openmultiplayer/web/docs/scripting/callbacks/OnPlayerKeyStateChange.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerKeyStateChange.md",
"repo_id": "openmultiplayer",
"token_count": 3400
} | 273 |
---
title: OnPlayerStateChange
description: This callback is called when a player changes state.
tags: ["player"]
---
## Description
This callback is called when a player changes state. For example, when a player changes from being the driver of a vehicle to being on-foot.
| Name | Description ... | openmultiplayer/web/docs/scripting/callbacks/OnPlayerStateChange.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerStateChange.md",
"repo_id": "openmultiplayer",
"token_count": 588
} | 274 |
---
title: OnVehiclePaintjob
description: This callback is called when a player previews a vehicle paintjob inside a mod shop.
tags: ["vehicle"]
---
## Description
This callback is called when a player previews a vehicle paintjob inside a mod shop. Watch out, this callback is not called when the player buys the paint... | openmultiplayer/web/docs/scripting/callbacks/OnVehiclePaintjob.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnVehiclePaintjob.md",
"repo_id": "openmultiplayer",
"token_count": 604
} | 275 |
---
title: AddVehicleComponent
description: Adds a 'component' (often referred to as a 'mod' (modification)) to a vehicle.
tags: ["vehicle"]
---
## Description
Adds a 'component' (often referred to as a 'mod' (modification)) to a vehicle. Valid components can be found here.
| Name ... | openmultiplayer/web/docs/scripting/functions/AddVehicleComponent.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/AddVehicleComponent.md",
"repo_id": "openmultiplayer",
"token_count": 821
} | 276 |
---
title: AttachObjectToPlayer
description: Attach an object to a player.
tags: ["object", "player"]
---
## Description
Attach an object to a player.
| Name | Description |
| --------------- | ---------------------------------------------------------... | openmultiplayer/web/docs/scripting/functions/AttachObjectToPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/AttachObjectToPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 887
} | 277 |
---
title: CreatePickup
description: This function does exactly the same as AddStaticPickup, except it returns a pickup ID which can be used to destroy it afterwards and be tracked using OnPlayerPickUpPickup.
tags: ["pickup"]
---
## Description
This function does exactly the same as AddStaticPickup, except it returns... | openmultiplayer/web/docs/scripting/functions/CreatePickup.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/CreatePickup.md",
"repo_id": "openmultiplayer",
"token_count": 1555
} | 278 |
---
title: DestroyPlayerPickup
description: Destroys a player-pickup created with CreatePlayerPickup.
tags: ["player", "pickup", "playerpickup"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Destroys a player-pickup created with [CreatePlayerPickup](CreatePlayerPickup).
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/DestroyPlayerPickup.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/DestroyPlayerPickup.md",
"repo_id": "openmultiplayer",
"token_count": 526
} | 279 |
---
title: EnableStuntBonusForAll
description: Enables or disables stunt bonuses for all players.
tags: []
---
## Description
Enables or disables stunt bonuses for all players. If enabled, players will receive monetary rewards when performing a stunt in a vehicle (e.g. a wheelie).
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/EnableStuntBonusForAll.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/EnableStuntBonusForAll.md",
"repo_id": "openmultiplayer",
"token_count": 307
} | 280 |
---
title: GangZoneGetColourForPlayer
description: Get the colour of a gangzone for player
tags: ["player", "gangzone"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the colour of a gangzone for player.
| Name | Description |
| ----------- | ------------------... | openmultiplayer/web/docs/scripting/functions/GangZoneGetColourForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GangZoneGetColourForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 528
} | 281 |
---
title: Get3DTextLabelVirtualWorld
description: Gets the 3D text label virtual world id.
tags: ["3dtextlabel"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the 3D text label virtual world id.
| Name | Description |
| ------------- | --... | openmultiplayer/web/docs/scripting/functions/Get3DTextLabelVirtualWorld.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/Get3DTextLabelVirtualWorld.md",
"repo_id": "openmultiplayer",
"token_count": 349
} | 282 |
---
title: GetCustomModelPath
description: Get a custom model path.
tags: ["custom model", "custom skin", "simple model"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get a custom model path.
| Name | Description |
| --------- | --------------... | openmultiplayer/web/docs/scripting/functions/GetCustomModelPath.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetCustomModelPath.md",
"repo_id": "openmultiplayer",
"token_count": 499
} | 283 |
---
title: GetPVarType
description: Gets the type (integer, float or string) of a player variable.
tags: ["player variable", "pvar"]
---
## Description
Gets the type (integer, float or string) of a player variable.
| Name | Description |
| ------------ | ---... | openmultiplayer/web/docs/scripting/functions/GetPVarType.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPVarType.md",
"repo_id": "openmultiplayer",
"token_count": 829
} | 284 |
---
title: GetPlayerAmmo
description: Gets the amount of ammo in a player's current weapon.
tags: ["player"]
---
## Description
Gets the amount of ammo in a player's current weapon.
| Name | Description |
| -------- | --------------------------------------- |
| playerid | The ID of th... | openmultiplayer/web/docs/scripting/functions/GetPlayerAmmo.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerAmmo.md",
"repo_id": "openmultiplayer",
"token_count": 388
} | 285 |
---
title: GetPlayerCameraUpVector
description: This function returns the vector, that points to the upside of the camera's view, or, in other words, to the middle top of your screen.
tags: ["player", "camera"]
---
## Description
This function returns the vector, that points to the upside of the camera's view, or, in... | openmultiplayer/web/docs/scripting/functions/GetPlayerCameraUpVector.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerCameraUpVector.md",
"repo_id": "openmultiplayer",
"token_count": 356
} | 286 |
---
title: GetPlayerHydraReactorAngle
description: Gets the hydra reactor angle of the player's vehicle.
tags: ["player", "vehicle"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the hydra reactor angle of the player's vehicle.
## Parameters
| Name | Description |
|----------|----... | openmultiplayer/web/docs/scripting/functions/GetPlayerHydraReactorAngle.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerHydraReactorAngle.md",
"repo_id": "openmultiplayer",
"token_count": 192
} | 287 |
---
title: GetPlayerObjectMaterial
description: Get the material data from an index of the player-object.
tags: ["player", "object", "playerobject"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the material data from an index of the player-object.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/GetPlayerObjectMaterial.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerObjectMaterial.md",
"repo_id": "openmultiplayer",
"token_count": 970
} | 288 |
---
title: GetPlayerRaceCheckpoint
description: Get the location of the current race checkpoint.
tags: ["player", "checkpoint", "racecheckpoint"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the location of the current race checkpoint.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/GetPlayerRaceCheckpoint.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerRaceCheckpoint.md",
"repo_id": "openmultiplayer",
"token_count": 898
} | 289 |
---
title: GetPlayerTargetPlayer
description: Check who a player is aiming at.
tags: ["player"]
---
## Description
Check who a player is aiming at.
| Name | Description |
| -------- | ------------------------------------------ |
| playerid | The ID of the player to get the target o... | openmultiplayer/web/docs/scripting/functions/GetPlayerTargetPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerTargetPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 411
} | 290 |
---
title: GetPlayers
description: Gets an array variable of the IDs of the current players on the server.
tags: ["player"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets an array variable of the IDs of the current players on the server.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/GetPlayers.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayers.md",
"repo_id": "openmultiplayer",
"token_count": 402
} | 291 |
---
title: GetTimerInterval
description: Gets the interval of a timer.
tags: ["timer"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the interval of a timer.
## Parameters
| Name | Description |
|---------|---------------------------------------------|
| timer... | openmultiplayer/web/docs/scripting/functions/GetTimerInterval.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetTimerInterval.md",
"repo_id": "openmultiplayer",
"token_count": 368
} | 292 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.