text
stringlengths
1
2.83M
id
stringlengths
16
152
metadata
dict
__index_level_0__
int64
0
949
/** * SyntaxHighlighter * http://alexgorbatchev.com/SyntaxHighlighter * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/SyntaxHighlighter/donate.html * * @version * 3.0.83 (Wed, 12 Feb 2014 03:42:24 GMT) * * @copyright * Copyright (C) 2004-2013 Alex Gorbat...
SquareSquash/web/vendor/assets/javascripts/sh/shBrushGroovy.js/0
{ "file_path": "SquareSquash/web/vendor/assets/javascripts/sh/shBrushGroovy.js", "repo_id": "SquareSquash", "token_count": 1107 }
124
/** * SyntaxHighlighter * http://alexgorbatchev.com/SyntaxHighlighter * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/SyntaxHighlighter/donate.html * * @version * 3.0.83 (Wed, 12 Feb 2014 03:42:24 GMT) * * @copyright * Copyright (C) 2004-2013 Alex Gorbat...
SquareSquash/web/vendor/assets/javascripts/sh/shBrushTypeScript.js/0
{ "file_path": "SquareSquash/web/vendor/assets/javascripts/sh/shBrushTypeScript.js", "repo_id": "SquareSquash", "token_count": 663 }
125
**/dist **/build jslib webpack.config.js scripts/optimize.js config.js **/node_modules
bitwarden/web/.eslintignore/0
{ "file_path": "bitwarden/web/.eslintignore", "repo_id": "bitwarden", "token_count": 37 }
126
<div class="form-group"> <label [attr.for]="controlId"> {{ label }} <small *ngIf="isRequired" class="text-muted form-text d-inline" >({{ "required" | i18n }})</small > </label> <select class="form-control" [attr.id]="controlId" [attr.aria-invalid]="controlDir.control.invalid" [fo...
bitwarden/web/bitwarden_license/src/app/organizations/components/select.component.html/0
{ "file_path": "bitwarden/web/bitwarden_license/src/app/organizations/components/select.component.html", "repo_id": "bitwarden", "token_count": 223 }
127
import { Injectable } from "@angular/core"; import { ActivatedRouteSnapshot, CanActivate, Router } from "@angular/router"; import { ProviderService } from "jslib-common/abstractions/provider.service"; import { Permissions } from "jslib-common/enums/permissions"; @Injectable() export class PermissionsGuard implements ...
bitwarden/web/bitwarden_license/src/app/providers/guards/provider-type.guard.ts/0
{ "file_path": "bitwarden/web/bitwarden_license/src/app/providers/guards/provider-type.guard.ts", "repo_id": "bitwarden", "token_count": 339 }
128
import { NgModule } from "@angular/core"; import { RouterModule, Routes } from "@angular/router"; import { AuthGuard } from "jslib-angular/guards/auth.guard"; import { Permissions } from "jslib-common/enums/permissions"; import { FrontendLayoutComponent } from "src/app/layouts/frontend-layout.component"; import { Pro...
bitwarden/web/bitwarden_license/src/app/providers/providers-routing.module.ts/0
{ "file_path": "bitwarden/web/bitwarden_license/src/app/providers/providers-routing.module.ts", "repo_id": "bitwarden", "token_count": 1762 }
129
{ "urls": { "icons": "https://icons.qa.bitwarden.pw", "notifications": "https://notifications.qa.bitwarden.pw" }, "dev": { "proxyApi": "https://api.qa.bitwarden.pw", "proxyIdentity": "https://identity.qa.bitwarden.pw", "proxyEvents": "https://events.qa.bitwarden.pw" } }
bitwarden/web/config/qa.json/0
{ "file_path": "bitwarden/web/config/qa.json", "repo_id": "bitwarden", "token_count": 136 }
130
import { Component } from "@angular/core"; import { ActivatedRoute, Router } from "@angular/router"; import { ApiService } from "jslib-common/abstractions/api.service"; import { I18nService } from "jslib-common/abstractions/i18n.service"; import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.se...
bitwarden/web/src/app/accounts/accept-emergency.component.ts/0
{ "file_path": "bitwarden/web/src/app/accounts/accept-emergency.component.ts", "repo_id": "bitwarden", "token_count": 661 }
131
import { Component } from "@angular/core"; import { RemovePasswordComponent as BaseRemovePasswordComponent } from "jslib-angular/components/remove-password.component"; @Component({ selector: "app-remove-password", templateUrl: "remove-password.component.html", }) export class RemovePasswordComponent extends BaseR...
bitwarden/web/src/app/accounts/remove-password.component.ts/0
{ "file_path": "bitwarden/web/src/app/accounts/remove-password.component.ts", "repo_id": "bitwarden", "token_count": 85 }
132
import { Component, OnInit } from "@angular/core"; import { ActivatedRoute, Router } from "@angular/router"; import { first } from "rxjs/operators"; import { ApiService } from "jslib-common/abstractions/api.service"; import { I18nService } from "jslib-common/abstractions/i18n.service"; import { LogService } from "jsli...
bitwarden/web/src/app/accounts/verify-recover-delete.component.ts/0
{ "file_path": "bitwarden/web/src/app/accounts/verify-recover-delete.component.ts", "repo_id": "bitwarden", "token_count": 710 }
133
import { Injectable } from "@angular/core"; import { ActivatedRouteSnapshot, CanActivate, Router } from "@angular/router"; import { AuthService } from "jslib-common/abstractions/auth.service"; import { AuthenticationStatus } from "jslib-common/enums/authenticationStatus"; @Injectable() export class HomeGuard implemen...
bitwarden/web/src/app/guards/home.guard.ts/0
{ "file_path": "bitwarden/web/src/app/guards/home.guard.ts", "repo_id": "bitwarden", "token_count": 287 }
134
import { ScrollingModule } from "@angular/cdk/scrolling"; import { NgModule } from "@angular/core"; import { LooseComponentsModule } from "../../loose-components.module"; import { SharedModule } from "../../shared.module"; import { EnrollMasterPasswordReset } from "./enroll-master-password-reset.component"; @NgModul...
bitwarden/web/src/app/modules/organizations/users/organization-user.module.ts/0
{ "file_path": "bitwarden/web/src/app/modules/organizations/users/organization-user.module.ts", "repo_id": "bitwarden", "token_count": 149 }
135
<div class="filter-heading"> <button class="toggle-button" [attr.aria-expanded]="!isCollapsed" aria-controls="type-filters" (click)="toggleCollapse()" title="{{ 'toggleCollapse' | i18n }}" > <i class="bwi bwi-fw" aria-hidden="true" [ngClass]="{ 'bwi-angle-right': is...
bitwarden/web/src/app/modules/vault-filter/components/type-filter.component.html/0
{ "file_path": "bitwarden/web/src/app/modules/vault-filter/components/type-filter.component.html", "repo_id": "bitwarden", "token_count": 890 }
136
import { ChangeDetectorRef, Component, NgZone, OnDestroy, OnInit, ViewChild, ViewContainerRef, } from "@angular/core"; import { ActivatedRoute, Router } from "@angular/router"; import { first } from "rxjs/operators"; import { VaultFilter } from "jslib-angular/modules/vault-filter/models/vault-filter.mode...
bitwarden/web/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts/0
{ "file_path": "bitwarden/web/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts", "repo_id": "bitwarden", "token_count": 5041 }
137
import { Component, OnInit, ViewChild, ViewContainerRef } from "@angular/core"; import { ActivatedRoute } from "@angular/router"; import { first } from "rxjs/operators"; import { ModalService } from "jslib-angular/services/modal.service"; import { ApiService } from "jslib-common/abstractions/api.service"; import { Col...
bitwarden/web/src/app/organizations/manage/collections.component.ts/0
{ "file_path": "bitwarden/web/src/app/organizations/manage/collections.component.ts", "repo_id": "bitwarden", "token_count": 2850 }
138
import { ChangeDetectorRef, Component, ComponentFactoryResolver, EventEmitter, Input, Output, ViewChild, ViewContainerRef, } from "@angular/core"; import { ApiService } from "jslib-common/abstractions/api.service"; import { I18nService } from "jslib-common/abstractions/i18n.service"; import { LogServic...
bitwarden/web/src/app/organizations/manage/policy-edit.component.ts/0
{ "file_path": "bitwarden/web/src/app/organizations/manage/policy-edit.component.ts", "repo_id": "bitwarden", "token_count": 1054 }
139
import { Component } from "@angular/core"; import { FormBuilder } from "@angular/forms"; import { I18nService } from "jslib-common/abstractions/i18n.service"; import { PolicyType } from "jslib-common/enums/policyType"; import { BasePolicy, BasePolicyComponent } from "./base-policy.component"; export class PasswordGe...
bitwarden/web/src/app/organizations/policies/password-generator.component.ts/0
{ "file_path": "bitwarden/web/src/app/organizations/policies/password-generator.component.ts", "repo_id": "bitwarden", "token_count": 455 }
140
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate> <div> <div class="row"> <div class="form-group col-6"> <label for="newSeatCount">{{ "subscriptionSeats" | i18n }}</label> <input id="newSeatCount" class="form-control" type="number"...
bitwarden/web/src/app/organizations/settings/adjust-subscription.component.html/0
{ "file_path": "bitwarden/web/src/app/organizations/settings/adjust-subscription.component.html", "repo_id": "bitwarden", "token_count": 1158 }
141
<div class="container page-content"> <div class="row"> <div class="col-3"> <div class="card"> <div class="card-header">{{ "settings" | i18n }}</div> <div class="list-group list-group-flush"> <a routerLink="account" class="list-group-item" routerLinkActive="active"> {{ "...
bitwarden/web/src/app/organizations/settings/settings.component.html/0
{ "file_path": "bitwarden/web/src/app/organizations/settings/settings.component.html", "repo_id": "bitwarden", "token_count": 569 }
142
import { Component } from "@angular/core"; import { ApiService } from "jslib-common/abstractions/api.service"; import { AuditService } from "jslib-common/abstractions/audit.service"; import { CipherService } from "jslib-common/abstractions/cipher.service"; import { CollectionService } from "jslib-common/abstractions/c...
bitwarden/web/src/app/organizations/vault/add-edit.component.ts/0
{ "file_path": "bitwarden/web/src/app/organizations/vault/add-edit.component.ts", "repo_id": "bitwarden", "token_count": 1612 }
143
<a class="tw-border tw-border-solid tw-border-secondary-300 tw-rounded tw-overflow-hidden tw-h-full tw-w-72 tw-block !tw-text-main hover:tw-no-underline hover:tw-scale-105 tw-transition-all focus:tw-outline-none focus:tw-ring focus:tw-ring-offset-2 focus:tw-ring-primary-700" [routerLink]="route" (click)="click()"...
bitwarden/web/src/app/reports/report-card.component.html/0
{ "file_path": "bitwarden/web/src/app/reports/report-card.component.html", "repo_id": "bitwarden", "token_count": 445 }
144
import { DatePipe } from "@angular/common"; import { Component } from "@angular/core"; import { AddEditComponent as BaseAddEditComponent } from "jslib-angular/components/send/add-edit.component"; import { EnvironmentService } from "jslib-common/abstractions/environment.service"; import { I18nService } from "jslib-comm...
bitwarden/web/src/app/send/add-edit.component.ts/0
{ "file_path": "bitwarden/web/src/app/send/add-edit.component.ts", "repo_id": "bitwarden", "token_count": 620 }
145
import { Component, EventEmitter, Input, Output, ViewChild } from "@angular/core"; import { ApiService } from "jslib-common/abstractions/api.service"; import { I18nService } from "jslib-common/abstractions/i18n.service"; import { LogService } from "jslib-common/abstractions/log.service"; import { PlatformUtilsService ...
bitwarden/web/src/app/settings/adjust-payment.component.ts/0
{ "file_path": "bitwarden/web/src/app/settings/adjust-payment.component.ts", "repo_id": "bitwarden", "token_count": 1100 }
146
import { Component } from "@angular/core"; import { ApiService } from "jslib-common/abstractions/api.service"; import { I18nService } from "jslib-common/abstractions/i18n.service"; import { LogService } from "jslib-common/abstractions/log.service"; import { MessagingService } from "jslib-common/abstractions/messaging....
bitwarden/web/src/app/settings/deauthorize-sessions.component.ts/0
{ "file_path": "bitwarden/web/src/app/settings/deauthorize-sessions.component.ts", "repo_id": "bitwarden", "token_count": 548 }
147
import { Component } from "@angular/core"; import { AuditService } from "jslib-common/abstractions/audit.service"; import { CipherService } from "jslib-common/abstractions/cipher.service"; import { CollectionService } from "jslib-common/abstractions/collection.service"; import { EventService } from "jslib-common/abstr...
bitwarden/web/src/app/settings/emergency-add-edit.component.ts/0
{ "file_path": "bitwarden/web/src/app/settings/emergency-add-edit.component.ts", "repo_id": "bitwarden", "token_count": 874 }
148
import { Component, OnInit, ViewChild, ViewContainerRef } from "@angular/core"; import { ModalService } from "jslib-angular/services/modal.service"; import { ApiService } from "jslib-common/abstractions/api.service"; import { KeyConnectorService } from "jslib-common/abstractions/keyConnector.service"; import { StateSe...
bitwarden/web/src/app/settings/security-keys.component.ts/0
{ "file_path": "bitwarden/web/src/app/settings/security-keys.component.ts", "repo_id": "bitwarden", "token_count": 804 }
149
import { Component, OnDestroy, OnInit } from "@angular/core"; import { ApiService } from "jslib-common/abstractions/api.service"; import { I18nService } from "jslib-common/abstractions/i18n.service"; import { LogService } from "jslib-common/abstractions/log.service"; import { PlatformUtilsService } from "jslib-common/...
bitwarden/web/src/app/settings/two-factor-authenticator.component.ts/0
{ "file_path": "bitwarden/web/src/app/settings/two-factor-authenticator.component.ts", "repo_id": "bitwarden", "token_count": 1076 }
150
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="updateEncKeyTitle"> <div class="modal-dialog modal-dialog-scrollable" role="document"> <form class="modal-content" #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate > <div class...
bitwarden/web/src/app/settings/update-key.component.html/0
{ "file_path": "bitwarden/web/src/app/settings/update-key.component.html", "repo_id": "bitwarden", "token_count": 958 }
151
<div class="page-header"> <h1>{{ "importData" | i18n }}</h1> </div> <app-callout type="info" *ngIf="importBlockedByPolicy"> {{ "personalOwnershipPolicyInEffectImports" | i18n }} </app-callout> <form #form (ngSubmit)="submit()" ngNativeValidate> <div class="row"> <div class="col-6"> <div class="form-grou...
bitwarden/web/src/app/tools/import.component.html/0
{ "file_path": "bitwarden/web/src/app/tools/import.component.html", "repo_id": "bitwarden", "token_count": 6033 }
152
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="moveSelectedTitle"> <div class="modal-dialog modal-dialog-scrollable modal-sm" role="document"> <form class="modal-content" #form (ngSubmit)="submit()" [appApiAction]="formPromise"> <div class="modal-header"> <h2 class="modal-t...
bitwarden/web/src/app/vault/bulk-move.component.html/0
{ "file_path": "bitwarden/web/src/app/vault/bulk-move.component.html", "repo_id": "bitwarden", "token_count": 729 }
153
<!DOCTYPE html> <html class="theme_light"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="HandheldFriendly" content="true...
bitwarden/web/src/connectors/captcha-mobile.html/0
{ "file_path": "bitwarden/web/src/connectors/captcha-mobile.html", "repo_id": "bitwarden", "token_count": 323 }
154
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Bitwarden WebAuthn Connector</title> </head> <body style="background: transparent"> <picture> <source srcset="../images/u2fkey.avif" type="image/avif" /> <source srcset="../images/u2fkey.webp" type="image/webp" /> <img sr...
bitwarden/web/src/connectors/webauthn.html/0
{ "file_path": "bitwarden/web/src/connectors/webauthn.html", "repo_id": "bitwarden", "token_count": 227 }
155
{ "pageTitle": { "message": "$APP_NAME$ veb anbarı", "description": "The title of the website in the browser window.", "placeholders": { "app_name": { "content": "$1", "example": "Bitwarden" } } }, "whatTypeOfItem": { "message": "Bu elementin növü nədir?" }, "na...
bitwarden/web/src/locales/az/messages.json/0
{ "file_path": "bitwarden/web/src/locales/az/messages.json", "repo_id": "bitwarden", "token_count": 78715 }
156
{ "pageTitle": { "message": "$APP_NAME$-verkkoholvi", "description": "The title of the website in the browser window.", "placeholders": { "app_name": { "content": "$1", "example": "Bitwarden" } } }, "whatTypeOfItem": { "message": "Minkä tyyppinen kohde tämä on?" }...
bitwarden/web/src/locales/fi/messages.json/0
{ "file_path": "bitwarden/web/src/locales/fi/messages.json", "repo_id": "bitwarden", "token_count": 65688 }
157
{ "pageTitle": { "message": "$APP_NAME$ netthvelv", "description": "The title of the website in the browser window.", "placeholders": { "app_name": { "content": "$1", "example": "Bitwarden" } } }, "whatTypeOfItem": { "message": "Hvilken type gjenstand er dette?" }...
bitwarden/web/src/locales/nb/messages.json/0
{ "file_path": "bitwarden/web/src/locales/nb/messages.json", "repo_id": "bitwarden", "token_count": 61256 }
158
{ "pageTitle": { "message": "$APP_NAME$ 网页密码库", "description": "The title of the website in the browser window.", "placeholders": { "app_name": { "content": "$1", "example": "Bitwarden" } } }, "whatTypeOfItem": { "message": "这是什么类型的项目?" }, "name": { "message...
bitwarden/web/src/locales/zh_CN/messages.json/0
{ "file_path": "bitwarden/web/src/locales/zh_CN/messages.json", "repo_id": "bitwarden", "token_count": 74145 }
159
@import "../../jslib/angular/src/scss/webfonts.css"; @import "./variables"; @import "../../jslib/angular/src/scss/bwicons/styles/style.scss"; @import "../../jslib/angular/src/scss/icons.scss"; @import "@angular/cdk/overlay-prebuilt.css"; //@import "~bootstrap/scss/bootstrap"; @import "~bootstrap/scss/_functions"; @imp...
bitwarden/web/src/scss/styles.scss/0
{ "file_path": "bitwarden/web/src/scss/styles.scss", "repo_id": "bitwarden", "token_count": 750 }
160
/* eslint-disable no-undef, @typescript-eslint/no-var-requires */ const config = require("./jslib/components/tailwind.config.base"); module.exports = config;
bitwarden/web/tailwind.config.js/0
{ "file_path": "bitwarden/web/tailwind.config.js", "repo_id": "bitwarden", "token_count": 58 }
161
package com.aitongyi.web.back.conf; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.PropertySource; import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; import org.springframe...
chwshuang/web/back/src/main/java/com/aitongyi/web/back/conf/BackConfig.java/0
{ "file_path": "chwshuang/web/back/src/main/java/com/aitongyi/web/back/conf/BackConfig.java", "repo_id": "chwshuang", "token_count": 222 }
162
package com.aitongyi.web.cache.conf; /** * Created by hushuang on 16/8/18. */ import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; impor...
chwshuang/web/cache/src/main/java/com/aitongyi/web/cache/conf/CacheConfig.java/0
{ "file_path": "chwshuang/web/cache/src/main/java/com/aitongyi/web/cache/conf/CacheConfig.java", "repo_id": "chwshuang", "token_count": 864 }
163
package web import ( "log" "os" ) // PanicReporter can receive panics that happen when serving a request and report them to a log of some sort. type PanicReporter interface { // Panic is called with the URL of the request, the result of calling recover, and the stack. Panic(url string, err interface{}, stack stri...
gocraft/web/panic_handler.go/0
{ "file_path": "gocraft/web/panic_handler.go", "repo_id": "gocraft", "token_count": 301 }
164
/coverage/ /packages/*/coverage /packages/test-runner-mocha/*.js /packages/test-runner-mocha/*.d.ts /packages/config-loader/ /packages/*/test/**/fixtures /packages/*/test/**/snapshots /packages/dev-server-rollup/test/browser/**/* /integration/test-runner/tests/*/browser-tests /packages/dev-server-storybook/storybook-st...
modernweb-dev/web/.eslintignore/0
{ "file_path": "modernweb-dev/web/.eslintignore", "repo_id": "modernweb-dev", "token_count": 180 }
165
[ { "id": 438866, "relativePathToArticle": "./docs/blog/introducing-modern-web/index.md" } ]
modernweb-dev/web/dev-to-git.json/0
{ "file_path": "modernweb-dev/web/dev-to-git.json", "repo_id": "modernweb-dev", "token_count": 48 }
166
html { --page-background: white; --footer-background: rgba(0, 0, 0, 0.1); --primary-color: #235f8a; --primary-color-lighter: #449ad7; --primary-color-darker: #1a5285; --primary-color-accent: #cee5f6; --contrast-color-light: #fff; --contrast-color-dark: #1d3557; --primary-text-color: #2c3e50; --text-...
modernweb-dev/web/docs/_assets/style.css/0
{ "file_path": "modernweb-dev/web/docs/_assets/style.css", "repo_id": "modernweb-dev", "token_count": 3074 }
167
<?xml version="1.0" encoding="utf-8"?> <browserconfig> <msapplication> <tile> <square150x150logo src="/mstile-150x150.png"/> <TileColor>#1d3557</TileColor> </tile> </msapplication> </browserconfig>
modernweb-dev/web/docs/browserconfig.xml/0
{ "file_path": "modernweb-dev/web/docs/browserconfig.xml", "repo_id": "modernweb-dev", "token_count": 120 }
168
# Dev Server >> Plugins >> Hot Module Replacement ||7 Plugin for introducing HMR (hot module replacement) support. Modules can be written to consume the provided HMR API at development time, allowing for them to update without reloading the page. ## Implementations > This plugin only implements the basics of HMR, y...
modernweb-dev/web/docs/docs/dev-server/plugins/hmr.md/0
{ "file_path": "modernweb-dev/web/docs/docs/dev-server/plugins/hmr.md", "repo_id": "modernweb-dev", "token_count": 1450 }
169
# Storybook Builder >> Migration to Storybook 7 ||4 This guide explains how to migrate from [`@web/dev-server-storybook` plugin](../dev-server/plugins/storybook.md) (that used opinionated Storybook 6 bundle `@web/storybook-prebuilt`) to Storybook 7 and new `@web/storybook-builder`. Most of the [official migration gui...
modernweb-dev/web/docs/docs/storybook-builder/migration-to-storybook-7.md/0
{ "file_path": "modernweb-dev/web/docs/docs/storybook-builder/migration-to-storybook-7.md", "repo_id": "modernweb-dev", "token_count": 1274 }
170
# Test Runner >> Plugins ||7 The test runner uses `@web/dev-server` to your test files to the browser. The dev server has many configuration options, a plugin system to do code transformations, and middleware to change the server's behavior. We recommend reading these pages: - [Plugins](../dev-server/plugins/overvie...
modernweb-dev/web/docs/docs/test-runner/plugins.md/0
{ "file_path": "modernweb-dev/web/docs/docs/test-runner/plugins.md", "repo_id": "modernweb-dev", "token_count": 157 }
171
# Test Runner >> Writing Tests >> Mocking ||50 ## Mocking functions For stubbing and mocking functions, we recommend [sinon](https://www.npmjs.com/package/sinon). Sinon ships an es module, you can import it in your tests like this: ```js import { stub, spy, useFakeTimers } from 'sinon'; ``` ## Mocking es modules ...
modernweb-dev/web/docs/docs/test-runner/writing-tests/mocking.md/0
{ "file_path": "modernweb-dev/web/docs/docs/test-runner/writing-tests/mocking.md", "repo_id": "modernweb-dev", "token_count": 1256 }
172
--- eleventyNavigation: key: Guides order: 10 --- # Learning Modern Web In this section, we help you become confident in building for the modern web. ## Going Buildless Modern browsers have come a long way, and today are a powerful platform for building websites and applications. Our goal is to work with what's...
modernweb-dev/web/docs/guides/index.md/0
{ "file_path": "modernweb-dev/web/docs/guides/index.md", "repo_id": "modernweb-dev", "token_count": 412 }
173
import { expect } from '../../../../../node_modules/@esm-bundle/chai/esm/chai.js'; describe('basic test', () => { it('works', () => { expect(true).to.equal(true); }); });
modernweb-dev/web/integration/test-runner/tests/basic/browser-tests/basic.test.js/0
{ "file_path": "modernweb-dev/web/integration/test-runner/tests/basic/browser-tests/basic.test.js", "repo_id": "modernweb-dev", "token_count": 71 }
174
setTimeout(() => { window.location.href = 'https://www.example.org/'; }, 100); it('x', async function test() { this.timeout(20000); await new Promise(r => setTimeout(r, 10000)); });
modernweb-dev/web/integration/test-runner/tests/location-change/browser-tests/fail-location-href.test.js/0
{ "file_path": "modernweb-dev/web/integration/test-runner/tests/location-change/browser-tests/fail-location-href.test.js", "repo_id": "modernweb-dev", "token_count": 66 }
175
import { expect } from '../../../../../node_modules/@esm-bundle/chai/esm/chai.js'; it('string diff', () => { expect('foo').to.equal('bar'); });
modernweb-dev/web/integration/test-runner/tests/test-failure/browser-tests/fail-string-diff.test.js/0
{ "file_path": "modernweb-dev/web/integration/test-runner/tests/test-failure/browser-tests/fail-string-diff.test.js", "repo_id": "modernweb-dev", "token_count": 56 }
176
/* eslint-disable no-var */ var KEY_WTR_TYPE = '__WTR_TYPE__'; var KEY_CONSTRUCTOR_NAME = '__WTR_CONSTRUCTOR_NAME__'; /* eslint-disable @typescript-eslint/ban-types */ function catchFallback<T>(fn: (...args: any[]) => T, fallback = null) { try { return fn(); } catch { return fallback; } } function seria...
modernweb-dev/web/packages/browser-logs/src/serialize.ts/0
{ "file_path": "modernweb-dev/web/packages/browser-logs/src/serialize.ts", "repo_id": "modernweb-dev", "token_count": 1262 }
177
module.exports = { foo: 'bar' };
modernweb-dev/web/packages/config-loader/test/fixtures/package-cjs/commonjs-in-.cjs/my-project.config.cjs/0
{ "file_path": "modernweb-dev/web/packages/config-loader/test/fixtures/package-cjs/commonjs-in-.cjs/my-project.config.cjs", "repo_id": "modernweb-dev", "token_count": 13 }
178
const open = require('open'); const { DevServer } = require('../../dist/index'); const server = new DevServer( { port: 8080, rootDir: process.cwd(), plugins: [ { name: 'import-asset', resolveImport({ source }) { if (source.endsWith('.png')) { return `${source}?...
modernweb-dev/web/packages/dev-server-core/demo/import-asset/start-server.js/0
{ "file_path": "modernweb-dev/web/packages/dev-server-core/demo/import-asset/start-server.js", "repo_id": "modernweb-dev", "token_count": 410 }
179
import { Middleware } from 'koa'; /** * Creates middleware which strips a base path from each request */ export function basePathMiddleware(basePath: string): Middleware { const pathToStrip = basePath.endsWith('/') ? basePath.substring(0, basePath.length - 1) : basePath; return (ctx, next) => { if (...
modernweb-dev/web/packages/dev-server-core/src/middleware/basePathMiddleware.ts/0
{ "file_path": "modernweb-dev/web/packages/dev-server-core/src/middleware/basePathMiddleware.ts", "repo_id": "modernweb-dev", "token_count": 162 }
180
import { Middleware } from 'koa'; import koaEtag from 'koa-etag'; import { FSWatcher } from 'chokidar'; import { DevServerCoreConfig } from './DevServerCoreConfig.js'; import { basePathMiddleware } from '../middleware/basePathMiddleware.js'; import { etagCacheMiddleware } from '../middleware/etagCacheMiddleware.js'; i...
modernweb-dev/web/packages/dev-server-core/src/server/createMiddleware.ts/0
{ "file_path": "modernweb-dev/web/packages/dev-server-core/src/server/createMiddleware.ts", "repo_id": "modernweb-dev", "token_count": 810 }
181
import { message } from 'my-module
modernweb-dev/web/packages/dev-server-core/test/fixtures/basic/src/import-syntax-error.js/0
{ "file_path": "modernweb-dev/web/packages/dev-server-core/test/fixtures/basic/src/import-syntax-error.js", "repo_id": "modernweb-dev", "token_count": 10 }
182
import { expect } from 'chai'; import WebSocket from 'ws'; import { NAME_WEB_SOCKET_API } from '../../src/web-sockets/WebSocketsManager.js'; import { createTestServer } from '../helpers.js'; function waitFor(fn: (resolve: () => void) => void, msg: string) { return new Promise<void>((resolve, reject) => { const ...
modernweb-dev/web/packages/dev-server-core/test/web-sockets/WebSocketsManager.test.ts/0
{ "file_path": "modernweb-dev/web/packages/dev-server-core/test/web-sockets/WebSocketsManager.test.ts", "repo_id": "modernweb-dev", "token_count": 2597 }
183
{ "name": "@web/dev-server-esbuild", "version": "1.0.1", "publishConfig": { "access": "public" }, "description": "Plugin for using esbuild in @web/dev-server", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/modernweb-dev/web.git", "directory": "packages/dev-ser...
modernweb-dev/web/packages/dev-server-esbuild/package.json/0
{ "file_path": "modernweb-dev/web/packages/dev-server-esbuild/package.json", "repo_id": "modernweb-dev", "token_count": 784 }
184
{ "compilerOptions": { "experimentalDecorators": true } }
modernweb-dev/web/packages/dev-server-esbuild/test/fixture/tsconfig-with-experimental-decorators.json/0
{ "file_path": "modernweb-dev/web/packages/dev-server-esbuild/test/fixture/tsconfig-with-experimental-decorators.json", "repo_id": "modernweb-dev", "token_count": 27 }
185
import { html } from 'lit-html'; import { BaseElement } from './BaseElement.js'; import './todo-item.js'; class TodoList extends BaseElement { constructor() { super(); this._items = [ { message: 'Do A', checked: true }, { message: 'Do B', checked: false }, { message: 'Do C', checked: true }...
modernweb-dev/web/packages/dev-server-hmr/demo/lit-html/src/todo-list.js/0
{ "file_path": "modernweb-dev/web/packages/dev-server-hmr/demo/lit-html/src/todo-list.js", "repo_id": "modernweb-dev", "token_count": 608 }
186
# @web/dev-server-import-maps ## 0.2.0 ### Minor Changes - c185cbaa: Set minimum node version to 18 ### Patch Changes - Updated dependencies [c185cbaa] - @web/dev-server-core@0.7.0 - @web/parse5-utils@2.1.0 ## 0.1.3 ### Patch Changes - 640ba85f: added types for main entry point - Updated dependencies [640ba...
modernweb-dev/web/packages/dev-server-import-maps/CHANGELOG.md/0
{ "file_path": "modernweb-dev/web/packages/dev-server-import-maps/CHANGELOG.md", "repo_id": "modernweb-dev", "token_count": 691 }
187
import { createTestServer, expectNotIncludes } from '@web/dev-server-core/test-helpers'; import { fetchText, expectIncludes, virtualFilesPlugin } from '@web/dev-server-core/test-helpers'; import { importMapsPlugin } from '../src/importMapsPlugin.js'; it('can inject an import map into any page', async () => { const ...
modernweb-dev/web/packages/dev-server-import-maps/test/injection.test.ts/0
{ "file_path": "modernweb-dev/web/packages/dev-server-import-maps/test/injection.test.ts", "repo_id": "modernweb-dev", "token_count": 2595 }
188
/* eslint-disable no-console */ import { resolveUserAgent, ResolvedUserAgent } from 'browserslist-useragent'; import browserslist from 'browserslist'; import * as caniuse from 'caniuse-api'; import { Logger, Context } from '@web/dev-server-core'; /** * We compile to es modules when the browser supports module scripts...
modernweb-dev/web/packages/dev-server-legacy/src/isLegacyBrowser.ts/0
{ "file_path": "modernweb-dev/web/packages/dev-server-legacy/src/isLegacyBrowser.ts", "repo_id": "modernweb-dev", "token_count": 1027 }
189
{ "name": "@web/dev-server-rollup", "version": "0.6.1", "publishConfig": { "access": "public" }, "description": "Use rollup plugins in @web/dev-server", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/modernweb-dev/web.git", "directory": "packages/dev-server-rol...
modernweb-dev/web/packages/dev-server-rollup/package.json/0
{ "file_path": "modernweb-dev/web/packages/dev-server-rollup/package.json", "repo_id": "modernweb-dev", "token_count": 905 }
190
import a from './a.js'; export default `not bundled ${a}`;
modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/bundle-basic/not-bundled.js/0
{ "file_path": "modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/bundle-basic/not-bundled.js", "repo_id": "modernweb-dev", "token_count": 22 }
191
const { namedFoo, namedBar } = require('./named-exports'); module.exports.requiredNamedFoo = namedFoo; module.exports.requiredNamedBar = namedBar;
modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/commonjs/modules/require-named.js/0
{ "file_path": "modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/commonjs/modules/require-named.js", "repo_id": "modernweb-dev", "token_count": 51 }
192
import rollupCommonjs from '@rollup/plugin-commonjs'; import { runTests } from '@web/test-runner-core/test-helpers'; import { resolve } from 'path'; import { chromeLauncher } from '@web/test-runner-chrome'; import * as path from 'path'; import { createTestServer, fetchText, expectIncludes } from '../test-helpers.js'; ...
modernweb-dev/web/packages/dev-server-rollup/test/node/plugins/commonjs.test.ts/0
{ "file_path": "modernweb-dev/web/packages/dev-server-rollup/test/node/plugins/commonjs.test.ts", "repo_id": "modernweb-dev", "token_count": 2788 }
193
#!/usr/bin/env node import commandLineArgs from 'command-line-args'; import path from 'path'; import { build } from './build.js'; async function main() { const args = commandLineArgs([ { name: 'config-dir', alias: 'c', type: String, defaultValue: './.storybook', }, { name: '...
modernweb-dev/web/packages/dev-server-storybook/src/build/cli.ts/0
{ "file_path": "modernweb-dev/web/packages/dev-server-storybook/src/build/cli.ts", "repo_id": "modernweb-dev", "token_count": 295 }
194
import globby from 'globby'; import path from 'path'; import { createBrowserImport, createError } from '../utils.js'; export async function findStories( rootDir: string, mainJsPath: string, // eslint-disable-next-line @typescript-eslint/ban-types stories: string[] | Function, ) { const mainJsDir = path.dirn...
modernweb-dev/web/packages/dev-server-storybook/src/shared/stories/findStories.ts/0
{ "file_path": "modernweb-dev/web/packages/dev-server-storybook/src/shared/stories/findStories.ts", "repo_id": "modernweb-dev", "token_count": 299 }
195
import { fileURLToPath } from 'url'; import { resolve } from 'path'; export default { rootDir: resolve(fileURLToPath(import.meta.url), '..', '..'), http2: true, sslKey: './demo/http2/certs/.self-signed-dev-server-ssl.key', sslCert: './demo/http2/certs/.self-signed-dev-server-ssl.cert', };
modernweb-dev/web/packages/dev-server/demo/http2/config.mjs/0
{ "file_path": "modernweb-dev/web/packages/dev-server/demo/http2/config.mjs", "repo_id": "modernweb-dev", "token_count": 117 }
196
<html> <body> <img width="100" src="/demo/logo.png" /> <h1>Plugin serve demo</h1> <div id="test"></div> <script type="module"> console.log('hello world'); window.__tests = { moduleLoaded: true, }; document.getElementById('test').innerHTML = `<pre>${JSON.stringify( ...
modernweb-dev/web/packages/dev-server/demo/plugin-serve/virtual-files/index.html/0
{ "file_path": "modernweb-dev/web/packages/dev-server/demo/plugin-serve/virtual-files/index.html", "repo_id": "modernweb-dev", "token_count": 202 }
197
{ "name": "@web/dev-server", "version": "0.4.3", "publishConfig": { "access": "public" }, "description": "Dev server for web applications", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/modernweb-dev/web.git", "directory": "packages/dev-server" }, "author"...
modernweb-dev/web/packages/dev-server/package.json/0
{ "file_path": "modernweb-dev/web/packages/dev-server/package.json", "repo_id": "modernweb-dev", "token_count": 1089 }
198
import { DevServer } from '@web/dev-server-core'; import { DevServerConfig } from './config/DevServerConfig.js'; import { mergeConfigs } from './config/mergeConfigs.js'; import { parseConfig } from './config/parseConfig.js'; import { readCliArgs } from './config/readCliArgs.js'; import { readFileConfig } from './config...
modernweb-dev/web/packages/dev-server/src/startDevServer.ts/0
{ "file_path": "modernweb-dev/web/packages/dev-server/src/startDevServer.ts", "repo_id": "modernweb-dev", "token_count": 1026 }
199
import { http } from 'msw'; const SUPPORTED_METHODS = ['get', 'post', 'put', 'patch', 'delete', 'options', 'head']; /** * Mock the given mocked routes using a Service Worker. * * @param {import('msw/node').SetupServer | import('msw/browser').SetupWorker} system The Service Worker or Server Instance * @param {bo...
modernweb-dev/web/packages/mocks/registerMockRoutes.js/0
{ "file_path": "modernweb-dev/web/packages/mocks/registerMockRoutes.js", "repo_id": "modernweb-dev", "token_count": 606 }
200
import cjsEntrypoint from './src/index.js'; const { createDocument, createDocumentFragment, createElement, createScript, createCommentNode, appendChild, insertBefore, setTemplateContent, getTemplateContent, setDocumentType, setDocumentMode, getDocumentMode, detachNode, insertText, insertT...
modernweb-dev/web/packages/parse5-utils/index.mjs/0
{ "file_path": "modernweb-dev/web/packages/parse5-utils/index.mjs", "repo_id": "modernweb-dev", "token_count": 621 }
201
import path from 'path'; import { expect } from 'chai'; import { PolyfillsLoaderConfig, PolyfillFile } from '../src/types.js'; import { createPolyfillsData } from '../src/createPolyfillsData.js'; import { noModuleSupportTest, fileTypes } from '../src/utils.js'; function cleanupPolyfill(polyfill: PolyfillFile) { if ...
modernweb-dev/web/packages/polyfills-loader/test/createPolyfillsData.test.ts/0
{ "file_path": "modernweb-dev/web/packages/polyfills-loader/test/createPolyfillsData.test.ts", "repo_id": "modernweb-dev", "token_count": 4637 }
202
# @web/rollup-plugin-copy ## 0.5.1 ### Patch Changes - b6d8bcf2: Update the `glob` dependency ## 0.5.0 ### Minor Changes - c185cbaa: Set minimum node version to 18 ## 0.4.1 ### Patch Changes - 640ba85f: added types for main entry point ## 0.4.0 ### Minor Changes - febd9d9d: Set node 16 as the minimum versio...
modernweb-dev/web/packages/rollup-plugin-copy/CHANGELOG.md/0
{ "file_path": "modernweb-dev/web/packages/rollup-plugin-copy/CHANGELOG.md", "repo_id": "modernweb-dev", "token_count": 361 }
203
const path = require('path'); const { expect } = require('chai'); const { listFiles } = require('../src/listFiles.js'); describe('listFiles', () => { it('gives a list of files', async () => { const files = await listFiles('*.svg', path.resolve(__dirname, './fixture/')); expect(files.length).to.equal(2); ...
modernweb-dev/web/packages/rollup-plugin-copy/test/listFiles.test.js/0
{ "file_path": "modernweb-dev/web/packages/rollup-plugin-copy/test/listFiles.test.js", "repo_id": "modernweb-dev", "token_count": 487 }
204
import fs from 'fs'; import path from 'path'; import { globSync, GlobOptionsWithFileTypesFalse } from 'glob'; import { createError } from '../utils.js'; import { RollupPluginHTMLOptions } from '../RollupPluginHTMLOptions.js'; import { InputData } from './InputData.js'; import { normalizeInputOptions } from './normaliz...
modernweb-dev/web/packages/rollup-plugin-html/src/input/getInputData.ts/0
{ "file_path": "modernweb-dev/web/packages/rollup-plugin-html/src/input/getInputData.ts", "repo_id": "modernweb-dev", "token_count": 1357 }
205
:root { color: y; }
modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/assets/foo/bar/y.css/0
{ "file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/assets/foo/bar/y.css", "repo_id": "modernweb-dev", "token_count": 12 }
206
#a1 { background-image: url('image-a.png'); } #a2 { background-image: url('image-a.svg'); } #d1 { background-image: url('./image-d.png'); } #d2 { background-image: url('./image-d.svg'); }
modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/assets/styles-with-referenced-assets.css/0
{ "file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/assets/styles-with-referenced-assets.css", "repo_id": "modernweb-dev", "token_count": 93 }
207
<html> <body> <p>Foo</p> <script type="module" src="./foo.js"></script> </body> </html>
modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/basic/src/index.html/0
{ "file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/basic/src/index.html", "repo_id": "modernweb-dev", "token_count": 50 }
208
<h1>hello world</h1> <script type="module" src="./entrypoint-a.js"></script> <script type="module" src="./entrypoint-b.js"></script>
modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/rollup-plugin-html/index.html/0
{ "file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/rollup-plugin-html/index.html", "repo_id": "modernweb-dev", "token_count": 50 }
209
<h1>hello world</h1> <script type="module" src="./entrypoint-a.js" keep-this-attribute></script> <script type="module" src="./entrypoint-b.js"></script>
modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/rollup-plugin-html/retain-attributes.html/0
{ "file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/rollup-plugin-html/retain-attributes.html", "repo_id": "modernweb-dev", "token_count": 57 }
210
/* eslint-disable @typescript-eslint/ban-ts-comment */ // @ts-nocheck 'use strict'; const fs = require('fs'); const path = require('path'); const { createFilter } = require('@rollup/pluginutils'); const { asyncWalk } = require('estree-walker'); const MagicString = require('magic-string'); const { dynamicImportToGlob...
modernweb-dev/web/packages/rollup-plugin-import-meta-assets/src/rollup-plugin-import-meta-assets.js/0
{ "file_path": "modernweb-dev/web/packages/rollup-plugin-import-meta-assets/src/rollup-plugin-import-meta-assets.js", "repo_id": "modernweb-dev", "token_count": 3207 }
211
export const nameFour = 'four-name'; export const imageFour = new URL('../../../../four.svg', import.meta.url).href;
modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/fixtures/one/two/three/four/four.js/0
{ "file_path": "modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/fixtures/one/two/three/four/four.js", "repo_id": "modernweb-dev", "token_count": 37 }
212
# rollup-plugin-workbox ## 8.1.0 ### Minor Changes - 8218a0a5: Update ESBuild to latest version ## 8.0.2 ### Patch Changes - 640ba85f: added types for main entry point ## 8.0.1 ### Patch Changes - 9ae9c2e7: fix: generate sw arg ## 8.0.0 ### Major Changes - f7927b81: feat: update workbox v7 - Update workb...
modernweb-dev/web/packages/rollup-plugin-workbox/CHANGELOG.md/0
{ "file_path": "modernweb-dev/web/packages/rollup-plugin-workbox/CHANGELOG.md", "repo_id": "modernweb-dev", "token_count": 756 }
213
{ "name": "@web/storybook-builder", "version": "0.1.10", "publishConfig": { "access": "public" }, "description": "Storybook builder powered by `@web/dev-server`", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/modernweb-dev/web.git", "directory": "packages/stor...
modernweb-dev/web/packages/storybook-builder/package.json/0
{ "file_path": "modernweb-dev/web/packages/storybook-builder/package.json", "repo_id": "modernweb-dev", "token_count": 897 }
214
/** @type { import('@web/storybook-framework-web-components').StorybookConfig } */ const config = { stories: ['../stories/**/*.stories.js'], addons: [ '@storybook/addon-essentials', '@storybook/addon-links', '@storybook/addon-interactions', '@storybook/addon-a11y', ], framework: { name: '@we...
modernweb-dev/web/packages/storybook-framework-web-components/tests/fixtures/all-in-one/.storybook/main.js/0
{ "file_path": "modernweb-dev/web/packages/storybook-framework-web-components/tests/fixtures/all-in-one/.storybook/main.js", "repo_id": "modernweb-dev", "token_count": 145 }
215
{ "name": "@web/test-runner-browserstack", "version": "0.7.1", "publishConfig": { "access": "public" }, "description": "Browserstack launcher for Web Test Runner", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/modernweb-dev/web.git", "directory": "packages/tes...
modernweb-dev/web/packages/test-runner-browserstack/package.json/0
{ "file_path": "modernweb-dev/web/packages/test-runner-browserstack/package.json", "repo_id": "modernweb-dev", "token_count": 640 }
216
export default 'moduleFeaturesB';
modernweb-dev/web/packages/test-runner-browserstack/test-remote/fixtures/module-features-b.js/0
{ "file_path": "modernweb-dev/web/packages/test-runner-browserstack/test-remote/fixtures/module-features-b.js", "repo_id": "modernweb-dev", "token_count": 8 }
217
import { emulateMedia } from '../../browser/commands.mjs'; import { expect } from '../chai.js'; it('can emulate print media type', async () => { await emulateMedia({ media: 'print' }); expect(matchMedia('print').matches).to.be.true; await emulateMedia({ media: 'screen' }); expect(matchMedia('screen').matches)....
modernweb-dev/web/packages/test-runner-commands/test/emulate-media/browser-test.js/0
{ "file_path": "modernweb-dev/web/packages/test-runner-commands/test/emulate-media/browser-test.js", "repo_id": "modernweb-dev", "token_count": 208 }
218
import path from 'path'; import selenium from 'selenium-standalone'; import { runTests } from '@web/test-runner-core/test-helpers'; import { chromeLauncher } from '@web/test-runner-chrome'; import { webdriverLauncher } from '@web/test-runner-webdriver'; import { playwrightLauncher } from '@web/test-runner-playwright'; ...
modernweb-dev/web/packages/test-runner-commands/test/send-mouse/sendMousePlugin.test.ts/0
{ "file_path": "modernweb-dev/web/packages/test-runner-commands/test/send-mouse/sendMousePlugin.test.ts", "repo_id": "modernweb-dev", "token_count": 1081 }
219
import { MapStackLocation, StackLocation, MapBrowserUrl } from '@web/browser-logs'; import { TestRunnerCoreConfig } from '../../../config/TestRunnerCoreConfig'; import { TestSession } from '../../../test-session/TestSession'; import { SourceMapFunction } from './createSourceMapFunction.js'; import { parseSessionErrors...
modernweb-dev/web/packages/test-runner-core/src/server/plugins/api/parseBrowserResult.ts/0
{ "file_path": "modernweb-dev/web/packages/test-runner-core/src/server/plugins/api/parseBrowserResult.ts", "repo_id": "modernweb-dev", "token_count": 424 }
220
export const PARAM_SESSION_ID = 'wtr-session-id'; export const PARAM_MANUAL_SESSION = 'wtr-manual-session'; export const PARAM_TEST_FILE = 'wtr-test-file';
modernweb-dev/web/packages/test-runner-core/src/utils/constants.ts/0
{ "file_path": "modernweb-dev/web/packages/test-runner-core/src/utils/constants.ts", "repo_id": "modernweb-dev", "token_count": 59 }
221
<?xml version="1.0" encoding="UTF-8"?> <testsuites> <testsuite name="Chrome_puppeteer_/packages/test-runner-junit-reporter/test/fixtures/multiple/nested-test.js" id="0" tests="1" skipped="0" errors="0" failures="0" time="<<computed>>"> <properties> <property name="test.fileName" value="packages/test-runner-...
modernweb-dev/web/packages/test-runner-junit-reporter/test/fixtures/multiple/expected.xml/0
{ "file_path": "modernweb-dev/web/packages/test-runner-junit-reporter/test/fixtures/multiple/expected.xml", "repo_id": "modernweb-dev", "token_count": 859 }
222
import { styles } from './styles.js'; const mocha = (window as any).mocha; const mochaExports = (window as any).Mocha; class SilentReporter extends mochaExports.reporters.Base {} export function setupMocha(debug: boolean, testFrameworkConfig?: unknown) { const userOptions = typeof testFrameworkConfig === 'object' ...
modernweb-dev/web/packages/test-runner-mocha/src/mochaSetup.ts/0
{ "file_path": "modernweb-dev/web/packages/test-runner-mocha/src/mochaSetup.ts", "repo_id": "modernweb-dev", "token_count": 332 }
223