text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
HTTP/1.1 404 Not Found
Date: Wed, 14 Nov 2012 22:33:22 GMT
X-AREQUESTID: 1353x39200x1
X-Seraph-LoginReason: OK
X-ASESSIONID: u08r0a
X-AUSERNAME: tim
Cache-Control: no-cache, no-store, no-transform
Content-Type: application/json;charset=UTF-8
Set-Cookie: JSESSIONID=7EEAD8D3F2AE657AF60461E813ADF1B7; Path=/jira; HttpOnly
... | SquareSquash/web/spec/fixtures/jira_issue_404.json/0 | {
"file_path": "SquareSquash/web/spec/fixtures/jira_issue_404.json",
"repo_id": "SquareSquash",
"token_count": 232
} | 123 |
# Copyright 2014 Square Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | SquareSquash/web/spec/lib/workers/deploy_fix_marker_spec.rb/0 | {
"file_path": "SquareSquash/web/spec/lib/workers/deploy_fix_marker_spec.rb",
"repo_id": "SquareSquash",
"token_count": 1014
} | 124 |
# Copyright 2014 Square Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | SquareSquash/web/spec/models/project_spec.rb/0 | {
"file_path": "SquareSquash/web/spec/models/project_spec.rb",
"repo_id": "SquareSquash",
"token_count": 2027
} | 125 |
/* Flot plugin that adds some extra symbols for plotting points.
Copyright (c) 2007-2012 IOLA and Ole Laursen.
Licensed under the MIT license.
The symbols are accessed as strings through the standard symbol options:
series: {
points: {
symbol: "square" // or "diamond", "triangle", "cross"
}
}
*/
(function... | SquareSquash/web/vendor/assets/javascripts/flot/symbol.js/0 | {
"file_path": "SquareSquash/web/vendor/assets/javascripts/flot/symbol.js",
"repo_id": "SquareSquash",
"token_count": 1347
} | 126 |
/**
* 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/shBrushErlang.js/0 | {
"file_path": "SquareSquash/web/vendor/assets/javascripts/sh/shBrushErlang.js",
"repo_id": "SquareSquash",
"token_count": 697
} | 127 |
/**
* 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/shBrushSql.js/0 | {
"file_path": "SquareSquash/web/vendor/assets/javascripts/sh/shBrushSql.js",
"repo_id": "SquareSquash",
"token_count": 1133
} | 128 |
*
!build/*
!entrypoint.sh
| bitwarden/web/.dockerignore/0 | {
"file_path": "bitwarden/web/.dockerignore",
"repo_id": "bitwarden",
"token_count": 12
} | 129 |
FROM bitwarden/server
LABEL com.bitwarden.product="bitwarden"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gosu \
curl \
&& rm -rf /var/lib/apt/lists/*
ENV ASPNETCORE_URLS http://+:5000
WORKDIR /app
EXPOSE 5000
COPY ./build .
COPY entrypoint.sh /
RUN chmod +x /entrypoint.s... | bitwarden/web/Dockerfile/0 | {
"file_path": "bitwarden/web/Dockerfile",
"repo_id": "bitwarden",
"token_count": 172
} | 130 |
<div class="form-group">
<label [attr.for]="controlId">
{{ label }}
<small *ngIf="isRequired" class="text-muted form-text d-inline"
>({{ "required" | i18n }})</small
>
</label>
<input
[formControl]="internalControl"
class="form-control"
[attr.id]="controlId"
[attr.aria-describedb... | bitwarden/web/bitwarden_license/src/app/organizations/components/input-text.component.html/0 | {
"file_path": "bitwarden/web/bitwarden_license/src/app/organizations/components/input-text.component.html",
"repo_id": "bitwarden",
"token_count": 453
} | 131 |
<div class="page-header">
<h1>{{ "newClientOrganization" | i18n }}</h1>
</div>
<p>{{ "newClientOrganizationDesc" | i18n }}</p>
<app-organization-plans [providerId]="providerId"></app-organization-plans>
| bitwarden/web/bitwarden_license/src/app/providers/clients/create-organization.component.html/0 | {
"file_path": "bitwarden/web/bitwarden_license/src/app/providers/clients/create-organization.component.html",
"repo_id": "bitwarden",
"token_count": 82
} | 132 |
<app-navbar></app-navbar>
<div class="org-nav" *ngIf="provider">
<div class="container d-flex">
<div class="d-flex flex-column">
<div class="my-auto d-flex align-items-center pl-1">
<app-avatar [data]="provider.name" size="45" [circle]="true"></app-avatar>
<div class="org-name ml-3">
... | bitwarden/web/bitwarden_license/src/app/providers/providers-layout.component.html/0 | {
"file_path": "bitwarden/web/bitwarden_license/src/app/providers/providers-layout.component.html",
"repo_id": "bitwarden",
"token_count": 835
} | 133 |
{
"urls": {
"icons": "https://icons.bitwarden.net",
"notifications": "https://notifications.bitwarden.com"
},
"stripeKey": "pk_live_bpN0P37nMxrMQkcaHXtAybJk",
"braintreeKey": "production_qfbsv8kc_njj2zjtyngtjmbjd",
"paypal": {
"businessId": "4ZDA7DLUUJGMN",
"buttonAction": "https://www.paypal.... | bitwarden/web/config/cloud.json/0 | {
"file_path": "bitwarden/web/config/cloud.json",
"repo_id": "bitwarden",
"token_count": 241
} | 134 |
{
"trustedFacets": [
{
"version": {
"major": 1,
"minor": 0
},
"ids": [
"https://vault.bitwarden.com",
"ios:bundle-id:com.8bit.bitwarden",
"android:apk-key-hash:dUGFzUzf3lmHSLBDBIv+WaFyZMI"
]
}
]
}
| bitwarden/web/src/app-id.json/0 | {
"file_path": "bitwarden/web/src/app-id.json",
"repo_id": "bitwarden",
"token_count": 174
} | 135 |
import { Component } from "@angular/core";
import { ActivatedRoute, Router } from "@angular/router";
import { first } from "rxjs/operators";
import { RegisterComponent as BaseRegisterComponent } from "jslib-angular/components/register.component";
import { ApiService } from "jslib-common/abstractions/api.service";
impo... | bitwarden/web/src/app/accounts/register.component.ts/0 | {
"file_path": "bitwarden/web/src/app/accounts/register.component.ts",
"repo_id": "bitwarden",
"token_count": 1956
} | 136 |
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-email-token.component.ts/0 | {
"file_path": "bitwarden/web/src/app/accounts/verify-email-token.component.ts",
"repo_id": "bitwarden",
"token_count": 710
} | 137 |
import { Component, Input, OnChanges } from "@angular/core";
import { I18nService } from "jslib-common/abstractions/i18n.service";
@Component({
selector: "app-password-strength",
templateUrl: "password-strength.component.html",
})
export class PasswordStrengthComponent implements OnChanges {
@Input() score?: nu... | bitwarden/web/src/app/components/password-strength.component.ts/0 | {
"file_path": "bitwarden/web/src/app/components/password-strength.component.ts",
"repo_id": "bitwarden",
"token_count": 442
} | 138 |
<div
class="modal fade"
role="dialog"
aria-modal="true"
aria-labelledby="enrollMasterPasswordResetTitle"
>
<div class="modal-dialog modal-dialog-scrollable" role="document">
<form
class="modal-content"
#form
(ngSubmit)="submit()"
[appApiAction]="formPromise"
ngNativeValidate
... | bitwarden/web/src/app/modules/organizations/users/enroll-master-password-reset.component.html/0 | {
"file_path": "bitwarden/web/src/app/modules/organizations/users/enroll-master-password-reset.component.html",
"repo_id": "bitwarden",
"token_count": 882
} | 139 |
<ng-container *ngIf="show">
<ul class="filter-options">
<li class="filter-option" [ngClass]="{ active: activeFilter.status === 'all' }">
<span class="filter-buttons">
<button class="filter-button" (click)="applyFilter('all')">
<i class="bwi bwi-fw bwi-filter" aria-hidden="true"></i> {... | bitwarden/web/src/app/modules/vault-filter/components/status-filter.component.html/0 | {
"file_path": "bitwarden/web/src/app/modules/vault-filter/components/status-filter.component.html",
"repo_id": "bitwarden",
"token_count": 543
} | 140 |
import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { OrganizationVaultComponent } from "./organization-vault.component";
const routes: Routes = [
{
path: "",
component: OrganizationVaultComponent,
data: { titleId: "vaults" },
},
];
@NgModule({
imp... | bitwarden/web/src/app/modules/vault/modules/organization-vault/organization-vault-routing.module.ts/0 | {
"file_path": "bitwarden/web/src/app/modules/vault/modules/organization-vault/organization-vault-routing.module.ts",
"repo_id": "bitwarden",
"token_count": 142
} | 141 |
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
import { ApiService } from "jslib-common/abstractions/api.service";
import { CryptoService } from "jslib-common/abstractions/crypto.service";
import { I18nService } from "jslib-common/abstractions/i18n.service";
import { LogService } from ... | bitwarden/web/src/app/organizations/manage/collection-add-edit.component.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/manage/collection-add-edit.component.ts",
"repo_id": "bitwarden",
"token_count": 2302
} | 142 |
import { Component, OnInit, ViewChild, ViewContainerRef } from "@angular/core";
import { ActivatedRoute, Router } from "@angular/router";
import { first } from "rxjs/operators";
import { ModalService } from "jslib-angular/services/modal.service";
import { ApiService } from "jslib-common/abstractions/api.service";
impo... | bitwarden/web/src/app/organizations/manage/policies.component.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/manage/policies.component.ts",
"repo_id": "bitwarden",
"token_count": 1303
} | 143 |
import { Component } from "@angular/core";
import { FormBuilder } from "@angular/forms";
import { I18nService } from "jslib-common/abstractions/i18n.service";
import { OrganizationService } from "jslib-common/abstractions/organization.service";
import { PolicyType } from "jslib-common/enums/policyType";
import { Base... | bitwarden/web/src/app/organizations/policies/master-password.component.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/policies/master-password.component.ts",
"repo_id": "bitwarden",
"token_count": 608
} | 144 |
<div class="page-header">
<h1>{{ "myOrganization" | i18n }}</h1>
</div>
<div *ngIf="loading">
<i
class="bwi bwi-spinner bwi-spin text-muted"
title="{{ 'loading' | i18n }}"
aria-hidden="true"
></i>
<span class="sr-only">{{ "loading" | i18n }}</span>
</div>
<form
*ngIf="org && !loading"
#form
(n... | bitwarden/web/src/app/organizations/settings/account.component.html/0 | {
"file_path": "bitwarden/web/src/app/organizations/settings/account.component.html",
"repo_id": "bitwarden",
"token_count": 1861
} | 145 |
<div class="page-header">
<h1>
{{ "subscription" | i18n }}
<small *ngIf="firstLoaded && loading">
<i
class="bwi bwi-spinner bwi-spin text-muted"
title="{{ 'loading' | i18n }}"
aria-hidden="true"
></i>
<span class="sr-only">{{ "loading" | i18n }}</span>
</small>
... | bitwarden/web/src/app/organizations/settings/organization-subscription.component.html/0 | {
"file_path": "bitwarden/web/src/app/organizations/settings/organization-subscription.component.html",
"repo_id": "bitwarden",
"token_count": 5209
} | 146 |
import { Component } from "@angular/core";
import { ActivatedRoute } from "@angular/router";
import { ModalService } from "jslib-angular/services/modal.service";
import { CipherService } from "jslib-common/abstractions/cipher.service";
import { MessagingService } from "jslib-common/abstractions/messaging.service";
imp... | bitwarden/web/src/app/organizations/tools/unsecured-websites-report.component.ts/0 | {
"file_path": "bitwarden/web/src/app/organizations/tools/unsecured-websites-report.component.ts",
"repo_id": "bitwarden",
"token_count": 540
} | 147 |
<div class="page-header">
<h1>
{{ "inactive2faReport" | i18n }}
<small *ngIf="hasLoaded && loading">
<i
class="bwi bwi-spinner bwi-spin text-muted"
title="{{ 'loading' | i18n }}"
aria-hidden="true"
></i>
<span class="sr-only">{{ "loading" | i18n }}</span>
</small>... | bitwarden/web/src/app/reports/inactive-two-factor-report.component.html/0 | {
"file_path": "bitwarden/web/src/app/reports/inactive-two-factor-report.component.html",
"repo_id": "bitwarden",
"token_count": 1410
} | 148 |
import { Component, OnInit } from "@angular/core";
import { ActivatedRoute } from "@angular/router";
import { ApiService } from "jslib-common/abstractions/api.service";
import { CryptoService } from "jslib-common/abstractions/crypto.service";
import { CryptoFunctionService } from "jslib-common/abstractions/cryptoFunct... | bitwarden/web/src/app/send/access.component.ts/0 | {
"file_path": "bitwarden/web/src/app/send/access.component.ts",
"repo_id": "bitwarden",
"token_count": 2128
} | 149 |
import {
Component,
ElementRef,
EventEmitter,
Input,
OnInit,
Output,
ViewChild,
} from "@angular/core";
import { ApiService } from "jslib-common/abstractions/api.service";
import { PayPalConfig } from "jslib-common/abstractions/environment.service";
import { LogService } from "jslib-common/abstractions/l... | bitwarden/web/src/app/settings/add-credit.component.ts/0 | {
"file_path": "bitwarden/web/src/app/settings/add-credit.component.ts",
"repo_id": "bitwarden",
"token_count": 1712
} | 150 |
import { Component, OnInit, ViewChild } from "@angular/core";
import { ActivatedRoute } from "@angular/router";
import { first } from "rxjs/operators";
import { PlanType } from "jslib-common/enums/planType";
import { ProductType } from "jslib-common/enums/productType";
import { OrganizationPlansComponent } from "./or... | bitwarden/web/src/app/settings/create-organization.component.ts/0 | {
"file_path": "bitwarden/web/src/app/settings/create-organization.component.ts",
"repo_id": "bitwarden",
"token_count": 451
} | 151 |
<div class="page-header">
<h1>{{ "emergencyAccess" | i18n }}</h1>
</div>
<p>
{{ "emergencyAccessDesc" | i18n }}
<a href="https://bitwarden.com/help/emergency-access/" target="_blank" rel="noopener">
{{ "learnMore" | i18n }}.
</a>
</p>
<p *ngIf="isOrganizationOwner">
<b>{{ "warning" | i18n }}:</b> {{ "eme... | bitwarden/web/src/app/settings/emergency-access.component.html/0 | {
"file_path": "bitwarden/web/src/app/settings/emergency-access.component.html",
"repo_id": "bitwarden",
"token_count": 4540
} | 152 |
import { Component, Input } from "@angular/core";
import { Router } from "@angular/router";
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 { PlatformUtil... | bitwarden/web/src/app/settings/purge-vault.component.ts/0 | {
"file_path": "bitwarden/web/src/app/settings/purge-vault.component.ts",
"repo_id": "bitwarden",
"token_count": 578
} | 153 |
import { Component, EventEmitter, Output } from "@angular/core";
import { ActivatedRoute } from "@angular/router";
import { ApiService } from "jslib-common/abstractions/api.service";
import { LogService } from "jslib-common/abstractions/log.service";
import { OrganizationTaxInfoUpdateRequest } from "jslib-common/model... | bitwarden/web/src/app/settings/tax-info.component.ts/0 | {
"file_path": "bitwarden/web/src/app/settings/tax-info.component.ts",
"repo_id": "bitwarden",
"token_count": 2159
} | 154 |
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="2faYubiKeyTitle">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title" id="2faYubiKeyTitle">
{{ "twoStepLogin" | i18n }}
<small>Y... | bitwarden/web/src/app/settings/two-factor-yubikey.component.html/0 | {
"file_path": "bitwarden/web/src/app/settings/two-factor-yubikey.component.html",
"repo_id": "bitwarden",
"token_count": 2585
} | 155 |
<div class="page-header">
<h1>{{ "generator" | i18n }}</h1>
</div>
<app-callout type="info" *ngIf="enforcedPasswordPolicyOptions?.inEffect() && type === 'password'">
{{ "passwordGeneratorPolicyInEffect" | i18n }}
</app-callout>
<div class="card card-generated bg-light my-4">
<div class="card-body">
<div
... | bitwarden/web/src/app/tools/generator.component.html/0 | {
"file_path": "bitwarden/web/src/app/tools/generator.component.html",
"repo_id": "bitwarden",
"token_count": 6340
} | 156 |
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="deleteSelectedTitle">
<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... | bitwarden/web/src/app/vault/bulk-delete.component.html/0 | {
"file_path": "bitwarden/web/src/app/vault/bulk-delete.component.html",
"repo_id": "bitwarden",
"token_count": 701
} | 157 |
import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
const routes: Routes = [{ path: "**", redirectTo: "" }];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class WildcardRoutingModule {}
| bitwarden/web/src/app/wildcard-routing.module.ts/0 | {
"file_path": "bitwarden/web/src/app/wildcard-routing.module.ts",
"repo_id": "bitwarden",
"token_count": 93
} | 158 |
import { b64Decode, getQsParam } from "./common";
import { buildDataString, parseWebauthnJson } from "./common-webauthn";
require("./webauthn.scss");
let parsed = false;
let webauthnJson: any;
let parentUrl: string = null;
let sentSuccess = false;
let locale = "en";
let locales: any = {};
function parseParameters()... | bitwarden/web/src/connectors/webauthn-fallback.ts/0 | {
"file_path": "bitwarden/web/src/connectors/webauthn-fallback.ts",
"repo_id": "bitwarden",
"token_count": 1357
} | 159 |
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:sp... | bitwarden/web/src/images/icons/safari-pinned-tab.svg/0 | {
"file_path": "bitwarden/web/src/images/icons/safari-pinned-tab.svg",
"repo_id": "bitwarden",
"token_count": 1938
} | 160 |
<!DOCTYPE html>
<html class="theme_light">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=1010" />
<meta name="theme-color" content="#175DDC" />
<title page-title>Bitwarden Web Vault</title>
<link rel="apple-touch-icon" sizes="180x180" href="images/icons/apple-touch-icon.p... | bitwarden/web/src/index.html/0 | {
"file_path": "bitwarden/web/src/index.html",
"repo_id": "bitwarden",
"token_count": 526
} | 161 |
{
"pageTitle": {
"message": "$APP_NAME$ Caja fuerte Web",
"description": "The title of the website in the browser window.",
"placeholders": {
"app_name": {
"content": "$1",
"example": "Bitwarden"
}
}
},
"whatTypeOfItem": {
"message": "¿Qué tipo de elemento es este?"... | bitwarden/web/src/locales/es/messages.json/0 | {
"file_path": "bitwarden/web/src/locales/es/messages.json",
"repo_id": "bitwarden",
"token_count": 61240
} | 162 |
{
"pageTitle": {
"message": "$APP_NAME$ tīmekļa glabātava",
"description": "The title of the website in the browser window.",
"placeholders": {
"app_name": {
"content": "$1",
"example": "Bitwarden"
}
}
},
"whatTypeOfItem": {
"message": "Kāda veida vienums tas ir?"
... | bitwarden/web/src/locales/lv/messages.json/0 | {
"file_path": "bitwarden/web/src/locales/lv/messages.json",
"repo_id": "bitwarden",
"token_count": 69066
} | 163 |
{
"pageTitle": {
"message": "Веб сховище $APP_NAME$",
"description": "The title of the website in the browser window.",
"placeholders": {
"app_name": {
"content": "$1",
"example": "Bitwarden"
}
}
},
"whatTypeOfItem": {
"message": "Який це тип запису?"
},
"name":... | bitwarden/web/src/locales/uk/messages.json/0 | {
"file_path": "bitwarden/web/src/locales/uk/messages.json",
"repo_id": "bitwarden",
"token_count": 107085
} | 164 |
.generated-wrapper {
min-width: 0;
white-space: pre-wrap;
word-break: break-all;
}
.password-row {
min-width: 0;
}
.password-letter {
@include themify($themes) {
color: themed("pwLetter");
}
}
.password-number {
@include themify($themes) {
color: themed("pwNumber");
}
}
.password-special {
... | bitwarden/web/src/scss/pages.scss/0 | {
"file_path": "bitwarden/web/src/scss/pages.scss",
"repo_id": "bitwarden",
"token_count": 1774
} | 165 |
// Set theme on page load
// This is done outside the Angular app to avoid a flash of unthemed content before it loads
// The defaultTheme is also set in the html itself to make sure that some theming is always applied
(function () {
const defaultTheme = "light";
const htmlEl = document.documentElement;
let theme... | bitwarden/web/src/theme.js/0 | {
"file_path": "bitwarden/web/src/theme.js",
"repo_id": "bitwarden",
"token_count": 339
} | 166 |
# Spring4.X + Spring MVC + Mybatis3 零配置应用开发框架搭建详解(1) - 基本介绍
> 两年前一直在做后台的纯java开发,很少涉及web开发这块,最近换了个纯的互联网公司,需要做Web后台管理系统,之前都是用xml配置的项目,接触了公司Spring4.x的零配置项目,觉得非常有感觉,不仅仅配置简单,而且条理清晰,所以,这里把学习的内容记录下来,一来加深对这块技术的印象,另外准备做个简单的教程,如果给其他人分享的时候还可以拿来直接用。
> 首先讲讲为什么要做框架搭建?现在的开源软件,都是一些很有想法的一群技术大牛利用业余时间弄出来的,而刚开始做框架的时候,是要解决他们工作中面临的一些问题?比如解... | chwshuang/web/README.md/0 | {
"file_path": "chwshuang/web/README.md",
"repo_id": "chwshuang",
"token_count": 2852
} | 167 |
package com.aitongyi.web.cache;
/**
* 缓存Key统一管理类
* Created by admin on 16/8/18.
*/
public class CacheKey {
/**
* <pre>
* 登录用户缓存Key
* 格式 : str.login.user.{userId}
* </pre>
*/
public static final String LOGIN_USER_KEY = "str.login.user.";
}
| chwshuang/web/cache/src/main/java/com/aitongyi/web/cache/CacheKey.java/0 | {
"file_path": "chwshuang/web/cache/src/main/java/com/aitongyi/web/cache/CacheKey.java",
"repo_id": "chwshuang",
"token_count": 153
} | 168 |
package web
import (
"net/http"
"reflect"
"strings"
)
func (r *Router) genericOptionsHandler(ctx reflect.Value, methods []string) func(rw ResponseWriter, req *Request) {
return func(rw ResponseWriter, req *Request) {
if r.optionsHandler.IsValid() {
invoke(r.optionsHandler, ctx, []reflect.Value{reflect.ValueO... | gocraft/web/options_handler.go/0 | {
"file_path": "gocraft/web/options_handler.go",
"repo_id": "gocraft",
"token_count": 185
} | 169 |
{
"$schema": "https://unpkg.com/@changesets/config@1.1.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"linked": [],
"ignore": ["@web/test-runner-integration-tests"],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch"
}
| modernweb-dev/web/.changeset/config.json/0 | {
"file_path": "modernweb-dev/web/.changeset/config.json",
"repo_id": "modernweb-dev",
"token_count": 114
} | 170 |
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 412 411" style="enable-background:new 0 0 412 411;" xml:space="preserve">
<title>Tilted sphere with longitudinal stripes</title>
<g fill="#ff0000">
<g>
<linearGradient id="logo-color-SV... | modernweb-dev/web/docs/_assets/logo.svg/0 | {
"file_path": "modernweb-dev/web/docs/_assets/logo.svg",
"repo_id": "modernweb-dev",
"token_count": 3404
} | 171 |
---
eleventyNavigation:
key: Dev Server >> Overview
title: Overview
parent: Dev Server
order: 1
---
# Web Dev Server
Web Dev Server helps developing for the web, using native browser features like es modules. It is ideal for buildless workflows, and has a plugin architecture for light code transformations.
-... | modernweb-dev/web/docs/docs/dev-server/overview.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/dev-server/overview.md",
"repo_id": "modernweb-dev",
"token_count": 607
} | 172 |
# Storybook Builder >> Frameworks ||3
Storybook supports different technologies via [frameworks](https://storybook.js.org/docs/web-components/api/new-frameworks).
Frameworks simplify the configuration of the Storybook for a specific builder like `@web/storybook-builder`.
Currently we support only Web Components.
## ... | modernweb-dev/web/docs/docs/storybook-builder/frameworks.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/storybook-builder/frameworks.md",
"repo_id": "modernweb-dev",
"token_count": 258
} | 173 |
# Test Runner ||1
| modernweb-dev/web/docs/docs/test-runner/index.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/test-runner/index.md",
"repo_id": "modernweb-dev",
"token_count": 6
} | 174 |
# Test Runner >> Writing Tests ||3
Web test runners reads the configured test files, and runs them inside each of the configured browsers. Each test file runs in it's own browser environment, there is no shared state between tests. This enables concurrency and keeps tests isolated.
| modernweb-dev/web/docs/docs/test-runner/writing-tests/index.md/0 | {
"file_path": "modernweb-dev/web/docs/docs/test-runner/writing-tests/index.md",
"repo_id": "modernweb-dev",
"token_count": 58
} | 175 |
# Going Buildless ||10
| modernweb-dev/web/docs/guides/going-buildless/index.md/0 | {
"file_path": "modernweb-dev/web/docs/guides/going-buildless/index.md",
"repo_id": "modernweb-dev",
"token_count": 7
} | 176 |
{
"name": "@web/test-runner-integration-tests",
"version": "0.0.0",
"private": true,
"publishConfig": {
"access": "public"
},
"description": "Web Test Runner integration tests",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/modernweb-dev/web.git",
"directory... | modernweb-dev/web/integration/test-runner/package.json/0 | {
"file_path": "modernweb-dev/web/integration/test-runner/package.json",
"repo_id": "modernweb-dev",
"token_count": 365
} | 177 |
import { expect } from '../../../../../node_modules/@esm-bundle/chai/esm/chai.js';
it('can run a test with focus e', async () => {
const input = document.createElement('input');
document.body.appendChild(input);
let firedEvent = false;
input.addEventListener('focus', () => {
firedEvent = true;
});
inp... | modernweb-dev/web/integration/test-runner/tests/focus/browser-tests/focus-e.test.js/0 | {
"file_path": "modernweb-dev/web/integration/test-runner/tests/focus/browser-tests/focus-e.test.js",
"repo_id": "modernweb-dev",
"token_count": 154
} | 178 |
import { BrowserLauncher, TestRunnerCoreConfig } from '@web/test-runner-core';
import { runTests } from '@web/test-runner-core/test-helpers';
import { legacyPlugin } from '@web/dev-server-legacy';
import { resolve } from 'path';
export function runManyTests(
config: Partial<TestRunnerCoreConfig> & { browsers: Browse... | modernweb-dev/web/integration/test-runner/tests/many/runManyTests.ts/0 | {
"file_path": "modernweb-dev/web/integration/test-runner/tests/many/runManyTests.ts",
"repo_id": "modernweb-dev",
"token_count": 258
} | 179 |
export function throwErrorC() {
throw new Error('My error');
}
| modernweb-dev/web/integration/test-runner/tests/test-failure/browser-tests/fail-stack-trace-c.js/0 | {
"file_path": "modernweb-dev/web/integration/test-runner/tests/test-failure/browser-tests/fail-stack-trace-c.js",
"repo_id": "modernweb-dev",
"token_count": 19
} | 180 |
window.addEventListener('error', e => {
console.error(e.error);
});
window.addEventListener('unhandledrejection', e => {
e.promise.catch(error => {
console.error(
'An error was thrown in a Promise outside a test. Did you forget to await a function or assertion?',
);
console.error(error);
});
})... | modernweb-dev/web/packages/browser-logs/src/logUncaughtErrors.ts/0 | {
"file_path": "modernweb-dev/web/packages/browser-logs/src/logUncaughtErrors.ts",
"repo_id": "modernweb-dev",
"token_count": 109
} | 181 |
const ConfigLoaderError = require('./ConfigLoaderError');
// These strings may be node-version dependent and need updating over time
// They're just to display a helpful error message
const ESM_ERRORS = [
"SyntaxError: Unexpected token 'export'",
'SyntaxError: Cannot use import statement outside a module',
];
/**... | modernweb-dev/web/packages/config-loader/src/requireConfig.js/0 | {
"file_path": "modernweb-dev/web/packages/config-loader/src/requireConfig.js",
"repo_id": "modernweb-dev",
"token_count": 291
} | 182 |
export class PluginSyntaxError extends Error {
constructor(
public message: string,
public filePath: string,
public code: string,
public line: number,
public column: number,
) {
super(message);
this.name = 'PluginSyntaxError';
}
}
| modernweb-dev/web/packages/dev-server-core/src/logger/PluginSyntaxError.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/src/logger/PluginSyntaxError.ts",
"repo_id": "modernweb-dev",
"token_count": 91
} | 183 |
import { Middleware } from 'koa';
import { Plugin } from '../plugins/Plugin';
import { Server } from 'net';
import chokidar from 'chokidar';
export type MimeTypeMappings = Record<string, string>;
export interface DevServerCoreConfig {
/**
* The port to run the server on.
*/
port?: number;
/**
* Root di... | modernweb-dev/web/packages/dev-server-core/src/server/DevServerCoreConfig.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/src/server/DevServerCoreConfig.ts",
"repo_id": "modernweb-dev",
"token_count": 616
} | 184 |
import { message } from 'my-module';
console.log(`The message is: ${message}`);
| modernweb-dev/web/packages/dev-server-core/test/fixtures/basic/src/foo.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/test/fixtures/basic/src/foo.js",
"repo_id": "modernweb-dev",
"token_count": 27
} | 185 |
import { expect } from 'chai';
import { transformImports } from '../../src/plugins/transformModuleImportsPlugin.js';
import type { PluginSyntaxError } from '../../src/logger/PluginSyntaxError.js';
import { createTestServer } from '../helpers.js';
const defaultFilePath = '/root/my-file.js';
const defaultResolveImport ... | modernweb-dev/web/packages/dev-server-core/test/plugins/transformModuleImportsPlugin.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/test/plugins/transformModuleImportsPlugin.test.ts",
"repo_id": "modernweb-dev",
"token_count": 6291
} | 186 |
import { html, render } from 'lit-html';
const connectedElements = new WeakMap();
export class BaseElement extends HTMLElement {
/**
* Based on https://github.com/Polymer/lit-element/pull/802
*/
static hotReplaceCallback(classObj) {
const existingProps = new Set(Object.getOwnPropertyNames(this.prototype... | modernweb-dev/web/packages/dev-server-hmr/demo/lit-html/src/BaseElement.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-hmr/demo/lit-html/src/BaseElement.js",
"repo_id": "modernweb-dev",
"token_count": 585
} | 187 |
import { Context } from 'koa';
export const mockFile = (path: string, source: string) => ({
name: `test-file:${path}`,
serve: (context: Context) => {
if (context.path === path) {
return source;
}
},
});
export const mockFiles = (files: Record<string, string>) => ({
name: `test-file:${Object.keys... | modernweb-dev/web/packages/dev-server-hmr/test/utils.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-hmr/test/utils.ts",
"repo_id": "modernweb-dev",
"token_count": 199
} | 188 |
import 'chai/chai.js';
it('it can import chai using a static import', () => {
if (typeof window.chai.expect !== 'function') {
throw new Error('expect should be a function');
}
});
| modernweb-dev/web/packages/dev-server-import-maps/test-browser/test/static-imports.test.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-import-maps/test-browser/test/static-imports.test.js",
"repo_id": "modernweb-dev",
"token_count": 67
} | 189 |
export { legacyPlugin } from './legacyPlugin.js';
| modernweb-dev/web/packages/dev-server-legacy/src/index.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-legacy/src/index.ts",
"repo_id": "modernweb-dev",
"token_count": 15
} | 190 |
{
"name": "module-a"
} | modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/basic/node_modules/module-a/package.json/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/basic/node_modules/module-a/package.json",
"repo_id": "modernweb-dev",
"token_count": 13
} | 191 |
module.exports.namedFoo = 'foo';
module.exports.namedBar = 'bar';
| modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/commonjs/modules/named-exports.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/commonjs/modules/named-exports.js",
"repo_id": "modernweb-dev",
"token_count": 25
} | 192 |
import rollupAlias from '@rollup/plugin-alias';
import { createTestServer, fetchText, expectIncludes } from '../test-helpers.js';
import { fromRollup } from '../../../src/fromRollup.js';
const alias = fromRollup(rollupAlias);
describe('@rollup/plugin-alias', () => {
it('can resolve imports', async () => {
cons... | modernweb-dev/web/packages/dev-server-rollup/test/node/plugins/alias.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/test/node/plugins/alias.test.ts",
"repo_id": "modernweb-dev",
"token_count": 293
} | 193 |
module.exports = {
stories: ['../stories/**/*.stories.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'],
};
| modernweb-dev/web/packages/dev-server-storybook/demo/preact/.storybook/main.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-storybook/demo/preact/.storybook/main.js",
"repo_id": "modernweb-dev",
"token_count": 45
} | 194 |
{
"name": "@web/dev-server-storybook",
"version": "2.0.1",
"publishConfig": {
"access": "public"
},
"description": "Dev server plugin for using storybook with es modules.",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/modernweb-dev/web.git",
"directory": "pac... | modernweb-dev/web/packages/dev-server-storybook/package.json/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-storybook/package.json",
"repo_id": "modernweb-dev",
"token_count": 1043
} | 195 |
import fs from 'fs';
import { StorybookConfig } from '../config/StorybookConfig.js';
import { StorybookPluginConfig } from '../config/StorybookPluginConfig.js';
import { createBrowserImport } from '../utils.js';
function createPreviewImport(rootDir: string, previewJsPath: string) {
if (!fs.existsSync(previewJsPath)... | modernweb-dev/web/packages/dev-server-storybook/src/shared/html/createPreviewHtml.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-storybook/src/shared/html/createPreviewHtml.ts",
"repo_id": "modernweb-dev",
"token_count": 1685
} | 196 |
-----BEGIN CERTIFICATE-----
MIIClTCCAf6gAwIBAgIJRhJ5Yf7uQ2ZGMA0GCSqGSIb3DQEBBQUAMGkxFDASBgNV
BAMTC2V4YW1wbGUub3JnMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx
EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl
c3QwHhcNMTkwNjI1MTcwMzExWhcNMjAwNjI0MTcwMzExWjBpMRQwEgYDVQQDEwtl
eGFtcGxlLm9yZzELMAkGA1UEBhMCVVMx... | modernweb-dev/web/packages/dev-server/demo/http2/certs/.self-signed-dev-server-ssl.cert/0 | {
"file_path": "modernweb-dev/web/packages/dev-server/demo/http2/certs/.self-signed-dev-server-ssl.cert",
"repo_id": "modernweb-dev",
"token_count": 678
} | 197 |
import { html, render } from 'lit-html';
window.__noExtension = !!html && !!render;
| modernweb-dev/web/packages/dev-server/demo/node-resolve/no-extension.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server/demo/node-resolve/no-extension.js",
"repo_id": "modernweb-dev",
"token_count": 28
} | 198 |
import { nodeResolve, rollupAdapter, RollupNodeResolveOptions } from '@web/dev-server-rollup';
import { Plugin } from '@web/dev-server-core';
import deepmerge from 'deepmerge';
export function nodeResolvePlugin(
rootDir: string,
preserveSymlinks?: boolean,
userOptions?: RollupNodeResolveOptions,
): Plugin {
co... | modernweb-dev/web/packages/dev-server/src/plugins/nodeResolvePlugin.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server/src/plugins/nodeResolvePlugin.ts",
"repo_id": "modernweb-dev",
"token_count": 331
} | 199 |
export { mockRollupPlugin } from './rollup-plugin.js';
export { mockPlugin } from './wds-plugin.js';
| modernweb-dev/web/packages/mocks/plugins.js/0 | {
"file_path": "modernweb-dev/web/packages/mocks/plugins.js",
"repo_id": "modernweb-dev",
"token_count": 34
} | 200 |
# parse5-utils
Utils for using parse5.
## Usage
Examples:
```js
import { parse } from 'parse5';
import { createElement, getTagName, appendChild, findElement } from '@web/parse5-utils';
const doc = parse(`
<html>
<body>
<my-element></my-element>
<div id="foo"></div>
</body>
</html>`);
const... | modernweb-dev/web/packages/parse5-utils/README.md/0 | {
"file_path": "modernweb-dev/web/packages/parse5-utils/README.md",
"repo_id": "modernweb-dev",
"token_count": 816
} | 201 |
import { Attribute } from 'parse5';
export interface PolyfillsLoaderConfig {
// files to load on modern browsers. loaded when there are no
// legacy entrypoints which match
modern?: ModernEntrypoint;
// legacy entrypoints to load on older browsers, each entrypoint
// consists of a test when to load it. tests... | modernweb-dev/web/packages/polyfills-loader/src/types.ts/0 | {
"file_path": "modernweb-dev/web/packages/polyfills-loader/src/types.ts",
"repo_id": "modernweb-dev",
"token_count": 954
} | 202 |
<script type="module" src="./src/my-app.js"></script>
<script>
console.log('no module script inline');
</script>
<script src="./src/no-module.js"></script>
<meta property="og:image" content="./src/image-social.png">
<link rel="canonical" href="/">
<meta property="og:url" content="/">
| modernweb-dev/web/packages/rollup-plugin-html/demo/spa/index.html/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/demo/spa/index.html",
"repo_id": "modernweb-dev",
"token_count": 103
} | 203 |
import { findElements, getAttribute, getTagName, getTextContent, remove } from '@web/parse5-utils';
import { Document, Attribute } from 'parse5';
import path from 'path';
import crypto from 'crypto';
import { resolveAssetFilePath } from '../../assets/utils.js';
import { getAttributes } from '@web/parse5-utils';
import ... | modernweb-dev/web/packages/rollup-plugin-html/src/input/extract/extractModules.ts/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/src/input/extract/extractModules.ts",
"repo_id": "modernweb-dev",
"token_count": 883
} | 204 |
<html>
<head>
<link rel="apple-touch-icon" sizes="180x180" href="./image-a.png" />
<link rel="icon" type="image/png" sizes="32x32" href="./image-b.png" />
<link rel="manifest" href="./webmanifest.json" />
<link rel="mask-icon" href="./image-a.svg" color="#3f93ce" />
<link rel="stylesheet" href="./... | modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/assets/index.html/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/assets/index.html",
"repo_id": "modernweb-dev",
"token_count": 262
} | 205 |
g | modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/resolves-assets-in-styles-images/images/star.webp/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/resolves-assets-in-styles-images/images/star.webp",
"repo_id": "modernweb-dev",
"token_count": 1
} | 206 |
<html>
<head></head>
<body>
<script type="module">
import './foo.js';
</script>
</body>
</html>
| modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/rollup-plugin-html/foo/foo.html/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/rollup-plugin-html/foo/foo.html",
"repo_id": "modernweb-dev",
"token_count": 55
} | 207 |
<h1>hello world</h1>
| modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/rollup-plugin-html/pure-index.html/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/rollup-plugin-html/pure-index.html",
"repo_id": "modernweb-dev",
"token_count": 11
} | 208 |
{
"name": "@web/rollup-plugin-import-meta-assets",
"version": "2.2.1",
"publishConfig": {
"access": "public"
},
"description": "Rollup plugin that detects assets references relative to modules using patterns such as `new URL('./path/to/asset.ext', import.meta.url)`. The assets are added to the rollup pipe... | modernweb-dev/web/packages/rollup-plugin-import-meta-assets/package.json/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-import-meta-assets/package.json",
"repo_id": "modernweb-dev",
"token_count": 634
} | 209 |
const nameOne = 'one-name';
const imageOne = new URL('../one-deep.svg', import.meta.url).href;
const nameTwo = 'two-name';
const imageTwo = new URL('./two-deep.svg', import.meta.url).href;
const nameThree = 'three-name';
const imageThree = new URL('./three/three-deep.svg', import.meta.url).href;
const nameFour = 'fo... | modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/fixtures/one/two/different-asset-levels-entrypoint.js/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/fixtures/one/two/different-asset-levels-entrypoint.js",
"repo_id": "modernweb-dev",
"token_count": 192
} | 210 |
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<rect x="10" y="10" height="100" width="100"
style="stroke:#000000; fill: #800000"/>
</svg>
| modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/snapshots/five/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/snapshots/five",
"repo_id": "modernweb-dev",
"token_count": 97
} | 211 |
console.log('shared');
| modernweb-dev/web/packages/rollup-plugin-polyfills-loader/test/fixtures/shared.js/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-polyfills-loader/test/fixtures/shared.js",
"repo_id": "modernweb-dev",
"token_count": 7
} | 212 |
import { expect } from 'chai';
import { fileTypes } from '@web/polyfills-loader';
import { shouldInjectLoader } from '../../src/utils.js';
describe('shouldInjectLoader', () => {
it('returns true when modern contains non-module or script', () => {
expect(
shouldInjectLoader({
modern: { files: [{ typ... | modernweb-dev/web/packages/rollup-plugin-polyfills-loader/test/src/utils.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-polyfills-loader/test/src/utils.test.ts",
"repo_id": "modernweb-dev",
"token_count": 628
} | 213 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Storybook</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="prefetch"
href="./sb-common-assets/nunito-sans-regular.woff2"
as="font"
type="font/woff2"
crossorig... | modernweb-dev/web/packages/storybook-builder/static/iframe-template.html/0 | {
"file_path": "modernweb-dev/web/packages/storybook-builder/static/iframe-template.html",
"repo_id": "modernweb-dev",
"token_count": 884
} | 214 |
import type { StorybookConfig as StorybookConfigBase } from '@storybook/types';
import type { BuilderOptions, StorybookConfigWds } from '@web/storybook-builder';
type FrameworkName = '@web/storybook-framework-web-components';
type BuilderName = '@web/storybook-builder';
export type FrameworkOptions = {
builder?: Bu... | modernweb-dev/web/packages/storybook-framework-web-components/src/types.ts/0 | {
"file_path": "modernweb-dev/web/packages/storybook-framework-web-components/src/types.ts",
"repo_id": "modernweb-dev",
"token_count": 309
} | 215 |
import { runIntegrationTests } from '../../../integration/test-runner/index.js';
import { chromeLauncher } from '../src/index.js';
describe('test-runner-chrome', function testRunnerChrome() {
this.timeout(20000);
function createConfig() {
return {
browsers: [chromeLauncher()],
};
}
runIntegrati... | modernweb-dev/web/packages/test-runner-chrome/test/chromeLauncher.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-chrome/test/chromeLauncher.test.ts",
"repo_id": "modernweb-dev",
"token_count": 178
} | 216 |
import { a11ySnapshot, findAccessibilityNode } from '../../browser/commands.mjs';
import { expect } from '../chai.js';
it('returns an accessibility tree with appropriately labelled element in it', async () => {
const buttonText = 'Button Text';
const labelText = 'Label Text';
const fullText = `${labelText} ${but... | modernweb-dev/web/packages/test-runner-commands/test/a11y-snapshot/browser-test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-commands/test/a11y-snapshot/browser-test.js",
"repo_id": "modernweb-dev",
"token_count": 279
} | 217 |
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 { sendKeysPlugin } from '../../src/sendKeysPlugin.js';
describe('sendKeysPlugin', function test() {... | modernweb-dev/web/packages/test-runner-commands/test/send-keys/sendKeysPlugin.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-commands/test/send-keys/sendKeysPlugin.test.ts",
"repo_id": "modernweb-dev",
"token_count": 347
} | 218 |
import { TestSession, TestResultError, TestSuiteResult, TestResult } from '../dist/index.js';
export interface RuntimeConfig {
testFile: string;
watch: boolean;
debug: boolean;
testFrameworkConfig?: unknown;
}
export type BrowserSessionResult = Pick<TestSession, 'passed' | 'errors' | 'testResults'>;
export i... | modernweb-dev/web/packages/test-runner-core/browser/session.d.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/browser/session.d.ts",
"repo_id": "modernweb-dev",
"token_count": 290
} | 219 |
import {
createCoverageMap,
CoverageSummaryData,
CoverageMap,
CoverageMapData,
BranchMapping,
FunctionMapping,
Location,
Range,
} from 'istanbul-lib-coverage';
import { TestSession } from '../test-session/TestSession';
import { CoverageConfig } from '../config/TestRunnerCoreConfig';
export const covera... | modernweb-dev/web/packages/test-runner-core/src/coverage/getTestCoverage.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/coverage/getTestCoverage.ts",
"repo_id": "modernweb-dev",
"token_count": 2230
} | 220 |
import { MapStackLocation, parseStackTrace } from '@web/browser-logs';
import { MapBrowserUrl } from '@web/browser-logs';
import { TestRunnerCoreConfig } from '../../../config/TestRunnerCoreConfig.js';
import {
TestResult,
TestResultError,
TestSession,
TestSuiteResult,
} from '../../../test-session/TestSession... | modernweb-dev/web/packages/test-runner-core/src/server/plugins/api/parseBrowserErrors.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/server/plugins/api/parseBrowserErrors.ts",
"repo_id": "modernweb-dev",
"token_count": 673
} | 221 |
import { EventEmitter as NodeEventEmitter } from 'events';
type EventMap = Record<string, any>;
type EventKey<T extends EventMap> = string & keyof T;
type EventReceiver<T> = (params: T) => void;
interface Emitter<T extends EventMap> {
on<K extends EventKey<T>>(eventName: K, fn: EventReceiver<T[K]>): void;
emit<K... | modernweb-dev/web/packages/test-runner-core/src/utils/EventEmitter.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/utils/EventEmitter.ts",
"repo_id": "modernweb-dev",
"token_count": 313
} | 222 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.