language stringclasses 5
values | text stringlengths 15 988k |
|---|---|
JavaScript | class TokenUser {
get createdOstStatus() {
return 'CREATED';
}
get activatingOstStatus() {
return 'ACTIVATING';
}
get activatedOstStatus() {
return 'ACTIVATED';
}
get ostStatuses() {
const oThis = this;
return {
'1': oThis.createdOstStatus,
'2': oThis.activatingOstStatu... |
JavaScript | class RegisterBlock extends Component {
constructor(props){
super(props);
this.state = {
User: {},
usernameState: STATUS.NO_INPUT,
emailState: STATUS.NO_INPUT,
passwordState: STATUS.NO_INPUT,
passwordSuggestState: {
status: STATUS.VALID,
eightCharacters: STATUS.NO_INPUT,
oneUpperCase: S... |
JavaScript | class MatRowHarness extends _MatRowHarnessBase {
constructor() {
super(...arguments);
this._cellHarness = MatCellHarness;
}
/**
* Gets a `HarnessPredicate` that can be used to search for a table row with specific attributes.
* @param options Options for narrowing the search
* ... |
JavaScript | class MatHeaderRowHarness extends _MatRowHarnessBase {
constructor() {
super(...arguments);
this._cellHarness = MatHeaderCellHarness;
}
/**
* Gets a `HarnessPredicate` that can be used to search for
* a table header row with specific attributes.
* @param options Options for na... |
JavaScript | class MatFooterRowHarness extends _MatRowHarnessBase {
constructor() {
super(...arguments);
this._cellHarness = MatFooterCellHarness;
}
/**
* Gets a `HarnessPredicate` that can be used to search for
* a table footer row cell with specific attributes.
* @param options Options f... |
JavaScript | class Cursor {
// DOM elements
DOM = {
// Main element (.cursor)
el: null,
}
// Properties that will change
renderedStyles = {
// With interpolation, we can achieve a smooth animation effect when moving the cursor.
// The "previous" and "current" values are the value... |
JavaScript | class HttpMethod {
/**
* Instance an object
* @param methods array to list all avaiable http methods
* @param checked determines the current selected http methods by user
* @param subPrefix DOM id, needed to access the sub contents from the current method.
*/
constructor(methods, checked, subPrefix) ... |
JavaScript | class ModelSet extends BaseClass {
constructor(iterable) {
this._size = 0;
if(iterable) {
this.addObjects(iterable);
}
}
get size() {
return this._size;
}
/**
Clears the set. This is useful if you want to reuse an existing set
without having to recreate it.
```javascrip... |
JavaScript | class XwInvalidStateError extends Error {
/**
* @constructor
* @param {string} [reason] Reason related to the invalid state
*/
constructor(reason) {
const _reason = xw.defaultable(reason);
super(_formatMessage(_reason));
this.reason = _reason;
}
} |
JavaScript | class ReservedInstances {
/**
* Constructs a new <code>ReservedInstances</code>.
* Describes a Reserved Instance.
* @alias module:model/ReservedInstances
*/
constructor() {
ReservedInstances.initialize(this);
}
/**
* Initializes the fields of this object.
... |
JavaScript | class Terminal {
constructor(selector, words) {
this.wordbank = words;
this.terminal = document.querySelector(selector);
this.prompt = new Prompt('#answers');
this.MAX_TOTAL_CHARS = 12 * 32;
this.MAX_HALF_CHARS = 12 * 16;
}
/**
* Displays the terminal or display... |
JavaScript | class Chart
{
/**
* Constructor.
*
* @param {selection} parent The selected D3 parent element container
* @param {Configuration} configuration The application configuration
*/
constructor(parent, configuration)
{
this._configuration = configuration;
this._... |
JavaScript | class Bridge {
constructor (socket, app) {
this.didAuth = false
this.sessionId = ''
this.checkSession = app.get('checkSession')
this.changeSessionState = app.get('changeSessionState')
this.socket = socket
this.udp = null
socket.on('message', this.clientToGrid.bind(this))
socket.on('... |
JavaScript | class BusinessDashboardParent extends React.Component{
/* -----------------------------------------------------------------------------
Constructor is used for state design, modularized to pass as props
----------------------------------------------------------------------------- */
constructor(props){
super(pro... |
JavaScript | class CoreBadge extends HTMLElement {
/**
* Initialize private fields, shadowRoot and the view
*/
constructor() {
super();
// Initialize all private fields
this._value = this.getAttribute('value') || undefined;
this._max = this.getAttribute('max') || undefined;
this._isDot = this.hasAttr... |
JavaScript | class StatusMessage
{
/**
*
* @param {Integer} pProgress
* @param {String} pMessage
* @constructor
*/
constructor( pProgress, pMessage=""){
this.progress = pProgress;
this.msg = pMessage;
this.extra = null;
Logger.debug('<status message> : NEW : ',pMe... |
JavaScript | class ToStringBuilder {
constructor(object, style, buffer) {
if (((object != null) || object === null) && ((style != null && style instanceof org.openprovenance.apache.commons.lang.builder.ToStringStyle) || style === null) && ((buffer != null && (buffer instan... |
JavaScript | class RestMetaCollection {
/**
* Constructs a new <code>RestMetaCollection</code>.
* @alias module:model/RestMetaCollection
* @class
*/
constructor() {
}
/**
* Constructs a <code>RestMetaCollection</code> from a plain JavaScript objec... |
JavaScript | class RootReference {
constructor(env) {
this.env = env;
this.children = dict();
this.tag = CONSTANT_TAG;
}
get(key) {
// References should in general be identical to one another, so we can usually
// deduplicate them in production. However, in DEBUG we need unique references
// so we can... |
JavaScript | class PropertyReference {
constructor(parentReference, propertyKey, env) {
this.parentReference = parentReference;
this.propertyKey = propertyKey;
this.env = env;
this.children = dict();
this.lastRevision = null;
if (DEBUG) {
env.setTemplatePathDebugContext(this, propertyKey, parentRefe... |
JavaScript | class IterationItemReference {
constructor(parentReference, itemValue, itemKey, env) {
this.parentReference = parentReference;
this.itemValue = itemValue;
this.env = env;
this.tag = createUpdatableTag();
this.children = dict();
if (DEBUG) {
env.setTemplatePathDebugContext(this, debugToS... |
JavaScript | class Recurring {
/**
* Init
* @param {UnzerSimple} unzer Unzer main class
*/
constructor(unzer) {
this._urlpath = '/types';
this._unzer = unzer;
}
/**
* GET recurring state
*
* @link https://docs.unzer.com/reference/api/#get-/v1/types/{methodid}/r... |
JavaScript | class Grid3D extends Grid {
/** Constructor of the Grid3D object.
* @param {GridSize} extents - the size of the grid in each dimension
* @param {boolean[]} [torus = [true,true,true]] - should the borders of
* the grid be linked, so that a cell moving out on the left reappears on
* the right? */
constructor( ... |
JavaScript | class Event {
/**
* Initializes a new Event
*
* @param {Object} config Event configuration object
* @param {String} config.name Event name
* @param {String} [config.discordEventName = ''] Name of discord.js event that triggers this Event
* @param {Function} config.handler Event function
* @param ... |
JavaScript | class CreatePodForm extends Component {
initialState = {
name: "",
description: "",
};
constructor(props) {
super(props);
this.state = this.initialState;
// any method using this keyword must bind
// example: this.method = this.method.bind(this)
}
componentDidMount() {
// Things ... |
JavaScript | class Tab extends Node {
/**
* @param {string} label - text label for the tab
* @param {EnumerationProperty.<PreferencesDialog.<PreferencesTab>} property
* @param {PreferencesDialog.PreferencesTab} value - PreferencesTab shown when this tab is selected
*/
constructor( label, property, value ) {
co... |
JavaScript | class BaseModel {
constructor() {
/** @const the underlying mongoose model used for queries */
this.mongooseModel_ = this.createMongooseModel_()
}
/**
* Returns the model schema. The child class must implement the static schema
* property.
* @return {string} the models schema
*/
getSchema()... |
JavaScript | class State {
/**
* Set page map
* @param {PageMap} pageMap - page map
* @example State.setPageMap(new PageMap());
*/
static setPageMap(pageMap) {
this.pageMap = pageMap;
}
/**
* Set current page by Name
* @param {string} pageName - name of page ot set
* @exa... |
JavaScript | class PieceState {
// creates a new piece with a given color and id
constructor(color, id) {
this._color = color
this._id = id
this._state = State.HOME
this._location = null
this._capturer = null
this.selected = false
}
get color() {
return this._color
}
get id() {
return t... |
JavaScript | class Choice {
constructor (value, index, label, selected, image) {
this.CHOICE_INDEX = index
this.CHOICE_VALUE = String(value)
this.CHOICE_LABEL = label
if (selected) {
this.CHOICE_SELECTED = true
} else {
this.CHOICE_SELECTED = false
}
this.CHOICE_IMAGE = image
}
} |
JavaScript | class PhobosClient extends Client {
/**
* Create a PhobosClient
* @param {object} options Discord.js Client options
*/
constructor (options) {
super(options)
/**
* Configs defined in src/config.js
* @type {object}
*/
this.config = config
/**
* Contains categories that ... |
JavaScript | class FilterSelectionInput extends React.Component {
constructor( props ) {
super( props );
this.state = Object.assign( {}, props, {
isModalOpen: false,
'labelText': 'Filter'
} );
this.onClearButtonClick = this.onClearButtonClick.bind( this );
this.... |
JavaScript | class EtiquetasController {
/**
* @param $uibModal
* @param toastr
* @param {EtiquetasService} EtiquetasService
* @param {ProcesosService} ProcesosService
* @param {ActividadesService} ActividadesService
* @param AppConfig
*
**/
constructor($uibModal, toastr, EtiquetasSe... |
JavaScript | class SeparatorHeader extends Component {
view() {
return <li className="Dropdown-separator TagInject--Utility-Header">{app.translator.trans('flagrow-utility-tag-inject.forum.tags.utility-header')}</li>;
}
} |
JavaScript | class Group{
/**
* Builds a new group.
* @param {string} name - Required parameter. The name of the group.
* @param {string} startDate - Optional parameter. The date when the group was founded. Defaults to "".
* @param {string} endDate - Optional parameter. The date when the group broke apart. Defa... |
JavaScript | class SelectResourcePlugin extends BasePlugin {
constructor(opts) {
super(opts || {});
// frequency for crawling resources
if (this.opts.crawlFrequency) {
this.opts.crawlFrequency = parseInt(this.opts.crawlFrequency, 10);
}
}
// eslint-disable-next-line class-methods-use-this
getPhase() ... |
JavaScript | class ChatService{
constructor(API, UserService){
'ngInject';
this.API = API;
this.UserService = UserService;
}
/**
* getConversations gets conversations involving this user and other users
* @return {promise} promise of data
*/
getConversations(){
return t... |
JavaScript | class BaseFormField extends React.Component {
constructor(props) {
super(props);
this.htmlId = `form-field-${this.props.name}`;
this.state = {
value: props.initial
};
}
validateField() {
let value = this.state.value || "";
if (this.props.required && value.length <= 0) {
throw ... |
JavaScript | class ListItem extends PureComponent {
static propTypes = {
/**
* An optional style to apply to the `li` tag.
*/
style: PropTypes.object,
/**
* An optional className to apply to the `li` tag.
*/
className: PropTypes.string,
/**
* An optional style to apply to the `.md-li... |
JavaScript | class GlobalState {
static initialize(root) {
GlobalState.instance = new GlobalState(root)
}
static set(...args) {
GlobalState.instance.set(...args)
}
constructor(root) {
this.root = root
this.state = clone(this.root.state)
}
/**
* set(k1, k2, k3, v)... |
JavaScript | class Tester extends EventEmitter {
constructor(mod, options) {
super();
this.module = extractDetail(mod);
this.options = options;
this.testOutput = new BufferList();
this.testError = new BufferList();
this.cleanexit = false;
}
async run() {
this.emit('start', this.module.raw);
le... |
JavaScript | class Equation {
constructor (text) {
if (text !== undefined) {
const formulae = text.split('==')
this.formula1 = formulae[0].trim()
this.formula2 = formulae[1].trim()
this.formula1katex = katex.renderToString(this.formula1, {
throwOnError: false
})
this.formula2katex ... |
JavaScript | class AlegoriaSource extends Source {
/**
* @constructor
* @param { Object } source - Configuration object
* @param { string } source.path - Url (path) to the json file.
* @param { string } source.file - Json file containing related calibrations, orientations, textures and dates.
*/
con... |
JavaScript | class InputValidator {
static get PRODUCT_VARIANT_ID_REGEXP() {
return /^([0-9a-z-]+?)-([\d]{1,3})$/;
}
static get CART_ENTRY_ID_REGEXP() {
return /^([0-9a-z-])+$/;
}
constructor(args, errorType) {
/**
* The arguments received by OpenWhisk action. It is used to s... |
JavaScript | class GalleryController {
/**
* function to create Gallery
* @param {object} req
* @param {object} res
* @returns {object} data for created Gallery
*/
static async createGallery(req, res) {
try {
const result = await cloudinary.v2.uploader.upload(req.body.images, {
folder: 'avatars',
});
co... |
JavaScript | class LinkDialog extends Dialog {
constructor(id) {
super(id, 'Link Dialog');
this.form = new Element('form', {
id: `${id}-link-form`,
title: 'Link Form',
})
.appendToElement(this);
this.urlInput = new Element('input', {
type: 'text',
name: `${id}-link-url-input`,
... |
JavaScript | class RootComponent extends React.Component {
render() {
return (
<div>
Hi, Im the root Component!
<button onClick={() => this.props.changeTheme('theme2')}>Change Theme</button>
</div>
)
}
} |
JavaScript | class CosmozMoment extends PolymerElement {
static get is() {
return 'cosmoz-moment';
}
static get observers() {
return [
'localeChanged(locale)'
];
}
static get properties() {
return {
/**
* Locale abbreviation for Moment.js locale
*/
locale: {
type: String,
value: 'en'
}
};... |
JavaScript | class ApplicationPage extends RenderableMixin(ReactiveMixin(EventTarget)) {
/**
* Creates a modal dialog with the error details.
* @param {string} message The message to render
*/
reportCriticalError(message) {
const dialog = document.createElement('arc-alert-dialog');
dialog.message = message;
... |
JavaScript | class WatchExpressionComponent extends _react.default.Component {
constructor(props) {
super(props);
this._onConfirmNewExpression = () => {
const text = this.refs.newExpressionEditor.getText();
this.addExpression(text);
this.refs.newExpressionEditor.setText('');
};
this._onEditorC... |
JavaScript | class VmClusterNetwork extends OkitArtifact {
/*
** Create
*/
constructor (data={}, okitjson={}) {
super(okitjson);
// Configure default values
this.display_name = this.generateDefaultName(okitjson.vm_cluster_networks.length + 1);
this.compartment_id = data.parent_id;
... |
JavaScript | class LoginSuccess extends Packet {
constructor(uuid, username) {
super();
this.uuid = uuid
this.username = username
}
/**
* Function called when encoding
* @param {CustomBuffer} data
*/
encode(data) {
data.writeString(this.uuid)
data.writeString(this.username)
}
... |
JavaScript | class Diamond extends GraphicalElement {
constructor({id, x1, x, y1, y, x2, width, w, y2, height, h, style, preserveAspectRatio} = {}) {
// The arguments validation is done inside the GraphicalElement constructor.
super(...arguments);
}
boundaryX1For(givenY) {
// Using the line equ... |
JavaScript | class Peer extends Scribe {
/**
* Create an instance of {@link Peer}.
* @param {Object} [config] Initialization Vector for this peer.
* @param {Boolean} [config.listen] Whether or not to listen for connections.
* @param {Boolean} [config.upnp] Whether or not to use UPNP for automatic configuration.
* @... |
JavaScript | class Book {
constructor (civilization, title, author, format) {
this.civilization = civilization;
this.title = title;
this.author = author;
this.format = format;
}
} |
JavaScript | class Stats extends React.Component {
constructor() {
super();
this.state = {
dreamGoal: 0,
dreamDonations: 0,
}
}
componentDidMount() {
// functions goes and retreives the information pertaining to the user about dreams they have funded
thi... |
JavaScript | class NativeSpyService extends UIServiceCore {
/**
* My spy service...
*/
constructor(...args) {
super(...args);
this.setTitle("Native JavaScript Spy Service");
this.setState({ spyAgents: [] });
this._persistentSpyAgentCollection = persistentSpyAgentCollection;
this.proxyOn(this._persi... |
JavaScript | class HeatMapLayer extends VectorLayer {
constructor(name, options) {
super();
var _options = options ? options : {};
this.layer = new ol.layer.Heatmap({
source: _options.source,
blur: _options.blur,
radius: _options.radius
});
this.laye... |
JavaScript | class CodeMaker {
constructor() {
/**
* The indentation level of the file.
*/
this.indentation = 4;
this.currIndent = 0;
this.files = new Array();
this.excludes = new Array();
/**
* Formats an block open statement.
*/
... |
JavaScript | class CaptionSrtGeneratorAppliance extends AbstractAppliance {
/**
* Create a CaptionSrtGeneratorAppliance.
*/
constructor(settings = {
includeCounter: true,
}) {
super({
includeCounter: true,
...settings,
})
this.setOriginPosition(0)
}
static getInputTypes = () => [
dataTypes.TEXT.ATOM,
'SE... |
JavaScript | class Parserror {
/**
* Create a new instance of {@link Parserror}.
*
* @param {ParserrorOptions} [options] The options to customize how the class behaves.
* @returns {Parserror}
* @static
*/
static new(options) {
return new Parserror(options);
}
/**
* @param {Partial<ParserrorOptions>... |
JavaScript | class Storage {
/**
*
* @param connection {any} - Layer specifi connection descriptor
* @param namespace {string} - Layer specific namespace(read table, bucket, index, etc)
* @param options {object} - Layer specific extra magic
*/
constructor({connection, namespace, options}) {
}
/**
* Fetch... |
JavaScript | class PokemonForm extends React.Component {
constructor(props) {
super(props);
this.state = {
pokeName: '',
};
this.handlePokeNameChange = this.handlePokeNameChange.bind(this);
this.handleSubmit = this.handleSubmit.bind(this)
}
handlePokeNameChange(e) {
this.setState({ pokeName: e.t... |
JavaScript | class DeleteFavoriteOpt {
constructor() {
this.favorites = this.getAllFavorites();
this.optToDelete = d3.select('#conflateType').property('value');
}
getAllFavorites() {
Hoot.api.getAllUsers();
let currentFavorites = [];
let allFavorites = Hoot.config.users[Hoot.u... |
JavaScript | class Message extends React.Component {
render() {
return (
<div>
<span className="name">Name: {this.props.user}</span>
<span className="messages">Message: {this.props.message}</span>
<span className="time">Time: {this.props.time}</span>
</div>
);
}
} |
JavaScript | class User {
/**
* @static
* @description this function creates a new user
* @param {object} request the request body
* @param {object} response the response body
* @returns response
* @memberof User
*/
static async signUp(request, response) {
const {
first_name,
l... |
JavaScript | class VigenereCipheringMachine {
alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
sq = [];
constructor(type = true) {
this.type = type;
}
generateSquare() {
for (let i = 0; i < this.alpha.length; i++) {
let row = [];
for (let r = i; r < this.alpha.length; r++) {
row.push(this.alpha[r]);
... |
JavaScript | class FsUrlResolver extends url_resolver_1.UrlResolver {
constructor(packageDir,
// If provided, any URL which matches `host` will attempt to resolve
// to a `file` protocol URL regardless of the protocol represented in the
// URL to-be-resolved.
host,
// When attempting to resolve a protocol-... |
JavaScript | class Atlas {
/** CONSTRUCTOR */
constructor(container, options) {
// Debug Mode
this.debug = options.map.debug;
// Atlas Classes Options
this.options = {};
this.options.map = options.map;
this.options.leaflet = options.leaflet;
this.options.tiles = optio... |
JavaScript | class Version extends BaseText{
/**
* Implements input's validations
*
* @param {null|number} at - index used when input has been created as a vector that
* tells which value should be used
* @return {Promise<*>} value held by the input based on the current context (at)
* @protected
*/
_valida... |
JavaScript | class DefaultTheme extends EmberObject {
/**
* Path to theme's components. It's used in the child-themes
*
* @property componentsPath
* @default 'models-table/'
* @type string
*/
componentsPath = 'models-table/';
/**
* Default path to theme's components
*
* @property defaultComponents... |
JavaScript | class Node{
constructor(data){
this.data = data
this.left = null
this.right = null
}
} |
JavaScript | class TreeNode {
constructor() {
/**
* Level of tree
*
* @type {number}
*/
this.level = 0;
/**
* Unique id of node
*
* @type {string}
*/
this.id = "top";
/**
* Header element stored in node
... |
JavaScript | class EllipsoidConverter extends PolygonConverter {
/**
* @inheritDoc
*/
create(feature, geometry, style, context) {
createEllipsoid(feature, geometry, style, context);
return true;
}
} |
JavaScript | class ContainerExecRequestTerminalSize {
/**
* Create a ContainerExecRequestTerminalSize.
* @member {number} [rows] The row size of the terminal
* @member {number} [cols] The column size of the terminal
*/
constructor() {
}
/**
* Defines the metadata of ContainerExecRequestTerminalSize
*
*... |
JavaScript | class LanguageModel {
constructor(options) {
this.enterKey = 'Enter'
this.shiftKey = 'Shift'
this.ok = 'OK'
this.continue = 'Продолжить'
this.skip = 'Пропустить'
this.pressEnter = 'Нажмите :enterKey'
this.multipleChoiceHelpText = 'Выберите несколько ответов'
this.multipleChoiceHelpText... |
JavaScript | class Application {
constructor(server) {
this.server = server;
this.ignore = [];
this.dom = {
chat: $('#chat'),
textarea: $('#message'),
body: $('body')
};
this.filters = [
new BBCodeFilter(),
new UriFilter(),
... |
JavaScript | class Mock {
/**
* @name getUser
* @param {number} id
* @returns {Object} Return an object with user datas (id, userInfos, keyData, todayScore or score)
*/
async getUser(id) {
return USER_MAIN_DATA.find(user => user.id === parseInt(id))
};
/**
* @name getPerformances
... |
JavaScript | class ClockReference {
constructor({ sample_rate }) {
check(sample_rate !== undefined, "Must provide sample_rate as a named argument");
check(Number.isInteger(sample_rate), "sample_rate must be integer");
this.sample_rate = sample_rate;
this.type = this.constructor.name;
}
... |
JavaScript | class ClockedRingBuffer {
constructor(len_seconds, leadin_seconds, clock_reference, port) {
if (leadin_seconds > len_seconds) {
// Note that even getting close is likely to result in failure.
console.error("leadin time must not exceed size");
throw new Error("leadin time must not exceed size");
... |
JavaScript | class TodoActions {
fetch() {
return (dispatch) => {
dispatch();
return API._get().then((res) => this.fetchedTodos(res.data)).catch((res) => this.fetchFailed(res.message));
};
}
add(todo) {
if (!todo || !todo.length) {
return;
}
return (dispatch) => {
return API._post(todo).then( (res) => ... |
JavaScript | class Rankings {
/**
* Crea una instancia de Contests.
* @param {service} httpService - Servicio de conexión Http (Http)
* @param {service} jwtService - Servicio de manejo de Json Web Tokens (Jwt)
*/
constructor (httpService, jwtService) {
this.jwtService = jwtService
this.httpService = httpSer... |
JavaScript | class ChainGateway {
/**
* It generates an ethereum wallet address for user
* @static
* @memberof ChainGateway
* @returns {String} - A unique string containing the user ethereum address
*/
static async createEthWalletAddress(password, apikey) {
const { data } = await axios.post(`${chainGatewayBas... |
JavaScript | class ARCEnvironmentReadEvent extends CustomEvent {
/**
* @return {string} The name of the environment used to initialize this event.
*/
get name() {
return this[nameValue];
}
/**
* @param {string} name The name of the environment
*/
constructor(name) {
super(EventTypes.Model.Environment.... |
JavaScript | class ARCEnvironmentUpdateEvent extends CustomEvent {
/**
* @return {ARCEnvironment} An environment used to initialize this event.
*/
get environment() {
return this[environmentValue];
}
/**
* @param {ARCEnvironment} environment An environment to update.
*/
constructor(environment) {
supe... |
JavaScript | class ARCEnvironmentUpdatedEvent extends Event {
/**
* @return {ARCEntityChangeRecord} Change record
*/
get changeRecord() {
return this[changeRecordValue];
}
/**
* @param {ARCEntityChangeRecord} record Entity change record.
*/
constructor(record) {
super(EventTypes.Model.Environment.Stat... |
JavaScript | class ARCEnvironmentDeleteEvent extends CustomEvent {
/**
* @return {string} The environment id used to initialize the event.
*/
get id() {
return this[environmentIdValue];
}
/**
* @param {string} id The environment id
*/
constructor(id) {
super(EventTypes.Model.Environment.delete, {
... |
JavaScript | class ARCEnvironmentDeletedEvent extends ARCEntityDeletedEvent {
/**
* @param {string} id The id of the deleted environment
* @param {string} rev Updated revision
*/
constructor(id, rev) {
super(EventTypes.Model.Environment.State.delete, id, rev);
}
} |
JavaScript | class ARCEnvironmentListEvent extends ARCEntityListEvent {
/**
* @return {boolean|undefined} When set it ignores other list parameters and returns all results in a single query.
* This also means that the page token is never set.
*/
get readall() {
return this[readallValue];
}
/**
* @param {ARC... |
JavaScript | class ARCEnvironmentCurrentEvent extends CustomEvent {
constructor() {
super(EventTypes.Model.Environment.current, {
bubbles: true,
composed: true,
cancelable: true,
detail: {}
});
}
} |
JavaScript | class ARCEnvironmentSelectEvent extends CustomEvent {
/**
* @param {string=} id The ID of the environment to select. When not set it selects the default environment.
*/
constructor(id) {
super(EventTypes.Model.Environment.select, {
bubbles: true,
composed: true,
cancelable: true,
d... |
JavaScript | class ARCEnvironmentStateSelectEvent extends CustomEvent {
/**
* @param {EnvironmentStateDetail} detail The change record for the environment
*/
constructor(detail) {
super(EventTypes.Model.Environment.State.select, {
bubbles: true,
composed: true,
cancelable: true,
detail,
});... |
JavaScript | class ARCVariableUpdateEvent extends CustomEvent {
/**
* @return {ARCVariable} A variable used to initialize this event.
*/
get variable() {
return this[variableValue];
}
/**
* @param {ARCVariable} variable A variable to update.
*/
constructor(variable) {
super(EventTypes.Model.Variable.u... |
JavaScript | class ARCVariableSetEvent extends CustomEvent {
/**
* @return {string} The variable name used to initialize this event
*/
get name() {
return this[nameValue];
}
/**
* @return {string} The variable value to set
*/
get value() {
return this[variableValue];
}
/**
* @param {string} na... |
JavaScript | class ARCVariableUpdatedEvent extends Event {
/**
* @return {ARCEntityChangeRecord} Change record
*/
get changeRecord() {
return this[changeRecordValue];
}
/**
* @param {ARCEntityChangeRecord} record Entity change record.
*/
constructor(record) {
super(EventTypes.Model.Variable.State.upda... |
JavaScript | class ARCVariableDeleteEvent extends CustomEvent {
/**
* @return {string} The variable id used to initialize the event.
*/
get id() {
return this[variableIdValue];
}
/**
* @param {string} id The variable id
*/
constructor(id) {
super(EventTypes.Model.Variable.delete, {
bubbles: true... |
JavaScript | class ARCVariableDeletedEvent extends ARCEntityDeletedEvent {
/**
* @param {string} id The id of the deleted variable
* @param {string} rev Updated revision
*/
constructor(id, rev) {
super(EventTypes.Model.Variable.State.delete, id, rev);
}
} |
JavaScript | class ARCVariableListEvent extends ARCEntityListEvent {
/**
* @return {string} The name of the environment used to initialize this event.
*/
get name() {
return this[nameValue];
}
/**
* @return {boolean|undefined} When set it ignores other list parameters and returns all results in a single query.... |
JavaScript | class LevelControl extends Control {
constructor(indoorEqual, options = {}) {
const element = document.createElement('div');
element.className = 'level-control ol-unselectable ol-control';
super({
element,
target: options.target,
});
this.indoorEqual = indoorEqual;
this._renderNew... |
JavaScript | class Comments {
constructor(obj) {
if (!obj.comment) {
throw new Error("You must include a comment");
} else if (typeof obj.comment != "string") {
throw new Error("comment must be a string");
} else {
this.comment = obj.comment;
}
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.